From ad3db2c6163205cb844e78ddb35d2e4460fbab38 Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Wed, 18 Dec 2024 19:59:39 +0000 Subject: [PATCH] Add note that Usage Metering is unavailable in US1-FED (#2820) Co-authored-by: ci.datadog-api-spec --- .apigentools-info | 8 ++++---- .generator/schemas/v2/openapi.yaml | 3 ++- api/datadogV2/api_usage_metering.go | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index e0f2ca2dbaf..f84dfb700ff 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-12-18 17:18:29.889986", - "spec_repo_commit": "8cb3faac" + "regenerated": "2024-12-18 19:23:38.808441", + "spec_repo_commit": "3f22290a" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-12-18 17:18:29.909491", - "spec_repo_commit": "8cb3faac" + "regenerated": "2024-12-18 19:23:38.823016", + "spec_repo_commit": "3f22290a" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index dc4ea550c3e..fea0c1deed3 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -32622,7 +32622,8 @@ paths: != null BEGIN\n sleep(5 seconds) # Avoid running into rate limit\n response := GetMonthlyCostAttribution(start_month, end_month, next_record_id=cursor)\n \ cursor := response.metadata.pagination.next_record_id\nEND\n```\n\nThis - endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/)." + endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). + This endpoint is not available in the Government (US1-FED) site." operationId: GetMonthlyCostAttribution parameters: - description: 'Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` diff --git a/api/datadogV2/api_usage_metering.go b/api/datadogV2/api_usage_metering.go index 1d33fe6b172..e863918737b 100644 --- a/api/datadogV2/api_usage_metering.go +++ b/api/datadogV2/api_usage_metering.go @@ -829,7 +829,7 @@ func (r *GetMonthlyCostAttributionOptionalParameters) WithIncludeDescendants(inc // END // ``` // -// This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). +// This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). This endpoint is not available in the Government (US1-FED) site. func (a *UsageMeteringApi) GetMonthlyCostAttribution(ctx _context.Context, startMonth time.Time, fields string, o ...GetMonthlyCostAttributionOptionalParameters) (MonthlyCostAttributionResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet