Class: Google::Apis::ChatV1::SpaceNotificationSetting

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

The notification setting of a user in a space.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SpaceNotificationSetting

Returns a new instance of SpaceNotificationSetting.



7051
7052
7053
# File 'lib/google/apis/chat_v1/classes.rb', line 7051

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

Instance Attribute Details

#mute_settingString

The space notification mute setting. Corresponds to the JSON property muteSetting

Returns:

  • (String)


7038
7039
7040
# File 'lib/google/apis/chat_v1/classes.rb', line 7038

def mute_setting
  @mute_setting
end

#nameString

Identifier. The resource name of the space notification setting. Format: users/user/spaces/space/spaceNotificationSetting. Corresponds to the JSON property name

Returns:

  • (String)


7044
7045
7046
# File 'lib/google/apis/chat_v1/classes.rb', line 7044

def name
  @name
end

#notification_settingString

The notification setting. Corresponds to the JSON property notificationSetting

Returns:

  • (String)


7049
7050
7051
# File 'lib/google/apis/chat_v1/classes.rb', line 7049

def notification_setting
  @notification_setting
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7056
7057
7058
7059
7060
# File 'lib/google/apis/chat_v1/classes.rb', line 7056

def update!(**args)
  @mute_setting = args[:mute_setting] if args.key?(:mute_setting)
  @name = args[:name] if args.key?(:name)
  @notification_setting = args[:notification_setting] if args.key?(:notification_setting)
end