google-cloud-tasks-v2beta2 0.9.2 → 0.10.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: fabc756db549ba9f98195bd7a9a0988f7f88d3238b4dea83d10351816cc3a800
4
- data.tar.gz: ba58ed444a9212ad25a240b7e4a625fea9de18f9b5d95fe9047d5a45b77a4878
3
+ metadata.gz: 8345417897fed9c7b4548ed24dc365e4244b647a0029b8d73cb394774b3fd141
4
+ data.tar.gz: 2de002018d143b900187360372c944e34d01f4cddef53287d4d23ee4c8029aff
5
5
  SHA512:
6
- metadata.gz: b5a04de28b05c1e51eeadaa95c8b805664c7a589ce11d1dd75ac0b1811e9021fa7c0aad2ba1339e654c2ea9a6dd2fcdb2fc3a14816a25a672d9c4ecdef014048
7
- data.tar.gz: 86ea891f6f425138b2cc003936b14c22db8c5b10e3ec50fc4bb1a4b8c76f1d53d8cfc24639335559e19e5eb64a4c63466e7dad7ebdcfff043fb6c820395a1cd1
6
+ metadata.gz: fa4cf268916f442236956272a73ee5d3a5ea668466d2bbdb55f3221a9c286840ba65ef4012b5d59a7e41699229a2f66a160602c49d6bb06c7efb459ed879102b
7
+ data.tar.gz: 98f270bd62d980f46c7a93c1bdc505e589551e4d579182fa54338ce38bd14d1257488a15a9de67a6ce738e9a7d136d6e5e310ecc5c7fd817a5c8773152da8a4f
@@ -214,7 +214,8 @@ module Google
214
214
  credentials: credentials,
215
215
  endpoint: @config.endpoint,
216
216
  channel_args: @config.channel_args,
217
- interceptors: @config.interceptors
217
+ interceptors: @config.interceptors,
218
+ channel_pool_config: @config.channel_pool
218
219
  )
219
220
  end
220
221
 
@@ -2777,6 +2778,14 @@ module Google
2777
2778
  end
2778
2779
  end
2779
2780
 
2781
+ ##
2782
+ # Configuration for the channel pool
2783
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
2784
+ #
2785
+ def channel_pool
2786
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
2787
+ end
2788
+
2780
2789
  ##
2781
2790
  # Configuration RPC class for the CloudTasks API.
2782
2791
  #
@@ -282,6 +282,26 @@ module Google
282
282
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Tasks::V2beta2::Queue>]
283
283
  #
284
284
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
285
+ #
286
+ # @example Basic example
287
+ # require "google/cloud/tasks/v2beta2"
288
+ #
289
+ # # Create a client object. The client can be reused for multiple calls.
290
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
291
+ #
292
+ # # Create a request. To set request fields, pass in keyword arguments.
293
+ # request = Google::Cloud::Tasks::V2beta2::ListQueuesRequest.new
294
+ #
295
+ # # Call the list_queues method.
296
+ # result = client.list_queues request
297
+ #
298
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
299
+ # # over elements, and API calls will be issued to fetch pages as needed.
300
+ # result.each do |item|
301
+ # # Each element is of type ::Google::Cloud::Tasks::V2beta2::Queue.
302
+ # p item
303
+ # end
304
+ #
285
305
  def list_queues request, options = nil
286
306
  raise ::ArgumentError, "request must be provided" if request.nil?
287
307
 
@@ -351,6 +371,22 @@ module Google
351
371
  # @return [::Google::Cloud::Tasks::V2beta2::Queue]
352
372
  #
353
373
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
374
+ #
375
+ # @example Basic example
376
+ # require "google/cloud/tasks/v2beta2"
377
+ #
378
+ # # Create a client object. The client can be reused for multiple calls.
379
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
380
+ #
381
+ # # Create a request. To set request fields, pass in keyword arguments.
382
+ # request = Google::Cloud::Tasks::V2beta2::GetQueueRequest.new
383
+ #
384
+ # # Call the get_queue method.
385
+ # result = client.get_queue request
386
+ #
387
+ # # The returned object is of type Google::Cloud::Tasks::V2beta2::Queue.
388
+ # p result
389
+ #
354
390
  def get_queue request, options = nil
355
391
  raise ::ArgumentError, "request must be provided" if request.nil?
356
392
 
@@ -434,6 +470,22 @@ module Google
434
470
  # @return [::Google::Cloud::Tasks::V2beta2::Queue]
435
471
  #
436
472
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
473
+ #
474
+ # @example Basic example
475
+ # require "google/cloud/tasks/v2beta2"
476
+ #
477
+ # # Create a client object. The client can be reused for multiple calls.
478
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
479
+ #
480
+ # # Create a request. To set request fields, pass in keyword arguments.
481
+ # request = Google::Cloud::Tasks::V2beta2::CreateQueueRequest.new
482
+ #
483
+ # # Call the create_queue method.
484
+ # result = client.create_queue request
485
+ #
486
+ # # The returned object is of type Google::Cloud::Tasks::V2beta2::Queue.
487
+ # p result
488
+ #
437
489
  def create_queue request, options = nil
438
490
  raise ::ArgumentError, "request must be provided" if request.nil?
439
491
 
@@ -522,6 +574,22 @@ module Google
522
574
  # @return [::Google::Cloud::Tasks::V2beta2::Queue]
523
575
  #
524
576
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
577
+ #
578
+ # @example Basic example
579
+ # require "google/cloud/tasks/v2beta2"
580
+ #
581
+ # # Create a client object. The client can be reused for multiple calls.
582
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
583
+ #
584
+ # # Create a request. To set request fields, pass in keyword arguments.
585
+ # request = Google::Cloud::Tasks::V2beta2::UpdateQueueRequest.new
586
+ #
587
+ # # Call the update_queue method.
588
+ # result = client.update_queue request
589
+ #
590
+ # # The returned object is of type Google::Cloud::Tasks::V2beta2::Queue.
591
+ # p result
592
+ #
525
593
  def update_queue request, options = nil
526
594
  raise ::ArgumentError, "request must be provided" if request.nil?
527
595
 
@@ -597,6 +665,22 @@ module Google
597
665
  # @return [::Google::Protobuf::Empty]
598
666
  #
599
667
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
668
+ #
669
+ # @example Basic example
670
+ # require "google/cloud/tasks/v2beta2"
671
+ #
672
+ # # Create a client object. The client can be reused for multiple calls.
673
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
674
+ #
675
+ # # Create a request. To set request fields, pass in keyword arguments.
676
+ # request = Google::Cloud::Tasks::V2beta2::DeleteQueueRequest.new
677
+ #
678
+ # # Call the delete_queue method.
679
+ # result = client.delete_queue request
680
+ #
681
+ # # The returned object is of type Google::Protobuf::Empty.
682
+ # p result
683
+ #
600
684
  def delete_queue request, options = nil
601
685
  raise ::ArgumentError, "request must be provided" if request.nil?
602
686
 
@@ -665,6 +749,22 @@ module Google
665
749
  # @return [::Google::Cloud::Tasks::V2beta2::Queue]
666
750
  #
667
751
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
752
+ #
753
+ # @example Basic example
754
+ # require "google/cloud/tasks/v2beta2"
755
+ #
756
+ # # Create a client object. The client can be reused for multiple calls.
757
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
758
+ #
759
+ # # Create a request. To set request fields, pass in keyword arguments.
760
+ # request = Google::Cloud::Tasks::V2beta2::PurgeQueueRequest.new
761
+ #
762
+ # # Call the purge_queue method.
763
+ # result = client.purge_queue request
764
+ #
765
+ # # The returned object is of type Google::Cloud::Tasks::V2beta2::Queue.
766
+ # p result
767
+ #
668
768
  def purge_queue request, options = nil
669
769
  raise ::ArgumentError, "request must be provided" if request.nil?
670
770
 
@@ -735,6 +835,22 @@ module Google
735
835
  # @return [::Google::Cloud::Tasks::V2beta2::Queue]
736
836
  #
737
837
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
838
+ #
839
+ # @example Basic example
840
+ # require "google/cloud/tasks/v2beta2"
841
+ #
842
+ # # Create a client object. The client can be reused for multiple calls.
843
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
844
+ #
845
+ # # Create a request. To set request fields, pass in keyword arguments.
846
+ # request = Google::Cloud::Tasks::V2beta2::PauseQueueRequest.new
847
+ #
848
+ # # Call the pause_queue method.
849
+ # result = client.pause_queue request
850
+ #
851
+ # # The returned object is of type Google::Cloud::Tasks::V2beta2::Queue.
852
+ # p result
853
+ #
738
854
  def pause_queue request, options = nil
739
855
  raise ::ArgumentError, "request must be provided" if request.nil?
740
856
 
@@ -812,6 +928,22 @@ module Google
812
928
  # @return [::Google::Cloud::Tasks::V2beta2::Queue]
813
929
  #
814
930
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
931
+ #
932
+ # @example Basic example
933
+ # require "google/cloud/tasks/v2beta2"
934
+ #
935
+ # # Create a client object. The client can be reused for multiple calls.
936
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
937
+ #
938
+ # # Create a request. To set request fields, pass in keyword arguments.
939
+ # request = Google::Cloud::Tasks::V2beta2::ResumeQueueRequest.new
940
+ #
941
+ # # Call the resume_queue method.
942
+ # result = client.resume_queue request
943
+ #
944
+ # # The returned object is of type Google::Cloud::Tasks::V2beta2::Queue.
945
+ # p result
946
+ #
815
947
  def resume_queue request, options = nil
816
948
  raise ::ArgumentError, "request must be provided" if request.nil?
817
949
 
@@ -886,6 +1018,22 @@ module Google
886
1018
  # @return [::Google::Iam::V1::Policy]
887
1019
  #
888
1020
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1021
+ #
1022
+ # @example Basic example
1023
+ # require "google/cloud/tasks/v2beta2"
1024
+ #
1025
+ # # Create a client object. The client can be reused for multiple calls.
1026
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
1027
+ #
1028
+ # # Create a request. To set request fields, pass in keyword arguments.
1029
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
1030
+ #
1031
+ # # Call the get_iam_policy method.
1032
+ # result = client.get_iam_policy request
1033
+ #
1034
+ # # The returned object is of type Google::Iam::V1::Policy.
1035
+ # p result
1036
+ #
889
1037
  def get_iam_policy request, options = nil
890
1038
  raise ::ArgumentError, "request must be provided" if request.nil?
891
1039
 
@@ -970,6 +1118,22 @@ module Google
970
1118
  # @return [::Google::Iam::V1::Policy]
971
1119
  #
972
1120
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1121
+ #
1122
+ # @example Basic example
1123
+ # require "google/cloud/tasks/v2beta2"
1124
+ #
1125
+ # # Create a client object. The client can be reused for multiple calls.
1126
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
1127
+ #
1128
+ # # Create a request. To set request fields, pass in keyword arguments.
1129
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
1130
+ #
1131
+ # # Call the set_iam_policy method.
1132
+ # result = client.set_iam_policy request
1133
+ #
1134
+ # # The returned object is of type Google::Iam::V1::Policy.
1135
+ # p result
1136
+ #
973
1137
  def set_iam_policy request, options = nil
974
1138
  raise ::ArgumentError, "request must be provided" if request.nil?
975
1139
 
@@ -1045,6 +1209,22 @@ module Google
1045
1209
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
1046
1210
  #
1047
1211
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1212
+ #
1213
+ # @example Basic example
1214
+ # require "google/cloud/tasks/v2beta2"
1215
+ #
1216
+ # # Create a client object. The client can be reused for multiple calls.
1217
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
1218
+ #
1219
+ # # Create a request. To set request fields, pass in keyword arguments.
1220
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
1221
+ #
1222
+ # # Call the test_iam_permissions method.
1223
+ # result = client.test_iam_permissions request
1224
+ #
1225
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
1226
+ # p result
1227
+ #
1048
1228
  def test_iam_permissions request, options = nil
1049
1229
  raise ::ArgumentError, "request must be provided" if request.nil?
1050
1230
 
@@ -1149,6 +1329,26 @@ module Google
1149
1329
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Tasks::V2beta2::Task>]
1150
1330
  #
1151
1331
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1332
+ #
1333
+ # @example Basic example
1334
+ # require "google/cloud/tasks/v2beta2"
1335
+ #
1336
+ # # Create a client object. The client can be reused for multiple calls.
1337
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
1338
+ #
1339
+ # # Create a request. To set request fields, pass in keyword arguments.
1340
+ # request = Google::Cloud::Tasks::V2beta2::ListTasksRequest.new
1341
+ #
1342
+ # # Call the list_tasks method.
1343
+ # result = client.list_tasks request
1344
+ #
1345
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1346
+ # # over elements, and API calls will be issued to fetch pages as needed.
1347
+ # result.each do |item|
1348
+ # # Each element is of type ::Google::Cloud::Tasks::V2beta2::Task.
1349
+ # p item
1350
+ # end
1351
+ #
1152
1352
  def list_tasks request, options = nil
1153
1353
  raise ::ArgumentError, "request must be provided" if request.nil?
1154
1354
 
@@ -1227,6 +1427,22 @@ module Google
1227
1427
  # @return [::Google::Cloud::Tasks::V2beta2::Task]
1228
1428
  #
1229
1429
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1430
+ #
1431
+ # @example Basic example
1432
+ # require "google/cloud/tasks/v2beta2"
1433
+ #
1434
+ # # Create a client object. The client can be reused for multiple calls.
1435
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
1436
+ #
1437
+ # # Create a request. To set request fields, pass in keyword arguments.
1438
+ # request = Google::Cloud::Tasks::V2beta2::GetTaskRequest.new
1439
+ #
1440
+ # # Call the get_task method.
1441
+ # result = client.get_task request
1442
+ #
1443
+ # # The returned object is of type Google::Cloud::Tasks::V2beta2::Task.
1444
+ # p result
1445
+ #
1230
1446
  def get_task request, options = nil
1231
1447
  raise ::ArgumentError, "request must be provided" if request.nil?
1232
1448
 
@@ -1348,6 +1564,22 @@ module Google
1348
1564
  # @return [::Google::Cloud::Tasks::V2beta2::Task]
1349
1565
  #
1350
1566
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1567
+ #
1568
+ # @example Basic example
1569
+ # require "google/cloud/tasks/v2beta2"
1570
+ #
1571
+ # # Create a client object. The client can be reused for multiple calls.
1572
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
1573
+ #
1574
+ # # Create a request. To set request fields, pass in keyword arguments.
1575
+ # request = Google::Cloud::Tasks::V2beta2::CreateTaskRequest.new
1576
+ #
1577
+ # # Call the create_task method.
1578
+ # result = client.create_task request
1579
+ #
1580
+ # # The returned object is of type Google::Cloud::Tasks::V2beta2::Task.
1581
+ # p result
1582
+ #
1351
1583
  def create_task request, options = nil
1352
1584
  raise ::ArgumentError, "request must be provided" if request.nil?
1353
1585
 
@@ -1415,6 +1647,22 @@ module Google
1415
1647
  # @return [::Google::Protobuf::Empty]
1416
1648
  #
1417
1649
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1650
+ #
1651
+ # @example Basic example
1652
+ # require "google/cloud/tasks/v2beta2"
1653
+ #
1654
+ # # Create a client object. The client can be reused for multiple calls.
1655
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
1656
+ #
1657
+ # # Create a request. To set request fields, pass in keyword arguments.
1658
+ # request = Google::Cloud::Tasks::V2beta2::DeleteTaskRequest.new
1659
+ #
1660
+ # # Call the delete_task method.
1661
+ # result = client.delete_task request
1662
+ #
1663
+ # # The returned object is of type Google::Protobuf::Empty.
1664
+ # p result
1665
+ #
1418
1666
  def delete_task request, options = nil
1419
1667
  raise ::ArgumentError, "request must be provided" if request.nil?
1420
1668
 
@@ -1581,6 +1829,22 @@ module Google
1581
1829
  # @return [::Google::Cloud::Tasks::V2beta2::LeaseTasksResponse]
1582
1830
  #
1583
1831
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1832
+ #
1833
+ # @example Basic example
1834
+ # require "google/cloud/tasks/v2beta2"
1835
+ #
1836
+ # # Create a client object. The client can be reused for multiple calls.
1837
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
1838
+ #
1839
+ # # Create a request. To set request fields, pass in keyword arguments.
1840
+ # request = Google::Cloud::Tasks::V2beta2::LeaseTasksRequest.new
1841
+ #
1842
+ # # Call the lease_tasks method.
1843
+ # result = client.lease_tasks request
1844
+ #
1845
+ # # The returned object is of type Google::Cloud::Tasks::V2beta2::LeaseTasksResponse.
1846
+ # p result
1847
+ #
1584
1848
  def lease_tasks request, options = nil
1585
1849
  raise ::ArgumentError, "request must be provided" if request.nil?
1586
1850
 
@@ -1663,6 +1927,22 @@ module Google
1663
1927
  # @return [::Google::Protobuf::Empty]
1664
1928
  #
1665
1929
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1930
+ #
1931
+ # @example Basic example
1932
+ # require "google/cloud/tasks/v2beta2"
1933
+ #
1934
+ # # Create a client object. The client can be reused for multiple calls.
1935
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
1936
+ #
1937
+ # # Create a request. To set request fields, pass in keyword arguments.
1938
+ # request = Google::Cloud::Tasks::V2beta2::AcknowledgeTaskRequest.new
1939
+ #
1940
+ # # Call the acknowledge_task method.
1941
+ # result = client.acknowledge_task request
1942
+ #
1943
+ # # The returned object is of type Google::Protobuf::Empty.
1944
+ # p result
1945
+ #
1666
1946
  def acknowledge_task request, options = nil
1667
1947
  raise ::ArgumentError, "request must be provided" if request.nil?
1668
1948
 
@@ -1757,6 +2037,22 @@ module Google
1757
2037
  # @return [::Google::Cloud::Tasks::V2beta2::Task]
1758
2038
  #
1759
2039
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2040
+ #
2041
+ # @example Basic example
2042
+ # require "google/cloud/tasks/v2beta2"
2043
+ #
2044
+ # # Create a client object. The client can be reused for multiple calls.
2045
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
2046
+ #
2047
+ # # Create a request. To set request fields, pass in keyword arguments.
2048
+ # request = Google::Cloud::Tasks::V2beta2::RenewLeaseRequest.new
2049
+ #
2050
+ # # Call the renew_lease method.
2051
+ # result = client.renew_lease request
2052
+ #
2053
+ # # The returned object is of type Google::Cloud::Tasks::V2beta2::Task.
2054
+ # p result
2055
+ #
1760
2056
  def renew_lease request, options = nil
1761
2057
  raise ::ArgumentError, "request must be provided" if request.nil?
1762
2058
 
@@ -1845,6 +2141,22 @@ module Google
1845
2141
  # @return [::Google::Cloud::Tasks::V2beta2::Task]
1846
2142
  #
1847
2143
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2144
+ #
2145
+ # @example Basic example
2146
+ # require "google/cloud/tasks/v2beta2"
2147
+ #
2148
+ # # Create a client object. The client can be reused for multiple calls.
2149
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
2150
+ #
2151
+ # # Create a request. To set request fields, pass in keyword arguments.
2152
+ # request = Google::Cloud::Tasks::V2beta2::CancelLeaseRequest.new
2153
+ #
2154
+ # # Call the cancel_lease method.
2155
+ # result = client.cancel_lease request
2156
+ #
2157
+ # # The returned object is of type Google::Cloud::Tasks::V2beta2::Task.
2158
+ # p result
2159
+ #
1848
2160
  def cancel_lease request, options = nil
1849
2161
  raise ::ArgumentError, "request must be provided" if request.nil?
1850
2162
 
@@ -1951,6 +2263,22 @@ module Google
1951
2263
  # @return [::Google::Cloud::Tasks::V2beta2::Task]
1952
2264
  #
1953
2265
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2266
+ #
2267
+ # @example Basic example
2268
+ # require "google/cloud/tasks/v2beta2"
2269
+ #
2270
+ # # Create a client object. The client can be reused for multiple calls.
2271
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
2272
+ #
2273
+ # # Create a request. To set request fields, pass in keyword arguments.
2274
+ # request = Google::Cloud::Tasks::V2beta2::RunTaskRequest.new
2275
+ #
2276
+ # # Call the run_task method.
2277
+ # result = client.run_task request
2278
+ #
2279
+ # # The returned object is of type Google::Cloud::Tasks::V2beta2::Task.
2280
+ # p result
2281
+ #
1954
2282
  def run_task request, options = nil
1955
2283
  raise ::ArgumentError, "request must be provided" if request.nil?
1956
2284
 
@@ -2034,6 +2362,22 @@ module Google
2034
2362
  # @return [::Google::Cloud::Tasks::V2beta2::BufferTaskResponse]
2035
2363
  #
2036
2364
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2365
+ #
2366
+ # @example Basic example
2367
+ # require "google/cloud/tasks/v2beta2"
2368
+ #
2369
+ # # Create a client object. The client can be reused for multiple calls.
2370
+ # client = Google::Cloud::Tasks::V2beta2::CloudTasks::Rest::Client.new
2371
+ #
2372
+ # # Create a request. To set request fields, pass in keyword arguments.
2373
+ # request = Google::Cloud::Tasks::V2beta2::BufferTaskRequest.new
2374
+ #
2375
+ # # Call the buffer_task method.
2376
+ # result = client.buffer_task request
2377
+ #
2378
+ # # The returned object is of type Google::Cloud::Tasks::V2beta2::BufferTaskResponse.
2379
+ # p result
2380
+ #
2037
2381
  def buffer_task request, options = nil
2038
2382
  raise ::ArgumentError, "request must be provided" if request.nil?
2039
2383
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Tasks
23
23
  module V2beta2
24
- VERSION = "0.9.2"
24
+ VERSION = "0.10.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-v2beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.10.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
@@ -262,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
262
262
  - !ruby/object:Gem::Version
263
263
  version: '0'
264
264
  requirements: []
265
- rubygems_version: 3.4.2
265
+ rubygems_version: 3.4.19
266
266
  signing_key:
267
267
  specification_version: 4
268
268
  summary: Manages the execution of large numbers of distributed requests.