Skip to content

Commit bc2105d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Enable automerging for opsgenie routes. (#243)
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 899e5f4 commit bc2105d

File tree

3 files changed

+36
-4
lines changed

3 files changed

+36
-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-14 20:56:46.221075",
8-
"spec_repo_commit": "dcc3176b"
7+
"regenerated": "2024-08-14 22:02:41.175864",
8+
"spec_repo_commit": "5e33062a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-14 20:56:46.241942",
13-
"spec_repo_commit": "dcc3176b"
12+
"regenerated": "2024-08-14 22:02:41.194584",
13+
"spec_repo_commit": "5e33062a"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14304,10 +14304,12 @@ components:
1430414304
custom_url:
1430514305
description: The custom URL for a custom region.
1430614306
example: https://example.com
14307+
format: url
1430714308
type: string
1430814309
name:
1430914310
description: The name for the Opsgenie service.
1431014311
example: fake-opsgenie-service-name
14312+
maxLength: 100
1431114313
type: string
1431214314
opsgenie_api_key:
1431314315
description: The Opsgenie API key for your Opsgenie service.
@@ -14365,12 +14367,18 @@ components:
1436514367
custom_url:
1436614368
description: The custom URL for a custom region.
1436714369
example: null
14370+
format: url
1436814371
nullable: true
1436914372
type: string
1437014373
name:
1437114374
description: The name for the Opsgenie service.
1437214375
example: fake-opsgenie-service-name
14376+
maxLength: 100
14377+
type: string
14378+
opsgenie_api_key:
14379+
description: The OpsgenieServiceResponseAttributes opsgenie_api_key.
1437314380
type: string
14381+
writeOnly: true
1437414382
region:
1437514383
$ref: '#/components/schemas/OpsgenieServiceRegionType'
1437614384
type: object
@@ -14382,6 +14390,8 @@ components:
1438214390
id:
1438314391
description: The ID of the Opsgenie service.
1438414392
example: 596da4af-0563-4097-90ff-07230c3f9db3
14393+
maxLength: 100
14394+
minLength: 1
1438514395
type: string
1438614396
type:
1438714397
$ref: '#/components/schemas/OpsgenieServiceType'
@@ -14405,11 +14415,13 @@ components:
1440514415
custom_url:
1440614416
description: The custom URL for a custom region.
1440714417
example: https://example.com
14418+
format: url
1440814419
nullable: true
1440914420
type: string
1441014421
name:
1441114422
description: The name for the Opsgenie service.
1441214423
example: fake-opsgenie-service-name
14424+
maxLength: 100
1441314425
type: string
1441414426
opsgenie_api_key:
1441514427
description: The Opsgenie API key for your Opsgenie service.
@@ -14426,6 +14438,8 @@ components:
1442614438
id:
1442714439
description: The ID of the Opsgenie service.
1442814440
example: 596da4af-0563-4097-90ff-07230c3f9db3
14441+
maxLength: 100
14442+
minLength: 1
1442914443
type: string
1443014444
type:
1443114445
$ref: '#/components/schemas/OpsgenieServiceType'

src/datadogV2/model/model_opsgenie_service_response_attributes.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ pub struct OpsgenieServiceResponseAttributes {
2121
/// The name for the Opsgenie service.
2222
#[serde(rename = "name")]
2323
pub name: Option<String>,
24+
/// The OpsgenieServiceResponseAttributes opsgenie_api_key.
25+
#[serde(rename = "opsgenie_api_key")]
26+
pub opsgenie_api_key: Option<String>,
2427
/// The region for the Opsgenie service.
2528
#[serde(rename = "region")]
2629
pub region: Option<crate::datadogV2::model::OpsgenieServiceRegionType>,
@@ -34,6 +37,7 @@ impl OpsgenieServiceResponseAttributes {
3437
OpsgenieServiceResponseAttributes {
3538
custom_url: None,
3639
name: None,
40+
opsgenie_api_key: None,
3741
region: None,
3842
_unparsed: false,
3943
}
@@ -49,6 +53,11 @@ impl OpsgenieServiceResponseAttributes {
4953
self
5054
}
5155

56+
pub fn opsgenie_api_key(mut self, value: String) -> Self {
57+
self.opsgenie_api_key = Some(value);
58+
self
59+
}
60+
5261
pub fn region(mut self, value: crate::datadogV2::model::OpsgenieServiceRegionType) -> Self {
5362
self.region = Some(value);
5463
self
@@ -80,6 +89,7 @@ impl<'de> Deserialize<'de> for OpsgenieServiceResponseAttributes {
8089
{
8190
let mut custom_url: Option<Option<String>> = None;
8291
let mut name: Option<String> = None;
92+
let mut opsgenie_api_key: Option<String> = None;
8393
let mut region: Option<crate::datadogV2::model::OpsgenieServiceRegionType> = None;
8494
let mut _unparsed = false;
8595

@@ -94,6 +104,13 @@ impl<'de> Deserialize<'de> for OpsgenieServiceResponseAttributes {
94104
}
95105
name = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
96106
}
107+
"opsgenie_api_key" => {
108+
if v.is_null() {
109+
continue;
110+
}
111+
opsgenie_api_key =
112+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
113+
}
97114
"region" => {
98115
if v.is_null() {
99116
continue;
@@ -115,6 +132,7 @@ impl<'de> Deserialize<'de> for OpsgenieServiceResponseAttributes {
115132
let content = OpsgenieServiceResponseAttributes {
116133
custom_url,
117134
name,
135+
opsgenie_api_key,
118136
region,
119137
_unparsed,
120138
};

0 commit comments

Comments
 (0)