google-apps-events-subscriptions-v1 0.1.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -21
- data/lib/google/apps/events/subscriptions/v1/subscriptions_service/client.rb +39 -7
- data/lib/google/apps/events/subscriptions/v1/subscriptions_service/operations.rb +19 -15
- data/lib/google/apps/events/subscriptions/v1/subscriptions_service/rest/client.rb +39 -7
- data/lib/google/apps/events/subscriptions/v1/subscriptions_service/rest/operations.rb +50 -38
- data/lib/google/apps/events/subscriptions/v1/subscriptions_service/rest/service_stub.rb +62 -38
- data/lib/google/apps/events/subscriptions/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/apps/events/subscriptions/v1/subscription_resource.rb +4 -0
- data/proto_docs/google/longrunning/operations.rb +23 -14
- metadata +6 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aee42b3930b43f1ad9f8044234b7b1b58e820c24a194eb893dd8edc661712fa8
|
4
|
+
data.tar.gz: 7bca59d6a5d7461da2641ec973c2990cf2e649167d21828a3af6eb99d46d3ca5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae95b9e36870ffd6eff4b253a3d5c3b3a60f990df423fe4f65650881613076f5225e90a69969ec5801e346a7524cfec346de276108b3e8d4dd49fd777f3342d9
|
7
|
+
data.tar.gz: 5552a4862409dd62def5dbab78743a23bd41d2985fcc656a1ff5a95678a9f8361b672ca72137ff333407522bbe72d2facb496335e4bb7d5e24f167580a90fac6
|
data/README.md
CHANGED
@@ -43,40 +43,50 @@ for class and method documentation.
|
|
43
43
|
See also the [Product Documentation](https://developers.google.com/workspace/events)
|
44
44
|
for general usage information.
|
45
45
|
|
46
|
-
##
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
46
|
+
## Debug Logging
|
47
|
+
|
48
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
49
|
+
your application's integration with the API. When logging is activated, key
|
50
|
+
events such as requests and responses, along with data payloads and metadata
|
51
|
+
such as headers and client configuration, are logged to the standard error
|
52
|
+
stream.
|
53
|
+
|
54
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
55
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
56
|
+
customers, private keys, or other security data that could be compromising if
|
57
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
58
|
+
the principle of least access. Google also recommends that Client Library Debug
|
59
|
+
Logging be enabled only temporarily during active debugging, and not used
|
60
|
+
permanently in production.
|
61
|
+
|
62
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
63
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
64
|
+
list of client library gem names. This will select the default logging behavior,
|
65
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
66
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
67
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
68
|
+
results in logs appearing alongside your application logs in the
|
69
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
70
|
+
|
71
|
+
You can customize logging by modifying the `logger` configuration when
|
72
|
+
constructing a client object. For example:
|
55
73
|
|
56
74
|
```ruby
|
75
|
+
require "google/apps/events/subscriptions/v1"
|
57
76
|
require "logger"
|
58
77
|
|
59
|
-
|
60
|
-
|
61
|
-
def logger
|
62
|
-
LOGGER
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
67
|
-
module GRPC
|
68
|
-
extend MyLogger
|
78
|
+
client = ::Google::Apps::Events::Subscriptions::V1::SubscriptionsService::Client.new do |config|
|
79
|
+
config.logger = Logger.new "my-app.log"
|
69
80
|
end
|
70
81
|
```
|
71
82
|
|
72
|
-
|
73
83
|
## Google Cloud Samples
|
74
84
|
|
75
85
|
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
86
|
|
77
87
|
## Supported Ruby Versions
|
78
88
|
|
79
|
-
This library is supported on Ruby
|
89
|
+
This library is supported on Ruby 3.0+.
|
80
90
|
|
81
91
|
Google provides official support for Ruby versions that are actively supported
|
82
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -183,8 +183,19 @@ module Google
|
|
183
183
|
universe_domain: @config.universe_domain,
|
184
184
|
channel_args: @config.channel_args,
|
185
185
|
interceptors: @config.interceptors,
|
186
|
-
channel_pool_config: @config.channel_pool
|
186
|
+
channel_pool_config: @config.channel_pool,
|
187
|
+
logger: @config.logger
|
187
188
|
)
|
189
|
+
|
190
|
+
@subscriptions_service_stub.stub_logger&.info do |entry|
|
191
|
+
entry.set_system_name
|
192
|
+
entry.set_service
|
193
|
+
entry.message = "Created client for #{entry.service}"
|
194
|
+
entry.set_credentials_fields credentials
|
195
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
196
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
197
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
198
|
+
end
|
188
199
|
end
|
189
200
|
|
190
201
|
##
|
@@ -194,6 +205,15 @@ module Google
|
|
194
205
|
#
|
195
206
|
attr_reader :operations_client
|
196
207
|
|
208
|
+
##
|
209
|
+
# The logger used for request/response debug logging.
|
210
|
+
#
|
211
|
+
# @return [Logger]
|
212
|
+
#
|
213
|
+
def logger
|
214
|
+
@subscriptions_service_stub.logger
|
215
|
+
end
|
216
|
+
|
197
217
|
# Service calls
|
198
218
|
|
199
219
|
##
|
@@ -281,7 +301,7 @@ module Google
|
|
281
301
|
@subscriptions_service_stub.call_rpc :create_subscription, request, options: options do |response, operation|
|
282
302
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
283
303
|
yield response, operation if block_given?
|
284
|
-
|
304
|
+
throw :response, response
|
285
305
|
end
|
286
306
|
rescue ::GRPC::BadStatus => e
|
287
307
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -390,7 +410,7 @@ module Google
|
|
390
410
|
@subscriptions_service_stub.call_rpc :delete_subscription, request, options: options do |response, operation|
|
391
411
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
392
412
|
yield response, operation if block_given?
|
393
|
-
|
413
|
+
throw :response, response
|
394
414
|
end
|
395
415
|
rescue ::GRPC::BadStatus => e
|
396
416
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -480,7 +500,6 @@ module Google
|
|
480
500
|
|
481
501
|
@subscriptions_service_stub.call_rpc :get_subscription, request, options: options do |response, operation|
|
482
502
|
yield response, operation if block_given?
|
483
|
-
return response
|
484
503
|
end
|
485
504
|
rescue ::GRPC::BadStatus => e
|
486
505
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -606,7 +625,7 @@ module Google
|
|
606
625
|
@subscriptions_service_stub.call_rpc :list_subscriptions, request, options: options do |response, operation|
|
607
626
|
response = ::Gapic::PagedEnumerable.new @subscriptions_service_stub, :list_subscriptions, request, response, operation, options
|
608
627
|
yield response, operation if block_given?
|
609
|
-
|
628
|
+
throw :response, response
|
610
629
|
end
|
611
630
|
rescue ::GRPC::BadStatus => e
|
612
631
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -718,7 +737,7 @@ module Google
|
|
718
737
|
@subscriptions_service_stub.call_rpc :update_subscription, request, options: options do |response, operation|
|
719
738
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
720
739
|
yield response, operation if block_given?
|
721
|
-
|
740
|
+
throw :response, response
|
722
741
|
end
|
723
742
|
rescue ::GRPC::BadStatus => e
|
724
743
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -820,7 +839,7 @@ module Google
|
|
820
839
|
@subscriptions_service_stub.call_rpc :reactivate_subscription, request, options: options do |response, operation|
|
821
840
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
822
841
|
yield response, operation if block_given?
|
823
|
-
|
842
|
+
throw :response, response
|
824
843
|
end
|
825
844
|
rescue ::GRPC::BadStatus => e
|
826
845
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -870,6 +889,13 @@ module Google
|
|
870
889
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
871
890
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
872
891
|
# * (`nil`) indicating no credentials
|
892
|
+
#
|
893
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
894
|
+
# external source for authentication to Google Cloud, you must validate it before
|
895
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
896
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
897
|
+
# For more information, refer to [Validate credential configurations from external
|
898
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
873
899
|
# @return [::Object]
|
874
900
|
# @!attribute [rw] scope
|
875
901
|
# The OAuth scopes
|
@@ -909,6 +935,11 @@ module Google
|
|
909
935
|
# default endpoint URL. The default value of nil uses the environment
|
910
936
|
# universe (usually the default "googleapis.com" universe).
|
911
937
|
# @return [::String,nil]
|
938
|
+
# @!attribute [rw] logger
|
939
|
+
# A custom logger to use for request/response debug logging, or the value
|
940
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
941
|
+
# explicitly disable logging.
|
942
|
+
# @return [::Logger,:default,nil]
|
912
943
|
#
|
913
944
|
class Configuration
|
914
945
|
extend ::Gapic::Config
|
@@ -933,6 +964,7 @@ module Google
|
|
933
964
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
934
965
|
config_attr :quota_project, nil, ::String, nil
|
935
966
|
config_attr :universe_domain, nil, ::String, nil
|
967
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
936
968
|
|
937
969
|
# @private
|
938
970
|
def initialize parent_config = nil
|
@@ -125,14 +125,6 @@ module Google
|
|
125
125
|
# Lists operations that match the specified filter in the request. If the
|
126
126
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
127
127
|
#
|
128
|
-
# NOTE: the `name` binding allows API services to override the binding
|
129
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
130
|
-
# override the binding, API services can add a binding such as
|
131
|
-
# `"/v1/{name=users/*}/operations"` to their service configuration.
|
132
|
-
# For backwards compatibility, the default name includes the operations
|
133
|
-
# collection id, however overriding users must ensure the name binding
|
134
|
-
# is the parent resource, without the operations collection id.
|
135
|
-
#
|
136
128
|
# @overload list_operations(request, options = nil)
|
137
129
|
# Pass arguments to `list_operations` via a request object, either of type
|
138
130
|
# {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
|
@@ -222,7 +214,7 @@ module Google
|
|
222
214
|
wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
|
223
215
|
response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
|
224
216
|
yield response, operation if block_given?
|
225
|
-
|
217
|
+
throw :response, response
|
226
218
|
end
|
227
219
|
rescue ::GRPC::BadStatus => e
|
228
220
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -318,7 +310,7 @@ module Google
|
|
318
310
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
319
311
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
320
312
|
yield response, operation if block_given?
|
321
|
-
|
313
|
+
throw :response, response
|
322
314
|
end
|
323
315
|
rescue ::GRPC::BadStatus => e
|
324
316
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -407,7 +399,6 @@ module Google
|
|
407
399
|
|
408
400
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
409
401
|
yield response, operation if block_given?
|
410
|
-
return response
|
411
402
|
end
|
412
403
|
rescue ::GRPC::BadStatus => e
|
413
404
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -422,8 +413,9 @@ module Google
|
|
422
413
|
# other methods to check whether the cancellation succeeded or whether the
|
423
414
|
# operation completed despite cancellation. On successful cancellation,
|
424
415
|
# the operation is not deleted; instead, it becomes an operation with
|
425
|
-
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
426
|
-
# corresponding to
|
416
|
+
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
417
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
|
418
|
+
# `Code.CANCELLED`.
|
427
419
|
#
|
428
420
|
# @overload cancel_operation(request, options = nil)
|
429
421
|
# Pass arguments to `cancel_operation` via a request object, either of type
|
@@ -502,7 +494,6 @@ module Google
|
|
502
494
|
|
503
495
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
504
496
|
yield response, operation if block_given?
|
505
|
-
return response
|
506
497
|
end
|
507
498
|
rescue ::GRPC::BadStatus => e
|
508
499
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -600,7 +591,7 @@ module Google
|
|
600
591
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
601
592
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
602
593
|
yield response, operation if block_given?
|
603
|
-
|
594
|
+
throw :response, response
|
604
595
|
end
|
605
596
|
rescue ::GRPC::BadStatus => e
|
606
597
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -650,6 +641,13 @@ module Google
|
|
650
641
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
651
642
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
652
643
|
# * (`nil`) indicating no credentials
|
644
|
+
#
|
645
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
646
|
+
# external source for authentication to Google Cloud, you must validate it before
|
647
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
648
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
649
|
+
# For more information, refer to [Validate credential configurations from external
|
650
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
653
651
|
# @return [::Object]
|
654
652
|
# @!attribute [rw] scope
|
655
653
|
# The OAuth scopes
|
@@ -689,6 +687,11 @@ module Google
|
|
689
687
|
# default endpoint URL. The default value of nil uses the environment
|
690
688
|
# universe (usually the default "googleapis.com" universe).
|
691
689
|
# @return [::String,nil]
|
690
|
+
# @!attribute [rw] logger
|
691
|
+
# A custom logger to use for request/response debug logging, or the value
|
692
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
693
|
+
# explicitly disable logging.
|
694
|
+
# @return [::Logger,:default,nil]
|
692
695
|
#
|
693
696
|
class Configuration
|
694
697
|
extend ::Gapic::Config
|
@@ -713,6 +716,7 @@ module Google
|
|
713
716
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
714
717
|
config_attr :quota_project, nil, ::String, nil
|
715
718
|
config_attr :universe_domain, nil, ::String, nil
|
719
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
716
720
|
|
717
721
|
# @private
|
718
722
|
def initialize parent_config = nil
|
@@ -176,8 +176,19 @@ module Google
|
|
176
176
|
endpoint: @config.endpoint,
|
177
177
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
178
178
|
universe_domain: @config.universe_domain,
|
179
|
-
credentials: credentials
|
179
|
+
credentials: credentials,
|
180
|
+
logger: @config.logger
|
180
181
|
)
|
182
|
+
|
183
|
+
@subscriptions_service_stub.logger(stub: true)&.info do |entry|
|
184
|
+
entry.set_system_name
|
185
|
+
entry.set_service
|
186
|
+
entry.message = "Created client for #{entry.service}"
|
187
|
+
entry.set_credentials_fields credentials
|
188
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
189
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
190
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
191
|
+
end
|
181
192
|
end
|
182
193
|
|
183
194
|
##
|
@@ -187,6 +198,15 @@ module Google
|
|
187
198
|
#
|
188
199
|
attr_reader :operations_client
|
189
200
|
|
201
|
+
##
|
202
|
+
# The logger used for request/response debug logging.
|
203
|
+
#
|
204
|
+
# @return [Logger]
|
205
|
+
#
|
206
|
+
def logger
|
207
|
+
@subscriptions_service_stub.logger
|
208
|
+
end
|
209
|
+
|
190
210
|
# Service calls
|
191
211
|
|
192
212
|
##
|
@@ -275,7 +295,7 @@ module Google
|
|
275
295
|
@subscriptions_service_stub.create_subscription request, options do |result, operation|
|
276
296
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
277
297
|
yield result, operation if block_given?
|
278
|
-
|
298
|
+
throw :response, result
|
279
299
|
end
|
280
300
|
rescue ::Gapic::Rest::Error => e
|
281
301
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -377,7 +397,7 @@ module Google
|
|
377
397
|
@subscriptions_service_stub.delete_subscription request, options do |result, operation|
|
378
398
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
379
399
|
yield result, operation if block_given?
|
380
|
-
|
400
|
+
throw :response, result
|
381
401
|
end
|
382
402
|
rescue ::Gapic::Rest::Error => e
|
383
403
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -460,7 +480,6 @@ module Google
|
|
460
480
|
|
461
481
|
@subscriptions_service_stub.get_subscription request, options do |result, operation|
|
462
482
|
yield result, operation if block_given?
|
463
|
-
return result
|
464
483
|
end
|
465
484
|
rescue ::Gapic::Rest::Error => e
|
466
485
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -587,7 +606,7 @@ module Google
|
|
587
606
|
@subscriptions_service_stub.list_subscriptions request, options do |result, operation|
|
588
607
|
result = ::Gapic::Rest::PagedEnumerable.new @subscriptions_service_stub, :list_subscriptions, "subscriptions", request, result, options
|
589
608
|
yield result, operation if block_given?
|
590
|
-
|
609
|
+
throw :response, result
|
591
610
|
end
|
592
611
|
rescue ::Gapic::Rest::Error => e
|
593
612
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -692,7 +711,7 @@ module Google
|
|
692
711
|
@subscriptions_service_stub.update_subscription request, options do |result, operation|
|
693
712
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
694
713
|
yield result, operation if block_given?
|
695
|
-
|
714
|
+
throw :response, result
|
696
715
|
end
|
697
716
|
rescue ::Gapic::Rest::Error => e
|
698
717
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -787,7 +806,7 @@ module Google
|
|
787
806
|
@subscriptions_service_stub.reactivate_subscription request, options do |result, operation|
|
788
807
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
789
808
|
yield result, operation if block_given?
|
790
|
-
|
809
|
+
throw :response, result
|
791
810
|
end
|
792
811
|
rescue ::Gapic::Rest::Error => e
|
793
812
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -835,6 +854,13 @@ module Google
|
|
835
854
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
836
855
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
837
856
|
# * (`nil`) indicating no credentials
|
857
|
+
#
|
858
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
859
|
+
# external source for authentication to Google Cloud, you must validate it before
|
860
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
861
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
862
|
+
# For more information, refer to [Validate credential configurations from external
|
863
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
838
864
|
# @return [::Object]
|
839
865
|
# @!attribute [rw] scope
|
840
866
|
# The OAuth scopes
|
@@ -867,6 +893,11 @@ module Google
|
|
867
893
|
# default endpoint URL. The default value of nil uses the environment
|
868
894
|
# universe (usually the default "googleapis.com" universe).
|
869
895
|
# @return [::String,nil]
|
896
|
+
# @!attribute [rw] logger
|
897
|
+
# A custom logger to use for request/response debug logging, or the value
|
898
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
899
|
+
# explicitly disable logging.
|
900
|
+
# @return [::Logger,:default,nil]
|
870
901
|
#
|
871
902
|
class Configuration
|
872
903
|
extend ::Gapic::Config
|
@@ -888,6 +919,7 @@ module Google
|
|
888
919
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
889
920
|
config_attr :quota_project, nil, ::String, nil
|
890
921
|
config_attr :universe_domain, nil, ::String, nil
|
922
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
891
923
|
|
892
924
|
# @private
|
893
925
|
def initialize parent_config = nil
|
@@ -116,14 +116,6 @@ module Google
|
|
116
116
|
# Lists operations that match the specified filter in the request. If the
|
117
117
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
118
118
|
#
|
119
|
-
# NOTE: the `name` binding allows API services to override the binding
|
120
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
121
|
-
# override the binding, API services can add a binding such as
|
122
|
-
# `"/v1/{name=users/*}/operations"` to their service configuration.
|
123
|
-
# For backwards compatibility, the default name includes the operations
|
124
|
-
# collection id, however overriding users must ensure the name binding
|
125
|
-
# is the parent resource, without the operations collection id.
|
126
|
-
#
|
127
119
|
# @overload list_operations(request, options = nil)
|
128
120
|
# Pass arguments to `list_operations` via a request object, either of type
|
129
121
|
# {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
|
@@ -205,7 +197,7 @@ module Google
|
|
205
197
|
@operations_stub.list_operations request, options do |result, operation|
|
206
198
|
result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options
|
207
199
|
yield result, operation if block_given?
|
208
|
-
|
200
|
+
throw :response, result
|
209
201
|
end
|
210
202
|
rescue ::Gapic::Rest::Error => e
|
211
203
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -294,7 +286,7 @@ module Google
|
|
294
286
|
@operations_stub.get_operation request, options do |result, operation|
|
295
287
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
296
288
|
yield result, operation if block_given?
|
297
|
-
|
289
|
+
throw :response, result
|
298
290
|
end
|
299
291
|
rescue ::Gapic::Rest::Error => e
|
300
292
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -376,7 +368,6 @@ module Google
|
|
376
368
|
|
377
369
|
@operations_stub.delete_operation request, options do |result, operation|
|
378
370
|
yield result, operation if block_given?
|
379
|
-
return result
|
380
371
|
end
|
381
372
|
rescue ::Gapic::Rest::Error => e
|
382
373
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -391,8 +382,9 @@ module Google
|
|
391
382
|
# other methods to check whether the cancellation succeeded or whether the
|
392
383
|
# operation completed despite cancellation. On successful cancellation,
|
393
384
|
# the operation is not deleted; instead, it becomes an operation with
|
394
|
-
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
395
|
-
# corresponding to
|
385
|
+
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
386
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
|
387
|
+
# `Code.CANCELLED`.
|
396
388
|
#
|
397
389
|
# @overload cancel_operation(request, options = nil)
|
398
390
|
# Pass arguments to `cancel_operation` via a request object, either of type
|
@@ -464,7 +456,6 @@ module Google
|
|
464
456
|
|
465
457
|
@operations_stub.cancel_operation request, options do |result, operation|
|
466
458
|
yield result, operation if block_given?
|
467
|
-
return result
|
468
459
|
end
|
469
460
|
rescue ::Gapic::Rest::Error => e
|
470
461
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -512,6 +503,13 @@ module Google
|
|
512
503
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
513
504
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
514
505
|
# * (`nil`) indicating no credentials
|
506
|
+
#
|
507
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
508
|
+
# external source for authentication to Google Cloud, you must validate it before
|
509
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
510
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
511
|
+
# For more information, refer to [Validate credential configurations from external
|
512
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
515
513
|
# @return [::Object]
|
516
514
|
# @!attribute [rw] scope
|
517
515
|
# The OAuth scopes
|
@@ -544,6 +542,11 @@ module Google
|
|
544
542
|
# default endpoint URL. The default value of nil uses the environment
|
545
543
|
# universe (usually the default "googleapis.com" universe).
|
546
544
|
# @return [::String,nil]
|
545
|
+
# @!attribute [rw] logger
|
546
|
+
# A custom logger to use for request/response debug logging, or the value
|
547
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
548
|
+
# explicitly disable logging.
|
549
|
+
# @return [::Logger,:default,nil]
|
547
550
|
#
|
548
551
|
class Configuration
|
549
552
|
extend ::Gapic::Config
|
@@ -565,6 +568,7 @@ module Google
|
|
565
568
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
566
569
|
config_attr :quota_project, nil, ::String, nil
|
567
570
|
config_attr :universe_domain, nil, ::String, nil
|
571
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
568
572
|
|
569
573
|
# @private
|
570
574
|
def initialize parent_config = nil
|
@@ -684,16 +688,18 @@ module Google
|
|
684
688
|
|
685
689
|
response = @client_stub.make_http_request(
|
686
690
|
verb,
|
687
|
-
uri:
|
688
|
-
body:
|
689
|
-
params:
|
691
|
+
uri: uri,
|
692
|
+
body: body || "",
|
693
|
+
params: query_string_params,
|
694
|
+
method_name: "list_operations",
|
690
695
|
options: options
|
691
696
|
)
|
692
697
|
operation = ::Gapic::Rest::TransportOperation.new response
|
693
698
|
result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true
|
694
|
-
|
695
|
-
|
696
|
-
|
699
|
+
catch :response do
|
700
|
+
yield result, operation if block_given?
|
701
|
+
result
|
702
|
+
end
|
697
703
|
end
|
698
704
|
|
699
705
|
##
|
@@ -722,16 +728,18 @@ module Google
|
|
722
728
|
|
723
729
|
response = @client_stub.make_http_request(
|
724
730
|
verb,
|
725
|
-
uri:
|
726
|
-
body:
|
727
|
-
params:
|
731
|
+
uri: uri,
|
732
|
+
body: body || "",
|
733
|
+
params: query_string_params,
|
734
|
+
method_name: "get_operation",
|
728
735
|
options: options
|
729
736
|
)
|
730
737
|
operation = ::Gapic::Rest::TransportOperation.new response
|
731
738
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
732
|
-
|
733
|
-
|
734
|
-
|
739
|
+
catch :response do
|
740
|
+
yield result, operation if block_given?
|
741
|
+
result
|
742
|
+
end
|
735
743
|
end
|
736
744
|
|
737
745
|
##
|
@@ -760,16 +768,18 @@ module Google
|
|
760
768
|
|
761
769
|
response = @client_stub.make_http_request(
|
762
770
|
verb,
|
763
|
-
uri:
|
764
|
-
body:
|
765
|
-
params:
|
771
|
+
uri: uri,
|
772
|
+
body: body || "",
|
773
|
+
params: query_string_params,
|
774
|
+
method_name: "delete_operation",
|
766
775
|
options: options
|
767
776
|
)
|
768
777
|
operation = ::Gapic::Rest::TransportOperation.new response
|
769
778
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
770
|
-
|
771
|
-
|
772
|
-
|
779
|
+
catch :response do
|
780
|
+
yield result, operation if block_given?
|
781
|
+
result
|
782
|
+
end
|
773
783
|
end
|
774
784
|
|
775
785
|
##
|
@@ -798,16 +808,18 @@ module Google
|
|
798
808
|
|
799
809
|
response = @client_stub.make_http_request(
|
800
810
|
verb,
|
801
|
-
uri:
|
802
|
-
body:
|
803
|
-
params:
|
811
|
+
uri: uri,
|
812
|
+
body: body || "",
|
813
|
+
params: query_string_params,
|
814
|
+
method_name: "cancel_operation",
|
804
815
|
options: options
|
805
816
|
)
|
806
817
|
operation = ::Gapic::Rest::TransportOperation.new response
|
807
818
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
808
|
-
|
809
|
-
|
810
|
-
|
819
|
+
catch :response do
|
820
|
+
yield result, operation if block_given?
|
821
|
+
result
|
822
|
+
end
|
811
823
|
end
|
812
824
|
|
813
825
|
##
|
@@ -31,7 +31,8 @@ module Google
|
|
31
31
|
# including transcoding, making the REST call, and deserialing the response.
|
32
32
|
#
|
33
33
|
class ServiceStub
|
34
|
-
|
34
|
+
# @private
|
35
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
35
36
|
# These require statements are intentionally placed here to initialize
|
36
37
|
# the REST modules only when it's required.
|
37
38
|
require "gapic/rest"
|
@@ -41,7 +42,9 @@ module Google
|
|
41
42
|
universe_domain: universe_domain,
|
42
43
|
credentials: credentials,
|
43
44
|
numeric_enums: true,
|
44
|
-
|
45
|
+
service_name: self.class,
|
46
|
+
raise_faraday_errors: false,
|
47
|
+
logger: logger
|
45
48
|
end
|
46
49
|
|
47
50
|
##
|
@@ -62,6 +65,15 @@ module Google
|
|
62
65
|
@client_stub.endpoint
|
63
66
|
end
|
64
67
|
|
68
|
+
##
|
69
|
+
# The logger used for request/response debug logging.
|
70
|
+
#
|
71
|
+
# @return [Logger]
|
72
|
+
#
|
73
|
+
def logger stub: false
|
74
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
75
|
+
end
|
76
|
+
|
65
77
|
##
|
66
78
|
# Baseline implementation for the create_subscription REST call
|
67
79
|
#
|
@@ -88,16 +100,18 @@ module Google
|
|
88
100
|
|
89
101
|
response = @client_stub.make_http_request(
|
90
102
|
verb,
|
91
|
-
uri:
|
92
|
-
body:
|
93
|
-
params:
|
103
|
+
uri: uri,
|
104
|
+
body: body || "",
|
105
|
+
params: query_string_params,
|
106
|
+
method_name: "create_subscription",
|
94
107
|
options: options
|
95
108
|
)
|
96
109
|
operation = ::Gapic::Rest::TransportOperation.new response
|
97
110
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
98
|
-
|
99
|
-
|
100
|
-
|
111
|
+
catch :response do
|
112
|
+
yield result, operation if block_given?
|
113
|
+
result
|
114
|
+
end
|
101
115
|
end
|
102
116
|
|
103
117
|
##
|
@@ -126,16 +140,18 @@ module Google
|
|
126
140
|
|
127
141
|
response = @client_stub.make_http_request(
|
128
142
|
verb,
|
129
|
-
uri:
|
130
|
-
body:
|
131
|
-
params:
|
143
|
+
uri: uri,
|
144
|
+
body: body || "",
|
145
|
+
params: query_string_params,
|
146
|
+
method_name: "delete_subscription",
|
132
147
|
options: options
|
133
148
|
)
|
134
149
|
operation = ::Gapic::Rest::TransportOperation.new response
|
135
150
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
136
|
-
|
137
|
-
|
138
|
-
|
151
|
+
catch :response do
|
152
|
+
yield result, operation if block_given?
|
153
|
+
result
|
154
|
+
end
|
139
155
|
end
|
140
156
|
|
141
157
|
##
|
@@ -164,16 +180,18 @@ module Google
|
|
164
180
|
|
165
181
|
response = @client_stub.make_http_request(
|
166
182
|
verb,
|
167
|
-
uri:
|
168
|
-
body:
|
169
|
-
params:
|
183
|
+
uri: uri,
|
184
|
+
body: body || "",
|
185
|
+
params: query_string_params,
|
186
|
+
method_name: "get_subscription",
|
170
187
|
options: options
|
171
188
|
)
|
172
189
|
operation = ::Gapic::Rest::TransportOperation.new response
|
173
190
|
result = ::Google::Apps::Events::Subscriptions::V1::Subscription.decode_json response.body, ignore_unknown_fields: true
|
174
|
-
|
175
|
-
|
176
|
-
|
191
|
+
catch :response do
|
192
|
+
yield result, operation if block_given?
|
193
|
+
result
|
194
|
+
end
|
177
195
|
end
|
178
196
|
|
179
197
|
##
|
@@ -202,16 +220,18 @@ module Google
|
|
202
220
|
|
203
221
|
response = @client_stub.make_http_request(
|
204
222
|
verb,
|
205
|
-
uri:
|
206
|
-
body:
|
207
|
-
params:
|
223
|
+
uri: uri,
|
224
|
+
body: body || "",
|
225
|
+
params: query_string_params,
|
226
|
+
method_name: "list_subscriptions",
|
208
227
|
options: options
|
209
228
|
)
|
210
229
|
operation = ::Gapic::Rest::TransportOperation.new response
|
211
230
|
result = ::Google::Apps::Events::Subscriptions::V1::ListSubscriptionsResponse.decode_json response.body, ignore_unknown_fields: true
|
212
|
-
|
213
|
-
|
214
|
-
|
231
|
+
catch :response do
|
232
|
+
yield result, operation if block_given?
|
233
|
+
result
|
234
|
+
end
|
215
235
|
end
|
216
236
|
|
217
237
|
##
|
@@ -240,16 +260,18 @@ module Google
|
|
240
260
|
|
241
261
|
response = @client_stub.make_http_request(
|
242
262
|
verb,
|
243
|
-
uri:
|
244
|
-
body:
|
245
|
-
params:
|
263
|
+
uri: uri,
|
264
|
+
body: body || "",
|
265
|
+
params: query_string_params,
|
266
|
+
method_name: "update_subscription",
|
246
267
|
options: options
|
247
268
|
)
|
248
269
|
operation = ::Gapic::Rest::TransportOperation.new response
|
249
270
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
250
|
-
|
251
|
-
|
252
|
-
|
271
|
+
catch :response do
|
272
|
+
yield result, operation if block_given?
|
273
|
+
result
|
274
|
+
end
|
253
275
|
end
|
254
276
|
|
255
277
|
##
|
@@ -278,16 +300,18 @@ module Google
|
|
278
300
|
|
279
301
|
response = @client_stub.make_http_request(
|
280
302
|
verb,
|
281
|
-
uri:
|
282
|
-
body:
|
283
|
-
params:
|
303
|
+
uri: uri,
|
304
|
+
body: body || "",
|
305
|
+
params: query_string_params,
|
306
|
+
method_name: "reactivate_subscription",
|
284
307
|
options: options
|
285
308
|
)
|
286
309
|
operation = ::Gapic::Rest::TransportOperation.new response
|
287
310
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
288
|
-
|
289
|
-
|
290
|
-
|
311
|
+
catch :response do
|
312
|
+
yield result, operation if block_given?
|
313
|
+
result
|
314
|
+
end
|
291
315
|
end
|
292
316
|
|
293
317
|
##
|
@@ -28,6 +28,9 @@ module Google
|
|
28
28
|
# @!attribute [rw] destinations
|
29
29
|
# @return [::Array<::Google::Api::ClientLibraryDestination>]
|
30
30
|
# The destination where API teams want this client library to be published.
|
31
|
+
# @!attribute [rw] selective_gapic_generation
|
32
|
+
# @return [::Google::Api::SelectiveGapicGeneration]
|
33
|
+
# Configuration for which RPCs should be generated in the GAPIC client.
|
31
34
|
class CommonLanguageSettings
|
32
35
|
include ::Google::Protobuf::MessageExts
|
33
36
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -212,6 +215,12 @@ module Google
|
|
212
215
|
# enabled. By default, asynchronous REST clients will not be generated.
|
213
216
|
# This feature will be enabled by default 1 month after launching the
|
214
217
|
# feature in preview packages.
|
218
|
+
# @!attribute [rw] protobuf_pythonic_types_enabled
|
219
|
+
# @return [::Boolean]
|
220
|
+
# Enables generation of protobuf code using new types that are more
|
221
|
+
# Pythonic which are included in `protobuf>=5.29.x`. This feature will be
|
222
|
+
# enabled by default 1 month after launching the feature in preview
|
223
|
+
# packages.
|
215
224
|
class ExperimentalFeatures
|
216
225
|
include ::Google::Protobuf::MessageExts
|
217
226
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -297,9 +306,28 @@ module Google
|
|
297
306
|
# @!attribute [rw] common
|
298
307
|
# @return [::Google::Api::CommonLanguageSettings]
|
299
308
|
# Some settings.
|
309
|
+
# @!attribute [rw] renamed_services
|
310
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
311
|
+
# Map of service names to renamed services. Keys are the package relative
|
312
|
+
# service names and values are the name to be used for the service client
|
313
|
+
# and call options.
|
314
|
+
#
|
315
|
+
# publishing:
|
316
|
+
# go_settings:
|
317
|
+
# renamed_services:
|
318
|
+
# Publisher: TopicAdmin
|
300
319
|
class GoSettings
|
301
320
|
include ::Google::Protobuf::MessageExts
|
302
321
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
322
|
+
|
323
|
+
# @!attribute [rw] key
|
324
|
+
# @return [::String]
|
325
|
+
# @!attribute [rw] value
|
326
|
+
# @return [::String]
|
327
|
+
class RenamedServicesEntry
|
328
|
+
include ::Google::Protobuf::MessageExts
|
329
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
330
|
+
end
|
303
331
|
end
|
304
332
|
|
305
333
|
# Describes the generator configuration for a method.
|
@@ -375,6 +403,17 @@ module Google
|
|
375
403
|
end
|
376
404
|
end
|
377
405
|
|
406
|
+
# This message is used to configure the generation of a subset of the RPCs in
|
407
|
+
# a service for client libraries.
|
408
|
+
# @!attribute [rw] methods
|
409
|
+
# @return [::Array<::String>]
|
410
|
+
# An allowlist of the fully qualified names of RPCs that should be included
|
411
|
+
# on public client surfaces.
|
412
|
+
class SelectiveGapicGeneration
|
413
|
+
include ::Google::Protobuf::MessageExts
|
414
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
415
|
+
end
|
416
|
+
|
378
417
|
# The organization for which the client libraries are being published.
|
379
418
|
# Affects the url where generated docs are published, etc.
|
380
419
|
module ClientLibraryOrganization
|
@@ -29,10 +29,14 @@ module Google
|
|
29
29
|
# @return [::Google::Protobuf::Timestamp]
|
30
30
|
# Non-empty default. The timestamp in UTC when the subscription expires.
|
31
31
|
# Always displayed on output, regardless of what was used on input.
|
32
|
+
#
|
33
|
+
# Note: The following fields are mutually exclusive: `expire_time`, `ttl`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
32
34
|
# @!attribute [rw] ttl
|
33
35
|
# @return [::Google::Protobuf::Duration]
|
34
36
|
# Input only. The time-to-live (TTL) or duration for the subscription. If
|
35
37
|
# unspecified or set to `0`, uses the maximum possible duration.
|
38
|
+
#
|
39
|
+
# Note: The following fields are mutually exclusive: `ttl`, `expire_time`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
36
40
|
# @!attribute [rw] name
|
37
41
|
# @return [::String]
|
38
42
|
# Optional. Immutable. Identifier. Resource name of the subscription.
|
@@ -40,9 +40,11 @@ module Google
|
|
40
40
|
# @!attribute [rw] error
|
41
41
|
# @return [::Google::Rpc::Status]
|
42
42
|
# The error result of the operation in case of failure or cancellation.
|
43
|
+
#
|
44
|
+
# Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
43
45
|
# @!attribute [rw] response
|
44
46
|
# @return [::Google::Protobuf::Any]
|
45
|
-
# The normal response of the operation
|
47
|
+
# The normal, successful response of the operation. If the original
|
46
48
|
# method returns no data on success, such as `Delete`, the response is
|
47
49
|
# `google.protobuf.Empty`. If the original method is standard
|
48
50
|
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
@@ -50,12 +52,15 @@ module Google
|
|
50
52
|
# is the original method name. For example, if the original method name
|
51
53
|
# is `TakeSnapshot()`, the inferred response type is
|
52
54
|
# `TakeSnapshotResponse`.
|
55
|
+
#
|
56
|
+
# Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
53
57
|
class Operation
|
54
58
|
include ::Google::Protobuf::MessageExts
|
55
59
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
56
60
|
end
|
57
61
|
|
58
|
-
# The request message for
|
62
|
+
# The request message for
|
63
|
+
# Operations.GetOperation.
|
59
64
|
# @!attribute [rw] name
|
60
65
|
# @return [::String]
|
61
66
|
# The name of the operation resource.
|
@@ -64,7 +69,8 @@ module Google
|
|
64
69
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
70
|
end
|
66
71
|
|
67
|
-
# The request message for
|
72
|
+
# The request message for
|
73
|
+
# Operations.ListOperations.
|
68
74
|
# @!attribute [rw] name
|
69
75
|
# @return [::String]
|
70
76
|
# The name of the operation's parent resource.
|
@@ -82,7 +88,8 @@ module Google
|
|
82
88
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
83
89
|
end
|
84
90
|
|
85
|
-
# The response message for
|
91
|
+
# The response message for
|
92
|
+
# Operations.ListOperations.
|
86
93
|
# @!attribute [rw] operations
|
87
94
|
# @return [::Array<::Google::Longrunning::Operation>]
|
88
95
|
# A list of operations that matches the specified filter in the request.
|
@@ -94,7 +101,8 @@ module Google
|
|
94
101
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
102
|
end
|
96
103
|
|
97
|
-
# The request message for
|
104
|
+
# The request message for
|
105
|
+
# Operations.CancelOperation.
|
98
106
|
# @!attribute [rw] name
|
99
107
|
# @return [::String]
|
100
108
|
# The name of the operation resource to be cancelled.
|
@@ -103,7 +111,8 @@ module Google
|
|
103
111
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
104
112
|
end
|
105
113
|
|
106
|
-
# The request message for
|
114
|
+
# The request message for
|
115
|
+
# Operations.DeleteOperation.
|
107
116
|
# @!attribute [rw] name
|
108
117
|
# @return [::String]
|
109
118
|
# The name of the operation resource to be deleted.
|
@@ -112,7 +121,8 @@ module Google
|
|
112
121
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
122
|
end
|
114
123
|
|
115
|
-
# The request message for
|
124
|
+
# The request message for
|
125
|
+
# Operations.WaitOperation.
|
116
126
|
# @!attribute [rw] name
|
117
127
|
# @return [::String]
|
118
128
|
# The name of the operation resource to wait on.
|
@@ -130,13 +140,12 @@ module Google
|
|
130
140
|
#
|
131
141
|
# Example:
|
132
142
|
#
|
133
|
-
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
138
|
-
# }
|
139
|
-
# }
|
143
|
+
# rpc Export(ExportRequest) returns (google.longrunning.Operation) {
|
144
|
+
# option (google.longrunning.operation_info) = {
|
145
|
+
# response_type: "ExportResponse"
|
146
|
+
# metadata_type: "ExportMetadata"
|
147
|
+
# };
|
148
|
+
# }
|
140
149
|
# @!attribute [rw] response_type
|
141
150
|
# @return [::String]
|
142
151
|
# Required. The message name of the primary return type for this
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apps-events-subscriptions-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-29 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: gapic-common
|
@@ -16,7 +15,7 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
18
|
+
version: 0.25.0
|
20
19
|
- - "<"
|
21
20
|
- !ruby/object:Gem::Version
|
22
21
|
version: 2.a
|
@@ -26,7 +25,7 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
28
|
+
version: 0.25.0
|
30
29
|
- - "<"
|
31
30
|
- !ruby/object:Gem::Version
|
32
31
|
version: 2.a
|
@@ -92,7 +91,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
|
|
92
91
|
licenses:
|
93
92
|
- Apache-2.0
|
94
93
|
metadata: {}
|
95
|
-
post_install_message:
|
96
94
|
rdoc_options: []
|
97
95
|
require_paths:
|
98
96
|
- lib
|
@@ -100,15 +98,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
100
98
|
requirements:
|
101
99
|
- - ">="
|
102
100
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
101
|
+
version: '3.0'
|
104
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
103
|
requirements:
|
106
104
|
- - ">="
|
107
105
|
- !ruby/object:Gem::Version
|
108
106
|
version: '0'
|
109
107
|
requirements: []
|
110
|
-
rubygems_version: 3.
|
111
|
-
signing_key:
|
108
|
+
rubygems_version: 3.6.2
|
112
109
|
specification_version: 4
|
113
110
|
summary: The Google Workspace Events API lets you subscribe to events and manage change
|
114
111
|
notifications across Google Workspace applications.
|