google-apps-events-subscriptions-v1 0.a → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/apps/events/subscriptions/v1/rest.rb +39 -0
  6. data/lib/google/apps/events/subscriptions/v1/subscription_resource_pb.rb +57 -0
  7. data/lib/google/apps/events/subscriptions/v1/subscriptions_service/client.rb +1029 -0
  8. data/lib/google/apps/events/subscriptions/v1/subscriptions_service/credentials.rb +59 -0
  9. data/lib/google/apps/events/subscriptions/v1/subscriptions_service/operations.rb +803 -0
  10. data/lib/google/apps/events/subscriptions/v1/subscriptions_service/paths.rb +80 -0
  11. data/lib/google/apps/events/subscriptions/v1/subscriptions_service/rest/client.rb +977 -0
  12. data/lib/google/apps/events/subscriptions/v1/subscriptions_service/rest/operations.rb +897 -0
  13. data/lib/google/apps/events/subscriptions/v1/subscriptions_service/rest/service_stub.rb +424 -0
  14. data/lib/google/apps/events/subscriptions/v1/subscriptions_service/rest.rb +55 -0
  15. data/lib/google/apps/events/subscriptions/v1/subscriptions_service.rb +58 -0
  16. data/lib/google/apps/events/subscriptions/v1/subscriptions_service_pb.rb +65 -0
  17. data/lib/google/apps/events/subscriptions/v1/subscriptions_service_services_pb.rb +73 -0
  18. data/lib/google/apps/events/subscriptions/v1/version.rb +7 -2
  19. data/lib/google/apps/events/subscriptions/v1.rb +47 -0
  20. data/lib/google-apps-events-subscriptions-v1.rb +21 -0
  21. data/proto_docs/README.md +4 -0
  22. data/proto_docs/google/api/client.rb +399 -0
  23. data/proto_docs/google/api/field_behavior.rb +85 -0
  24. data/proto_docs/google/api/launch_stage.rb +71 -0
  25. data/proto_docs/google/api/resource.rb +222 -0
  26. data/proto_docs/google/apps/events/subscriptions/v1/subscription_resource.rb +224 -0
  27. data/proto_docs/google/apps/events/subscriptions/v1/subscriptions_service.rb +211 -0
  28. data/proto_docs/google/longrunning/operations.rb +164 -0
  29. data/proto_docs/google/protobuf/any.rb +145 -0
  30. data/proto_docs/google/protobuf/duration.rb +98 -0
  31. data/proto_docs/google/protobuf/empty.rb +34 -0
  32. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  33. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  34. data/proto_docs/google/rpc/status.rb +48 -0
  35. metadata +77 -11
@@ -0,0 +1,424 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/apps/events/subscriptions/v1/subscriptions_service_pb"
20
+
21
+ module Google
22
+ module Apps
23
+ module Events
24
+ module Subscriptions
25
+ module V1
26
+ module SubscriptionsService
27
+ module Rest
28
+ ##
29
+ # REST service stub for the SubscriptionsService service.
30
+ # Service stub contains baseline method implementations
31
+ # including transcoding, making the REST call, and deserialing the response.
32
+ #
33
+ class ServiceStub
34
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
35
+ # These require statements are intentionally placed here to initialize
36
+ # the REST modules only when it's required.
37
+ require "gapic/rest"
38
+
39
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
40
+ endpoint_template: endpoint_template,
41
+ universe_domain: universe_domain,
42
+ credentials: credentials,
43
+ numeric_enums: true,
44
+ raise_faraday_errors: false
45
+ end
46
+
47
+ ##
48
+ # The effective universe domain
49
+ #
50
+ # @return [String]
51
+ #
52
+ def universe_domain
53
+ @client_stub.universe_domain
54
+ end
55
+
56
+ ##
57
+ # The effective endpoint
58
+ #
59
+ # @return [String]
60
+ #
61
+ def endpoint
62
+ @client_stub.endpoint
63
+ end
64
+
65
+ ##
66
+ # Baseline implementation for the create_subscription REST call
67
+ #
68
+ # @param request_pb [::Google::Apps::Events::Subscriptions::V1::CreateSubscriptionRequest]
69
+ # A request object representing the call parameters. Required.
70
+ # @param options [::Gapic::CallOptions]
71
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
72
+ #
73
+ # @yield [result, operation] Access the result along with the TransportOperation object
74
+ # @yieldparam result [::Google::Longrunning::Operation]
75
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
76
+ #
77
+ # @return [::Google::Longrunning::Operation]
78
+ # A result object deserialized from the server's reply
79
+ def create_subscription request_pb, options = nil
80
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
81
+
82
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_subscription_request request_pb
83
+ query_string_params = if query_string_params.any?
84
+ query_string_params.to_h { |p| p.split "=", 2 }
85
+ else
86
+ {}
87
+ end
88
+
89
+ response = @client_stub.make_http_request(
90
+ verb,
91
+ uri: uri,
92
+ body: body || "",
93
+ params: query_string_params,
94
+ options: options
95
+ )
96
+ operation = ::Gapic::Rest::TransportOperation.new response
97
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
98
+
99
+ yield result, operation if block_given?
100
+ result
101
+ end
102
+
103
+ ##
104
+ # Baseline implementation for the delete_subscription REST call
105
+ #
106
+ # @param request_pb [::Google::Apps::Events::Subscriptions::V1::DeleteSubscriptionRequest]
107
+ # A request object representing the call parameters. Required.
108
+ # @param options [::Gapic::CallOptions]
109
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
110
+ #
111
+ # @yield [result, operation] Access the result along with the TransportOperation object
112
+ # @yieldparam result [::Google::Longrunning::Operation]
113
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
114
+ #
115
+ # @return [::Google::Longrunning::Operation]
116
+ # A result object deserialized from the server's reply
117
+ def delete_subscription request_pb, options = nil
118
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
119
+
120
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_subscription_request request_pb
121
+ query_string_params = if query_string_params.any?
122
+ query_string_params.to_h { |p| p.split "=", 2 }
123
+ else
124
+ {}
125
+ end
126
+
127
+ response = @client_stub.make_http_request(
128
+ verb,
129
+ uri: uri,
130
+ body: body || "",
131
+ params: query_string_params,
132
+ options: options
133
+ )
134
+ operation = ::Gapic::Rest::TransportOperation.new response
135
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
136
+
137
+ yield result, operation if block_given?
138
+ result
139
+ end
140
+
141
+ ##
142
+ # Baseline implementation for the get_subscription REST call
143
+ #
144
+ # @param request_pb [::Google::Apps::Events::Subscriptions::V1::GetSubscriptionRequest]
145
+ # A request object representing the call parameters. Required.
146
+ # @param options [::Gapic::CallOptions]
147
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
148
+ #
149
+ # @yield [result, operation] Access the result along with the TransportOperation object
150
+ # @yieldparam result [::Google::Apps::Events::Subscriptions::V1::Subscription]
151
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
152
+ #
153
+ # @return [::Google::Apps::Events::Subscriptions::V1::Subscription]
154
+ # A result object deserialized from the server's reply
155
+ def get_subscription request_pb, options = nil
156
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
157
+
158
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_subscription_request request_pb
159
+ query_string_params = if query_string_params.any?
160
+ query_string_params.to_h { |p| p.split "=", 2 }
161
+ else
162
+ {}
163
+ end
164
+
165
+ response = @client_stub.make_http_request(
166
+ verb,
167
+ uri: uri,
168
+ body: body || "",
169
+ params: query_string_params,
170
+ options: options
171
+ )
172
+ operation = ::Gapic::Rest::TransportOperation.new response
173
+ result = ::Google::Apps::Events::Subscriptions::V1::Subscription.decode_json response.body, ignore_unknown_fields: true
174
+
175
+ yield result, operation if block_given?
176
+ result
177
+ end
178
+
179
+ ##
180
+ # Baseline implementation for the list_subscriptions REST call
181
+ #
182
+ # @param request_pb [::Google::Apps::Events::Subscriptions::V1::ListSubscriptionsRequest]
183
+ # A request object representing the call parameters. Required.
184
+ # @param options [::Gapic::CallOptions]
185
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
186
+ #
187
+ # @yield [result, operation] Access the result along with the TransportOperation object
188
+ # @yieldparam result [::Google::Apps::Events::Subscriptions::V1::ListSubscriptionsResponse]
189
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
190
+ #
191
+ # @return [::Google::Apps::Events::Subscriptions::V1::ListSubscriptionsResponse]
192
+ # A result object deserialized from the server's reply
193
+ def list_subscriptions request_pb, options = nil
194
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
195
+
196
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_subscriptions_request request_pb
197
+ query_string_params = if query_string_params.any?
198
+ query_string_params.to_h { |p| p.split "=", 2 }
199
+ else
200
+ {}
201
+ end
202
+
203
+ response = @client_stub.make_http_request(
204
+ verb,
205
+ uri: uri,
206
+ body: body || "",
207
+ params: query_string_params,
208
+ options: options
209
+ )
210
+ operation = ::Gapic::Rest::TransportOperation.new response
211
+ result = ::Google::Apps::Events::Subscriptions::V1::ListSubscriptionsResponse.decode_json response.body, ignore_unknown_fields: true
212
+
213
+ yield result, operation if block_given?
214
+ result
215
+ end
216
+
217
+ ##
218
+ # Baseline implementation for the update_subscription REST call
219
+ #
220
+ # @param request_pb [::Google::Apps::Events::Subscriptions::V1::UpdateSubscriptionRequest]
221
+ # A request object representing the call parameters. Required.
222
+ # @param options [::Gapic::CallOptions]
223
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
224
+ #
225
+ # @yield [result, operation] Access the result along with the TransportOperation object
226
+ # @yieldparam result [::Google::Longrunning::Operation]
227
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
228
+ #
229
+ # @return [::Google::Longrunning::Operation]
230
+ # A result object deserialized from the server's reply
231
+ def update_subscription request_pb, options = nil
232
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
233
+
234
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_subscription_request request_pb
235
+ query_string_params = if query_string_params.any?
236
+ query_string_params.to_h { |p| p.split "=", 2 }
237
+ else
238
+ {}
239
+ end
240
+
241
+ response = @client_stub.make_http_request(
242
+ verb,
243
+ uri: uri,
244
+ body: body || "",
245
+ params: query_string_params,
246
+ options: options
247
+ )
248
+ operation = ::Gapic::Rest::TransportOperation.new response
249
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
250
+
251
+ yield result, operation if block_given?
252
+ result
253
+ end
254
+
255
+ ##
256
+ # Baseline implementation for the reactivate_subscription REST call
257
+ #
258
+ # @param request_pb [::Google::Apps::Events::Subscriptions::V1::ReactivateSubscriptionRequest]
259
+ # A request object representing the call parameters. Required.
260
+ # @param options [::Gapic::CallOptions]
261
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
262
+ #
263
+ # @yield [result, operation] Access the result along with the TransportOperation object
264
+ # @yieldparam result [::Google::Longrunning::Operation]
265
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
266
+ #
267
+ # @return [::Google::Longrunning::Operation]
268
+ # A result object deserialized from the server's reply
269
+ def reactivate_subscription request_pb, options = nil
270
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
271
+
272
+ verb, uri, query_string_params, body = ServiceStub.transcode_reactivate_subscription_request request_pb
273
+ query_string_params = if query_string_params.any?
274
+ query_string_params.to_h { |p| p.split "=", 2 }
275
+ else
276
+ {}
277
+ end
278
+
279
+ response = @client_stub.make_http_request(
280
+ verb,
281
+ uri: uri,
282
+ body: body || "",
283
+ params: query_string_params,
284
+ options: options
285
+ )
286
+ operation = ::Gapic::Rest::TransportOperation.new response
287
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
288
+
289
+ yield result, operation if block_given?
290
+ result
291
+ end
292
+
293
+ ##
294
+ # @private
295
+ #
296
+ # GRPC transcoding helper method for the create_subscription REST call
297
+ #
298
+ # @param request_pb [::Google::Apps::Events::Subscriptions::V1::CreateSubscriptionRequest]
299
+ # A request object representing the call parameters. Required.
300
+ # @return [Array(String, [String, nil], Hash{String => String})]
301
+ # Uri, Body, Query string parameters
302
+ def self.transcode_create_subscription_request request_pb
303
+ transcoder = Gapic::Rest::GrpcTranscoder.new
304
+ .with_bindings(
305
+ uri_method: :post,
306
+ uri_template: "/v1/subscriptions",
307
+ body: "subscription",
308
+ matches: []
309
+ )
310
+ transcoder.transcode request_pb
311
+ end
312
+
313
+ ##
314
+ # @private
315
+ #
316
+ # GRPC transcoding helper method for the delete_subscription REST call
317
+ #
318
+ # @param request_pb [::Google::Apps::Events::Subscriptions::V1::DeleteSubscriptionRequest]
319
+ # A request object representing the call parameters. Required.
320
+ # @return [Array(String, [String, nil], Hash{String => String})]
321
+ # Uri, Body, Query string parameters
322
+ def self.transcode_delete_subscription_request request_pb
323
+ transcoder = Gapic::Rest::GrpcTranscoder.new
324
+ .with_bindings(
325
+ uri_method: :delete,
326
+ uri_template: "/v1/{name}",
327
+ matches: [
328
+ ["name", %r{^subscriptions/[^/]+/?$}, false]
329
+ ]
330
+ )
331
+ transcoder.transcode request_pb
332
+ end
333
+
334
+ ##
335
+ # @private
336
+ #
337
+ # GRPC transcoding helper method for the get_subscription REST call
338
+ #
339
+ # @param request_pb [::Google::Apps::Events::Subscriptions::V1::GetSubscriptionRequest]
340
+ # A request object representing the call parameters. Required.
341
+ # @return [Array(String, [String, nil], Hash{String => String})]
342
+ # Uri, Body, Query string parameters
343
+ def self.transcode_get_subscription_request request_pb
344
+ transcoder = Gapic::Rest::GrpcTranscoder.new
345
+ .with_bindings(
346
+ uri_method: :get,
347
+ uri_template: "/v1/{name}",
348
+ matches: [
349
+ ["name", %r{^subscriptions/[^/]+/?$}, false]
350
+ ]
351
+ )
352
+ transcoder.transcode request_pb
353
+ end
354
+
355
+ ##
356
+ # @private
357
+ #
358
+ # GRPC transcoding helper method for the list_subscriptions REST call
359
+ #
360
+ # @param request_pb [::Google::Apps::Events::Subscriptions::V1::ListSubscriptionsRequest]
361
+ # A request object representing the call parameters. Required.
362
+ # @return [Array(String, [String, nil], Hash{String => String})]
363
+ # Uri, Body, Query string parameters
364
+ def self.transcode_list_subscriptions_request request_pb
365
+ transcoder = Gapic::Rest::GrpcTranscoder.new
366
+ .with_bindings(
367
+ uri_method: :get,
368
+ uri_template: "/v1/subscriptions",
369
+ matches: []
370
+ )
371
+ transcoder.transcode request_pb
372
+ end
373
+
374
+ ##
375
+ # @private
376
+ #
377
+ # GRPC transcoding helper method for the update_subscription REST call
378
+ #
379
+ # @param request_pb [::Google::Apps::Events::Subscriptions::V1::UpdateSubscriptionRequest]
380
+ # A request object representing the call parameters. Required.
381
+ # @return [Array(String, [String, nil], Hash{String => String})]
382
+ # Uri, Body, Query string parameters
383
+ def self.transcode_update_subscription_request request_pb
384
+ transcoder = Gapic::Rest::GrpcTranscoder.new
385
+ .with_bindings(
386
+ uri_method: :patch,
387
+ uri_template: "/v1/{subscription.name}",
388
+ body: "subscription",
389
+ matches: [
390
+ ["subscription.name", %r{^subscriptions/[^/]+/?$}, false]
391
+ ]
392
+ )
393
+ transcoder.transcode request_pb
394
+ end
395
+
396
+ ##
397
+ # @private
398
+ #
399
+ # GRPC transcoding helper method for the reactivate_subscription REST call
400
+ #
401
+ # @param request_pb [::Google::Apps::Events::Subscriptions::V1::ReactivateSubscriptionRequest]
402
+ # A request object representing the call parameters. Required.
403
+ # @return [Array(String, [String, nil], Hash{String => String})]
404
+ # Uri, Body, Query string parameters
405
+ def self.transcode_reactivate_subscription_request request_pb
406
+ transcoder = Gapic::Rest::GrpcTranscoder.new
407
+ .with_bindings(
408
+ uri_method: :post,
409
+ uri_template: "/v1/{name}:reactivate",
410
+ body: "*",
411
+ matches: [
412
+ ["name", %r{^subscriptions/[^/]+/?$}, false]
413
+ ]
414
+ )
415
+ transcoder.transcode request_pb
416
+ end
417
+ end
418
+ end
419
+ end
420
+ end
421
+ end
422
+ end
423
+ end
424
+ end
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/apps/events/subscriptions/v1/version"
24
+
25
+ require "google/apps/events/subscriptions/v1/subscriptions_service/credentials"
26
+ require "google/apps/events/subscriptions/v1/subscriptions_service/paths"
27
+ require "google/apps/events/subscriptions/v1/subscriptions_service/rest/operations"
28
+ require "google/apps/events/subscriptions/v1/subscriptions_service/rest/client"
29
+
30
+ module Google
31
+ module Apps
32
+ module Events
33
+ module Subscriptions
34
+ module V1
35
+ ##
36
+ # A service that manages subscriptions to Google Workspace events.
37
+ #
38
+ # To load this service and instantiate a REST client:
39
+ #
40
+ # require "google/apps/events/subscriptions/v1/subscriptions_service/rest"
41
+ # client = ::Google::Apps::Events::Subscriptions::V1::SubscriptionsService::Rest::Client.new
42
+ #
43
+ module SubscriptionsService
44
+ # Client for the REST transport
45
+ module Rest
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+
54
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
55
+ require "google/apps/events/subscriptions/v1/subscriptions_service/rest/helpers" if ::File.file? helper_path
@@ -0,0 +1,58 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/apps/events/subscriptions/v1/version"
24
+
25
+ require "google/apps/events/subscriptions/v1/subscriptions_service/credentials"
26
+ require "google/apps/events/subscriptions/v1/subscriptions_service/paths"
27
+ require "google/apps/events/subscriptions/v1/subscriptions_service/operations"
28
+ require "google/apps/events/subscriptions/v1/subscriptions_service/client"
29
+ require "google/apps/events/subscriptions/v1/subscriptions_service/rest"
30
+
31
+ module Google
32
+ module Apps
33
+ module Events
34
+ module Subscriptions
35
+ module V1
36
+ ##
37
+ # A service that manages subscriptions to Google Workspace events.
38
+ #
39
+ # @example Load this service and instantiate a gRPC client
40
+ #
41
+ # require "google/apps/events/subscriptions/v1/subscriptions_service"
42
+ # client = ::Google::Apps::Events::Subscriptions::V1::SubscriptionsService::Client.new
43
+ #
44
+ # @example Load this service and instantiate a REST client
45
+ #
46
+ # require "google/apps/events/subscriptions/v1/subscriptions_service/rest"
47
+ # client = ::Google::Apps::Events::Subscriptions::V1::SubscriptionsService::Rest::Client.new
48
+ #
49
+ module SubscriptionsService
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
56
+
57
+ helper_path = ::File.join __dir__, "subscriptions_service", "helpers.rb"
58
+ require "google/apps/events/subscriptions/v1/subscriptions_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,65 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/apps/events/subscriptions/v1/subscriptions_service.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/apps/events/subscriptions/v1/subscription_resource_pb'
12
+ require 'google/longrunning/operations_pb'
13
+ require 'google/protobuf/empty_pb'
14
+ require 'google/protobuf/field_mask_pb'
15
+
16
+
17
+ descriptor_data = "\n?google/apps/events/subscriptions/v1/subscriptions_service.proto\x12#google.apps.events.subscriptions.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a?google/apps/events/subscriptions/v1/subscription_resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x85\x01\n\x19\x43reateSubscriptionRequest\x12L\n\x0csubscription\x18\x01 \x01(\x0b\x32\x31.google.apps.events.subscriptions.v1.SubscriptionB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xa9\x01\n\x19\x44\x65leteSubscriptionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+workspaceevents.googleapis.com/Subscription\x12\x1a\n\rvalidate_only\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rallow_missing\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x04 \x01(\tB\x03\xe0\x41\x01\"[\n\x16GetSubscriptionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+workspaceevents.googleapis.com/Subscription\"\xbb\x01\n\x19UpdateSubscriptionRequest\x12L\n\x0csubscription\x18\x01 \x01(\x0b\x32\x31.google.apps.events.subscriptions.v1.SubscriptionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"b\n\x1dReactivateSubscriptionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+workspaceevents.googleapis.com/Subscription\"`\n\x18ListSubscriptionsRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x02\"~\n\x19ListSubscriptionsResponse\x12H\n\rsubscriptions\x18\x01 \x03(\x0b\x32\x31.google.apps.events.subscriptions.v1.Subscription\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x1c\n\x1aUpdateSubscriptionMetadata\"\x1c\n\x1a\x43reateSubscriptionMetadata\"\x1c\n\x1a\x44\x65leteSubscriptionMetadata\" \n\x1eReactivateSubscriptionMetadata2\xff\x0e\n\x14SubscriptionsService\x12\xd8\x01\n\x12\x43reateSubscription\x12>.google.apps.events.subscriptions.v1.CreateSubscriptionRequest\x1a\x1d.google.longrunning.Operation\"c\xca\x41*\n\x0cSubscription\x12\x1a\x43reateSubscriptionMetadata\xda\x41\x0csubscription\x82\xd3\xe4\x93\x02!\"\x11/v1/subscriptions:\x0csubscription\x12\xd4\x01\n\x12\x44\x65leteSubscription\x12>.google.apps.events.subscriptions.v1.DeleteSubscriptionRequest\x1a\x1d.google.longrunning.Operation\"_\xca\x41\x33\n\x15google.protobuf.Empty\x12\x1a\x44\x65leteSubscriptionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1c*\x1a/v1/{name=subscriptions/*}\x12\xac\x01\n\x0fGetSubscription\x12;.google.apps.events.subscriptions.v1.GetSubscriptionRequest\x1a\x31.google.apps.events.subscriptions.v1.Subscription\")\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1c\x12\x1a/v1/{name=subscriptions/*}\x12\xb6\x01\n\x11ListSubscriptions\x12=.google.apps.events.subscriptions.v1.ListSubscriptionsRequest\x1a>.google.apps.events.subscriptions.v1.ListSubscriptionsResponse\"\"\xda\x41\x06\x66ilter\x82\xd3\xe4\x93\x02\x13\x12\x11/v1/subscriptions\x12\xfb\x01\n\x12UpdateSubscription\x12>.google.apps.events.subscriptions.v1.UpdateSubscriptionRequest\x1a\x1d.google.longrunning.Operation\"\x85\x01\xca\x41*\n\x0cSubscription\x12\x1aUpdateSubscriptionMetadata\xda\x41\x18subscription,update_mask\x82\xd3\xe4\x93\x02\x37\x32\'/v1/{subscription.name=subscriptions/*}:\x0csubscription\x12\xe5\x01\n\x16ReactivateSubscription\x12\x42.google.apps.events.subscriptions.v1.ReactivateSubscriptionRequest\x1a\x1d.google.longrunning.Operation\"h\xca\x41.\n\x0cSubscription\x12\x1eReactivateSubscriptionMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02*\"%/v1/{name=subscriptions/*}:reactivate:\x01*\x1a\xe6\x04\xca\x41\x1eworkspaceevents.googleapis.com\xd2\x41\xc1\x04https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/meetings.space.created,https://www.googleapis.com/auth/meetings.space.readonlyB\x91\x02\n\'com.google.apps.events.subscriptions.v1B\x19SubscriptionsServiceProtoP\x01ZScloud.google.com/go/apps/events/subscriptions/apiv1/subscriptionspb;subscriptionspb\xaa\x02#Google.Apps.Events.Subscriptions.V1\xca\x02#Google\\Apps\\Events\\Subscriptions\\V1\xea\x02\'Google::Apps::Events::Subscriptions::V1b\x06proto3"
18
+
19
+ pool = Google::Protobuf::DescriptorPool.generated_pool
20
+
21
+ begin
22
+ pool.add_serialized_file(descriptor_data)
23
+ rescue TypeError
24
+ # Compatibility code: will be removed in the next major version.
25
+ require 'google/protobuf/descriptor_pb'
26
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
27
+ parsed.clear_dependency
28
+ serialized = parsed.class.encode(parsed)
29
+ file = pool.add_serialized_file(serialized)
30
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
31
+ imports = [
32
+ ["google.apps.events.subscriptions.v1.Subscription", "google/apps/events/subscriptions/v1/subscription_resource.proto"],
33
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
34
+ ]
35
+ imports.each do |type_name, expected_filename|
36
+ import_file = pool.lookup(type_name).file_descriptor
37
+ if import_file.name != expected_filename
38
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
39
+ end
40
+ end
41
+ warn "Each proto file must use a consistent fully-qualified name."
42
+ warn "This will become an error in the next major version."
43
+ end
44
+
45
+ module Google
46
+ module Apps
47
+ module Events
48
+ module Subscriptions
49
+ module V1
50
+ CreateSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.events.subscriptions.v1.CreateSubscriptionRequest").msgclass
51
+ DeleteSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.events.subscriptions.v1.DeleteSubscriptionRequest").msgclass
52
+ GetSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.events.subscriptions.v1.GetSubscriptionRequest").msgclass
53
+ UpdateSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.events.subscriptions.v1.UpdateSubscriptionRequest").msgclass
54
+ ReactivateSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.events.subscriptions.v1.ReactivateSubscriptionRequest").msgclass
55
+ ListSubscriptionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.events.subscriptions.v1.ListSubscriptionsRequest").msgclass
56
+ ListSubscriptionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.events.subscriptions.v1.ListSubscriptionsResponse").msgclass
57
+ UpdateSubscriptionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.events.subscriptions.v1.UpdateSubscriptionMetadata").msgclass
58
+ CreateSubscriptionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.events.subscriptions.v1.CreateSubscriptionMetadata").msgclass
59
+ DeleteSubscriptionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.events.subscriptions.v1.DeleteSubscriptionMetadata").msgclass
60
+ ReactivateSubscriptionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.events.subscriptions.v1.ReactivateSubscriptionMetadata").msgclass
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end