Class: Google::Apis::CloudsearchV1::GSuitePrincipal

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

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) ⇒ GSuitePrincipal

Returns a new instance of GSuitePrincipal



1127
1128
1129
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1127

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

Instance Attribute Details

#gsuite_domainBoolean Also known as: gsuite_domain?

This principal represents all users of the G Suite domain of the customer. Corresponds to the JSON property gsuiteDomain

Returns:

  • (Boolean)


1114
1115
1116
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1114

def gsuite_domain
  @gsuite_domain
end

#gsuite_group_emailString

This principal references a G Suite group account Corresponds to the JSON property gsuiteGroupEmail

Returns:

  • (String)


1120
1121
1122
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1120

def gsuite_group_email
  @gsuite_group_email
end

#gsuite_user_emailString

This principal references a G Suite user account Corresponds to the JSON property gsuiteUserEmail

Returns:

  • (String)


1125
1126
1127
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1125

def gsuite_user_email
  @gsuite_user_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1132
1133
1134
1135
1136
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1132

def update!(**args)
  @gsuite_domain = args[:gsuite_domain] if args.key?(:gsuite_domain)
  @gsuite_group_email = args[:gsuite_group_email] if args.key?(:gsuite_group_email)
  @gsuite_user_email = args[:gsuite_user_email] if args.key?(:gsuite_user_email)
end