Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPrincipal
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPrincipal
- 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
-
#group_id ⇒ String
Group identifier.
-
#user_id ⇒ String
User identifier.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaPrincipal
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaPrincipal.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaPrincipal
Returns a new instance of GoogleCloudDiscoveryengineV1alphaPrincipal.
8937 8938 8939 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8937 def initialize(**args) update!(**args) end |
Instance Attribute Details
#group_id ⇒ String
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
8927 8928 8929 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8927 def group_id @group_id end |
#user_id ⇒ String
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
8935 8936 8937 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8935 def user_id @user_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8942 8943 8944 8945 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8942 def update!(**args) @group_id = args[:group_id] if args.key?(:group_id) @user_id = args[:user_id] if args.key?(:user_id) end |