google-cloud-batch-v1 0.6.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/google/cloud/batch/v1/batch_pb.rb +1 -0
  4. data/lib/google/cloud/batch/v1/batch_service/client.rb +18 -36
  5. data/lib/google/cloud/batch/v1/batch_service/operations.rb +14 -16
  6. data/lib/google/cloud/batch/v1/batch_service/rest/client.rb +810 -0
  7. data/lib/google/cloud/batch/v1/batch_service/rest/operations.rb +793 -0
  8. data/lib/google/cloud/batch/v1/batch_service/rest/service_stub.rb +403 -0
  9. data/lib/google/cloud/batch/v1/batch_service/rest.rb +56 -0
  10. data/lib/google/cloud/batch/v1/batch_service.rb +6 -0
  11. data/lib/google/cloud/batch/v1/bindings_override.rb +102 -0
  12. data/lib/google/cloud/batch/v1/job_pb.rb +6 -0
  13. data/lib/google/cloud/batch/v1/rest.rb +38 -0
  14. data/lib/google/cloud/batch/v1/task_pb.rb +3 -0
  15. data/lib/google/cloud/batch/v1/version.rb +1 -1
  16. data/lib/google/cloud/batch/v1.rb +5 -0
  17. data/lib/google/iam/v1/bindings_override.rb +100 -0
  18. data/lib/google/iam/v1/iam_policy/client.rb +639 -0
  19. data/lib/google/iam/v1/iam_policy/credentials.rb +42 -0
  20. data/lib/google/iam/v1/iam_policy/rest/client.rb +558 -0
  21. data/lib/google/iam/v1/iam_policy/rest/service_stub.rb +226 -0
  22. data/lib/google/iam/v1/iam_policy/rest.rb +75 -0
  23. data/lib/google/iam/v1/iam_policy.rb +77 -0
  24. data/lib/google/iam/v1/rest.rb +36 -0
  25. data/lib/google/iam/v1.rb +43 -0
  26. data/lib/google-cloud-batch-v1.rb +1 -0
  27. data/proto_docs/google/api/client.rb +67 -4
  28. data/proto_docs/google/cloud/batch/v1/batch.rb +4 -4
  29. data/proto_docs/google/cloud/batch/v1/job.rb +53 -16
  30. data/proto_docs/google/cloud/batch/v1/task.rb +46 -10
  31. data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
  32. data/proto_docs/google/iam/v1/options.rb +50 -0
  33. data/proto_docs/google/iam/v1/policy.rb +422 -0
  34. metadata +32 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0146d27a2cfa428fa19bfbb1536fbaa18d59c8c7b35768e89b20f1d939199cfc
4
- data.tar.gz: 60ce64d2043eda4c35609af98f2a6e2597ed8914e03f02b68207c1f46b32aee1
3
+ metadata.gz: 67910a1809b1477ba0ceb3fbcf99b860d6a777e8e349f95e6cdc56e5df329d03
4
+ data.tar.gz: 51037b3161059caef8a9575ba7f3506e0187c90362789ffe27dd2327c31173ad
5
5
  SHA512:
6
- metadata.gz: b68cc2a21918127425e571730f82c5004c5e2c7cec5b0bf187df368564c2a882b3d9204a9e1e261b979e6300a8c6a9b40baa7d3f8d05f18d0a60ed6c61d4e5ac
7
- data.tar.gz: 42d47feace4f761a90372023c3ccfd83d2447537d9b61629f874f6c56c1d58f0af345022e0205a26af887328ec9c28c96317786dfaf39ddd06c5c5fc91fa7d4b
6
+ metadata.gz: 908b63288d33fe0075641ed4e88d3d507951a7aa5bed609b1bf22b4945bda64c7f3c73abcaca61d2f103d4646add950f66ea5a250ec09d059560e2b61ccd3584
7
+ data.tar.gz: 6f4eaafe78b6a48b342829e90ff4dcaeb1baebca6a895241631baeb63057156da896045b9200043f7c9009c2f476b262b4debd05f6e5a223a74ed2d3d0e4dd84
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Batch V1 API
2
2
 
3
- API Client library for the Batch V1 API
3
+ An API to manage the running of batch jobs on Google Cloud Platform.
4
4
 
5
5
  Google Cloud Batch is a fully managed service used by scientists, VFX artists, developers to easily and efficiently run batch workloads on Google Cloud. This service manages provisioning of resources to satisfy the requirements of the batch jobs for a variety of workloads including ML, HPC, VFX rendering, transcoding, genomics and others.
6
6
 
@@ -44,7 +44,7 @@ for class and method documentation.
44
44
 
45
45
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
46
46
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
47
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
47
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
48
48
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
49
49
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
50
50
 
@@ -10,6 +10,7 @@ require 'google/api/resource_pb'
10
10
  require 'google/cloud/batch/v1/job_pb'
11
11
  require 'google/cloud/batch/v1/task_pb'
12
12
  require 'google/longrunning/operations_pb'
13
+ require 'google/protobuf/empty_pb'
13
14
  require 'google/protobuf/timestamp_pb'
14
15
 
15
16
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -19,7 +19,6 @@
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/batch/v1/batch_pb"
21
21
  require "google/cloud/location"
22
- require "google/iam/v1"
23
22
 
24
23
  module Google
25
24
  module Cloud
@@ -173,12 +172,6 @@ module Google
173
172
  config.endpoint = @config.endpoint
174
173
  end
175
174
 
176
- @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
177
- config.credentials = credentials
178
- config.quota_project = @quota_project_id
179
- config.endpoint = @config.endpoint
180
- end
181
-
182
175
  @batch_service_stub = ::Gapic::ServiceStub.new(
183
176
  ::Google::Cloud::Batch::V1::BatchService::Stub,
184
177
  credentials: credentials,
@@ -202,13 +195,6 @@ module Google
202
195
  #
203
196
  attr_reader :location_client
204
197
 
205
- ##
206
- # Get the associated client for mix-in of the IAMPolicy.
207
- #
208
- # @return [Google::Iam::V1::IAMPolicy::Client]
209
- #
210
- attr_reader :iam_policy_client
211
-
212
198
  # Service calls
213
199
 
214
200
  ##
@@ -250,8 +236,8 @@ module Google
250
236
  # ignore the request if it has already been completed. The server will
251
237
  # guarantee that for at least 60 minutes since the first request.
252
238
  #
253
- # For example, consider a situation where you make an initial request and t
254
- # he request times out. If you make the request again with the same request
239
+ # For example, consider a situation where you make an initial request and
240
+ # the request times out. If you make the request again with the same request
255
241
  # ID, the server can check if original operation with the same request ID
256
242
  # was received, and if so, will ignore the second request. This prevents
257
243
  # clients from accidentally creating duplicate commitments.
@@ -436,8 +422,8 @@ module Google
436
422
  # ignore the request if it has already been completed. The server will
437
423
  # guarantee that for at least 60 minutes after the first request.
438
424
  #
439
- # For example, consider a situation where you make an initial request and t
440
- # he request times out. If you make the request again with the same request
425
+ # For example, consider a situation where you make an initial request and
426
+ # the request times out. If you make the request again with the same request
441
427
  # ID, the server can check if original operation with the same request ID
442
428
  # was received, and if so, will ignore the second request. This prevents
443
429
  # clients from accidentally creating duplicate commitments.
@@ -465,14 +451,14 @@ module Google
465
451
  # # Call the delete_job method.
466
452
  # result = client.delete_job request
467
453
  #
468
- # # The returned object is of type Gapic::Operation. You can use this
469
- # # object to check the status of an operation, cancel it, or wait
470
- # # for results. Here is how to block until completion:
454
+ # # The returned object is of type Gapic::Operation. You can use it to
455
+ # # check the status of an operation, cancel it, or wait for results.
456
+ # # Here is how to wait for a response.
471
457
  # result.wait_until_done! timeout: 60
472
458
  # if result.response?
473
459
  # p result.response
474
460
  # else
475
- # puts "Error!"
461
+ # puts "No response received."
476
462
  # end
477
463
  #
478
464
  def delete_job request, options = nil
@@ -564,13 +550,11 @@ module Google
564
550
  # # Call the list_jobs method.
565
551
  # result = client.list_jobs request
566
552
  #
567
- # # The returned object is of type Gapic::PagedEnumerable. You can
568
- # # iterate over all elements by calling #each, and the enumerable
569
- # # will lazily make API calls to fetch subsequent pages. Other
570
- # # methods are also available for managing paging directly.
571
- # result.each do |response|
553
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
554
+ # # over elements, and API calls will be issued to fetch pages as needed.
555
+ # result.each do |item|
572
556
  # # Each element is of type ::Google::Cloud::Batch::V1::Job.
573
- # p response
557
+ # p item
574
558
  # end
575
559
  #
576
560
  def list_jobs request, options = nil
@@ -751,13 +735,11 @@ module Google
751
735
  # # Call the list_tasks method.
752
736
  # result = client.list_tasks request
753
737
  #
754
- # # The returned object is of type Gapic::PagedEnumerable. You can
755
- # # iterate over all elements by calling #each, and the enumerable
756
- # # will lazily make API calls to fetch subsequent pages. Other
757
- # # methods are also available for managing paging directly.
758
- # result.each do |response|
738
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
739
+ # # over elements, and API calls will be issued to fetch pages as needed.
740
+ # result.each do |item|
759
741
  # # Each element is of type ::Google::Cloud::Batch::V1::Task.
760
- # p response
742
+ # p item
761
743
  # end
762
744
  #
763
745
  def list_tasks request, options = nil
@@ -840,9 +822,9 @@ module Google
840
822
  # * (`String`) The path to a service account key file in JSON format
841
823
  # * (`Hash`) A service account key as a Hash
842
824
  # * (`Google::Auth::Credentials`) A googleauth credentials object
843
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
825
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
844
826
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
845
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
827
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
846
828
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
847
829
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
848
830
  # * (`nil`) indicating no credentials
@@ -158,13 +158,11 @@ module Google
158
158
  # # Call the list_operations method.
159
159
  # result = client.list_operations request
160
160
  #
161
- # # The returned object is of type Gapic::PagedEnumerable. You can
162
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
164
- # # methods are also available for managing paging directly.
165
- # result.each do |response|
161
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
162
+ # # over elements, and API calls will be issued to fetch pages as needed.
163
+ # result.each do |item|
166
164
  # # Each element is of type ::Google::Longrunning::Operation.
167
- # p response
165
+ # p item
168
166
  # end
169
167
  #
170
168
  def list_operations request, options = nil
@@ -253,14 +251,14 @@ module Google
253
251
  # # Call the get_operation method.
254
252
  # result = client.get_operation request
255
253
  #
256
- # # The returned object is of type Gapic::Operation. You can use this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
254
+ # # The returned object is of type Gapic::Operation. You can use it to
255
+ # # check the status of an operation, cancel it, or wait for results.
256
+ # # Here is how to wait for a response.
259
257
  # result.wait_until_done! timeout: 60
260
258
  # if result.response?
261
259
  # p result.response
262
260
  # else
263
- # puts "Error!"
261
+ # puts "No response received."
264
262
  # end
265
263
  #
266
264
  def get_operation request, options = nil
@@ -540,14 +538,14 @@ module Google
540
538
  # # Call the wait_operation method.
541
539
  # result = client.wait_operation request
542
540
  #
543
- # # The returned object is of type Gapic::Operation. You can use this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
541
+ # # The returned object is of type Gapic::Operation. You can use it to
542
+ # # check the status of an operation, cancel it, or wait for results.
543
+ # # Here is how to wait for a response.
546
544
  # result.wait_until_done! timeout: 60
547
545
  # if result.response?
548
546
  # p result.response
549
547
  # else
550
- # puts "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil
@@ -622,9 +620,9 @@ module Google
622
620
  # * (`String`) The path to a service account key file in JSON format
623
621
  # * (`Hash`) A service account key as a Hash
624
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
625
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
626
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
627
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
628
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
629
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
630
628
  # * (`nil`) indicating no credentials