Skip to content

Commit 1e12106

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
change schema used in FastlyServicesResponse (#304)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent fcf212f commit 1e12106

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
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-09-23 19:10:18.896643",
8-
"spec_repo_commit": "41592dc6"
7+
"regenerated": "2024-09-24 13:39:54.310752",
8+
"spec_repo_commit": "7752efd3"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-09-23 19:10:18.910900",
13-
"spec_repo_commit": "41592dc6"
12+
"regenerated": "2024-09-24 13:39:54.325117",
13+
"spec_repo_commit": "7752efd3"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9200,7 +9200,7 @@ components:
92009200
data:
92019201
description: The JSON:API data schema.
92029202
items:
9203-
$ref: '#/components/schemas/FastlyServiceResponse'
9203+
$ref: '#/components/schemas/FastlyServiceData'
92049204
type: array
92059205
type: object
92069206
Finding:

src/datadogV2/model/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,8 +1396,6 @@ pub mod model_fastly_account_update_request_attributes;
13961396
pub use self::model_fastly_account_update_request_attributes::FastlyAccountUpdateRequestAttributes;
13971397
pub mod model_fastly_services_response;
13981398
pub use self::model_fastly_services_response::FastlyServicesResponse;
1399-
pub mod model_fastly_service_response;
1400-
pub use self::model_fastly_service_response::FastlyServiceResponse;
14011399
pub mod model_fastly_service_data;
14021400
pub use self::model_fastly_service_data::FastlyServiceData;
14031401
pub mod model_fastly_service_attributes;
@@ -1406,6 +1404,8 @@ pub mod model_fastly_service_type;
14061404
pub use self::model_fastly_service_type::FastlyServiceType;
14071405
pub mod model_fastly_service_request;
14081406
pub use self::model_fastly_service_request::FastlyServiceRequest;
1407+
pub mod model_fastly_service_response;
1408+
pub use self::model_fastly_service_response::FastlyServiceResponse;
14091409
pub mod model_okta_accounts_response;
14101410
pub use self::model_okta_accounts_response::OktaAccountsResponse;
14111411
pub mod model_okta_account_response_data;

src/datadogV2/model/model_fastly_services_response.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::fmt::{self, Formatter};
1313
pub struct FastlyServicesResponse {
1414
/// The JSON:API data schema.
1515
#[serde(rename = "data")]
16-
pub data: Option<Vec<crate::datadogV2::model::FastlyServiceResponse>>,
16+
pub data: Option<Vec<crate::datadogV2::model::FastlyServiceData>>,
1717
#[serde(flatten)]
1818
pub additional_properties: std::collections::BTreeMap<String, serde_json::Value>,
1919
#[serde(skip)]
@@ -30,7 +30,7 @@ impl FastlyServicesResponse {
3030
}
3131
}
3232

33-
pub fn data(mut self, value: Vec<crate::datadogV2::model::FastlyServiceResponse>) -> Self {
33+
pub fn data(mut self, value: Vec<crate::datadogV2::model::FastlyServiceData>) -> Self {
3434
self.data = Some(value);
3535
self
3636
}
@@ -67,7 +67,7 @@ impl<'de> Deserialize<'de> for FastlyServicesResponse {
6767
where
6868
M: MapAccess<'a>,
6969
{
70-
let mut data: Option<Vec<crate::datadogV2::model::FastlyServiceResponse>> = None;
70+
let mut data: Option<Vec<crate::datadogV2::model::FastlyServiceData>> = None;
7171
let mut additional_properties: std::collections::BTreeMap<
7272
String,
7373
serde_json::Value,

0 commit comments

Comments
 (0)