google-cloud-batch-v1 0.4.3 → 0.6.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: e8145d86893b1e0276bc292a6303d9401439760fa02ac0455f569134ae4f3d0d
4
- data.tar.gz: f3d2f23314e05e39ab7feb1486a198f6af4a9b58f562b81051f4d471925493f6
3
+ metadata.gz: 0146d27a2cfa428fa19bfbb1536fbaa18d59c8c7b35768e89b20f1d939199cfc
4
+ data.tar.gz: 60ce64d2043eda4c35609af98f2a6e2597ed8914e03f02b68207c1f46b32aee1
5
5
  SHA512:
6
- metadata.gz: 9d994e672630ed1a020e51f553f5cb6093526c90a8f3b34b4f8b61b6110a78f1db0686162747f79e12e230066a4bd22f24def6022b7ffda05b18ea23207b9863
7
- data.tar.gz: 2f1ae1a14f61688e4d20f1ce6217413b258fda0fec3764f775bfe37044069d015020b1a180823ec999faec7d419bff46f8fa762da5d37d9f07e23abd3ce312c2
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
@@ -36,7 +36,7 @@ module Google
36
36
  # The service manages user submitted batch jobs and allocates Google Compute
37
37
  # Engine VM instances to run the jobs.
38
38
  #
39
- # To load this service and instantiate a client:
39
+ # @example Load this service and instantiate a gRPC client
40
40
  #
41
41
  # require "google/cloud/batch/v1/batch_service"
42
42
  # client = ::Google::Cloud::Batch::V1::BatchService::Client.new
@@ -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
@@ -95,6 +95,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
95
95
  end
96
96
  add_message "google.cloud.batch.v1.Environment" do
97
97
  map :variables, :string, :string, 1
98
+ map :secret_variables, :string, :string, 2
99
+ optional :encrypted_variables, :message, 3, "google.cloud.batch.v1.Environment.KMSEnvMap"
100
+ end
101
+ add_message "google.cloud.batch.v1.Environment.KMSEnvMap" do
102
+ optional :key_name, :string, 1
103
+ optional :cipher_text, :string, 2
98
104
  end
99
105
  end
100
106
  end
@@ -118,6 +124,7 @@ module Google
118
124
  LifecyclePolicy::Action = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.batch.v1.LifecyclePolicy.Action").enummodule
119
125
  Task = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.batch.v1.Task").msgclass
120
126
  Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.batch.v1.Environment").msgclass
127
+ Environment::KMSEnvMap = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.batch.v1.Environment.KMSEnvMap").msgclass
121
128
  end
122
129
  end
123
130
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Batch
23
23
  module V1
24
- VERSION = "0.4.3"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -23,9 +23,9 @@ module Google
23
23
  module Cloud
24
24
  module Batch
25
25
  ##
26
- # To load this package, including all its services, and instantiate a client:
26
+ # API client module.
27
27
  #
28
- # @example
28
+ # @example Load this package, including all its services, and instantiate a gRPC client
29
29
  #
30
30
  # require "google/cloud/batch/v1"
31
31
  # client = ::Google::Cloud::Batch::V1::BatchService::Client.new
@@ -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.
@@ -407,10 +431,20 @@ module Google
407
431
  # A network interface.
408
432
  # @!attribute [rw] network
409
433
  # @return [::String]
410
- # The URL of the network resource.
434
+ # The URL of an existing network resource.
435
+ # You can specify the network as a full or partial URL.
436
+ # For example, the following are all valid URLs:
437
+ # https://www.googleapis.com/compute/v1/projects/\\{project}/global/networks/\\{network}
438
+ # projects/\\{project}/global/networks/\\{network}
439
+ # global/networks/\\{network}
411
440
  # @!attribute [rw] subnetwork
412
441
  # @return [::String]
413
- # The URL of the Subnetwork resource.
442
+ # The URL of an existing subnetwork resource in the network.
443
+ # You can specify the subnetwork as a full or partial URL.
444
+ # For example, the following are all valid URLs:
445
+ # https://www.googleapis.com/compute/v1/projects/\\{project}/regions/\\{region}/subnetworks/\\{subnetwork}
446
+ # projects/\\{project}/regions/\\{region}/subnetworks/\\{subnetwork}
447
+ # regions/\\{region}/subnetworks/\\{subnetwork}
414
448
  # @!attribute [rw] no_external_ip_address
415
449
  # @return [::Boolean]
416
450
  # Default is false (with an external IP address). Required if
@@ -522,6 +556,10 @@ module Google
522
556
  # Compute Engine service account for the project will be used. If instance
523
557
  # template is being used, the service account has to be specified in the
524
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.
525
563
  class ServiceAccount
526
564
  include ::Google::Protobuf::MessageExts
527
565
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -319,10 +319,30 @@ module Google
319
319
  # @!attribute [rw] variables
320
320
  # @return [::Google::Protobuf::Map{::String => ::String}]
321
321
  # A map of environment variable names to values.
322
+ # @!attribute [rw] secret_variables
323
+ # @return [::Google::Protobuf::Map{::String => ::String}]
324
+ # A map of environment variable names to Secret Manager secret names.
325
+ # The VM will access the named secrets to set the value of each environment
326
+ # variable.
327
+ # @!attribute [rw] encrypted_variables
328
+ # @return [::Google::Cloud::Batch::V1::Environment::KMSEnvMap]
329
+ # An encrypted JSON dictionary where the key/value pairs correspond to
330
+ # environment variable names and their values.
322
331
  class Environment
323
332
  include ::Google::Protobuf::MessageExts
324
333
  extend ::Google::Protobuf::MessageExts::ClassMethods
325
334
 
335
+ # @!attribute [rw] key_name
336
+ # @return [::String]
337
+ # The name of the KMS key that will be used to decrypt the cipher text.
338
+ # @!attribute [rw] cipher_text
339
+ # @return [::String]
340
+ # The value of the cipherText response from the `encrypt` method.
341
+ class KMSEnvMap
342
+ include ::Google::Protobuf::MessageExts
343
+ extend ::Google::Protobuf::MessageExts::ClassMethods
344
+ end
345
+
326
346
  # @!attribute [rw] key
327
347
  # @return [::String]
328
348
  # @!attribute [rw] value
@@ -331,6 +351,15 @@ module Google
331
351
  include ::Google::Protobuf::MessageExts
332
352
  extend ::Google::Protobuf::MessageExts::ClassMethods
333
353
  end
354
+
355
+ # @!attribute [rw] key
356
+ # @return [::String]
357
+ # @!attribute [rw] value
358
+ # @return [::String]
359
+ class SecretVariablesEntry
360
+ include ::Google::Protobuf::MessageExts
361
+ extend ::Google::Protobuf::MessageExts::ClassMethods
362
+ end
334
363
  end
335
364
  end
336
365
  end
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.4.3
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: 2022-12-15 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
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.12'
19
+ version: 0.16.0
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.12'
29
+ version: 0.16.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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