google-cloud-tasks-v2beta3 0.6.2 → 0.6.6

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: 92d80f9d1540b80ce21869063663afa8ae01f387b07042b9d209eb83ca37f565
4
- data.tar.gz: 47c0614cd831f605f5e58f431c5d00c08a44bc02846645b7bcd22b132446c5c1
3
+ metadata.gz: dbdfb6f4c700799f41a6777d2e88f7701d967992fee503e1feb3be29fe282cf1
4
+ data.tar.gz: 3aa7c309aa3bf6837dc1380afdc6a0d568429107514c3390a50eba70495e4ac8
5
5
  SHA512:
6
- metadata.gz: 358046b4252ea6870255d9389b79aa1852a0edc6b0b5aba775acfabfc8fd83a32bb483262b62f807830f109a4d0cee631ac170e2c9f1af0084b391ec9b47631e
7
- data.tar.gz: 9a5f72fba63096e3380733f917a125baaaeb056139f961bfeaf27c0f325e206aed957cc2623ca56d7a601e80ad3235313994418f9dbea36aebfc96af97aef6ab
6
+ metadata.gz: eed5ad6c1bfb2809e1f27d40471c64999e3c260058ee96f93e33bfd0a928dd8f7e13989dd05d71f49a7fccd720642c5c532ed496814797819c9db8f8454a5baa
7
+ data.tar.gz: fb0ee0cf7d30b570446af8ea859a2d7322355c70a34581835c3351371b7f7cb280392c0f285e272dd6ccb166539480363846b2c760bff36dfb0d173a9b4897bb
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Cloud Tasks V2beta3 API
2
+ --title="Cloud Tasks V2beta3 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
@@ -42,13 +42,12 @@ module Google
42
42
  # See {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client::Configuration}
43
43
  # for a description of the configuration fields.
44
44
  #
45
- # ## Example
45
+ # @example
46
46
  #
47
- # To modify the configuration for all CloudTasks clients:
48
- #
49
- # ::Google::Cloud::Tasks::V2beta3::CloudTasks::Client.configure do |config|
50
- # config.timeout = 10.0
51
- # end
47
+ # # Modify the configuration for all CloudTasks clients
48
+ # ::Google::Cloud::Tasks::V2beta3::CloudTasks::Client.configure do |config|
49
+ # config.timeout = 10.0
50
+ # end
52
51
  #
53
52
  # @yield [config] Configure the Client client.
54
53
  # @yieldparam config [Client::Configuration]
@@ -151,19 +150,15 @@ module Google
151
150
  ##
152
151
  # Create a new CloudTasks client object.
153
152
  #
154
- # ## Examples
155
- #
156
- # To create a new CloudTasks client with the default
157
- # configuration:
158
- #
159
- # client = ::Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
153
+ # @example
160
154
  #
161
- # To create a new CloudTasks client with a custom
162
- # configuration:
155
+ # # Create a client using the default configuration
156
+ # client = ::Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
163
157
  #
164
- # client = ::Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new do |config|
165
- # config.timeout = 10.0
166
- # end
158
+ # # Create a client using a custom configuration
159
+ # client = ::Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new do |config|
160
+ # config.timeout = 10.0
161
+ # end
167
162
  #
168
163
  # @yield [config] Configure the CloudTasks client.
169
164
  # @yieldparam config [Client::Configuration]
@@ -183,10 +178,9 @@ module Google
183
178
 
184
179
  # Create credentials
185
180
  credentials = @config.credentials
186
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
181
+ # Use self-signed JWT if the endpoint is unchanged from default,
187
182
  # but only if the default endpoint does not have a region prefix.
188
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
189
- @config.endpoint == Client.configure.endpoint &&
183
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
190
184
  !@config.endpoint.split(".").first.include?("-")
191
185
  credentials ||= Credentials.default scope: @config.scope,
192
186
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -273,6 +267,27 @@ module Google
273
267
  #
274
268
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
275
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
+ #
276
291
  def list_queues request, options = nil
277
292
  raise ::ArgumentError, "request must be provided" if request.nil?
278
293
 
@@ -290,16 +305,20 @@ module Google
290
305
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
291
306
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
292
307
 
293
- header_params = {
294
- "parent" => request.parent
295
- }
308
+ header_params = {}
309
+ if request.parent
310
+ header_params["parent"] = request.parent
311
+ end
312
+
296
313
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
297
314
  metadata[:"x-goog-request-params"] ||= request_params_header
298
315
 
299
316
  options.apply_defaults timeout: @config.rpcs.list_queues.timeout,
300
317
  metadata: metadata,
301
318
  retry_policy: @config.rpcs.list_queues.retry_policy
302
- options.apply_defaults metadata: @config.metadata,
319
+
320
+ options.apply_defaults timeout: @config.timeout,
321
+ metadata: @config.metadata,
303
322
  retry_policy: @config.retry_policy
304
323
 
305
324
  @cloud_tasks_stub.call_rpc :list_queues, request, options: options do |response, operation|
@@ -346,6 +365,21 @@ module Google
346
365
  #
347
366
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
348
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
+ #
349
383
  def get_queue request, options = nil
350
384
  raise ::ArgumentError, "request must be provided" if request.nil?
351
385
 
@@ -363,16 +397,20 @@ module Google
363
397
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
364
398
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
365
399
 
366
- header_params = {
367
- "name" => request.name
368
- }
400
+ header_params = {}
401
+ if request.name
402
+ header_params["name"] = request.name
403
+ end
404
+
369
405
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
370
406
  metadata[:"x-goog-request-params"] ||= request_params_header
371
407
 
372
408
  options.apply_defaults timeout: @config.rpcs.get_queue.timeout,
373
409
  metadata: metadata,
374
410
  retry_policy: @config.rpcs.get_queue.retry_policy
375
- options.apply_defaults metadata: @config.metadata,
411
+
412
+ options.apply_defaults timeout: @config.timeout,
413
+ metadata: @config.metadata,
376
414
  retry_policy: @config.retry_policy
377
415
 
378
416
  @cloud_tasks_stub.call_rpc :get_queue, request, options: options do |response, operation|
@@ -432,6 +470,21 @@ module Google
432
470
  #
433
471
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
434
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
+ #
435
488
  def create_queue request, options = nil
436
489
  raise ::ArgumentError, "request must be provided" if request.nil?
437
490
 
@@ -449,16 +502,20 @@ module Google
449
502
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
450
503
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
451
504
 
452
- header_params = {
453
- "parent" => request.parent
454
- }
505
+ header_params = {}
506
+ if request.parent
507
+ header_params["parent"] = request.parent
508
+ end
509
+
455
510
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
456
511
  metadata[:"x-goog-request-params"] ||= request_params_header
457
512
 
458
513
  options.apply_defaults timeout: @config.rpcs.create_queue.timeout,
459
514
  metadata: metadata,
460
515
  retry_policy: @config.rpcs.create_queue.retry_policy
461
- options.apply_defaults metadata: @config.metadata,
516
+
517
+ options.apply_defaults timeout: @config.timeout,
518
+ metadata: @config.metadata,
462
519
  retry_policy: @config.retry_policy
463
520
 
464
521
  @cloud_tasks_stub.call_rpc :create_queue, request, options: options do |response, operation|
@@ -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,16 +611,20 @@ 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
 
548
622
  options.apply_defaults timeout: @config.rpcs.update_queue.timeout,
549
623
  metadata: metadata,
550
624
  retry_policy: @config.rpcs.update_queue.retry_policy
551
- options.apply_defaults metadata: @config.metadata,
625
+
626
+ options.apply_defaults timeout: @config.timeout,
627
+ metadata: @config.metadata,
552
628
  retry_policy: @config.retry_policy
553
629
 
554
630
  @cloud_tasks_stub.call_rpc :update_queue, request, options: options do |response, operation|
@@ -601,6 +677,21 @@ module Google
601
677
  #
602
678
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
603
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
+ #
604
695
  def delete_queue request, options = nil
605
696
  raise ::ArgumentError, "request must be provided" if request.nil?
606
697
 
@@ -618,16 +709,20 @@ module Google
618
709
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
619
710
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
620
711
 
621
- header_params = {
622
- "name" => request.name
623
- }
712
+ header_params = {}
713
+ if request.name
714
+ header_params["name"] = request.name
715
+ end
716
+
624
717
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
625
718
  metadata[:"x-goog-request-params"] ||= request_params_header
626
719
 
627
720
  options.apply_defaults timeout: @config.rpcs.delete_queue.timeout,
628
721
  metadata: metadata,
629
722
  retry_policy: @config.rpcs.delete_queue.retry_policy
630
- options.apply_defaults metadata: @config.metadata,
723
+
724
+ options.apply_defaults timeout: @config.timeout,
725
+ metadata: @config.metadata,
631
726
  retry_policy: @config.retry_policy
632
727
 
633
728
  @cloud_tasks_stub.call_rpc :delete_queue, request, options: options do |response, operation|
@@ -673,6 +768,21 @@ module Google
673
768
  #
674
769
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
675
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
+ #
676
786
  def purge_queue request, options = nil
677
787
  raise ::ArgumentError, "request must be provided" if request.nil?
678
788
 
@@ -690,16 +800,20 @@ module Google
690
800
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
691
801
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
692
802
 
693
- header_params = {
694
- "name" => request.name
695
- }
803
+ header_params = {}
804
+ if request.name
805
+ header_params["name"] = request.name
806
+ end
807
+
696
808
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
697
809
  metadata[:"x-goog-request-params"] ||= request_params_header
698
810
 
699
811
  options.apply_defaults timeout: @config.rpcs.purge_queue.timeout,
700
812
  metadata: metadata,
701
813
  retry_policy: @config.rpcs.purge_queue.retry_policy
702
- options.apply_defaults metadata: @config.metadata,
814
+
815
+ options.apply_defaults timeout: @config.timeout,
816
+ metadata: @config.metadata,
703
817
  retry_policy: @config.retry_policy
704
818
 
705
819
  @cloud_tasks_stub.call_rpc :purge_queue, request, options: options do |response, operation|
@@ -746,6 +860,21 @@ module Google
746
860
  #
747
861
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
748
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
+ #
749
878
  def pause_queue request, options = nil
750
879
  raise ::ArgumentError, "request must be provided" if request.nil?
751
880
 
@@ -763,16 +892,20 @@ module Google
763
892
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
764
893
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
765
894
 
766
- header_params = {
767
- "name" => request.name
768
- }
895
+ header_params = {}
896
+ if request.name
897
+ header_params["name"] = request.name
898
+ end
899
+
769
900
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
770
901
  metadata[:"x-goog-request-params"] ||= request_params_header
771
902
 
772
903
  options.apply_defaults timeout: @config.rpcs.pause_queue.timeout,
773
904
  metadata: metadata,
774
905
  retry_policy: @config.rpcs.pause_queue.retry_policy
775
- options.apply_defaults metadata: @config.metadata,
906
+
907
+ options.apply_defaults timeout: @config.timeout,
908
+ metadata: @config.metadata,
776
909
  retry_policy: @config.retry_policy
777
910
 
778
911
  @cloud_tasks_stub.call_rpc :pause_queue, request, options: options do |response, operation|
@@ -825,6 +958,21 @@ module Google
825
958
  #
826
959
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
827
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
+ #
828
976
  def resume_queue request, options = nil
829
977
  raise ::ArgumentError, "request must be provided" if request.nil?
830
978
 
@@ -842,16 +990,20 @@ module Google
842
990
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
843
991
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
844
992
 
845
- header_params = {
846
- "name" => request.name
847
- }
993
+ header_params = {}
994
+ if request.name
995
+ header_params["name"] = request.name
996
+ end
997
+
848
998
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
849
999
  metadata[:"x-goog-request-params"] ||= request_params_header
850
1000
 
851
1001
  options.apply_defaults timeout: @config.rpcs.resume_queue.timeout,
852
1002
  metadata: metadata,
853
1003
  retry_policy: @config.rpcs.resume_queue.retry_policy
854
- options.apply_defaults metadata: @config.metadata,
1004
+
1005
+ options.apply_defaults timeout: @config.timeout,
1006
+ metadata: @config.metadata,
855
1007
  retry_policy: @config.retry_policy
856
1008
 
857
1009
  @cloud_tasks_stub.call_rpc :resume_queue, request, options: options do |response, operation|
@@ -903,6 +1055,21 @@ module Google
903
1055
  #
904
1056
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
905
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
+ #
906
1073
  def get_iam_policy request, options = nil
907
1074
  raise ::ArgumentError, "request must be provided" if request.nil?
908
1075
 
@@ -920,16 +1087,20 @@ module Google
920
1087
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
921
1088
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
922
1089
 
923
- header_params = {
924
- "resource" => request.resource
925
- }
1090
+ header_params = {}
1091
+ if request.resource
1092
+ header_params["resource"] = request.resource
1093
+ end
1094
+
926
1095
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
927
1096
  metadata[:"x-goog-request-params"] ||= request_params_header
928
1097
 
929
1098
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
930
1099
  metadata: metadata,
931
1100
  retry_policy: @config.rpcs.get_iam_policy.retry_policy
932
- options.apply_defaults metadata: @config.metadata,
1101
+
1102
+ options.apply_defaults timeout: @config.timeout,
1103
+ metadata: @config.metadata,
933
1104
  retry_policy: @config.retry_policy
934
1105
 
935
1106
  @cloud_tasks_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
@@ -985,6 +1156,21 @@ module Google
985
1156
  #
986
1157
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
987
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
+ #
988
1174
  def set_iam_policy request, options = nil
989
1175
  raise ::ArgumentError, "request must be provided" if request.nil?
990
1176
 
@@ -1002,16 +1188,20 @@ module Google
1002
1188
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1003
1189
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1004
1190
 
1005
- header_params = {
1006
- "resource" => request.resource
1007
- }
1191
+ header_params = {}
1192
+ if request.resource
1193
+ header_params["resource"] = request.resource
1194
+ end
1195
+
1008
1196
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1009
1197
  metadata[:"x-goog-request-params"] ||= request_params_header
1010
1198
 
1011
1199
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
1012
1200
  metadata: metadata,
1013
1201
  retry_policy: @config.rpcs.set_iam_policy.retry_policy
1014
- options.apply_defaults metadata: @config.metadata,
1202
+
1203
+ options.apply_defaults timeout: @config.timeout,
1204
+ metadata: @config.metadata,
1015
1205
  retry_policy: @config.retry_policy
1016
1206
 
1017
1207
  @cloud_tasks_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
@@ -1063,6 +1253,21 @@ module Google
1063
1253
  #
1064
1254
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1065
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
+ #
1066
1271
  def test_iam_permissions request, options = nil
1067
1272
  raise ::ArgumentError, "request must be provided" if request.nil?
1068
1273
 
@@ -1080,16 +1285,20 @@ module Google
1080
1285
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1081
1286
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1082
1287
 
1083
- header_params = {
1084
- "resource" => request.resource
1085
- }
1288
+ header_params = {}
1289
+ if request.resource
1290
+ header_params["resource"] = request.resource
1291
+ end
1292
+
1086
1293
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1087
1294
  metadata[:"x-goog-request-params"] ||= request_params_header
1088
1295
 
1089
1296
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
1090
1297
  metadata: metadata,
1091
1298
  retry_policy: @config.rpcs.test_iam_permissions.retry_policy
1092
- options.apply_defaults metadata: @config.metadata,
1299
+
1300
+ options.apply_defaults timeout: @config.timeout,
1301
+ metadata: @config.metadata,
1093
1302
  retry_policy: @config.retry_policy
1094
1303
 
1095
1304
  @cloud_tasks_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
@@ -1170,6 +1379,27 @@ module Google
1170
1379
  #
1171
1380
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1172
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
+ #
1173
1403
  def list_tasks request, options = nil
1174
1404
  raise ::ArgumentError, "request must be provided" if request.nil?
1175
1405
 
@@ -1187,16 +1417,20 @@ module Google
1187
1417
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1188
1418
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1189
1419
 
1190
- header_params = {
1191
- "parent" => request.parent
1192
- }
1420
+ header_params = {}
1421
+ if request.parent
1422
+ header_params["parent"] = request.parent
1423
+ end
1424
+
1193
1425
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1194
1426
  metadata[:"x-goog-request-params"] ||= request_params_header
1195
1427
 
1196
1428
  options.apply_defaults timeout: @config.rpcs.list_tasks.timeout,
1197
1429
  metadata: metadata,
1198
1430
  retry_policy: @config.rpcs.list_tasks.retry_policy
1199
- options.apply_defaults metadata: @config.metadata,
1431
+
1432
+ options.apply_defaults timeout: @config.timeout,
1433
+ metadata: @config.metadata,
1200
1434
  retry_policy: @config.retry_policy
1201
1435
 
1202
1436
  @cloud_tasks_stub.call_rpc :list_tasks, request, options: options do |response, operation|
@@ -1251,6 +1485,21 @@ module Google
1251
1485
  #
1252
1486
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1253
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
+ #
1254
1503
  def get_task request, options = nil
1255
1504
  raise ::ArgumentError, "request must be provided" if request.nil?
1256
1505
 
@@ -1268,16 +1517,20 @@ module Google
1268
1517
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1269
1518
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1270
1519
 
1271
- header_params = {
1272
- "name" => request.name
1273
- }
1520
+ header_params = {}
1521
+ if request.name
1522
+ header_params["name"] = request.name
1523
+ end
1524
+
1274
1525
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1275
1526
  metadata[:"x-goog-request-params"] ||= request_params_header
1276
1527
 
1277
1528
  options.apply_defaults timeout: @config.rpcs.get_task.timeout,
1278
1529
  metadata: metadata,
1279
1530
  retry_policy: @config.rpcs.get_task.retry_policy
1280
- options.apply_defaults metadata: @config.metadata,
1531
+
1532
+ options.apply_defaults timeout: @config.timeout,
1533
+ metadata: @config.metadata,
1281
1534
  retry_policy: @config.retry_policy
1282
1535
 
1283
1536
  @cloud_tasks_stub.call_rpc :get_task, request, options: options do |response, operation|
@@ -1371,6 +1624,21 @@ module Google
1371
1624
  #
1372
1625
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1373
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
+ #
1374
1642
  def create_task request, options = nil
1375
1643
  raise ::ArgumentError, "request must be provided" if request.nil?
1376
1644
 
@@ -1388,16 +1656,20 @@ module Google
1388
1656
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1389
1657
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1390
1658
 
1391
- header_params = {
1392
- "parent" => request.parent
1393
- }
1659
+ header_params = {}
1660
+ if request.parent
1661
+ header_params["parent"] = request.parent
1662
+ end
1663
+
1394
1664
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1395
1665
  metadata[:"x-goog-request-params"] ||= request_params_header
1396
1666
 
1397
1667
  options.apply_defaults timeout: @config.rpcs.create_task.timeout,
1398
1668
  metadata: metadata,
1399
1669
  retry_policy: @config.rpcs.create_task.retry_policy
1400
- options.apply_defaults metadata: @config.metadata,
1670
+
1671
+ options.apply_defaults timeout: @config.timeout,
1672
+ metadata: @config.metadata,
1401
1673
  retry_policy: @config.retry_policy
1402
1674
 
1403
1675
  @cloud_tasks_stub.call_rpc :create_task, request, options: options do |response, operation|
@@ -1442,6 +1714,21 @@ module Google
1442
1714
  #
1443
1715
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1444
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
+ #
1445
1732
  def delete_task request, options = nil
1446
1733
  raise ::ArgumentError, "request must be provided" if request.nil?
1447
1734
 
@@ -1459,16 +1746,20 @@ module Google
1459
1746
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1460
1747
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1461
1748
 
1462
- header_params = {
1463
- "name" => request.name
1464
- }
1749
+ header_params = {}
1750
+ if request.name
1751
+ header_params["name"] = request.name
1752
+ end
1753
+
1465
1754
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1466
1755
  metadata[:"x-goog-request-params"] ||= request_params_header
1467
1756
 
1468
1757
  options.apply_defaults timeout: @config.rpcs.delete_task.timeout,
1469
1758
  metadata: metadata,
1470
1759
  retry_policy: @config.rpcs.delete_task.retry_policy
1471
- options.apply_defaults metadata: @config.metadata,
1760
+
1761
+ options.apply_defaults timeout: @config.timeout,
1762
+ metadata: @config.metadata,
1472
1763
  retry_policy: @config.retry_policy
1473
1764
 
1474
1765
  @cloud_tasks_stub.call_rpc :delete_task, request, options: options do |response, operation|
@@ -1545,6 +1836,21 @@ module Google
1545
1836
  #
1546
1837
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1547
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
+ #
1548
1854
  def run_task request, options = nil
1549
1855
  raise ::ArgumentError, "request must be provided" if request.nil?
1550
1856
 
@@ -1562,16 +1868,20 @@ module Google
1562
1868
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1563
1869
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1564
1870
 
1565
- header_params = {
1566
- "name" => request.name
1567
- }
1871
+ header_params = {}
1872
+ if request.name
1873
+ header_params["name"] = request.name
1874
+ end
1875
+
1568
1876
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1569
1877
  metadata[:"x-goog-request-params"] ||= request_params_header
1570
1878
 
1571
1879
  options.apply_defaults timeout: @config.rpcs.run_task.timeout,
1572
1880
  metadata: metadata,
1573
1881
  retry_policy: @config.rpcs.run_task.retry_policy
1574
- options.apply_defaults metadata: @config.metadata,
1882
+
1883
+ options.apply_defaults timeout: @config.timeout,
1884
+ metadata: @config.metadata,
1575
1885
  retry_policy: @config.retry_policy
1576
1886
 
1577
1887
  @cloud_tasks_stub.call_rpc :run_task, request, options: options do |response, operation|
@@ -1595,22 +1905,21 @@ module Google
1595
1905
  # Configuration can be applied globally to all clients, or to a single client
1596
1906
  # on construction.
1597
1907
  #
1598
- # # Examples
1599
- #
1600
- # To modify the global config, setting the timeout for list_queues
1601
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1602
- #
1603
- # ::Google::Cloud::Tasks::V2beta3::CloudTasks::Client.configure do |config|
1604
- # config.timeout = 10.0
1605
- # config.rpcs.list_queues.timeout = 20.0
1606
- # end
1607
- #
1608
- # To apply the above configuration only to a new client:
1609
- #
1610
- # client = ::Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new do |config|
1611
- # config.timeout = 10.0
1612
- # config.rpcs.list_queues.timeout = 20.0
1613
- # end
1908
+ # @example
1909
+ #
1910
+ # # Modify the global config, setting the timeout for
1911
+ # # list_queues to 20 seconds,
1912
+ # # and all remaining timeouts to 10 seconds.
1913
+ # ::Google::Cloud::Tasks::V2beta3::CloudTasks::Client.configure do |config|
1914
+ # config.timeout = 10.0
1915
+ # config.rpcs.list_queues.timeout = 20.0
1916
+ # end
1917
+ #
1918
+ # # Apply the above configuration only to a new client.
1919
+ # client = ::Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new do |config|
1920
+ # config.timeout = 10.0
1921
+ # config.rpcs.list_queues.timeout = 20.0
1922
+ # end
1614
1923
  #
1615
1924
  # @!attribute [rw] endpoint
1616
1925
  # The hostname or hostname:port of the service endpoint.
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/tasks/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.2"
24
+ VERSION = "0.6.6"
25
25
  end
26
26
  end
27
27
  end
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -107,8 +107,8 @@ module Google
107
107
  # {::Google::Cloud::Tasks::V2beta3::HttpRequest#url HttpRequest.url}.
108
108
  # * Content-Length: This will be computed by Cloud Tasks.
109
109
  # * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
110
- # * X-Google-*: Google use only.
111
- # * X-AppEngine-*: Google use only.
110
+ # * `X-Google-*`: Google use only.
111
+ # * `X-AppEngine-*`: Google use only.
112
112
  #
113
113
  # `Content-Type` won't be set by Cloud Tasks. You can explicitly set
114
114
  # `Content-Type` to a media type when the
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-tasks-v2beta3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  - !ruby/object:Gem::Version
240
240
  version: '0'
241
241
  requirements: []
242
- rubygems_version: 3.2.17
242
+ rubygems_version: 3.3.4
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: API Client library for the Cloud Tasks V2beta3 API