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

Resource representing a Membership within a Group

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



245
246
247
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 245

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

Instance Attribute Details

#create_timeString

Creation timestamp of the Membership. Corresponds to the JSON property createTime

Returns:

  • (String)


216
217
218
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 216

def create_time
  @create_time
end

#member_keyGoogle::Apis::CloudidentityV1beta1::EntityKey

An EntityKey uniquely identifies an Entity. Namespaces are used to provide isolation for ids. A single Id can be reused across namespaces but the combination of a namespace and an id must be unique. Corresponds to the JSON property memberKey



223
224
225
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 223

def member_key
  @member_key
end

#nameString

Resource name of the Membership in the format: groups/group_id/memberships/member_id`, where group_id is the unique id assigned to the Group to which Membership belongs to, and member_id is the unique id assigned to the member Must be left blank while creating a Membership. Corresponds to the JSON propertyname`

Returns:

  • (String)


232
233
234
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 232

def name
  @name
end

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

Roles for a member within the Group. Currently supported MembershipRoles: "MEMBER". Corresponds to the JSON property roles



238
239
240
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 238

def roles
  @roles
end

#update_timeString

Last updated timestamp of the Membership. Corresponds to the JSON property updateTime

Returns:

  • (String)


243
244
245
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 243

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



250
251
252
253
254
255
256
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 250

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)
  @roles = args[:roles] if args.key?(:roles)
  @update_time = args[:update_time] if args.key?(:update_time)
end