@@ -39,9 +39,9 @@ public final class Container extends com.google.api.client.json.GenericJson {
39
39
private java .lang .Boolean blockExternalNetwork ;
40
40
41
41
/**
42
- * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT (either in the
43
- * container image or with the entrypoint field below) then commands are appended as arguments to
44
- * the ENTRYPOINT.
42
+ * Required for some container images. Overrides the `CMD` specified in the container. If there is
43
+ * an `ENTRYPOINT` (either in the container image or with the ` entrypoint` field below) then these
44
+ * commands are appended as arguments to the ` ENTRYPOINT` .
45
45
* The value may be {@code null}.
46
46
*/
47
47
@ com .google .api .client .util .Key
@@ -64,22 +64,23 @@ public final class Container extends com.google.api.client.json.GenericJson {
64
64
private java .lang .Boolean enableImageStreaming ;
65
65
66
66
/**
67
- * Overrides the `ENTRYPOINT` specified in the container.
67
+ * Required for some container images. Overrides the `ENTRYPOINT` specified in the container.
68
68
* The value may be {@code null}.
69
69
*/
70
70
@ com .google .api .client .util .Key
71
71
private java .lang .String entrypoint ;
72
72
73
73
/**
74
- * The URI to pull the container image from.
74
+ * Required. The URI to pull the container image from.
75
75
* The value may be {@code null}.
76
76
*/
77
77
@ com .google .api .client .util .Key
78
78
private java .lang .String imageUri ;
79
79
80
80
/**
81
- * Arbitrary additional options to include in the "docker run" command when running this
82
- * container, e.g. "--network host".
81
+ * Required for some container images. Arbitrary additional options to include in the `docker run`
82
+ * command when running this container—for example, `--network host`. For the `--volume` option,
83
+ * use the `volumes` field for the container.
83
84
* The value may be {@code null}.
84
85
*/
85
86
@ com .google .api .client .util .Key
@@ -116,13 +117,13 @@ public final class Container extends com.google.api.client.json.GenericJson {
116
117
117
118
/**
118
119
* Volumes to mount (bind mount) from the host machine files or directories into the container,
119
- * formatted to match docker run's --volume option, e.g. /foo:/bar, or /foo:/bar:ro If the
120
- * `TaskSpec.Volumes` field is specified but this field is not, Batch will mount each volume from
121
- * the host machine to the container with the same mount path by default. In this case, the
122
- * default mount option for containers will be read-only (ro ) for existing persistent disks and
123
- * read-write (rw ) for other volume types, regardless of the original mount options specified in
124
- * `TaskSpec.Volumes`. If you need different mount settings, you can explicitly configure them in
125
- * this field.
120
+ * formatted to match ` --volume` option for the `docker run` command—for example, ` /foo:/bar` or
121
+ * `/foo:/bar:ro`. If the ` TaskSpec.Volumes` field is specified but this field is not, Batch will
122
+ * mount each volume from the host machine to the container with the same mount path by default.
123
+ * In this case, the default mount option for containers will be read-only (`ro` ) for existing
124
+ * persistent disks and read-write (`rw` ) for other volume types, regardless of the original mount
125
+ * options specified in `TaskSpec.Volumes`. If you need different mount settings, you can
126
+ * explicitly configure them in this field.
126
127
* The value may be {@code null}.
127
128
*/
128
129
@ com .google .api .client .util .Key
@@ -150,19 +151,19 @@ public Container setBlockExternalNetwork(java.lang.Boolean blockExternalNetwork)
150
151
}
151
152
152
153
/**
153
- * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT (either in the
154
- * container image or with the entrypoint field below) then commands are appended as arguments to
155
- * the ENTRYPOINT.
154
+ * Required for some container images. Overrides the `CMD` specified in the container. If there is
155
+ * an `ENTRYPOINT` (either in the container image or with the ` entrypoint` field below) then these
156
+ * commands are appended as arguments to the ` ENTRYPOINT` .
156
157
* @return value or {@code null} for none
157
158
*/
158
159
public java .util .List <java .lang .String > getCommands () {
159
160
return commands ;
160
161
}
161
162
162
163
/**
163
- * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT (either in the
164
- * container image or with the entrypoint field below) then commands are appended as arguments to
165
- * the ENTRYPOINT.
164
+ * Required for some container images. Overrides the `CMD` specified in the container. If there is
165
+ * an `ENTRYPOINT` (either in the container image or with the ` entrypoint` field below) then these
166
+ * commands are appended as arguments to the ` ENTRYPOINT` .
166
167
* @param commands commands or {@code null} for none
167
168
*/
168
169
public Container setCommands (java .util .List <java .lang .String > commands ) {
@@ -206,15 +207,15 @@ public Container setEnableImageStreaming(java.lang.Boolean enableImageStreaming)
206
207
}
207
208
208
209
/**
209
- * Overrides the `ENTRYPOINT` specified in the container.
210
+ * Required for some container images. Overrides the `ENTRYPOINT` specified in the container.
210
211
* @return value or {@code null} for none
211
212
*/
212
213
public java .lang .String getEntrypoint () {
213
214
return entrypoint ;
214
215
}
215
216
216
217
/**
217
- * Overrides the `ENTRYPOINT` specified in the container.
218
+ * Required for some container images. Overrides the `ENTRYPOINT` specified in the container.
218
219
* @param entrypoint entrypoint or {@code null} for none
219
220
*/
220
221
public Container setEntrypoint (java .lang .String entrypoint ) {
@@ -223,15 +224,15 @@ public Container setEntrypoint(java.lang.String entrypoint) {
223
224
}
224
225
225
226
/**
226
- * The URI to pull the container image from.
227
+ * Required. The URI to pull the container image from.
227
228
* @return value or {@code null} for none
228
229
*/
229
230
public java .lang .String getImageUri () {
230
231
return imageUri ;
231
232
}
232
233
233
234
/**
234
- * The URI to pull the container image from.
235
+ * Required. The URI to pull the container image from.
235
236
* @param imageUri imageUri or {@code null} for none
236
237
*/
237
238
public Container setImageUri (java .lang .String imageUri ) {
@@ -240,17 +241,19 @@ public Container setImageUri(java.lang.String imageUri) {
240
241
}
241
242
242
243
/**
243
- * Arbitrary additional options to include in the "docker run" command when running this
244
- * container, e.g. "--network host".
244
+ * Required for some container images. Arbitrary additional options to include in the `docker run`
245
+ * command when running this container—for example, `--network host`. For the `--volume` option,
246
+ * use the `volumes` field for the container.
245
247
* @return value or {@code null} for none
246
248
*/
247
249
public java .lang .String getOptions () {
248
250
return options ;
249
251
}
250
252
251
253
/**
252
- * Arbitrary additional options to include in the "docker run" command when running this
253
- * container, e.g. "--network host".
254
+ * Required for some container images. Arbitrary additional options to include in the `docker run`
255
+ * command when running this container—for example, `--network host`. For the `--volume` option,
256
+ * use the `volumes` field for the container.
254
257
* @param options options or {@code null} for none
255
258
*/
256
259
public Container setOptions (java .lang .String options ) {
@@ -324,13 +327,13 @@ public Container setUsername(java.lang.String username) {
324
327
325
328
/**
326
329
* Volumes to mount (bind mount) from the host machine files or directories into the container,
327
- * formatted to match docker run's --volume option, e.g. /foo:/bar, or /foo:/bar:ro If the
328
- * `TaskSpec.Volumes` field is specified but this field is not, Batch will mount each volume from
329
- * the host machine to the container with the same mount path by default. In this case, the
330
- * default mount option for containers will be read-only (ro ) for existing persistent disks and
331
- * read-write (rw ) for other volume types, regardless of the original mount options specified in
332
- * `TaskSpec.Volumes`. If you need different mount settings, you can explicitly configure them in
333
- * this field.
330
+ * formatted to match ` --volume` option for the `docker run` command—for example, ` /foo:/bar` or
331
+ * `/foo:/bar:ro`. If the ` TaskSpec.Volumes` field is specified but this field is not, Batch will
332
+ * mount each volume from the host machine to the container with the same mount path by default.
333
+ * In this case, the default mount option for containers will be read-only (`ro` ) for existing
334
+ * persistent disks and read-write (`rw` ) for other volume types, regardless of the original mount
335
+ * options specified in `TaskSpec.Volumes`. If you need different mount settings, you can
336
+ * explicitly configure them in this field.
334
337
* @return value or {@code null} for none
335
338
*/
336
339
public java .util .List <java .lang .String > getVolumes () {
@@ -339,13 +342,13 @@ public java.util.List<java.lang.String> getVolumes() {
339
342
340
343
/**
341
344
* Volumes to mount (bind mount) from the host machine files or directories into the container,
342
- * formatted to match docker run's --volume option, e.g. /foo:/bar, or /foo:/bar:ro If the
343
- * `TaskSpec.Volumes` field is specified but this field is not, Batch will mount each volume from
344
- * the host machine to the container with the same mount path by default. In this case, the
345
- * default mount option for containers will be read-only (ro ) for existing persistent disks and
346
- * read-write (rw ) for other volume types, regardless of the original mount options specified in
347
- * `TaskSpec.Volumes`. If you need different mount settings, you can explicitly configure them in
348
- * this field.
345
+ * formatted to match ` --volume` option for the `docker run` command—for example, ` /foo:/bar` or
346
+ * `/foo:/bar:ro`. If the ` TaskSpec.Volumes` field is specified but this field is not, Batch will
347
+ * mount each volume from the host machine to the container with the same mount path by default.
348
+ * In this case, the default mount option for containers will be read-only (`ro` ) for existing
349
+ * persistent disks and read-write (`rw` ) for other volume types, regardless of the original mount
350
+ * options specified in `TaskSpec.Volumes`. If you need different mount settings, you can
351
+ * explicitly configure them in this field.
349
352
* @param volumes volumes or {@code null} for none
350
353
*/
351
354
public Container setVolumes (java .util .List <java .lang .String > volumes ) {
0 commit comments