Class: Google::Apis::CloudidentityV1beta1::MemberRelation

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

Message representing a transitive membership of a group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MemberRelation

Returns a new instance of MemberRelation.



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

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

Instance Attribute Details

#memberString

Resource name for this member if member is a GROUP, otherwise it is empty. Corresponds to the JSON property member

Returns:

  • (String)


1783
1784
1785
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 1783

def member
  @member
end

#preferred_member_keyArray<Google::Apis::CloudidentityV1beta1::EntityKey>

Entity key has an id and a namespace. In case of discussion forums, the id will be an email address without a namespace. Corresponds to the JSON property preferredMemberKey



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

def preferred_member_key
  @preferred_member_key
end

#relation_typeString

The relation between the group and the transitive member. Corresponds to the JSON property relationType

Returns:

  • (String)


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

def relation_type
  @relation_type
end

#rolesArray<Google::Apis::CloudidentityV1beta1::TransitiveMembershipRole>

The membership role details (i.e name of role and expiry time). Corresponds to the JSON property roles



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

def roles
  @roles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1806
1807
1808
1809
1810
1811
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 1806

def update!(**args)
  @member = args[:member] if args.key?(:member)
  @preferred_member_key = args[:preferred_member_key] if args.key?(:preferred_member_key)
  @relation_type = args[:relation_type] if args.key?(:relation_type)
  @roles = args[:roles] if args.key?(:roles)
end