Skip to content

Commit e039b29

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Enable all similar routes (#254)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent dd8b794 commit e039b29

File tree

4 files changed

+55
-4
lines changed

4 files changed

+55
-4
lines changed

Diff for: .apigentools-info

+4-4
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:23.265574",
8-
"spec_repo_commit": "e0cd2a66"
7+
"regenerated": "2024-08-20 17:44:52.739683",
8+
"spec_repo_commit": "2d74b3a8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-19 19:42:23.283513",
13-
"spec_repo_commit": "e0cd2a66"
12+
"regenerated": "2024-08-20 17:44:52.759240",
13+
"spec_repo_commit": "2d74b3a8"
1414
}
1515
}
1616
}

Diff for: .generator/schemas/v2/openapi.yaml

+17
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.

Diff for: src/datadogV2/model/model_cloudflare_account_update_request_attributes.rs

+17
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ pub struct CloudflareAccountUpdateRequestAttributes {
1717
/// The email associated with the Cloudflare account. If an API key is provided (and not a token), this field is also required.
1818
#[serde(rename = "email")]
1919
pub email: Option<String>,
20+
/// The name of the Cloudflare account.
21+
#[serde(rename = "name")]
22+
pub name: Option<String>,
2023
/// An allowlist of resources to restrict pulling metrics for.
2124
#[serde(rename = "resources")]
2225
pub resources: Option<Vec<String>>,
@@ -35,6 +38,7 @@ impl CloudflareAccountUpdateRequestAttributes {
3538
CloudflareAccountUpdateRequestAttributes {
3639
api_key,
3740
email: None,
41+
name: None,
3842
resources: None,
3943
zones: None,
4044
additional_properties: std::collections::BTreeMap::new(),
@@ -47,6 +51,11 @@ impl CloudflareAccountUpdateRequestAttributes {
4751
self
4852
}
4953

54+
pub fn name(mut self, value: String) -> Self {
55+
self.name = Some(value);
56+
self
57+
}
58+
5059
pub fn resources(mut self, value: Vec<String>) -> Self {
5160
self.resources = Some(value);
5261
self
@@ -85,6 +94,7 @@ impl<'de> Deserialize<'de> for CloudflareAccountUpdateRequestAttributes {
8594
{
8695
let mut api_key: Option<String> = None;
8796
let mut email: Option<String> = None;
97+
let mut name: Option<String> = None;
8898
let mut resources: Option<Vec<String>> = None;
8999
let mut zones: Option<Vec<String>> = None;
90100
let mut additional_properties: std::collections::BTreeMap<
@@ -104,6 +114,12 @@ impl<'de> Deserialize<'de> for CloudflareAccountUpdateRequestAttributes {
104114
}
105115
email = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
106116
}
117+
"name" => {
118+
if v.is_null() {
119+
continue;
120+
}
121+
name = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
122+
}
107123
"resources" => {
108124
if v.is_null() {
109125
continue;
@@ -128,6 +144,7 @@ impl<'de> Deserialize<'de> for CloudflareAccountUpdateRequestAttributes {
128144
let content = CloudflareAccountUpdateRequestAttributes {
129145
api_key,
130146
email,
147+
name,
131148
resources,
132149
zones,
133150
additional_properties,

Diff for: src/datadogV2/model/model_fastly_account_update_request_attributes.rs

+17
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ pub struct FastlyAccountUpdateRequestAttributes {
1414
/// The API key of the Fastly account.
1515
#[serde(rename = "api_key")]
1616
pub api_key: Option<String>,
17+
/// The name of the Fastly account.
18+
#[serde(rename = "name")]
19+
pub name: Option<String>,
1720
#[serde(flatten)]
1821
pub additional_properties: std::collections::BTreeMap<String, serde_json::Value>,
1922
#[serde(skip)]
@@ -25,6 +28,7 @@ impl FastlyAccountUpdateRequestAttributes {
2528
pub fn new() -> FastlyAccountUpdateRequestAttributes {
2629
FastlyAccountUpdateRequestAttributes {
2730
api_key: None,
31+
name: None,
2832
additional_properties: std::collections::BTreeMap::new(),
2933
_unparsed: false,
3034
}
@@ -35,6 +39,11 @@ impl FastlyAccountUpdateRequestAttributes {
3539
self
3640
}
3741

42+
pub fn name(mut self, value: String) -> Self {
43+
self.name = Some(value);
44+
self
45+
}
46+
3847
pub fn additional_properties(
3948
mut self,
4049
value: std::collections::BTreeMap<String, serde_json::Value>,
@@ -68,6 +77,7 @@ impl<'de> Deserialize<'de> for FastlyAccountUpdateRequestAttributes {
6877
M: MapAccess<'a>,
6978
{
7079
let mut api_key: Option<String> = None;
80+
let mut name: Option<String> = None;
7181
let mut additional_properties: std::collections::BTreeMap<
7282
String,
7383
serde_json::Value,
@@ -82,6 +92,12 @@ impl<'de> Deserialize<'de> for FastlyAccountUpdateRequestAttributes {
8292
}
8393
api_key = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
8494
}
95+
"name" => {
96+
if v.is_null() {
97+
continue;
98+
}
99+
name = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
100+
}
85101
&_ => {
86102
if let Ok(value) = serde_json::from_value(v.clone()) {
87103
additional_properties.insert(k, value);
@@ -92,6 +108,7 @@ impl<'de> Deserialize<'de> for FastlyAccountUpdateRequestAttributes {
92108

93109
let content = FastlyAccountUpdateRequestAttributes {
94110
api_key,
111+
name,
95112
additional_properties,
96113
_unparsed,
97114
};

0 commit comments

Comments
 (0)