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
32 changes: 8 additions & 24 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223892,7 +223892,7 @@ paths:
/api/v2/usage/quotas/{quota_namespace}:
get:
description: |-
Lists usage quotas for the caller's organization in a quota namespace. You can optionally include descendant organizations in the same datacenter as the caller. Requires the `user_access_manage`, `billing_edit`, and `org_management` permissions.
Lists usage quotas for the caller's organization in a quota namespace. You can optionally include descendant organizations in the same datacenter as the caller. Requires the `billing_edit` permission.
operationId: ListQuotas
parameters:
- description: The product-specific namespace whose usage quotas are being managed.
Expand Down Expand Up @@ -223965,9 +223965,7 @@ paths:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- user_access_manage
- billing_edit
- org_management
summary: List usage quotas
tags:
- Usage Metering
Expand All @@ -223977,17 +223975,15 @@ paths:
limitParam: page[limit]
resultsPath: data
"x-permission":
operator: AND
operator: OR
permissions:
- user_access_manage
- billing_edit
- org_management
x-unstable: |-
**Note**: This endpoint is in Preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
post:
description: |-
Creates or updates one or more usage quotas by scope. If a quota already exists for a supplied scope, it is updated; otherwise, a new quota is created. Requires the `user_access_manage`, `billing_edit`, and `org_management` permissions.
Creates or updates one or more usage quotas by scope. If a quota already exists for a supplied scope, it is updated; otherwise, a new quota is created. Requires the `billing_edit` permission.
operationId: CreateQuotas
parameters:
- description: The product-specific namespace whose usage quotas are being managed.
Expand Down Expand Up @@ -224075,25 +224071,21 @@ paths:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- user_access_manage
- billing_edit
- org_management
summary: Create or update usage quotas
tags:
- Usage Metering
"x-permission":
operator: AND
operator: OR
permissions:
- user_access_manage
- billing_edit
- org_management
x-unstable: |-
**Note**: This endpoint is in Preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/usage/quotas/{quota_namespace}/{id}:
delete:
description: |-
Deletes a usage quota by its opaque identifier. The quota must belong to the caller's organization or one of its descendants, and its opaque identifier must belong to the requested quota namespace. Requires the `user_access_manage`, `billing_edit`, and `org_management` permissions.
Deletes a usage quota by its opaque identifier. The quota must belong to the caller's organization or one of its descendants, and its opaque identifier must belong to the requested quota namespace. Requires the `billing_edit` permission.
operationId: DeleteQuota
parameters:
- description: The product-specific namespace whose usage quotas are being managed.
Expand Down Expand Up @@ -224131,24 +224123,20 @@ paths:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- user_access_manage
- billing_edit
- org_management
summary: Delete a usage quota
tags:
- Usage Metering
"x-permission":
operator: AND
operator: OR
permissions:
- user_access_manage
- billing_edit
- org_management
x-unstable: |-
**Note**: This endpoint is in Preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
patch:
description: |-
Updates the supplied fields on a usage quota and leaves omitted fields unchanged. The quota must belong to the caller's organization or one of its descendants, and its opaque identifier must belong to the requested quota namespace. Requires the `user_access_manage`, `billing_edit`, and `org_management` permissions.
Updates the supplied fields on a usage quota and leaves omitted fields unchanged. The quota must belong to the caller's organization or one of its descendants, and its opaque identifier must belong to the requested quota namespace. Requires the `billing_edit` permission.
operationId: UpdateQuota
parameters:
- description: The product-specific namespace whose usage quotas are being managed.
Expand Down Expand Up @@ -224224,18 +224212,14 @@ paths:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- user_access_manage
- billing_edit
- org_management
summary: Update a usage quota
tags:
- Usage Metering
"x-permission":
operator: AND
operator: OR
permissions:
- user_access_manage
- billing_edit
- org_management
x-unstable: |-
**Note**: This endpoint is in Preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
Expand Down
8 changes: 4 additions & 4 deletions services/usage_metering/src/v2/UsageMeteringApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2734,7 +2734,7 @@ export class UsageMeteringApi {
}

/**
* Creates or updates one or more usage quotas by scope. If a quota already exists for a supplied scope, it is updated; otherwise, a new quota is created. Requires the `user_access_manage`, `billing_edit`, and `org_management` permissions.
* Creates or updates one or more usage quotas by scope. If a quota already exists for a supplied scope, it is updated; otherwise, a new quota is created. Requires the `billing_edit` permission.
* @param param The request object
*/
public createQuotas(
Expand All @@ -2757,7 +2757,7 @@ export class UsageMeteringApi {
}

/**
* Deletes a usage quota by its opaque identifier. The quota must belong to the caller's organization or one of its descendants, and its opaque identifier must belong to the requested quota namespace. Requires the `user_access_manage`, `billing_edit`, and `org_management` permissions.
* Deletes a usage quota by its opaque identifier. The quota must belong to the caller's organization or one of its descendants, and its opaque identifier must belong to the requested quota namespace. Requires the `billing_edit` permission.
* @param param The request object
*/
public deleteQuota(
Expand Down Expand Up @@ -3168,7 +3168,7 @@ export class UsageMeteringApi {
}

/**
* Lists usage quotas for the caller's organization in a quota namespace. You can optionally include descendant organizations in the same datacenter as the caller. Requires the `user_access_manage`, `billing_edit`, and `org_management` permissions.
* Lists usage quotas for the caller's organization in a quota namespace. You can optionally include descendant organizations in the same datacenter as the caller. Requires the `billing_edit` permission.
* @param param The request object
*/
public listQuotas(
Expand Down Expand Up @@ -3244,7 +3244,7 @@ export class UsageMeteringApi {
}

/**
* Updates the supplied fields on a usage quota and leaves omitted fields unchanged. The quota must belong to the caller's organization or one of its descendants, and its opaque identifier must belong to the requested quota namespace. Requires the `user_access_manage`, `billing_edit`, and `org_management` permissions.
* Updates the supplied fields on a usage quota and leaves omitted fields unchanged. The quota must belong to the caller's organization or one of its descendants, and its opaque identifier must belong to the requested quota namespace. Requires the `billing_edit` permission.
* @param param The request object
*/
public updateQuota(
Expand Down
Loading