google-cloud-tasks-v2beta3 0.6.3 → 0.6.4

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: bc39261481083b518219621fb304281cc893c6450eec7cb4308a0934c4199aad
4
- data.tar.gz: e72f3f5d8d02845ea42e2e2f66c67e8607c3039cf3acf76dae6aeed40198c058
3
+ metadata.gz: 3adb3d2eb87e9c58410d60c0a1af58d7d34c0a23b88698913e757638267314e2
4
+ data.tar.gz: 974922832fa65712c11fc9ddd1af22f8ada0dd1d51fb435fff79f231792ea2e6
5
5
  SHA512:
6
- metadata.gz: 238ce957ad0d20dd431b6fdc5590c7d8c3ae57be9b21216ee414d11a2d57fbdc7115bf1a6cd8ffedd8922d3b607adaa59f92bf9e950ac3c1f7213a61dbcfbc85
7
- data.tar.gz: 7abb9f0ffd7b83cf6a26919abe291346d406f5634f8af2a0731861657d08d5e9a7bf915764a27626e428273662b3dd6ba80cb45805aac2160158e0bbfdd63f1b
6
+ metadata.gz: c434b6e44c00789c666ab8a415537350ae6cb9c65a9c4829c8b1d60c400dfb5e6fce4a96ce5f94b4a57284db4a055b3941983fe4dbb864fecbae13874d857257
7
+ data.tar.gz: 25037b2baf51e13b76d3332cd90bfe636b065fb9dc1bc00a13fa0c114183f6fff57f3e5e13ff93ca5385b81f239956d1c604d7c7fd75495d4bdcf227a8bebf00
@@ -267,6 +267,27 @@ module Google
267
267
  #
268
268
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
269
269
  #
270
+ # @example Basic example
271
+ # require "google/cloud/tasks/v2beta3"
272
+ #
273
+ # # Create a client object. The client can be reused for multiple calls.
274
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
275
+ #
276
+ # # Create a request. To set request fields, pass in keyword arguments.
277
+ # request = Google::Cloud::Tasks::V2beta3::ListQueuesRequest.new
278
+ #
279
+ # # Call the list_queues method.
280
+ # result = client.list_queues request
281
+ #
282
+ # # The returned object is of type Gapic::PagedEnumerable. You can
283
+ # # iterate over all elements by calling #each, and the enumerable
284
+ # # will lazily make API calls to fetch subsequent pages. Other
285
+ # # methods are also available for managing paging directly.
286
+ # result.each do |response|
287
+ # # Each element is of type ::Google::Cloud::Tasks::V2beta3::Queue.
288
+ # p response
289
+ # end
290
+ #
270
291
  def list_queues request, options = nil
271
292
  raise ::ArgumentError, "request must be provided" if request.nil?
272
293
 
@@ -284,9 +305,11 @@ module Google
284
305
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
285
306
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
286
307
 
287
- header_params = {
288
- "parent" => request.parent
289
- }
308
+ header_params = {}
309
+ if request.parent
310
+ header_params["parent"] = request.parent
311
+ end
312
+
290
313
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
291
314
  metadata[:"x-goog-request-params"] ||= request_params_header
292
315
 
@@ -342,6 +365,21 @@ module Google
342
365
  #
343
366
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
344
367
  #
368
+ # @example Basic example
369
+ # require "google/cloud/tasks/v2beta3"
370
+ #
371
+ # # Create a client object. The client can be reused for multiple calls.
372
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
373
+ #
374
+ # # Create a request. To set request fields, pass in keyword arguments.
375
+ # request = Google::Cloud::Tasks::V2beta3::GetQueueRequest.new
376
+ #
377
+ # # Call the get_queue method.
378
+ # result = client.get_queue request
379
+ #
380
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::Queue.
381
+ # p result
382
+ #
345
383
  def get_queue request, options = nil
346
384
  raise ::ArgumentError, "request must be provided" if request.nil?
347
385
 
@@ -359,9 +397,11 @@ module Google
359
397
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
360
398
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
399
 
362
- header_params = {
363
- "name" => request.name
364
- }
400
+ header_params = {}
401
+ if request.name
402
+ header_params["name"] = request.name
403
+ end
404
+
365
405
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
366
406
  metadata[:"x-goog-request-params"] ||= request_params_header
367
407
 
@@ -430,6 +470,21 @@ module Google
430
470
  #
431
471
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
432
472
  #
473
+ # @example Basic example
474
+ # require "google/cloud/tasks/v2beta3"
475
+ #
476
+ # # Create a client object. The client can be reused for multiple calls.
477
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
478
+ #
479
+ # # Create a request. To set request fields, pass in keyword arguments.
480
+ # request = Google::Cloud::Tasks::V2beta3::CreateQueueRequest.new
481
+ #
482
+ # # Call the create_queue method.
483
+ # result = client.create_queue request
484
+ #
485
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::Queue.
486
+ # p result
487
+ #
433
488
  def create_queue request, options = nil
434
489
  raise ::ArgumentError, "request must be provided" if request.nil?
435
490
 
@@ -447,9 +502,11 @@ module Google
447
502
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
448
503
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
449
504
 
450
- header_params = {
451
- "parent" => request.parent
452
- }
505
+ header_params = {}
506
+ if request.parent
507
+ header_params["parent"] = request.parent
508
+ end
509
+
453
510
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
454
511
  metadata[:"x-goog-request-params"] ||= request_params_header
455
512
 
@@ -522,6 +579,21 @@ module Google
522
579
  #
523
580
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
524
581
  #
582
+ # @example Basic example
583
+ # require "google/cloud/tasks/v2beta3"
584
+ #
585
+ # # Create a client object. The client can be reused for multiple calls.
586
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
587
+ #
588
+ # # Create a request. To set request fields, pass in keyword arguments.
589
+ # request = Google::Cloud::Tasks::V2beta3::UpdateQueueRequest.new
590
+ #
591
+ # # Call the update_queue method.
592
+ # result = client.update_queue request
593
+ #
594
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::Queue.
595
+ # p result
596
+ #
525
597
  def update_queue request, options = nil
526
598
  raise ::ArgumentError, "request must be provided" if request.nil?
527
599
 
@@ -539,9 +611,11 @@ module Google
539
611
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
540
612
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
541
613
 
542
- header_params = {
543
- "queue.name" => request.queue.name
544
- }
614
+ header_params = {}
615
+ if request.queue&.name
616
+ header_params["queue.name"] = request.queue.name
617
+ end
618
+
545
619
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
546
620
  metadata[:"x-goog-request-params"] ||= request_params_header
547
621
 
@@ -603,6 +677,21 @@ module Google
603
677
  #
604
678
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
605
679
  #
680
+ # @example Basic example
681
+ # require "google/cloud/tasks/v2beta3"
682
+ #
683
+ # # Create a client object. The client can be reused for multiple calls.
684
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
685
+ #
686
+ # # Create a request. To set request fields, pass in keyword arguments.
687
+ # request = Google::Cloud::Tasks::V2beta3::DeleteQueueRequest.new
688
+ #
689
+ # # Call the delete_queue method.
690
+ # result = client.delete_queue request
691
+ #
692
+ # # The returned object is of type Google::Protobuf::Empty.
693
+ # p result
694
+ #
606
695
  def delete_queue request, options = nil
607
696
  raise ::ArgumentError, "request must be provided" if request.nil?
608
697
 
@@ -620,9 +709,11 @@ module Google
620
709
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
621
710
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
622
711
 
623
- header_params = {
624
- "name" => request.name
625
- }
712
+ header_params = {}
713
+ if request.name
714
+ header_params["name"] = request.name
715
+ end
716
+
626
717
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
627
718
  metadata[:"x-goog-request-params"] ||= request_params_header
628
719
 
@@ -677,6 +768,21 @@ module Google
677
768
  #
678
769
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
679
770
  #
771
+ # @example Basic example
772
+ # require "google/cloud/tasks/v2beta3"
773
+ #
774
+ # # Create a client object. The client can be reused for multiple calls.
775
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
776
+ #
777
+ # # Create a request. To set request fields, pass in keyword arguments.
778
+ # request = Google::Cloud::Tasks::V2beta3::PurgeQueueRequest.new
779
+ #
780
+ # # Call the purge_queue method.
781
+ # result = client.purge_queue request
782
+ #
783
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::Queue.
784
+ # p result
785
+ #
680
786
  def purge_queue request, options = nil
681
787
  raise ::ArgumentError, "request must be provided" if request.nil?
682
788
 
@@ -694,9 +800,11 @@ module Google
694
800
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
695
801
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
696
802
 
697
- header_params = {
698
- "name" => request.name
699
- }
803
+ header_params = {}
804
+ if request.name
805
+ header_params["name"] = request.name
806
+ end
807
+
700
808
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
701
809
  metadata[:"x-goog-request-params"] ||= request_params_header
702
810
 
@@ -752,6 +860,21 @@ module Google
752
860
  #
753
861
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
754
862
  #
863
+ # @example Basic example
864
+ # require "google/cloud/tasks/v2beta3"
865
+ #
866
+ # # Create a client object. The client can be reused for multiple calls.
867
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
868
+ #
869
+ # # Create a request. To set request fields, pass in keyword arguments.
870
+ # request = Google::Cloud::Tasks::V2beta3::PauseQueueRequest.new
871
+ #
872
+ # # Call the pause_queue method.
873
+ # result = client.pause_queue request
874
+ #
875
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::Queue.
876
+ # p result
877
+ #
755
878
  def pause_queue request, options = nil
756
879
  raise ::ArgumentError, "request must be provided" if request.nil?
757
880
 
@@ -769,9 +892,11 @@ module Google
769
892
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
770
893
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
771
894
 
772
- header_params = {
773
- "name" => request.name
774
- }
895
+ header_params = {}
896
+ if request.name
897
+ header_params["name"] = request.name
898
+ end
899
+
775
900
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
776
901
  metadata[:"x-goog-request-params"] ||= request_params_header
777
902
 
@@ -833,6 +958,21 @@ module Google
833
958
  #
834
959
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
835
960
  #
961
+ # @example Basic example
962
+ # require "google/cloud/tasks/v2beta3"
963
+ #
964
+ # # Create a client object. The client can be reused for multiple calls.
965
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
966
+ #
967
+ # # Create a request. To set request fields, pass in keyword arguments.
968
+ # request = Google::Cloud::Tasks::V2beta3::ResumeQueueRequest.new
969
+ #
970
+ # # Call the resume_queue method.
971
+ # result = client.resume_queue request
972
+ #
973
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::Queue.
974
+ # p result
975
+ #
836
976
  def resume_queue request, options = nil
837
977
  raise ::ArgumentError, "request must be provided" if request.nil?
838
978
 
@@ -850,9 +990,11 @@ module Google
850
990
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
851
991
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
852
992
 
853
- header_params = {
854
- "name" => request.name
855
- }
993
+ header_params = {}
994
+ if request.name
995
+ header_params["name"] = request.name
996
+ end
997
+
856
998
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
857
999
  metadata[:"x-goog-request-params"] ||= request_params_header
858
1000
 
@@ -913,6 +1055,21 @@ module Google
913
1055
  #
914
1056
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
915
1057
  #
1058
+ # @example Basic example
1059
+ # require "google/cloud/tasks/v2beta3"
1060
+ #
1061
+ # # Create a client object. The client can be reused for multiple calls.
1062
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
1063
+ #
1064
+ # # Create a request. To set request fields, pass in keyword arguments.
1065
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
1066
+ #
1067
+ # # Call the get_iam_policy method.
1068
+ # result = client.get_iam_policy request
1069
+ #
1070
+ # # The returned object is of type Google::Iam::V1::Policy.
1071
+ # p result
1072
+ #
916
1073
  def get_iam_policy request, options = nil
917
1074
  raise ::ArgumentError, "request must be provided" if request.nil?
918
1075
 
@@ -930,9 +1087,11 @@ module Google
930
1087
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
931
1088
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
932
1089
 
933
- header_params = {
934
- "resource" => request.resource
935
- }
1090
+ header_params = {}
1091
+ if request.resource
1092
+ header_params["resource"] = request.resource
1093
+ end
1094
+
936
1095
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
937
1096
  metadata[:"x-goog-request-params"] ||= request_params_header
938
1097
 
@@ -997,6 +1156,21 @@ module Google
997
1156
  #
998
1157
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
999
1158
  #
1159
+ # @example Basic example
1160
+ # require "google/cloud/tasks/v2beta3"
1161
+ #
1162
+ # # Create a client object. The client can be reused for multiple calls.
1163
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
1164
+ #
1165
+ # # Create a request. To set request fields, pass in keyword arguments.
1166
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
1167
+ #
1168
+ # # Call the set_iam_policy method.
1169
+ # result = client.set_iam_policy request
1170
+ #
1171
+ # # The returned object is of type Google::Iam::V1::Policy.
1172
+ # p result
1173
+ #
1000
1174
  def set_iam_policy request, options = nil
1001
1175
  raise ::ArgumentError, "request must be provided" if request.nil?
1002
1176
 
@@ -1014,9 +1188,11 @@ module Google
1014
1188
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1015
1189
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1016
1190
 
1017
- header_params = {
1018
- "resource" => request.resource
1019
- }
1191
+ header_params = {}
1192
+ if request.resource
1193
+ header_params["resource"] = request.resource
1194
+ end
1195
+
1020
1196
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1021
1197
  metadata[:"x-goog-request-params"] ||= request_params_header
1022
1198
 
@@ -1077,6 +1253,21 @@ module Google
1077
1253
  #
1078
1254
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1079
1255
  #
1256
+ # @example Basic example
1257
+ # require "google/cloud/tasks/v2beta3"
1258
+ #
1259
+ # # Create a client object. The client can be reused for multiple calls.
1260
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
1261
+ #
1262
+ # # Create a request. To set request fields, pass in keyword arguments.
1263
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
1264
+ #
1265
+ # # Call the test_iam_permissions method.
1266
+ # result = client.test_iam_permissions request
1267
+ #
1268
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
1269
+ # p result
1270
+ #
1080
1271
  def test_iam_permissions request, options = nil
1081
1272
  raise ::ArgumentError, "request must be provided" if request.nil?
1082
1273
 
@@ -1094,9 +1285,11 @@ module Google
1094
1285
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1095
1286
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1096
1287
 
1097
- header_params = {
1098
- "resource" => request.resource
1099
- }
1288
+ header_params = {}
1289
+ if request.resource
1290
+ header_params["resource"] = request.resource
1291
+ end
1292
+
1100
1293
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1101
1294
  metadata[:"x-goog-request-params"] ||= request_params_header
1102
1295
 
@@ -1186,6 +1379,27 @@ module Google
1186
1379
  #
1187
1380
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1188
1381
  #
1382
+ # @example Basic example
1383
+ # require "google/cloud/tasks/v2beta3"
1384
+ #
1385
+ # # Create a client object. The client can be reused for multiple calls.
1386
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
1387
+ #
1388
+ # # Create a request. To set request fields, pass in keyword arguments.
1389
+ # request = Google::Cloud::Tasks::V2beta3::ListTasksRequest.new
1390
+ #
1391
+ # # Call the list_tasks method.
1392
+ # result = client.list_tasks request
1393
+ #
1394
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1395
+ # # iterate over all elements by calling #each, and the enumerable
1396
+ # # will lazily make API calls to fetch subsequent pages. Other
1397
+ # # methods are also available for managing paging directly.
1398
+ # result.each do |response|
1399
+ # # Each element is of type ::Google::Cloud::Tasks::V2beta3::Task.
1400
+ # p response
1401
+ # end
1402
+ #
1189
1403
  def list_tasks request, options = nil
1190
1404
  raise ::ArgumentError, "request must be provided" if request.nil?
1191
1405
 
@@ -1203,9 +1417,11 @@ module Google
1203
1417
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1204
1418
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1205
1419
 
1206
- header_params = {
1207
- "parent" => request.parent
1208
- }
1420
+ header_params = {}
1421
+ if request.parent
1422
+ header_params["parent"] = request.parent
1423
+ end
1424
+
1209
1425
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1210
1426
  metadata[:"x-goog-request-params"] ||= request_params_header
1211
1427
 
@@ -1269,6 +1485,21 @@ module Google
1269
1485
  #
1270
1486
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1271
1487
  #
1488
+ # @example Basic example
1489
+ # require "google/cloud/tasks/v2beta3"
1490
+ #
1491
+ # # Create a client object. The client can be reused for multiple calls.
1492
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
1493
+ #
1494
+ # # Create a request. To set request fields, pass in keyword arguments.
1495
+ # request = Google::Cloud::Tasks::V2beta3::GetTaskRequest.new
1496
+ #
1497
+ # # Call the get_task method.
1498
+ # result = client.get_task request
1499
+ #
1500
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::Task.
1501
+ # p result
1502
+ #
1272
1503
  def get_task request, options = nil
1273
1504
  raise ::ArgumentError, "request must be provided" if request.nil?
1274
1505
 
@@ -1286,9 +1517,11 @@ module Google
1286
1517
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1287
1518
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1288
1519
 
1289
- header_params = {
1290
- "name" => request.name
1291
- }
1520
+ header_params = {}
1521
+ if request.name
1522
+ header_params["name"] = request.name
1523
+ end
1524
+
1292
1525
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1293
1526
  metadata[:"x-goog-request-params"] ||= request_params_header
1294
1527
 
@@ -1391,6 +1624,21 @@ module Google
1391
1624
  #
1392
1625
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1393
1626
  #
1627
+ # @example Basic example
1628
+ # require "google/cloud/tasks/v2beta3"
1629
+ #
1630
+ # # Create a client object. The client can be reused for multiple calls.
1631
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
1632
+ #
1633
+ # # Create a request. To set request fields, pass in keyword arguments.
1634
+ # request = Google::Cloud::Tasks::V2beta3::CreateTaskRequest.new
1635
+ #
1636
+ # # Call the create_task method.
1637
+ # result = client.create_task request
1638
+ #
1639
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::Task.
1640
+ # p result
1641
+ #
1394
1642
  def create_task request, options = nil
1395
1643
  raise ::ArgumentError, "request must be provided" if request.nil?
1396
1644
 
@@ -1408,9 +1656,11 @@ module Google
1408
1656
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1409
1657
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1410
1658
 
1411
- header_params = {
1412
- "parent" => request.parent
1413
- }
1659
+ header_params = {}
1660
+ if request.parent
1661
+ header_params["parent"] = request.parent
1662
+ end
1663
+
1414
1664
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1415
1665
  metadata[:"x-goog-request-params"] ||= request_params_header
1416
1666
 
@@ -1464,6 +1714,21 @@ module Google
1464
1714
  #
1465
1715
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1466
1716
  #
1717
+ # @example Basic example
1718
+ # require "google/cloud/tasks/v2beta3"
1719
+ #
1720
+ # # Create a client object. The client can be reused for multiple calls.
1721
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
1722
+ #
1723
+ # # Create a request. To set request fields, pass in keyword arguments.
1724
+ # request = Google::Cloud::Tasks::V2beta3::DeleteTaskRequest.new
1725
+ #
1726
+ # # Call the delete_task method.
1727
+ # result = client.delete_task request
1728
+ #
1729
+ # # The returned object is of type Google::Protobuf::Empty.
1730
+ # p result
1731
+ #
1467
1732
  def delete_task request, options = nil
1468
1733
  raise ::ArgumentError, "request must be provided" if request.nil?
1469
1734
 
@@ -1481,9 +1746,11 @@ module Google
1481
1746
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1482
1747
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1483
1748
 
1484
- header_params = {
1485
- "name" => request.name
1486
- }
1749
+ header_params = {}
1750
+ if request.name
1751
+ header_params["name"] = request.name
1752
+ end
1753
+
1487
1754
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1488
1755
  metadata[:"x-goog-request-params"] ||= request_params_header
1489
1756
 
@@ -1569,6 +1836,21 @@ module Google
1569
1836
  #
1570
1837
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1571
1838
  #
1839
+ # @example Basic example
1840
+ # require "google/cloud/tasks/v2beta3"
1841
+ #
1842
+ # # Create a client object. The client can be reused for multiple calls.
1843
+ # client = Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
1844
+ #
1845
+ # # Create a request. To set request fields, pass in keyword arguments.
1846
+ # request = Google::Cloud::Tasks::V2beta3::RunTaskRequest.new
1847
+ #
1848
+ # # Call the run_task method.
1849
+ # result = client.run_task request
1850
+ #
1851
+ # # The returned object is of type Google::Cloud::Tasks::V2beta3::Task.
1852
+ # p result
1853
+ #
1572
1854
  def run_task request, options = nil
1573
1855
  raise ::ArgumentError, "request must be provided" if request.nil?
1574
1856
 
@@ -1586,9 +1868,11 @@ module Google
1586
1868
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1587
1869
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1588
1870
 
1589
- header_params = {
1590
- "name" => request.name
1591
- }
1871
+ header_params = {}
1872
+ if request.name
1873
+ header_params["name"] = request.name
1874
+ end
1875
+
1592
1876
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1593
1877
  metadata[:"x-goog-request-params"] ||= request_params_header
1594
1878
 
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/tasks/v2beta3/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/v2beta3/cloudtasks.proto", :syntax => :proto3) do
18
18
  add_message "google.cloud.tasks.v2beta3.ListQueuesRequest" do
@@ -28,7 +28,7 @@ module Google
28
28
  # work in their applications.
29
29
  class Service
30
30
 
31
- include GRPC::GenericService
31
+ include ::GRPC::GenericService
32
32
 
33
33
  self.marshal_class_method = :encode
34
34
  self.unmarshal_class_method = :decode
@@ -1,14 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/tasks/v2beta3/queue.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/cloud/tasks/v2beta3/target_pb'
9
7
  require 'google/protobuf/duration_pb'
10
8
  require 'google/protobuf/timestamp_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/v2beta3/queue.proto", :syntax => :proto3) do
14
14
  add_message "google.cloud.tasks.v2beta3.Queue" do
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/tasks/v2beta3/target.proto
3
3
 
4
+ require 'google/api/annotations_pb'
4
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/annotations_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("google/cloud/tasks/v2beta3/target.proto", :syntax => :proto3) do
9
9
  add_message "google.cloud.tasks.v2beta3.PullMessage" do
@@ -1,14 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/tasks/v2beta3/task.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/resource_pb'
7
5
  require 'google/cloud/tasks/v2beta3/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/v2beta3/task.proto", :syntax => :proto3) do
14
14
  add_message "google.cloud.tasks.v2beta3.Task" do
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Tasks
23
23
  module V2beta3
24
- VERSION = "0.6.3"
24
+ VERSION = "0.6.4"
25
25
  end
26
26
  end
27
27
  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.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-11 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common