class Google::Apis::CloudidentityV1::Membership

A membership within the Cloud Identity Groups API. A `Membership` defines a relationship between a `Group` and an entity belonging to that `Group`, referred to as a “member”.

Attributes

create_time[RW]

Output only. The time when the `Membership` was created. Corresponds to the JSON property `createTime` @return [String]

name[RW]

Output only. The [resource name](cloud.google.com/apis/design/ resource_names) of the `Membership`. Shall be of the form `groups/`group`/ memberships/`membership“. Corresponds to the JSON property `name` @return [String]

preferred_member_key[RW]

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 `namespace`s. Corresponds to the JSON property `preferredMemberKey` @return [Google::Apis::CloudidentityV1::EntityKey]

roles[RW]

The `MembershipRole`s that apply to the `Membership`. If unspecified, defaults to a single `MembershipRole` with `name` `MEMBER`. Must not contain duplicate ` MembershipRole`s with the same `name`. Corresponds to the JSON property `roles` @return [Array<Google::Apis::CloudidentityV1::MembershipRole>]

type[RW]

Output only. The type of the membership. Corresponds to the JSON property `type` @return [String]

update_time[RW]

Output only. The time when the `Membership` was last updated. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudidentity_v1/classes.rb, line 1581
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudidentity_v1/classes.rb, line 1586
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
  @preferred_member_key = args[:preferred_member_key] if args.key?(:preferred_member_key)
  @roles = args[:roles] if args.key?(:roles)
  @type = args[:type] if args.key?(:type)
  @update_time = args[:update_time] if args.key?(:update_time)
end