Class: Google::Apis::CloudidentityV1::Membership
- Inherits:
-
Object
- Object
- Google::Apis::CloudidentityV1::Membership
- 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
-
#create_time ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#preferred_member_key ⇒ Google::Apis::CloudidentityV1::EntityKey
An EntityKey uniquely identifies an Entity.
-
#roles ⇒ Array<Google::Apis::CloudidentityV1::MembershipRole>
Roles for a member within the Group.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Membership
constructor
A new instance of Membership.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Membership
Returns a new instance of Membership.
820 821 822 |
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 820 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Creation timestamp of the Membership. Output only.
Corresponds to the JSON property createTime
791 792 793 |
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 791 def create_time @create_time end |
#name ⇒ String
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 property
name`
800 801 802 |
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 800 def name @name end |
#preferred_member_key ⇒ Google::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
807 808 809 |
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 807 def preferred_member_key @preferred_member_key end |
#roles ⇒ Array<Google::Apis::CloudidentityV1::MembershipRole>
Roles for a member within the Group. Currently supported MembershipRoles: "
MEMBER"
.
Corresponds to the JSON property roles
813 814 815 |
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 813 def roles @roles end |
#update_time ⇒ String
Output only. Last updated timestamp of the Membership. Output only.
Corresponds to the JSON property updateTime
818 819 820 |
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 818 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
825 826 827 828 829 830 831 |
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 825 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 |