Class: Google::Apis::CloudidentityV1beta1::MembershipRelation
- Inherits:
-
Object
- Object
- Google::Apis::CloudidentityV1beta1::MembershipRelation
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudidentity_v1beta1/classes.rb,
lib/google/apis/cloudidentity_v1beta1/representations.rb,
lib/google/apis/cloudidentity_v1beta1/representations.rb
Overview
Message containing membership relation.
Instance Attribute Summary collapse
-
#description ⇒ String
An extended description to help users determine the purpose of a
Group. -
#display_name ⇒ String
The display name of the
Group. -
#group ⇒ String
The resource name of the
Group. -
#group_key ⇒ Google::Apis::CloudidentityV1beta1::EntityKey
A unique identifier for an entity in the Cloud Identity Groups API.
-
#labels ⇒ Hash<String,String>
One or more label entries that apply to the Group.
-
#membership ⇒ String
The resource name of the
Membership. -
#roles ⇒ Array<Google::Apis::CloudidentityV1beta1::MembershipRole>
The
MembershipRoles that apply to theMembership.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MembershipRelation
constructor
A new instance of MembershipRelation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MembershipRelation
Returns a new instance of MembershipRelation.
2820 2821 2822 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2820 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
An extended description to help users determine the purpose of a Group.
Corresponds to the JSON property description
2781 2782 2783 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2781 def description @description end |
#display_name ⇒ String
The display name of the Group.
Corresponds to the JSON property displayName
2786 2787 2788 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2786 def display_name @display_name end |
#group ⇒ String
The resource name of
the Group. Shall be of the form groups/group_id`.
Corresponds to the JSON propertygroup`
2792 2793 2794 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2792 def group @group end |
#group_key ⇒ Google::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 groupKey
2800 2801 2802 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2800 def group_key @group_key end |
#labels ⇒ Hash<String,String>
One or more label entries that apply to the Group. Currently supported labels
contain a key with an empty value.
Corresponds to the JSON property labels
2806 2807 2808 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2806 def labels @labels end |
#membership ⇒ String
The resource name of
the Membership. Shall be of the form groups/group_id/memberships/
membership_id`.
Corresponds to the JSON propertymembership`
2813 2814 2815 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2813 def membership @membership end |
#roles ⇒ Array<Google::Apis::CloudidentityV1beta1::MembershipRole>
The MembershipRoles that apply to the Membership.
Corresponds to the JSON property roles
2818 2819 2820 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2818 def roles @roles end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2825 2826 2827 2828 2829 2830 2831 2832 2833 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2825 def update!(**args) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @group = args[:group] if args.key?(:group) @group_key = args[:group_key] if args.key?(:group_key) @labels = args[:labels] if args.key?(:labels) @membership = args[:membership] if args.key?(:membership) @roles = args[:roles] if args.key?(:roles) end |