diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 68c9c54a6d..5b11932d5a 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -220097,7 +220097,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. @@ -220170,9 +220170,7 @@ paths: - apiKeyAuth: [] appKeyAuth: [] - AuthZ: - - user_access_manage - billing_edit - - org_management summary: List usage quotas tags: - Usage Metering @@ -220182,17 +220180,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. @@ -220280,25 +220276,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. @@ -220336,24 +220328,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. @@ -220429,18 +220417,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/). diff --git a/src/datadog_api_client/v2/api/usage_metering_api.py b/src/datadog_api_client/v2/api/usage_metering_api.py index 96f19767ae..8527e22be3 100644 --- a/src/datadog_api_client/v2/api/usage_metering_api.py +++ b/src/datadog_api_client/v2/api/usage_metering_api.py @@ -632,7 +632,7 @@ def create_quotas( ) -> UsageQuotasBulkResponse: """Create or update usage quotas. - 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 quota_namespace: The product-specific namespace whose usage quotas are being managed. :type quota_namespace: str @@ -659,7 +659,7 @@ def delete_quota( ) -> None: """Delete a usage quota. - 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 quota_namespace: The product-specific namespace whose usage quotas are being managed. :type quota_namespace: str @@ -1181,7 +1181,7 @@ def list_quotas( ) -> UsageQuotasListResponse: """List usage quotas. - 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 quota_namespace: The product-specific namespace whose usage quotas are being managed. :type quota_namespace: str @@ -1264,7 +1264,7 @@ def update_quota( ) -> UsageQuotaResponse: """Update a usage quota. - 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 quota_namespace: The product-specific namespace whose usage quotas are being managed. :type quota_namespace: str