google-cloud-batch-v1 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/batch/v1/batch_pb.rb +1 -0
  4. data/lib/google/cloud/batch/v1/batch_service/client.rb +16 -34
  5. data/lib/google/cloud/batch/v1/batch_service/operations.rb +12 -14
  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/rest.rb +38 -0
  13. data/lib/google/cloud/batch/v1/task_pb.rb +1 -0
  14. data/lib/google/cloud/batch/v1/version.rb +1 -1
  15. data/lib/google/cloud/batch/v1.rb +5 -0
  16. data/lib/google/iam/v1/bindings_override.rb +100 -0
  17. data/lib/google/iam/v1/iam_policy/client.rb +639 -0
  18. data/lib/google/iam/v1/iam_policy/credentials.rb +42 -0
  19. data/lib/google/iam/v1/iam_policy/rest/client.rb +558 -0
  20. data/lib/google/iam/v1/iam_policy/rest/service_stub.rb +226 -0
  21. data/lib/google/iam/v1/iam_policy/rest.rb +75 -0
  22. data/lib/google/iam/v1/iam_policy.rb +77 -0
  23. data/lib/google/iam/v1/rest.rb +36 -0
  24. data/lib/google/iam/v1.rb +43 -0
  25. data/lib/google-cloud-batch-v1.rb +1 -0
  26. data/proto_docs/google/cloud/batch/v1/batch.rb +4 -4
  27. data/proto_docs/google/cloud/batch/v1/job.rb +2 -1
  28. data/proto_docs/google/cloud/batch/v1/task.rb +27 -7
  29. data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
  30. data/proto_docs/google/iam/v1/options.rb +50 -0
  31. data/proto_docs/google/iam/v1/policy.rb +418 -0
  32. 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: 56bb02cd286ea2311f11db5041535a4d8d56d4c4859803fb96b8948bd4578edc
4
+ data.tar.gz: a139a26a26f38ec9e7058dd2232d622d94632905547e0c63b94b21c5130df8ff
5
5
  SHA512:
6
- metadata.gz: b68cc2a21918127425e571730f82c5004c5e2c7cec5b0bf187df368564c2a882b3d9204a9e1e261b979e6300a8c6a9b40baa7d3f8d05f18d0a60ed6c61d4e5ac
7
- data.tar.gz: 42d47feace4f761a90372023c3ccfd83d2447537d9b61629f874f6c56c1d58f0af345022e0205a26af887328ec9c28c96317786dfaf39ddd06c5c5fc91fa7d4b
6
+ metadata.gz: eba5b48e1fe63770a35723e48243d89cc3fdd22b8f65c3c04c56d515fa79ec33ba6ac52a48ff309993781627d3bebeab2259845b84623e3b62f73d327f807c78
7
+ data.tar.gz: d18ff76a481ab2ecc402cf6b05ebed3c5bc5e6df65db538d75713f3d3a7ce460bbad524398aa3744611a0f32672be015f71cda01692214fc0dcffef983fcbf08
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
 
@@ -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
@@ -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