Class: Google::Apis::ChatV1::Membership
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::Membership
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Overview
Represents a membership relation in Google Chat, such as whether a user or Chat app is invited to, part of, or absent from a space.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#member ⇒ Google::Apis::ChatV1::User
A user in Google Chat.
-
#name ⇒ String
Resource name of the membership, assigned by the server.
-
#role ⇒ String
Output only.
-
#state ⇒ 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.
3273 3274 3275 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3273 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The creation time of the membership, such as when a member joined
or was invited to join a space.
Corresponds to the JSON property createTime
3246 3247 3248 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3246 def create_time @create_time end |
#member ⇒ Google::Apis::ChatV1::User
A user in Google Chat. When returned as an output from a request, if your Chat
app authenticates as a user, the output for a User resource only populates the user's name
and type.
Corresponds to the JSON property member
3254 3255 3256 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3254 def member @member end |
#name ⇒ String
Resource name of the membership, assigned by the server. Format: spaces/
space/members/member`
Corresponds to the JSON propertyname`
3260 3261 3262 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3260 def name @name end |
#role ⇒ String
Output only. User's role within a Chat space, which determines their permitted
actions in the space.
Corresponds to the JSON property role
3266 3267 3268 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3266 def role @role end |
#state ⇒ String
Output only. State of the membership.
Corresponds to the JSON property state
3271 3272 3273 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3271 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3278 3279 3280 3281 3282 3283 3284 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3278 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @member = args[:member] if args.key?(:member) @name = args[:name] if args.key?(:name) @role = args[:role] if args.key?(:role) @state = args[:state] if args.key?(:state) end |