@@ -36,7 +36,7 @@ class Message(object):
3636 android: An instance of ``messaging.AndroidConfig`` (optional).
3737 webpush: An instance of ``messaging.WebpushConfig`` (optional).
3838 apns: An instance of ``messaging.ApnsConfig`` (optional).
39- fcm_options: An instance of ``messaging.FcmOptions `` (optional).
39+ fcm_options: An instance of ``messaging.FCMOptions `` (optional).
4040 token: The registration token of the device to which the message should be sent (optional).
4141 topic: Name of the FCM topic to which the message should be sent (optional). Topic name
4242 may contain the ``/topics/`` prefix.
@@ -67,7 +67,7 @@ class MulticastMessage(object):
6767 android: An instance of ``messaging.AndroidConfig`` (optional).
6868 webpush: An instance of ``messaging.WebpushConfig`` (optional).
6969 apns: An instance of ``messaging.ApnsConfig`` (optional).
70- fcm_options: An instance of ``messaging.FcmOptions `` (optional).
70+ fcm_options: An instance of ``messaging.FCMOptions `` (optional).
7171 """
7272 def __init__ (self , tokens , data = None , notification = None , android = None , webpush = None , apns = None ,
7373 fcm_options = None ):
@@ -112,7 +112,7 @@ class AndroidConfig(object):
112112 data: A dictionary of data fields (optional). All keys and values in the dictionary must be
113113 strings. When specified, overrides any data fields set via ``Message.data``.
114114 notification: A ``messaging.AndroidNotification`` to be included in the message (optional).
115- fcm_options: A ``messaging.AndroidFcmOptions `` to be included in the message (optional).
115+ fcm_options: A ``messaging.AndroidFCMOptions `` to be included in the message (optional).
116116 """
117117
118118 def __init__ (self , collapse_key = None , priority = None , ttl = None , restricted_package_name = None ,
@@ -172,7 +172,7 @@ def __init__(self, title=None, body=None, icon=None, color=None, sound=None, tag
172172 self .channel_id = channel_id
173173
174174
175- class AndroidFcmOptions (object ):
175+ class AndroidFCMOptions (object ):
176176 """Options for features provided by the FCM SDK for Android.
177177
178178 Args:
@@ -193,7 +193,7 @@ class WebpushConfig(object):
193193 data: A dictionary of data fields (optional). All keys and values in the dictionary must be
194194 strings. When specified, overrides any data fields set via ``Message.data``.
195195 notification: A ``messaging.WebpushNotification`` to be included in the message (optional).
196- fcm_options: A ``messaging.WebpushFcmOptions `` instance to be included in the message
196+ fcm_options: A ``messaging.WebpushFCMOptions `` instance to be included in the message
197197 (optional).
198198
199199 .. _Webpush Specification: https://tools.ietf.org/html/rfc8030#section-5
@@ -278,7 +278,7 @@ def __init__(self, title=None, body=None, icon=None, actions=None, badge=None, d
278278 self .custom_data = custom_data
279279
280280
281- class WebpushFcmOptions (object ):
281+ class WebpushFCMOptions (object ):
282282 """Options for features provided by the FCM SDK for Web.
283283
284284 Args:
@@ -298,7 +298,7 @@ class APNSConfig(object):
298298 Args:
299299 headers: A dictionary of headers (optional).
300300 payload: A ``messaging.APNSPayload`` to be included in the message (optional).
301- fcm_options: A ``messaging.APNSFcmOptions `` instance to be included in the message
301+ fcm_options: A ``messaging.APNSFCMOptions `` instance to be included in the message
302302 (optional).
303303
304304 .. _APNS Documentation: https://developer.apple.com/library/content/documentation\
@@ -413,7 +413,7 @@ def __init__(self, title=None, subtitle=None, body=None, loc_key=None, loc_args=
413413 self .custom_data = custom_data
414414
415415
416- class APNSFcmOptions (object ):
416+ class APNSFCMOptions (object ):
417417 """Options for features provided by the FCM SDK for iOS.
418418
419419 Args:
@@ -425,7 +425,7 @@ def __init__(self, analytics_label=None):
425425 self .analytics_label = analytics_label
426426
427427
428- class FcmOptions (object ):
428+ class FCMOptions (object ):
429429 """Options for features provided by SDK.
430430
431431 Args:
@@ -535,15 +535,15 @@ def encode_android(cls, android):
535535
536536 @classmethod
537537 def encode_android_fcm_options (cls , fcm_options ):
538- """Encodes a AndroidFcmOptions instance into a json."""
538+ """Encodes an AndroidFCMOptions instance into a json."""
539539 if fcm_options is None :
540540 return None
541- if not isinstance (fcm_options , AndroidFcmOptions ):
541+ if not isinstance (fcm_options , AndroidFCMOptions ):
542542 raise ValueError ('AndroidConfig.fcm_options must be an instance of '
543- 'AndroidFcmOptions class.' )
543+ 'AndroidFCMOptions class.' )
544544 result = {
545545 'analytics_label' : _Validators .check_analytics_label (
546- 'AndroidFcmOptions .analytics_label' , fcm_options .analytics_label ),
546+ 'AndroidFCMOptions .analytics_label' , fcm_options .analytics_label ),
547547 }
548548 result = cls .remove_null_values (result )
549549 return result
@@ -703,7 +703,7 @@ def encode_webpush_notification_actions(cls, actions):
703703
704704 @classmethod
705705 def encode_webpush_fcm_options (cls , options ):
706- """Encodes a WebpushFcmOptions instance into JSON."""
706+ """Encodes a WebpushFCMOptions instance into JSON."""
707707 if options is None :
708708 return None
709709 result = {
@@ -712,7 +712,7 @@ def encode_webpush_fcm_options(cls, options):
712712 result = cls .remove_null_values (result )
713713 link = result .get ('link' )
714714 if link is not None and not link .startswith ('https://' ):
715- raise ValueError ('WebpushFcmOptions .link must be a HTTPS URL.' )
715+ raise ValueError ('WebpushFCMOptions .link must be a HTTPS URL.' )
716716 return result
717717
718718 @classmethod
@@ -746,14 +746,14 @@ def encode_apns_payload(cls, payload):
746746
747747 @classmethod
748748 def encode_apns_fcm_options (cls , fcm_options ):
749- """Encodes an APNSFcmOptions instance into JSON."""
749+ """Encodes an APNSFCMOptions instance into JSON."""
750750 if fcm_options is None :
751751 return None
752- if not isinstance (fcm_options , APNSFcmOptions ):
753- raise ValueError ('APNSConfig.fcm_options must be an instance of APNSFcmOptions class.' )
752+ if not isinstance (fcm_options , APNSFCMOptions ):
753+ raise ValueError ('APNSConfig.fcm_options must be an instance of APNSFCMOptions class.' )
754754 result = {
755755 'analytics_label' : _Validators .check_analytics_label (
756- 'APNSFcmOptions .analytics_label' , fcm_options .analytics_label ),
756+ 'APNSFCMOptions .analytics_label' , fcm_options .analytics_label ),
757757 }
758758 result = cls .remove_null_values (result )
759759 return result
@@ -897,14 +897,14 @@ def default(self, obj): # pylint: disable=method-hidden
897897
898898 @classmethod
899899 def encode_fcm_options (cls , fcm_options ):
900- """Encodes an FcmOptions instance into JSON."""
900+ """Encodes an FCMOptions instance into JSON."""
901901 if fcm_options is None :
902902 return None
903- if not isinstance (fcm_options , FcmOptions ):
904- raise ValueError ('Message.fcm_options must be an instance of FcmOptions class.' )
903+ if not isinstance (fcm_options , FCMOptions ):
904+ raise ValueError ('Message.fcm_options must be an instance of FCMOptions class.' )
905905 result = {
906906 'analytics_label' : _Validators .check_analytics_label (
907- 'FcmOptions .analytics_label' , fcm_options .analytics_label ),
907+ 'FCMOptions .analytics_label' , fcm_options .analytics_label ),
908908 }
909909 result = cls .remove_null_values (result )
910910 return result
0 commit comments