From 1c2efe90e1ed94f3412ebf53c30633d4e0452edb Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 21 Nov 2023 20:41:30 +0000 Subject: [PATCH] Regenerate client from commit be350e98 of spec repo --- .apigentools-info | 8 +++--- .generator/schemas/v2/openapi.yaml | 12 ++++++++ .../v2/models/full_api_key_attributes.rb | 28 ++++++++++++++++--- .../v2/models/partial_api_key_attributes.rb | 28 ++++++++++++++++--- 4 files changed, 64 insertions(+), 12 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 4d230fe25003..e7b554bda148 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2023-11-21 19:36:35.974226", - "spec_repo_commit": "83154a77" + "regenerated": "2023-11-21 20:41:04.448908", + "spec_repo_commit": "be350e98" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2023-11-21 19:36:35.992140", - "spec_repo_commit": "83154a77" + "regenerated": "2023-11-21 20:41:04.462705", + "spec_repo_commit": "be350e98" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index e5fcc05eec22..ebb47a6c62c5 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -6240,6 +6240,9 @@ components: FullAPIKeyAttributes: description: Attributes of a full API key. properties: + category: + description: The category of the API key. + type: string created_at: description: Creation date of the API key. example: '2020-11-23T10:00:00.000Z' @@ -6265,6 +6268,9 @@ components: description: Name of the API key. example: API Key for submitting metrics type: string + remote_config_read_enabled: + description: The remote config read enabled status. + type: boolean type: object FullApplicationKey: description: Datadog application key. @@ -11752,6 +11758,9 @@ components: PartialAPIKeyAttributes: description: Attributes of a partial API key. properties: + category: + description: The category of the API key. + type: string created_at: description: Creation date of the API key. example: '2020-11-23T10:00:00.000Z' @@ -11773,6 +11782,9 @@ components: description: Name of the API key. example: API Key for submitting metrics type: string + remote_config_read_enabled: + description: The remote config read enabled status. + type: boolean type: object PartialApplicationKey: description: Partial Datadog application key. diff --git a/lib/datadog_api_client/v2/models/full_api_key_attributes.rb b/lib/datadog_api_client/v2/models/full_api_key_attributes.rb index 58075855fa84..2e510b6100d9 100644 --- a/lib/datadog_api_client/v2/models/full_api_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/full_api_key_attributes.rb @@ -21,6 +21,9 @@ module DatadogAPIClient::V2 class FullAPIKeyAttributes include BaseGenericModel + # The category of the API key. + attr_accessor :category + # Creation date of the API key. attr_accessor :created_at @@ -36,15 +39,20 @@ class FullAPIKeyAttributes # Name of the API key. attr_accessor :name + # The remote config read enabled status. + attr_accessor :remote_config_read_enabled + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map { + :'category' => :'category', :'created_at' => :'created_at', :'key' => :'key', :'last4' => :'last4', :'modified_at' => :'modified_at', - :'name' => :'name' + :'name' => :'name', + :'remote_config_read_enabled' => :'remote_config_read_enabled' } end @@ -52,11 +60,13 @@ def self.attribute_map # @!visibility private def self.openapi_types { + :'category' => :'String', :'created_at' => :'String', :'key' => :'String', :'last4' => :'String', :'modified_at' => :'String', - :'name' => :'String' + :'name' => :'String', + :'remote_config_read_enabled' => :'Boolean' } end @@ -76,6 +86,10 @@ def initialize(attributes = {}) h[k.to_sym] = v } + if attributes.key?(:'category') + self.category = attributes[:'category'] + end + if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] end @@ -95,6 +109,10 @@ def initialize(attributes = {}) if attributes.key?(:'name') self.name = attributes[:'name'] end + + if attributes.key?(:'remote_config_read_enabled') + self.remote_config_read_enabled = attributes[:'remote_config_read_enabled'] + end end # Check to see if the all the properties in the model are valid @@ -125,18 +143,20 @@ def last4=(last4) def ==(o) return true if self.equal?(o) self.class == o.class && + category == o.category && created_at == o.created_at && key == o.key && last4 == o.last4 && modified_at == o.modified_at && - name == o.name + name == o.name && + remote_config_read_enabled == o.remote_config_read_enabled end # Calculates hash code according to all attributes. # @return [Integer] Hash code # @!visibility private def hash - [created_at, key, last4, modified_at, name].hash + [category, created_at, key, last4, modified_at, name, remote_config_read_enabled].hash end end end diff --git a/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb b/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb index 3faa4e8a2295..ebc7c0e5846e 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb @@ -21,6 +21,9 @@ module DatadogAPIClient::V2 class PartialAPIKeyAttributes include BaseGenericModel + # The category of the API key. + attr_accessor :category + # Creation date of the API key. attr_accessor :created_at @@ -33,14 +36,19 @@ class PartialAPIKeyAttributes # Name of the API key. attr_accessor :name + # The remote config read enabled status. + attr_accessor :remote_config_read_enabled + # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map { + :'category' => :'category', :'created_at' => :'created_at', :'last4' => :'last4', :'modified_at' => :'modified_at', - :'name' => :'name' + :'name' => :'name', + :'remote_config_read_enabled' => :'remote_config_read_enabled' } end @@ -48,10 +56,12 @@ def self.attribute_map # @!visibility private def self.openapi_types { + :'category' => :'String', :'created_at' => :'String', :'last4' => :'String', :'modified_at' => :'String', - :'name' => :'String' + :'name' => :'String', + :'remote_config_read_enabled' => :'Boolean' } end @@ -71,6 +81,10 @@ def initialize(attributes = {}) h[k.to_sym] = v } + if attributes.key?(:'category') + self.category = attributes[:'category'] + end + if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] end @@ -86,6 +100,10 @@ def initialize(attributes = {}) if attributes.key?(:'name') self.name = attributes[:'name'] end + + if attributes.key?(:'remote_config_read_enabled') + self.remote_config_read_enabled = attributes[:'remote_config_read_enabled'] + end end # Check to see if the all the properties in the model are valid @@ -116,17 +134,19 @@ def last4=(last4) def ==(o) return true if self.equal?(o) self.class == o.class && + category == o.category && created_at == o.created_at && last4 == o.last4 && modified_at == o.modified_at && - name == o.name + name == o.name && + remote_config_read_enabled == o.remote_config_read_enabled end # Calculates hash code according to all attributes. # @return [Integer] Hash code # @!visibility private def hash - [created_at, last4, modified_at, name].hash + [category, created_at, last4, modified_at, name, remote_config_read_enabled].hash end end end