Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
39b5961
feature: wipes existing code in preparation for new version
phpinhei-te Feb 11, 2025
bc50c1c
feat: Fixes the client content type matching regex
phpinhei-te Feb 10, 2025
7aad253
[GitHub Bot] Generated go SDK (#125)
mpragosa-te Feb 20, 2025
570adf6
fix: fixes content-type regex matcher (#126)
phpinhei-te Feb 25, 2025
02f90e4
[GitHub Bot] Generated go SDK (#128)
mpragosa-te Feb 26, 2025
aa5ce9a
feature: Support new release workflow and set User-Agent header with …
kevihan-te Mar 20, 2025
87da16c
[GitHub Bot] Generated go SDK (#133)
mpragosa-te Apr 3, 2025
c74421f
[GitHub Bot] Generated go SDK (#134)
mpragosa-te Apr 30, 2025
054cb0d
[GitHub Bot] Generated go SDK (#135)
mpragosa-te May 5, 2025
2dc8f5d
[GitHub Bot] Generated go SDK (#137)
mpragosa-te May 30, 2025
502afe2
feat: Print the response log when the api call failed (#139)
kevihan-te Jun 5, 2025
42fbd52
[GitHub Bot] Generated go SDK (#142)
mpragosa-te Jun 20, 2025
9c687ec
[GitHub Bot] Generated go SDK (#143)
mpragosa-te Jul 15, 2025
a9fa4e7
[GitHub Bot] Generated go SDK (#144)
mpragosa-te Jul 22, 2025
0a75a18
[GitHub Bot] Generated go SDK (#146)
mpragosa-te Aug 19, 2025
8405a01
[GitHub Bot] Generated go SDK (#147)
mpragosa-te Aug 27, 2025
045223c
[GitHub Bot] Generated go SDK (#149)
tshe-te Sep 16, 2025
3066337
[GitHub Bot] Generated go SDK (#150)
tshe-te Sep 30, 2025
bb1217f
feat: Use retry http and add backoff (#151)
tshe-te Oct 14, 2025
21cd9a4
[GitHub Bot] Generated go SDK (#153)
mpragosa-te Oct 21, 2025
3360a2d
[GitHub Bot] Generated go SDK
Nov 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
42 changes: 42 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Release

on:
workflow_dispatch:
inputs:
releaseVersion:
description: 'The target version you want to update and release'
required: true
type: string

jobs:
release-sdk:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
cache: true

- name: Upgrade the version number in the configuration.go and go.mod files
run: |
echo "Releasing the target version: ${{ inputs.releaseVersion }}"
major_version=$(echo "${{ inputs.releaseVersion }}" | cut -d '.' -f 1)

go mod edit -module github.com/thousandeyes/thousandeyes-sdk-go/$major_version
sed -i "s|^\(var sdkVersion = \).*|\1\"${{ inputs.releaseVersion }}\"|" client/configuration.go

- name: Add tag and push to the repository
run: |
git config user.name "API Team"
git config user.email "api-team@thousandeyes.com"

git add .
git commit -m "[GitHub Bot] Released ${{ inputs.releaseVersion }} SDK"
git push origin
Comment on lines +35 to +39

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Release push fails from detached checkout

The release job commits and then runs git push origin (lines 35‑39), but the workflow only performs a default actions/checkout@v4 so the runner is left on a detached HEAD. git push without an explicit ref fails with “you are not currently on a branch”, preventing the release commit and tag from being published. Explicitly check out the target branch or push HEAD:<branch> before tagging to make this workflow succeed.

Useful? React with 👍 / 👎.


git tag ${{ inputs.releaseVersion }}
git push origin ${{ inputs.releaseVersion }}
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
cache: true

- name: Lint
run: |
go get golang.org/x/lint/golint
go install golang.org/x/lint/golint
~/go/bin/golint -set_exit_status

- name: Test
run: go test -race -coverprofile=coverage.txt -covermode=atomic
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[![GoDoc](https://godoc.org/github.com/thousandeyes/thousandeyes-sdk-go?status.svg)](http://godoc.org/github.com/thousandeyes/thousandeyes-sdk-go) [![Go Report Card](https://goreportcard.com/badge/github.com/thousandeyes/thousandeyes-sdk-go)](https://goreportcard.com/report/github.com/thousandeyes/thousandeyes-sdk-go) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/gojp/goreportcard/blob/master/LICENSE)

# thousandeyes-sdk-go

DEPRECATED TO BE UPDATED LATER


`thousandeyes-sdk-go` is a [go](https://golang.org/) client library for the [Thousandeyes v6 API](https://developer.thousandeyes.com/v6).

## Installation
Expand Down
48 changes: 0 additions & 48 deletions account_groups.go

This file was deleted.

64 changes: 0 additions & 64 deletions account_groups_test.go

This file was deleted.

23 changes: 23 additions & 0 deletions administrative/.openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
63 changes: 63 additions & 0 deletions administrative/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
.openapi-generator-ignore
README.md
api_account_groups.go
api_permissions.go
api_roles.go
api_user_events.go
api_users.go
docs/AccountGroupsAPI.md
docs/PermissionsAPI.md
docs/RolesAPI.md
docs/UserEventsAPI.md
docs/UsersAPI.md
model_account_group.go
model_account_group_detail.go
model_account_group_info.go
model_account_group_request.go
model_account_group_role.go
model_account_groups.go
model_agent_base.go
model_agent_response.go
model_audit_user_events.go
model_base_role.go
model_cloud_enterprise_agent_type.go
model_cluster_member.go
model_coordinates.go
model_created_account_group.go
model_created_user.go
model_enterprise_agent.go
model_enterprise_agent_data.go
model_enterprise_agent_ipv6_policy.go
model_enterprise_agent_state.go
model_error.go
model_error_detail.go
model_error_detail_code.go
model_expand_account_group_options.go
model_extended_user.go
model_interface_ip_mapping.go
model_link.go
model_pagination_links.go
model_permission.go
model_permissions.go
model_resource.go
model_role.go
model_role_detail.go
model_role_request_body.go
model_roles.go
model_self_links.go
model_simple_agent.go
model_simple_test_.go
model_test_interval.go
model_test_links.go
model_test_self_link.go
model_test_type.go
model_unauthorized_error.go
model_user.go
model_user_account_group.go
model_user_account_group_role.go
model_user_detail.go
model_user_event.go
model_user_request.go
model_users.go
model_validation_error.go
model_validation_error_item.go
1 change: 1 addition & 0 deletions administrative/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.6.0
81 changes: 81 additions & 0 deletions administrative/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Go API client for administrative

Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API.
This API provides the following operations to manage your organization:

* `/account-groups`: Account groups are used to divide an organization into different sections. These operations can be used to create, retrieve, update and delete account groups.
* `/users`: Create, retrieve, update and delete users within an organization.
* `/roles`: Create, retrieve and update roles for the current user.
* `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles.
* `/audit-user-events`: Retrieve all activity log events.

For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management).

## Overview
*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) using the [OpenAPI-spec](https://www.openapis.org/).*

- API version: 7.0.68
- Package version: 1.0.0

For more information, please visit [https://developer.cisco.com/docs/thousandeyes/v7/](https://developer.cisco.com/docs/thousandeyes/v7/)

## Installation

Install the following dependencies:

```sh
go get github.com/stretchr/testify/assert
go get golang.org/x/net/context
```

Put the package under your project folder and add the following in import:

```go
import "github.com/thousandeyes/thousandeyes-sdk-go/v3/client"
import "github.com/thousandeyes/thousandeyes-sdk-go/v3/administrative"
```

To use a proxy, set the environment variable `HTTP_PROXY`:

```go
os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")
```

## Documentation For Authorization

Authentication schemes defined for the API:
### BearerAuth
- **Type**: HTTP Bearer token authentication

Example

```go
configuration := client.NewConfiguration().WithAuthToken("<bearer-token>")
apiClient := client.NewAPIClient(configuration)
```

## Documentation for API Endpoints

All URIs are relative to *https://api.thousandeyes.com/v7*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AccountGroupsAPI* | [**CreateAccountGroup**](docs/AccountGroupsAPI.md#createaccountgroup) | **Post** /account-groups | Create account group
*AccountGroupsAPI* | [**DeleteAccountGroup**](docs/AccountGroupsAPI.md#deleteaccountgroup) | **Delete** /account-groups/{id} | Delete account group
*AccountGroupsAPI* | [**GetAccountGroup**](docs/AccountGroupsAPI.md#getaccountgroup) | **Get** /account-groups/{id} | Retrieve account group
*AccountGroupsAPI* | [**GetAccountGroups**](docs/AccountGroupsAPI.md#getaccountgroups) | **Get** /account-groups | List account groups
*AccountGroupsAPI* | [**UpdateAccountGroup**](docs/AccountGroupsAPI.md#updateaccountgroup) | **Put** /account-groups/{id} | Update account group
*PermissionsAPI* | [**GetPermissions**](docs/PermissionsAPI.md#getpermissions) | **Get** /permissions | List assignable permissions
*RolesAPI* | [**CreateRole**](docs/RolesAPI.md#createrole) | **Post** /roles | Create role
*RolesAPI* | [**DeleteRole**](docs/RolesAPI.md#deleterole) | **Delete** /roles/{id} | Delete role
*RolesAPI* | [**GetRole**](docs/RolesAPI.md#getrole) | **Get** /roles/{id} | Retrieve role
*RolesAPI* | [**GetRoles**](docs/RolesAPI.md#getroles) | **Get** /roles | List roles
*RolesAPI* | [**UpdateRole**](docs/RolesAPI.md#updaterole) | **Put** /roles/{id} | Update role
*UserEventsAPI* | [**GetUserEvents**](docs/UserEventsAPI.md#getuserevents) | **Get** /audit-user-events | List activity log events
*UsersAPI* | [**CreateUser**](docs/UsersAPI.md#createuser) | **Post** /users | Create user
*UsersAPI* | [**DeleteUser**](docs/UsersAPI.md#deleteuser) | **Delete** /users/{id} | Delete user
*UsersAPI* | [**GetCurrentUser**](docs/UsersAPI.md#getcurrentuser) | **Get** /users/current | Retrieve current user
*UsersAPI* | [**GetUser**](docs/UsersAPI.md#getuser) | **Get** /users/{id} | Retrieve user
*UsersAPI* | [**GetUsers**](docs/UsersAPI.md#getusers) | **Get** /users | List users
*UsersAPI* | [**UpdateUser**](docs/UsersAPI.md#updateuser) | **Put** /users/{id} | Update user

Loading