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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Membership

Returns a new instance of Membership.



2090
2091
2092
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2090

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

Instance Attribute Details

#create_timeString

Output only. The time when the Membership was created. Corresponds to the JSON property createTime

Returns:

  • (String)


2051
2052
2053
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2051

def create_time
  @create_time
end

#delivery_settingString

Output only. Delivery setting associated with the membership. Corresponds to the JSON property deliverySetting

Returns:

  • (String)


2056
2057
2058
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2056

def delivery_setting
  @delivery_setting
end

#nameString

Output only. The resource name of the Membership. Shall be of the form groups/group/ memberships/membership`. Corresponds to the JSON propertyname`

Returns:

  • (String)


2063
2064
2065
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2063

def name
  @name
end

#preferred_member_keyGoogle::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



2071
2072
2073
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2071

def preferred_member_key
  @preferred_member_key
end

#rolesArray<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



2078
2079
2080
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2078

def roles
  @roles
end

#typeString

Output only. The type of the membership. Corresponds to the JSON property type

Returns:

  • (String)


2083
2084
2085
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2083

def type
  @type
end

#update_timeString

Output only. The time when the Membership was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


2088
2089
2090
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2088

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2095
2096
2097
2098
2099
2100
2101
2102
2103
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2095

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