Class: Google::Apis::CloudidentityV1beta1::Membership
- Inherits:
-
Object
- Object
- Google::Apis::CloudidentityV1beta1::Membership
- 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
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
-
#create_time ⇒ String
Output only.
-
#member_key ⇒ Google::Apis::CloudidentityV1beta1::EntityKey
A unique identifier for an entity in the Cloud Identity Groups API.
-
#name ⇒ String
Output only.
-
#preferred_member_key ⇒ Google::Apis::CloudidentityV1beta1::EntityKey
A unique identifier for an entity in the Cloud Identity Groups API.
-
#roles ⇒ Array<Google::Apis::CloudidentityV1beta1::MembershipRole>
The
MembershipRoles that apply to theMembership. -
#type ⇒ String
Output only.
-
#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.
Constructor Details
#initialize(**args) ⇒ Membership
Returns a new instance of Membership.
2270 2271 2272 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2270 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time when the Membership was created.
Corresponds to the JSON property createTime
2228 2229 2230 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2228 def create_time @create_time end |
#member_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 memberKey
2236 2237 2238 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2236 def member_key @member_key end |
#name ⇒ String
Output only. The resource name of the Membership. Shall be of the form groups/group_id/
memberships/membership_id`.
Corresponds to the JSON propertyname`
2243 2244 2245 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2243 def name @name end |
#preferred_member_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 preferredMemberKey
2251 2252 2253 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2251 def preferred_member_key @preferred_member_key end |
#roles ⇒ Array<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
2258 2259 2260 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2258 def roles @roles end |
#type ⇒ String
Output only. The type of the membership.
Corresponds to the JSON property type
2263 2264 2265 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2263 def type @type end |
#update_time ⇒ String
Output only. The time when the Membership was last updated.
Corresponds to the JSON property updateTime
2268 2269 2270 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2268 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2275 2276 2277 2278 2279 2280 2281 2282 2283 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 2275 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) @type = args[:type] if args.key?(:type) @update_time = args[:update_time] if args.key?(:update_time) end |