Class: Google::Apis::CloudsearchV1::UserId

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

Overview

Primary key for User resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserId

Returns a new instance of UserId.



17559
17560
17561
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17559

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

Instance Attribute Details

#acting_user_idString

Optional. Opaque, server-assigned ID of the user profile associated with App/ user acting on behalf of the human user. This is currently only set when a 3P application is acting on the user's behalf. Corresponds to the JSON property actingUserId

Returns:

  • (String)


17539
17540
17541
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17539

def acting_user_id
  @acting_user_id
end

#idString

Opaque, server-assigned ID of the User. Corresponds to the JSON property id

Returns:

  • (String)


17544
17545
17546
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17544

def id
  @id
end

#origin_app_idGoogle::Apis::CloudsearchV1::AppId

Identifier of an App. Corresponds to the JSON property originAppId



17549
17550
17551
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17549

def origin_app_id
  @origin_app_id
end

#typeString

Clients do not need to send UserType to Backend, but Backend will always send this field to clients per the following rule: 1. For HUMAN Ids, the field is empty but by default .getType() will return HUMAN. 2. For BOT Ids, the field is ALWAYS set to BOT. Corresponds to the JSON property type

Returns:

  • (String)


17557
17558
17559
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17557

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17564
17565
17566
17567
17568
17569
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17564

def update!(**args)
  @acting_user_id = args[:acting_user_id] if args.key?(:acting_user_id)
  @id = args[:id] if args.key?(:id)
  @origin_app_id = args[:origin_app_id] if args.key?(:origin_app_id)
  @type = args[:type] if args.key?(:type)
end