Class: Google::Apis::CloudsearchV1::Principal

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb

Overview

Reference to a user, group, or domain.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Principal

Returns a new instance of Principal.



2885
2886
2887
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2885

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

Instance Attribute Details

#group_resource_nameString

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

Returns:

  • (String)


2871
2872
2873
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2871

def group_resource_name
  @group_resource_name
end

#gsuite_principalGoogle::Apis::CloudsearchV1::GSuitePrincipal

This principal is a GSuite user, group or domain. Corresponds to the JSON property gsuitePrincipal



2876
2877
2878
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2876

def gsuite_principal
  @gsuite_principal
end

#user_resource_nameString

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

Returns:

  • (String)


2883
2884
2885
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2883

def user_resource_name
  @user_resource_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2890
2891
2892
2893
2894
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2890

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