google-cloud-tasks-v2 0.4.2 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/lib/google/cloud/tasks/v2/cloud_tasks/client.rb +409 -100
- data/lib/google/cloud/tasks/v2/cloudtasks_pb.rb +2 -2
- data/lib/google/cloud/tasks/v2/cloudtasks_services_pb.rb +1 -1
- data/lib/google/cloud/tasks/v2/queue_pb.rb +2 -2
- data/lib/google/cloud/tasks/v2/target_pb.rb +2 -2
- data/lib/google/cloud/tasks/v2/task_pb.rb +2 -2
- data/lib/google/cloud/tasks/v2/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/tasks/v2/target.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c076e904e5ba2955b2f50dabc0a89117b147b6f67b296d959dca30b4992db00
|
4
|
+
data.tar.gz: 1b9bfdad70ea4d04fcfebf910e2177849a9e5f8c7e8c20fc1f9b958352b7fa11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94d93d33e9a4632e82d3c59094a2b15adcebfa353af0681f62af684d8452ea084bae418831cf7fbb567af25163268d4ce1b785feb4406d2b1e16f3634c4504b2
|
7
|
+
data.tar.gz: e780cd16c7d91e2faf7aaa844f36b72bd412c45d8754d1b4cdd4f6e86553f23747b278afaffa260445e26fff420ca9be54756a31941d064d61c975f5de3218ee
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
@@ -42,13 +42,12 @@ module Google
|
|
42
42
|
# See {::Google::Cloud::Tasks::V2::CloudTasks::Client::Configuration}
|
43
43
|
# for a description of the configuration fields.
|
44
44
|
#
|
45
|
-
#
|
45
|
+
# @example
|
46
46
|
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# end
|
47
|
+
# # Modify the configuration for all CloudTasks clients
|
48
|
+
# ::Google::Cloud::Tasks::V2::CloudTasks::Client.configure do |config|
|
49
|
+
# config.timeout = 10.0
|
50
|
+
# end
|
52
51
|
#
|
53
52
|
# @yield [config] Configure the Client client.
|
54
53
|
# @yieldparam config [Client::Configuration]
|
@@ -151,19 +150,15 @@ module Google
|
|
151
150
|
##
|
152
151
|
# Create a new CloudTasks client object.
|
153
152
|
#
|
154
|
-
#
|
155
|
-
#
|
156
|
-
# To create a new CloudTasks client with the default
|
157
|
-
# configuration:
|
158
|
-
#
|
159
|
-
# client = ::Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
153
|
+
# @example
|
160
154
|
#
|
161
|
-
#
|
162
|
-
#
|
155
|
+
# # Create a client using the default configuration
|
156
|
+
# client = ::Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
163
157
|
#
|
164
|
-
#
|
165
|
-
#
|
166
|
-
#
|
158
|
+
# # Create a client using a custom configuration
|
159
|
+
# client = ::Google::Cloud::Tasks::V2::CloudTasks::Client.new do |config|
|
160
|
+
# config.timeout = 10.0
|
161
|
+
# end
|
167
162
|
#
|
168
163
|
# @yield [config] Configure the CloudTasks client.
|
169
164
|
# @yieldparam config [Client::Configuration]
|
@@ -183,10 +178,9 @@ module Google
|
|
183
178
|
|
184
179
|
# Create credentials
|
185
180
|
credentials = @config.credentials
|
186
|
-
# Use self-signed JWT if the
|
181
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
187
182
|
# but only if the default endpoint does not have a region prefix.
|
188
|
-
enable_self_signed_jwt = @config.
|
189
|
-
@config.endpoint == Client.configure.endpoint &&
|
183
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
190
184
|
!@config.endpoint.split(".").first.include?("-")
|
191
185
|
credentials ||= Credentials.default scope: @config.scope,
|
192
186
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -268,6 +262,27 @@ module Google
|
|
268
262
|
#
|
269
263
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
270
264
|
#
|
265
|
+
# @example Basic example
|
266
|
+
# require "google/cloud/tasks/v2"
|
267
|
+
#
|
268
|
+
# # Create a client object. The client can be reused for multiple calls.
|
269
|
+
# client = Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
270
|
+
#
|
271
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
272
|
+
# request = Google::Cloud::Tasks::V2::ListQueuesRequest.new
|
273
|
+
#
|
274
|
+
# # Call the list_queues method.
|
275
|
+
# result = client.list_queues request
|
276
|
+
#
|
277
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
278
|
+
# # iterate over all elements by calling #each, and the enumerable
|
279
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
280
|
+
# # methods are also available for managing paging directly.
|
281
|
+
# result.each do |response|
|
282
|
+
# # Each element is of type ::Google::Cloud::Tasks::V2::Queue.
|
283
|
+
# p response
|
284
|
+
# end
|
285
|
+
#
|
271
286
|
def list_queues request, options = nil
|
272
287
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
273
288
|
|
@@ -285,16 +300,20 @@ module Google
|
|
285
300
|
gapic_version: ::Google::Cloud::Tasks::V2::VERSION
|
286
301
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
287
302
|
|
288
|
-
header_params = {
|
289
|
-
|
290
|
-
|
303
|
+
header_params = {}
|
304
|
+
if request.parent
|
305
|
+
header_params["parent"] = request.parent
|
306
|
+
end
|
307
|
+
|
291
308
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
292
309
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
293
310
|
|
294
311
|
options.apply_defaults timeout: @config.rpcs.list_queues.timeout,
|
295
312
|
metadata: metadata,
|
296
313
|
retry_policy: @config.rpcs.list_queues.retry_policy
|
297
|
-
|
314
|
+
|
315
|
+
options.apply_defaults timeout: @config.timeout,
|
316
|
+
metadata: @config.metadata,
|
298
317
|
retry_policy: @config.retry_policy
|
299
318
|
|
300
319
|
@cloud_tasks_stub.call_rpc :list_queues, request, options: options do |response, operation|
|
@@ -336,6 +355,21 @@ module Google
|
|
336
355
|
#
|
337
356
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
338
357
|
#
|
358
|
+
# @example Basic example
|
359
|
+
# require "google/cloud/tasks/v2"
|
360
|
+
#
|
361
|
+
# # Create a client object. The client can be reused for multiple calls.
|
362
|
+
# client = Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
363
|
+
#
|
364
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
365
|
+
# request = Google::Cloud::Tasks::V2::GetQueueRequest.new
|
366
|
+
#
|
367
|
+
# # Call the get_queue method.
|
368
|
+
# result = client.get_queue request
|
369
|
+
#
|
370
|
+
# # The returned object is of type Google::Cloud::Tasks::V2::Queue.
|
371
|
+
# p result
|
372
|
+
#
|
339
373
|
def get_queue request, options = nil
|
340
374
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
341
375
|
|
@@ -353,16 +387,20 @@ module Google
|
|
353
387
|
gapic_version: ::Google::Cloud::Tasks::V2::VERSION
|
354
388
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
355
389
|
|
356
|
-
header_params = {
|
357
|
-
|
358
|
-
|
390
|
+
header_params = {}
|
391
|
+
if request.name
|
392
|
+
header_params["name"] = request.name
|
393
|
+
end
|
394
|
+
|
359
395
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
360
396
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
361
397
|
|
362
398
|
options.apply_defaults timeout: @config.rpcs.get_queue.timeout,
|
363
399
|
metadata: metadata,
|
364
400
|
retry_policy: @config.rpcs.get_queue.retry_policy
|
365
|
-
|
401
|
+
|
402
|
+
options.apply_defaults timeout: @config.timeout,
|
403
|
+
metadata: @config.metadata,
|
366
404
|
retry_policy: @config.retry_policy
|
367
405
|
|
368
406
|
@cloud_tasks_stub.call_rpc :get_queue, request, options: options do |response, operation|
|
@@ -422,6 +460,21 @@ module Google
|
|
422
460
|
#
|
423
461
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
424
462
|
#
|
463
|
+
# @example Basic example
|
464
|
+
# require "google/cloud/tasks/v2"
|
465
|
+
#
|
466
|
+
# # Create a client object. The client can be reused for multiple calls.
|
467
|
+
# client = Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
468
|
+
#
|
469
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
470
|
+
# request = Google::Cloud::Tasks::V2::CreateQueueRequest.new
|
471
|
+
#
|
472
|
+
# # Call the create_queue method.
|
473
|
+
# result = client.create_queue request
|
474
|
+
#
|
475
|
+
# # The returned object is of type Google::Cloud::Tasks::V2::Queue.
|
476
|
+
# p result
|
477
|
+
#
|
425
478
|
def create_queue request, options = nil
|
426
479
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
427
480
|
|
@@ -439,16 +492,20 @@ module Google
|
|
439
492
|
gapic_version: ::Google::Cloud::Tasks::V2::VERSION
|
440
493
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
441
494
|
|
442
|
-
header_params = {
|
443
|
-
|
444
|
-
|
495
|
+
header_params = {}
|
496
|
+
if request.parent
|
497
|
+
header_params["parent"] = request.parent
|
498
|
+
end
|
499
|
+
|
445
500
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
446
501
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
447
502
|
|
448
503
|
options.apply_defaults timeout: @config.rpcs.create_queue.timeout,
|
449
504
|
metadata: metadata,
|
450
505
|
retry_policy: @config.rpcs.create_queue.retry_policy
|
451
|
-
|
506
|
+
|
507
|
+
options.apply_defaults timeout: @config.timeout,
|
508
|
+
metadata: @config.metadata,
|
452
509
|
retry_policy: @config.retry_policy
|
453
510
|
|
454
511
|
@cloud_tasks_stub.call_rpc :create_queue, request, options: options do |response, operation|
|
@@ -512,6 +569,21 @@ module Google
|
|
512
569
|
#
|
513
570
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
514
571
|
#
|
572
|
+
# @example Basic example
|
573
|
+
# require "google/cloud/tasks/v2"
|
574
|
+
#
|
575
|
+
# # Create a client object. The client can be reused for multiple calls.
|
576
|
+
# client = Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
577
|
+
#
|
578
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
579
|
+
# request = Google::Cloud::Tasks::V2::UpdateQueueRequest.new
|
580
|
+
#
|
581
|
+
# # Call the update_queue method.
|
582
|
+
# result = client.update_queue request
|
583
|
+
#
|
584
|
+
# # The returned object is of type Google::Cloud::Tasks::V2::Queue.
|
585
|
+
# p result
|
586
|
+
#
|
515
587
|
def update_queue request, options = nil
|
516
588
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
517
589
|
|
@@ -529,16 +601,20 @@ module Google
|
|
529
601
|
gapic_version: ::Google::Cloud::Tasks::V2::VERSION
|
530
602
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
531
603
|
|
532
|
-
header_params = {
|
533
|
-
|
534
|
-
|
604
|
+
header_params = {}
|
605
|
+
if request.queue&.name
|
606
|
+
header_params["queue.name"] = request.queue.name
|
607
|
+
end
|
608
|
+
|
535
609
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
536
610
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
537
611
|
|
538
612
|
options.apply_defaults timeout: @config.rpcs.update_queue.timeout,
|
539
613
|
metadata: metadata,
|
540
614
|
retry_policy: @config.rpcs.update_queue.retry_policy
|
541
|
-
|
615
|
+
|
616
|
+
options.apply_defaults timeout: @config.timeout,
|
617
|
+
metadata: @config.metadata,
|
542
618
|
retry_policy: @config.retry_policy
|
543
619
|
|
544
620
|
@cloud_tasks_stub.call_rpc :update_queue, request, options: options do |response, operation|
|
@@ -591,6 +667,21 @@ module Google
|
|
591
667
|
#
|
592
668
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
593
669
|
#
|
670
|
+
# @example Basic example
|
671
|
+
# require "google/cloud/tasks/v2"
|
672
|
+
#
|
673
|
+
# # Create a client object. The client can be reused for multiple calls.
|
674
|
+
# client = Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
675
|
+
#
|
676
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
677
|
+
# request = Google::Cloud::Tasks::V2::DeleteQueueRequest.new
|
678
|
+
#
|
679
|
+
# # Call the delete_queue method.
|
680
|
+
# result = client.delete_queue request
|
681
|
+
#
|
682
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
683
|
+
# p result
|
684
|
+
#
|
594
685
|
def delete_queue request, options = nil
|
595
686
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
596
687
|
|
@@ -608,16 +699,20 @@ module Google
|
|
608
699
|
gapic_version: ::Google::Cloud::Tasks::V2::VERSION
|
609
700
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
610
701
|
|
611
|
-
header_params = {
|
612
|
-
|
613
|
-
|
702
|
+
header_params = {}
|
703
|
+
if request.name
|
704
|
+
header_params["name"] = request.name
|
705
|
+
end
|
706
|
+
|
614
707
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
615
708
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
616
709
|
|
617
710
|
options.apply_defaults timeout: @config.rpcs.delete_queue.timeout,
|
618
711
|
metadata: metadata,
|
619
712
|
retry_policy: @config.rpcs.delete_queue.retry_policy
|
620
|
-
|
713
|
+
|
714
|
+
options.apply_defaults timeout: @config.timeout,
|
715
|
+
metadata: @config.metadata,
|
621
716
|
retry_policy: @config.retry_policy
|
622
717
|
|
623
718
|
@cloud_tasks_stub.call_rpc :delete_queue, request, options: options do |response, operation|
|
@@ -663,6 +758,21 @@ module Google
|
|
663
758
|
#
|
664
759
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
665
760
|
#
|
761
|
+
# @example Basic example
|
762
|
+
# require "google/cloud/tasks/v2"
|
763
|
+
#
|
764
|
+
# # Create a client object. The client can be reused for multiple calls.
|
765
|
+
# client = Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
766
|
+
#
|
767
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
768
|
+
# request = Google::Cloud::Tasks::V2::PurgeQueueRequest.new
|
769
|
+
#
|
770
|
+
# # Call the purge_queue method.
|
771
|
+
# result = client.purge_queue request
|
772
|
+
#
|
773
|
+
# # The returned object is of type Google::Cloud::Tasks::V2::Queue.
|
774
|
+
# p result
|
775
|
+
#
|
666
776
|
def purge_queue request, options = nil
|
667
777
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
668
778
|
|
@@ -680,16 +790,20 @@ module Google
|
|
680
790
|
gapic_version: ::Google::Cloud::Tasks::V2::VERSION
|
681
791
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
682
792
|
|
683
|
-
header_params = {
|
684
|
-
|
685
|
-
|
793
|
+
header_params = {}
|
794
|
+
if request.name
|
795
|
+
header_params["name"] = request.name
|
796
|
+
end
|
797
|
+
|
686
798
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
687
799
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
688
800
|
|
689
801
|
options.apply_defaults timeout: @config.rpcs.purge_queue.timeout,
|
690
802
|
metadata: metadata,
|
691
803
|
retry_policy: @config.rpcs.purge_queue.retry_policy
|
692
|
-
|
804
|
+
|
805
|
+
options.apply_defaults timeout: @config.timeout,
|
806
|
+
metadata: @config.metadata,
|
693
807
|
retry_policy: @config.retry_policy
|
694
808
|
|
695
809
|
@cloud_tasks_stub.call_rpc :purge_queue, request, options: options do |response, operation|
|
@@ -736,6 +850,21 @@ module Google
|
|
736
850
|
#
|
737
851
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
738
852
|
#
|
853
|
+
# @example Basic example
|
854
|
+
# require "google/cloud/tasks/v2"
|
855
|
+
#
|
856
|
+
# # Create a client object. The client can be reused for multiple calls.
|
857
|
+
# client = Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
858
|
+
#
|
859
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
860
|
+
# request = Google::Cloud::Tasks::V2::PauseQueueRequest.new
|
861
|
+
#
|
862
|
+
# # Call the pause_queue method.
|
863
|
+
# result = client.pause_queue request
|
864
|
+
#
|
865
|
+
# # The returned object is of type Google::Cloud::Tasks::V2::Queue.
|
866
|
+
# p result
|
867
|
+
#
|
739
868
|
def pause_queue request, options = nil
|
740
869
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
741
870
|
|
@@ -753,16 +882,20 @@ module Google
|
|
753
882
|
gapic_version: ::Google::Cloud::Tasks::V2::VERSION
|
754
883
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
755
884
|
|
756
|
-
header_params = {
|
757
|
-
|
758
|
-
|
885
|
+
header_params = {}
|
886
|
+
if request.name
|
887
|
+
header_params["name"] = request.name
|
888
|
+
end
|
889
|
+
|
759
890
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
760
891
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
761
892
|
|
762
893
|
options.apply_defaults timeout: @config.rpcs.pause_queue.timeout,
|
763
894
|
metadata: metadata,
|
764
895
|
retry_policy: @config.rpcs.pause_queue.retry_policy
|
765
|
-
|
896
|
+
|
897
|
+
options.apply_defaults timeout: @config.timeout,
|
898
|
+
metadata: @config.metadata,
|
766
899
|
retry_policy: @config.retry_policy
|
767
900
|
|
768
901
|
@cloud_tasks_stub.call_rpc :pause_queue, request, options: options do |response, operation|
|
@@ -815,6 +948,21 @@ module Google
|
|
815
948
|
#
|
816
949
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
817
950
|
#
|
951
|
+
# @example Basic example
|
952
|
+
# require "google/cloud/tasks/v2"
|
953
|
+
#
|
954
|
+
# # Create a client object. The client can be reused for multiple calls.
|
955
|
+
# client = Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
956
|
+
#
|
957
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
958
|
+
# request = Google::Cloud::Tasks::V2::ResumeQueueRequest.new
|
959
|
+
#
|
960
|
+
# # Call the resume_queue method.
|
961
|
+
# result = client.resume_queue request
|
962
|
+
#
|
963
|
+
# # The returned object is of type Google::Cloud::Tasks::V2::Queue.
|
964
|
+
# p result
|
965
|
+
#
|
818
966
|
def resume_queue request, options = nil
|
819
967
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
820
968
|
|
@@ -832,16 +980,20 @@ module Google
|
|
832
980
|
gapic_version: ::Google::Cloud::Tasks::V2::VERSION
|
833
981
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
834
982
|
|
835
|
-
header_params = {
|
836
|
-
|
837
|
-
|
983
|
+
header_params = {}
|
984
|
+
if request.name
|
985
|
+
header_params["name"] = request.name
|
986
|
+
end
|
987
|
+
|
838
988
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
839
989
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
840
990
|
|
841
991
|
options.apply_defaults timeout: @config.rpcs.resume_queue.timeout,
|
842
992
|
metadata: metadata,
|
843
993
|
retry_policy: @config.rpcs.resume_queue.retry_policy
|
844
|
-
|
994
|
+
|
995
|
+
options.apply_defaults timeout: @config.timeout,
|
996
|
+
metadata: @config.metadata,
|
845
997
|
retry_policy: @config.retry_policy
|
846
998
|
|
847
999
|
@cloud_tasks_stub.call_rpc :resume_queue, request, options: options do |response, operation|
|
@@ -893,6 +1045,21 @@ module Google
|
|
893
1045
|
#
|
894
1046
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
895
1047
|
#
|
1048
|
+
# @example Basic example
|
1049
|
+
# require "google/cloud/tasks/v2"
|
1050
|
+
#
|
1051
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1052
|
+
# client = Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
1053
|
+
#
|
1054
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1055
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
1056
|
+
#
|
1057
|
+
# # Call the get_iam_policy method.
|
1058
|
+
# result = client.get_iam_policy request
|
1059
|
+
#
|
1060
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1061
|
+
# p result
|
1062
|
+
#
|
896
1063
|
def get_iam_policy request, options = nil
|
897
1064
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
898
1065
|
|
@@ -910,16 +1077,20 @@ module Google
|
|
910
1077
|
gapic_version: ::Google::Cloud::Tasks::V2::VERSION
|
911
1078
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
912
1079
|
|
913
|
-
header_params = {
|
914
|
-
|
915
|
-
|
1080
|
+
header_params = {}
|
1081
|
+
if request.resource
|
1082
|
+
header_params["resource"] = request.resource
|
1083
|
+
end
|
1084
|
+
|
916
1085
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
917
1086
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
918
1087
|
|
919
1088
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
920
1089
|
metadata: metadata,
|
921
1090
|
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
922
|
-
|
1091
|
+
|
1092
|
+
options.apply_defaults timeout: @config.timeout,
|
1093
|
+
metadata: @config.metadata,
|
923
1094
|
retry_policy: @config.retry_policy
|
924
1095
|
|
925
1096
|
@cloud_tasks_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
@@ -975,6 +1146,21 @@ module Google
|
|
975
1146
|
#
|
976
1147
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
977
1148
|
#
|
1149
|
+
# @example Basic example
|
1150
|
+
# require "google/cloud/tasks/v2"
|
1151
|
+
#
|
1152
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1153
|
+
# client = Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
1154
|
+
#
|
1155
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1156
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
1157
|
+
#
|
1158
|
+
# # Call the set_iam_policy method.
|
1159
|
+
# result = client.set_iam_policy request
|
1160
|
+
#
|
1161
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1162
|
+
# p result
|
1163
|
+
#
|
978
1164
|
def set_iam_policy request, options = nil
|
979
1165
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
980
1166
|
|
@@ -992,16 +1178,20 @@ module Google
|
|
992
1178
|
gapic_version: ::Google::Cloud::Tasks::V2::VERSION
|
993
1179
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
994
1180
|
|
995
|
-
header_params = {
|
996
|
-
|
997
|
-
|
1181
|
+
header_params = {}
|
1182
|
+
if request.resource
|
1183
|
+
header_params["resource"] = request.resource
|
1184
|
+
end
|
1185
|
+
|
998
1186
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
999
1187
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1000
1188
|
|
1001
1189
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
1002
1190
|
metadata: metadata,
|
1003
1191
|
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
1004
|
-
|
1192
|
+
|
1193
|
+
options.apply_defaults timeout: @config.timeout,
|
1194
|
+
metadata: @config.metadata,
|
1005
1195
|
retry_policy: @config.retry_policy
|
1006
1196
|
|
1007
1197
|
@cloud_tasks_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
@@ -1053,6 +1243,21 @@ module Google
|
|
1053
1243
|
#
|
1054
1244
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1055
1245
|
#
|
1246
|
+
# @example Basic example
|
1247
|
+
# require "google/cloud/tasks/v2"
|
1248
|
+
#
|
1249
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1250
|
+
# client = Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
1251
|
+
#
|
1252
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1253
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
1254
|
+
#
|
1255
|
+
# # Call the test_iam_permissions method.
|
1256
|
+
# result = client.test_iam_permissions request
|
1257
|
+
#
|
1258
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
1259
|
+
# p result
|
1260
|
+
#
|
1056
1261
|
def test_iam_permissions request, options = nil
|
1057
1262
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1058
1263
|
|
@@ -1070,16 +1275,20 @@ module Google
|
|
1070
1275
|
gapic_version: ::Google::Cloud::Tasks::V2::VERSION
|
1071
1276
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1072
1277
|
|
1073
|
-
header_params = {
|
1074
|
-
|
1075
|
-
|
1278
|
+
header_params = {}
|
1279
|
+
if request.resource
|
1280
|
+
header_params["resource"] = request.resource
|
1281
|
+
end
|
1282
|
+
|
1076
1283
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1077
1284
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1078
1285
|
|
1079
1286
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
1080
1287
|
metadata: metadata,
|
1081
1288
|
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
1082
|
-
|
1289
|
+
|
1290
|
+
options.apply_defaults timeout: @config.timeout,
|
1291
|
+
metadata: @config.metadata,
|
1083
1292
|
retry_policy: @config.retry_policy
|
1084
1293
|
|
1085
1294
|
@cloud_tasks_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
@@ -1160,6 +1369,27 @@ module Google
|
|
1160
1369
|
#
|
1161
1370
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1162
1371
|
#
|
1372
|
+
# @example Basic example
|
1373
|
+
# require "google/cloud/tasks/v2"
|
1374
|
+
#
|
1375
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1376
|
+
# client = Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
1377
|
+
#
|
1378
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1379
|
+
# request = Google::Cloud::Tasks::V2::ListTasksRequest.new
|
1380
|
+
#
|
1381
|
+
# # Call the list_tasks method.
|
1382
|
+
# result = client.list_tasks request
|
1383
|
+
#
|
1384
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1385
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1386
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1387
|
+
# # methods are also available for managing paging directly.
|
1388
|
+
# result.each do |response|
|
1389
|
+
# # Each element is of type ::Google::Cloud::Tasks::V2::Task.
|
1390
|
+
# p response
|
1391
|
+
# end
|
1392
|
+
#
|
1163
1393
|
def list_tasks request, options = nil
|
1164
1394
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1165
1395
|
|
@@ -1177,16 +1407,20 @@ module Google
|
|
1177
1407
|
gapic_version: ::Google::Cloud::Tasks::V2::VERSION
|
1178
1408
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1179
1409
|
|
1180
|
-
header_params = {
|
1181
|
-
|
1182
|
-
|
1410
|
+
header_params = {}
|
1411
|
+
if request.parent
|
1412
|
+
header_params["parent"] = request.parent
|
1413
|
+
end
|
1414
|
+
|
1183
1415
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1184
1416
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1185
1417
|
|
1186
1418
|
options.apply_defaults timeout: @config.rpcs.list_tasks.timeout,
|
1187
1419
|
metadata: metadata,
|
1188
1420
|
retry_policy: @config.rpcs.list_tasks.retry_policy
|
1189
|
-
|
1421
|
+
|
1422
|
+
options.apply_defaults timeout: @config.timeout,
|
1423
|
+
metadata: @config.metadata,
|
1190
1424
|
retry_policy: @config.retry_policy
|
1191
1425
|
|
1192
1426
|
@cloud_tasks_stub.call_rpc :list_tasks, request, options: options do |response, operation|
|
@@ -1241,6 +1475,21 @@ module Google
|
|
1241
1475
|
#
|
1242
1476
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1243
1477
|
#
|
1478
|
+
# @example Basic example
|
1479
|
+
# require "google/cloud/tasks/v2"
|
1480
|
+
#
|
1481
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1482
|
+
# client = Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
1483
|
+
#
|
1484
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1485
|
+
# request = Google::Cloud::Tasks::V2::GetTaskRequest.new
|
1486
|
+
#
|
1487
|
+
# # Call the get_task method.
|
1488
|
+
# result = client.get_task request
|
1489
|
+
#
|
1490
|
+
# # The returned object is of type Google::Cloud::Tasks::V2::Task.
|
1491
|
+
# p result
|
1492
|
+
#
|
1244
1493
|
def get_task request, options = nil
|
1245
1494
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1246
1495
|
|
@@ -1258,16 +1507,20 @@ module Google
|
|
1258
1507
|
gapic_version: ::Google::Cloud::Tasks::V2::VERSION
|
1259
1508
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1260
1509
|
|
1261
|
-
header_params = {
|
1262
|
-
|
1263
|
-
|
1510
|
+
header_params = {}
|
1511
|
+
if request.name
|
1512
|
+
header_params["name"] = request.name
|
1513
|
+
end
|
1514
|
+
|
1264
1515
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1265
1516
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1266
1517
|
|
1267
1518
|
options.apply_defaults timeout: @config.rpcs.get_task.timeout,
|
1268
1519
|
metadata: metadata,
|
1269
1520
|
retry_policy: @config.rpcs.get_task.retry_policy
|
1270
|
-
|
1521
|
+
|
1522
|
+
options.apply_defaults timeout: @config.timeout,
|
1523
|
+
metadata: @config.metadata,
|
1271
1524
|
retry_policy: @config.retry_policy
|
1272
1525
|
|
1273
1526
|
@cloud_tasks_stub.call_rpc :get_task, request, options: options do |response, operation|
|
@@ -1361,6 +1614,21 @@ module Google
|
|
1361
1614
|
#
|
1362
1615
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1363
1616
|
#
|
1617
|
+
# @example Basic example
|
1618
|
+
# require "google/cloud/tasks/v2"
|
1619
|
+
#
|
1620
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1621
|
+
# client = Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
1622
|
+
#
|
1623
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1624
|
+
# request = Google::Cloud::Tasks::V2::CreateTaskRequest.new
|
1625
|
+
#
|
1626
|
+
# # Call the create_task method.
|
1627
|
+
# result = client.create_task request
|
1628
|
+
#
|
1629
|
+
# # The returned object is of type Google::Cloud::Tasks::V2::Task.
|
1630
|
+
# p result
|
1631
|
+
#
|
1364
1632
|
def create_task request, options = nil
|
1365
1633
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1366
1634
|
|
@@ -1378,16 +1646,20 @@ module Google
|
|
1378
1646
|
gapic_version: ::Google::Cloud::Tasks::V2::VERSION
|
1379
1647
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1380
1648
|
|
1381
|
-
header_params = {
|
1382
|
-
|
1383
|
-
|
1649
|
+
header_params = {}
|
1650
|
+
if request.parent
|
1651
|
+
header_params["parent"] = request.parent
|
1652
|
+
end
|
1653
|
+
|
1384
1654
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1385
1655
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1386
1656
|
|
1387
1657
|
options.apply_defaults timeout: @config.rpcs.create_task.timeout,
|
1388
1658
|
metadata: metadata,
|
1389
1659
|
retry_policy: @config.rpcs.create_task.retry_policy
|
1390
|
-
|
1660
|
+
|
1661
|
+
options.apply_defaults timeout: @config.timeout,
|
1662
|
+
metadata: @config.metadata,
|
1391
1663
|
retry_policy: @config.retry_policy
|
1392
1664
|
|
1393
1665
|
@cloud_tasks_stub.call_rpc :create_task, request, options: options do |response, operation|
|
@@ -1432,6 +1704,21 @@ module Google
|
|
1432
1704
|
#
|
1433
1705
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1434
1706
|
#
|
1707
|
+
# @example Basic example
|
1708
|
+
# require "google/cloud/tasks/v2"
|
1709
|
+
#
|
1710
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1711
|
+
# client = Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
1712
|
+
#
|
1713
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1714
|
+
# request = Google::Cloud::Tasks::V2::DeleteTaskRequest.new
|
1715
|
+
#
|
1716
|
+
# # Call the delete_task method.
|
1717
|
+
# result = client.delete_task request
|
1718
|
+
#
|
1719
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1720
|
+
# p result
|
1721
|
+
#
|
1435
1722
|
def delete_task request, options = nil
|
1436
1723
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1437
1724
|
|
@@ -1449,16 +1736,20 @@ module Google
|
|
1449
1736
|
gapic_version: ::Google::Cloud::Tasks::V2::VERSION
|
1450
1737
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1451
1738
|
|
1452
|
-
header_params = {
|
1453
|
-
|
1454
|
-
|
1739
|
+
header_params = {}
|
1740
|
+
if request.name
|
1741
|
+
header_params["name"] = request.name
|
1742
|
+
end
|
1743
|
+
|
1455
1744
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1456
1745
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1457
1746
|
|
1458
1747
|
options.apply_defaults timeout: @config.rpcs.delete_task.timeout,
|
1459
1748
|
metadata: metadata,
|
1460
1749
|
retry_policy: @config.rpcs.delete_task.retry_policy
|
1461
|
-
|
1750
|
+
|
1751
|
+
options.apply_defaults timeout: @config.timeout,
|
1752
|
+
metadata: @config.metadata,
|
1462
1753
|
retry_policy: @config.retry_policy
|
1463
1754
|
|
1464
1755
|
@cloud_tasks_stub.call_rpc :delete_task, request, options: options do |response, operation|
|
@@ -1535,6 +1826,21 @@ module Google
|
|
1535
1826
|
#
|
1536
1827
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1537
1828
|
#
|
1829
|
+
# @example Basic example
|
1830
|
+
# require "google/cloud/tasks/v2"
|
1831
|
+
#
|
1832
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1833
|
+
# client = Google::Cloud::Tasks::V2::CloudTasks::Client.new
|
1834
|
+
#
|
1835
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1836
|
+
# request = Google::Cloud::Tasks::V2::RunTaskRequest.new
|
1837
|
+
#
|
1838
|
+
# # Call the run_task method.
|
1839
|
+
# result = client.run_task request
|
1840
|
+
#
|
1841
|
+
# # The returned object is of type Google::Cloud::Tasks::V2::Task.
|
1842
|
+
# p result
|
1843
|
+
#
|
1538
1844
|
def run_task request, options = nil
|
1539
1845
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1540
1846
|
|
@@ -1552,16 +1858,20 @@ module Google
|
|
1552
1858
|
gapic_version: ::Google::Cloud::Tasks::V2::VERSION
|
1553
1859
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1554
1860
|
|
1555
|
-
header_params = {
|
1556
|
-
|
1557
|
-
|
1861
|
+
header_params = {}
|
1862
|
+
if request.name
|
1863
|
+
header_params["name"] = request.name
|
1864
|
+
end
|
1865
|
+
|
1558
1866
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1559
1867
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1560
1868
|
|
1561
1869
|
options.apply_defaults timeout: @config.rpcs.run_task.timeout,
|
1562
1870
|
metadata: metadata,
|
1563
1871
|
retry_policy: @config.rpcs.run_task.retry_policy
|
1564
|
-
|
1872
|
+
|
1873
|
+
options.apply_defaults timeout: @config.timeout,
|
1874
|
+
metadata: @config.metadata,
|
1565
1875
|
retry_policy: @config.retry_policy
|
1566
1876
|
|
1567
1877
|
@cloud_tasks_stub.call_rpc :run_task, request, options: options do |response, operation|
|
@@ -1585,22 +1895,21 @@ module Google
|
|
1585
1895
|
# Configuration can be applied globally to all clients, or to a single client
|
1586
1896
|
# on construction.
|
1587
1897
|
#
|
1588
|
-
#
|
1589
|
-
#
|
1590
|
-
#
|
1591
|
-
# to 20 seconds,
|
1592
|
-
#
|
1593
|
-
#
|
1594
|
-
#
|
1595
|
-
#
|
1596
|
-
#
|
1597
|
-
#
|
1598
|
-
#
|
1599
|
-
#
|
1600
|
-
#
|
1601
|
-
#
|
1602
|
-
#
|
1603
|
-
# end
|
1898
|
+
# @example
|
1899
|
+
#
|
1900
|
+
# # Modify the global config, setting the timeout for
|
1901
|
+
# # list_queues to 20 seconds,
|
1902
|
+
# # and all remaining timeouts to 10 seconds.
|
1903
|
+
# ::Google::Cloud::Tasks::V2::CloudTasks::Client.configure do |config|
|
1904
|
+
# config.timeout = 10.0
|
1905
|
+
# config.rpcs.list_queues.timeout = 20.0
|
1906
|
+
# end
|
1907
|
+
#
|
1908
|
+
# # Apply the above configuration only to a new client.
|
1909
|
+
# client = ::Google::Cloud::Tasks::V2::CloudTasks::Client.new do |config|
|
1910
|
+
# config.timeout = 10.0
|
1911
|
+
# config.rpcs.list_queues.timeout = 20.0
|
1912
|
+
# end
|
1604
1913
|
#
|
1605
1914
|
# @!attribute [rw] endpoint
|
1606
1915
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/tasks/v2/cloudtasks.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -13,6 +11,8 @@ require 'google/iam/v1/iam_policy_pb'
|
|
13
11
|
require 'google/iam/v1/policy_pb'
|
14
12
|
require 'google/protobuf/empty_pb'
|
15
13
|
require 'google/protobuf/field_mask_pb'
|
14
|
+
require 'google/protobuf'
|
15
|
+
|
16
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
17
|
add_file("google/cloud/tasks/v2/cloudtasks.proto", :syntax => :proto3) do
|
18
18
|
add_message "google.cloud.tasks.v2.ListQueuesRequest" do
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/tasks/v2/queue.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/resource_pb'
|
7
5
|
require 'google/cloud/tasks/v2/target_pb'
|
8
6
|
require 'google/protobuf/duration_pb'
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
10
8
|
require 'google/api/annotations_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/cloud/tasks/v2/queue.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.cloud.tasks.v2.Queue" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/tasks/v2/target.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/tasks/v2/target.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.tasks.v2.HttpRequest" do
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/tasks/v2/task.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/resource_pb'
|
7
5
|
require 'google/cloud/tasks/v2/target_pb'
|
8
6
|
require 'google/protobuf/duration_pb'
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
10
8
|
require 'google/rpc/status_pb'
|
11
9
|
require 'google/api/annotations_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/tasks/v2/task.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.cloud.tasks.v2.Task" do
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
@@ -80,8 +80,8 @@ module Google
|
|
80
80
|
# {::Google::Cloud::Tasks::V2::HttpRequest#url HttpRequest.url}.
|
81
81
|
# * Content-Length: This will be computed by Cloud Tasks.
|
82
82
|
# * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
|
83
|
-
# * X-Google
|
84
|
-
# * X-AppEngine
|
83
|
+
# * `X-Google-*`: Google use only.
|
84
|
+
# * `X-AppEngine-*`: Google use only.
|
85
85
|
#
|
86
86
|
# `Content-Type` won't be set by Cloud Tasks. You can explicitly set
|
87
87
|
# `Content-Type` to a media type when the
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-tasks-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
239
|
- !ruby/object:Gem::Version
|
240
240
|
version: '0'
|
241
241
|
requirements: []
|
242
|
-
rubygems_version: 3.
|
242
|
+
rubygems_version: 3.3.4
|
243
243
|
signing_key:
|
244
244
|
specification_version: 4
|
245
245
|
summary: API Client library for the Cloud Tasks V2 API
|