Skip to content

Commit cd297bf

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Revert "Enable automerging for opsgenie routes." (#248)
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 30fa864 commit cd297bf

File tree

3 files changed

+4
-36
lines changed

3 files changed

+4
-36
lines changed

.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 14:31:49.036839",
8-
"spec_repo_commit": "a4585fac"
7+
"regenerated": "2024-08-19 19:42:23.265574",
8+
"spec_repo_commit": "e0cd2a66"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-19 14:31:49.055085",
13-
"spec_repo_commit": "a4585fac"
12+
"regenerated": "2024-08-19 19:42:23.283513",
13+
"spec_repo_commit": "e0cd2a66"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

-14
Original file line numberDiff line numberDiff line change
@@ -14345,12 +14345,10 @@ components:
1434514345
custom_url:
1434614346
description: The custom URL for a custom region.
1434714347
example: https://example.com
14348-
format: url
1434914348
type: string
1435014349
name:
1435114350
description: The name for the Opsgenie service.
1435214351
example: fake-opsgenie-service-name
14353-
maxLength: 100
1435414352
type: string
1435514353
opsgenie_api_key:
1435614354
description: The Opsgenie API key for your Opsgenie service.
@@ -14408,18 +14406,12 @@ components:
1440814406
custom_url:
1440914407
description: The custom URL for a custom region.
1441014408
example: null
14411-
format: url
1441214409
nullable: true
1441314410
type: string
1441414411
name:
1441514412
description: The name for the Opsgenie service.
1441614413
example: fake-opsgenie-service-name
14417-
maxLength: 100
14418-
type: string
14419-
opsgenie_api_key:
14420-
description: The OpsgenieServiceResponseAttributes opsgenie_api_key.
1442114414
type: string
14422-
writeOnly: true
1442314415
region:
1442414416
$ref: '#/components/schemas/OpsgenieServiceRegionType'
1442514417
type: object
@@ -14431,8 +14423,6 @@ components:
1443114423
id:
1443214424
description: The ID of the Opsgenie service.
1443314425
example: 596da4af-0563-4097-90ff-07230c3f9db3
14434-
maxLength: 100
14435-
minLength: 1
1443614426
type: string
1443714427
type:
1443814428
$ref: '#/components/schemas/OpsgenieServiceType'
@@ -14456,13 +14446,11 @@ components:
1445614446
custom_url:
1445714447
description: The custom URL for a custom region.
1445814448
example: https://example.com
14459-
format: url
1446014449
nullable: true
1446114450
type: string
1446214451
name:
1446314452
description: The name for the Opsgenie service.
1446414453
example: fake-opsgenie-service-name
14465-
maxLength: 100
1446614454
type: string
1446714455
opsgenie_api_key:
1446814456
description: The Opsgenie API key for your Opsgenie service.
@@ -14479,8 +14467,6 @@ components:
1447914467
id:
1448014468
description: The ID of the Opsgenie service.
1448114469
example: 596da4af-0563-4097-90ff-07230c3f9db3
14482-
maxLength: 100
14483-
minLength: 1
1448414470
type: string
1448514471
type:
1448614472
$ref: '#/components/schemas/OpsgenieServiceType'

src/datadogV2/model/model_opsgenie_service_response_attributes.rs

-18
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ 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>,
2724
/// The region for the Opsgenie service.
2825
#[serde(rename = "region")]
2926
pub region: Option<crate::datadogV2::model::OpsgenieServiceRegionType>,
@@ -37,7 +34,6 @@ impl OpsgenieServiceResponseAttributes {
3734
OpsgenieServiceResponseAttributes {
3835
custom_url: None,
3936
name: None,
40-
opsgenie_api_key: None,
4137
region: None,
4238
_unparsed: false,
4339
}
@@ -53,11 +49,6 @@ impl OpsgenieServiceResponseAttributes {
5349
self
5450
}
5551

56-
pub fn opsgenie_api_key(mut self, value: String) -> Self {
57-
self.opsgenie_api_key = Some(value);
58-
self
59-
}
60-
6152
pub fn region(mut self, value: crate::datadogV2::model::OpsgenieServiceRegionType) -> Self {
6253
self.region = Some(value);
6354
self
@@ -89,7 +80,6 @@ impl<'de> Deserialize<'de> for OpsgenieServiceResponseAttributes {
8980
{
9081
let mut custom_url: Option<Option<String>> = None;
9182
let mut name: Option<String> = None;
92-
let mut opsgenie_api_key: Option<String> = None;
9383
let mut region: Option<crate::datadogV2::model::OpsgenieServiceRegionType> = None;
9484
let mut _unparsed = false;
9585

@@ -104,13 +94,6 @@ impl<'de> Deserialize<'de> for OpsgenieServiceResponseAttributes {
10494
}
10595
name = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
10696
}
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-
}
11497
"region" => {
11598
if v.is_null() {
11699
continue;
@@ -132,7 +115,6 @@ impl<'de> Deserialize<'de> for OpsgenieServiceResponseAttributes {
132115
let content = OpsgenieServiceResponseAttributes {
133116
custom_url,
134117
name,
135-
opsgenie_api_key,
136118
region,
137119
_unparsed,
138120
};

0 commit comments

Comments
 (0)