Class: Google::Apis::ChatV1::PermissionSetting
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::PermissionSetting
- 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 space permission setting.
Instance Attribute Summary collapse
-
#managers_allowed ⇒ Boolean
(also: #managers_allowed?)
Optional.
-
#members_allowed ⇒ Boolean
(also: #members_allowed?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PermissionSetting
constructor
A new instance of PermissionSetting.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PermissionSetting
Returns a new instance of PermissionSetting.
4557 4558 4559 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4557 def initialize(**args) update!(**args) end |
Instance Attribute Details
#managers_allowed ⇒ Boolean Also known as: managers_allowed?
Optional. Whether spaces managers have this permission.
Corresponds to the JSON property managersAllowed
4548 4549 4550 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4548 def managers_allowed @managers_allowed end |
#members_allowed ⇒ Boolean Also known as: members_allowed?
Optional. Whether non-manager members have this permission.
Corresponds to the JSON property membersAllowed
4554 4555 4556 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4554 def members_allowed @members_allowed end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4562 4563 4564 4565 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4562 def update!(**args) @managers_allowed = args[:managers_allowed] if args.key?(:managers_allowed) @members_allowed = args[:members_allowed] if args.key?(:members_allowed) end |