Class: Google::Apis::CloudidentityV1::MembershipRole

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

Overview

A membership role within the Cloud Identity Groups API. A MembershipRole defines the privileges granted to a Membership.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MembershipRole

Returns a new instance of MembershipRole.



1292
1293
1294
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 1292

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

Instance Attribute Details

#nameString

The name of the MembershipRole. Must be one of OWNER, MANAGER, MEMBER. Corresponds to the JSON property name

Returns:

  • (String)


1290
1291
1292
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 1290

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1297
1298
1299
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 1297

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