Class: Google::Apis::CloudidentityV1::Device

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudidentity_v1/classes.rb,
generated/google/apis/cloudidentity_v1/representations.rb,
generated/google/apis/cloudidentity_v1/representations.rb

Overview

Represents a Device known to Google Cloud, independent of the device ownership, type, and whether it is assigned or in use by a user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Device

Returns a new instance of Device.



317
318
319
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 317

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#android_specific_attributesGoogle::Apis::CloudidentityV1::AndroidAttributes

Resource representing the Android specific attributes of a Device. Corresponds to the JSON property androidSpecificAttributes



220
221
222
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 220

def android_specific_attributes
  @android_specific_attributes
end

#asset_tagString

Asset tag of the device. Corresponds to the JSON property assetTag

Returns:

  • (String)


225
226
227
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 225

def asset_tag
  @asset_tag
end

#brandString

Output only. Device brand. Example: Samsung. Corresponds to the JSON property brand

Returns:

  • (String)


230
231
232
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 230

def brand
  @brand
end

#compromised_stateString

Output only. Represents whether the Device is compromised. Corresponds to the JSON property compromisedState

Returns:

  • (String)


235
236
237
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 235

def compromised_state
  @compromised_state
end

#create_timeString

Output only. When the Company-Owned device was imported. This field is empty for BYOD devices. Corresponds to the JSON property createTime

Returns:

  • (String)


242
243
244
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 242

def create_time
  @create_time
end

#device_typeString

Output only. Type of device. Corresponds to the JSON property deviceType

Returns:

  • (String)


247
248
249
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 247

def device_type
  @device_type
end

#imeiString

Output only. IMEI number of device if GSM device; empty otherwise. Corresponds to the JSON property imei

Returns:

  • (String)


252
253
254
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 252

def imei
  @imei
end

#last_sync_timeString

Most recent time when device synced with this service. Corresponds to the JSON property lastSyncTime

Returns:

  • (String)


257
258
259
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 257

def last_sync_time
  @last_sync_time
end

#management_stateString

Output only. Management state of the device Corresponds to the JSON property managementState

Returns:

  • (String)


262
263
264
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 262

def management_state
  @management_state
end

#manufacturerString

Output only. Device manufacturer. Example: Motorola. Corresponds to the JSON property manufacturer

Returns:

  • (String)


267
268
269
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 267

def manufacturer
  @manufacturer
end

#meidString

Output only. MEID number of device if CDMA device; empty otherwise. Corresponds to the JSON property meid

Returns:

  • (String)


272
273
274
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 272

def meid
  @meid
end

#modelString

Output only. Model name of device. Example: Pixel 3. Corresponds to the JSON property model

Returns:

  • (String)


277
278
279
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 277

def model
  @model
end

#nameString

Output only. Resource name of the Device in format: devices/device_id`, where device_id is the unique id assigned to the Device. Corresponds to the JSON propertyname`

Returns:

  • (String)


285
286
287
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 285

def name
  @name
end

#network_operatorString

Output only. Mobile or network operator of device, if available. Corresponds to the JSON property networkOperator

Returns:

  • (String)


290
291
292
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 290

def network_operator
  @network_operator
end

#os_versionString

Output only. OS version of the device. Example: Android 8.1.0. Corresponds to the JSON property osVersion

Returns:

  • (String)


295
296
297
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 295

def os_version
  @os_version
end

#owner_typeString

Whether the device is owned by the company or an individual Corresponds to the JSON property ownerType

Returns:

  • (String)


300
301
302
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 300

def owner_type
  @owner_type
end

#release_versionString

Output only. OS release version. Example: 6.0. Corresponds to the JSON property releaseVersion

Returns:

  • (String)


305
306
307
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 305

def release_version
  @release_version
end

#serial_numberString

Serial Number of device. Example: HT82V1A01076. Corresponds to the JSON property serialNumber

Returns:

  • (String)


310
311
312
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 310

def serial_number
  @serial_number
end

#wifi_mac_addressesArray<String>

WiFi MAC addresses of device. Corresponds to the JSON property wifiMacAddresses

Returns:

  • (Array<String>)


315
316
317
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 315

def wifi_mac_addresses
  @wifi_mac_addresses
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 322

def update!(**args)
  @android_specific_attributes = args[:android_specific_attributes] if args.key?(:android_specific_attributes)
  @asset_tag = args[:asset_tag] if args.key?(:asset_tag)
  @brand = args[:brand] if args.key?(:brand)
  @compromised_state = args[:compromised_state] if args.key?(:compromised_state)
  @create_time = args[:create_time] if args.key?(:create_time)
  @device_type = args[:device_type] if args.key?(:device_type)
  @imei = args[:imei] if args.key?(:imei)
  @last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)
  @management_state = args[:management_state] if args.key?(:management_state)
  @manufacturer = args[:manufacturer] if args.key?(:manufacturer)
  @meid = args[:meid] if args.key?(:meid)
  @model = args[:model] if args.key?(:model)
  @name = args[:name] if args.key?(:name)
  @network_operator = args[:network_operator] if args.key?(:network_operator)
  @os_version = args[:os_version] if args.key?(:os_version)
  @owner_type = args[:owner_type] if args.key?(:owner_type)
  @release_version = args[:release_version] if args.key?(:release_version)
  @serial_number = args[:serial_number] if args.key?(:serial_number)
  @wifi_mac_addresses = args[:wifi_mac_addresses] if args.key?(:wifi_mac_addresses)
end