Class: Google::Apis::CloudsearchV1::User
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::User
- 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
User profile information. This user is not necessarily member of a space.
Instance Attribute Summary collapse
-
#avatar_url ⇒ String
URL for the avatar picture of the User in dynamite Corresponds to the JSON property
avatarUrl. -
#block_relationship ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedUserBlockRelationship
User-block relationship Corresponds to the JSON property
blockRelationship. -
#bot_info ⇒ Google::Apis::CloudsearchV1::BotInfo
Bot-specific profile information.
-
#deleted ⇒ Boolean
(also: #deleted?)
Deleted flag, if true, means User has been soft-deleted/purged Deprecated.
-
#email ⇒ String
Email ID of the user Corresponds to the JSON property
email. -
#first_name ⇒ String
First or given name of the user Corresponds to the JSON property
firstName. -
#gender ⇒ String
Gender of the user Corresponds to the JSON property
gender. -
#id ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
-
#is_anonymous ⇒ Boolean
(also: #is_anonymous?)
Set to true if none of the depending services (Gaia, PeopleApi) returns any info for this user.
-
#last_name ⇒ String
Last or family name of the user Corresponds to the JSON property
lastName. -
#name ⇒ String
Non-unique, user-defined display name of the User Corresponds to the JSON property
name. -
#organization_info ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedOrganizationInfo
Contains info about the entity that something is, or is owned by.
-
#phone_number ⇒ Array<Google::Apis::CloudsearchV1::AppsDynamiteSharedPhoneNumber>
Phone number(s) of the user Corresponds to the JSON property
phoneNumber. -
#user_account_state ⇒ String
State of user's Gaia Account Corresponds to the JSON property
userAccountState. -
#user_profile_visibility ⇒ String
Visibility of user's Profile Corresponds to the JSON property
userProfileVisibility.
Instance Method Summary collapse
-
#initialize(**args) ⇒ User
constructor
A new instance of User.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ User
Returns a new instance of User.
17353 17354 17355 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17353 def initialize(**args) update!(**args) end |
Instance Attribute Details
#avatar_url ⇒ String
URL for the avatar picture of the User in dynamite
Corresponds to the JSON property avatarUrl
17277 17278 17279 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17277 def avatar_url @avatar_url end |
#block_relationship ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedUserBlockRelationship
User-block relationship
Corresponds to the JSON property blockRelationship
17282 17283 17284 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17282 def block_relationship @block_relationship end |
#bot_info ⇒ Google::Apis::CloudsearchV1::BotInfo
Bot-specific profile information.
Corresponds to the JSON property botInfo
17287 17288 17289 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17287 def bot_info @bot_info end |
#deleted ⇒ Boolean Also known as: deleted?
Deleted flag, if true, means User has been soft-deleted/purged Deprecated. Use
user_account_state field instead.
Corresponds to the JSON property deleted
17293 17294 17295 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17293 def deleted @deleted end |
#email ⇒ String
Email ID of the user
Corresponds to the JSON property email
17299 17300 17301 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17299 def email @email end |
#first_name ⇒ String
First or given name of the user
Corresponds to the JSON property firstName
17304 17305 17306 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17304 def first_name @first_name end |
#gender ⇒ String
Gender of the user
Corresponds to the JSON property gender
17309 17310 17311 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17309 def gender @gender end |
#id ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
Corresponds to the JSON property id
17314 17315 17316 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17314 def id @id end |
#is_anonymous ⇒ Boolean Also known as: is_anonymous?
Set to true if none of the depending services (Gaia, PeopleApi) returns any
info for this user.
Corresponds to the JSON property isAnonymous
17320 17321 17322 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17320 def is_anonymous @is_anonymous end |
#last_name ⇒ String
Last or family name of the user
Corresponds to the JSON property lastName
17326 17327 17328 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17326 def last_name @last_name end |
#name ⇒ String
Non-unique, user-defined display name of the User
Corresponds to the JSON property name
17331 17332 17333 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17331 def name @name end |
#organization_info ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedOrganizationInfo
Contains info about the entity that something is, or is owned by.
Corresponds to the JSON property organizationInfo
17336 17337 17338 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17336 def organization_info @organization_info end |
#phone_number ⇒ Array<Google::Apis::CloudsearchV1::AppsDynamiteSharedPhoneNumber>
Phone number(s) of the user
Corresponds to the JSON property phoneNumber
17341 17342 17343 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17341 def phone_number @phone_number end |
#user_account_state ⇒ String
State of user's Gaia Account
Corresponds to the JSON property userAccountState
17346 17347 17348 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17346 def user_account_state @user_account_state end |
#user_profile_visibility ⇒ String
Visibility of user's Profile
Corresponds to the JSON property userProfileVisibility
17351 17352 17353 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17351 def user_profile_visibility @user_profile_visibility end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17358 def update!(**args) @avatar_url = args[:avatar_url] if args.key?(:avatar_url) @block_relationship = args[:block_relationship] if args.key?(:block_relationship) @bot_info = args[:bot_info] if args.key?(:bot_info) @deleted = args[:deleted] if args.key?(:deleted) @email = args[:email] if args.key?(:email) @first_name = args[:first_name] if args.key?(:first_name) @gender = args[:gender] if args.key?(:gender) @id = args[:id] if args.key?(:id) @is_anonymous = args[:is_anonymous] if args.key?(:is_anonymous) @last_name = args[:last_name] if args.key?(:last_name) @name = args[:name] if args.key?(:name) @organization_info = args[:organization_info] if args.key?(:organization_info) @phone_number = args[:phone_number] if args.key?(:phone_number) @user_account_state = args[:user_account_state] if args.key?(:user_account_state) @user_profile_visibility = args[:user_profile_visibility] if args.key?(:user_profile_visibility) end |