Skip to content

Modify owner properties to be a string #500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-03 19:47:07.663734",
"spec_repo_commit": "b52549d9"
"regenerated": "2025-02-04 14:10:06.221297",
"spec_repo_commit": "4fb9047a"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-03 19:47:07.678594",
"spec_repo_commit": "b52549d9"
"regenerated": "2025-02-04 14:10:06.239068",
"spec_repo_commit": "4fb9047a"
}
}
}
10 changes: 2 additions & 8 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10871,7 +10871,8 @@ components:
minLength: 1
type: string
owner:
$ref: '#/components/schemas/EntityV3MetadataOwner'
description: The owner of the entity, usually a team.
type: string
tags:
description: A set of custom tags.
example:
Expand Down Expand Up @@ -10940,13 +10941,6 @@ components:
- type
- url
type: object
EntityV3MetadataOwner:
additionalProperties: false
description: The owner of the entity, usually a team.
properties:
name:
description: Team name.
type: string
EntityV3Queue:
additionalProperties: false
description: Schema for queue entities.
Expand Down
2 changes: 0 additions & 2 deletions src/datadogV2/model/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,6 @@ pub mod model_entity_v3_metadata_contacts_items;
pub use self::model_entity_v3_metadata_contacts_items::EntityV3MetadataContactsItems;
pub mod model_entity_v3_metadata_links_items;
pub use self::model_entity_v3_metadata_links_items::EntityV3MetadataLinksItems;
pub mod model_entity_v3_metadata_owner;
pub use self::model_entity_v3_metadata_owner::EntityV3MetadataOwner;
pub mod model_entity_v3_service_spec;
pub use self::model_entity_v3_service_spec::EntityV3ServiceSpec;
pub mod model_entity_v3_datastore;
Expand Down
6 changes: 3 additions & 3 deletions src/datadogV2/model/model_entity_v3_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub struct EntityV3Metadata {
pub namespace: Option<String>,
/// The owner of the entity, usually a team.
#[serde(rename = "owner")]
pub owner: Option<crate::datadogV2::model::EntityV3MetadataOwner>,
pub owner: Option<String>,
/// A set of custom tags.
#[serde(rename = "tags")]
pub tags: Option<Vec<String>>,
Expand Down Expand Up @@ -126,7 +126,7 @@ impl EntityV3Metadata {
self
}

pub fn owner(mut self, value: crate::datadogV2::model::EntityV3MetadataOwner) -> Self {
pub fn owner(mut self, value: String) -> Self {
self.owner = Some(value);
self
}
Expand Down Expand Up @@ -170,7 +170,7 @@ impl<'de> Deserialize<'de> for EntityV3Metadata {
None;
let mut name: Option<String> = None;
let mut namespace: Option<String> = None;
let mut owner: Option<crate::datadogV2::model::EntityV3MetadataOwner> = None;
let mut owner: Option<String> = None;
let mut tags: Option<Vec<String>> = None;
let mut _unparsed = false;

Expand Down
86 changes: 0 additions & 86 deletions src/datadogV2/model/model_entity_v3_metadata_owner.rs

This file was deleted.

Loading