Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPrincipal

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

Overview

Principal identifier of a user or a group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaPrincipal

Returns a new instance of GoogleCloudDiscoveryengineV1alphaPrincipal.



6697
6698
6699
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6697

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

Instance Attribute Details

#group_idString

Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider user account, group_id is the mapped group identifier configured during the workforcepool config. Corresponds to the JSON property groupId

Returns:

  • (String)


6687
6688
6689
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6687

def group_id
  @group_id
end

#user_idString

User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider user account, user_id is the mapped user identifier configured during the workforcepool config. Corresponds to the JSON property userId

Returns:

  • (String)


6695
6696
6697
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6695

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6702
6703
6704
6705
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6702

def update!(**args)
  @group_id = args[:group_id] if args.key?(:group_id)
  @user_id = args[:user_id] if args.key?(:user_id)
end