diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index f3d3ffaa56b..5051b689027 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -35837,6 +35837,12 @@ components: RUMApplicationAttributes: description: RUM application attributes. properties: + api_key_id: + description: ID of the API key associated with the application. + example: 123456789 + format: int32 + maximum: 2147483647 + type: integer application_id: description: ID of the RUM application. example: abcd1234-0000-0000-abcd-1234abcd5678 diff --git a/lib/datadog_api_client/v2/models/rum_application_attributes.rb b/lib/datadog_api_client/v2/models/rum_application_attributes.rb index de3aba8ee6b..b5084282cae 100644 --- a/lib/datadog_api_client/v2/models/rum_application_attributes.rb +++ b/lib/datadog_api_client/v2/models/rum_application_attributes.rb @@ -21,6 +21,9 @@ module DatadogAPIClient::V2 class RUMApplicationAttributes include BaseGenericModel + # ID of the API key associated with the application. + attr_reader :api_key_id + # ID of the RUM application. attr_reader :application_id @@ -63,6 +66,7 @@ class RUMApplicationAttributes # @!visibility private def self.attribute_map { + :'api_key_id' => :'api_key_id', :'application_id' => :'application_id', :'client_token' => :'client_token', :'created_at' => :'created_at', @@ -82,6 +86,7 @@ def self.attribute_map # @!visibility private def self.openapi_types { + :'api_key_id' => :'Integer', :'application_id' => :'String', :'client_token' => :'String', :'created_at' => :'Integer', @@ -115,6 +120,10 @@ def initialize(attributes = {}) end } + if attributes.key?(:'api_key_id') + self.api_key_id = attributes[:'api_key_id'] + end + if attributes.key?(:'application_id') self.application_id = attributes[:'application_id'] end @@ -168,6 +177,7 @@ def initialize(attributes = {}) # @return true if the model is valid # @!visibility private def valid? + return false if !@api_key_id.nil? && @api_key_id > 2147483647 return false if @application_id.nil? return false if @client_token.nil? return false if @created_at.nil? @@ -181,6 +191,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param api_key_id [Object] Object to be assigned + # @!visibility private + def api_key_id=(api_key_id) + if !api_key_id.nil? && api_key_id > 2147483647 + fail ArgumentError, 'invalid value for "api_key_id", must be smaller than or equal to 2147483647.' + end + @api_key_id = api_key_id + end + # Custom attribute writer method with validation # @param application_id [Object] Object to be assigned # @!visibility private @@ -300,6 +320,7 @@ def to_hash def ==(o) return true if self.equal?(o) self.class == o.class && + api_key_id == o.api_key_id && application_id == o.application_id && client_token == o.client_token && created_at == o.created_at && @@ -319,7 +340,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [application_id, client_token, created_at, created_by_handle, _hash, is_active, name, org_id, product_scales, type, updated_at, updated_by_handle, additional_properties].hash + [api_key_id, application_id, client_token, created_at, created_by_handle, _hash, is_active, name, org_id, product_scales, type, updated_at, updated_by_handle, additional_properties].hash end end end