Class: OCI::IdentityDomains::Models::UserExtDevices
- Inherits:
- 
      Object
      
        - Object
- OCI::IdentityDomains::Models::UserExtDevices
 
- Defined in:
- lib/oci/identity_domains/models/user_ext_devices.rb
Overview
A list of devices enrolled by the user.
Added In: 18.3.6
SCIM++ Properties: - idcsCompositeKey: [value] - multiValued: true - mutability: readOnly - required: false - returned: request - type: complex - uniqueness: none
Instance Attribute Summary collapse
- 
  
    
      #authentication_method  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The authentication method. 
- 
  
    
      #display  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A human readable name, primarily used for display purposes. 
- 
  
    
      #factor_status  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The device authentication factor status. 
- 
  
    
      #factor_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The device authentication factor type. 
- 
  
    
      #last_sync_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The last sync time for device. 
- 
  
    
      #ref  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The URI of the corresponding Device resource which belongs to user. 
- 
  
    
      #status  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The device's status. 
- 
  
    
      #third_party_vendor_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The third-party factor vendor name. 
- 
  
    
      #value  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Required] The user's device identifier. 
Class Method Summary collapse
- 
  
    
      .attribute_map  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Attribute mapping from ruby-style variable name to JSON key. 
- 
  
    
      .swagger_types  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Attribute type mapping. 
Instance Method Summary collapse
- 
  
    
      #==(other)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Checks equality by comparing each attribute. 
- 
  
    
      #build_from_hash(attributes)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Builds the object from hash. 
- #eql?(other) ⇒ Boolean
- 
  
    
      #hash  ⇒ Fixnum 
    
    
  
  
  
  
  
  
  
  
  
    Calculates hash code according to all attributes. 
- 
  
    
      #initialize(attributes = {})  ⇒ UserExtDevices 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    Initializes the object. 
- 
  
    
      #to_hash  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    Returns the object in the form of hash. 
- 
  
    
      #to_s  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    Returns the string representation of the object. 
Constructor Details
#initialize(attributes = {}) ⇒ UserExtDevices
Initializes the object
| 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 | # File 'lib/oci/identity_domains/models/user_ext_devices.rb', line 207 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.value = attributes[:'value'] if attributes[:'value'] self.ref = attributes[:'$ref'] if attributes[:'$ref'] self.display = attributes[:'display'] if attributes[:'display'] self.status = attributes[:'status'] if attributes[:'status'] self.last_sync_time = attributes[:'lastSyncTime'] if attributes[:'lastSyncTime'] raise 'You cannot provide both :lastSyncTime and :last_sync_time' if attributes.key?(:'lastSyncTime') && attributes.key?(:'last_sync_time') self.last_sync_time = attributes[:'last_sync_time'] if attributes[:'last_sync_time'] self.factor_type = attributes[:'factorType'] if attributes[:'factorType'] raise 'You cannot provide both :factorType and :factor_type' if attributes.key?(:'factorType') && attributes.key?(:'factor_type') self.factor_type = attributes[:'factor_type'] if attributes[:'factor_type'] self.factor_status = attributes[:'factorStatus'] if attributes[:'factorStatus'] raise 'You cannot provide both :factorStatus and :factor_status' if attributes.key?(:'factorStatus') && attributes.key?(:'factor_status') self.factor_status = attributes[:'factor_status'] if attributes[:'factor_status'] self.authentication_method = attributes[:'authenticationMethod'] if attributes[:'authenticationMethod'] raise 'You cannot provide both :authenticationMethod and :authentication_method' if attributes.key?(:'authenticationMethod') && attributes.key?(:'authentication_method') self.authentication_method = attributes[:'authentication_method'] if attributes[:'authentication_method'] self.third_party_vendor_name = attributes[:'thirdPartyVendorName'] if attributes[:'thirdPartyVendorName'] raise 'You cannot provide both :thirdPartyVendorName and :third_party_vendor_name' if attributes.key?(:'thirdPartyVendorName') && attributes.key?(:'third_party_vendor_name') self.third_party_vendor_name = attributes[:'third_party_vendor_name'] if attributes[:'third_party_vendor_name'] end | 
Instance Attribute Details
#authentication_method ⇒ String
The authentication method.
Added In: 2009232244
SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none
| 141 142 143 | # File 'lib/oci/identity_domains/models/user_ext_devices.rb', line 141 def authentication_method @authentication_method end | 
#display ⇒ String
A human readable name, primarily used for display purposes. READ-ONLY.
Added In: 18.3.6
SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none
| 66 67 68 | # File 'lib/oci/identity_domains/models/user_ext_devices.rb', line 66 def display @display end | 
#factor_status ⇒ String
The device authentication factor status.
Added In: 18.4.2
SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none
| 126 127 128 | # File 'lib/oci/identity_domains/models/user_ext_devices.rb', line 126 def factor_status @factor_status end | 
#factor_type ⇒ String
The device authentication factor type.
Added In: 18.4.2
SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none
| 111 112 113 | # File 'lib/oci/identity_domains/models/user_ext_devices.rb', line 111 def factor_type @factor_type end | 
#last_sync_time ⇒ String
The last sync time for device.
Added In: 18.4.2
SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: dateTime - uniqueness: none
| 96 97 98 | # File 'lib/oci/identity_domains/models/user_ext_devices.rb', line 96 def last_sync_time @last_sync_time end | 
#ref ⇒ String
The URI of the corresponding Device resource which belongs to user.
Added In: 18.3.6
SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: reference - uniqueness: none
| 51 52 53 | # File 'lib/oci/identity_domains/models/user_ext_devices.rb', line 51 def ref @ref end | 
#status ⇒ String
The device's status.
Added In: 18.4.2
SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none
| 81 82 83 | # File 'lib/oci/identity_domains/models/user_ext_devices.rb', line 81 def status @status end | 
#third_party_vendor_name ⇒ String
The third-party factor vendor name.
Added In: 2009232244
SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none
| 156 157 158 | # File 'lib/oci/identity_domains/models/user_ext_devices.rb', line 156 def third_party_vendor_name @third_party_vendor_name end | 
#value ⇒ String
[Required] The user's device identifier.
Added In: 18.3.6
SCIM++ Properties: - caseExact: true - idcsSearchable: true - multiValued: false - mutability: readOnly - required: true - returned: always - type: string - uniqueness: none
| 36 37 38 | # File 'lib/oci/identity_domains/models/user_ext_devices.rb', line 36 def value @value end | 
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
| 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 | # File 'lib/oci/identity_domains/models/user_ext_devices.rb', line 159 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'value': :'value', 'ref': :'$ref', 'display': :'display', 'status': :'status', 'last_sync_time': :'lastSyncTime', 'factor_type': :'factorType', 'factor_status': :'factorStatus', 'authentication_method': :'authenticationMethod', 'third_party_vendor_name': :'thirdPartyVendorName' # rubocop:enable Style/SymbolLiteral } end | 
.swagger_types ⇒ Object
Attribute type mapping.
| 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | # File 'lib/oci/identity_domains/models/user_ext_devices.rb', line 176 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'value': :'String', 'ref': :'String', 'display': :'String', 'status': :'String', 'last_sync_time': :'String', 'factor_type': :'String', 'factor_status': :'String', 'authentication_method': :'String', 'third_party_vendor_name': :'String' # rubocop:enable Style/SymbolLiteral } end | 
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
| 259 260 261 262 263 264 265 266 267 268 269 270 271 272 | # File 'lib/oci/identity_domains/models/user_ext_devices.rb', line 259 def ==(other) return true if equal?(other) self.class == other.class && value == other.value && ref == other.ref && display == other.display && status == other.status && last_sync_time == other.last_sync_time && factor_type == other.factor_type && factor_status == other.factor_status && authentication_method == other.authentication_method && third_party_vendor_name == other.third_party_vendor_name end | 
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
| 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 | # File 'lib/oci/identity_domains/models/user_ext_devices.rb', line 297 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end | 
#eql?(other) ⇒ Boolean
| 277 278 279 | # File 'lib/oci/identity_domains/models/user_ext_devices.rb', line 277 def eql?(other) self == other end | 
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
| 286 287 288 | # File 'lib/oci/identity_domains/models/user_ext_devices.rb', line 286 def hash [value, ref, display, status, last_sync_time, factor_type, factor_status, authentication_method, third_party_vendor_name].hash end | 
#to_hash ⇒ Hash
Returns the object in the form of hash
| 330 331 332 333 334 335 336 337 338 339 | # File 'lib/oci/identity_domains/models/user_ext_devices.rb', line 330 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end | 
#to_s ⇒ String
Returns the string representation of the object
| 324 325 326 | # File 'lib/oci/identity_domains/models/user_ext_devices.rb', line 324 def to_s to_hash.to_s end |