All URIs are relative to /v1
Method | HTTP request | Description |
---|---|---|
CreateApiClient | Post /management/api-clients | Create a new API Client. |
DeleteApiClient | Delete /management/api-clients/{id} | Delete an API client |
GetApiClient | Get /management/api-clients/{id} | Get an API client by id |
GetApiClients | Get /management/api-clients | Returns a list of API clients. |
UpdateApiClient | Put /management/api-clients/{id} | Update an Api client. |
ApiClientCreateResponse CreateApiClient(ctx).ApiClientCreateParameter(apiClientCreateParameter).Execute()
Create a new API Client.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
apiClientCreateParameter := *openapiclient.NewApiClientCreateParameter() // ApiClientCreateParameter |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ApiClientsApi.CreateApiClient(context.Background()).ApiClientCreateParameter(apiClientCreateParameter).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApiClientsApi.CreateApiClient``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateApiClient`: ApiClientCreateResponse
fmt.Fprintf(os.Stdout, "Response from `ApiClientsApi.CreateApiClient`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateApiClientRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
apiClientCreateParameter | ApiClientCreateParameter |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteApiClient(ctx, id).Execute()
Delete an API client
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int64(789) // int64 | Numeric ID of the Api client
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ApiClientsApi.DeleteApiClient(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApiClientsApi.DeleteApiClient``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | Numeric ID of the Api client |
Other parameters are passed through a pointer to a apiDeleteApiClientRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiClient GetApiClient(ctx, id).Execute()
Get an API client by id
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int64(789) // int64 | Numeric ID of the Api client
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ApiClientsApi.GetApiClient(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApiClientsApi.GetApiClient``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetApiClient`: ApiClient
fmt.Fprintf(os.Stdout, "Response from `ApiClientsApi.GetApiClient`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | Numeric ID of the Api client |
Other parameters are passed through a pointer to a apiGetApiClientRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ApiClient GetApiClients(ctx).Execute()
Returns a list of API clients.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ApiClientsApi.GetApiClients(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApiClientsApi.GetApiClients``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetApiClients`: []ApiClient
fmt.Fprintf(os.Stdout, "Response from `ApiClientsApi.GetApiClients`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetApiClientsRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiClient UpdateApiClient(ctx, id).ApiClient(apiClient).Execute()
Update an Api client.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int64(789) // int64 | Numeric ID of the Api client
apiClient := *openapiclient.NewApiClient(false) // ApiClient |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ApiClientsApi.UpdateApiClient(context.Background(), id).ApiClient(apiClient).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApiClientsApi.UpdateApiClient``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateApiClient`: ApiClient
fmt.Fprintf(os.Stdout, "Response from `ApiClientsApi.UpdateApiClient`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | Numeric ID of the Api client |
Other parameters are passed through a pointer to a apiUpdateApiClientRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
apiClient | ApiClient | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]