class Google::Apis::CloudsearchV1::Principal
Reference to a user, group, or domain.
Attributes
group_resource_name[RW]
This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/` source_id`/groups/`ID` Corresponds to the JSON property `groupResourceName` @return [String]
gsuite_principal[RW]
This principal is a GSuite user, group or domain. Corresponds to the JSON property `gsuitePrincipal` @return [Google::Apis::CloudsearchV1::GSuitePrincipal]
user_resource_name[RW]
This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/` source_id`/users/`ID` Corresponds to the JSON property `userResourceName` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 2930 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/cloudsearch_v1/classes.rb, line 2935 def update!(**args) @group_resource_name = args[:group_resource_name] if args.key?(:group_resource_name) @gsuite_principal = args[:gsuite_principal] if args.key?(:gsuite_principal) @user_resource_name = args[:user_resource_name] if args.key?(:user_resource_name) end