google-apis-run_v1alpha1 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8240515aa4d7bac28084cc1239c8c2a310c1363d969b16bfc3ca48c5ccfd42b
4
- data.tar.gz: 003734ea1016085cf443fe66c5e8a77bb37c58c6d510c9e09b464964c2eb47af
3
+ metadata.gz: 94589d2a458f3495234d94ef57ac169ee2daa8a557b368e503acf155b1440c4e
4
+ data.tar.gz: b08b174fd2ff8e0455b85a9429595aedfe4553d15927a91a16ee231bddc02b83
5
5
  SHA512:
6
- metadata.gz: 0260c1795ff44095a0457ebe617b61209a5d66289f6990bca2bcf3fe3d3b7745156a6d323e71c466dd6d7b89042f631a3ec37a01d4f4336566c2fcb7a4fe0a68
7
- data.tar.gz: 478afd2bae4639371bbc890b76f4b5bf2e4216bf81cc00b4016be343b0c990d7d222727f7dd344902168f95558873adc53b66e18438e906c4670dc7e5ba882fe
6
+ metadata.gz: 832c737572616908a458589e2f640e80cb98efd25af918147874716a9d9890631f3a70532ee447128c7e35772adeacf69bc353bb846aa1ab445bea42438f8f8b
7
+ data.tar.gz: 5e0f2c14288e3e046f108d0805389213c52b508c3487078d6929019dcb2d5874a735819f3d8a8131a5c3c15ae493da03030ec8804c3a2df5567098edb28d5c6c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-run_v1alpha1
2
2
 
3
+ ### v0.13.0 (2021-07-22)
4
+
5
+ * Regenerated from discovery document revision 20210716
6
+
3
7
  ### v0.12.0 (2021-06-29)
4
8
 
5
9
  * Regenerated using generator version 0.4.0
@@ -22,8 +22,8 @@ module Google
22
22
  # Cloud Run Admin API
23
23
  #
24
24
  # Deploy and manage user provided container images that scale automatically
25
- # based on incoming requets. The Cloud Run Admin API follows the Knative Serving
26
- # API specification.
25
+ # based on incoming requests. The Cloud Run Admin API follows the Knative
26
+ # Serving API specification.
27
27
  #
28
28
  # @see https://cloud.google.com/run/
29
29
  module RunV1alpha1
@@ -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,27 @@ 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) Mode bits to use on created files by default. Must be a value
107
+ # between 0 and 0777. Defaults to 0644. Directories within the path are not
108
+ # affected by this setting. This might be in conflict with other options that
109
+ # affect the file mode, like fsGroup, and the result can be other mode bits set.
141
110
  # Corresponds to the JSON property `defaultMode`
142
111
  # @return [Fixnum]
143
112
  attr_accessor :default_mode
144
113
 
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.
114
+ # (Optional) If unspecified, each key-value pair in the Data field of the
115
+ # referenced Secret will be projected into the volume as a file whose name is
116
+ # the key and content is the value. If specified, the listed keys will be
117
+ # projected into the specified paths, and unlisted keys will not be present. If
118
+ # a key is specified that is not present in the Secret, the volume setup will
119
+ # error unless it is marked optional.
151
120
  # Corresponds to the JSON property `items`
152
121
  # @return [Array<Google::Apis::RunV1alpha1::KeyToPath>]
153
122
  attr_accessor :items
@@ -157,7 +126,7 @@ module Google
157
126
  # @return [String]
158
127
  attr_accessor :name
159
128
 
160
- # Specify whether the Secret or its keys must be defined.
129
+ # (Optional) Specify whether the Secret or its keys must be defined.
161
130
  # Corresponds to the JSON property `optional`
162
131
  # @return [Boolean]
163
132
  attr_accessor :optional
@@ -182,92 +151,78 @@ module Google
182
151
  class Container
183
152
  include Google::Apis::Core::Hashable
184
153
 
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://
154
+ # (Optional) Arguments to the entrypoint. The docker image's CMD is used if this
155
+ # is not provided. Variable references $(VAR_NAME) are expanded using the
156
+ # container's environment. If a variable cannot be resolved, the reference in
157
+ # the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with
158
+ # a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
159
+ # regardless of whether the variable exists or not. More info: https://
191
160
  # kubernetes.io/docs/tasks/inject-data-application/define-command-argument-
192
- # container/#running-a-command-in-a-shell +optional
161
+ # container/#running-a-command-in-a-shell
193
162
  # Corresponds to the JSON property `args`
194
163
  # @return [Array<String>]
195
164
  attr_accessor :args
196
165
 
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
166
+ #
205
167
  # Corresponds to the JSON property `command`
206
168
  # @return [Array<String>]
207
169
  attr_accessor :command
208
170
 
209
- # List of environment variables to set in the container. Cannot be updated. +
210
- # optional
171
+ # (Optional) List of environment variables to set in the container.
211
172
  # Corresponds to the JSON property `env`
212
173
  # @return [Array<Google::Apis::RunV1alpha1::EnvVar>]
213
174
  attr_accessor :env
214
175
 
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
176
+ # (Optional) List of sources to populate environment variables in the container.
177
+ # The keys defined within a source must be a C_IDENTIFIER. All invalid keys will
178
+ # be reported as an event when the container is starting. When a key exists in
218
179
  # multiple sources, the value associated with the last source will take
219
180
  # precedence. Values defined by an Env with a duplicate key will take precedence.
220
- # Cannot be updated. +optional
181
+ # Cannot be updated.
221
182
  # Corresponds to the JSON property `envFrom`
222
183
  # @return [Array<Google::Apis::RunV1alpha1::EnvFromSource>]
223
184
  attr_accessor :env_from
224
185
 
225
- # Docker image name. More info: https://kubernetes.io/docs/concepts/containers/
226
- # images
186
+ # Only supports containers from Google Container Registry or Artifact Registry
187
+ # URL of the Container image. More info: https://kubernetes.io/docs/concepts/
188
+ # containers/images
227
189
  # Corresponds to the JSON property `image`
228
190
  # @return [String]
229
191
  attr_accessor :image
230
192
 
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
193
+ # (Optional) Image pull policy. One of Always, Never, IfNotPresent. Defaults to
194
+ # Always if :latest tag is specified, or IfNotPresent otherwise. More info:
195
+ # https://kubernetes.io/docs/concepts/containers/images#updating-images
235
196
  # Corresponds to the JSON property `imagePullPolicy`
236
197
  # @return [String]
237
198
  attr_accessor :image_pull_policy
238
199
 
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.
200
+ # Not supported by Cloud Run Probe describes a health check to be performed
201
+ # against a container to determine whether it is alive or ready to receive
202
+ # traffic.
249
203
  # Corresponds to the JSON property `livenessProbe`
250
204
  # @return [Google::Apis::RunV1alpha1::Probe]
251
205
  attr_accessor :liveness_probe
252
206
 
253
- # Name of the container specified as a DNS_LABEL. Each container must have a
254
- # unique name (DNS_LABEL). Cannot be updated.
207
+ # (Optional) Name of the container specified as a DNS_LABEL. Currently unused in
208
+ # Cloud Run. More info: https://kubernetes.io/docs/concepts/overview/working-
209
+ # with-objects/names/#dns-label-names
255
210
  # Corresponds to the JSON property `name`
256
211
  # @return [String]
257
212
  attr_accessor :name
258
213
 
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
214
+ # (Optional) List of ports to expose from the container. Only a single port can
215
+ # be specified. The specified ports must be listening on all interfaces (0.0.0.0)
216
+ # within the container to be accessible. If omitted, a port number will be
217
+ # chosen and passed to the container through the PORT environment variable for
218
+ # the container to listen on.
265
219
  # Corresponds to the JSON property `ports`
266
220
  # @return [Array<Google::Apis::RunV1alpha1::ContainerPort>]
267
221
  attr_accessor :ports
268
222
 
269
- # Probe describes a health check to be performed against a container to
270
- # determine whether it is alive or ready to receive traffic.
223
+ # Not supported by Cloud Run Probe describes a health check to be performed
224
+ # against a container to determine whether it is alive or ready to receive
225
+ # traffic.
271
226
  # Corresponds to the JSON property `readinessProbe`
272
227
  # @return [Google::Apis::RunV1alpha1::Probe]
273
228
  attr_accessor :readiness_probe
@@ -277,77 +232,50 @@ module Google
277
232
  # @return [Google::Apis::RunV1alpha1::ResourceRequirements]
278
233
  attr_accessor :resources
279
234
 
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.
235
+ # Not supported by Cloud Run SecurityContext holds security configuration that
236
+ # will be applied to a container. Some fields are present in both
237
+ # SecurityContext and PodSecurityContext. When both are set, the values in
238
+ # SecurityContext take precedence.
284
239
  # Corresponds to the JSON property `securityContext`
285
240
  # @return [Google::Apis::RunV1alpha1::SecurityContext]
286
241
  attr_accessor :security_context
287
242
 
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
243
+ # Not supported by Cloud Run Probe describes a health check to be performed
244
+ # against a container to determine whether it is alive or ready to receive
245
+ # traffic.
246
+ # Corresponds to the JSON property `startupProbe`
247
+ # @return [Google::Apis::RunV1alpha1::Probe]
248
+ attr_accessor :startup_probe
308
249
 
309
- # Optional: Path at which the file to which the container's termination message
250
+ # (Optional) Path at which the file to which the container's termination message
310
251
  # will be written is mounted into the container's filesystem. Message written is
311
252
  # intended to be brief final status, such as an assertion failure message. Will
312
253
  # be truncated by the node if greater than 4096 bytes. The total message length
313
254
  # across all containers will be limited to 12kb. Defaults to /dev/termination-
314
- # log. Cannot be updated. +optional
255
+ # log.
315
256
  # Corresponds to the JSON property `terminationMessagePath`
316
257
  # @return [String]
317
258
  attr_accessor :termination_message_path
318
259
 
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
260
+ # (Optional) Indicate how the termination message should be populated. File will
261
+ # use the contents of terminationMessagePath to populate the container status
262
+ # message on both success and failure. FallbackToLogsOnError will use the last
263
+ # chunk of container log output if the termination message file is empty and the
323
264
  # 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
265
+ # lines, whichever is smaller. Defaults to File. Cannot be updated.
325
266
  # Corresponds to the JSON property `terminationMessagePolicy`
326
267
  # @return [String]
327
268
  attr_accessor :termination_message_policy
328
269
 
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
270
+ # (Optional) Volume to mount into the container's filesystem. Only supports
271
+ # SecretVolumeSources. Pod volumes to mount into the container's filesystem.
344
272
  # Corresponds to the JSON property `volumeMounts`
345
273
  # @return [Array<Google::Apis::RunV1alpha1::VolumeMount>]
346
274
  attr_accessor :volume_mounts
347
275
 
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
276
+ # (Optional) Container's working directory. If not specified, the container
277
+ # runtime's default will be used, which might be configured in the container
278
+ # image.
351
279
  # Corresponds to the JSON property `workingDir`
352
280
  # @return [String]
353
281
  attr_accessor :working_dir
@@ -364,19 +292,15 @@ module Google
364
292
  @env_from = args[:env_from] if args.key?(:env_from)
365
293
  @image = args[:image] if args.key?(:image)
366
294
  @image_pull_policy = args[:image_pull_policy] if args.key?(:image_pull_policy)
367
- @lifecycle = args[:lifecycle] if args.key?(:lifecycle)
368
295
  @liveness_probe = args[:liveness_probe] if args.key?(:liveness_probe)
369
296
  @name = args[:name] if args.key?(:name)
370
297
  @ports = args[:ports] if args.key?(:ports)
371
298
  @readiness_probe = args[:readiness_probe] if args.key?(:readiness_probe)
372
299
  @resources = args[:resources] if args.key?(:resources)
373
300
  @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)
301
+ @startup_probe = args[:startup_probe] if args.key?(:startup_probe)
376
302
  @termination_message_path = args[:termination_message_path] if args.key?(:termination_message_path)
377
303
  @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
304
  @volume_mounts = args[:volume_mounts] if args.key?(:volume_mounts)
381
305
  @working_dir = args[:working_dir] if args.key?(:working_dir)
382
306
  end
@@ -386,32 +310,19 @@ module Google
386
310
  class ContainerPort
387
311
  include Google::Apis::Core::Hashable
388
312
 
389
- # Number of port to expose on the pod's IP address. This must be a valid port
313
+ # (Optional) Port number the container listens on. This must be a valid port
390
314
  # number, 0 < x < 65536.
391
315
  # Corresponds to the JSON property `containerPort`
392
316
  # @return [Fixnum]
393
317
  attr_accessor :container_port
394
318
 
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
319
+ # (Optional) If specified, used to specify which protocol to use. Allowed values
320
+ # are "http1" and "h2c".
410
321
  # Corresponds to the JSON property `name`
411
322
  # @return [String]
412
323
  attr_accessor :name
413
324
 
414
- # Protocol for port. Must be UDP or TCP. Defaults to "TCP". +optional
325
+ # (Optional) Protocol for port. Must be "TCP". Defaults to "TCP".
415
326
  # Corresponds to the JSON property `protocol`
416
327
  # @return [String]
417
328
  attr_accessor :protocol
@@ -423,8 +334,6 @@ module Google
423
334
  # Update properties of this object
424
335
  def update!(**args)
425
336
  @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
337
  @name = args[:name] if args.key?(:name)
429
338
  @protocol = args[:protocol] if args.key?(:protocol)
430
339
  end
@@ -447,26 +356,27 @@ module Google
447
356
  end
448
357
  end
449
358
 
450
- # EnvFromSource represents the source of a set of ConfigMaps
359
+ # Not supported by Cloud Run EnvFromSource represents the source of a set of
360
+ # ConfigMaps
451
361
  class EnvFromSource
452
362
  include Google::Apis::Core::Hashable
453
363
 
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.
364
+ # Not supported by Cloud Run ConfigMapEnvSource selects a ConfigMap to populate
365
+ # the environment variables with. The contents of the target ConfigMap's Data
366
+ # field will represent the key-value pairs as environment variables.
457
367
  # Corresponds to the JSON property `configMapRef`
458
368
  # @return [Google::Apis::RunV1alpha1::ConfigMapEnvSource]
459
369
  attr_accessor :config_map_ref
460
370
 
461
- # An optional identifier to prepend to each key in the ConfigMap. Must be a
462
- # C_IDENTIFIER. +optional
371
+ # (Optional) An optional identifier to prepend to each key in the ConfigMap.
372
+ # Must be a C_IDENTIFIER.
463
373
  # Corresponds to the JSON property `prefix`
464
374
  # @return [String]
465
375
  attr_accessor :prefix
466
376
 
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.
377
+ # Not supported by Cloud Run SecretEnvSource selects a Secret to populate the
378
+ # environment variables with. The contents of the target Secret's Data field
379
+ # will represent the key-value pairs as environment variables.
470
380
  # Corresponds to the JSON property `secretRef`
471
381
  # @return [Google::Apis::RunV1alpha1::SecretEnvSource]
472
382
  attr_accessor :secret_ref
@@ -492,17 +402,16 @@ module Google
492
402
  # @return [String]
493
403
  attr_accessor :name
494
404
 
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
405
+ # (Optional) Variable references $(VAR_NAME) are expanded using the previous
406
+ # defined environment variables in the container and any route environment
407
+ # variables. If a variable cannot be resolved, the reference in the input string
408
+ # will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie:
409
+ # $$(VAR_NAME). Escaped references will never be expanded, regardless of whether
410
+ # the variable exists or not. Defaults to "".
501
411
  # Corresponds to the JSON property `value`
502
412
  # @return [String]
503
413
  attr_accessor :value
504
414
 
505
- # Cloud Run fully managed: not supported Cloud Run on GKE: supported
506
415
  # EnvVarSource represents a source for the value of an EnvVar.
507
416
  # Corresponds to the JSON property `valueFrom`
508
417
  # @return [Google::Apis::RunV1alpha1::EnvVarSource]
@@ -520,18 +429,15 @@ module Google
520
429
  end
521
430
  end
522
431
 
523
- # Cloud Run fully managed: not supported Cloud Run on GKE: supported
524
432
  # EnvVarSource represents a source for the value of an EnvVar.
525
433
  class EnvVarSource
526
434
  include Google::Apis::Core::Hashable
527
435
 
528
- # Cloud Run fully managed: not supported Cloud Run on GKE: supported Selects a
529
- # key from a ConfigMap.
436
+ # Not supported by Cloud Run Selects a key from a ConfigMap.
530
437
  # Corresponds to the JSON property `configMapKeyRef`
531
438
  # @return [Google::Apis::RunV1alpha1::ConfigMapKeySelector]
532
439
  attr_accessor :config_map_key_ref
533
440
 
534
- # Cloud Run fully managed: supported Cloud Run on GKE: supported
535
441
  # SecretKeySelector selects a key of a Secret.
536
442
  # Corresponds to the JSON property `secretKeyRef`
537
443
  # @return [Google::Apis::RunV1alpha1::SecretKeySelector]
@@ -548,16 +454,16 @@ module Google
548
454
  end
549
455
  end
550
456
 
551
- # ExecAction describes a "run in container" action.
457
+ # Not supported by Cloud Run ExecAction describes a "run in container" action.
552
458
  class ExecAction
553
459
  include Google::Apis::Core::Hashable
554
460
 
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
461
+ # (Optional) Command is the command line to execute inside the container, the
462
+ # working directory for the command is root ('/') in the container's filesystem.
463
+ # The command is simply exec'd, it is not run inside a shell, so traditional
464
+ # shell instructions ('|', etc) won't work. To use a shell, you need to
465
+ # explicitly call out to that shell. Exit status of 0 is treated as live/healthy
466
+ # and non-zero is unhealthy.
561
467
  # Corresponds to the JSON property `command`
562
468
  # @return [Array<String>]
563
469
  attr_accessor :command
@@ -572,35 +478,28 @@ module Google
572
478
  end
573
479
  end
574
480
 
575
- # HTTPGetAction describes an action based on HTTP Get requests.
481
+ # Not supported by Cloud Run HTTPGetAction describes an action based on HTTP Get
482
+ # requests.
576
483
  class HttpGetAction
577
484
  include Google::Apis::Core::Hashable
578
485
 
579
- # Host name to connect to, defaults to the pod IP. You probably want to set "
580
- # Host" in httpHeaders instead. +optional
486
+ # (Optional) Host name to connect to, defaults to the pod IP. You probably want
487
+ # to set "Host" in httpHeaders instead.
581
488
  # Corresponds to the JSON property `host`
582
489
  # @return [String]
583
490
  attr_accessor :host
584
491
 
585
- # Custom headers to set in the request. HTTP allows repeated headers. +optional
492
+ # (Optional) Custom headers to set in the request. HTTP allows repeated headers.
586
493
  # Corresponds to the JSON property `httpHeaders`
587
494
  # @return [Array<Google::Apis::RunV1alpha1::HttpHeader>]
588
495
  attr_accessor :http_headers
589
496
 
590
- # Path to access on the HTTP server. +optional
497
+ # (Optional) Path to access on the HTTP server.
591
498
  # Corresponds to the JSON property `path`
592
499
  # @return [String]
593
500
  attr_accessor :path
594
501
 
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
502
+ # (Optional) Scheme to use for connecting to the host. Defaults to HTTP.
604
503
  # Corresponds to the JSON property `scheme`
605
504
  # @return [String]
606
505
  attr_accessor :scheme
@@ -614,12 +513,12 @@ module Google
614
513
  @host = args[:host] if args.key?(:host)
615
514
  @http_headers = args[:http_headers] if args.key?(:http_headers)
616
515
  @path = args[:path] if args.key?(:path)
617
- @port = args[:port] if args.key?(:port)
618
516
  @scheme = args[:scheme] if args.key?(:scheme)
619
517
  end
620
518
  end
621
519
 
622
- # HTTPHeader describes a custom header to be used in HTTP probes
520
+ # Not supported by Cloud Run HTTPHeader describes a custom header to be used in
521
+ # HTTP probes
623
522
  class HttpHeader
624
523
  include Google::Apis::Core::Hashable
625
524
 
@@ -644,37 +543,6 @@ module Google
644
543
  end
645
544
  end
646
545
 
647
- # Handler defines a specific action that should be taken
648
- class Handler
649
- include Google::Apis::Core::Hashable
650
-
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
665
-
666
- def initialize(**args)
667
- update!(**args)
668
- end
669
-
670
- # Update properties of this object
671
- 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)
675
- end
676
- end
677
-
678
546
  # InstanceSpec is a description of an instance.
679
547
  class InstanceSpec
680
548
  include Google::Apis::Core::Hashable
@@ -823,40 +691,6 @@ module Google
823
691
  end
824
692
  end
825
693
 
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
694
  # Job represents the configuration of a single job. A job an immutable resource
861
695
  # that references a container image which is run to completion.
862
696
  class Job
@@ -879,8 +713,8 @@ module Google
879
713
  # @return [String]
880
714
  attr_accessor :kind
881
715
 
882
- # ObjectMeta is metadata that all persisted resources must have, which includes
883
- # all objects users must create.
716
+ # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted
717
+ # resources must have, which includes all objects users must create.
884
718
  # Corresponds to the JSON property `metadata`
885
719
  # @return [Google::Apis::RunV1alpha1::ObjectMeta]
886
720
  attr_accessor :metadata
@@ -1113,24 +947,22 @@ module Google
1113
947
  class KeyToPath
1114
948
  include Google::Apis::Core::Hashable
1115
949
 
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.
950
+ # The Cloud Secret Manager secret version. Can be 'latest' for the latest value
951
+ # or an integer for a specific version. The key to project.
1119
952
  # Corresponds to the JSON property `key`
1120
953
  # @return [String]
1121
954
  attr_accessor :key
1122
955
 
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
956
+ # (Optional) Mode bits to use on this file, must be a value between 0000 and
957
+ # 0777. If not specified, the volume defaultMode will be used. This might be in
958
+ # conflict with other options that affect the file mode, like fsGroup, and the
959
+ # result can be other mode bits set.
1127
960
  # Corresponds to the JSON property `mode`
1128
961
  # @return [Fixnum]
1129
962
  attr_accessor :mode
1130
963
 
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 '..'.
964
+ # The relative path of the file to map the key to. May not be an absolute path.
965
+ # May not contain the path element '..'. May not start with the string '..'.
1134
966
  # Corresponds to the JSON property `path`
1135
967
  # @return [String]
1136
968
  attr_accessor :path
@@ -1147,34 +979,6 @@ module Google
1147
979
  end
1148
980
  end
1149
981
 
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
982
  # ListJobsResponse is a list of Jobs resources.
1179
983
  class ListJobsResponse
1180
984
  include Google::Apis::Core::Hashable
@@ -1277,13 +1081,13 @@ module Google
1277
1081
  end
1278
1082
  end
1279
1083
 
1280
- # LocalObjectReference contains enough information to let you locate the
1281
- # referenced object inside the same namespace.
1084
+ # Not supported by Cloud Run LocalObjectReference contains enough information to
1085
+ # let you locate the referenced object inside the same namespace.
1282
1086
  class LocalObjectReference
1283
1087
  include Google::Apis::Core::Hashable
1284
1088
 
1285
- # Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/
1286
- # working-with-objects/names/#names
1089
+ # (Optional) Name of the referent. More info: https://kubernetes.io/docs/
1090
+ # concepts/overview/working-with-objects/names/#names
1287
1091
  # Corresponds to the JSON property `name`
1288
1092
  # @return [String]
1289
1093
  attr_accessor :name
@@ -1298,78 +1102,77 @@ module Google
1298
1102
  end
1299
1103
  end
1300
1104
 
1301
- # ObjectMeta is metadata that all persisted resources must have, which includes
1302
- # all objects users must create.
1105
+ # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted
1106
+ # resources must have, which includes all objects users must create.
1303
1107
  class ObjectMeta
1304
1108
  include Google::Apis::Core::Hashable
1305
1109
 
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
1110
+ # (Optional) Annotations is an unstructured key value map stored with a resource
1111
+ # that may be set by external tools to store and retrieve arbitrary metadata.
1112
+ # They are not queryable and should be preserved when modifying objects. More
1113
+ # info: http://kubernetes.io/docs/user-guide/annotations
1310
1114
  # Corresponds to the JSON property `annotations`
1311
1115
  # @return [Hash<String,String>]
1312
1116
  attr_accessor :annotations
1313
1117
 
1314
- # Not currently supported by Cloud Run. The name of the cluster which the object
1118
+ # (Optional) Not supported by Cloud Run The name of the cluster which the object
1315
1119
  # belongs to. This is used to distinguish resources with same name and namespace
1316
1120
  # 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
1121
+ # is going to ignore it if set in create or update request.
1318
1122
  # Corresponds to the JSON property `clusterName`
1319
1123
  # @return [String]
1320
1124
  attr_accessor :cluster_name
1321
1125
 
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
1126
+ # (Optional) CreationTimestamp is a timestamp representing the server time when
1127
+ # this object was created. It is not guaranteed to be set in happens-before
1128
+ # order across separate operations. Clients may not set this value. It is
1129
+ # represented in RFC3339 form and is in UTC. Populated by the system. Read-only.
1130
+ # Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-
1131
+ # conventions.md#metadata
1328
1132
  # Corresponds to the JSON property `creationTimestamp`
1329
1133
  # @return [String]
1330
1134
  attr_accessor :creation_timestamp
1331
1135
 
1332
- # Not currently supported by Cloud Run. Number of seconds allowed for this
1136
+ # (Optional) Not supported by Cloud Run Number of seconds allowed for this
1333
1137
  # 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
1138
+ # set when deletionTimestamp is also set. May only be shortened. Read-only.
1336
1139
  # Corresponds to the JSON property `deletionGracePeriodSeconds`
1337
1140
  # @return [Fixnum]
1338
1141
  attr_accessor :deletion_grace_period_seconds
1339
1142
 
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
1143
+ # (Optional) Not supported by Cloud Run DeletionTimestamp is RFC 3339 date and
1144
+ # time at which this resource will be deleted. This field is set by the server
1145
+ # when a graceful deletion is requested by the user, and is not directly
1146
+ # settable by a client. The resource is expected to be deleted (no longer
1147
+ # visible from resource lists, and not reachable by name) after the time in this
1148
+ # field, once the finalizers list is empty. As long as the finalizers list
1149
+ # contains items, deletion is blocked. Once the deletionTimestamp is set, this
1150
+ # value may not be unset or be set further into the future, although it may be
1151
+ # shortened or the resource may be deleted prior to this time. For example, a
1152
+ # user may request that a pod is deleted in 30 seconds. The Kubelet will react
1153
+ # by sending a graceful termination signal to the containers in the pod. After
1154
+ # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to
1155
+ # the container and after cleanup, remove the pod from the API. In the presence
1156
+ # of network partitions, this object may still exist after this timestamp, until
1157
+ # an administrator or automated process can determine the resource is fully
1355
1158
  # terminated. If not set, graceful deletion of the object has not been requested.
1356
1159
  # Populated by the system when a graceful deletion is requested. Read-only.
1357
1160
  # More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#
1358
- # metadata +optional
1161
+ # metadata
1359
1162
  # Corresponds to the JSON property `deletionTimestamp`
1360
1163
  # @return [String]
1361
1164
  attr_accessor :deletion_timestamp
1362
1165
 
1363
- # Not currently supported by Cloud Run. Must be empty before the object is
1166
+ # (Optional) Not supported by Cloud Run Must be empty before the object is
1364
1167
  # deleted from the registry. Each entry is an identifier for the responsible
1365
1168
  # 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 +
1169
+ # of the object is non-nil, entries in this list can only be removed. +
1367
1170
  # patchStrategy=merge
1368
1171
  # Corresponds to the JSON property `finalizers`
1369
1172
  # @return [Array<String>]
1370
1173
  attr_accessor :finalizers
1371
1174
 
1372
- # Not currently supported by Cloud Run. GenerateName is an optional prefix, used
1175
+ # (Optional) Not supported by Cloud Run GenerateName is an optional prefix, used
1373
1176
  # by the server, to generate a unique name ONLY IF the Name field has not been
1374
1177
  # provided. If this field is used, the name returned to the client will be
1375
1178
  # different than the name passed. This value will also be combined with a unique
@@ -1381,20 +1184,20 @@ module Google
1381
1184
  # in the time allotted, and the client should retry (optionally after the time
1382
1185
  # indicated in the Retry-After header). Applied only if Name is not specified.
1383
1186
  # More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#
1384
- # idempotency +optional string generateName = 2;
1187
+ # idempotency string generateName = 2;
1385
1188
  # Corresponds to the JSON property `generateName`
1386
1189
  # @return [String]
1387
1190
  attr_accessor :generate_name
1388
1191
 
1389
- # A sequence number representing a specific generation of the desired state.
1390
- # Populated by the system. Read-only. +optional
1192
+ # (Optional) A sequence number representing a specific generation of the desired
1193
+ # state. Populated by the system. Read-only.
1391
1194
  # Corresponds to the JSON property `generation`
1392
1195
  # @return [Fixnum]
1393
1196
  attr_accessor :generation
1394
1197
 
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
1198
+ # (Optional) Map of string keys and values that can be used to organize and
1199
+ # categorize (scope and select) objects. May match selectors of replication
1200
+ # controllers and routes. More info: http://kubernetes.io/docs/user-guide/labels
1398
1201
  # Corresponds to the JSON property `labels`
1399
1202
  # @return [Hash<String,String>]
1400
1203
  attr_accessor :labels
@@ -1416,35 +1219,36 @@ module Google
1416
1219
  # @return [String]
1417
1220
  attr_accessor :namespace
1418
1221
 
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
1222
+ # (Optional) Not supported by Cloud Run List of objects that own this object. If
1223
+ # ALL objects in the list have been deleted, this object will be garbage
1224
+ # collected.
1421
1225
  # Corresponds to the JSON property `ownerReferences`
1422
1226
  # @return [Array<Google::Apis::RunV1alpha1::OwnerReference>]
1423
1227
  attr_accessor :owner_references
1424
1228
 
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
1229
+ # Optional. An opaque value that represents the internal version of this object
1230
+ # that can be used by clients to determine when objects have changed. May be
1231
+ # used for optimistic concurrency, change detection, and the watch operation on
1232
+ # a resource or set of resources. Clients must treat these values as opaque and
1233
+ # passed unmodified back to the server or omit the value to disable conflict-
1234
+ # detection. They may only be valid for a particular resource or set of
1235
+ # resources. Populated by the system. Read-only. Value must be treated as opaque
1236
+ # by clients or omitted. More info: https://git.k8s.io/community/contributors/
1237
+ # devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
1434
1238
  # Corresponds to the JSON property `resourceVersion`
1435
1239
  # @return [String]
1436
1240
  attr_accessor :resource_version
1437
1241
 
1438
- # SelfLink is a URL representing this object. Populated by the system. Read-only.
1439
- # +optional string selfLink = 4;
1242
+ # (Optional) SelfLink is a URL representing this object. Populated by the system.
1243
+ # Read-only. string selfLink = 4;
1440
1244
  # Corresponds to the JSON property `selfLink`
1441
1245
  # @return [String]
1442
1246
  attr_accessor :self_link
1443
1247
 
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
1248
+ # (Optional) UID is the unique in time and space value for this object. It is
1249
+ # typically generated by the server on successful creation of a resource and is
1250
+ # not allowed to change on PUT operations. Populated by the system. Read-only.
1251
+ # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
1448
1252
  # Corresponds to the JSON property `uid`
1449
1253
  # @return [String]
1450
1254
  attr_accessor :uid
@@ -1533,45 +1337,58 @@ module Google
1533
1337
  end
1534
1338
  end
1535
1339
 
1536
- # Probe describes a health check to be performed against a container to
1537
- # determine whether it is alive or ready to receive traffic.
1340
+ # Not supported by Cloud Run Probe describes a health check to be performed
1341
+ # against a container to determine whether it is alive or ready to receive
1342
+ # traffic.
1538
1343
  class Probe
1539
1344
  include Google::Apis::Core::Hashable
1540
1345
 
1541
- # Minimum consecutive failures for the probe to be considered failed after
1542
- # having succeeded. Defaults to 3. Minimum value is 1. +optional
1346
+ # Not supported by Cloud Run ExecAction describes a "run in container" action.
1347
+ # Corresponds to the JSON property `exec`
1348
+ # @return [Google::Apis::RunV1alpha1::ExecAction]
1349
+ attr_accessor :exec
1350
+
1351
+ # (Optional) Minimum consecutive failures for the probe to be considered failed
1352
+ # after having succeeded. Defaults to 3. Minimum value is 1.
1543
1353
  # Corresponds to the JSON property `failureThreshold`
1544
1354
  # @return [Fixnum]
1545
1355
  attr_accessor :failure_threshold
1546
1356
 
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
1357
+ # Not supported by Cloud Run HTTPGetAction describes an action based on HTTP Get
1358
+ # requests.
1359
+ # Corresponds to the JSON property `httpGet`
1360
+ # @return [Google::Apis::RunV1alpha1::HttpGetAction]
1361
+ attr_accessor :http_get
1551
1362
 
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
1363
+ # (Optional) Number of seconds after the container has started before liveness
1364
+ # probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/
1365
+ # pods/pod-lifecycle#container-probes
1555
1366
  # Corresponds to the JSON property `initialDelaySeconds`
1556
1367
  # @return [Fixnum]
1557
1368
  attr_accessor :initial_delay_seconds
1558
1369
 
1559
- # How often (in seconds) to perform the probe. Default to 10 seconds. Minimum
1560
- # value is 1. +optional
1370
+ # (Optional) How often (in seconds) to perform the probe. Default to 10 seconds.
1371
+ # Minimum value is 1.
1561
1372
  # Corresponds to the JSON property `periodSeconds`
1562
1373
  # @return [Fixnum]
1563
1374
  attr_accessor :period_seconds
1564
1375
 
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
1376
+ # (Optional) Minimum consecutive successes for the probe to be considered
1377
+ # successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum
1378
+ # value is 1.
1568
1379
  # Corresponds to the JSON property `successThreshold`
1569
1380
  # @return [Fixnum]
1570
1381
  attr_accessor :success_threshold
1571
1382
 
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
1383
+ # Not supported by Cloud Run TCPSocketAction describes an action based on
1384
+ # opening a socket
1385
+ # Corresponds to the JSON property `tcpSocket`
1386
+ # @return [Google::Apis::RunV1alpha1::TcpSocketAction]
1387
+ attr_accessor :tcp_socket
1388
+
1389
+ # (Optional) Number of seconds after which the probe times out. Defaults to 1
1390
+ # second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/
1391
+ # workloads/pods/pod-lifecycle#container-probes
1575
1392
  # Corresponds to the JSON property `timeoutSeconds`
1576
1393
  # @return [Fixnum]
1577
1394
  attr_accessor :timeout_seconds
@@ -1582,40 +1399,23 @@ module Google
1582
1399
 
1583
1400
  # Update properties of this object
1584
1401
  def update!(**args)
1402
+ @exec = args[:exec] if args.key?(:exec)
1585
1403
  @failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold)
1586
- @handler = args[:handler] if args.key?(:handler)
1404
+ @http_get = args[:http_get] if args.key?(:http_get)
1587
1405
  @initial_delay_seconds = args[:initial_delay_seconds] if args.key?(:initial_delay_seconds)
1588
1406
  @period_seconds = args[:period_seconds] if args.key?(:period_seconds)
1589
1407
  @success_threshold = args[:success_threshold] if args.key?(:success_threshold)
1408
+ @tcp_socket = args[:tcp_socket] if args.key?(:tcp_socket)
1590
1409
  @timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds)
1591
1410
  end
1592
1411
  end
1593
1412
 
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
1413
  # ResourceRequirements describes the compute resource requirements.
1616
1414
  class ResourceRequirements
1617
1415
  include Google::Apis::Core::Hashable
1618
1416
 
1417
+ # (Optional) Only memory and CPU are supported. Note: The only supported values
1418
+ # for CPU are '1', '2', and '4'. Setting 4 CPU requires at least 2Gi of memory.
1619
1419
  # Limits describes the maximum amount of compute resources allowed. The values
1620
1420
  # of the map is string form of the 'quantity' k8s type: https://github.com/
1621
1421
  # kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/
@@ -1624,34 +1424,17 @@ module Google
1624
1424
  # @return [Hash<String,String>]
1625
1425
  attr_accessor :limits
1626
1426
 
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
1427
+ # (Optional) Only memory and CPU are supported. Note: The only supported values
1428
+ # for CPU are '1' and '2'. Requests describes the minimum amount of compute
1429
+ # resources required. If Requests is omitted for a container, it defaults to
1430
+ # Limits if that is explicitly specified, otherwise to an implementation-defined
1431
+ # value. The values of the map is string form of the 'quantity' k8s type: https:/
1432
+ # /github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/
1433
+ # pkg/api/resource/quantity.go
1641
1434
  # Corresponds to the JSON property `requests`
1642
1435
  # @return [Hash<String,String>]
1643
1436
  attr_accessor :requests
1644
1437
 
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
1438
  def initialize(**args)
1656
1439
  update!(**args)
1657
1440
  end
@@ -1659,69 +1442,28 @@ module Google
1659
1442
  # Update properties of this object
1660
1443
  def update!(**args)
1661
1444
  @limits = args[:limits] if args.key?(:limits)
1662
- @limits_in_map = args[:limits_in_map] if args.key?(:limits_in_map)
1663
1445
  @requests = args[:requests] if args.key?(:requests)
1664
- @requests_in_map = args[:requests_in_map] if args.key?(:requests_in_map)
1665
1446
  end
1666
1447
  end
1667
1448
 
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.
1449
+ # Not supported by Cloud Run SecretEnvSource selects a Secret to populate the
1450
+ # environment variables with. The contents of the target Secret's Data field
1451
+ # will represent the key-value pairs as environment variables.
1708
1452
  class SecretEnvSource
1709
1453
  include Google::Apis::Core::Hashable
1710
1454
 
1711
- # LocalObjectReference contains enough information to let you locate the
1712
- # referenced object inside the same namespace.
1455
+ # Not supported by Cloud Run LocalObjectReference contains enough information to
1456
+ # let you locate the referenced object inside the same namespace.
1713
1457
  # Corresponds to the JSON property `localObjectReference`
1714
1458
  # @return [Google::Apis::RunV1alpha1::LocalObjectReference]
1715
1459
  attr_accessor :local_object_reference
1716
1460
 
1717
- # Cloud Run fully managed: not supported Cloud Run for Anthos: supported The
1718
- # Secret to select from.
1461
+ # The Secret to select from.
1719
1462
  # Corresponds to the JSON property `name`
1720
1463
  # @return [String]
1721
1464
  attr_accessor :name
1722
1465
 
1723
- # Cloud Run fully managed: not supported Cloud Run for Anthos: supported Specify
1724
- # whether the Secret must be defined +optional
1466
+ # (Optional) Specify whether the Secret must be defined
1725
1467
  # Corresponds to the JSON property `optional`
1726
1468
  # @return [Boolean]
1727
1469
  attr_accessor :optional
@@ -1739,38 +1481,34 @@ module Google
1739
1481
  end
1740
1482
  end
1741
1483
 
1742
- # Cloud Run fully managed: supported Cloud Run on GKE: supported
1743
1484
  # SecretKeySelector selects a key of a Secret.
1744
1485
  class SecretKeySelector
1745
1486
  include Google::Apis::Core::Hashable
1746
1487
 
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.
1488
+ # A Cloud Secret Manager secret version. Must be 'latest' for the latest version
1489
+ # or an integer for a specific version. The key of the secret to select from.
1490
+ # Must be a valid secret key.
1751
1491
  # Corresponds to the JSON property `key`
1752
1492
  # @return [String]
1753
1493
  attr_accessor :key
1754
1494
 
1755
- # LocalObjectReference contains enough information to let you locate the
1756
- # referenced object inside the same namespace.
1495
+ # Not supported by Cloud Run LocalObjectReference contains enough information to
1496
+ # let you locate the referenced object inside the same namespace.
1757
1497
  # Corresponds to the JSON property `localObjectReference`
1758
1498
  # @return [Google::Apis::RunV1alpha1::LocalObjectReference]
1759
1499
  attr_accessor :local_object_reference
1760
1500
 
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.
1501
+ # The name of the secret in Cloud Secret Manager. By default, the secret is
1502
+ # assumed to be in the same project. If the secret is in another project, you
1503
+ # must define an alias. An alias definition has the form: :projects//secrets/.
1504
+ # If multiple alias definitions are needed, they must be separated by commas.
1505
+ # The alias definitions must be set on the run.googleapis.com/secrets annotation.
1506
+ # The name of the secret in the pod's namespace to select from.
1768
1507
  # Corresponds to the JSON property `name`
1769
1508
  # @return [String]
1770
1509
  attr_accessor :name
1771
1510
 
1772
- # Cloud Run fully managed: not supported Cloud Run on GKE: supported Specify
1773
- # whether the Secret or its key must be defined +optional
1511
+ # (Optional) Specify whether the Secret or its key must be defined
1774
1512
  # Corresponds to the JSON property `optional`
1775
1513
  # @return [Boolean]
1776
1514
  attr_accessor :optional
@@ -1789,46 +1527,50 @@ module Google
1789
1527
  end
1790
1528
  end
1791
1529
 
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.
1530
+ # The secret's value will be presented as the content of a file whose name is
1531
+ # defined in the item path. If no items are defined, the name of the file is the
1532
+ # secret_name. The contents of the target Secret's Data field will be presented
1533
+ # in a volume as files using the keys in the Data field as the file names.
1794
1534
  class SecretVolumeSource
1795
1535
  include Google::Apis::Core::Hashable
1796
1536
 
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.
1537
+ # (Optional) Mode bits to use on created files by default. Must be a value
1538
+ # between 0000 and 0777. Defaults to 0644. Directories within the path are not
1539
+ # affected by this setting. This might be in conflict with other options that
1540
+ # affect the file mode, like fsGroup, and the result can be other mode bits set.
1541
+ # NOTE: This is an integer representation of the mode bits. So, the integer
1542
+ # value should look exactly as the chmod numeric notation, i.e. Unix chmod "777"
1543
+ # (a=rwx) should have the integer value 777.
1801
1544
  # Corresponds to the JSON property `defaultMode`
1802
1545
  # @return [Fixnum]
1803
1546
  attr_accessor :default_mode
1804
1547
 
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.
1548
+ # (Optional) If unspecified, the volume will expose a file whose name is the
1549
+ # secret_name. If specified, the key will be used as the version to fetch from
1550
+ # Cloud Secret Manager and the path will be the name of the file exposed in the
1551
+ # volume. When items are defined, they must specify a key and a path. If
1552
+ # unspecified, each key-value pair in the Data field of the referenced Secret
1553
+ # will be projected into the volume as a file whose name is the key and content
1554
+ # is the value. If specified, the listed keys will be projected into the
1555
+ # specified paths, and unlisted keys will not be present. If a key is specified
1556
+ # that is not present in the Secret, the volume setup will error unless it is
1557
+ # marked optional.
1815
1558
  # Corresponds to the JSON property `items`
1816
1559
  # @return [Array<Google::Apis::RunV1alpha1::KeyToPath>]
1817
1560
  attr_accessor :items
1818
1561
 
1819
- # Specify whether the Secret or its keys must be defined.
1562
+ # (Optional) Specify whether the Secret or its keys must be defined.
1820
1563
  # Corresponds to the JSON property `optional`
1821
1564
  # @return [Boolean]
1822
1565
  attr_accessor :optional
1823
1566
  alias_method :optional?, :optional
1824
1567
 
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.
1568
+ # The name of the secret in Cloud Secret Manager. By default, the secret is
1569
+ # assumed to be in the same project. If the secret is in another project, you
1570
+ # must define an alias. An alias definition has the form: :projects//secrets/.
1571
+ # If multiple alias definitions are needed, they must be separated by commas.
1572
+ # The alias definitions must be set on the run.googleapis.com/secrets annotation.
1573
+ # Name of the secret in the container's namespace to use.
1832
1574
  # Corresponds to the JSON property `secretName`
1833
1575
  # @return [String]
1834
1576
  attr_accessor :secret_name
@@ -1846,105 +1588,47 @@ module Google
1846
1588
  end
1847
1589
  end
1848
1590
 
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.
1591
+ # Not supported by Cloud Run SecurityContext holds security configuration that
1592
+ # will be applied to a container. Some fields are present in both
1593
+ # SecurityContext and PodSecurityContext. When both are set, the values in
1594
+ # SecurityContext take precedence.
1853
1595
  class SecurityContext
1854
1596
  include Google::Apis::Core::Hashable
1855
1597
 
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
1598
+ # (Optional) The UID to run the entrypoint of the container process. Defaults to
1599
+ # user specified in image metadata if unspecified. May also be set in
1905
1600
  # PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the
1906
- # value specified in SecurityContext takes precedence. +optional
1601
+ # value specified in SecurityContext takes precedence.
1907
1602
  # Corresponds to the JSON property `runAsUser`
1908
1603
  # @return [Fixnum]
1909
1604
  attr_accessor :run_as_user
1910
1605
 
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
1606
  def initialize(**args)
1917
1607
  update!(**args)
1918
1608
  end
1919
1609
 
1920
1610
  # Update properties of this object
1921
1611
  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
1612
  @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
1613
  end
1931
1614
  end
1932
1615
 
1933
- # TCPSocketAction describes an action based on opening a socket
1616
+ # Not supported by Cloud Run TCPSocketAction describes an action based on
1617
+ # opening a socket
1934
1618
  class TcpSocketAction
1935
1619
  include Google::Apis::Core::Hashable
1936
1620
 
1937
- # Optional: Host name to connect to, defaults to the pod IP. +optional
1621
+ # (Optional) Optional: Host name to connect to, defaults to the pod IP.
1938
1622
  # Corresponds to the JSON property `host`
1939
1623
  # @return [String]
1940
1624
  attr_accessor :host
1941
1625
 
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.
1626
+ # Number or name of the port to access on the container. Number must be in the
1627
+ # range 1 to 65535. Name must be an IANA_SVC_NAME. This field is currently
1628
+ # limited to integer types only because of proto's inability to properly support
1629
+ # the IntOrString golang type.
1946
1630
  # Corresponds to the JSON property `port`
1947
- # @return [Google::Apis::RunV1alpha1::IntOrString]
1631
+ # @return [Fixnum]
1948
1632
  attr_accessor :port
1949
1633
 
1950
1634
  def initialize(**args)
@@ -1958,14 +1642,14 @@ module Google
1958
1642
  end
1959
1643
  end
1960
1644
 
1961
- # Volume represents a named volume in a container.
1645
+ # Not supported by Cloud Run Volume represents a named volume in a container.
1962
1646
  class Volume
1963
1647
  include Google::Apis::Core::Hashable
1964
1648
 
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.
1649
+ # Not supported by Cloud Run Adapts a ConfigMap into a volume. The contents of
1650
+ # the target ConfigMap's Data field will be presented in a volume as files using
1651
+ # the keys in the Data field as the file names, unless the items element is
1652
+ # populated with specific mappings of keys to paths.
1969
1653
  # Corresponds to the JSON property `configMap`
1970
1654
  # @return [Google::Apis::RunV1alpha1::ConfigMapVolumeSource]
1971
1655
  attr_accessor :config_map
@@ -1975,8 +1659,10 @@ module Google
1975
1659
  # @return [String]
1976
1660
  attr_accessor :name
1977
1661
 
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.
1662
+ # The secret's value will be presented as the content of a file whose name is
1663
+ # defined in the item path. If no items are defined, the name of the file is the
1664
+ # secret_name. The contents of the target Secret's Data field will be presented
1665
+ # in a volume as files using the keys in the Data field as the file names.
1980
1666
  # Corresponds to the JSON property `secret`
1981
1667
  # @return [Google::Apis::RunV1alpha1::SecretVolumeSource]
1982
1668
  attr_accessor :secret
@@ -1993,33 +1679,8 @@ module Google
1993
1679
  end
1994
1680
  end
1995
1681
 
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
- # VolumeMount describes a mounting of a Volume within a container.
1682
+ # Not supported by Cloud Run VolumeMount describes a mounting of a Volume within
1683
+ # a container.
2023
1684
  class VolumeMount
2024
1685
  include Google::Apis::Core::Hashable
2025
1686
 
@@ -2029,27 +1690,19 @@ module Google
2029
1690
  # @return [String]
2030
1691
  attr_accessor :mount_path
2031
1692
 
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
1693
  # This must match the Name of a Volume.
2040
1694
  # Corresponds to the JSON property `name`
2041
1695
  # @return [String]
2042
1696
  attr_accessor :name
2043
1697
 
2044
- # Mounted read-only if true, read-write otherwise (false or unspecified).
2045
- # Defaults to false. +optional
1698
+ # (Optional) Only true is accepted. Defaults to true.
2046
1699
  # Corresponds to the JSON property `readOnly`
2047
1700
  # @return [Boolean]
2048
1701
  attr_accessor :read_only
2049
1702
  alias_method :read_only?, :read_only
2050
1703
 
2051
- # Path within the volume from which the container's volume should be mounted.
2052
- # Defaults to "" (volume's root). +optional
1704
+ # (Optional) Path within the volume from which the container's volume should be
1705
+ # mounted. Defaults to "" (volume's root).
2053
1706
  # Corresponds to the JSON property `subPath`
2054
1707
  # @return [String]
2055
1708
  attr_accessor :sub_path
@@ -2061,7 +1714,6 @@ module Google
2061
1714
  # Update properties of this object
2062
1715
  def update!(**args)
2063
1716
  @mount_path = args[:mount_path] if args.key?(:mount_path)
2064
- @mount_propagation = args[:mount_propagation] if args.key?(:mount_propagation)
2065
1717
  @name = args[:name] if args.key?(:name)
2066
1718
  @read_only = args[:read_only] if args.key?(:read_only)
2067
1719
  @sub_path = args[:sub_path] if args.key?(:sub_path)