From 41e4f878e920670e328403b8df527d1c76225b35 Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Mon, 19 Aug 2024 19:40:12 +0000 Subject: [PATCH] Revert "Enable automerging for cloudflare routes." (#2113) Co-authored-by: ci.datadog-api-spec Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> --- .apigentools-info | 8 ++++---- .generator/schemas/v2/openapi.yaml | 7 ------- .../v2/model/cloudflare_account_response_attributes.py | 8 -------- .../model/cloudflare_account_update_request_attributes.py | 8 -------- 4 files changed, 4 insertions(+), 27 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 349baf9e75..eeb1d6c732 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-08-16 20:37:03.717440", - "spec_repo_commit": "9c789d05" + "regenerated": "2024-08-19 14:31:51.463182", + "spec_repo_commit": "a4585fac" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-08-16 20:37:03.734852", - "spec_repo_commit": "9c789d05" + "regenerated": "2024-08-19 14:31:51.483205", + "spec_repo_commit": "a4585fac" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 63b8d7f900..2c739f70ee 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -4426,10 +4426,6 @@ components: CloudflareAccountResponseAttributes: description: Attributes object of a Cloudflare account. properties: - api_key: - description: The CloudflareAccountResponseAttributes api_key. - type: string - writeOnly: true email: description: The email associated with the Cloudflare account. example: test-email@example.com @@ -4502,9 +4498,6 @@ components: key is provided (and not a token), this field is also required. example: test-email@example.com type: string - name: - description: The CloudflareAccountUpdateRequestAttributes name. - type: string resources: description: An allowlist of resources to restrict pulling metrics for. example: diff --git a/src/datadog_api_client/v2/model/cloudflare_account_response_attributes.py b/src/datadog_api_client/v2/model/cloudflare_account_response_attributes.py index fe4656b246..be85a8c5bf 100644 --- a/src/datadog_api_client/v2/model/cloudflare_account_response_attributes.py +++ b/src/datadog_api_client/v2/model/cloudflare_account_response_attributes.py @@ -17,7 +17,6 @@ class CloudflareAccountResponseAttributes(ModelNormal): @cached_property def openapi_types(_): return { - "api_key": (str,), "email": (str,), "name": (str,), "resources": ([str],), @@ -25,7 +24,6 @@ def openapi_types(_): } attribute_map = { - "api_key": "api_key", "email": "email", "name": "name", "resources": "resources", @@ -35,7 +33,6 @@ def openapi_types(_): def __init__( self_, name: str, - api_key: Union[str, UnsetType] = unset, email: Union[str, UnsetType] = unset, resources: Union[List[str], UnsetType] = unset, zones: Union[List[str], UnsetType] = unset, @@ -44,9 +41,6 @@ def __init__( """ Attributes object of a Cloudflare account. - :param api_key: The CloudflareAccountResponseAttributes api_key. - :type api_key: str, optional - :param email: The email associated with the Cloudflare account. :type email: str, optional @@ -59,8 +53,6 @@ def __init__( :param zones: An allowlist of zones to restrict pulling metrics for. :type zones: [str], optional """ - if api_key is not unset: - kwargs["api_key"] = api_key if email is not unset: kwargs["email"] = email if resources is not unset: diff --git a/src/datadog_api_client/v2/model/cloudflare_account_update_request_attributes.py b/src/datadog_api_client/v2/model/cloudflare_account_update_request_attributes.py index faf603634a..9902151f30 100644 --- a/src/datadog_api_client/v2/model/cloudflare_account_update_request_attributes.py +++ b/src/datadog_api_client/v2/model/cloudflare_account_update_request_attributes.py @@ -19,7 +19,6 @@ def openapi_types(_): return { "api_key": (str,), "email": (str,), - "name": (str,), "resources": ([str],), "zones": ([str],), } @@ -27,7 +26,6 @@ def openapi_types(_): attribute_map = { "api_key": "api_key", "email": "email", - "name": "name", "resources": "resources", "zones": "zones", } @@ -36,7 +34,6 @@ def __init__( self_, api_key: str, email: Union[str, UnsetType] = unset, - name: Union[str, UnsetType] = unset, resources: Union[List[str], UnsetType] = unset, zones: Union[List[str], UnsetType] = unset, **kwargs, @@ -50,9 +47,6 @@ def __init__( :param email: The email associated with the Cloudflare account. If an API key is provided (and not a token), this field is also required. :type email: str, optional - :param name: The CloudflareAccountUpdateRequestAttributes name. - :type name: str, optional - :param resources: An allowlist of resources to restrict pulling metrics for. :type resources: [str], optional @@ -61,8 +55,6 @@ def __init__( """ if email is not unset: kwargs["email"] = email - if name is not unset: - kwargs["name"] = name if resources is not unset: kwargs["resources"] = resources if zones is not unset: