Class: Google::Apis::ChatV1::PermissionSetting

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

Instance Method Summary collapse

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_allowedBoolean Also known as: managers_allowed?

Optional. Whether spaces managers have this permission. Corresponds to the JSON property managersAllowed

Returns:

  • (Boolean)


4548
4549
4550
# File 'lib/google/apis/chat_v1/classes.rb', line 4548

def managers_allowed
  @managers_allowed
end

#members_allowedBoolean Also known as: members_allowed?

Optional. Whether non-manager members have this permission. Corresponds to the JSON property membersAllowed

Returns:

  • (Boolean)


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