Class: Google::Apis::CloudsearchV1::UserId
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::UserId
- 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
-
#acting_user_id ⇒ String
Optional.
-
#id ⇒ String
Opaque, server-assigned ID of the User.
-
#origin_app_id ⇒ Google::Apis::CloudsearchV1::AppId
Identifier of an App.
-
#type ⇒ String
Clients do not need to send UserType to Backend, but Backend will always send this field to clients per the following rule: 1.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserId
constructor
A new instance of UserId.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UserId
Returns a new instance of UserId.
20832 20833 20834 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20832 def initialize(**args) update!(**args) end |
Instance Attribute Details
#acting_user_id ⇒ String
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
20812 20813 20814 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20812 def acting_user_id @acting_user_id end |
#id ⇒ String
Opaque, server-assigned ID of the User.
Corresponds to the JSON property id
20817 20818 20819 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20817 def id @id end |
#origin_app_id ⇒ Google::Apis::CloudsearchV1::AppId
Identifier of an App.
Corresponds to the JSON property originAppId
20822 20823 20824 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20822 def origin_app_id @origin_app_id end |
#type ⇒ String
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
20830 20831 20832 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20830 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
20837 20838 20839 20840 20841 20842 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20837 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 |