Skip to content

Commit 2cf244c

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Enable all similar routes (#2120)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 5256da8 commit 2cf244c

9 files changed

+69
-5
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-19 19:42:32.224891",
8-
"spec_repo_commit": "e0cd2a66"
7+
"regenerated": "2024-08-20 17:44:52.936638",
8+
"spec_repo_commit": "2d74b3a8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-19 19:42:32.242391",
13-
"spec_repo_commit": "e0cd2a66"
12+
"regenerated": "2024-08-20 17:44:52.954012",
13+
"spec_repo_commit": "2d74b3a8"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4498,6 +4498,9 @@ components:
44984498
key is provided (and not a token), this field is also required.
44994499
45004500
type: string
4501+
name:
4502+
description: The name of the Cloudflare account.
4503+
type: string
45014504
resources:
45024505
description: An allowlist of resources to restrict pulling metrics for.
45034506
example:
@@ -8165,6 +8168,9 @@ components:
81658168
description: The API key of the Fastly account.
81668169
example: ABCDEFG123
81678170
type: string
8171+
name:
8172+
description: The name of the Fastly account.
8173+
type: string
81688174
type: object
81698175
FastlyAccountUpdateRequestData:
81708176
description: Data object for updating a Fastly account.
@@ -14345,10 +14351,12 @@ components:
1434514351
custom_url:
1434614352
description: The custom URL for a custom region.
1434714353
example: https://example.com
14354+
format: url
1434814355
type: string
1434914356
name:
1435014357
description: The name for the Opsgenie service.
1435114358
example: fake-opsgenie-service-name
14359+
maxLength: 100
1435214360
type: string
1435314361
opsgenie_api_key:
1435414362
description: The Opsgenie API key for your Opsgenie service.
@@ -14406,11 +14414,13 @@ components:
1440614414
custom_url:
1440714415
description: The custom URL for a custom region.
1440814416
example: null
14417+
format: url
1440914418
nullable: true
1441014419
type: string
1441114420
name:
1441214421
description: The name for the Opsgenie service.
1441314422
example: fake-opsgenie-service-name
14423+
maxLength: 100
1441414424
type: string
1441514425
region:
1441614426
$ref: '#/components/schemas/OpsgenieServiceRegionType'
@@ -14423,6 +14433,8 @@ components:
1442314433
id:
1442414434
description: The ID of the Opsgenie service.
1442514435
example: 596da4af-0563-4097-90ff-07230c3f9db3
14436+
maxLength: 100
14437+
minLength: 1
1442614438
type: string
1442714439
type:
1442814440
$ref: '#/components/schemas/OpsgenieServiceType'
@@ -14446,11 +14458,13 @@ components:
1444614458
custom_url:
1444714459
description: The custom URL for a custom region.
1444814460
example: https://example.com
14461+
format: url
1444914462
nullable: true
1445014463
type: string
1445114464
name:
1445214465
description: The name for the Opsgenie service.
1445314466
example: fake-opsgenie-service-name
14467+
maxLength: 100
1445414468
type: string
1445514469
opsgenie_api_key:
1445614470
description: The Opsgenie API key for your Opsgenie service.
@@ -14467,6 +14481,8 @@ components:
1446714481
id:
1446814482
description: The ID of the Opsgenie service.
1446914483
example: 596da4af-0563-4097-90ff-07230c3f9db3
14484+
maxLength: 100
14485+
minLength: 1
1447014486
type: string
1447114487
type:
1447214488
$ref: '#/components/schemas/OpsgenieServiceType'
@@ -24092,6 +24108,7 @@ components:
2409224108
access to the cloud cost data source in dashboards and notebooks.
2409324109
cloud_cost_management_write: Configure cloud cost accounts and global
2409424110
customizations.
24111+
code_analysis_read: View Code Analysis.
2409524112
continuous_profiler_pgo_read: Read and query Continuous Profiler data
2409624113
for Profile-Guided Optimization (PGO).
2409724114
create_webhooks: Create webhooks integrations.

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 name of the Cloudflare account.
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:

src/datadog_api_client/v2/model/fastly_account_update_request_attributes.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,26 @@ class FastlyAccountUpdateRequestAttributes(ModelNormal):
1818
def openapi_types(_):
1919
return {
2020
"api_key": (str,),
21+
"name": (str,),
2122
}
2223

2324
attribute_map = {
2425
"api_key": "api_key",
26+
"name": "name",
2527
}
2628

27-
def __init__(self_, api_key: Union[str, UnsetType] = unset, **kwargs):
29+
def __init__(self_, api_key: Union[str, UnsetType] = unset, name: Union[str, UnsetType] = unset, **kwargs):
2830
"""
2931
Attributes object for updating a Fastly account.
3032
3133
:param api_key: The API key of the Fastly account.
3234
:type api_key: str, optional
35+
36+
:param name: The name of the Fastly account.
37+
:type name: str, optional
3338
"""
3439
if api_key is not unset:
3540
kwargs["api_key"] = api_key
41+
if name is not unset:
42+
kwargs["name"] = name
3643
super().__init__(kwargs)

src/datadog_api_client/v2/model/opsgenie_service_create_attributes.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818

1919

2020
class OpsgenieServiceCreateAttributes(ModelNormal):
21+
validations = {
22+
"name": {
23+
"max_length": 100,
24+
},
25+
}
26+
2127
@cached_property
2228
def openapi_types(_):
2329
from datadog_api_client.v2.model.opsgenie_service_region_type import OpsgenieServiceRegionType

src/datadog_api_client/v2/model/opsgenie_service_response_attributes.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919

2020

2121
class OpsgenieServiceResponseAttributes(ModelNormal):
22+
validations = {
23+
"name": {
24+
"max_length": 100,
25+
},
26+
}
27+
2228
@cached_property
2329
def openapi_types(_):
2430
from datadog_api_client.v2.model.opsgenie_service_region_type import OpsgenieServiceRegionType

src/datadog_api_client/v2/model/opsgenie_service_response_data.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717

1818

1919
class OpsgenieServiceResponseData(ModelNormal):
20+
validations = {
21+
"id": {
22+
"max_length": 100,
23+
"min_length": 1,
24+
},
25+
}
26+
2027
@cached_property
2128
def openapi_types(_):
2229
from datadog_api_client.v2.model.opsgenie_service_response_attributes import OpsgenieServiceResponseAttributes

src/datadog_api_client/v2/model/opsgenie_service_update_attributes.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919

2020

2121
class OpsgenieServiceUpdateAttributes(ModelNormal):
22+
validations = {
23+
"name": {
24+
"max_length": 100,
25+
},
26+
}
27+
2228
@cached_property
2329
def openapi_types(_):
2430
from datadog_api_client.v2.model.opsgenie_service_region_type import OpsgenieServiceRegionType

src/datadog_api_client/v2/model/opsgenie_service_update_data.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717

1818

1919
class OpsgenieServiceUpdateData(ModelNormal):
20+
validations = {
21+
"id": {
22+
"max_length": 100,
23+
"min_length": 1,
24+
},
25+
}
26+
2027
@cached_property
2128
def openapi_types(_):
2229
from datadog_api_client.v2.model.opsgenie_service_update_attributes import OpsgenieServiceUpdateAttributes

0 commit comments

Comments
 (0)