Class: Google::Apis::CloudsearchV1::UserInfo
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::UserInfo
- 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
Contains info regarding the updater of an Activity Feed item. Next Id: 8
Instance Attribute Summary collapse
-
#drive_notification_avatar_url ⇒ String
Avatar url of the user who triggered the Drive Notification email.
-
#updater_count_display_type ⇒ String
Describes how updater_count_to_show should be used.
-
#updater_count_to_show ⇒ Fixnum
The number of updaters for clients to show depending on UpdaterCountDisplayType.
-
#updater_to_show_email ⇒ String
The email of the updater for clients to show used for Gmail items.
-
#updater_to_show_gaia_id ⇒ Fixnum
The gaia id of the updater for clients to show used for Gmail items.
-
#updater_to_show_name ⇒ String
The display name of the updater for clients to show used for Gmail items.
-
#updater_to_show_user_id ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserInfo
constructor
A new instance of UserInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UserInfo
Returns a new instance of UserInfo.
21750 21751 21752 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21750 def initialize(**args) update!(**args) end |
Instance Attribute Details
#drive_notification_avatar_url ⇒ String
Avatar url of the user who triggered the Drive Notification email. This field
will be populated if we can extract such information from the Drive
Notification email. This should only be used to fetch user avatars when
updater_to_show_email is not populated. This field is not set for non-Drive
Notification items.
Corresponds to the JSON property driveNotificationAvatarUrl
21704 21705 21706 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21704 def drive_notification_avatar_url @drive_notification_avatar_url end |
#updater_count_display_type ⇒ String
Describes how updater_count_to_show should be used.
Corresponds to the JSON property updaterCountDisplayType
21709 21710 21711 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21709 def updater_count_display_type @updater_count_display_type end |
#updater_count_to_show ⇒ Fixnum
The number of updaters for clients to show depending on
UpdaterCountDisplayType.
Corresponds to the JSON property updaterCountToShow
21715 21716 21717 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21715 def updater_count_to_show @updater_count_to_show end |
#updater_to_show_email ⇒ String
The email of the updater for clients to show used for Gmail items. For Drive
Notifications, this is the email of the user who triggered the Drive
Notification email. This field will be populated if we can extract such
information from the Drive Notification email. This is not the actual sender
of the email, as the sender is always comments-noreply@docs.google.com.
Corresponds to the JSON property updaterToShowEmail
21724 21725 21726 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21724 def updater_to_show_email @updater_to_show_email end |
#updater_to_show_gaia_id ⇒ Fixnum
The gaia id of the updater for clients to show used for Gmail items. If the
updater is an external user, the email field below should be populated.
Corresponds to the JSON property updaterToShowGaiaId
21730 21731 21732 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21730 def updater_to_show_gaia_id @updater_to_show_gaia_id end |
#updater_to_show_name ⇒ String
The display name of the updater for clients to show used for Gmail items. For
non-Drive Notification items, this field will always be populated. If the
display name cannot be found for the user, the fallback string will be the
email address. For Drive Notification items, this is the name of the user who
triggered the Drive notification email. This field will be populated if we can
extract such information from the Drive Notification email. If the name cannot
be extracted, then the email will be the fallback string, which is used as the
display name text in the UI when needed. This is not the actual sender of the
email, as the sender is always comments-noreply@docs.google.com.
Corresponds to the JSON property updaterToShowName
21743 21744 21745 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21743 def updater_to_show_name @updater_to_show_name end |
#updater_to_show_user_id ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
Corresponds to the JSON property updaterToShowUserId
21748 21749 21750 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21748 def updater_to_show_user_id @updater_to_show_user_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
21755 21756 21757 21758 21759 21760 21761 21762 21763 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21755 def update!(**args) @drive_notification_avatar_url = args[:drive_notification_avatar_url] if args.key?(:drive_notification_avatar_url) @updater_count_display_type = args[:updater_count_display_type] if args.key?(:updater_count_display_type) @updater_count_to_show = args[:updater_count_to_show] if args.key?(:updater_count_to_show) @updater_to_show_email = args[:updater_to_show_email] if args.key?(:updater_to_show_email) @updater_to_show_gaia_id = args[:updater_to_show_gaia_id] if args.key?(:updater_to_show_gaia_id) @updater_to_show_name = args[:updater_to_show_name] if args.key?(:updater_to_show_name) @updater_to_show_user_id = args[:updater_to_show_user_id] if args.key?(:updater_to_show_user_id) end |