diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 68c9c54a6d7..5b11932d5ad 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/main/java/com/datadog/api/client/v2/api/UsageMeteringApi.java b/src/main/java/com/datadog/api/client/v2/api/UsageMeteringApi.java index adc5a559274..b3a6c61f91f 100644 --- a/src/main/java/com/datadog/api/client/v2/api/UsageMeteringApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/UsageMeteringApi.java @@ -166,8 +166,8 @@ public CompletableFuture createQuotasAsync( /** * 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. + * scope, it is updated; otherwise, a new quota is created. Requires the billing_edit + * permission. * * @param quotaNamespace The product-specific namespace whose usage quotas are being managed. * (required) @@ -366,8 +366,7 @@ public CompletableFuture deleteQuotaAsync(String quotaNamespace, String id /** * 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. + * quota namespace. Requires the billing_edit permission. * * @param quotaNamespace The product-specific namespace whose usage quotas are being managed. * (required) @@ -3791,8 +3790,7 @@ public PaginationIterable listQuotasWithPagination( /** * 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. + * billing_edit permission. * * @param quotaNamespace The product-specific namespace whose usage quotas are being managed. * (required) @@ -3984,8 +3982,8 @@ public CompletableFuture updateQuotaAsync( /** * 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. + * must belong to the requested quota namespace. Requires the billing_edit + * permission. * * @param quotaNamespace The product-specific namespace whose usage quotas are being managed. * (required)