Class: Google::Apis::CloudidentityV1beta1::ClientState

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

Overview

Represents the state associated with an API client calling the Devices API. Resource representing ClientState and supports updates from API users

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClientState

Returns a new instance of ClientState.



511
512
513
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 511

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

Instance Attribute Details

#asset_tagsArray<String>

The caller can specify asset tags for this resource Corresponds to the JSON property assetTags

Returns:

  • (Array<String>)


447
448
449
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 447

def asset_tags
  @asset_tags
end

#compliance_stateString

The compliance state of the resource as specified by the API client. Corresponds to the JSON property complianceState

Returns:

  • (String)


452
453
454
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 452

def compliance_state
  @compliance_state
end

#create_timeString

Output only. The time the client state data was created. Corresponds to the JSON property createTime

Returns:

  • (String)


457
458
459
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 457

def create_time
  @create_time
end

#custom_idString

This field may be used to store a unique identifier for the API resource within which these CustomAttributes are a field. Corresponds to the JSON property customId

Returns:

  • (String)


463
464
465
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 463

def custom_id
  @custom_id
end

#etagString

The token that needs to be passed back for concurrency control in updates. Token needs to be passed back in UpdateRequest Corresponds to the JSON property etag

Returns:

  • (String)


469
470
471
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 469

def etag
  @etag
end

#health_scoreString

The Health score of the resource Corresponds to the JSON property healthScore

Returns:

  • (String)


474
475
476
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 474

def health_score
  @health_score
end

#key_value_pairsHash<String,Google::Apis::CloudidentityV1beta1::CustomAttributeValue>

The map of key-value attributes stored by callers specific to a device. The total serialized length of this map may not exceed 10KB. No limit is placed on the number of attributes in a map. Corresponds to the JSON property keyValuePairs



481
482
483
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 481

def key_value_pairs
  @key_value_pairs
end

#last_update_timeString

Output only. The time the client state data was last updated. Corresponds to the JSON property lastUpdateTime

Returns:

  • (String)


486
487
488
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 486

def last_update_time
  @last_update_time
end

#managedString

The management state of the resource as specified by the API client. Corresponds to the JSON property managed

Returns:

  • (String)


491
492
493
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 491

def managed
  @managed
end

#nameString

Output only. Resource name of the ClientState in format: devices/device_id/deviceUsers/ device_user_id/clientState/partner_id`, where partner_id corresponds to the partner storing the data. Corresponds to the JSON propertyname`

Returns:

  • (String)


499
500
501
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 499

def name
  @name
end

#owner_typeString

Output only. The owner of the ClientState Corresponds to the JSON property ownerType

Returns:

  • (String)


504
505
506
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 504

def owner_type
  @owner_type
end

#score_reasonString

A descriptive cause of the health score. Corresponds to the JSON property scoreReason

Returns:

  • (String)


509
510
511
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 509

def score_reason
  @score_reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



516
517
518
519
520
521
522
523
524
525
526
527
528
529
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 516

def update!(**args)
  @asset_tags = args[:asset_tags] if args.key?(:asset_tags)
  @compliance_state = args[:compliance_state] if args.key?(:compliance_state)
  @create_time = args[:create_time] if args.key?(:create_time)
  @custom_id = args[:custom_id] if args.key?(:custom_id)
  @etag = args[:etag] if args.key?(:etag)
  @health_score = args[:health_score] if args.key?(:health_score)
  @key_value_pairs = args[:key_value_pairs] if args.key?(:key_value_pairs)
  @last_update_time = args[:last_update_time] if args.key?(:last_update_time)
  @managed = args[:managed] if args.key?(:managed)
  @name = args[:name] if args.key?(:name)
  @owner_type = args[:owner_type] if args.key?(:owner_type)
  @score_reason = args[:score_reason] if args.key?(:score_reason)
end