Class: Google::Apis::CloudsearchV1::Principal
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Principal
- 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
Reference to a user, group, or domain.
Instance Attribute Summary collapse
-
#group_resource_name ⇒ String
This principal is a group identified using an external identity.
-
#gsuite_principal ⇒ Google::Apis::CloudsearchV1::GSuitePrincipal
This principal is a Google Workspace user, group or domain.
-
#user_resource_name ⇒ String
This principal is a user identified using an external identity.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Principal
constructor
A new instance of Principal.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Principal
Returns a new instance of Principal.
5708 5709 5710 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5708 def initialize(**args) update!(**args) end |
Instance Attribute Details
#group_resource_name ⇒ String
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
5694 5695 5696 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5694 def group_resource_name @group_resource_name end |
#gsuite_principal ⇒ Google::Apis::CloudsearchV1::GSuitePrincipal
This principal is a Google Workspace user, group or domain.
Corresponds to the JSON property gsuitePrincipal
5699 5700 5701 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5699 def gsuite_principal @gsuite_principal end |
#user_resource_name ⇒ String
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
5706 5707 5708 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5706 def user_resource_name @user_resource_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5713 5714 5715 5716 5717 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5713 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 |