google-cloud-tasks-v2 0.8.2 → 0.9.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: 4fc458310d9519284809db91d4decce47c8590e7a44af2c444d6ba626d198e51
4
- data.tar.gz: '0908a45fc002152c9e1259dfcc6680652efc79cd6ba11e2447d13124d328014d'
3
+ metadata.gz: 4609c324323ef5da39a20b7e7badaf67d4c10729d08dde1cce9147d5dd96a070
4
+ data.tar.gz: b1ea7e746c8cfa67676c4753997a99da6f4ef2d1edde3a9803ce61299e440e77
5
5
  SHA512:
6
- metadata.gz: 505427abd2604868628701d74666a47cc00961817c6bedf5dd5ccecca9bc78ad99c03a129aaf132c9ed343054bd086198c9837344a8f8eaea8f3f630cd881735
7
- data.tar.gz: 495a3154f884a9b7ea3671530a6103bab8cab73e93b50360943e8802e85e505957e9edff8647aa8933f05642c622e919783f395e8ecc12a0e1e6efcf65052081
6
+ metadata.gz: 9b3a436272c5c31399e847de2cf6b6a6ca52c5a38e39754427eecee8c44a9588b3811cfc619e4387f7f0bad76f470dcdd302a54e4b917aae11970b652da68f30
7
+ data.tar.gz: e26fb942b05db20d0430c7c9984c1fbcf16d13a779644c3c2df1ac8da22b9a0afd449a9e817912fb2af422f1be657d57293f77362e3a1b9c1687a9874a26e87a
@@ -202,7 +202,8 @@ module Google
202
202
  credentials: credentials,
203
203
  endpoint: @config.endpoint,
204
204
  channel_args: @config.channel_args,
205
- interceptors: @config.interceptors
205
+ interceptors: @config.interceptors,
206
+ channel_pool_config: @config.channel_pool
206
207
  )
207
208
  end
208
209
 
@@ -2024,6 +2025,14 @@ module Google
2024
2025
  end
2025
2026
  end
2026
2027
 
2028
+ ##
2029
+ # Configuration for the channel pool
2030
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
2031
+ #
2032
+ def channel_pool
2033
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
2034
+ end
2035
+
2027
2036
  ##
2028
2037
  # Configuration RPC class for the CloudTasks API.
2029
2038
  #
@@ -267,6 +267,26 @@ module Google
267
267
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Tasks::V2::Queue>]
268
268
  #
269
269
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
270
+ #
271
+ # @example Basic example
272
+ # require "google/cloud/tasks/v2"
273
+ #
274
+ # # Create a client object. The client can be reused for multiple calls.
275
+ # client = Google::Cloud::Tasks::V2::CloudTasks::Rest::Client.new
276
+ #
277
+ # # Create a request. To set request fields, pass in keyword arguments.
278
+ # request = Google::Cloud::Tasks::V2::ListQueuesRequest.new
279
+ #
280
+ # # Call the list_queues method.
281
+ # result = client.list_queues request
282
+ #
283
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
284
+ # # over elements, and API calls will be issued to fetch pages as needed.
285
+ # result.each do |item|
286
+ # # Each element is of type ::Google::Cloud::Tasks::V2::Queue.
287
+ # p item
288
+ # end
289
+ #
270
290
  def list_queues request, options = nil
271
291
  raise ::ArgumentError, "request must be provided" if request.nil?
272
292
 
@@ -331,6 +351,22 @@ module Google
331
351
  # @return [::Google::Cloud::Tasks::V2::Queue]
332
352
  #
333
353
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
354
+ #
355
+ # @example Basic example
356
+ # require "google/cloud/tasks/v2"
357
+ #
358
+ # # Create a client object. The client can be reused for multiple calls.
359
+ # client = Google::Cloud::Tasks::V2::CloudTasks::Rest::Client.new
360
+ #
361
+ # # Create a request. To set request fields, pass in keyword arguments.
362
+ # request = Google::Cloud::Tasks::V2::GetQueueRequest.new
363
+ #
364
+ # # Call the get_queue method.
365
+ # result = client.get_queue request
366
+ #
367
+ # # The returned object is of type Google::Cloud::Tasks::V2::Queue.
368
+ # p result
369
+ #
334
370
  def get_queue request, options = nil
335
371
  raise ::ArgumentError, "request must be provided" if request.nil?
336
372
 
@@ -414,6 +450,22 @@ module Google
414
450
  # @return [::Google::Cloud::Tasks::V2::Queue]
415
451
  #
416
452
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
453
+ #
454
+ # @example Basic example
455
+ # require "google/cloud/tasks/v2"
456
+ #
457
+ # # Create a client object. The client can be reused for multiple calls.
458
+ # client = Google::Cloud::Tasks::V2::CloudTasks::Rest::Client.new
459
+ #
460
+ # # Create a request. To set request fields, pass in keyword arguments.
461
+ # request = Google::Cloud::Tasks::V2::CreateQueueRequest.new
462
+ #
463
+ # # Call the create_queue method.
464
+ # result = client.create_queue request
465
+ #
466
+ # # The returned object is of type Google::Cloud::Tasks::V2::Queue.
467
+ # p result
468
+ #
417
469
  def create_queue request, options = nil
418
470
  raise ::ArgumentError, "request must be provided" if request.nil?
419
471
 
@@ -500,6 +552,22 @@ module Google
500
552
  # @return [::Google::Cloud::Tasks::V2::Queue]
501
553
  #
502
554
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
555
+ #
556
+ # @example Basic example
557
+ # require "google/cloud/tasks/v2"
558
+ #
559
+ # # Create a client object. The client can be reused for multiple calls.
560
+ # client = Google::Cloud::Tasks::V2::CloudTasks::Rest::Client.new
561
+ #
562
+ # # Create a request. To set request fields, pass in keyword arguments.
563
+ # request = Google::Cloud::Tasks::V2::UpdateQueueRequest.new
564
+ #
565
+ # # Call the update_queue method.
566
+ # result = client.update_queue request
567
+ #
568
+ # # The returned object is of type Google::Cloud::Tasks::V2::Queue.
569
+ # p result
570
+ #
503
571
  def update_queue request, options = nil
504
572
  raise ::ArgumentError, "request must be provided" if request.nil?
505
573
 
@@ -575,6 +643,22 @@ module Google
575
643
  # @return [::Google::Protobuf::Empty]
576
644
  #
577
645
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
646
+ #
647
+ # @example Basic example
648
+ # require "google/cloud/tasks/v2"
649
+ #
650
+ # # Create a client object. The client can be reused for multiple calls.
651
+ # client = Google::Cloud::Tasks::V2::CloudTasks::Rest::Client.new
652
+ #
653
+ # # Create a request. To set request fields, pass in keyword arguments.
654
+ # request = Google::Cloud::Tasks::V2::DeleteQueueRequest.new
655
+ #
656
+ # # Call the delete_queue method.
657
+ # result = client.delete_queue request
658
+ #
659
+ # # The returned object is of type Google::Protobuf::Empty.
660
+ # p result
661
+ #
578
662
  def delete_queue request, options = nil
579
663
  raise ::ArgumentError, "request must be provided" if request.nil?
580
664
 
@@ -643,6 +727,22 @@ module Google
643
727
  # @return [::Google::Cloud::Tasks::V2::Queue]
644
728
  #
645
729
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
730
+ #
731
+ # @example Basic example
732
+ # require "google/cloud/tasks/v2"
733
+ #
734
+ # # Create a client object. The client can be reused for multiple calls.
735
+ # client = Google::Cloud::Tasks::V2::CloudTasks::Rest::Client.new
736
+ #
737
+ # # Create a request. To set request fields, pass in keyword arguments.
738
+ # request = Google::Cloud::Tasks::V2::PurgeQueueRequest.new
739
+ #
740
+ # # Call the purge_queue method.
741
+ # result = client.purge_queue request
742
+ #
743
+ # # The returned object is of type Google::Cloud::Tasks::V2::Queue.
744
+ # p result
745
+ #
646
746
  def purge_queue request, options = nil
647
747
  raise ::ArgumentError, "request must be provided" if request.nil?
648
748
 
@@ -713,6 +813,22 @@ module Google
713
813
  # @return [::Google::Cloud::Tasks::V2::Queue]
714
814
  #
715
815
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
816
+ #
817
+ # @example Basic example
818
+ # require "google/cloud/tasks/v2"
819
+ #
820
+ # # Create a client object. The client can be reused for multiple calls.
821
+ # client = Google::Cloud::Tasks::V2::CloudTasks::Rest::Client.new
822
+ #
823
+ # # Create a request. To set request fields, pass in keyword arguments.
824
+ # request = Google::Cloud::Tasks::V2::PauseQueueRequest.new
825
+ #
826
+ # # Call the pause_queue method.
827
+ # result = client.pause_queue request
828
+ #
829
+ # # The returned object is of type Google::Cloud::Tasks::V2::Queue.
830
+ # p result
831
+ #
716
832
  def pause_queue request, options = nil
717
833
  raise ::ArgumentError, "request must be provided" if request.nil?
718
834
 
@@ -789,6 +905,22 @@ module Google
789
905
  # @return [::Google::Cloud::Tasks::V2::Queue]
790
906
  #
791
907
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
908
+ #
909
+ # @example Basic example
910
+ # require "google/cloud/tasks/v2"
911
+ #
912
+ # # Create a client object. The client can be reused for multiple calls.
913
+ # client = Google::Cloud::Tasks::V2::CloudTasks::Rest::Client.new
914
+ #
915
+ # # Create a request. To set request fields, pass in keyword arguments.
916
+ # request = Google::Cloud::Tasks::V2::ResumeQueueRequest.new
917
+ #
918
+ # # Call the resume_queue method.
919
+ # result = client.resume_queue request
920
+ #
921
+ # # The returned object is of type Google::Cloud::Tasks::V2::Queue.
922
+ # p result
923
+ #
792
924
  def resume_queue request, options = nil
793
925
  raise ::ArgumentError, "request must be provided" if request.nil?
794
926
 
@@ -863,6 +995,22 @@ module Google
863
995
  # @return [::Google::Iam::V1::Policy]
864
996
  #
865
997
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
998
+ #
999
+ # @example Basic example
1000
+ # require "google/cloud/tasks/v2"
1001
+ #
1002
+ # # Create a client object. The client can be reused for multiple calls.
1003
+ # client = Google::Cloud::Tasks::V2::CloudTasks::Rest::Client.new
1004
+ #
1005
+ # # Create a request. To set request fields, pass in keyword arguments.
1006
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
1007
+ #
1008
+ # # Call the get_iam_policy method.
1009
+ # result = client.get_iam_policy request
1010
+ #
1011
+ # # The returned object is of type Google::Iam::V1::Policy.
1012
+ # p result
1013
+ #
866
1014
  def get_iam_policy request, options = nil
867
1015
  raise ::ArgumentError, "request must be provided" if request.nil?
868
1016
 
@@ -947,6 +1095,22 @@ module Google
947
1095
  # @return [::Google::Iam::V1::Policy]
948
1096
  #
949
1097
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1098
+ #
1099
+ # @example Basic example
1100
+ # require "google/cloud/tasks/v2"
1101
+ #
1102
+ # # Create a client object. The client can be reused for multiple calls.
1103
+ # client = Google::Cloud::Tasks::V2::CloudTasks::Rest::Client.new
1104
+ #
1105
+ # # Create a request. To set request fields, pass in keyword arguments.
1106
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
1107
+ #
1108
+ # # Call the set_iam_policy method.
1109
+ # result = client.set_iam_policy request
1110
+ #
1111
+ # # The returned object is of type Google::Iam::V1::Policy.
1112
+ # p result
1113
+ #
950
1114
  def set_iam_policy request, options = nil
951
1115
  raise ::ArgumentError, "request must be provided" if request.nil?
952
1116
 
@@ -1022,6 +1186,22 @@ module Google
1022
1186
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
1023
1187
  #
1024
1188
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1189
+ #
1190
+ # @example Basic example
1191
+ # require "google/cloud/tasks/v2"
1192
+ #
1193
+ # # Create a client object. The client can be reused for multiple calls.
1194
+ # client = Google::Cloud::Tasks::V2::CloudTasks::Rest::Client.new
1195
+ #
1196
+ # # Create a request. To set request fields, pass in keyword arguments.
1197
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
1198
+ #
1199
+ # # Call the test_iam_permissions method.
1200
+ # result = client.test_iam_permissions request
1201
+ #
1202
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
1203
+ # p result
1204
+ #
1025
1205
  def test_iam_permissions request, options = nil
1026
1206
  raise ::ArgumentError, "request must be provided" if request.nil?
1027
1207
 
@@ -1125,6 +1305,26 @@ module Google
1125
1305
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Tasks::V2::Task>]
1126
1306
  #
1127
1307
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1308
+ #
1309
+ # @example Basic example
1310
+ # require "google/cloud/tasks/v2"
1311
+ #
1312
+ # # Create a client object. The client can be reused for multiple calls.
1313
+ # client = Google::Cloud::Tasks::V2::CloudTasks::Rest::Client.new
1314
+ #
1315
+ # # Create a request. To set request fields, pass in keyword arguments.
1316
+ # request = Google::Cloud::Tasks::V2::ListTasksRequest.new
1317
+ #
1318
+ # # Call the list_tasks method.
1319
+ # result = client.list_tasks request
1320
+ #
1321
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1322
+ # # over elements, and API calls will be issued to fetch pages as needed.
1323
+ # result.each do |item|
1324
+ # # Each element is of type ::Google::Cloud::Tasks::V2::Task.
1325
+ # p item
1326
+ # end
1327
+ #
1128
1328
  def list_tasks request, options = nil
1129
1329
  raise ::ArgumentError, "request must be provided" if request.nil?
1130
1330
 
@@ -1202,6 +1402,22 @@ module Google
1202
1402
  # @return [::Google::Cloud::Tasks::V2::Task]
1203
1403
  #
1204
1404
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1405
+ #
1406
+ # @example Basic example
1407
+ # require "google/cloud/tasks/v2"
1408
+ #
1409
+ # # Create a client object. The client can be reused for multiple calls.
1410
+ # client = Google::Cloud::Tasks::V2::CloudTasks::Rest::Client.new
1411
+ #
1412
+ # # Create a request. To set request fields, pass in keyword arguments.
1413
+ # request = Google::Cloud::Tasks::V2::GetTaskRequest.new
1414
+ #
1415
+ # # Call the get_task method.
1416
+ # result = client.get_task request
1417
+ #
1418
+ # # The returned object is of type Google::Cloud::Tasks::V2::Task.
1419
+ # p result
1420
+ #
1205
1421
  def get_task request, options = nil
1206
1422
  raise ::ArgumentError, "request must be provided" if request.nil?
1207
1423
 
@@ -1318,6 +1534,22 @@ module Google
1318
1534
  # @return [::Google::Cloud::Tasks::V2::Task]
1319
1535
  #
1320
1536
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1537
+ #
1538
+ # @example Basic example
1539
+ # require "google/cloud/tasks/v2"
1540
+ #
1541
+ # # Create a client object. The client can be reused for multiple calls.
1542
+ # client = Google::Cloud::Tasks::V2::CloudTasks::Rest::Client.new
1543
+ #
1544
+ # # Create a request. To set request fields, pass in keyword arguments.
1545
+ # request = Google::Cloud::Tasks::V2::CreateTaskRequest.new
1546
+ #
1547
+ # # Call the create_task method.
1548
+ # result = client.create_task request
1549
+ #
1550
+ # # The returned object is of type Google::Cloud::Tasks::V2::Task.
1551
+ # p result
1552
+ #
1321
1553
  def create_task request, options = nil
1322
1554
  raise ::ArgumentError, "request must be provided" if request.nil?
1323
1555
 
@@ -1385,6 +1617,22 @@ module Google
1385
1617
  # @return [::Google::Protobuf::Empty]
1386
1618
  #
1387
1619
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1620
+ #
1621
+ # @example Basic example
1622
+ # require "google/cloud/tasks/v2"
1623
+ #
1624
+ # # Create a client object. The client can be reused for multiple calls.
1625
+ # client = Google::Cloud::Tasks::V2::CloudTasks::Rest::Client.new
1626
+ #
1627
+ # # Create a request. To set request fields, pass in keyword arguments.
1628
+ # request = Google::Cloud::Tasks::V2::DeleteTaskRequest.new
1629
+ #
1630
+ # # Call the delete_task method.
1631
+ # result = client.delete_task request
1632
+ #
1633
+ # # The returned object is of type Google::Protobuf::Empty.
1634
+ # p result
1635
+ #
1388
1636
  def delete_task request, options = nil
1389
1637
  raise ::ArgumentError, "request must be provided" if request.nil?
1390
1638
 
@@ -1486,6 +1734,22 @@ module Google
1486
1734
  # @return [::Google::Cloud::Tasks::V2::Task]
1487
1735
  #
1488
1736
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1737
+ #
1738
+ # @example Basic example
1739
+ # require "google/cloud/tasks/v2"
1740
+ #
1741
+ # # Create a client object. The client can be reused for multiple calls.
1742
+ # client = Google::Cloud::Tasks::V2::CloudTasks::Rest::Client.new
1743
+ #
1744
+ # # Create a request. To set request fields, pass in keyword arguments.
1745
+ # request = Google::Cloud::Tasks::V2::RunTaskRequest.new
1746
+ #
1747
+ # # Call the run_task method.
1748
+ # result = client.run_task request
1749
+ #
1750
+ # # The returned object is of type Google::Cloud::Tasks::V2::Task.
1751
+ # p result
1752
+ #
1489
1753
  def run_task request, options = nil
1490
1754
  raise ::ArgumentError, "request must be provided" if request.nil?
1491
1755
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Tasks
23
23
  module V2
24
- VERSION = "0.8.2"
24
+ VERSION = "0.9.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-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.9.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
@@ -260,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
260
  - !ruby/object:Gem::Version
261
261
  version: '0'
262
262
  requirements: []
263
- rubygems_version: 3.4.2
263
+ rubygems_version: 3.4.19
264
264
  signing_key:
265
265
  specification_version: 4
266
266
  summary: Manages the execution of large numbers of distributed requests.