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.



12746
12747
12748
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12746

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)


12736
12737
12738
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12736

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)


12744
12745
12746
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12744

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12751
12752
12753
12754
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12751

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