-
Notifications
You must be signed in to change notification settings - Fork 24
20251126 112405 #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
20251126 112405 #156
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 bc50c1c
feat: Fixes the client content type matching regex
phpinhei-te 7aad253
[GitHub Bot] Generated go SDK (#125)
mpragosa-te 570adf6
fix: fixes content-type regex matcher (#126)
phpinhei-te 02f90e4
[GitHub Bot] Generated go SDK (#128)
mpragosa-te aa5ce9a
feature: Support new release workflow and set User-Agent header with …
kevihan-te 87da16c
[GitHub Bot] Generated go SDK (#133)
mpragosa-te c74421f
[GitHub Bot] Generated go SDK (#134)
mpragosa-te 054cb0d
[GitHub Bot] Generated go SDK (#135)
mpragosa-te 2dc8f5d
[GitHub Bot] Generated go SDK (#137)
mpragosa-te 502afe2
feat: Print the response log when the api call failed (#139)
kevihan-te 42fbd52
[GitHub Bot] Generated go SDK (#142)
mpragosa-te 9c687ec
[GitHub Bot] Generated go SDK (#143)
mpragosa-te a9fa4e7
[GitHub Bot] Generated go SDK (#144)
mpragosa-te 0a75a18
[GitHub Bot] Generated go SDK (#146)
mpragosa-te 8405a01
[GitHub Bot] Generated go SDK (#147)
mpragosa-te 045223c
[GitHub Bot] Generated go SDK (#149)
tshe-te 3066337
[GitHub Bot] Generated go SDK (#150)
tshe-te bb1217f
feat: Use retry http and add backoff (#151)
tshe-te 21cd9a4
[GitHub Bot] Generated go SDK (#153)
mpragosa-te 3360a2d
[GitHub Bot] Generated go SDK
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
|
|
||
| git tag ${{ inputs.releaseVersion }} | ||
| git push origin ${{ inputs.releaseVersion }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 7.6.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The release job commits and then runs
git push origin(lines 35‑39), but the workflow only performs a defaultactions/checkout@v4so the runner is left on a detached HEAD.git pushwithout 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 pushHEAD:<branch>before tagging to make this workflow succeed.Useful? React with 👍 / 👎.