google-cloud-batch-v1 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2afe49680f204d1a3b683778fdc012ed38907f15a5c2f109ececcdfb4f9e1960
4
- data.tar.gz: 8f2726db11bb5a00d1aa630e9a80fa3bbe3a0505e14850f722f1ae824164686f
3
+ metadata.gz: 0146d27a2cfa428fa19bfbb1536fbaa18d59c8c7b35768e89b20f1d939199cfc
4
+ data.tar.gz: 60ce64d2043eda4c35609af98f2a6e2597ed8914e03f02b68207c1f46b32aee1
5
5
  SHA512:
6
- metadata.gz: 366abe659edb5b34a0f18d18cf60c54177a938aec843890bb023e482fe49f8458be16a24006f1c9795ccd558bee030bfb7e0d8902799dae2016e4111bab1fb20
7
- data.tar.gz: 72061100018c92a2c62a337138d083c30e33e7410c6f83fea856ddf82dc035b773c25db31ef076d00d9f59cd92671f1ac56b5f9d431b7f9484fc55750bf64855
6
+ metadata.gz: b68cc2a21918127425e571730f82c5004c5e2c7cec5b0bf187df368564c2a882b3d9204a9e1e261b979e6300a8c6a9b40baa7d3f8d05f18d0a60ed6c61d4e5ac
7
+ data.tar.gz: 42d47feace4f761a90372023c3ccfd83d2447537d9b61629f874f6c56c1d58f0af345022e0205a26af887328ec9c28c96317786dfaf39ddd06c5c5fc91fa7d4b
@@ -245,10 +245,10 @@ module Google
245
245
  # @param job [::Google::Cloud::Batch::V1::Job, ::Hash]
246
246
  # Required. The Job to create.
247
247
  # @param request_id [::String]
248
- # Optional. An optional request ID to identify requests. Specify a unique request ID
249
- # so that if you must retry your request, the server will know to ignore
250
- # the request if it has already been completed. The server will guarantee
251
- # that for at least 60 minutes since the first request.
248
+ # Optional. An optional request ID to identify requests. Specify a unique
249
+ # request ID so that if you must retry your request, the server will know to
250
+ # ignore the request if it has already been completed. The server will
251
+ # guarantee that for at least 60 minutes since the first request.
252
252
  #
253
253
  # For example, consider a situation where you make an initial request and t
254
254
  # he request times out. If you make the request again with the same request
@@ -431,10 +431,10 @@ module Google
431
431
  # @param reason [::String]
432
432
  # Optional. Reason for this deletion.
433
433
  # @param request_id [::String]
434
- # Optional. An optional request ID to identify requests. Specify a unique request ID
435
- # so that if you must retry your request, the server will know to ignore
436
- # the request if it has already been completed. The server will guarantee
437
- # that for at least 60 minutes after the first request.
434
+ # Optional. An optional request ID to identify requests. Specify a unique
435
+ # request ID so that if you must retry your request, the server will know to
436
+ # ignore the request if it has already been completed. The server will
437
+ # guarantee that for at least 60 minutes after the first request.
438
438
  #
439
439
  # For example, consider a situation where you make an initial request and t
440
440
  # he request times out. If you make the request again with the same request
@@ -43,6 +43,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
43
43
  optional :machine_type, :string, 1
44
44
  optional :provisioning_model, :enum, 2, "google.cloud.batch.v1.AllocationPolicy.ProvisioningModel"
45
45
  optional :task_pack, :int64, 3
46
+ optional :boot_disk, :message, 4, "google.cloud.batch.v1.AllocationPolicy.Disk"
46
47
  end
47
48
  add_message "google.cloud.batch.v1.JobStatus.TaskGroupStatus" do
48
49
  map :counts, :string, :int64, 1
@@ -107,6 +108,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
107
108
  optional :min_cpu_platform, :string, 3
108
109
  optional :provisioning_model, :enum, 4, "google.cloud.batch.v1.AllocationPolicy.ProvisioningModel"
109
110
  repeated :accelerators, :message, 5, "google.cloud.batch.v1.AllocationPolicy.Accelerator"
111
+ optional :boot_disk, :message, 8, "google.cloud.batch.v1.AllocationPolicy.Disk"
110
112
  repeated :disks, :message, 6, "google.cloud.batch.v1.AllocationPolicy.AttachedDisk"
111
113
  end
112
114
  add_message "google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate" do
@@ -142,6 +144,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
142
144
  end
143
145
  add_message "google.cloud.batch.v1.ServiceAccount" do
144
146
  optional :email, :string, 1
147
+ repeated :scopes, :string, 2
145
148
  end
146
149
  end
147
150
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Batch
23
23
  module V1
24
- VERSION = "0.5.0"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -42,10 +42,10 @@ module Google
42
42
  # Required. The Job to create.
43
43
  # @!attribute [rw] request_id
44
44
  # @return [::String]
45
- # Optional. An optional request ID to identify requests. Specify a unique request ID
46
- # so that if you must retry your request, the server will know to ignore
47
- # the request if it has already been completed. The server will guarantee
48
- # that for at least 60 minutes since the first request.
45
+ # Optional. An optional request ID to identify requests. Specify a unique
46
+ # request ID so that if you must retry your request, the server will know to
47
+ # ignore the request if it has already been completed. The server will
48
+ # guarantee that for at least 60 minutes since the first request.
49
49
  #
50
50
  # For example, consider a situation where you make an initial request and t
51
51
  # he request times out. If you make the request again with the same request
@@ -78,10 +78,10 @@ module Google
78
78
  # Optional. Reason for this deletion.
79
79
  # @!attribute [rw] request_id
80
80
  # @return [::String]
81
- # Optional. An optional request ID to identify requests. Specify a unique request ID
82
- # so that if you must retry your request, the server will know to ignore
83
- # the request if it has already been completed. The server will guarantee
84
- # that for at least 60 minutes after the first request.
81
+ # Optional. An optional request ID to identify requests. Specify a unique
82
+ # request ID so that if you must retry your request, the server will know to
83
+ # ignore the request if it has already been completed. The server will
84
+ # guarantee that for at least 60 minutes after the first request.
85
85
  #
86
86
  # For example, consider a situation where you make an initial request and t
87
87
  # he request times out. If you make the request again with the same request
@@ -195,8 +195,9 @@ module Google
195
195
  # @return [::Boolean]
196
196
  # Output only. Identifies whether the user has requested cancellation
197
197
  # of the operation. Operations that have successfully been cancelled
198
- # have [Operation.error][] value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
199
- # corresponding to `Code.CANCELLED`.
198
+ # have [Operation.error][] value with a
199
+ # {::Google::Rpc::Status#code google.rpc.Status.code} of 1, corresponding to
200
+ # `Code.CANCELLED`.
200
201
  # @!attribute [r] api_version
201
202
  # @return [::String]
202
203
  # Output only. API version used to start the operation.
@@ -137,6 +137,9 @@ module Google
137
137
  # @!attribute [rw] task_pack
138
138
  # @return [::Integer]
139
139
  # The max number of tasks can be assigned to this instance type.
140
+ # @!attribute [rw] boot_disk
141
+ # @return [::Google::Cloud::Batch::V1::AllocationPolicy::Disk]
142
+ # The VM boot disk.
140
143
  class InstanceStatus
141
144
  include ::Google::Protobuf::MessageExts
142
145
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -301,19 +304,36 @@ module Google
301
304
  # @!attribute [rw] image
302
305
  # @return [::String]
303
306
  # Name of a public or custom image used as the data source.
307
+ # For example, the following are all valid URLs:
308
+ # (1) Specify the image by its family name:
309
+ # projects/\\{project}/global/images/family/\\{image_family}
310
+ # (2) Specify the image version:
311
+ # projects/\\{project}/global/images/\\{image_version}
312
+ # You can also use Batch customized image in short names.
313
+ # The following image values are supported for a boot disk:
314
+ # "batch-debian": use Batch Debian images.
315
+ # "batch-centos": use Batch CentOS images.
316
+ # "batch-cos": use Batch Container-Optimized images.
304
317
  # @!attribute [rw] snapshot
305
318
  # @return [::String]
306
319
  # Name of a snapshot used as the data source.
307
320
  # @!attribute [rw] type
308
321
  # @return [::String]
309
- # Disk type as shown in `gcloud compute disk-types list`
310
- # For example, "pd-ssd", "pd-standard", "pd-balanced", "local-ssd".
322
+ # Disk type as shown in `gcloud compute disk-types list`.
323
+ # For example, local SSD uses type "local-ssd".
324
+ # Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd"
325
+ # or "pd-standard".
311
326
  # @!attribute [rw] size_gb
312
327
  # @return [::Integer]
313
328
  # Disk size in GB.
314
- # This field is ignored if `data_source` is `disk` or `image`.
315
- # If `type` is `local-ssd`, size_gb should be a multiple of 375GB,
329
+ # For persistent disk, this field is ignored if `data_source` is `image` or
330
+ # `snapshot`.
331
+ # For local SSD, size_gb should be a multiple of 375GB,
316
332
  # otherwise, the final size will be the next greater multiple of 375 GB.
333
+ # For boot disk, Batch will calculate the boot disk size based on source
334
+ # image and task requirements if you do not speicify the size.
335
+ # If both this field and the boot_disk_mib field in task spec's
336
+ # compute_resource are defined, Batch will only honor this field.
317
337
  # @!attribute [rw] disk_interface
318
338
  # @return [::String]
319
339
  # Local SSDs are available through both "SCSI" and "NVMe" interfaces.
@@ -375,6 +395,10 @@ module Google
375
395
  # @!attribute [rw] accelerators
376
396
  # @return [::Array<::Google::Cloud::Batch::V1::AllocationPolicy::Accelerator>]
377
397
  # The accelerators attached to each VM instance.
398
+ # @!attribute [rw] boot_disk
399
+ # @return [::Google::Cloud::Batch::V1::AllocationPolicy::Disk]
400
+ # Book disk to be created and attached to each VM by this InstancePolicy.
401
+ # Boot disk will be deleted when the VM is deleted.
378
402
  # @!attribute [rw] disks
379
403
  # @return [::Array<::Google::Cloud::Batch::V1::AllocationPolicy::AttachedDisk>]
380
404
  # Non-boot disks to be attached for each VM created by this InstancePolicy.
@@ -532,6 +556,10 @@ module Google
532
556
  # Compute Engine service account for the project will be used. If instance
533
557
  # template is being used, the service account has to be specified in the
534
558
  # instance template and it has to match the email field here.
559
+ # @!attribute [rw] scopes
560
+ # @return [::Array<::String>]
561
+ # List of scopes to be enabled for this service account on the VM, in
562
+ # addition to the cloud-platform API scope that will be added by default.
535
563
  class ServiceAccount
536
564
  include ::Google::Protobuf::MessageExts
537
565
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-batch-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.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: 2023-01-06 00:00:00.000000000 Z
11
+ date: 2023-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '0.0'
53
+ version: '0.3'
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
56
  version: 2.a
@@ -60,7 +60,7 @@ dependencies:
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: '0.0'
63
+ version: '0.3'
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
66
  version: 2.a
@@ -70,7 +70,7 @@ dependencies:
70
70
  requirements:
71
71
  - - ">="
72
72
  - !ruby/object:Gem::Version
73
- version: '0.0'
73
+ version: '0.3'
74
74
  - - "<"
75
75
  - !ruby/object:Gem::Version
76
76
  version: 2.a
@@ -80,7 +80,7 @@ dependencies:
80
80
  requirements:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
- version: '0.0'
83
+ version: '0.3'
84
84
  - - "<"
85
85
  - !ruby/object:Gem::Version
86
86
  version: 2.a
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
261
  - !ruby/object:Gem::Version
262
262
  version: '0'
263
263
  requirements: []
264
- rubygems_version: 3.3.14
264
+ rubygems_version: 3.4.2
265
265
  signing_key:
266
266
  specification_version: 4
267
267
  summary: API Client library for the Batch V1 API