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

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



1639
1640
1641
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1639

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

Instance Attribute Details

#expiry_detailGoogle::Apis::CloudidentityV1::ExpiryDetail

The MembershipRole expiry details. Corresponds to the JSON property expiryDetail



1632
1633
1634
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1632

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)


1637
1638
1639
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1637

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1644
1645
1646
1647
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1644

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