Skip to content

Commit a037357

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Enable automerging for cloudflare routes. (#2105)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 3e25955 commit a037357

File tree

4 files changed

+27
-4
lines changed

4 files changed

+27
-4
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-08-12 20:42:17.952521",
8-
"spec_repo_commit": "7a16d6c5"
7+
"regenerated": "2024-08-14 20:10:54.348512",
8+
"spec_repo_commit": "fafdefa8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-12 20:42:17.969603",
13-
"spec_repo_commit": "7a16d6c5"
12+
"regenerated": "2024-08-14 20:10:54.365784",
13+
"spec_repo_commit": "fafdefa8"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4412,6 +4412,10 @@ components:
44124412
CloudflareAccountResponseAttributes:
44134413
description: Attributes object of a Cloudflare account.
44144414
properties:
4415+
api_key:
4416+
description: The CloudflareAccountResponseAttributes api_key.
4417+
type: string
4418+
writeOnly: true
44154419
email:
44164420
description: The email associated with the Cloudflare account.
44174421
@@ -4484,6 +4488,9 @@ components:
44844488
key is provided (and not a token), this field is also required.
44854489
44864490
type: string
4491+
name:
4492+
description: The CloudflareAccountUpdateRequestAttributes name.
4493+
type: string
44874494
resources:
44884495
description: An allowlist of resources to restrict pulling metrics for.
44894496
example:

src/datadog_api_client/v2/model/cloudflare_account_response_attributes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ class CloudflareAccountResponseAttributes(ModelNormal):
1717
@cached_property
1818
def openapi_types(_):
1919
return {
20+
"api_key": (str,),
2021
"email": (str,),
2122
"name": (str,),
2223
"resources": ([str],),
2324
"zones": ([str],),
2425
}
2526

2627
attribute_map = {
28+
"api_key": "api_key",
2729
"email": "email",
2830
"name": "name",
2931
"resources": "resources",
@@ -33,6 +35,7 @@ def openapi_types(_):
3335
def __init__(
3436
self_,
3537
name: str,
38+
api_key: Union[str, UnsetType] = unset,
3639
email: Union[str, UnsetType] = unset,
3740
resources: Union[List[str], UnsetType] = unset,
3841
zones: Union[List[str], UnsetType] = unset,
@@ -41,6 +44,9 @@ def __init__(
4144
"""
4245
Attributes object of a Cloudflare account.
4346
47+
:param api_key: The CloudflareAccountResponseAttributes api_key.
48+
:type api_key: str, optional
49+
4450
:param email: The email associated with the Cloudflare account.
4551
:type email: str, optional
4652
@@ -53,6 +59,8 @@ def __init__(
5359
:param zones: An allowlist of zones to restrict pulling metrics for.
5460
:type zones: [str], optional
5561
"""
62+
if api_key is not unset:
63+
kwargs["api_key"] = api_key
5664
if email is not unset:
5765
kwargs["email"] = email
5866
if resources is not unset:

src/datadog_api_client/v2/model/cloudflare_account_update_request_attributes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ def openapi_types(_):
1919
return {
2020
"api_key": (str,),
2121
"email": (str,),
22+
"name": (str,),
2223
"resources": ([str],),
2324
"zones": ([str],),
2425
}
2526

2627
attribute_map = {
2728
"api_key": "api_key",
2829
"email": "email",
30+
"name": "name",
2931
"resources": "resources",
3032
"zones": "zones",
3133
}
@@ -34,6 +36,7 @@ def __init__(
3436
self_,
3537
api_key: str,
3638
email: Union[str, UnsetType] = unset,
39+
name: Union[str, UnsetType] = unset,
3740
resources: Union[List[str], UnsetType] = unset,
3841
zones: Union[List[str], UnsetType] = unset,
3942
**kwargs,
@@ -47,6 +50,9 @@ def __init__(
4750
:param email: The email associated with the Cloudflare account. If an API key is provided (and not a token), this field is also required.
4851
:type email: str, optional
4952
53+
:param name: The CloudflareAccountUpdateRequestAttributes name.
54+
:type name: str, optional
55+
5056
:param resources: An allowlist of resources to restrict pulling metrics for.
5157
:type resources: [str], optional
5258
@@ -55,6 +61,8 @@ def __init__(
5561
"""
5662
if email is not unset:
5763
kwargs["email"] = email
64+
if name is not unset:
65+
kwargs["name"] = name
5866
if resources is not unset:
5967
kwargs["resources"] = resources
6068
if zones is not unset:

0 commit comments

Comments
 (0)