class Google::Apis::FcmV1::WebpushConfig

[Webpush protocol](tools.ietf.org/html/rfc8030) options.

Attributes

data[RW]

Arbitrary key/value payload. If present, it will override google.firebase.fcm. v1.Message.data. Corresponds to the JSON property `data` @return [Hash<String,String>]

fcm_options[RW]

Options for features provided by the FCM SDK for Web. Corresponds to the JSON property `fcmOptions` @return [Google::Apis::FcmV1::WebpushFcmOptions]

headers[RW]

HTTP headers defined in webpush protocol. Refer to [Webpush protocol](https:// tools.ietf.org/html/rfc8030#section-5) for supported headers, e.g. “TTL”: “15”. Corresponds to the JSON property `headers` @return [Hash<String,String>]

notification[RW]

Web Notification options as a JSON object. Supports Notification instance properties as defined in [Web Notification API](developer.mozilla.org/ en-US/docs/Web/API/Notification). If present, “title” and “body” fields override [google.firebase.fcm.v1.Notification.title] and [google.firebase.fcm. v1.Notification.body]. Corresponds to the JSON property `notification` @return [Hash<String,Object>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/fcm_v1/classes.rb, line 789
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/fcm_v1/classes.rb, line 794
def update!(**args)
  @data = args[:data] if args.key?(:data)
  @fcm_options = args[:fcm_options] if args.key?(:fcm_options)
  @headers = args[:headers] if args.key?(:headers)
  @notification = args[:notification] if args.key?(:notification)
end