Class: Google::Apis::CloudidentityV1beta1::MembershipRelation

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 containing membership relation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MembershipRelation

Returns a new instance of MembershipRelation.



3328
3329
3330
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3328

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

Instance Attribute Details

#descriptionString

An extended description to help users determine the purpose of a Group. Corresponds to the JSON property description

Returns:

  • (String)


3289
3290
3291
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3289

def description
  @description
end

#display_nameString

The display name of the Group. Corresponds to the JSON property displayName

Returns:

  • (String)


3294
3295
3296
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3294

def display_name
  @display_name
end

#groupString

The resource name of the Group. Shall be of the form groups/group_id`. Corresponds to the JSON propertygroup`

Returns:

  • (String)


3300
3301
3302
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3300

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



3308
3309
3310
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3308

def group_key
  @group_key
end

#labelsHash<String,String>

One or more label entries that apply to the Group. Currently supported labels contain a key with an empty value. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


3314
3315
3316
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3314

def labels
  @labels
end

#membershipString

The resource name of the Membership. Shall be of the form groups/group_id/memberships/ membership_id`. Corresponds to the JSON propertymembership`

Returns:

  • (String)


3321
3322
3323
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3321

def membership
  @membership
end

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

The MembershipRoles that apply to the Membership. Corresponds to the JSON property roles



3326
3327
3328
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3326

def roles
  @roles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3333
3334
3335
3336
3337
3338
3339
3340
3341
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3333

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @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)
  @membership = args[:membership] if args.key?(:membership)
  @roles = args[:roles] if args.key?(:roles)
end