@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
2121 class RUMApplicationAttributes
2222 include BaseGenericModel
2323
24+ # ID of the API key associated with the application.
25+ attr_reader :api_key_id
26+
2427 # ID of the RUM application.
2528 attr_reader :application_id
2629
@@ -63,6 +66,7 @@ class RUMApplicationAttributes
6366 # @!visibility private
6467 def self . attribute_map
6568 {
69+ :'api_key_id' => :'api_key_id' ,
6670 :'application_id' => :'application_id' ,
6771 :'client_token' => :'client_token' ,
6872 :'created_at' => :'created_at' ,
@@ -82,6 +86,7 @@ def self.attribute_map
8286 # @!visibility private
8387 def self . openapi_types
8488 {
89+ :'api_key_id' => :'Integer' ,
8590 :'application_id' => :'String' ,
8691 :'client_token' => :'String' ,
8792 :'created_at' => :'Integer' ,
@@ -115,6 +120,10 @@ def initialize(attributes = {})
115120 end
116121 }
117122
123+ if attributes . key? ( :'api_key_id' )
124+ self . api_key_id = attributes [ :'api_key_id' ]
125+ end
126+
118127 if attributes . key? ( :'application_id' )
119128 self . application_id = attributes [ :'application_id' ]
120129 end
@@ -168,6 +177,7 @@ def initialize(attributes = {})
168177 # @return true if the model is valid
169178 # @!visibility private
170179 def valid?
180+ return false if !@api_key_id . nil? && @api_key_id > 2147483647
171181 return false if @application_id . nil?
172182 return false if @client_token . nil?
173183 return false if @created_at . nil?
@@ -181,6 +191,16 @@ def valid?
181191 true
182192 end
183193
194+ # Custom attribute writer method with validation
195+ # @param api_key_id [Object] Object to be assigned
196+ # @!visibility private
197+ def api_key_id = ( api_key_id )
198+ if !api_key_id . nil? && api_key_id > 2147483647
199+ fail ArgumentError , 'invalid value for "api_key_id", must be smaller than or equal to 2147483647.'
200+ end
201+ @api_key_id = api_key_id
202+ end
203+
184204 # Custom attribute writer method with validation
185205 # @param application_id [Object] Object to be assigned
186206 # @!visibility private
@@ -300,6 +320,7 @@ def to_hash
300320 def ==( o )
301321 return true if self . equal? ( o )
302322 self . class == o . class &&
323+ api_key_id == o . api_key_id &&
303324 application_id == o . application_id &&
304325 client_token == o . client_token &&
305326 created_at == o . created_at &&
@@ -319,7 +340,7 @@ def ==(o)
319340 # @return [Integer] Hash code
320341 # @!visibility private
321342 def hash
322- [ 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
343+ [ 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
323344 end
324345 end
325346end
0 commit comments