Class: Google::Apis::CloudidentityV1::MemberRelation

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

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.



2327
2328
2329
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2327

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

Instance Attribute Details

#memberString

Resource name for this member. Corresponds to the JSON property member

Returns:

  • (String)


2309
2310
2311
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2309

def member
  @member
end

#preferred_member_keyArray<Google::Apis::CloudidentityV1::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



2315
2316
2317
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2315

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)


2320
2321
2322
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2320

def relation_type
  @relation_type
end

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

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



2325
2326
2327
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2325

def roles
  @roles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2332
2333
2334
2335
2336
2337
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2332

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