Class: Google::Apis::CloudidentityV1::GroupRelation

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 group of a user or a group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GroupRelation

Returns a new instance of GroupRelation.



1392
1393
1394
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1392

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

Instance Attribute Details

#display_nameString

Display name for this group. Corresponds to the JSON property displayName

Returns:

  • (String)


1362
1363
1364
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1362

def display_name
  @display_name
end

#groupString

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

Returns:

  • (String)


1367
1368
1369
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1367

def group
  @group
end

#group_keyGoogle::Apis::CloudidentityV1::EntityKey

A unique identifier for an entity in the Cloud Identity Groups API. An entity can represent either a group with an optional namespace or a user without a namespace. The combination of id and namespace must be unique; however, the same id can be used with different namespaces. Corresponds to the JSON property groupKey



1375
1376
1377
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1375

def group_key
  @group_key
end

#labelsHash<String,String>

Labels for Group resource. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1380
1381
1382
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1380

def labels
  @labels
end

#relation_typeString

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

Returns:

  • (String)


1385
1386
1387
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1385

def relation_type
  @relation_type
end

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

Membership roles of the member for the group. Corresponds to the JSON property roles



1390
1391
1392
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1390

def roles
  @roles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1397
1398
1399
1400
1401
1402
1403
1404
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1397

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @group = args[:group] if args.key?(:group)
  @group_key = args[:group_key] if args.key?(:group_key)
  @labels = args[:labels] if args.key?(:labels)
  @relation_type = args[:relation_type] if args.key?(:relation_type)
  @roles = args[:roles] if args.key?(:roles)
end