diff --git a/.apigentools-info b/.apigentools-info index 8b543606a379..88c58be4cbf2 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-02-03 19:47:16.708391", - "spec_repo_commit": "b52549d9" + "regenerated": "2025-02-04 14:10:05.819748", + "spec_repo_commit": "4fb9047a" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-02-03 19:47:16.725832", - "spec_repo_commit": "b52549d9" + "regenerated": "2025-02-04 14:10:05.835266", + "spec_repo_commit": "4fb9047a" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 81b665a9cf39..831530e2584b 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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: @@ -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. diff --git a/lib/datadog_api_client/inflector.rb b/lib/datadog_api_client/inflector.rb index 07a42cfa418c..d77c46229ab8 100644 --- a/lib/datadog_api_client/inflector.rb +++ b/lib/datadog_api_client/inflector.rb @@ -1536,7 +1536,6 @@ def overrides "v2.entity_v3_metadata_additional_owners_items" => "EntityV3MetadataAdditionalOwnersItems", "v2.entity_v3_metadata_contacts_items" => "EntityV3MetadataContactsItems", "v2.entity_v3_metadata_links_items" => "EntityV3MetadataLinksItems", - "v2.entity_v3_metadata_owner" => "EntityV3MetadataOwner", "v2.entity_v3_queue" => "EntityV3Queue", "v2.entity_v3_queue_datadog" => "EntityV3QueueDatadog", "v2.entity_v3_queue_kind" => "EntityV3QueueKind", diff --git a/lib/datadog_api_client/v2/models/entity_v3_metadata.rb b/lib/datadog_api_client/v2/models/entity_v3_metadata.rb index 39b8d1586302..6993bf7c647f 100644 --- a/lib/datadog_api_client/v2/models/entity_v3_metadata.rb +++ b/lib/datadog_api_client/v2/models/entity_v3_metadata.rb @@ -90,7 +90,7 @@ def self.openapi_types :'managed' => :'Hash', :'name' => :'String', :'namespace' => :'String', - :'owner' => :'EntityV3MetadataOwner', + :'owner' => :'String', :'tags' => :'Array' } end diff --git a/lib/datadog_api_client/v2/models/entity_v3_metadata_owner.rb b/lib/datadog_api_client/v2/models/entity_v3_metadata_owner.rb deleted file mode 100644 index a8357b3dff01..000000000000 --- a/lib/datadog_api_client/v2/models/entity_v3_metadata_owner.rb +++ /dev/null @@ -1,80 +0,0 @@ -=begin -#Datadog API V2 Collection - -#Collection of all Datadog Public endpoints. - -The version of the OpenAPI document: 1.0 -Contact: support@datadoghq.com -Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator - - Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - This product includes software developed at Datadog (https://www.datadoghq.com/). - Copyright 2020-Present Datadog, Inc. - -=end - -require 'date' -require 'time' - -module DatadogAPIClient::V2 - # The owner of the entity, usually a team. - class EntityV3MetadataOwner - include BaseGenericModel - - # Team name. - attr_accessor :name - - # Attribute mapping from ruby-style variable name to JSON key. - # @!visibility private - def self.attribute_map - { - :'name' => :'name' - } - end - - # Attribute type mapping. - # @!visibility private - def self.openapi_types - { - :'name' => :'String' - } - end - - # Initializes the object - # @param attributes [Hash] Model attributes in the form of hash - # @!visibility private - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EntityV3MetadataOwner` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EntityV3MetadataOwner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - end - - # Checks equality by comparing each attribute. - # @param o [Object] Object to be compared - # @!visibility private - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - # @!visibility private - def hash - [name].hash - end - end -end