google-apis-fcm_v1 0.37.0 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/fcm_v1/classes.rb +82 -4
- data/lib/google/apis/fcm_v1/gem_version.rb +2 -2
- data/lib/google/apis/fcm_v1/representations.rb +42 -0
- data/lib/google/apis/fcm_v1/service.rb +195 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e12dbcd50309620c34b59e525f671a0bc116fa4eca4e92984d9c18280e2ce267
|
|
4
|
+
data.tar.gz: edbfbd11262253827aa56f62fe12702c11b9306dd756238dcf531653954bc2d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 62a9f21c5ce097be7885f43abbfb055b70de61803e233a8302b7635f3ff7104c7be303a51b04bdc33b3b08a8948fda083f8238a1ab35da0016fb714979e60d00
|
|
7
|
+
data.tar.gz: f8113555814bc5de8dbe519e1c035a6e0a3ff5525a11aa6c19d3e708ac96b20c2128f6774c30197efafa844909e583f3e9a957eee1bdb197b17153306e5829a6
|
data/CHANGELOG.md
CHANGED
|
@@ -570,6 +570,22 @@ module Google
|
|
|
570
570
|
end
|
|
571
571
|
end
|
|
572
572
|
|
|
573
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
|
574
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
|
575
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
|
576
|
+
# protobuf.Empty) returns (google.protobuf.Empty); `
|
|
577
|
+
class Empty
|
|
578
|
+
include Google::Apis::Core::Hashable
|
|
579
|
+
|
|
580
|
+
def initialize(**args)
|
|
581
|
+
update!(**args)
|
|
582
|
+
end
|
|
583
|
+
|
|
584
|
+
# Update properties of this object
|
|
585
|
+
def update!(**args)
|
|
586
|
+
end
|
|
587
|
+
end
|
|
588
|
+
|
|
573
589
|
# Platform independent options for features provided by the FCM SDKs.
|
|
574
590
|
class FcmOptions
|
|
575
591
|
include Google::Apis::Core::Hashable
|
|
@@ -668,6 +684,32 @@ module Google
|
|
|
668
684
|
end
|
|
669
685
|
end
|
|
670
686
|
|
|
687
|
+
# Response message for ListTopicSubscriptions.
|
|
688
|
+
class ListTopicSubscriptionsResponse
|
|
689
|
+
include Google::Apis::Core::Hashable
|
|
690
|
+
|
|
691
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
|
692
|
+
# field is omitted, there are no subsequent pages.
|
|
693
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
694
|
+
# @return [String]
|
|
695
|
+
attr_accessor :next_page_token
|
|
696
|
+
|
|
697
|
+
# The topic subscriptions for the instance.
|
|
698
|
+
# Corresponds to the JSON property `topicSubscriptions`
|
|
699
|
+
# @return [Array<Google::Apis::FcmV1::TopicSubscription>]
|
|
700
|
+
attr_accessor :topic_subscriptions
|
|
701
|
+
|
|
702
|
+
def initialize(**args)
|
|
703
|
+
update!(**args)
|
|
704
|
+
end
|
|
705
|
+
|
|
706
|
+
# Update properties of this object
|
|
707
|
+
def update!(**args)
|
|
708
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
709
|
+
@topic_subscriptions = args[:topic_subscriptions] if args.key?(:topic_subscriptions)
|
|
710
|
+
end
|
|
711
|
+
end
|
|
712
|
+
|
|
671
713
|
# Message to send by Firebase Cloud Messaging Service.
|
|
672
714
|
class Message
|
|
673
715
|
include Google::Apis::Core::Hashable
|
|
@@ -703,7 +745,8 @@ module Google
|
|
|
703
745
|
# @return [Google::Apis::FcmV1::FcmOptions]
|
|
704
746
|
attr_accessor :fcm_options
|
|
705
747
|
|
|
706
|
-
# Firebase Installation ID
|
|
748
|
+
# [Firebase Installation ID (FID)](/docs/cloud-messaging/android/get-started#
|
|
749
|
+
# access-firebase-installation-id) to send a message to.
|
|
707
750
|
# Corresponds to the JSON property `fid`
|
|
708
751
|
# @return [String]
|
|
709
752
|
attr_accessor :fid
|
|
@@ -719,9 +762,9 @@ module Google
|
|
|
719
762
|
# @return [Google::Apis::FcmV1::Notification]
|
|
720
763
|
attr_accessor :notification
|
|
721
764
|
|
|
722
|
-
# Deprecated: Use `fid` instead.
|
|
723
|
-
#
|
|
724
|
-
# .
|
|
765
|
+
# Deprecated: Use `fid` instead. During the transition period, this field also
|
|
766
|
+
# accepts a Firebase Installation ID (FID). Registration token to send a message
|
|
767
|
+
# to.
|
|
725
768
|
# Corresponds to the JSON property `token`
|
|
726
769
|
# @return [String]
|
|
727
770
|
attr_accessor :token
|
|
@@ -819,6 +862,41 @@ module Google
|
|
|
819
862
|
end
|
|
820
863
|
end
|
|
821
864
|
|
|
865
|
+
# Represents a subscription of a single app instance to a single FCM topic.
|
|
866
|
+
class TopicSubscription
|
|
867
|
+
include Google::Apis::Core::Hashable
|
|
868
|
+
|
|
869
|
+
# Output only. Time when the subscription was created.
|
|
870
|
+
# Corresponds to the JSON property `createTime`
|
|
871
|
+
# @return [String]
|
|
872
|
+
attr_accessor :create_time
|
|
873
|
+
|
|
874
|
+
# Identifier. The resource name of the subscription. Format: projects/`project`/
|
|
875
|
+
# registrations/`registration`/topicSubscriptions/`topicSubscription` The `
|
|
876
|
+
# registration` part contains the registration ID (e.g., FID).
|
|
877
|
+
# Corresponds to the JSON property `name`
|
|
878
|
+
# @return [String]
|
|
879
|
+
attr_accessor :name
|
|
880
|
+
|
|
881
|
+
# Output only. The ID of the TopicSubscription, which is the topic name. This
|
|
882
|
+
# corresponds to the `topicSubscription` segment in the resource name. Topic
|
|
883
|
+
# names match the pattern of "[a-zA-Z0-9-_.~%]`1,900`".
|
|
884
|
+
# Corresponds to the JSON property `topicName`
|
|
885
|
+
# @return [String]
|
|
886
|
+
attr_accessor :topic_name
|
|
887
|
+
|
|
888
|
+
def initialize(**args)
|
|
889
|
+
update!(**args)
|
|
890
|
+
end
|
|
891
|
+
|
|
892
|
+
# Update properties of this object
|
|
893
|
+
def update!(**args)
|
|
894
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
895
|
+
@name = args[:name] if args.key?(:name)
|
|
896
|
+
@topic_name = args[:topic_name] if args.key?(:topic_name)
|
|
897
|
+
end
|
|
898
|
+
end
|
|
899
|
+
|
|
822
900
|
# [Webpush protocol](https://tools.ietf.org/html/rfc8030) options.
|
|
823
901
|
class WebpushConfig
|
|
824
902
|
include Google::Apis::Core::Hashable
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module FcmV1
|
|
18
18
|
# Version of the google-apis-fcm_v1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.38.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260911"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -58,6 +58,12 @@ module Google
|
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
+
class Empty
|
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
+
|
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
65
|
+
end
|
|
66
|
+
|
|
61
67
|
class FcmOptions
|
|
62
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
69
|
|
|
@@ -70,6 +76,12 @@ module Google
|
|
|
70
76
|
include Google::Apis::Core::JsonObjectSupport
|
|
71
77
|
end
|
|
72
78
|
|
|
79
|
+
class ListTopicSubscriptionsResponse
|
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
|
+
|
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
83
|
+
end
|
|
84
|
+
|
|
73
85
|
class Message
|
|
74
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
87
|
|
|
@@ -88,6 +100,12 @@ module Google
|
|
|
88
100
|
include Google::Apis::Core::JsonObjectSupport
|
|
89
101
|
end
|
|
90
102
|
|
|
103
|
+
class TopicSubscription
|
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
|
+
|
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
107
|
+
end
|
|
108
|
+
|
|
91
109
|
class WebpushConfig
|
|
92
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
111
|
|
|
@@ -188,6 +206,12 @@ module Google
|
|
|
188
206
|
end
|
|
189
207
|
end
|
|
190
208
|
|
|
209
|
+
class Empty
|
|
210
|
+
# @private
|
|
211
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
191
215
|
class FcmOptions
|
|
192
216
|
# @private
|
|
193
217
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -205,6 +229,15 @@ module Google
|
|
|
205
229
|
end
|
|
206
230
|
end
|
|
207
231
|
|
|
232
|
+
class ListTopicSubscriptionsResponse
|
|
233
|
+
# @private
|
|
234
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
235
|
+
property :next_page_token, as: 'nextPageToken'
|
|
236
|
+
collection :topic_subscriptions, as: 'topicSubscriptions', class: Google::Apis::FcmV1::TopicSubscription, decorator: Google::Apis::FcmV1::TopicSubscription::Representation
|
|
237
|
+
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
208
241
|
class Message
|
|
209
242
|
# @private
|
|
210
243
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -245,6 +278,15 @@ module Google
|
|
|
245
278
|
end
|
|
246
279
|
end
|
|
247
280
|
|
|
281
|
+
class TopicSubscription
|
|
282
|
+
# @private
|
|
283
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
284
|
+
property :create_time, as: 'createTime'
|
|
285
|
+
property :name, as: 'name'
|
|
286
|
+
property :topic_name, as: 'topicName'
|
|
287
|
+
end
|
|
288
|
+
end
|
|
289
|
+
|
|
248
290
|
class WebpushConfig
|
|
249
291
|
# @private
|
|
250
292
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -52,7 +52,9 @@ module Google
|
|
|
52
52
|
@batch_path = 'batch'
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
# Send a message to specified target (a
|
|
55
|
+
# Send a message to specified target (a [Firebase Installation ID (FID)](/docs/
|
|
56
|
+
# cloud-messaging/android/get-started#access-firebase-installation-id),
|
|
57
|
+
# registration token, topic, or condition).
|
|
56
58
|
# @param [String] parent
|
|
57
59
|
# Required. It contains the Firebase project id (i.e. the unique identifier for
|
|
58
60
|
# your Firebase project), in the format of `projects/`project_id``. The numeric
|
|
@@ -87,6 +89,198 @@ module Google
|
|
|
87
89
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
88
90
|
execute_or_queue_command(command, &block)
|
|
89
91
|
end
|
|
92
|
+
|
|
93
|
+
# Creates a TopicSubscription. Subscribes an app installation instance (by
|
|
94
|
+
# registration_id, either FID or FCM Token) to a topicSubscription. Returns a
|
|
95
|
+
# TopicSubscription if it is created successfully. If the subscription already
|
|
96
|
+
# exists, returns error of ALREADY_EXISTS.
|
|
97
|
+
# @param [String] parent
|
|
98
|
+
# Required. The parent resource where this subscription will be created. Format:
|
|
99
|
+
# projects/`project`/registrations/`registration` The `registration` part can be
|
|
100
|
+
# an FID or an FCM Token.
|
|
101
|
+
# @param [Google::Apis::FcmV1::TopicSubscription] topic_subscription_object
|
|
102
|
+
# @param [String] topic_name
|
|
103
|
+
# Required. The ID to use for the subscription, which is the topic name. This
|
|
104
|
+
# will become the last segment of the TopicSubscription's resource name. Topic
|
|
105
|
+
# names match the pattern of "[a-zA-Z0-9-_.~%]`1,900`".
|
|
106
|
+
# @param [String] fields
|
|
107
|
+
# Selector specifying which fields to include in a partial response.
|
|
108
|
+
# @param [String] quota_user
|
|
109
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
110
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
111
|
+
# @param [Google::Apis::RequestOptions] options
|
|
112
|
+
# Request-specific options
|
|
113
|
+
#
|
|
114
|
+
# @yield [result, err] Result & error if block supplied
|
|
115
|
+
# @yieldparam result [Google::Apis::FcmV1::TopicSubscription] parsed result object
|
|
116
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
117
|
+
#
|
|
118
|
+
# @return [Google::Apis::FcmV1::TopicSubscription]
|
|
119
|
+
#
|
|
120
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
121
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
122
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
123
|
+
def create_project_registration_topic_subscription(parent, topic_subscription_object = nil, topic_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
124
|
+
command = make_simple_command(:post, 'v1/{+parent}/topicSubscriptions', options)
|
|
125
|
+
command.request_representation = Google::Apis::FcmV1::TopicSubscription::Representation
|
|
126
|
+
command.request_object = topic_subscription_object
|
|
127
|
+
command.response_representation = Google::Apis::FcmV1::TopicSubscription::Representation
|
|
128
|
+
command.response_class = Google::Apis::FcmV1::TopicSubscription
|
|
129
|
+
command.params['parent'] = parent unless parent.nil?
|
|
130
|
+
command.query['topicName'] = topic_name unless topic_name.nil?
|
|
131
|
+
command.query['fields'] = fields unless fields.nil?
|
|
132
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
133
|
+
execute_or_queue_command(command, &block)
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Deletes a TopicSubscription.
|
|
137
|
+
# @param [String] name
|
|
138
|
+
# Required. The name of the topic subscription to delete. Format: projects/`
|
|
139
|
+
# project`/registrations/`registration`/topicSubscriptions/`topicSubscription`
|
|
140
|
+
# @param [Boolean] allow_missing
|
|
141
|
+
# Optional. If set to true, and the topic subscription is not found, the request
|
|
142
|
+
# will succeed but no action will be taken on the server.
|
|
143
|
+
# @param [String] fields
|
|
144
|
+
# Selector specifying which fields to include in a partial response.
|
|
145
|
+
# @param [String] quota_user
|
|
146
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
147
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
148
|
+
# @param [Google::Apis::RequestOptions] options
|
|
149
|
+
# Request-specific options
|
|
150
|
+
#
|
|
151
|
+
# @yield [result, err] Result & error if block supplied
|
|
152
|
+
# @yieldparam result [Google::Apis::FcmV1::Empty] parsed result object
|
|
153
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
154
|
+
#
|
|
155
|
+
# @return [Google::Apis::FcmV1::Empty]
|
|
156
|
+
#
|
|
157
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
158
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
159
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
160
|
+
def delete_project_registration_topic_subscription(name, allow_missing: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
161
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
162
|
+
command.response_representation = Google::Apis::FcmV1::Empty::Representation
|
|
163
|
+
command.response_class = Google::Apis::FcmV1::Empty
|
|
164
|
+
command.params['name'] = name unless name.nil?
|
|
165
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
|
166
|
+
command.query['fields'] = fields unless fields.nil?
|
|
167
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
168
|
+
execute_or_queue_command(command, &block)
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Gets a TopicSubscription.
|
|
172
|
+
# @param [String] name
|
|
173
|
+
# Required. The name of the topic subscription to retrieve. Format: projects/`
|
|
174
|
+
# project`/registrations/`registration`/topicSubscriptions/`topicSubscription`
|
|
175
|
+
# @param [String] fields
|
|
176
|
+
# Selector specifying which fields to include in a partial response.
|
|
177
|
+
# @param [String] quota_user
|
|
178
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
179
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
180
|
+
# @param [Google::Apis::RequestOptions] options
|
|
181
|
+
# Request-specific options
|
|
182
|
+
#
|
|
183
|
+
# @yield [result, err] Result & error if block supplied
|
|
184
|
+
# @yieldparam result [Google::Apis::FcmV1::TopicSubscription] parsed result object
|
|
185
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
186
|
+
#
|
|
187
|
+
# @return [Google::Apis::FcmV1::TopicSubscription]
|
|
188
|
+
#
|
|
189
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
190
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
191
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
192
|
+
def get_project_registration_topic_subscription(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
193
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
194
|
+
command.response_representation = Google::Apis::FcmV1::TopicSubscription::Representation
|
|
195
|
+
command.response_class = Google::Apis::FcmV1::TopicSubscription
|
|
196
|
+
command.params['name'] = name unless name.nil?
|
|
197
|
+
command.query['fields'] = fields unless fields.nil?
|
|
198
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
199
|
+
execute_or_queue_command(command, &block)
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Lists TopicSubscriptions for a given app instance.
|
|
203
|
+
# @param [String] parent
|
|
204
|
+
# Required. The parent resource, which owns this collection of subscriptions.
|
|
205
|
+
# Format: projects/`project`/registrations/`registration` The `registration`
|
|
206
|
+
# part can be an FID or an FCM Token.
|
|
207
|
+
# @param [Fixnum] page_size
|
|
208
|
+
# Optional. The maximum number of subscriptions to return. The service may
|
|
209
|
+
# return fewer than this value. If unspecified, at most 1000 subscriptions will
|
|
210
|
+
# be returned. The maximum value is 2000; values above 2000 will be coerced to
|
|
211
|
+
# 2000.
|
|
212
|
+
# @param [String] page_token
|
|
213
|
+
# Optional. A page token, received from a previous `ListTopicSubscriptions` call.
|
|
214
|
+
# Provide this to retrieve the subsequent page.
|
|
215
|
+
# @param [String] fields
|
|
216
|
+
# Selector specifying which fields to include in a partial response.
|
|
217
|
+
# @param [String] quota_user
|
|
218
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
219
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
220
|
+
# @param [Google::Apis::RequestOptions] options
|
|
221
|
+
# Request-specific options
|
|
222
|
+
#
|
|
223
|
+
# @yield [result, err] Result & error if block supplied
|
|
224
|
+
# @yieldparam result [Google::Apis::FcmV1::ListTopicSubscriptionsResponse] parsed result object
|
|
225
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
226
|
+
#
|
|
227
|
+
# @return [Google::Apis::FcmV1::ListTopicSubscriptionsResponse]
|
|
228
|
+
#
|
|
229
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
230
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
231
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
232
|
+
def list_project_registration_topic_subscriptions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
233
|
+
command = make_simple_command(:get, 'v1/{+parent}/topicSubscriptions', options)
|
|
234
|
+
command.response_representation = Google::Apis::FcmV1::ListTopicSubscriptionsResponse::Representation
|
|
235
|
+
command.response_class = Google::Apis::FcmV1::ListTopicSubscriptionsResponse
|
|
236
|
+
command.params['parent'] = parent unless parent.nil?
|
|
237
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
238
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
239
|
+
command.query['fields'] = fields unless fields.nil?
|
|
240
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
241
|
+
execute_or_queue_command(command, &block)
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Updates a TopicSubscription. Subscribes an app installation instance by
|
|
245
|
+
# registration_id, either FID or FCM Token, to a topicSubscription. Returns an
|
|
246
|
+
# existing TopicSubscription or creates a new one if it does not exist.
|
|
247
|
+
# @param [String] name
|
|
248
|
+
# Identifier. The resource name of the subscription. Format: projects/`project`/
|
|
249
|
+
# registrations/`registration`/topicSubscriptions/`topicSubscription` The `
|
|
250
|
+
# registration` part contains the registration ID (e.g., FID).
|
|
251
|
+
# @param [Google::Apis::FcmV1::TopicSubscription] topic_subscription_object
|
|
252
|
+
# @param [Boolean] allow_missing
|
|
253
|
+
# Optional. If set to true, and the topic subscription is not found, a new topic
|
|
254
|
+
# subscription will be created.
|
|
255
|
+
# @param [String] fields
|
|
256
|
+
# Selector specifying which fields to include in a partial response.
|
|
257
|
+
# @param [String] quota_user
|
|
258
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
259
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
260
|
+
# @param [Google::Apis::RequestOptions] options
|
|
261
|
+
# Request-specific options
|
|
262
|
+
#
|
|
263
|
+
# @yield [result, err] Result & error if block supplied
|
|
264
|
+
# @yieldparam result [Google::Apis::FcmV1::TopicSubscription] parsed result object
|
|
265
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
266
|
+
#
|
|
267
|
+
# @return [Google::Apis::FcmV1::TopicSubscription]
|
|
268
|
+
#
|
|
269
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
270
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
271
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
272
|
+
def patch_project_registration_topic_subscription(name, topic_subscription_object = nil, allow_missing: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
273
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
274
|
+
command.request_representation = Google::Apis::FcmV1::TopicSubscription::Representation
|
|
275
|
+
command.request_object = topic_subscription_object
|
|
276
|
+
command.response_representation = Google::Apis::FcmV1::TopicSubscription::Representation
|
|
277
|
+
command.response_class = Google::Apis::FcmV1::TopicSubscription
|
|
278
|
+
command.params['name'] = name unless name.nil?
|
|
279
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
|
280
|
+
command.query['fields'] = fields unless fields.nil?
|
|
281
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
282
|
+
execute_or_queue_command(command, &block)
|
|
283
|
+
end
|
|
90
284
|
|
|
91
285
|
protected
|
|
92
286
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-fcm_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.38.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-fcm_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-fcm_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-fcm_v1/v0.38.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-fcm_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|