Class: Google::Apis::CloudidentityV1::Membership

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudidentity_v1/classes.rb,
generated/google/apis/cloudidentity_v1/representations.rb,
generated/google/apis/cloudidentity_v1/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.



790
791
792
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 790

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


760
761
762
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 760

def create_time
  @create_time
end

#nameString

Output only. 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)


770
771
772
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 770

def name
  @name
end

#preferred_member_keyGoogle::Apis::CloudidentityV1::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 preferredMemberKey



777
778
779
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 777

def preferred_member_key
  @preferred_member_key
end

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

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



783
784
785
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 783

def roles
  @roles
end

#update_timeString

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

Returns:

  • (String)


788
789
790
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 788

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



795
796
797
798
799
800
801
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 795

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