Skip to content

Commit 3d1b9cb

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Modify owner properties to be a string (#500)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 3847927 commit 3d1b9cb

File tree

5 files changed

+9
-103
lines changed

5 files changed

+9
-103
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": "2025-02-03 19:47:07.663734",
8-
"spec_repo_commit": "b52549d9"
7+
"regenerated": "2025-02-04 14:10:06.221297",
8+
"spec_repo_commit": "4fb9047a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-03 19:47:07.678594",
13-
"spec_repo_commit": "b52549d9"
12+
"regenerated": "2025-02-04 14:10:06.239068",
13+
"spec_repo_commit": "4fb9047a"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10871,7 +10871,8 @@ components:
1087110871
minLength: 1
1087210872
type: string
1087310873
owner:
10874-
$ref: '#/components/schemas/EntityV3MetadataOwner'
10874+
description: The owner of the entity, usually a team.
10875+
type: string
1087510876
tags:
1087610877
description: A set of custom tags.
1087710878
example:
@@ -10940,13 +10941,6 @@ components:
1094010941
- type
1094110942
- url
1094210943
type: object
10943-
EntityV3MetadataOwner:
10944-
additionalProperties: false
10945-
description: The owner of the entity, usually a team.
10946-
properties:
10947-
name:
10948-
description: Team name.
10949-
type: string
1095010944
EntityV3Queue:
1095110945
additionalProperties: false
1095210946
description: Schema for queue entities.

src/datadogV2/model/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,8 +678,6 @@ pub mod model_entity_v3_metadata_contacts_items;
678678
pub use self::model_entity_v3_metadata_contacts_items::EntityV3MetadataContactsItems;
679679
pub mod model_entity_v3_metadata_links_items;
680680
pub use self::model_entity_v3_metadata_links_items::EntityV3MetadataLinksItems;
681-
pub mod model_entity_v3_metadata_owner;
682-
pub use self::model_entity_v3_metadata_owner::EntityV3MetadataOwner;
683681
pub mod model_entity_v3_service_spec;
684682
pub use self::model_entity_v3_service_spec::EntityV3ServiceSpec;
685683
pub mod model_entity_v3_datastore;

src/datadogV2/model/model_entity_v3_metadata.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub struct EntityV3Metadata {
4444
pub namespace: Option<String>,
4545
/// The owner of the entity, usually a team.
4646
#[serde(rename = "owner")]
47-
pub owner: Option<crate::datadogV2::model::EntityV3MetadataOwner>,
47+
pub owner: Option<String>,
4848
/// A set of custom tags.
4949
#[serde(rename = "tags")]
5050
pub tags: Option<Vec<String>>,
@@ -126,7 +126,7 @@ impl EntityV3Metadata {
126126
self
127127
}
128128

129-
pub fn owner(mut self, value: crate::datadogV2::model::EntityV3MetadataOwner) -> Self {
129+
pub fn owner(mut self, value: String) -> Self {
130130
self.owner = Some(value);
131131
self
132132
}
@@ -170,7 +170,7 @@ impl<'de> Deserialize<'de> for EntityV3Metadata {
170170
None;
171171
let mut name: Option<String> = None;
172172
let mut namespace: Option<String> = None;
173-
let mut owner: Option<crate::datadogV2::model::EntityV3MetadataOwner> = None;
173+
let mut owner: Option<String> = None;
174174
let mut tags: Option<Vec<String>> = None;
175175
let mut _unparsed = false;
176176

src/datadogV2/model/model_entity_v3_metadata_owner.rs

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)