Skip to content

Commit f1960f2

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 4ac086a of spec repo
1 parent 2ece0db commit f1960f2

2 files changed

Lines changed: 50 additions & 5 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27600,7 +27600,10 @@ paths:
2760027600
- IP Ranges
2760127601
/api/v1/api_key:
2760227602
get:
27603-
description: Get all API keys available for your account.
27603+
description: |-
27604+
Get all API keys available for your account.
27605+
27606+
**Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
2760427607
operationId: ListAPIKeys
2760527608
responses:
2760627609
"200":
@@ -27633,7 +27636,10 @@ paths:
2763327636
permissions:
2763427637
- api_keys_read
2763527638
post:
27636-
description: Creates an API key with a given name.
27639+
description: |-
27640+
Creates an API key with a given name.
27641+
27642+
**Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
2763727643
operationId: CreateAPIKey
2763827644
requestBody:
2763927645
content:
@@ -27684,7 +27690,10 @@ paths:
2768427690
- api_keys_write
2768527691
/api/v1/api_key/{key}:
2768627692
delete:
27687-
description: Delete a given API key.
27693+
description: |-
27694+
Delete a given API key.
27695+
27696+
**Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
2768827697
operationId: DeleteAPIKey
2768927698
parameters:
2769027699
- description: The specific API key you are working with.
@@ -27736,7 +27745,10 @@ paths:
2773627745
permissions:
2773727746
- api_keys_delete
2773827747
get:
27739-
description: Get a given API key.
27748+
description: |-
27749+
Get a given API key.
27750+
27751+
**Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
2774027752
operationId: GetAPIKey
2774127753
parameters:
2774227754
- description: The specific API key you are working with.
@@ -27782,7 +27794,10 @@ paths:
2778227794
permissions:
2778327795
- api_keys_read
2778427796
put:
27785-
description: Edit an API key name.
27797+
description: |-
27798+
Edit an API key name.
27799+
27800+
**Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
2778627801
operationId: UpdateAPIKey
2778727802
parameters:
2778827803
- description: The specific API key you are working with.
@@ -27849,6 +27864,8 @@ paths:
2784927864
description: |-
2785027865
Get all application keys available for your Datadog account.
2785127866
This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).
27867+
27868+
**Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
2785227869
operationId: ListApplicationKeys
2785327870
responses:
2785427871
"200":
@@ -27884,6 +27901,8 @@ paths:
2788427901
description: |-
2788527902
Create an application key with a given name.
2788627903
This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).
27904+
27905+
**Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
2788727906
operationId: CreateApplicationKey
2788827907
requestBody:
2788927908
content:
@@ -27942,6 +27961,8 @@ paths:
2794227961
description: |-
2794327962
Delete a given application key.
2794427963
This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).
27964+
27965+
**Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
2794527966
operationId: DeleteApplicationKey
2794627967
parameters:
2794727968
- description: The specific APP key you are working with.
@@ -27990,6 +28011,8 @@ paths:
2799028011
description: |-
2799128012
Get a given application key.
2799228013
This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).
28014+
28015+
**Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
2799328016
operationId: GetApplicationKey
2799428017
parameters:
2799528018
- description: The specific APP key you are working with.
@@ -28038,6 +28061,8 @@ paths:
2803828061
description: |-
2803928062
Edit an application key name.
2804028063
This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).
28064+
28065+
**Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
2804128066
operationId: UpdateApplicationKey
2804228067
parameters:
2804328068
- description: The specific APP key you are working with.

api/datadogV1/api_key_management.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ type KeyManagementApi datadog.Service
1717

1818
// CreateAPIKey Create an API key.
1919
// Creates an API key with a given name.
20+
//
21+
// **Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
2022
func (a *KeyManagementApi) CreateAPIKey(ctx _context.Context, body ApiKey) (ApiKeyResponse, *_nethttp.Response, error) {
2123
var (
2224
localVarHTTPMethod = _nethttp.MethodPost
@@ -98,6 +100,8 @@ func (a *KeyManagementApi) CreateAPIKey(ctx _context.Context, body ApiKey) (ApiK
98100
// CreateApplicationKey Create an application key.
99101
// Create an application key with a given name.
100102
// This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).
103+
//
104+
// **Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
101105
func (a *KeyManagementApi) CreateApplicationKey(ctx _context.Context, body ApplicationKey) (ApplicationKeyResponse, *_nethttp.Response, error) {
102106
var (
103107
localVarHTTPMethod = _nethttp.MethodPost
@@ -178,6 +182,8 @@ func (a *KeyManagementApi) CreateApplicationKey(ctx _context.Context, body Appli
178182

179183
// DeleteAPIKey Delete an API key.
180184
// Delete a given API key.
185+
//
186+
// **Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
181187
func (a *KeyManagementApi) DeleteAPIKey(ctx _context.Context, key string) (ApiKeyResponse, *_nethttp.Response, error) {
182188
var (
183189
localVarHTTPMethod = _nethttp.MethodDelete
@@ -257,6 +263,8 @@ func (a *KeyManagementApi) DeleteAPIKey(ctx _context.Context, key string) (ApiKe
257263
// DeleteApplicationKey Delete an application key.
258264
// Delete a given application key.
259265
// This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).
266+
//
267+
// **Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
260268
func (a *KeyManagementApi) DeleteApplicationKey(ctx _context.Context, key string) (ApplicationKeyResponse, *_nethttp.Response, error) {
261269
var (
262270
localVarHTTPMethod = _nethttp.MethodDelete
@@ -335,6 +343,8 @@ func (a *KeyManagementApi) DeleteApplicationKey(ctx _context.Context, key string
335343

336344
// GetAPIKey Get API key.
337345
// Get a given API key.
346+
//
347+
// **Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
338348
func (a *KeyManagementApi) GetAPIKey(ctx _context.Context, key string) (ApiKeyResponse, *_nethttp.Response, error) {
339349
var (
340350
localVarHTTPMethod = _nethttp.MethodGet
@@ -414,6 +424,8 @@ func (a *KeyManagementApi) GetAPIKey(ctx _context.Context, key string) (ApiKeyRe
414424
// GetApplicationKey Get an application key.
415425
// Get a given application key.
416426
// This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).
427+
//
428+
// **Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
417429
func (a *KeyManagementApi) GetApplicationKey(ctx _context.Context, key string) (ApplicationKeyResponse, *_nethttp.Response, error) {
418430
var (
419431
localVarHTTPMethod = _nethttp.MethodGet
@@ -492,6 +504,8 @@ func (a *KeyManagementApi) GetApplicationKey(ctx _context.Context, key string) (
492504

493505
// ListAPIKeys Get all API keys.
494506
// Get all API keys available for your account.
507+
//
508+
// **Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
495509
func (a *KeyManagementApi) ListAPIKeys(ctx _context.Context) (ApiKeyListResponse, *_nethttp.Response, error) {
496510
var (
497511
localVarHTTPMethod = _nethttp.MethodGet
@@ -570,6 +584,8 @@ func (a *KeyManagementApi) ListAPIKeys(ctx _context.Context) (ApiKeyListResponse
570584
// ListApplicationKeys Get all application keys.
571585
// Get all application keys available for your Datadog account.
572586
// This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).
587+
//
588+
// **Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
573589
func (a *KeyManagementApi) ListApplicationKeys(ctx _context.Context) (ApplicationKeyListResponse, *_nethttp.Response, error) {
574590
var (
575591
localVarHTTPMethod = _nethttp.MethodGet
@@ -647,6 +663,8 @@ func (a *KeyManagementApi) ListApplicationKeys(ctx _context.Context) (Applicatio
647663

648664
// UpdateAPIKey Edit an API key.
649665
// Edit an API key name.
666+
//
667+
// **Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
650668
func (a *KeyManagementApi) UpdateAPIKey(ctx _context.Context, key string, body ApiKey) (ApiKeyResponse, *_nethttp.Response, error) {
651669
var (
652670
localVarHTTPMethod = _nethttp.MethodPut
@@ -729,6 +747,8 @@ func (a *KeyManagementApi) UpdateAPIKey(ctx _context.Context, key string, body A
729747
// UpdateApplicationKey Edit an application key.
730748
// Edit an application key name.
731749
// This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).
750+
//
751+
// **Note**: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the [V2 Key Management](https://docs.datadoghq.com/api/latest/key-management/) endpoints instead.
732752
func (a *KeyManagementApi) UpdateApplicationKey(ctx _context.Context, key string, body ApplicationKey) (ApplicationKeyResponse, *_nethttp.Response, error) {
733753
var (
734754
localVarHTTPMethod = _nethttp.MethodPut

0 commit comments

Comments
 (0)