Class: Google::Apis::CalendarV3::CalendarNotification

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/calendar_v3/classes.rb,
generated/google/apis/calendar_v3/representations.rb,
generated/google/apis/calendar_v3/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CalendarNotification

Returns a new instance of CalendarNotification



467
468
469
# File 'generated/google/apis/calendar_v3/classes.rb', line 467

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

Instance Attribute Details

#delivery_methodString

The method used to deliver the notification. Possible values are:

  • "email" - Notifications are sent via email.
  • "sms" - Deprecated. Once this feature is shutdown, the API will no longer return notifications using this method. Any newly added SMS notifications will be ignored. See Google Calendar SMS notifications to be removed for more information. Notifications are sent via SMS. This value is read-only and is ignored on inserts and updates. SMS notifications are only available for G Suite customers. Required when adding a notification. Corresponds to the JSON property method

Returns:

  • (String)


453
454
455
# File 'generated/google/apis/calendar_v3/classes.rb', line 453

def delivery_method
  @delivery_method
end

#typeString

The type of notification. Possible values are:

  • "eventCreation" - Notification sent when a new event is put on the calendar.
  • "eventChange" - Notification sent when an event is changed.
  • "eventCancellation" - Notification sent when an event is cancelled.
  • "eventResponse" - Notification sent when an attendee responds to the event invitation.
  • "agenda" - An agenda with the events of the day (sent out in the morning). Required when adding a notification. Corresponds to the JSON property type

Returns:

  • (String)


465
466
467
# File 'generated/google/apis/calendar_v3/classes.rb', line 465

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



472
473
474
475
# File 'generated/google/apis/calendar_v3/classes.rb', line 472

def update!(**args)
  @delivery_method = args[:delivery_method] if args.key?(:delivery_method)
  @type = args[:type] if args.key?(:type)
end