Class: Google::Apis::CloudidentityV1beta1::GroupRelation

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

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.



2591
2592
2593
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2591

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

Instance Attribute Details

#display_nameString

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

Returns:

  • (String)


2561
2562
2563
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2561

def display_name
  @display_name
end

#groupString

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

Returns:

  • (String)


2566
2567
2568
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2566

def group
  @group
end

#group_keyGoogle::Apis::CloudidentityV1beta1::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



2574
2575
2576
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2574

def group_key
  @group_key
end

#labelsHash<String,String>

Labels for Group resource. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2579
2580
2581
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2579

def labels
  @labels
end

#relation_typeString

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

Returns:

  • (String)


2584
2585
2586
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2584

def relation_type
  @relation_type
end

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

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



2589
2590
2591
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2589

def roles
  @roles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2596
2597
2598
2599
2600
2601
2602
2603
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2596

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