Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25843,7 +25843,9 @@ paths:
- api_keys_write
/api/v1/application_key:
get:
description: Get all application keys available for your Datadog account.
description: 'Get all application keys available for your Datadog account.

This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).'
operationId: ListApplicationKeys
responses:
'200':
Expand All @@ -25869,7 +25871,9 @@ paths:
- org_app_keys_read
- user_app_keys
post:
description: Create an application key with a given name.
description: 'Create an application key with a given name.

This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).'
operationId: CreateApplicationKey
requestBody:
content:
Expand Down Expand Up @@ -25914,7 +25918,9 @@ paths:
- user_app_keys
/api/v1/application_key/{key}:
delete:
description: Delete a given application key.
description: 'Delete a given application key.

This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).'
operationId: DeleteApplicationKey
parameters:
- description: The specific APP key you are working with.
Expand Down Expand Up @@ -25953,7 +25959,9 @@ paths:
- org_app_keys_write
- user_app_keys
get:
description: Get a given application key.
description: 'Get a given application key.

This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).'
operationId: GetApplicationKey
parameters:
- description: The specific APP key you are working with.
Expand Down Expand Up @@ -25992,7 +26000,9 @@ paths:
- org_app_keys_read
- user_app_keys
put:
description: Edit an application key name.
description: 'Edit an application key name.

This endpoint is disabled for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).'
operationId: UpdateApplicationKey
parameters:
- description: The specific APP key you are working with.
Expand Down
8 changes: 6 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62965,7 +62965,9 @@ paths:
permissions:
- user_app_keys
get:
description: Get an application key owned by current user
description: 'Get an application key owned by current user.

The `key` field is not returned for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).'
operationId: GetCurrentUserApplicationKey
parameters:
- $ref: '#/components/parameters/ApplicationKeyID'
Expand Down Expand Up @@ -62998,7 +63000,9 @@ paths:
permissions:
- user_app_keys
patch:
description: Edit an application key owned by current user
description: 'Edit an application key owned by current user.

The `key` field is not returned for organizations in [One-Time Read mode](https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode).'
operationId: UpdateCurrentUserApplicationKey
parameters:
- $ref: '#/components/parameters/ApplicationKeyID'
Expand Down
10 changes: 10 additions & 0 deletions src/datadogV1/api/api_key_management.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ impl KeyManagementAPI {
}

/// Create an application key with a given name.
/// This endpoint is disabled for organizations in [One-Time Read mode](<https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode>).
pub async fn create_application_key(
&self,
body: crate::datadogV1::model::ApplicationKey,
Expand All @@ -332,6 +333,7 @@ impl KeyManagementAPI {
}

/// Create an application key with a given name.
/// This endpoint is disabled for organizations in [One-Time Read mode](<https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode>).
pub async fn create_application_key_with_http_info(
&self,
body: crate::datadogV1::model::ApplicationKey,
Expand Down Expand Up @@ -567,6 +569,7 @@ impl KeyManagementAPI {
}

/// Delete a given application key.
/// This endpoint is disabled for organizations in [One-Time Read mode](<https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode>).
pub async fn delete_application_key(
&self,
key: String,
Expand All @@ -589,6 +592,7 @@ impl KeyManagementAPI {
}

/// Delete a given application key.
/// This endpoint is disabled for organizations in [One-Time Read mode](<https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode>).
pub async fn delete_application_key_with_http_info(
&self,
key: String,
Expand Down Expand Up @@ -779,6 +783,7 @@ impl KeyManagementAPI {
}

/// Get a given application key.
/// This endpoint is disabled for organizations in [One-Time Read mode](<https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode>).
pub async fn get_application_key(
&self,
key: String,
Expand All @@ -801,6 +806,7 @@ impl KeyManagementAPI {
}

/// Get a given application key.
/// This endpoint is disabled for organizations in [One-Time Read mode](<https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode>).
pub async fn get_application_key_with_http_info(
&self,
key: String,
Expand Down Expand Up @@ -990,6 +996,7 @@ impl KeyManagementAPI {
}

/// Get all application keys available for your Datadog account.
/// This endpoint is disabled for organizations in [One-Time Read mode](<https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode>).
pub async fn list_application_keys(
&self,
) -> Result<
Expand All @@ -1011,6 +1018,7 @@ impl KeyManagementAPI {
}

/// Get all application keys available for your Datadog account.
/// This endpoint is disabled for organizations in [One-Time Read mode](<https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode>).
pub async fn list_application_keys_with_http_info(
&self,
) -> Result<
Expand Down Expand Up @@ -1247,6 +1255,7 @@ impl KeyManagementAPI {
}

/// Edit an application key name.
/// This endpoint is disabled for organizations in [One-Time Read mode](<https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode>).
pub async fn update_application_key(
&self,
key: String,
Expand All @@ -1270,6 +1279,7 @@ impl KeyManagementAPI {
}

/// Edit an application key name.
/// This endpoint is disabled for organizations in [One-Time Read mode](<https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode>).
pub async fn update_application_key_with_http_info(
&self,
key: String,
Expand Down
12 changes: 8 additions & 4 deletions src/datadogV2/api/api_key_management.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,8 @@ impl KeyManagementAPI {
}
}

/// Get an application key owned by current user
/// Get an application key owned by current user.
/// The `key` field is not returned for organizations in [One-Time Read mode](<https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode>).
pub async fn get_current_user_application_key(
&self,
app_key_id: String,
Expand All @@ -1271,7 +1272,8 @@ impl KeyManagementAPI {
}
}

/// Get an application key owned by current user
/// Get an application key owned by current user.
/// The `key` field is not returned for organizations in [One-Time Read mode](<https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode>).
pub async fn get_current_user_application_key_with_http_info(
&self,
app_key_id: String,
Expand Down Expand Up @@ -2126,7 +2128,8 @@ impl KeyManagementAPI {
}
}

/// Edit an application key owned by current user
/// Edit an application key owned by current user.
/// The `key` field is not returned for organizations in [One-Time Read mode](<https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode>).
pub async fn update_current_user_application_key(
&self,
app_key_id: String,
Expand All @@ -2152,7 +2155,8 @@ impl KeyManagementAPI {
}
}

/// Edit an application key owned by current user
/// Edit an application key owned by current user.
/// The `key` field is not returned for organizations in [One-Time Read mode](<https://docs.datadoghq.com/account_management/api-app-keys/#one-time-read-mode>).
pub async fn update_current_user_application_key_with_http_info(
&self,
app_key_id: String,
Expand Down