Class: Google::Apis::CloudidentityV1beta1::Membership

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudidentity_v1beta1/classes.rb,
generated/google/apis/cloudidentity_v1beta1/representations.rb,
generated/google/apis/cloudidentity_v1beta1/representations.rb

Overview

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".

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Membership

Returns a new instance of Membership.



1022
1023
1024
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 1022

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

Instance Attribute Details

#create_timeString

Output only. The time when the Membership was created. Corresponds to the JSON property createTime

Returns:

  • (String)


984
985
986
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 984

def create_time
  @create_time
end

#member_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 memberKey



992
993
994
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 992

def member_key
  @member_key
end

#nameString

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

Returns:

  • (String)


1000
1001
1002
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 1000

def name
  @name
end

#preferred_member_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 preferredMemberKey



1008
1009
1010
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 1008

def preferred_member_key
  @preferred_member_key
end

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

The MembershipRoles that apply to the Membership. If unspecified, defaults to a single MembershipRole with name MEMBER. Must not contain duplicate MembershipRoles with the same name. Corresponds to the JSON property roles



1015
1016
1017
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 1015

def roles
  @roles
end

#update_timeString

Output only. The time when the Membership was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1020
1021
1022
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 1020

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1027
1028
1029
1030
1031
1032
1033
1034
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 1027

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