Class: Google::Apis::CloudidentityV1::Membership
- Inherits:
-
Object
- Object
- Google::Apis::CloudidentityV1::Membership
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudidentity_v1/classes.rb,
lib/google/apis/cloudidentity_v1/representations.rb,
lib/google/apis/cloudidentity_v1/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.
-
#delivery_setting ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#preferred_member_key ⇒ Google::Apis::CloudidentityV1::EntityKey
A unique identifier for an entity in the Cloud Identity Groups API.
-
#roles ⇒ Array<Google::Apis::CloudidentityV1::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.
2084 2085 2086 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2084 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
2045 2046 2047 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2045 def create_time @create_time end |
#delivery_setting ⇒ String
Output only. Delivery setting associated with the membership.
Corresponds to the JSON property deliverySetting
2050 2051 2052 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2050 def delivery_setting @delivery_setting end |
#name ⇒ String
Output only. The resource name of the Membership. Shall be of the form groups/group/
memberships/membership`.
Corresponds to the JSON propertyname`
2057 2058 2059 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2057 def name @name end |
#preferred_member_key ⇒ Google::Apis::CloudidentityV1::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
2065 2066 2067 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2065 def preferred_member_key @preferred_member_key end |
#roles ⇒ Array<Google::Apis::CloudidentityV1::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
2072 2073 2074 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2072 def roles @roles end |
#type ⇒ String
Output only. The type of the membership.
Corresponds to the JSON property type
2077 2078 2079 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2077 def type @type end |
#update_time ⇒ String
Output only. The time when the Membership was last updated.
Corresponds to the JSON property updateTime
2082 2083 2084 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2082 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2089 2090 2091 2092 2093 2094 2095 2096 2097 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2089 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @delivery_setting = args[:delivery_setting] if args.key?(:delivery_setting) @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 |