google-cloud-tasks-v2beta3 0.10.2 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8356080b4e035e2c9a8e07545fdca4dd3ed425958090e226c2c0f7ab467c7cea
4
- data.tar.gz: 21e01efade0d5dad096643e5cd01bc4d4e792e51fae65c69e675b537774af403
3
+ metadata.gz: 7c1e14a4ffc137e534e754384f47e94e8a4775d3b69a644b7400c77641d2d9df
4
+ data.tar.gz: b567f7c6d8883a3b530592e03c069c41454e8aa1cdc144c216198473e1dc78c3
5
5
  SHA512:
6
- metadata.gz: 1c207c60837703c273a57f3b577ee3c4300392fcb5ac97ccccfdf28b8bc9c23519475969f6c872e575eaac234f507ad398ebb6cb1811ae3fe2a517cf3734e73f
7
- data.tar.gz: e24b740c37d9db8fd86f0ddbff2d3f2ef97d9a2073f70477a6feb5b82cbab2946edbf7b90dc9da37ade3bcd9e059049603cce707dcaced547ffe2be31e08b323
6
+ metadata.gz: c8ef6a0b661f898539b93b6a0a495064a81d39d1f3adbe8bc2bc8c7993fed675d2333e2f634356160009011843fdaf2983edc91925762a03c4bb7a3b1a4be059
7
+ data.tar.gz: e19cad379065e215c5b0fa0454e4b980d2584e843337a3961e88f59f5a476a53c9ec65c103a6378cbd4db78393a1d6ee14ecab6d8753bc16681f1aeb109d19ca
@@ -204,7 +204,8 @@ module Google
204
204
  credentials: credentials,
205
205
  endpoint: @config.endpoint,
206
206
  channel_args: @config.channel_args,
207
- interceptors: @config.interceptors
207
+ interceptors: @config.interceptors,
208
+ channel_pool_config: @config.channel_pool
208
209
  )
209
210
  end
210
211
 
@@ -2153,6 +2154,14 @@ module Google
2153
2154
  end
2154
2155
  end
2155
2156
 
2157
+ ##
2158
+ # Configuration for the channel pool
2159
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
2160
+ #
2161
+ def channel_pool
2162
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
2163
+ end
2164
+
2156
2165
  ##
2157
2166
  # Configuration RPC class for the CloudTasks API.
2158
2167
  #
@@ -274,6 +274,26 @@ module Google
274
274
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Tasks::V2beta3::Queue>]
275
275
  #
276
276
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
277
+ #
278
+ # @example Basic example
279
+ # require "google/cloud/tasks/v2beta3"
280
+ #
281
+ # # Create a client object. The client can be reused for multiple calls.
282
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::Client.new
283
+ #
284
+ # # Create a request. To set request fields, pass in keyword arguments.
285
+ # request = Google::Cloud::Tasks::V2beta3::ListQueuesRequest.new
286
+ #
287
+ # # Call the list_queues method.
288
+ # result = client.list_queues request
289
+ #
290
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
291
+ # # over elements, and API calls will be issued to fetch pages as needed.
292
+ # result.each do |item|
293
+ # # Each element is of type ::Google::Cloud::Tasks::V2beta3::Queue.
294
+ # p item
295
+ # end
296
+ #
277
297
  def list_queues request, options = nil
278
298
  raise ::ArgumentError, "request must be provided" if request.nil?
279
299
 
@@ -343,6 +363,22 @@ module Google
343
363
  # @return [::Google::Cloud::Tasks::V2beta3::Queue]
344
364
  #
345
365
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
366
+ #
367
+ # @example Basic example
368
+ # require "google/cloud/tasks/v2beta3"
369
+ #
370
+ # # Create a client object. The client can be reused for multiple calls.
371
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::Client.new
372
+ #
373
+ # # Create a request. To set request fields, pass in keyword arguments.
374
+ # request = Google::Cloud::Tasks::V2beta3::GetQueueRequest.new
375
+ #
376
+ # # Call the get_queue method.
377
+ # result = client.get_queue request
378
+ #
379
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::Queue.
380
+ # p result
381
+ #
346
382
  def get_queue request, options = nil
347
383
  raise ::ArgumentError, "request must be provided" if request.nil?
348
384
 
@@ -426,6 +462,22 @@ module Google
426
462
  # @return [::Google::Cloud::Tasks::V2beta3::Queue]
427
463
  #
428
464
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
465
+ #
466
+ # @example Basic example
467
+ # require "google/cloud/tasks/v2beta3"
468
+ #
469
+ # # Create a client object. The client can be reused for multiple calls.
470
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::Client.new
471
+ #
472
+ # # Create a request. To set request fields, pass in keyword arguments.
473
+ # request = Google::Cloud::Tasks::V2beta3::CreateQueueRequest.new
474
+ #
475
+ # # Call the create_queue method.
476
+ # result = client.create_queue request
477
+ #
478
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::Queue.
479
+ # p result
480
+ #
429
481
  def create_queue request, options = nil
430
482
  raise ::ArgumentError, "request must be provided" if request.nil?
431
483
 
@@ -514,6 +566,22 @@ module Google
514
566
  # @return [::Google::Cloud::Tasks::V2beta3::Queue]
515
567
  #
516
568
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
569
+ #
570
+ # @example Basic example
571
+ # require "google/cloud/tasks/v2beta3"
572
+ #
573
+ # # Create a client object. The client can be reused for multiple calls.
574
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::Client.new
575
+ #
576
+ # # Create a request. To set request fields, pass in keyword arguments.
577
+ # request = Google::Cloud::Tasks::V2beta3::UpdateQueueRequest.new
578
+ #
579
+ # # Call the update_queue method.
580
+ # result = client.update_queue request
581
+ #
582
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::Queue.
583
+ # p result
584
+ #
517
585
  def update_queue request, options = nil
518
586
  raise ::ArgumentError, "request must be provided" if request.nil?
519
587
 
@@ -589,6 +657,22 @@ module Google
589
657
  # @return [::Google::Protobuf::Empty]
590
658
  #
591
659
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
660
+ #
661
+ # @example Basic example
662
+ # require "google/cloud/tasks/v2beta3"
663
+ #
664
+ # # Create a client object. The client can be reused for multiple calls.
665
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::Client.new
666
+ #
667
+ # # Create a request. To set request fields, pass in keyword arguments.
668
+ # request = Google::Cloud::Tasks::V2beta3::DeleteQueueRequest.new
669
+ #
670
+ # # Call the delete_queue method.
671
+ # result = client.delete_queue request
672
+ #
673
+ # # The returned object is of type Google::Protobuf::Empty.
674
+ # p result
675
+ #
592
676
  def delete_queue request, options = nil
593
677
  raise ::ArgumentError, "request must be provided" if request.nil?
594
678
 
@@ -657,6 +741,22 @@ module Google
657
741
  # @return [::Google::Cloud::Tasks::V2beta3::Queue]
658
742
  #
659
743
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
744
+ #
745
+ # @example Basic example
746
+ # require "google/cloud/tasks/v2beta3"
747
+ #
748
+ # # Create a client object. The client can be reused for multiple calls.
749
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::Client.new
750
+ #
751
+ # # Create a request. To set request fields, pass in keyword arguments.
752
+ # request = Google::Cloud::Tasks::V2beta3::PurgeQueueRequest.new
753
+ #
754
+ # # Call the purge_queue method.
755
+ # result = client.purge_queue request
756
+ #
757
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::Queue.
758
+ # p result
759
+ #
660
760
  def purge_queue request, options = nil
661
761
  raise ::ArgumentError, "request must be provided" if request.nil?
662
762
 
@@ -727,6 +827,22 @@ module Google
727
827
  # @return [::Google::Cloud::Tasks::V2beta3::Queue]
728
828
  #
729
829
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
830
+ #
831
+ # @example Basic example
832
+ # require "google/cloud/tasks/v2beta3"
833
+ #
834
+ # # Create a client object. The client can be reused for multiple calls.
835
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::Client.new
836
+ #
837
+ # # Create a request. To set request fields, pass in keyword arguments.
838
+ # request = Google::Cloud::Tasks::V2beta3::PauseQueueRequest.new
839
+ #
840
+ # # Call the pause_queue method.
841
+ # result = client.pause_queue request
842
+ #
843
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::Queue.
844
+ # p result
845
+ #
730
846
  def pause_queue request, options = nil
731
847
  raise ::ArgumentError, "request must be provided" if request.nil?
732
848
 
@@ -804,6 +920,22 @@ module Google
804
920
  # @return [::Google::Cloud::Tasks::V2beta3::Queue]
805
921
  #
806
922
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
923
+ #
924
+ # @example Basic example
925
+ # require "google/cloud/tasks/v2beta3"
926
+ #
927
+ # # Create a client object. The client can be reused for multiple calls.
928
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::Client.new
929
+ #
930
+ # # Create a request. To set request fields, pass in keyword arguments.
931
+ # request = Google::Cloud::Tasks::V2beta3::ResumeQueueRequest.new
932
+ #
933
+ # # Call the resume_queue method.
934
+ # result = client.resume_queue request
935
+ #
936
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::Queue.
937
+ # p result
938
+ #
807
939
  def resume_queue request, options = nil
808
940
  raise ::ArgumentError, "request must be provided" if request.nil?
809
941
 
@@ -878,6 +1010,22 @@ module Google
878
1010
  # @return [::Google::Iam::V1::Policy]
879
1011
  #
880
1012
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1013
+ #
1014
+ # @example Basic example
1015
+ # require "google/cloud/tasks/v2beta3"
1016
+ #
1017
+ # # Create a client object. The client can be reused for multiple calls.
1018
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::Client.new
1019
+ #
1020
+ # # Create a request. To set request fields, pass in keyword arguments.
1021
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
1022
+ #
1023
+ # # Call the get_iam_policy method.
1024
+ # result = client.get_iam_policy request
1025
+ #
1026
+ # # The returned object is of type Google::Iam::V1::Policy.
1027
+ # p result
1028
+ #
881
1029
  def get_iam_policy request, options = nil
882
1030
  raise ::ArgumentError, "request must be provided" if request.nil?
883
1031
 
@@ -962,6 +1110,22 @@ module Google
962
1110
  # @return [::Google::Iam::V1::Policy]
963
1111
  #
964
1112
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1113
+ #
1114
+ # @example Basic example
1115
+ # require "google/cloud/tasks/v2beta3"
1116
+ #
1117
+ # # Create a client object. The client can be reused for multiple calls.
1118
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::Client.new
1119
+ #
1120
+ # # Create a request. To set request fields, pass in keyword arguments.
1121
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
1122
+ #
1123
+ # # Call the set_iam_policy method.
1124
+ # result = client.set_iam_policy request
1125
+ #
1126
+ # # The returned object is of type Google::Iam::V1::Policy.
1127
+ # p result
1128
+ #
965
1129
  def set_iam_policy request, options = nil
966
1130
  raise ::ArgumentError, "request must be provided" if request.nil?
967
1131
 
@@ -1037,6 +1201,22 @@ module Google
1037
1201
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
1038
1202
  #
1039
1203
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1204
+ #
1205
+ # @example Basic example
1206
+ # require "google/cloud/tasks/v2beta3"
1207
+ #
1208
+ # # Create a client object. The client can be reused for multiple calls.
1209
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::Client.new
1210
+ #
1211
+ # # Create a request. To set request fields, pass in keyword arguments.
1212
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
1213
+ #
1214
+ # # Call the test_iam_permissions method.
1215
+ # result = client.test_iam_permissions request
1216
+ #
1217
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
1218
+ # p result
1219
+ #
1040
1220
  def test_iam_permissions request, options = nil
1041
1221
  raise ::ArgumentError, "request must be provided" if request.nil?
1042
1222
 
@@ -1141,6 +1321,26 @@ module Google
1141
1321
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Tasks::V2beta3::Task>]
1142
1322
  #
1143
1323
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1324
+ #
1325
+ # @example Basic example
1326
+ # require "google/cloud/tasks/v2beta3"
1327
+ #
1328
+ # # Create a client object. The client can be reused for multiple calls.
1329
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::Client.new
1330
+ #
1331
+ # # Create a request. To set request fields, pass in keyword arguments.
1332
+ # request = Google::Cloud::Tasks::V2beta3::ListTasksRequest.new
1333
+ #
1334
+ # # Call the list_tasks method.
1335
+ # result = client.list_tasks request
1336
+ #
1337
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1338
+ # # over elements, and API calls will be issued to fetch pages as needed.
1339
+ # result.each do |item|
1340
+ # # Each element is of type ::Google::Cloud::Tasks::V2beta3::Task.
1341
+ # p item
1342
+ # end
1343
+ #
1144
1344
  def list_tasks request, options = nil
1145
1345
  raise ::ArgumentError, "request must be provided" if request.nil?
1146
1346
 
@@ -1219,6 +1419,22 @@ module Google
1219
1419
  # @return [::Google::Cloud::Tasks::V2beta3::Task]
1220
1420
  #
1221
1421
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1422
+ #
1423
+ # @example Basic example
1424
+ # require "google/cloud/tasks/v2beta3"
1425
+ #
1426
+ # # Create a client object. The client can be reused for multiple calls.
1427
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::Client.new
1428
+ #
1429
+ # # Create a request. To set request fields, pass in keyword arguments.
1430
+ # request = Google::Cloud::Tasks::V2beta3::GetTaskRequest.new
1431
+ #
1432
+ # # Call the get_task method.
1433
+ # result = client.get_task request
1434
+ #
1435
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::Task.
1436
+ # p result
1437
+ #
1222
1438
  def get_task request, options = nil
1223
1439
  raise ::ArgumentError, "request must be provided" if request.nil?
1224
1440
 
@@ -1336,6 +1552,22 @@ module Google
1336
1552
  # @return [::Google::Cloud::Tasks::V2beta3::Task]
1337
1553
  #
1338
1554
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1555
+ #
1556
+ # @example Basic example
1557
+ # require "google/cloud/tasks/v2beta3"
1558
+ #
1559
+ # # Create a client object. The client can be reused for multiple calls.
1560
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::Client.new
1561
+ #
1562
+ # # Create a request. To set request fields, pass in keyword arguments.
1563
+ # request = Google::Cloud::Tasks::V2beta3::CreateTaskRequest.new
1564
+ #
1565
+ # # Call the create_task method.
1566
+ # result = client.create_task request
1567
+ #
1568
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::Task.
1569
+ # p result
1570
+ #
1339
1571
  def create_task request, options = nil
1340
1572
  raise ::ArgumentError, "request must be provided" if request.nil?
1341
1573
 
@@ -1403,6 +1635,22 @@ module Google
1403
1635
  # @return [::Google::Protobuf::Empty]
1404
1636
  #
1405
1637
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1638
+ #
1639
+ # @example Basic example
1640
+ # require "google/cloud/tasks/v2beta3"
1641
+ #
1642
+ # # Create a client object. The client can be reused for multiple calls.
1643
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::Client.new
1644
+ #
1645
+ # # Create a request. To set request fields, pass in keyword arguments.
1646
+ # request = Google::Cloud::Tasks::V2beta3::DeleteTaskRequest.new
1647
+ #
1648
+ # # Call the delete_task method.
1649
+ # result = client.delete_task request
1650
+ #
1651
+ # # The returned object is of type Google::Protobuf::Empty.
1652
+ # p result
1653
+ #
1406
1654
  def delete_task request, options = nil
1407
1655
  raise ::ArgumentError, "request must be provided" if request.nil?
1408
1656
 
@@ -1506,6 +1754,22 @@ module Google
1506
1754
  # @return [::Google::Cloud::Tasks::V2beta3::Task]
1507
1755
  #
1508
1756
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1757
+ #
1758
+ # @example Basic example
1759
+ # require "google/cloud/tasks/v2beta3"
1760
+ #
1761
+ # # Create a client object. The client can be reused for multiple calls.
1762
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::Client.new
1763
+ #
1764
+ # # Create a request. To set request fields, pass in keyword arguments.
1765
+ # request = Google::Cloud::Tasks::V2beta3::RunTaskRequest.new
1766
+ #
1767
+ # # Call the run_task method.
1768
+ # result = client.run_task request
1769
+ #
1770
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::Task.
1771
+ # p result
1772
+ #
1509
1773
  def run_task request, options = nil
1510
1774
  raise ::ArgumentError, "request must be provided" if request.nil?
1511
1775
 
@@ -1589,6 +1853,22 @@ module Google
1589
1853
  # @return [::Google::Cloud::Tasks::V2beta3::BufferTaskResponse]
1590
1854
  #
1591
1855
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1856
+ #
1857
+ # @example Basic example
1858
+ # require "google/cloud/tasks/v2beta3"
1859
+ #
1860
+ # # Create a client object. The client can be reused for multiple calls.
1861
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::Client.new
1862
+ #
1863
+ # # Create a request. To set request fields, pass in keyword arguments.
1864
+ # request = Google::Cloud::Tasks::V2beta3::BufferTaskRequest.new
1865
+ #
1866
+ # # Call the buffer_task method.
1867
+ # result = client.buffer_task request
1868
+ #
1869
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::BufferTaskResponse.
1870
+ # p result
1871
+ #
1592
1872
  def buffer_task request, options = nil
1593
1873
  raise ::ArgumentError, "request must be provided" if request.nil?
1594
1874
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Tasks
23
23
  module V2beta3
24
- VERSION = "0.10.2"
24
+ VERSION = "0.11.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-tasks-v2beta3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-04 00:00:00.000000000 Z
11
+ date: 2023-09-12 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.1
19
+ version: 0.20.0
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.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
261
  - !ruby/object:Gem::Version
262
262
  version: '0'
263
263
  requirements: []
264
- rubygems_version: 3.4.2
264
+ rubygems_version: 3.4.19
265
265
  signing_key:
266
266
  specification_version: 4
267
267
  summary: Manages the execution of large numbers of distributed requests.