google-apis-run_v1alpha1 0.12.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,51 +22,24 @@ module Google
22
22
  module Apis
23
23
  module RunV1alpha1
24
24
 
25
- # Adds and removes POSIX capabilities from running containers.
26
- class Capabilities
27
- include Google::Apis::Core::Hashable
28
-
29
- # Added capabilities +optional
30
- # Corresponds to the JSON property `add`
31
- # @return [Array<String>]
32
- attr_accessor :add
33
-
34
- # Removed capabilities +optional
35
- # Corresponds to the JSON property `drop`
36
- # @return [Array<String>]
37
- attr_accessor :drop
38
-
39
- def initialize(**args)
40
- update!(**args)
41
- end
42
-
43
- # Update properties of this object
44
- def update!(**args)
45
- @add = args[:add] if args.key?(:add)
46
- @drop = args[:drop] if args.key?(:drop)
47
- end
48
- end
49
-
50
- # ConfigMapEnvSource selects a ConfigMap to populate the environment variables
51
- # with. The contents of the target ConfigMap's Data field will represent the key-
52
- # value pairs as environment variables.
25
+ # Not supported by Cloud Run ConfigMapEnvSource selects a ConfigMap to populate
26
+ # the environment variables with. The contents of the target ConfigMap's Data
27
+ # field will represent the key-value pairs as environment variables.
53
28
  class ConfigMapEnvSource
54
29
  include Google::Apis::Core::Hashable
55
30
 
56
- # LocalObjectReference contains enough information to let you locate the
57
- # referenced object inside the same namespace.
31
+ # Not supported by Cloud Run LocalObjectReference contains enough information to
32
+ # let you locate the referenced object inside the same namespace.
58
33
  # Corresponds to the JSON property `localObjectReference`
59
34
  # @return [Google::Apis::RunV1alpha1::LocalObjectReference]
60
35
  attr_accessor :local_object_reference
61
36
 
62
- # Cloud Run fully managed: not supported Cloud Run for Anthos: supported The
63
- # ConfigMap to select from.
37
+ # The ConfigMap to select from.
64
38
  # Corresponds to the JSON property `name`
65
39
  # @return [String]
66
40
  attr_accessor :name
67
41
 
68
- # Cloud Run fully managed: not supported Cloud Run for Anthos: supported Specify
69
- # whether the ConfigMap must be defined +optional
42
+ # (Optional) Specify whether the ConfigMap must be defined
70
43
  # Corresponds to the JSON property `optional`
71
44
  # @return [Boolean]
72
45
  attr_accessor :optional
@@ -84,31 +57,27 @@ module Google
84
57
  end
85
58
  end
86
59
 
87
- # Cloud Run fully managed: not supported Cloud Run on GKE: supported Selects a
88
- # key from a ConfigMap.
60
+ # Not supported by Cloud Run Selects a key from a ConfigMap.
89
61
  class ConfigMapKeySelector
90
62
  include Google::Apis::Core::Hashable
91
63
 
92
- # Cloud Run fully managed: not supported Cloud Run on GKE: supported The key to
93
- # select.
64
+ # The key to select.
94
65
  # Corresponds to the JSON property `key`
95
66
  # @return [String]
96
67
  attr_accessor :key
97
68
 
98
- # LocalObjectReference contains enough information to let you locate the
99
- # referenced object inside the same namespace.
69
+ # Not supported by Cloud Run LocalObjectReference contains enough information to
70
+ # let you locate the referenced object inside the same namespace.
100
71
  # Corresponds to the JSON property `localObjectReference`
101
72
  # @return [Google::Apis::RunV1alpha1::LocalObjectReference]
102
73
  attr_accessor :local_object_reference
103
74
 
104
- # Cloud Run fully managed: not supported Cloud Run on GKE: supported The
105
- # ConfigMap to select from.
75
+ # The ConfigMap to select from.
106
76
  # Corresponds to the JSON property `name`
107
77
  # @return [String]
108
78
  attr_accessor :name
109
79
 
110
- # Cloud Run fully managed: not supported Cloud Run on GKE: supported Specify
111
- # whether the ConfigMap or its key must be defined +optional
80
+ # (Optional) Specify whether the ConfigMap or its key must be defined
112
81
  # Corresponds to the JSON property `optional`
113
82
  # @return [Boolean]
114
83
  attr_accessor :optional
@@ -127,27 +96,34 @@ module Google
127
96
  end
128
97
  end
129
98
 
130
- # Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data
131
- # field will be presented in a volume as files using the keys in the Data field
132
- # as the file names, unless the items element is populated with specific
133
- # mappings of keys to paths.
99
+ # Not supported by Cloud Run Adapts a ConfigMap into a volume. The contents of
100
+ # the target ConfigMap's Data field will be presented in a volume as files using
101
+ # the keys in the Data field as the file names, unless the items element is
102
+ # populated with specific mappings of keys to paths.
134
103
  class ConfigMapVolumeSource
135
104
  include Google::Apis::Core::Hashable
136
105
 
137
- # Mode bits to use on created files by default. Must be a value between 0 and
138
- # 0777. Defaults to 0644. Directories within the path are not affected by this
139
- # setting. This might be in conflict with other options that affect the file
140
- # mode, like fsGroup, and the result can be other mode bits set.
106
+ # (Optional) Integer representation of mode bits to use on created files by
107
+ # default. Must be a value between 01 and 0777 (octal). If 0 or not set, it will
108
+ # default to 0644. Directories within the path are not affected by this setting.
109
+ # Notes * Internally, a umask of 0222 will be applied to any non-zero value. *
110
+ # This is an integer representation of the mode bits. So, the octal integer
111
+ # value should look exactly as the chmod numeric notation with a leading zero.
112
+ # Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10).
113
+ # For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (
114
+ # u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in
115
+ # conflict with other options that affect the file mode, like fsGroup, and the
116
+ # result can be other mode bits set.
141
117
  # Corresponds to the JSON property `defaultMode`
142
118
  # @return [Fixnum]
143
119
  attr_accessor :default_mode
144
120
 
145
- # If unspecified, each key-value pair in the Data field of the referenced Secret
146
- # will be projected into the volume as a file whose name is the key and content
147
- # is the value. If specified, the listed keys will be projected into the
148
- # specified paths, and unlisted keys will not be present. If a key is specified
149
- # which is not present in the Secret, the volume setup will error unless it is
150
- # marked optional.
121
+ # (Optional) If unspecified, each key-value pair in the Data field of the
122
+ # referenced Secret will be projected into the volume as a file whose name is
123
+ # the key and content is the value. If specified, the listed keys will be
124
+ # projected into the specified paths, and unlisted keys will not be present. If
125
+ # a key is specified that is not present in the Secret, the volume setup will
126
+ # error unless it is marked optional.
151
127
  # Corresponds to the JSON property `items`
152
128
  # @return [Array<Google::Apis::RunV1alpha1::KeyToPath>]
153
129
  attr_accessor :items
@@ -157,7 +133,7 @@ module Google
157
133
  # @return [String]
158
134
  attr_accessor :name
159
135
 
160
- # Specify whether the Secret or its keys must be defined.
136
+ # (Optional) Specify whether the Secret or its keys must be defined.
161
137
  # Corresponds to the JSON property `optional`
162
138
  # @return [Boolean]
163
139
  attr_accessor :optional
@@ -182,92 +158,78 @@ module Google
182
158
  class Container
183
159
  include Google::Apis::Core::Hashable
184
160
 
185
- # Arguments to the entrypoint. The docker image's CMD is used if this is not
186
- # provided. Variable references $(VAR_NAME) are expanded using the container's
187
- # environment. If a variable cannot be resolved, the reference in the input
188
- # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $
189
- # $, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of
190
- # whether the variable exists or not. Cannot be updated. More info: https://
161
+ # (Optional) Arguments to the entrypoint. The docker image's CMD is used if this
162
+ # is not provided. Variable references $(VAR_NAME) are expanded using the
163
+ # container's environment. If a variable cannot be resolved, the reference in
164
+ # the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with
165
+ # a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
166
+ # regardless of whether the variable exists or not. More info: https://
191
167
  # kubernetes.io/docs/tasks/inject-data-application/define-command-argument-
192
- # container/#running-a-command-in-a-shell +optional
168
+ # container/#running-a-command-in-a-shell
193
169
  # Corresponds to the JSON property `args`
194
170
  # @return [Array<String>]
195
171
  attr_accessor :args
196
172
 
197
- # Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT
198
- # is used if this is not provided. Variable references $(VAR_NAME) are expanded
199
- # using the container's environment. If a variable cannot be resolved, the
200
- # reference in the input string will be unchanged. The $(VAR_NAME) syntax can be
201
- # escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be
202
- # expanded, regardless of whether the variable exists or not. Cannot be updated.
203
- # More info: https://kubernetes.io/docs/tasks/inject-data-application/define-
204
- # command-argument-container/#running-a-command-in-a-shell +optional
173
+ #
205
174
  # Corresponds to the JSON property `command`
206
175
  # @return [Array<String>]
207
176
  attr_accessor :command
208
177
 
209
- # List of environment variables to set in the container. Cannot be updated. +
210
- # optional
178
+ # (Optional) List of environment variables to set in the container.
211
179
  # Corresponds to the JSON property `env`
212
180
  # @return [Array<Google::Apis::RunV1alpha1::EnvVar>]
213
181
  attr_accessor :env
214
182
 
215
- # List of sources to populate environment variables in the container. The keys
216
- # defined within a source must be a C_IDENTIFIER. All invalid keys will be
217
- # reported as an event when the container is starting. When a key exists in
183
+ # (Optional) List of sources to populate environment variables in the container.
184
+ # The keys defined within a source must be a C_IDENTIFIER. All invalid keys will
185
+ # be reported as an event when the container is starting. When a key exists in
218
186
  # multiple sources, the value associated with the last source will take
219
187
  # precedence. Values defined by an Env with a duplicate key will take precedence.
220
- # Cannot be updated. +optional
188
+ # Cannot be updated.
221
189
  # Corresponds to the JSON property `envFrom`
222
190
  # @return [Array<Google::Apis::RunV1alpha1::EnvFromSource>]
223
191
  attr_accessor :env_from
224
192
 
225
- # Docker image name. More info: https://kubernetes.io/docs/concepts/containers/
226
- # images
193
+ # Only supports containers from Google Container Registry or Artifact Registry
194
+ # URL of the Container image. More info: https://kubernetes.io/docs/concepts/
195
+ # containers/images
227
196
  # Corresponds to the JSON property `image`
228
197
  # @return [String]
229
198
  attr_accessor :image
230
199
 
231
- # Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :
232
- # latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More
233
- # info: https://kubernetes.io/docs/concepts/containers/images#updating-images +
234
- # optional
200
+ # (Optional) Image pull policy. One of Always, Never, IfNotPresent. Defaults to
201
+ # Always if :latest tag is specified, or IfNotPresent otherwise. More info:
202
+ # https://kubernetes.io/docs/concepts/containers/images#updating-images
235
203
  # Corresponds to the JSON property `imagePullPolicy`
236
204
  # @return [String]
237
205
  attr_accessor :image_pull_policy
238
206
 
239
- # Lifecycle describes actions that the management system should take in response
240
- # to container lifecycle events. For the PostStart and PreStop lifecycle
241
- # handlers, management of the container blocks until the action is complete,
242
- # unless the container process fails, in which case the handler is aborted.
243
- # Corresponds to the JSON property `lifecycle`
244
- # @return [Google::Apis::RunV1alpha1::Lifecycle]
245
- attr_accessor :lifecycle
246
-
247
- # Probe describes a health check to be performed against a container to
248
- # determine whether it is alive or ready to receive traffic.
207
+ # Not supported by Cloud Run Probe describes a health check to be performed
208
+ # against a container to determine whether it is alive or ready to receive
209
+ # traffic.
249
210
  # Corresponds to the JSON property `livenessProbe`
250
211
  # @return [Google::Apis::RunV1alpha1::Probe]
251
212
  attr_accessor :liveness_probe
252
213
 
253
- # Name of the container specified as a DNS_LABEL. Each container must have a
254
- # unique name (DNS_LABEL). Cannot be updated.
214
+ # (Optional) Name of the container specified as a DNS_LABEL. Currently unused in
215
+ # Cloud Run. More info: https://kubernetes.io/docs/concepts/overview/working-
216
+ # with-objects/names/#dns-label-names
255
217
  # Corresponds to the JSON property `name`
256
218
  # @return [String]
257
219
  attr_accessor :name
258
220
 
259
- # List of ports to expose from the container. Exposing a port here gives the
260
- # system additional information about the network connections a container uses,
261
- # but is primarily informational. Not specifying a port here DOES NOT prevent
262
- # that port from being exposed. Any port which is listening on the default "0.0.
263
- # 0.0" address inside a container will be accessible from the network. Cannot be
264
- # updated. +optional
221
+ # (Optional) List of ports to expose from the container. Only a single port can
222
+ # be specified. The specified ports must be listening on all interfaces (0.0.0.0)
223
+ # within the container to be accessible. If omitted, a port number will be
224
+ # chosen and passed to the container through the PORT environment variable for
225
+ # the container to listen on.
265
226
  # Corresponds to the JSON property `ports`
266
227
  # @return [Array<Google::Apis::RunV1alpha1::ContainerPort>]
267
228
  attr_accessor :ports
268
229
 
269
- # Probe describes a health check to be performed against a container to
270
- # determine whether it is alive or ready to receive traffic.
230
+ # Not supported by Cloud Run Probe describes a health check to be performed
231
+ # against a container to determine whether it is alive or ready to receive
232
+ # traffic.
271
233
  # Corresponds to the JSON property `readinessProbe`
272
234
  # @return [Google::Apis::RunV1alpha1::Probe]
273
235
  attr_accessor :readiness_probe
@@ -277,77 +239,50 @@ module Google
277
239
  # @return [Google::Apis::RunV1alpha1::ResourceRequirements]
278
240
  attr_accessor :resources
279
241
 
280
- # SecurityContext holds security configuration that will be applied to a
281
- # container. Some fields are present in both SecurityContext and
282
- # PodSecurityContext. When both are set, the values in SecurityContext take
283
- # precedence.
242
+ # Not supported by Cloud Run SecurityContext holds security configuration that
243
+ # will be applied to a container. Some fields are present in both
244
+ # SecurityContext and PodSecurityContext. When both are set, the values in
245
+ # SecurityContext take precedence.
284
246
  # Corresponds to the JSON property `securityContext`
285
247
  # @return [Google::Apis::RunV1alpha1::SecurityContext]
286
248
  attr_accessor :security_context
287
249
 
288
- # Whether this container should allocate a buffer for stdin in the container
289
- # runtime. If this is not set, reads from stdin in the container will always
290
- # result in EOF. Default is false. +optional
291
- # Corresponds to the JSON property `stdin`
292
- # @return [Boolean]
293
- attr_accessor :stdin
294
- alias_method :stdin?, :stdin
295
-
296
- # Whether the container runtime should close the stdin channel after it has been
297
- # opened by a single attach. When stdin is true the stdin stream will remain
298
- # open across multiple attach sessions. If stdinOnce is set to true, stdin is
299
- # opened on container start, is empty until the first client attaches to stdin,
300
- # and then remains open and accepts data until the client disconnects, at which
301
- # time stdin is closed and remains closed until the container is restarted. If
302
- # this flag is false, a container processes that reads from stdin will never
303
- # receive an EOF. Default is false +optional
304
- # Corresponds to the JSON property `stdinOnce`
305
- # @return [Boolean]
306
- attr_accessor :stdin_once
307
- alias_method :stdin_once?, :stdin_once
250
+ # Not supported by Cloud Run Probe describes a health check to be performed
251
+ # against a container to determine whether it is alive or ready to receive
252
+ # traffic.
253
+ # Corresponds to the JSON property `startupProbe`
254
+ # @return [Google::Apis::RunV1alpha1::Probe]
255
+ attr_accessor :startup_probe
308
256
 
309
- # Optional: Path at which the file to which the container's termination message
257
+ # (Optional) Path at which the file to which the container's termination message
310
258
  # will be written is mounted into the container's filesystem. Message written is
311
259
  # intended to be brief final status, such as an assertion failure message. Will
312
260
  # be truncated by the node if greater than 4096 bytes. The total message length
313
261
  # across all containers will be limited to 12kb. Defaults to /dev/termination-
314
- # log. Cannot be updated. +optional
262
+ # log.
315
263
  # Corresponds to the JSON property `terminationMessagePath`
316
264
  # @return [String]
317
265
  attr_accessor :termination_message_path
318
266
 
319
- # Indicate how the termination message should be populated. File will use the
320
- # contents of terminationMessagePath to populate the container status message on
321
- # both success and failure. FallbackToLogsOnError will use the last chunk of
322
- # container log output if the termination message file is empty and the
267
+ # (Optional) Indicate how the termination message should be populated. File will
268
+ # use the contents of terminationMessagePath to populate the container status
269
+ # message on both success and failure. FallbackToLogsOnError will use the last
270
+ # chunk of container log output if the termination message file is empty and the
323
271
  # container exited with an error. The log output is limited to 2048 bytes or 80
324
- # lines, whichever is smaller. Defaults to File. Cannot be updated. +optional
272
+ # lines, whichever is smaller. Defaults to File. Cannot be updated.
325
273
  # Corresponds to the JSON property `terminationMessagePolicy`
326
274
  # @return [String]
327
275
  attr_accessor :termination_message_policy
328
276
 
329
- # Whether this container should allocate a TTY for itself, also requires 'stdin'
330
- # to be true. Default is false. +optional
331
- # Corresponds to the JSON property `tty`
332
- # @return [Boolean]
333
- attr_accessor :tty
334
- alias_method :tty?, :tty
335
-
336
- # volumeDevices is the list of block devices to be used by the container. This
337
- # is an alpha feature and may change in the future. +optional
338
- # Corresponds to the JSON property `volumeDevices`
339
- # @return [Array<Google::Apis::RunV1alpha1::VolumeDevice>]
340
- attr_accessor :volume_devices
341
-
342
- # Pod volumes to mount into the container's filesystem. Cannot be updated. +
343
- # optional
277
+ # (Optional) Volume to mount into the container's filesystem. Only supports
278
+ # SecretVolumeSources. Pod volumes to mount into the container's filesystem.
344
279
  # Corresponds to the JSON property `volumeMounts`
345
280
  # @return [Array<Google::Apis::RunV1alpha1::VolumeMount>]
346
281
  attr_accessor :volume_mounts
347
282
 
348
- # Container's working directory. If not specified, the container runtime's
349
- # default will be used, which might be configured in the container image. Cannot
350
- # be updated. +optional
283
+ # (Optional) Container's working directory. If not specified, the container
284
+ # runtime's default will be used, which might be configured in the container
285
+ # image.
351
286
  # Corresponds to the JSON property `workingDir`
352
287
  # @return [String]
353
288
  attr_accessor :working_dir
@@ -364,19 +299,15 @@ module Google
364
299
  @env_from = args[:env_from] if args.key?(:env_from)
365
300
  @image = args[:image] if args.key?(:image)
366
301
  @image_pull_policy = args[:image_pull_policy] if args.key?(:image_pull_policy)
367
- @lifecycle = args[:lifecycle] if args.key?(:lifecycle)
368
302
  @liveness_probe = args[:liveness_probe] if args.key?(:liveness_probe)
369
303
  @name = args[:name] if args.key?(:name)
370
304
  @ports = args[:ports] if args.key?(:ports)
371
305
  @readiness_probe = args[:readiness_probe] if args.key?(:readiness_probe)
372
306
  @resources = args[:resources] if args.key?(:resources)
373
307
  @security_context = args[:security_context] if args.key?(:security_context)
374
- @stdin = args[:stdin] if args.key?(:stdin)
375
- @stdin_once = args[:stdin_once] if args.key?(:stdin_once)
308
+ @startup_probe = args[:startup_probe] if args.key?(:startup_probe)
376
309
  @termination_message_path = args[:termination_message_path] if args.key?(:termination_message_path)
377
310
  @termination_message_policy = args[:termination_message_policy] if args.key?(:termination_message_policy)
378
- @tty = args[:tty] if args.key?(:tty)
379
- @volume_devices = args[:volume_devices] if args.key?(:volume_devices)
380
311
  @volume_mounts = args[:volume_mounts] if args.key?(:volume_mounts)
381
312
  @working_dir = args[:working_dir] if args.key?(:working_dir)
382
313
  end
@@ -386,32 +317,19 @@ module Google
386
317
  class ContainerPort
387
318
  include Google::Apis::Core::Hashable
388
319
 
389
- # Number of port to expose on the pod's IP address. This must be a valid port
320
+ # (Optional) Port number the container listens on. This must be a valid port
390
321
  # number, 0 < x < 65536.
391
322
  # Corresponds to the JSON property `containerPort`
392
323
  # @return [Fixnum]
393
324
  attr_accessor :container_port
394
325
 
395
- # What host IP to bind the external port to. +optional
396
- # Corresponds to the JSON property `hostIP`
397
- # @return [String]
398
- attr_accessor :host_ip
399
-
400
- # Number of port to expose on the host. If specified, this must be a valid port
401
- # number, 0 < x < 65536. If HostNetwork is specified, this must match
402
- # ContainerPort. Most containers do not need this. +optional
403
- # Corresponds to the JSON property `hostPort`
404
- # @return [Fixnum]
405
- attr_accessor :host_port
406
-
407
- # If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
408
- # named port in a pod must have a unique name. Name for the port that can be
409
- # referred to by services. +optional
326
+ # (Optional) If specified, used to specify which protocol to use. Allowed values
327
+ # are "http1" and "h2c".
410
328
  # Corresponds to the JSON property `name`
411
329
  # @return [String]
412
330
  attr_accessor :name
413
331
 
414
- # Protocol for port. Must be UDP or TCP. Defaults to "TCP". +optional
332
+ # (Optional) Protocol for port. Must be "TCP". Defaults to "TCP".
415
333
  # Corresponds to the JSON property `protocol`
416
334
  # @return [String]
417
335
  attr_accessor :protocol
@@ -423,8 +341,6 @@ module Google
423
341
  # Update properties of this object
424
342
  def update!(**args)
425
343
  @container_port = args[:container_port] if args.key?(:container_port)
426
- @host_ip = args[:host_ip] if args.key?(:host_ip)
427
- @host_port = args[:host_port] if args.key?(:host_port)
428
344
  @name = args[:name] if args.key?(:name)
429
345
  @protocol = args[:protocol] if args.key?(:protocol)
430
346
  end
@@ -447,26 +363,27 @@ module Google
447
363
  end
448
364
  end
449
365
 
450
- # EnvFromSource represents the source of a set of ConfigMaps
366
+ # Not supported by Cloud Run EnvFromSource represents the source of a set of
367
+ # ConfigMaps
451
368
  class EnvFromSource
452
369
  include Google::Apis::Core::Hashable
453
370
 
454
- # ConfigMapEnvSource selects a ConfigMap to populate the environment variables
455
- # with. The contents of the target ConfigMap's Data field will represent the key-
456
- # value pairs as environment variables.
371
+ # Not supported by Cloud Run ConfigMapEnvSource selects a ConfigMap to populate
372
+ # the environment variables with. The contents of the target ConfigMap's Data
373
+ # field will represent the key-value pairs as environment variables.
457
374
  # Corresponds to the JSON property `configMapRef`
458
375
  # @return [Google::Apis::RunV1alpha1::ConfigMapEnvSource]
459
376
  attr_accessor :config_map_ref
460
377
 
461
- # An optional identifier to prepend to each key in the ConfigMap. Must be a
462
- # C_IDENTIFIER. +optional
378
+ # (Optional) An optional identifier to prepend to each key in the ConfigMap.
379
+ # Must be a C_IDENTIFIER.
463
380
  # Corresponds to the JSON property `prefix`
464
381
  # @return [String]
465
382
  attr_accessor :prefix
466
383
 
467
- # SecretEnvSource selects a Secret to populate the environment variables with.
468
- # The contents of the target Secret's Data field will represent the key-value
469
- # pairs as environment variables.
384
+ # Not supported by Cloud Run SecretEnvSource selects a Secret to populate the
385
+ # environment variables with. The contents of the target Secret's Data field
386
+ # will represent the key-value pairs as environment variables.
470
387
  # Corresponds to the JSON property `secretRef`
471
388
  # @return [Google::Apis::RunV1alpha1::SecretEnvSource]
472
389
  attr_accessor :secret_ref
@@ -492,17 +409,16 @@ module Google
492
409
  # @return [String]
493
410
  attr_accessor :name
494
411
 
495
- # Variable references $(VAR_NAME) are expanded using the previous defined
496
- # environment variables in the container and any route environment variables. If
497
- # a variable cannot be resolved, the reference in the input string will be
498
- # unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(
499
- # VAR_NAME). Escaped references will never be expanded, regardless of whether
500
- # the variable exists or not. Defaults to "". +optional
412
+ # (Optional) Variable references $(VAR_NAME) are expanded using the previous
413
+ # defined environment variables in the container and any route environment
414
+ # variables. If a variable cannot be resolved, the reference in the input string
415
+ # will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie:
416
+ # $$(VAR_NAME). Escaped references will never be expanded, regardless of whether
417
+ # the variable exists or not. Defaults to "".
501
418
  # Corresponds to the JSON property `value`
502
419
  # @return [String]
503
420
  attr_accessor :value
504
421
 
505
- # Cloud Run fully managed: not supported Cloud Run on GKE: supported
506
422
  # EnvVarSource represents a source for the value of an EnvVar.
507
423
  # Corresponds to the JSON property `valueFrom`
508
424
  # @return [Google::Apis::RunV1alpha1::EnvVarSource]
@@ -520,18 +436,15 @@ module Google
520
436
  end
521
437
  end
522
438
 
523
- # Cloud Run fully managed: not supported Cloud Run on GKE: supported
524
439
  # EnvVarSource represents a source for the value of an EnvVar.
525
440
  class EnvVarSource
526
441
  include Google::Apis::Core::Hashable
527
442
 
528
- # Cloud Run fully managed: not supported Cloud Run on GKE: supported Selects a
529
- # key from a ConfigMap.
443
+ # Not supported by Cloud Run Selects a key from a ConfigMap.
530
444
  # Corresponds to the JSON property `configMapKeyRef`
531
445
  # @return [Google::Apis::RunV1alpha1::ConfigMapKeySelector]
532
446
  attr_accessor :config_map_key_ref
533
447
 
534
- # Cloud Run fully managed: supported Cloud Run on GKE: supported
535
448
  # SecretKeySelector selects a key of a Secret.
536
449
  # Corresponds to the JSON property `secretKeyRef`
537
450
  # @return [Google::Apis::RunV1alpha1::SecretKeySelector]
@@ -548,16 +461,16 @@ module Google
548
461
  end
549
462
  end
550
463
 
551
- # ExecAction describes a "run in container" action.
464
+ # Not supported by Cloud Run ExecAction describes a "run in container" action.
552
465
  class ExecAction
553
466
  include Google::Apis::Core::Hashable
554
467
 
555
- # Command is the command line to execute inside the container, the working
556
- # directory for the command is root ('/') in the container's filesystem. The
557
- # command is simply exec'd, it is not run inside a shell, so traditional shell
558
- # instructions ('|', etc) won't work. To use a shell, you need to explicitly
559
- # call out to that shell. Exit status of 0 is treated as live/healthy and non-
560
- # zero is unhealthy. +optional
468
+ # (Optional) Command is the command line to execute inside the container, the
469
+ # working directory for the command is root ('/') in the container's filesystem.
470
+ # The command is simply exec'd, it is not run inside a shell, so traditional
471
+ # shell instructions ('|', etc) won't work. To use a shell, you need to
472
+ # explicitly call out to that shell. Exit status of 0 is treated as live/healthy
473
+ # and non-zero is unhealthy.
561
474
  # Corresponds to the JSON property `command`
562
475
  # @return [Array<String>]
563
476
  attr_accessor :command
@@ -572,35 +485,67 @@ module Google
572
485
  end
573
486
  end
574
487
 
575
- # HTTPGetAction describes an action based on HTTP Get requests.
488
+ # The `Status` type defines a logical error model that is suitable for different
489
+ # programming environments, including REST APIs and RPC APIs. It is used by [
490
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
491
+ # data: error code, error message, and error details. You can find out more
492
+ # about this error model and how to work with it in the [API Design Guide](https:
493
+ # //cloud.google.com/apis/design/errors).
494
+ class GoogleRpcStatus
495
+ include Google::Apis::Core::Hashable
496
+
497
+ # The status code, which should be an enum value of google.rpc.Code.
498
+ # Corresponds to the JSON property `code`
499
+ # @return [Fixnum]
500
+ attr_accessor :code
501
+
502
+ # A list of messages that carry the error details. There is a common set of
503
+ # message types for APIs to use.
504
+ # Corresponds to the JSON property `details`
505
+ # @return [Array<Hash<String,Object>>]
506
+ attr_accessor :details
507
+
508
+ # A developer-facing error message, which should be in English. Any user-facing
509
+ # error message should be localized and sent in the google.rpc.Status.details
510
+ # field, or localized by the client.
511
+ # Corresponds to the JSON property `message`
512
+ # @return [String]
513
+ attr_accessor :message
514
+
515
+ def initialize(**args)
516
+ update!(**args)
517
+ end
518
+
519
+ # Update properties of this object
520
+ def update!(**args)
521
+ @code = args[:code] if args.key?(:code)
522
+ @details = args[:details] if args.key?(:details)
523
+ @message = args[:message] if args.key?(:message)
524
+ end
525
+ end
526
+
527
+ # Not supported by Cloud Run HTTPGetAction describes an action based on HTTP Get
528
+ # requests.
576
529
  class HttpGetAction
577
530
  include Google::Apis::Core::Hashable
578
531
 
579
- # Host name to connect to, defaults to the pod IP. You probably want to set "
580
- # Host" in httpHeaders instead. +optional
532
+ # (Optional) Host name to connect to, defaults to the pod IP. You probably want
533
+ # to set "Host" in httpHeaders instead.
581
534
  # Corresponds to the JSON property `host`
582
535
  # @return [String]
583
536
  attr_accessor :host
584
537
 
585
- # Custom headers to set in the request. HTTP allows repeated headers. +optional
538
+ # (Optional) Custom headers to set in the request. HTTP allows repeated headers.
586
539
  # Corresponds to the JSON property `httpHeaders`
587
540
  # @return [Array<Google::Apis::RunV1alpha1::HttpHeader>]
588
541
  attr_accessor :http_headers
589
542
 
590
- # Path to access on the HTTP server. +optional
543
+ # (Optional) Path to access on the HTTP server.
591
544
  # Corresponds to the JSON property `path`
592
545
  # @return [String]
593
546
  attr_accessor :path
594
547
 
595
- # IntOrString is a type that can hold an int32 or a string. When used in JSON or
596
- # YAML marshalling and unmarshalling, it produces or consumes the inner type.
597
- # This allows you to have, for example, a JSON field that can accept a name or
598
- # number.
599
- # Corresponds to the JSON property `port`
600
- # @return [Google::Apis::RunV1alpha1::IntOrString]
601
- attr_accessor :port
602
-
603
- # Scheme to use for connecting to the host. Defaults to HTTP. +optional
548
+ # (Optional) Scheme to use for connecting to the host. Defaults to HTTP.
604
549
  # Corresponds to the JSON property `scheme`
605
550
  # @return [String]
606
551
  attr_accessor :scheme
@@ -614,12 +559,12 @@ module Google
614
559
  @host = args[:host] if args.key?(:host)
615
560
  @http_headers = args[:http_headers] if args.key?(:http_headers)
616
561
  @path = args[:path] if args.key?(:path)
617
- @port = args[:port] if args.key?(:port)
618
562
  @scheme = args[:scheme] if args.key?(:scheme)
619
563
  end
620
564
  end
621
565
 
622
- # HTTPHeader describes a custom header to be used in HTTP probes
566
+ # Not supported by Cloud Run HTTPHeader describes a custom header to be used in
567
+ # HTTP probes
623
568
  class HttpHeader
624
569
  include Google::Apis::Core::Hashable
625
570
 
@@ -644,24 +589,26 @@ module Google
644
589
  end
645
590
  end
646
591
 
647
- # Handler defines a specific action that should be taken
648
- class Handler
592
+ # Result of an instance attempt.
593
+ class InstanceAttemptResult
649
594
  include Google::Apis::Core::Hashable
650
595
 
651
- # ExecAction describes a "run in container" action.
652
- # Corresponds to the JSON property `exec`
653
- # @return [Google::Apis::RunV1alpha1::ExecAction]
654
- attr_accessor :exec
655
-
656
- # HTTPGetAction describes an action based on HTTP Get requests.
657
- # Corresponds to the JSON property `httpGet`
658
- # @return [Google::Apis::RunV1alpha1::HttpGetAction]
659
- attr_accessor :http_get
660
-
661
- # TCPSocketAction describes an action based on opening a socket
662
- # Corresponds to the JSON property `tcpSocket`
663
- # @return [Google::Apis::RunV1alpha1::TcpSocketAction]
664
- attr_accessor :tcp_socket
596
+ # Optional. The exit code of this attempt. This may be unset if the container
597
+ # was unable to exit cleanly with a code due to some other failure. See status
598
+ # field for possible failure details.
599
+ # Corresponds to the JSON property `exitCode`
600
+ # @return [Fixnum]
601
+ attr_accessor :exit_code
602
+
603
+ # The `Status` type defines a logical error model that is suitable for different
604
+ # programming environments, including REST APIs and RPC APIs. It is used by [
605
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
606
+ # data: error code, error message, and error details. You can find out more
607
+ # about this error model and how to work with it in the [API Design Guide](https:
608
+ # //cloud.google.com/apis/design/errors).
609
+ # Corresponds to the JSON property `status`
610
+ # @return [Google::Apis::RunV1alpha1::GoogleRpcStatus]
611
+ attr_accessor :status
665
612
 
666
613
  def initialize(**args)
667
614
  update!(**args)
@@ -669,9 +616,8 @@ module Google
669
616
 
670
617
  # Update properties of this object
671
618
  def update!(**args)
672
- @exec = args[:exec] if args.key?(:exec)
673
- @http_get = args[:http_get] if args.key?(:http_get)
674
- @tcp_socket = args[:tcp_socket] if args.key?(:tcp_socket)
619
+ @exit_code = args[:exit_code] if args.key?(:exit_code)
620
+ @status = args[:status] if args.key?(:status)
675
621
  end
676
622
  end
677
623
 
@@ -763,6 +709,11 @@ module Google
763
709
  # @return [Fixnum]
764
710
  attr_accessor :index
765
711
 
712
+ # Result of an instance attempt.
713
+ # Corresponds to the JSON property `lastAttemptResult`
714
+ # @return [Google::Apis::RunV1alpha1::InstanceAttemptResult]
715
+ attr_accessor :last_attempt_result
716
+
766
717
  # Optional. Last exit code seen for this instance. +optional
767
718
  # Corresponds to the JSON property `lastExitCode`
768
719
  # @return [Fixnum]
@@ -796,6 +747,7 @@ module Google
796
747
  @completion_time = args[:completion_time] if args.key?(:completion_time)
797
748
  @failed = args[:failed] if args.key?(:failed)
798
749
  @index = args[:index] if args.key?(:index)
750
+ @last_attempt_result = args[:last_attempt_result] if args.key?(:last_attempt_result)
799
751
  @last_exit_code = args[:last_exit_code] if args.key?(:last_exit_code)
800
752
  @restarted = args[:restarted] if args.key?(:restarted)
801
753
  @start_time = args[:start_time] if args.key?(:start_time)
@@ -823,40 +775,6 @@ module Google
823
775
  end
824
776
  end
825
777
 
826
- # IntOrString is a type that can hold an int32 or a string. When used in JSON or
827
- # YAML marshalling and unmarshalling, it produces or consumes the inner type.
828
- # This allows you to have, for example, a JSON field that can accept a name or
829
- # number.
830
- class IntOrString
831
- include Google::Apis::Core::Hashable
832
-
833
- # The int value.
834
- # Corresponds to the JSON property `intVal`
835
- # @return [Fixnum]
836
- attr_accessor :int_val
837
-
838
- # The string value.
839
- # Corresponds to the JSON property `strVal`
840
- # @return [String]
841
- attr_accessor :str_val
842
-
843
- # The type of the value.
844
- # Corresponds to the JSON property `type`
845
- # @return [Fixnum]
846
- attr_accessor :type
847
-
848
- def initialize(**args)
849
- update!(**args)
850
- end
851
-
852
- # Update properties of this object
853
- def update!(**args)
854
- @int_val = args[:int_val] if args.key?(:int_val)
855
- @str_val = args[:str_val] if args.key?(:str_val)
856
- @type = args[:type] if args.key?(:type)
857
- end
858
- end
859
-
860
778
  # Job represents the configuration of a single job. A job an immutable resource
861
779
  # that references a container image which is run to completion.
862
780
  class Job
@@ -879,8 +797,8 @@ module Google
879
797
  # @return [String]
880
798
  attr_accessor :kind
881
799
 
882
- # ObjectMeta is metadata that all persisted resources must have, which includes
883
- # all objects users must create.
800
+ # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted
801
+ # resources must have, which includes all objects users must create.
884
802
  # Corresponds to the JSON property `metadata`
885
803
  # @return [Google::Apis::RunV1alpha1::ObjectMeta]
886
804
  attr_accessor :metadata
@@ -940,7 +858,7 @@ module Google
940
858
  attr_accessor :status
941
859
 
942
860
  # Required. Type is used to communicate the status of the reconciliation process.
943
- # See also: https://github.com/knative/serving/blob/master/docs/spec/errors.md#
861
+ # See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#
944
862
  # error-conditions-and-reporting Types include: * "Completed": True when the Job
945
863
  # has successfully completed. * "Started": True when the Job has successfully
946
864
  # started running. * "ResourcesAvailable": True when underlying resources have
@@ -1113,24 +1031,28 @@ module Google
1113
1031
  class KeyToPath
1114
1032
  include Google::Apis::Core::Hashable
1115
1033
 
1116
- # Cloud Run fully managed: supported The Cloud Secret Manager secret version.
1117
- # Can be 'latest' for the latest value or an integer for a specific version.
1118
- # Cloud Run for Anthos: supported The key to project.
1034
+ # The Cloud Secret Manager secret version. Can be 'latest' for the latest value
1035
+ # or an integer for a specific version. The key to project.
1119
1036
  # Corresponds to the JSON property `key`
1120
1037
  # @return [String]
1121
1038
  attr_accessor :key
1122
1039
 
1123
- # Mode bits to use on this file, must be a value between 0 and 0777. If not
1124
- # specified, the volume defaultMode will be used. This might be in conflict with
1125
- # other options that affect the file mode, like fsGroup, and the result can be
1126
- # other mode bits set. +optional
1040
+ # (Optional) Mode bits to use on this file, must be a value between 01 and 0777 (
1041
+ # octal). If 0 or not set, the Volume's default mode will be used. Notes *
1042
+ # Internally, a umask of 0222 will be applied to any non-zero value. * This is
1043
+ # an integer representation of the mode bits. So, the octal integer value should
1044
+ # look exactly as the chmod numeric notation with a leading zero. Some examples:
1045
+ # for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For chmod 640 (u=
1046
+ # rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx),
1047
+ # set to 0755 (octal) or 493 (base-10). * This might be in conflict with other
1048
+ # options that affect the file mode, like fsGroup, and the result can be other
1049
+ # mode bits set.
1127
1050
  # Corresponds to the JSON property `mode`
1128
1051
  # @return [Fixnum]
1129
1052
  attr_accessor :mode
1130
1053
 
1131
- # Cloud Run fully managed: supported Cloud Run for Anthos: supported The
1132
- # relative path of the file to map the key to. May not be an absolute path. May
1133
- # not contain the path element '..'. May not start with the string '..'.
1054
+ # The relative path of the file to map the key to. May not be an absolute path.
1055
+ # May not contain the path element '..'. May not start with the string '..'.
1134
1056
  # Corresponds to the JSON property `path`
1135
1057
  # @return [String]
1136
1058
  attr_accessor :path
@@ -1147,34 +1069,6 @@ module Google
1147
1069
  end
1148
1070
  end
1149
1071
 
1150
- # Lifecycle describes actions that the management system should take in response
1151
- # to container lifecycle events. For the PostStart and PreStop lifecycle
1152
- # handlers, management of the container blocks until the action is complete,
1153
- # unless the container process fails, in which case the handler is aborted.
1154
- class Lifecycle
1155
- include Google::Apis::Core::Hashable
1156
-
1157
- # Handler defines a specific action that should be taken
1158
- # Corresponds to the JSON property `postStart`
1159
- # @return [Google::Apis::RunV1alpha1::Handler]
1160
- attr_accessor :post_start
1161
-
1162
- # Handler defines a specific action that should be taken
1163
- # Corresponds to the JSON property `preStop`
1164
- # @return [Google::Apis::RunV1alpha1::Handler]
1165
- attr_accessor :pre_stop
1166
-
1167
- def initialize(**args)
1168
- update!(**args)
1169
- end
1170
-
1171
- # Update properties of this object
1172
- def update!(**args)
1173
- @post_start = args[:post_start] if args.key?(:post_start)
1174
- @pre_stop = args[:pre_stop] if args.key?(:pre_stop)
1175
- end
1176
- end
1177
-
1178
1072
  # ListJobsResponse is a list of Jobs resources.
1179
1073
  class ListJobsResponse
1180
1074
  include Google::Apis::Core::Hashable
@@ -1277,13 +1171,13 @@ module Google
1277
1171
  end
1278
1172
  end
1279
1173
 
1280
- # LocalObjectReference contains enough information to let you locate the
1281
- # referenced object inside the same namespace.
1174
+ # Not supported by Cloud Run LocalObjectReference contains enough information to
1175
+ # let you locate the referenced object inside the same namespace.
1282
1176
  class LocalObjectReference
1283
1177
  include Google::Apis::Core::Hashable
1284
1178
 
1285
- # Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/
1286
- # working-with-objects/names/#names
1179
+ # (Optional) Name of the referent. More info: https://kubernetes.io/docs/
1180
+ # concepts/overview/working-with-objects/names/#names
1287
1181
  # Corresponds to the JSON property `name`
1288
1182
  # @return [String]
1289
1183
  attr_accessor :name
@@ -1298,78 +1192,77 @@ module Google
1298
1192
  end
1299
1193
  end
1300
1194
 
1301
- # ObjectMeta is metadata that all persisted resources must have, which includes
1302
- # all objects users must create.
1195
+ # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted
1196
+ # resources must have, which includes all objects users must create.
1303
1197
  class ObjectMeta
1304
1198
  include Google::Apis::Core::Hashable
1305
1199
 
1306
- # Annotations is an unstructured key value map stored with a resource that may
1307
- # be set by external tools to store and retrieve arbitrary metadata. They are
1308
- # not queryable and should be preserved when modifying objects. More info: http:/
1309
- # /kubernetes.io/docs/user-guide/annotations +optional
1200
+ # (Optional) Annotations is an unstructured key value map stored with a resource
1201
+ # that may be set by external tools to store and retrieve arbitrary metadata.
1202
+ # They are not queryable and should be preserved when modifying objects. More
1203
+ # info: http://kubernetes.io/docs/user-guide/annotations
1310
1204
  # Corresponds to the JSON property `annotations`
1311
1205
  # @return [Hash<String,String>]
1312
1206
  attr_accessor :annotations
1313
1207
 
1314
- # Not currently supported by Cloud Run. The name of the cluster which the object
1208
+ # (Optional) Not supported by Cloud Run The name of the cluster which the object
1315
1209
  # belongs to. This is used to distinguish resources with same name and namespace
1316
1210
  # in different clusters. This field is not set anywhere right now and apiserver
1317
- # is going to ignore it if set in create or update request. +optional
1211
+ # is going to ignore it if set in create or update request.
1318
1212
  # Corresponds to the JSON property `clusterName`
1319
1213
  # @return [String]
1320
1214
  attr_accessor :cluster_name
1321
1215
 
1322
- # CreationTimestamp is a timestamp representing the server time when this object
1323
- # was created. It is not guaranteed to be set in happens-before order across
1324
- # separate operations. Clients may not set this value. It is represented in
1325
- # RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists.
1326
- # More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#
1327
- # metadata +optional
1216
+ # (Optional) CreationTimestamp is a timestamp representing the server time when
1217
+ # this object was created. It is not guaranteed to be set in happens-before
1218
+ # order across separate operations. Clients may not set this value. It is
1219
+ # represented in RFC3339 form and is in UTC. Populated by the system. Read-only.
1220
+ # Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-
1221
+ # conventions.md#metadata
1328
1222
  # Corresponds to the JSON property `creationTimestamp`
1329
1223
  # @return [String]
1330
1224
  attr_accessor :creation_timestamp
1331
1225
 
1332
- # Not currently supported by Cloud Run. Number of seconds allowed for this
1226
+ # (Optional) Not supported by Cloud Run Number of seconds allowed for this
1333
1227
  # object to gracefully terminate before it will be removed from the system. Only
1334
- # set when deletionTimestamp is also set. May only be shortened. Read-only. +
1335
- # optional
1228
+ # set when deletionTimestamp is also set. May only be shortened. Read-only.
1336
1229
  # Corresponds to the JSON property `deletionGracePeriodSeconds`
1337
1230
  # @return [Fixnum]
1338
1231
  attr_accessor :deletion_grace_period_seconds
1339
1232
 
1340
- # DeletionTimestamp is RFC 3339 date and time at which this resource will be
1341
- # deleted. This field is set by the server when a graceful deletion is requested
1342
- # by the user, and is not directly settable by a client. The resource is
1343
- # expected to be deleted (no longer visible from resource lists, and not
1344
- # reachable by name) after the time in this field, once the finalizers list is
1345
- # empty. As long as the finalizers list contains items, deletion is blocked.
1346
- # Once the deletionTimestamp is set, this value may not be unset or be set
1347
- # further into the future, although it may be shortened or the resource may be
1348
- # deleted prior to this time. For example, a user may request that a pod is
1349
- # deleted in 30 seconds. The Kubelet will react by sending a graceful
1350
- # termination signal to the containers in the pod. After that 30 seconds, the
1351
- # Kubelet will send a hard termination signal (SIGKILL) to the container and
1352
- # after cleanup, remove the pod from the API. In the presence of network
1353
- # partitions, this object may still exist after this timestamp, until an
1354
- # administrator or automated process can determine the resource is fully
1233
+ # (Optional) Not supported by Cloud Run DeletionTimestamp is RFC 3339 date and
1234
+ # time at which this resource will be deleted. This field is set by the server
1235
+ # when a graceful deletion is requested by the user, and is not directly
1236
+ # settable by a client. The resource is expected to be deleted (no longer
1237
+ # visible from resource lists, and not reachable by name) after the time in this
1238
+ # field, once the finalizers list is empty. As long as the finalizers list
1239
+ # contains items, deletion is blocked. Once the deletionTimestamp is set, this
1240
+ # value may not be unset or be set further into the future, although it may be
1241
+ # shortened or the resource may be deleted prior to this time. For example, a
1242
+ # user may request that a pod is deleted in 30 seconds. The Kubelet will react
1243
+ # by sending a graceful termination signal to the containers in the pod. After
1244
+ # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to
1245
+ # the container and after cleanup, remove the pod from the API. In the presence
1246
+ # of network partitions, this object may still exist after this timestamp, until
1247
+ # an administrator or automated process can determine the resource is fully
1355
1248
  # terminated. If not set, graceful deletion of the object has not been requested.
1356
1249
  # Populated by the system when a graceful deletion is requested. Read-only.
1357
1250
  # More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#
1358
- # metadata +optional
1251
+ # metadata
1359
1252
  # Corresponds to the JSON property `deletionTimestamp`
1360
1253
  # @return [String]
1361
1254
  attr_accessor :deletion_timestamp
1362
1255
 
1363
- # Not currently supported by Cloud Run. Must be empty before the object is
1256
+ # (Optional) Not supported by Cloud Run Must be empty before the object is
1364
1257
  # deleted from the registry. Each entry is an identifier for the responsible
1365
1258
  # component that will remove the entry from the list. If the deletionTimestamp
1366
- # of the object is non-nil, entries in this list can only be removed. +optional +
1259
+ # of the object is non-nil, entries in this list can only be removed. +
1367
1260
  # patchStrategy=merge
1368
1261
  # Corresponds to the JSON property `finalizers`
1369
1262
  # @return [Array<String>]
1370
1263
  attr_accessor :finalizers
1371
1264
 
1372
- # Not currently supported by Cloud Run. GenerateName is an optional prefix, used
1265
+ # (Optional) Not supported by Cloud Run GenerateName is an optional prefix, used
1373
1266
  # by the server, to generate a unique name ONLY IF the Name field has not been
1374
1267
  # provided. If this field is used, the name returned to the client will be
1375
1268
  # different than the name passed. This value will also be combined with a unique
@@ -1381,20 +1274,20 @@ module Google
1381
1274
  # in the time allotted, and the client should retry (optionally after the time
1382
1275
  # indicated in the Retry-After header). Applied only if Name is not specified.
1383
1276
  # More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#
1384
- # idempotency +optional string generateName = 2;
1277
+ # idempotency string generateName = 2;
1385
1278
  # Corresponds to the JSON property `generateName`
1386
1279
  # @return [String]
1387
1280
  attr_accessor :generate_name
1388
1281
 
1389
- # A sequence number representing a specific generation of the desired state.
1390
- # Populated by the system. Read-only. +optional
1282
+ # (Optional) A sequence number representing a specific generation of the desired
1283
+ # state. Populated by the system. Read-only.
1391
1284
  # Corresponds to the JSON property `generation`
1392
1285
  # @return [Fixnum]
1393
1286
  attr_accessor :generation
1394
1287
 
1395
- # Map of string keys and values that can be used to organize and categorize (
1396
- # scope and select) objects. May match selectors of replication controllers and
1397
- # routes. More info: http://kubernetes.io/docs/user-guide/labels +optional
1288
+ # (Optional) Map of string keys and values that can be used to organize and
1289
+ # categorize (scope and select) objects. May match selectors of replication
1290
+ # controllers and routes. More info: http://kubernetes.io/docs/user-guide/labels
1398
1291
  # Corresponds to the JSON property `labels`
1399
1292
  # @return [Hash<String,String>]
1400
1293
  attr_accessor :labels
@@ -1416,35 +1309,36 @@ module Google
1416
1309
  # @return [String]
1417
1310
  attr_accessor :namespace
1418
1311
 
1419
- # List of objects that own this object. If ALL objects in the list have been
1420
- # deleted, this object will be garbage collected. +optional
1312
+ # (Optional) Not supported by Cloud Run List of objects that own this object. If
1313
+ # ALL objects in the list have been deleted, this object will be garbage
1314
+ # collected.
1421
1315
  # Corresponds to the JSON property `ownerReferences`
1422
1316
  # @return [Array<Google::Apis::RunV1alpha1::OwnerReference>]
1423
1317
  attr_accessor :owner_references
1424
1318
 
1425
- # An opaque value that represents the internal version of this object that can
1426
- # be used by clients to determine when objects have changed. May be used for
1427
- # optimistic concurrency, change detection, and the watch operation on a
1428
- # resource or set of resources. Clients must treat these values as opaque and
1429
- # passed unmodified back to the server. They may only be valid for a particular
1430
- # resource or set of resources. Populated by the system. Read-only. Value must
1431
- # be treated as opaque by clients and . More info: https://git.k8s.io/community/
1432
- # contributors/devel/api-conventions.md#concurrency-control-and-consistency +
1433
- # optional
1319
+ # Optional. An opaque value that represents the internal version of this object
1320
+ # that can be used by clients to determine when objects have changed. May be
1321
+ # used for optimistic concurrency, change detection, and the watch operation on
1322
+ # a resource or set of resources. Clients must treat these values as opaque and
1323
+ # passed unmodified back to the server or omit the value to disable conflict-
1324
+ # detection. They may only be valid for a particular resource or set of
1325
+ # resources. Populated by the system. Read-only. Value must be treated as opaque
1326
+ # by clients or omitted. More info: https://git.k8s.io/community/contributors/
1327
+ # devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
1434
1328
  # Corresponds to the JSON property `resourceVersion`
1435
1329
  # @return [String]
1436
1330
  attr_accessor :resource_version
1437
1331
 
1438
- # SelfLink is a URL representing this object. Populated by the system. Read-only.
1439
- # +optional string selfLink = 4;
1332
+ # (Optional) SelfLink is a URL representing this object. Populated by the system.
1333
+ # Read-only. string selfLink = 4;
1440
1334
  # Corresponds to the JSON property `selfLink`
1441
1335
  # @return [String]
1442
1336
  attr_accessor :self_link
1443
1337
 
1444
- # UID is the unique in time and space value for this object. It is typically
1445
- # generated by the server on successful creation of a resource and is not
1446
- # allowed to change on PUT operations. Populated by the system. Read-only. More
1447
- # info: http://kubernetes.io/docs/user-guide/identifiers#uids +optional
1338
+ # (Optional) UID is the unique in time and space value for this object. It is
1339
+ # typically generated by the server on successful creation of a resource and is
1340
+ # not allowed to change on PUT operations. Populated by the system. Read-only.
1341
+ # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
1448
1342
  # Corresponds to the JSON property `uid`
1449
1343
  # @return [String]
1450
1344
  attr_accessor :uid
@@ -1533,45 +1427,58 @@ module Google
1533
1427
  end
1534
1428
  end
1535
1429
 
1536
- # Probe describes a health check to be performed against a container to
1537
- # determine whether it is alive or ready to receive traffic.
1430
+ # Not supported by Cloud Run Probe describes a health check to be performed
1431
+ # against a container to determine whether it is alive or ready to receive
1432
+ # traffic.
1538
1433
  class Probe
1539
1434
  include Google::Apis::Core::Hashable
1540
1435
 
1541
- # Minimum consecutive failures for the probe to be considered failed after
1542
- # having succeeded. Defaults to 3. Minimum value is 1. +optional
1436
+ # Not supported by Cloud Run ExecAction describes a "run in container" action.
1437
+ # Corresponds to the JSON property `exec`
1438
+ # @return [Google::Apis::RunV1alpha1::ExecAction]
1439
+ attr_accessor :exec
1440
+
1441
+ # (Optional) Minimum consecutive failures for the probe to be considered failed
1442
+ # after having succeeded. Defaults to 3. Minimum value is 1.
1543
1443
  # Corresponds to the JSON property `failureThreshold`
1544
1444
  # @return [Fixnum]
1545
1445
  attr_accessor :failure_threshold
1546
1446
 
1547
- # Handler defines a specific action that should be taken
1548
- # Corresponds to the JSON property `handler`
1549
- # @return [Google::Apis::RunV1alpha1::Handler]
1550
- attr_accessor :handler
1447
+ # Not supported by Cloud Run HTTPGetAction describes an action based on HTTP Get
1448
+ # requests.
1449
+ # Corresponds to the JSON property `httpGet`
1450
+ # @return [Google::Apis::RunV1alpha1::HttpGetAction]
1451
+ attr_accessor :http_get
1551
1452
 
1552
- # Number of seconds after the container has started before liveness probes are
1553
- # initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-
1554
- # lifecycle#container-probes +optional
1453
+ # (Optional) Number of seconds after the container has started before liveness
1454
+ # probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/
1455
+ # pods/pod-lifecycle#container-probes
1555
1456
  # Corresponds to the JSON property `initialDelaySeconds`
1556
1457
  # @return [Fixnum]
1557
1458
  attr_accessor :initial_delay_seconds
1558
1459
 
1559
- # How often (in seconds) to perform the probe. Default to 10 seconds. Minimum
1560
- # value is 1. +optional
1460
+ # (Optional) How often (in seconds) to perform the probe. Default to 10 seconds.
1461
+ # Minimum value is 1.
1561
1462
  # Corresponds to the JSON property `periodSeconds`
1562
1463
  # @return [Fixnum]
1563
1464
  attr_accessor :period_seconds
1564
1465
 
1565
- # Minimum consecutive successes for the probe to be considered successful after
1566
- # having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. +
1567
- # optional
1466
+ # (Optional) Minimum consecutive successes for the probe to be considered
1467
+ # successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum
1468
+ # value is 1.
1568
1469
  # Corresponds to the JSON property `successThreshold`
1569
1470
  # @return [Fixnum]
1570
1471
  attr_accessor :success_threshold
1571
1472
 
1572
- # Number of seconds after which the probe times out. Defaults to 1 second.
1573
- # Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/
1574
- # pods/pod-lifecycle#container-probes +optional
1473
+ # Not supported by Cloud Run TCPSocketAction describes an action based on
1474
+ # opening a socket
1475
+ # Corresponds to the JSON property `tcpSocket`
1476
+ # @return [Google::Apis::RunV1alpha1::TcpSocketAction]
1477
+ attr_accessor :tcp_socket
1478
+
1479
+ # (Optional) Number of seconds after which the probe times out. Defaults to 1
1480
+ # second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/
1481
+ # workloads/pods/pod-lifecycle#container-probes
1575
1482
  # Corresponds to the JSON property `timeoutSeconds`
1576
1483
  # @return [Fixnum]
1577
1484
  attr_accessor :timeout_seconds
@@ -1582,40 +1489,23 @@ module Google
1582
1489
 
1583
1490
  # Update properties of this object
1584
1491
  def update!(**args)
1492
+ @exec = args[:exec] if args.key?(:exec)
1585
1493
  @failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold)
1586
- @handler = args[:handler] if args.key?(:handler)
1494
+ @http_get = args[:http_get] if args.key?(:http_get)
1587
1495
  @initial_delay_seconds = args[:initial_delay_seconds] if args.key?(:initial_delay_seconds)
1588
1496
  @period_seconds = args[:period_seconds] if args.key?(:period_seconds)
1589
1497
  @success_threshold = args[:success_threshold] if args.key?(:success_threshold)
1498
+ @tcp_socket = args[:tcp_socket] if args.key?(:tcp_socket)
1590
1499
  @timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds)
1591
1500
  end
1592
1501
  end
1593
1502
 
1594
- # The view model of a single quantity, e.g. "800 MiB". Corresponds to https://
1595
- # github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/
1596
- # pkg/api/resource/generated.proto
1597
- class Quantity
1598
- include Google::Apis::Core::Hashable
1599
-
1600
- # Stringified version of the quantity, e.g., "800 MiB".
1601
- # Corresponds to the JSON property `string`
1602
- # @return [String]
1603
- attr_accessor :string
1604
-
1605
- def initialize(**args)
1606
- update!(**args)
1607
- end
1608
-
1609
- # Update properties of this object
1610
- def update!(**args)
1611
- @string = args[:string] if args.key?(:string)
1612
- end
1613
- end
1614
-
1615
1503
  # ResourceRequirements describes the compute resource requirements.
1616
1504
  class ResourceRequirements
1617
1505
  include Google::Apis::Core::Hashable
1618
1506
 
1507
+ # (Optional) Only memory and CPU are supported. Note: The only supported values
1508
+ # for CPU are '1', '2', and '4'. Setting 4 CPU requires at least 2Gi of memory.
1619
1509
  # Limits describes the maximum amount of compute resources allowed. The values
1620
1510
  # of the map is string form of the 'quantity' k8s type: https://github.com/
1621
1511
  # kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/
@@ -1624,34 +1514,17 @@ module Google
1624
1514
  # @return [Hash<String,String>]
1625
1515
  attr_accessor :limits
1626
1516
 
1627
- # Limits describes the maximum amount of compute resources allowed. This is a
1628
- # temporary field created to migrate away from the map limits field. This is
1629
- # done to become compliant with k8s style API. This field is deprecated in favor
1630
- # of limits field.
1631
- # Corresponds to the JSON property `limitsInMap`
1632
- # @return [Hash<String,Google::Apis::RunV1alpha1::Quantity>]
1633
- attr_accessor :limits_in_map
1634
-
1635
- # Requests describes the minimum amount of compute resources required. If
1636
- # Requests is omitted for a container, it defaults to Limits if that is
1637
- # explicitly specified, otherwise to an implementation-defined value. The values
1638
- # of the map is string form of the 'quantity' k8s type: https://github.com/
1639
- # kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/
1640
- # resource/quantity.go
1517
+ # (Optional) Only memory and CPU are supported. Note: The only supported values
1518
+ # for CPU are '1' and '2'. Requests describes the minimum amount of compute
1519
+ # resources required. If Requests is omitted for a container, it defaults to
1520
+ # Limits if that is explicitly specified, otherwise to an implementation-defined
1521
+ # value. The values of the map is string form of the 'quantity' k8s type: https:/
1522
+ # /github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/
1523
+ # pkg/api/resource/quantity.go
1641
1524
  # Corresponds to the JSON property `requests`
1642
1525
  # @return [Hash<String,String>]
1643
1526
  attr_accessor :requests
1644
1527
 
1645
- # Requests describes the minimum amount of compute resources required. If
1646
- # Requests is omitted for a container, it defaults to Limits if that is
1647
- # explicitly specified, otherwise to an implementation-defined value. This is a
1648
- # temporary field created to migrate away from the map requests field. This is
1649
- # done to become compliant with k8s style API. This field is deprecated in favor
1650
- # of requests field.
1651
- # Corresponds to the JSON property `requestsInMap`
1652
- # @return [Hash<String,Google::Apis::RunV1alpha1::Quantity>]
1653
- attr_accessor :requests_in_map
1654
-
1655
1528
  def initialize(**args)
1656
1529
  update!(**args)
1657
1530
  end
@@ -1659,69 +1532,28 @@ module Google
1659
1532
  # Update properties of this object
1660
1533
  def update!(**args)
1661
1534
  @limits = args[:limits] if args.key?(:limits)
1662
- @limits_in_map = args[:limits_in_map] if args.key?(:limits_in_map)
1663
1535
  @requests = args[:requests] if args.key?(:requests)
1664
- @requests_in_map = args[:requests_in_map] if args.key?(:requests_in_map)
1665
1536
  end
1666
1537
  end
1667
1538
 
1668
- # SELinuxOptions are the labels to be applied to the container
1669
- class SeLinuxOptions
1670
- include Google::Apis::Core::Hashable
1671
-
1672
- # Level is SELinux level label that applies to the container. +optional
1673
- # Corresponds to the JSON property `level`
1674
- # @return [String]
1675
- attr_accessor :level
1676
-
1677
- # Role is a SELinux role label that applies to the container. +optional
1678
- # Corresponds to the JSON property `role`
1679
- # @return [String]
1680
- attr_accessor :role
1681
-
1682
- # Type is a SELinux type label that applies to the container. +optional
1683
- # Corresponds to the JSON property `type`
1684
- # @return [String]
1685
- attr_accessor :type
1686
-
1687
- # User is a SELinux user label that applies to the container. +optional
1688
- # Corresponds to the JSON property `user`
1689
- # @return [String]
1690
- attr_accessor :user
1691
-
1692
- def initialize(**args)
1693
- update!(**args)
1694
- end
1695
-
1696
- # Update properties of this object
1697
- def update!(**args)
1698
- @level = args[:level] if args.key?(:level)
1699
- @role = args[:role] if args.key?(:role)
1700
- @type = args[:type] if args.key?(:type)
1701
- @user = args[:user] if args.key?(:user)
1702
- end
1703
- end
1704
-
1705
- # SecretEnvSource selects a Secret to populate the environment variables with.
1706
- # The contents of the target Secret's Data field will represent the key-value
1707
- # pairs as environment variables.
1539
+ # Not supported by Cloud Run SecretEnvSource selects a Secret to populate the
1540
+ # environment variables with. The contents of the target Secret's Data field
1541
+ # will represent the key-value pairs as environment variables.
1708
1542
  class SecretEnvSource
1709
1543
  include Google::Apis::Core::Hashable
1710
1544
 
1711
- # LocalObjectReference contains enough information to let you locate the
1712
- # referenced object inside the same namespace.
1545
+ # Not supported by Cloud Run LocalObjectReference contains enough information to
1546
+ # let you locate the referenced object inside the same namespace.
1713
1547
  # Corresponds to the JSON property `localObjectReference`
1714
1548
  # @return [Google::Apis::RunV1alpha1::LocalObjectReference]
1715
1549
  attr_accessor :local_object_reference
1716
1550
 
1717
- # Cloud Run fully managed: not supported Cloud Run for Anthos: supported The
1718
- # Secret to select from.
1551
+ # The Secret to select from.
1719
1552
  # Corresponds to the JSON property `name`
1720
1553
  # @return [String]
1721
1554
  attr_accessor :name
1722
1555
 
1723
- # Cloud Run fully managed: not supported Cloud Run for Anthos: supported Specify
1724
- # whether the Secret must be defined +optional
1556
+ # (Optional) Specify whether the Secret must be defined
1725
1557
  # Corresponds to the JSON property `optional`
1726
1558
  # @return [Boolean]
1727
1559
  attr_accessor :optional
@@ -1739,38 +1571,34 @@ module Google
1739
1571
  end
1740
1572
  end
1741
1573
 
1742
- # Cloud Run fully managed: supported Cloud Run on GKE: supported
1743
1574
  # SecretKeySelector selects a key of a Secret.
1744
1575
  class SecretKeySelector
1745
1576
  include Google::Apis::Core::Hashable
1746
1577
 
1747
- # Cloud Run fully managed: supported A Cloud Secret Manager secret version. Must
1748
- # be 'latest' for the latest version or an integer for a specific version. Cloud
1749
- # Run for Anthos: supported The key of the secret to select from. Must be a
1750
- # valid secret key.
1578
+ # A Cloud Secret Manager secret version. Must be 'latest' for the latest version
1579
+ # or an integer for a specific version. The key of the secret to select from.
1580
+ # Must be a valid secret key.
1751
1581
  # Corresponds to the JSON property `key`
1752
1582
  # @return [String]
1753
1583
  attr_accessor :key
1754
1584
 
1755
- # LocalObjectReference contains enough information to let you locate the
1756
- # referenced object inside the same namespace.
1585
+ # Not supported by Cloud Run LocalObjectReference contains enough information to
1586
+ # let you locate the referenced object inside the same namespace.
1757
1587
  # Corresponds to the JSON property `localObjectReference`
1758
1588
  # @return [Google::Apis::RunV1alpha1::LocalObjectReference]
1759
1589
  attr_accessor :local_object_reference
1760
1590
 
1761
- # Cloud Run fully managed: supported The name of the secret in Cloud Secret
1762
- # Manager. By default, the secret is assumed to be in the same project. If the
1763
- # secret is in another project, you must define an alias. An alias definition
1764
- # has the form: :projects//secrets/. If multiple alias definitions are needed,
1765
- # they must be separated by commas. The alias definitions must be set on the run.
1766
- # googleapis.com/secrets annotation. Cloud Run for Anthos: supported The name of
1767
- # the secret in the pod's namespace to select from.
1591
+ # The name of the secret in Cloud Secret Manager. By default, the secret is
1592
+ # assumed to be in the same project. If the secret is in another project, you
1593
+ # must define an alias. An alias definition has the form: :projects//secrets/.
1594
+ # If multiple alias definitions are needed, they must be separated by commas.
1595
+ # The alias definitions must be set on the run.googleapis.com/secrets annotation.
1596
+ # The name of the secret in the pod's namespace to select from.
1768
1597
  # Corresponds to the JSON property `name`
1769
1598
  # @return [String]
1770
1599
  attr_accessor :name
1771
1600
 
1772
- # Cloud Run fully managed: not supported Cloud Run on GKE: supported Specify
1773
- # whether the Secret or its key must be defined +optional
1601
+ # (Optional) Specify whether the Secret or its key must be defined
1774
1602
  # Corresponds to the JSON property `optional`
1775
1603
  # @return [Boolean]
1776
1604
  attr_accessor :optional
@@ -1789,46 +1617,54 @@ module Google
1789
1617
  end
1790
1618
  end
1791
1619
 
1792
- # The contents of the target Secret's Data field will be presented in a volume
1793
- # as files using the keys in the Data field as the file names.
1620
+ # The secret's value will be presented as the content of a file whose name is
1621
+ # defined in the item path. If no items are defined, the name of the file is the
1622
+ # secret_name. The contents of the target Secret's Data field will be presented
1623
+ # in a volume as files using the keys in the Data field as the file names.
1794
1624
  class SecretVolumeSource
1795
1625
  include Google::Apis::Core::Hashable
1796
1626
 
1797
- # Mode bits to use on created files by default. Must be a value between 0 and
1798
- # 0777. Defaults to 0644. Directories within the path are not affected by this
1799
- # setting. This might be in conflict with other options that affect the file
1800
- # mode, like fsGroup, and the result can be other mode bits set.
1627
+ # Integer representation of mode bits to use on created files by default. Must
1628
+ # be a value between 01 and 0777 (octal). If 0 or not set, it will default to
1629
+ # 0644. Directories within the path are not affected by this setting. Notes *
1630
+ # Internally, a umask of 0222 will be applied to any non-zero value. * This is
1631
+ # an integer representation of the mode bits. So, the octal integer value should
1632
+ # look exactly as the chmod numeric notation with a leading zero. Some examples:
1633
+ # for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For chmod 640 (u=
1634
+ # rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx),
1635
+ # set to 0755 (octal) or 493 (base-10). * This might be in conflict with other
1636
+ # options that affect the file mode, like fsGroup, and the result can be other
1637
+ # mode bits set.
1801
1638
  # Corresponds to the JSON property `defaultMode`
1802
1639
  # @return [Fixnum]
1803
1640
  attr_accessor :default_mode
1804
1641
 
1805
- # Cloud Run fully managed: supported If unspecified, the volume will expose a
1806
- # file whose name is the secret_name. If specified, the key will be used as the
1807
- # version to fetch from Cloud Secret Manager and the path will be the name of
1808
- # the file exposed in the volume. When items are defined, they must specify a
1809
- # key and a path. Cloud Run for Anthos: supported If unspecified, each key-value
1810
- # pair in the Data field of the referenced Secret will be projected into the
1811
- # volume as a file whose name is the key and content is the value. If specified,
1812
- # the listed keys will be projected into the specified paths, and unlisted keys
1813
- # will not be present. If a key is specified which is not present in the Secret,
1814
- # the volume setup will error unless it is marked optional.
1642
+ # (Optional) If unspecified, the volume will expose a file whose name is the
1643
+ # secret_name. If specified, the key will be used as the version to fetch from
1644
+ # Cloud Secret Manager and the path will be the name of the file exposed in the
1645
+ # volume. When items are defined, they must specify a key and a path. If
1646
+ # unspecified, each key-value pair in the Data field of the referenced Secret
1647
+ # will be projected into the volume as a file whose name is the key and content
1648
+ # is the value. If specified, the listed keys will be projected into the
1649
+ # specified paths, and unlisted keys will not be present. If a key is specified
1650
+ # that is not present in the Secret, the volume setup will error unless it is
1651
+ # marked optional.
1815
1652
  # Corresponds to the JSON property `items`
1816
1653
  # @return [Array<Google::Apis::RunV1alpha1::KeyToPath>]
1817
1654
  attr_accessor :items
1818
1655
 
1819
- # Specify whether the Secret or its keys must be defined.
1656
+ # (Optional) Specify whether the Secret or its keys must be defined.
1820
1657
  # Corresponds to the JSON property `optional`
1821
1658
  # @return [Boolean]
1822
1659
  attr_accessor :optional
1823
1660
  alias_method :optional?, :optional
1824
1661
 
1825
- # Cloud Run fully managed: supported The name of the secret in Cloud Secret
1826
- # Manager. By default, the secret is assumed to be in the same project. If the
1827
- # secret is in another project, you must define an alias. An alias definition
1828
- # has the form: :projects//secrets/. If multiple alias definitions are needed,
1829
- # they must be separated by commas. The alias definitions must be set on the run.
1830
- # googleapis.com/secrets annotation. Cloud Run for Anthos: supported Name of the
1831
- # secret in the container's namespace to use.
1662
+ # The name of the secret in Cloud Secret Manager. By default, the secret is
1663
+ # assumed to be in the same project. If the secret is in another project, you
1664
+ # must define an alias. An alias definition has the form: :projects//secrets/.
1665
+ # If multiple alias definitions are needed, they must be separated by commas.
1666
+ # The alias definitions must be set on the run.googleapis.com/secrets annotation.
1667
+ # Name of the secret in the container's namespace to use.
1832
1668
  # Corresponds to the JSON property `secretName`
1833
1669
  # @return [String]
1834
1670
  attr_accessor :secret_name
@@ -1846,105 +1682,47 @@ module Google
1846
1682
  end
1847
1683
  end
1848
1684
 
1849
- # SecurityContext holds security configuration that will be applied to a
1850
- # container. Some fields are present in both SecurityContext and
1851
- # PodSecurityContext. When both are set, the values in SecurityContext take
1852
- # precedence.
1685
+ # Not supported by Cloud Run SecurityContext holds security configuration that
1686
+ # will be applied to a container. Some fields are present in both
1687
+ # SecurityContext and PodSecurityContext. When both are set, the values in
1688
+ # SecurityContext take precedence.
1853
1689
  class SecurityContext
1854
1690
  include Google::Apis::Core::Hashable
1855
1691
 
1856
- # AllowPrivilegeEscalation controls whether a process can gain more privileges
1857
- # than its parent process. This bool directly controls if the no_new_privs flag
1858
- # will be set on the container process. AllowPrivilegeEscalation is true always
1859
- # when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN +optional
1860
- # Corresponds to the JSON property `allowPrivilegeEscalation`
1861
- # @return [Boolean]
1862
- attr_accessor :allow_privilege_escalation
1863
- alias_method :allow_privilege_escalation?, :allow_privilege_escalation
1864
-
1865
- # Adds and removes POSIX capabilities from running containers.
1866
- # Corresponds to the JSON property `capabilities`
1867
- # @return [Google::Apis::RunV1alpha1::Capabilities]
1868
- attr_accessor :capabilities
1869
-
1870
- # Run container in privileged mode. Processes in privileged containers are
1871
- # essentially equivalent to root on the host. Defaults to false. +optional
1872
- # Corresponds to the JSON property `privileged`
1873
- # @return [Boolean]
1874
- attr_accessor :privileged
1875
- alias_method :privileged?, :privileged
1876
-
1877
- # Whether this container has a read-only root filesystem. Default is false. +
1878
- # optional
1879
- # Corresponds to the JSON property `readOnlyRootFilesystem`
1880
- # @return [Boolean]
1881
- attr_accessor :read_only_root_filesystem
1882
- alias_method :read_only_root_filesystem?, :read_only_root_filesystem
1883
-
1884
- # The GID to run the entrypoint of the container process. Uses runtime default
1885
- # if unset. May also be set in PodSecurityContext. If set in both
1886
- # SecurityContext and PodSecurityContext, the value specified in SecurityContext
1887
- # takes precedence. +optional
1888
- # Corresponds to the JSON property `runAsGroup`
1889
- # @return [Fixnum]
1890
- attr_accessor :run_as_group
1891
-
1892
- # Indicates that the container must run as a non-root user. If true, the Kubelet
1893
- # will validate the image at runtime to ensure that it does not run as UID 0 (
1894
- # root) and fail to start the container if it does. If unset or false, no such
1895
- # validation will be performed. May also be set in PodSecurityContext. If set in
1896
- # both SecurityContext and PodSecurityContext, the value specified in
1897
- # SecurityContext takes precedence. +optional
1898
- # Corresponds to the JSON property `runAsNonRoot`
1899
- # @return [Boolean]
1900
- attr_accessor :run_as_non_root
1901
- alias_method :run_as_non_root?, :run_as_non_root
1902
-
1903
- # The UID to run the entrypoint of the container process. Defaults to user
1904
- # specified in image metadata if unspecified. May also be set in
1692
+ # (Optional) The UID to run the entrypoint of the container process. Defaults to
1693
+ # user specified in image metadata if unspecified. May also be set in
1905
1694
  # PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the
1906
- # value specified in SecurityContext takes precedence. +optional
1695
+ # value specified in SecurityContext takes precedence.
1907
1696
  # Corresponds to the JSON property `runAsUser`
1908
1697
  # @return [Fixnum]
1909
1698
  attr_accessor :run_as_user
1910
1699
 
1911
- # SELinuxOptions are the labels to be applied to the container
1912
- # Corresponds to the JSON property `seLinuxOptions`
1913
- # @return [Google::Apis::RunV1alpha1::SeLinuxOptions]
1914
- attr_accessor :se_linux_options
1915
-
1916
1700
  def initialize(**args)
1917
1701
  update!(**args)
1918
1702
  end
1919
1703
 
1920
1704
  # Update properties of this object
1921
1705
  def update!(**args)
1922
- @allow_privilege_escalation = args[:allow_privilege_escalation] if args.key?(:allow_privilege_escalation)
1923
- @capabilities = args[:capabilities] if args.key?(:capabilities)
1924
- @privileged = args[:privileged] if args.key?(:privileged)
1925
- @read_only_root_filesystem = args[:read_only_root_filesystem] if args.key?(:read_only_root_filesystem)
1926
- @run_as_group = args[:run_as_group] if args.key?(:run_as_group)
1927
- @run_as_non_root = args[:run_as_non_root] if args.key?(:run_as_non_root)
1928
1706
  @run_as_user = args[:run_as_user] if args.key?(:run_as_user)
1929
- @se_linux_options = args[:se_linux_options] if args.key?(:se_linux_options)
1930
1707
  end
1931
1708
  end
1932
1709
 
1933
- # TCPSocketAction describes an action based on opening a socket
1710
+ # Not supported by Cloud Run TCPSocketAction describes an action based on
1711
+ # opening a socket
1934
1712
  class TcpSocketAction
1935
1713
  include Google::Apis::Core::Hashable
1936
1714
 
1937
- # Optional: Host name to connect to, defaults to the pod IP. +optional
1715
+ # (Optional) Optional: Host name to connect to, defaults to the pod IP.
1938
1716
  # Corresponds to the JSON property `host`
1939
1717
  # @return [String]
1940
1718
  attr_accessor :host
1941
1719
 
1942
- # IntOrString is a type that can hold an int32 or a string. When used in JSON or
1943
- # YAML marshalling and unmarshalling, it produces or consumes the inner type.
1944
- # This allows you to have, for example, a JSON field that can accept a name or
1945
- # number.
1720
+ # Number or name of the port to access on the container. Number must be in the
1721
+ # range 1 to 65535. Name must be an IANA_SVC_NAME. This field is currently
1722
+ # limited to integer types only because of proto's inability to properly support
1723
+ # the IntOrString golang type.
1946
1724
  # Corresponds to the JSON property `port`
1947
- # @return [Google::Apis::RunV1alpha1::IntOrString]
1725
+ # @return [Fixnum]
1948
1726
  attr_accessor :port
1949
1727
 
1950
1728
  def initialize(**args)
@@ -1962,21 +1740,23 @@ module Google
1962
1740
  class Volume
1963
1741
  include Google::Apis::Core::Hashable
1964
1742
 
1965
- # Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data
1966
- # field will be presented in a volume as files using the keys in the Data field
1967
- # as the file names, unless the items element is populated with specific
1968
- # mappings of keys to paths.
1743
+ # Not supported by Cloud Run Adapts a ConfigMap into a volume. The contents of
1744
+ # the target ConfigMap's Data field will be presented in a volume as files using
1745
+ # the keys in the Data field as the file names, unless the items element is
1746
+ # populated with specific mappings of keys to paths.
1969
1747
  # Corresponds to the JSON property `configMap`
1970
1748
  # @return [Google::Apis::RunV1alpha1::ConfigMapVolumeSource]
1971
1749
  attr_accessor :config_map
1972
1750
 
1973
- # Volume's name.
1751
+ # Volume's name. In Cloud Run Fully Managed, the name 'cloudsql' is reserved.
1974
1752
  # Corresponds to the JSON property `name`
1975
1753
  # @return [String]
1976
1754
  attr_accessor :name
1977
1755
 
1978
- # The contents of the target Secret's Data field will be presented in a volume
1979
- # as files using the keys in the Data field as the file names.
1756
+ # The secret's value will be presented as the content of a file whose name is
1757
+ # defined in the item path. If no items are defined, the name of the file is the
1758
+ # secret_name. The contents of the target Secret's Data field will be presented
1759
+ # in a volume as files using the keys in the Data field as the file names.
1980
1760
  # Corresponds to the JSON property `secret`
1981
1761
  # @return [Google::Apis::RunV1alpha1::SecretVolumeSource]
1982
1762
  attr_accessor :secret
@@ -1993,32 +1773,6 @@ module Google
1993
1773
  end
1994
1774
  end
1995
1775
 
1996
- # volumeDevice describes a mapping of a raw block device within a container.
1997
- class VolumeDevice
1998
- include Google::Apis::Core::Hashable
1999
-
2000
- # devicePath is the path inside of the container that the device will be mapped
2001
- # to.
2002
- # Corresponds to the JSON property `devicePath`
2003
- # @return [String]
2004
- attr_accessor :device_path
2005
-
2006
- # name must match the name of a persistentVolumeClaim in the pod
2007
- # Corresponds to the JSON property `name`
2008
- # @return [String]
2009
- attr_accessor :name
2010
-
2011
- def initialize(**args)
2012
- update!(**args)
2013
- end
2014
-
2015
- # Update properties of this object
2016
- def update!(**args)
2017
- @device_path = args[:device_path] if args.key?(:device_path)
2018
- @name = args[:name] if args.key?(:name)
2019
- end
2020
- end
2021
-
2022
1776
  # VolumeMount describes a mounting of a Volume within a container.
2023
1777
  class VolumeMount
2024
1778
  include Google::Apis::Core::Hashable
@@ -2029,27 +1783,20 @@ module Google
2029
1783
  # @return [String]
2030
1784
  attr_accessor :mount_path
2031
1785
 
2032
- # mountPropagation determines how mounts are propagated from the host to
2033
- # container and the other way around. When not set,
2034
- # MountPropagationHostToContainer is used. This field is beta in 1.10. +optional
2035
- # Corresponds to the JSON property `mountPropagation`
2036
- # @return [String]
2037
- attr_accessor :mount_propagation
2038
-
2039
- # This must match the Name of a Volume.
1786
+ # The name of the volume. There must be a corresponding Volume with the same
1787
+ # name.
2040
1788
  # Corresponds to the JSON property `name`
2041
1789
  # @return [String]
2042
1790
  attr_accessor :name
2043
1791
 
2044
- # Mounted read-only if true, read-write otherwise (false or unspecified).
2045
- # Defaults to false. +optional
1792
+ # (Optional) Only true is accepted. Defaults to true.
2046
1793
  # Corresponds to the JSON property `readOnly`
2047
1794
  # @return [Boolean]
2048
1795
  attr_accessor :read_only
2049
1796
  alias_method :read_only?, :read_only
2050
1797
 
2051
- # Path within the volume from which the container's volume should be mounted.
2052
- # Defaults to "" (volume's root). +optional
1798
+ # (Optional) Path within the volume from which the container's volume should be
1799
+ # mounted. Defaults to "" (volume's root).
2053
1800
  # Corresponds to the JSON property `subPath`
2054
1801
  # @return [String]
2055
1802
  attr_accessor :sub_path
@@ -2061,7 +1808,6 @@ module Google
2061
1808
  # Update properties of this object
2062
1809
  def update!(**args)
2063
1810
  @mount_path = args[:mount_path] if args.key?(:mount_path)
2064
- @mount_propagation = args[:mount_propagation] if args.key?(:mount_propagation)
2065
1811
  @name = args[:name] if args.key?(:name)
2066
1812
  @read_only = args[:read_only] if args.key?(:read_only)
2067
1813
  @sub_path = args[:sub_path] if args.key?(:sub_path)