diff --git a/.apigentools-info b/.apigentools-info index 8149b4715fb..f74f634c83a 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-08-12 20:42:16.724787", - "spec_repo_commit": "7a16d6c5" + "regenerated": "2024-08-14 20:10:56.970167", + "spec_repo_commit": "fafdefa8" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-08-12 20:42:16.744063", - "spec_repo_commit": "7a16d6c5" + "regenerated": "2024-08-14 20:10:56.988392", + "spec_repo_commit": "fafdefa8" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 3a325ed5d99..bb272ab3ef4 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -4412,6 +4412,10 @@ components: CloudflareAccountResponseAttributes: description: Attributes object of a Cloudflare account. properties: + api_key: + description: The CloudflareAccountResponseAttributes api_key. + type: string + writeOnly: true email: description: The email associated with the Cloudflare account. example: test-email@example.com @@ -4484,6 +4488,9 @@ components: key is provided (and not a token), this field is also required. example: test-email@example.com type: string + name: + description: The CloudflareAccountUpdateRequestAttributes name. + type: string resources: description: An allowlist of resources to restrict pulling metrics for. example: diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb b/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb index 876a6964800..89ba72cbfcd 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb @@ -21,6 +21,9 @@ module DatadogAPIClient::V2 class CloudflareAccountResponseAttributes include BaseGenericModel + # The CloudflareAccountResponseAttributes api_key. + attr_accessor :api_key + # The email associated with the Cloudflare account. attr_accessor :email @@ -37,6 +40,7 @@ class CloudflareAccountResponseAttributes # @!visibility private def self.attribute_map { + :'api_key' => :'api_key', :'email' => :'email', :'name' => :'name', :'resources' => :'resources', @@ -48,6 +52,7 @@ def self.attribute_map # @!visibility private def self.openapi_types { + :'api_key' => :'String', :'email' => :'String', :'name' => :'String', :'resources' => :'Array', @@ -71,6 +76,10 @@ def initialize(attributes = {}) h[k.to_sym] = v } + if attributes.key?(:'api_key') + self.api_key = attributes[:'api_key'] + end + if attributes.key?(:'email') self.email = attributes[:'email'] end @@ -116,6 +125,7 @@ def name=(name) def ==(o) return true if self.equal?(o) self.class == o.class && + api_key == o.api_key && email == o.email && name == o.name && resources == o.resources && @@ -126,7 +136,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [email, name, resources, zones].hash + [api_key, email, name, resources, zones].hash end end end diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb b/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb index 5ae05fb9923..844cda9bb22 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb @@ -27,6 +27,9 @@ class CloudflareAccountUpdateRequestAttributes # The email associated with the Cloudflare account. If an API key is provided (and not a token), this field is also required. attr_accessor :email + # The CloudflareAccountUpdateRequestAttributes name. + attr_accessor :name + # An allowlist of resources to restrict pulling metrics for. attr_accessor :resources @@ -39,6 +42,7 @@ def self.attribute_map { :'api_key' => :'api_key', :'email' => :'email', + :'name' => :'name', :'resources' => :'resources', :'zones' => :'zones' } @@ -50,6 +54,7 @@ def self.openapi_types { :'api_key' => :'String', :'email' => :'String', + :'name' => :'String', :'resources' => :'Array', :'zones' => :'Array' } @@ -79,6 +84,10 @@ def initialize(attributes = {}) self.email = attributes[:'email'] end + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + if attributes.key?(:'resources') if (value = attributes[:'resources']).is_a?(Array) self.resources = value @@ -118,6 +127,7 @@ def ==(o) self.class == o.class && api_key == o.api_key && email == o.email && + name == o.name && resources == o.resources && zones == o.zones end @@ -126,7 +136,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [api_key, email, resources, zones].hash + [api_key, email, name, resources, zones].hash end end end