google-cloud-scheduler-v1 0.4.3 → 0.5.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: ab2d2b74cf9bb7d79ced744b428d82668ab2bd6b0a0229a414f489ec73cf7995
4
- data.tar.gz: 867a6cf76c9633cf07f368fa8aec04231b3e2317196dd75d0eea6067fb03d7b5
3
+ metadata.gz: 600a316861acd382f1fae073595ead8194192bbf0a4ec31552640a66141f52eb
4
+ data.tar.gz: 692f62f0f2f986eec79c659abc4663bbee64fe19683b293dc2c1f7e4ede346fd
5
5
  SHA512:
6
- metadata.gz: f924030b083b02b5ac3275cbcb2cc8df223ab4d23c9c5e84551fdc9fc4a0de666f45304192a3a94621a6f476d8bfc16eeb8460bc327eb10bcd9f7f11b48fe543
7
- data.tar.gz: b79ca880631a7142677d50e0990294bcf41f60f27ba428868dfc696bf7df4a268b8790c959959339f5bf5fb56720ed787b72a61fb36fd7dc214d12d69c7fa110
6
+ metadata.gz: '094854a382b07bbb25f426bfcd50cf20519fdddde33d092c98b04aa76393f66db3368da4a80ad4dc603988694afad9f5e08601fd021587517879fd88f5ce66f2'
7
+ data.tar.gz: 458d10dd00b9a5ea72d04d158fdb079e70d2788e078c9e85cac06894be6d89e11a98bcc83f0cd66e372a5c5c2d59907508492c131894f4a22cba23f11feafc0b
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Cloud Scheduler V1 API
2
+ --title="Cloud Scheduler V1 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.
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Scheduler::V1::ListJobsRequest.new # (request fields
37
37
  response = client.list_jobs request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-scheduler-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-scheduler-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/scheduler)
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -215,6 +215,27 @@ module Google
215
215
  #
216
216
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
217
217
  #
218
+ # @example Basic example
219
+ # require "google/cloud/scheduler/v1"
220
+ #
221
+ # # Create a client object. The client can be reused for multiple calls.
222
+ # client = Google::Cloud::Scheduler::V1::CloudScheduler::Client.new
223
+ #
224
+ # # Create a request. To set request fields, pass in keyword arguments.
225
+ # request = Google::Cloud::Scheduler::V1::ListJobsRequest.new
226
+ #
227
+ # # Call the list_jobs method.
228
+ # result = client.list_jobs request
229
+ #
230
+ # # The returned object is of type Gapic::PagedEnumerable. You can
231
+ # # iterate over all elements by calling #each, and the enumerable
232
+ # # will lazily make API calls to fetch subsequent pages. Other
233
+ # # methods are also available for managing paging directly.
234
+ # result.each do |response|
235
+ # # Each element is of type ::Google::Cloud::Scheduler::V1::Job.
236
+ # p response
237
+ # end
238
+ #
218
239
  def list_jobs request, options = nil
219
240
  raise ::ArgumentError, "request must be provided" if request.nil?
220
241
 
@@ -232,9 +253,11 @@ module Google
232
253
  gapic_version: ::Google::Cloud::Scheduler::V1::VERSION
233
254
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
255
 
235
- header_params = {
236
- "parent" => request.parent
237
- }
256
+ header_params = {}
257
+ if request.parent
258
+ header_params["parent"] = request.parent
259
+ end
260
+
238
261
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
239
262
  metadata[:"x-goog-request-params"] ||= request_params_header
240
263
 
@@ -285,6 +308,21 @@ module Google
285
308
  #
286
309
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
287
310
  #
311
+ # @example Basic example
312
+ # require "google/cloud/scheduler/v1"
313
+ #
314
+ # # Create a client object. The client can be reused for multiple calls.
315
+ # client = Google::Cloud::Scheduler::V1::CloudScheduler::Client.new
316
+ #
317
+ # # Create a request. To set request fields, pass in keyword arguments.
318
+ # request = Google::Cloud::Scheduler::V1::GetJobRequest.new
319
+ #
320
+ # # Call the get_job method.
321
+ # result = client.get_job request
322
+ #
323
+ # # The returned object is of type Google::Cloud::Scheduler::V1::Job.
324
+ # p result
325
+ #
288
326
  def get_job request, options = nil
289
327
  raise ::ArgumentError, "request must be provided" if request.nil?
290
328
 
@@ -302,9 +340,11 @@ module Google
302
340
  gapic_version: ::Google::Cloud::Scheduler::V1::VERSION
303
341
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
304
342
 
305
- header_params = {
306
- "name" => request.name
307
- }
343
+ header_params = {}
344
+ if request.name
345
+ header_params["name"] = request.name
346
+ end
347
+
308
348
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
309
349
  metadata[:"x-goog-request-params"] ||= request_params_header
310
350
 
@@ -360,6 +400,21 @@ module Google
360
400
  #
361
401
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
362
402
  #
403
+ # @example Basic example
404
+ # require "google/cloud/scheduler/v1"
405
+ #
406
+ # # Create a client object. The client can be reused for multiple calls.
407
+ # client = Google::Cloud::Scheduler::V1::CloudScheduler::Client.new
408
+ #
409
+ # # Create a request. To set request fields, pass in keyword arguments.
410
+ # request = Google::Cloud::Scheduler::V1::CreateJobRequest.new
411
+ #
412
+ # # Call the create_job method.
413
+ # result = client.create_job request
414
+ #
415
+ # # The returned object is of type Google::Cloud::Scheduler::V1::Job.
416
+ # p result
417
+ #
363
418
  def create_job request, options = nil
364
419
  raise ::ArgumentError, "request must be provided" if request.nil?
365
420
 
@@ -377,9 +432,11 @@ module Google
377
432
  gapic_version: ::Google::Cloud::Scheduler::V1::VERSION
378
433
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
379
434
 
380
- header_params = {
381
- "parent" => request.parent
382
- }
435
+ header_params = {}
436
+ if request.parent
437
+ header_params["parent"] = request.parent
438
+ end
439
+
383
440
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
384
441
  metadata[:"x-goog-request-params"] ||= request_params_header
385
442
 
@@ -441,6 +498,21 @@ module Google
441
498
  #
442
499
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
443
500
  #
501
+ # @example Basic example
502
+ # require "google/cloud/scheduler/v1"
503
+ #
504
+ # # Create a client object. The client can be reused for multiple calls.
505
+ # client = Google::Cloud::Scheduler::V1::CloudScheduler::Client.new
506
+ #
507
+ # # Create a request. To set request fields, pass in keyword arguments.
508
+ # request = Google::Cloud::Scheduler::V1::UpdateJobRequest.new
509
+ #
510
+ # # Call the update_job method.
511
+ # result = client.update_job request
512
+ #
513
+ # # The returned object is of type Google::Cloud::Scheduler::V1::Job.
514
+ # p result
515
+ #
444
516
  def update_job request, options = nil
445
517
  raise ::ArgumentError, "request must be provided" if request.nil?
446
518
 
@@ -458,9 +530,11 @@ module Google
458
530
  gapic_version: ::Google::Cloud::Scheduler::V1::VERSION
459
531
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
460
532
 
461
- header_params = {
462
- "job.name" => request.job.name
463
- }
533
+ header_params = {}
534
+ if request.job&.name
535
+ header_params["job.name"] = request.job.name
536
+ end
537
+
464
538
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
465
539
  metadata[:"x-goog-request-params"] ||= request_params_header
466
540
 
@@ -510,6 +584,21 @@ module Google
510
584
  #
511
585
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
512
586
  #
587
+ # @example Basic example
588
+ # require "google/cloud/scheduler/v1"
589
+ #
590
+ # # Create a client object. The client can be reused for multiple calls.
591
+ # client = Google::Cloud::Scheduler::V1::CloudScheduler::Client.new
592
+ #
593
+ # # Create a request. To set request fields, pass in keyword arguments.
594
+ # request = Google::Cloud::Scheduler::V1::DeleteJobRequest.new
595
+ #
596
+ # # Call the delete_job method.
597
+ # result = client.delete_job request
598
+ #
599
+ # # The returned object is of type Google::Protobuf::Empty.
600
+ # p result
601
+ #
513
602
  def delete_job request, options = nil
514
603
  raise ::ArgumentError, "request must be provided" if request.nil?
515
604
 
@@ -527,9 +616,11 @@ module Google
527
616
  gapic_version: ::Google::Cloud::Scheduler::V1::VERSION
528
617
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
529
618
 
530
- header_params = {
531
- "name" => request.name
532
- }
619
+ header_params = {}
620
+ if request.name
621
+ header_params["name"] = request.name
622
+ end
623
+
533
624
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
534
625
  metadata[:"x-goog-request-params"] ||= request_params_header
535
626
 
@@ -585,6 +676,21 @@ module Google
585
676
  #
586
677
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
587
678
  #
679
+ # @example Basic example
680
+ # require "google/cloud/scheduler/v1"
681
+ #
682
+ # # Create a client object. The client can be reused for multiple calls.
683
+ # client = Google::Cloud::Scheduler::V1::CloudScheduler::Client.new
684
+ #
685
+ # # Create a request. To set request fields, pass in keyword arguments.
686
+ # request = Google::Cloud::Scheduler::V1::PauseJobRequest.new
687
+ #
688
+ # # Call the pause_job method.
689
+ # result = client.pause_job request
690
+ #
691
+ # # The returned object is of type Google::Cloud::Scheduler::V1::Job.
692
+ # p result
693
+ #
588
694
  def pause_job request, options = nil
589
695
  raise ::ArgumentError, "request must be provided" if request.nil?
590
696
 
@@ -602,9 +708,11 @@ module Google
602
708
  gapic_version: ::Google::Cloud::Scheduler::V1::VERSION
603
709
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
604
710
 
605
- header_params = {
606
- "name" => request.name
607
- }
711
+ header_params = {}
712
+ if request.name
713
+ header_params["name"] = request.name
714
+ end
715
+
608
716
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
609
717
  metadata[:"x-goog-request-params"] ||= request_params_header
610
718
 
@@ -659,6 +767,21 @@ module Google
659
767
  #
660
768
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
661
769
  #
770
+ # @example Basic example
771
+ # require "google/cloud/scheduler/v1"
772
+ #
773
+ # # Create a client object. The client can be reused for multiple calls.
774
+ # client = Google::Cloud::Scheduler::V1::CloudScheduler::Client.new
775
+ #
776
+ # # Create a request. To set request fields, pass in keyword arguments.
777
+ # request = Google::Cloud::Scheduler::V1::ResumeJobRequest.new
778
+ #
779
+ # # Call the resume_job method.
780
+ # result = client.resume_job request
781
+ #
782
+ # # The returned object is of type Google::Cloud::Scheduler::V1::Job.
783
+ # p result
784
+ #
662
785
  def resume_job request, options = nil
663
786
  raise ::ArgumentError, "request must be provided" if request.nil?
664
787
 
@@ -676,9 +799,11 @@ module Google
676
799
  gapic_version: ::Google::Cloud::Scheduler::V1::VERSION
677
800
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
678
801
 
679
- header_params = {
680
- "name" => request.name
681
- }
802
+ header_params = {}
803
+ if request.name
804
+ header_params["name"] = request.name
805
+ end
806
+
682
807
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
683
808
  metadata[:"x-goog-request-params"] ||= request_params_header
684
809
 
@@ -731,6 +856,21 @@ module Google
731
856
  #
732
857
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
733
858
  #
859
+ # @example Basic example
860
+ # require "google/cloud/scheduler/v1"
861
+ #
862
+ # # Create a client object. The client can be reused for multiple calls.
863
+ # client = Google::Cloud::Scheduler::V1::CloudScheduler::Client.new
864
+ #
865
+ # # Create a request. To set request fields, pass in keyword arguments.
866
+ # request = Google::Cloud::Scheduler::V1::RunJobRequest.new
867
+ #
868
+ # # Call the run_job method.
869
+ # result = client.run_job request
870
+ #
871
+ # # The returned object is of type Google::Cloud::Scheduler::V1::Job.
872
+ # p result
873
+ #
734
874
  def run_job request, options = nil
735
875
  raise ::ArgumentError, "request must be provided" if request.nil?
736
876
 
@@ -748,9 +888,11 @@ module Google
748
888
  gapic_version: ::Google::Cloud::Scheduler::V1::VERSION
749
889
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
750
890
 
751
- header_params = {
752
- "name" => request.name
753
- }
891
+ header_params = {}
892
+ if request.name
893
+ header_params["name"] = request.name
894
+ end
895
+
754
896
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
755
897
  metadata[:"x-goog-request-params"] ||= request_params_header
756
898
 
@@ -10,6 +10,7 @@ require 'google/api/resource_pb'
10
10
  require 'google/cloud/scheduler/v1/job_pb'
11
11
  require 'google/protobuf/empty_pb'
12
12
  require 'google/protobuf/field_mask_pb'
13
+
13
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
15
  add_file("google/cloud/scheduler/v1/cloudscheduler.proto", :syntax => :proto3) do
15
16
  add_message "google.cloud.scheduler.v1.ListJobsRequest" do
@@ -29,7 +29,7 @@ module Google
29
29
  # schedule asynchronous jobs.
30
30
  class Service
31
31
 
32
- include GRPC::GenericService
32
+ include ::GRPC::GenericService
33
33
 
34
34
  self.marshal_class_method = :encode
35
35
  self.unmarshal_class_method = :decode
@@ -9,6 +9,7 @@ require 'google/protobuf/duration_pb'
9
9
  require 'google/protobuf/timestamp_pb'
10
10
  require 'google/rpc/status_pb'
11
11
  require 'google/api/annotations_pb'
12
+
12
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
14
  add_file("google/cloud/scheduler/v1/job.proto", :syntax => :proto3) do
14
15
  add_message "google.cloud.scheduler.v1.Job" do
@@ -5,6 +5,7 @@ require 'google/protobuf'
5
5
 
6
6
  require 'google/api/resource_pb'
7
7
  require 'google/api/annotations_pb'
8
+
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("google/cloud/scheduler/v1/target.proto", :syntax => :proto3) do
10
11
  add_message "google.cloud.scheduler.v1.HttpTarget" do
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Scheduler
23
23
  module V1
24
- VERSION = "0.4.3"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/cloud/scheduler/v1"
29
31
  # client = ::Google::Cloud::Scheduler::V1::CloudScheduler::Client.new
30
32
  #
@@ -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
@@ -44,7 +44,7 @@ module Google
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
46
  #
47
- # Example 3: Pack and unpack a message in Python.
47
+ # Example 3: Pack and unpack a message in Python.
48
48
  #
49
49
  # foo = Foo(...)
50
50
  # any = Any()
@@ -54,7 +54,7 @@ module Google
54
54
  # any.Unpack(foo)
55
55
  # ...
56
56
  #
57
- # Example 4: Pack and unpack a message in Go
57
+ # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
60
  # any, err := anypb.New(foo)
@@ -75,7 +75,7 @@ module Google
75
75
  #
76
76
  #
77
77
  # JSON
78
- # ====
78
+ #
79
79
  # The JSON representation of an `Any` value uses the regular
80
80
  # representation of the deserialized, embedded message, with an
81
81
  # additional field `@type` which contains the type URL. Example:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-scheduler-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.5.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: 2021-08-11 00:00:00.000000000 Z
11
+ date: 2022-07-07 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.7'
19
+ version: '0.10'
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.7'
29
+ version: '0.10'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,28 +50,28 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.25.1
53
+ version: 1.26.1
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.25.1
60
+ version: 1.26.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '5.14'
67
+ version: '5.16'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '5.14'
74
+ version: '5.16'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: minitest-focus
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: '12.0'
109
+ version: '13.0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: '12.0'
116
+ version: '13.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: redcarpet
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -208,14 +208,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
208
208
  requirements:
209
209
  - - ">="
210
210
  - !ruby/object:Gem::Version
211
- version: '2.5'
211
+ version: '2.6'
212
212
  required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  requirements:
214
214
  - - ">="
215
215
  - !ruby/object:Gem::Version
216
216
  version: '0'
217
217
  requirements: []
218
- rubygems_version: 3.2.17
218
+ rubygems_version: 3.3.14
219
219
  signing_key:
220
220
  specification_version: 4
221
221
  summary: API Client library for the Cloud Scheduler V1 API