Class: Google::Apis::CloudidentityV1::DeviceUser

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

A DeviceUser is a resource representing a user's use of a Device

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) ⇒ DeviceUser

Returns a new instance of DeviceUser.



397
398
399
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 397

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

Instance Attribute Details

#compromised_stateString

Compromised State of the DeviceUser object Corresponds to the JSON property compromisedState

Returns:

  • (String)


352
353
354
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 352

def compromised_state
  @compromised_state
end

#first_sync_timeString

Output only. Most recent time when user registered with this service. Corresponds to the JSON property firstSyncTime

Returns:

  • (String)


357
358
359
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 357

def first_sync_time
  @first_sync_time
end

#language_codeString

Output only. Default locale used on device, in IETF BCP-47 format. Corresponds to the JSON property languageCode

Returns:

  • (String)


362
363
364
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 362

def language_code
  @language_code
end

#last_sync_timeString

Output only. Last time when user synced with policies. Corresponds to the JSON property lastSyncTime

Returns:

  • (String)


367
368
369
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 367

def last_sync_time
  @last_sync_time
end

#management_stateString

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

Returns:

  • (String)


372
373
374
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 372

def management_state
  @management_state
end

#nameString

Output only. Resource name of the DeviceUser in format: devices/device_id/deviceUsers/user_id`, where user_id is the ID of the user associated with the user session. Corresponds to the JSON propertyname`

Returns:

  • (String)


380
381
382
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 380

def name
  @name
end

#password_stateString

Password state of the DeviceUser object Corresponds to the JSON property passwordState

Returns:

  • (String)


385
386
387
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 385

def password_state
  @password_state
end

#user_agentString

Output only. User agent on the device for this specific user Corresponds to the JSON property userAgent

Returns:

  • (String)


390
391
392
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 390

def user_agent
  @user_agent
end

#user_emailString

Email address of the user registered on the device. Corresponds to the JSON property userEmail

Returns:

  • (String)


395
396
397
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 395

def user_email
  @user_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



402
403
404
405
406
407
408
409
410
411
412
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 402

def update!(**args)
  @compromised_state = args[:compromised_state] if args.key?(:compromised_state)
  @first_sync_time = args[:first_sync_time] if args.key?(:first_sync_time)
  @language_code = args[:language_code] if args.key?(:language_code)
  @last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)
  @management_state = args[:management_state] if args.key?(:management_state)
  @name = args[:name] if args.key?(:name)
  @password_state = args[:password_state] if args.key?(:password_state)
  @user_agent = args[:user_agent] if args.key?(:user_agent)
  @user_email = args[:user_email] if args.key?(:user_email)
end