Class: Google::Apis::CloudidentityV1beta1::MembershipRole

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudidentity_v1beta1/classes.rb,
generated/google/apis/cloudidentity_v1beta1/representations.rb,
generated/google/apis/cloudidentity_v1beta1/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

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

#to_json

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

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MembershipRole

Returns a new instance of MembershipRole.


1795
1796
1797
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 1795

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

Instance Attribute Details

#expiry_detailGoogle::Apis::CloudidentityV1beta1::ExpiryDetail

The MembershipRole expiry details. Corresponds to the JSON property expiryDetail


1788
1789
1790
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 1788

def expiry_detail
  @expiry_detail
end

#nameString

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

Returns:

  • (String)

1793
1794
1795
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 1793

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1800
1801
1802
1803
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 1800

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