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

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

Constructor Details

#initialize(**args) ⇒ MembershipRole

Returns a new instance of MembershipRole.



3364
3365
3366
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3364

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

Instance Attribute Details

#expiry_detailGoogle::Apis::CloudidentityV1beta1::ExpiryDetail

The MembershipRole expiry details. Corresponds to the JSON property expiryDetail



3352
3353
3354
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3352

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)


3357
3358
3359
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3357

def name
  @name
end

#restriction_evaluationsGoogle::Apis::CloudidentityV1beta1::RestrictionEvaluations

Evaluations of restrictions applied to parent group on this membership. Corresponds to the JSON property restrictionEvaluations



3362
3363
3364
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3362

def restriction_evaluations
  @restriction_evaluations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3369
3370
3371
3372
3373
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3369

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