google-apis-run_v1alpha1 0.10.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/google/apis/run_v1alpha1/classes.rb +315 -663
- data/lib/google/apis/run_v1alpha1/gem_version.rb +3 -3
- data/lib/google/apis/run_v1alpha1/representations.rb +8 -134
- data/lib/google/apis/run_v1alpha1/service.rb +2 -2
- data/lib/google/apis/run_v1alpha1.rb +3 -3
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd9b87a644d0ab0714a1c75ba13713c3fcc7ce8f2e9f21908f52a7246907115f
|
4
|
+
data.tar.gz: c375fc3ad69c691d9a55a0f3fd6205d34ee91a8cb6d77f13a6180471656c78ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5095d8076d51c92b0f549f1ab22c3d2fe83915bd4a20a056cfc9d51fcdfd7e9199793dae329c8050348ee4ba26068206b46ae3c849609d09a29a44ad14216f76
|
7
|
+
data.tar.gz: 37fff9988ed9abf424a34607542ff473cc8753fd688d1ff85e0dcac0a621ccee4d9de3031dcdb6c3018ada78e5ac11db3fbcd9e4bea528ee88c7103447e4eb48
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-run_v1alpha1
|
2
2
|
|
3
|
+
### v0.14.0 (2021-09-01)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210813
|
6
|
+
|
7
|
+
### v0.13.0 (2021-07-22)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210716
|
10
|
+
|
11
|
+
### v0.12.0 (2021-06-29)
|
12
|
+
|
13
|
+
* Regenerated using generator version 0.4.0
|
14
|
+
|
15
|
+
### v0.11.0 (2021-06-24)
|
16
|
+
|
17
|
+
* Unspecified changes
|
18
|
+
|
3
19
|
### v0.10.0 (2021-06-19)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210611
|
@@ -22,51 +22,24 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module RunV1alpha1
|
24
24
|
|
25
|
-
#
|
26
|
-
|
27
|
-
|
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
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
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
|
-
#
|
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
|
-
#
|
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
|
131
|
-
# field will be presented in a volume as files using
|
132
|
-
# as the file names, unless the items element is
|
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
|
138
|
-
# 0777. Defaults to 0644. Directories within the path are not
|
139
|
-
# setting. This might be in conflict with other options that
|
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
|
146
|
-
# will be projected into the volume as a file whose name is
|
147
|
-
# is the value. If specified, the listed keys will be
|
148
|
-
# specified paths, and unlisted keys will not be present. If
|
149
|
-
#
|
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
|
186
|
-
# provided. Variable references $(VAR_NAME) are expanded using the
|
187
|
-
# environment. If a variable cannot be resolved, the reference in
|
188
|
-
# string will be unchanged. The $(VAR_NAME) syntax can be escaped with
|
189
|
-
#
|
190
|
-
# whether the variable exists or not.
|
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
|
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
|
-
#
|
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.
|
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.
|
216
|
-
# defined within a source must be a C_IDENTIFIER. All invalid keys will
|
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.
|
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
|
-
#
|
226
|
-
#
|
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
|
232
|
-
# latest tag is specified, or IfNotPresent otherwise.
|
233
|
-
#
|
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
|
-
#
|
240
|
-
#
|
241
|
-
#
|
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.
|
254
|
-
#
|
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.
|
260
|
-
#
|
261
|
-
#
|
262
|
-
#
|
263
|
-
#
|
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
|
270
|
-
# determine whether it is alive or ready to receive
|
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
|
281
|
-
# container. Some fields are present in both
|
282
|
-
# PodSecurityContext. When both are set, the values in
|
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
|
-
#
|
289
|
-
#
|
290
|
-
#
|
291
|
-
# Corresponds to the JSON property `
|
292
|
-
# @return [
|
293
|
-
attr_accessor :
|
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
|
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.
|
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
|
320
|
-
# contents of terminationMessagePath to populate the container status
|
321
|
-
# both success and failure. FallbackToLogsOnError will use the last
|
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.
|
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
|
-
#
|
330
|
-
# to
|
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
|
349
|
-
# default will be used, which might be configured in the container
|
350
|
-
#
|
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
|
-
@
|
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
|
-
#
|
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
|
-
#
|
396
|
-
#
|
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
|
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
|
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
|
455
|
-
# with. The contents of the target ConfigMap's Data
|
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.
|
462
|
-
# C_IDENTIFIER.
|
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
|
468
|
-
# The contents of the target Secret's Data field
|
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
|
496
|
-
# environment variables in the container and any route environment
|
497
|
-
# a variable cannot be resolved, the reference in the input string
|
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 "".
|
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
|
-
#
|
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
|
556
|
-
# directory for the command is root ('/') in the container's filesystem.
|
557
|
-
# command is simply exec'd, it is not run inside a shell, so traditional
|
558
|
-
# instructions ('|', etc) won't work. To use a shell, you need to
|
559
|
-
# call out to that shell. Exit status of 0 is treated as live/healthy
|
560
|
-
# zero is unhealthy.
|
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
|
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
|
580
|
-
# Host" in httpHeaders instead.
|
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.
|
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.
|
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
|
-
#
|
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
|
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
|
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
|
@@ -940,7 +774,7 @@ module Google
|
|
940
774
|
attr_accessor :status
|
941
775
|
|
942
776
|
# Required. Type is used to communicate the status of the reconciliation process.
|
943
|
-
# See also: https://github.com/knative/serving/blob/
|
777
|
+
# See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#
|
944
778
|
# error-conditions-and-reporting Types include: * "Completed": True when the Job
|
945
779
|
# has successfully completed. * "Started": True when the Job has successfully
|
946
780
|
# started running. * "ResourcesAvailable": True when underlying resources have
|
@@ -1113,24 +947,22 @@ module Google
|
|
1113
947
|
class KeyToPath
|
1114
948
|
include Google::Apis::Core::Hashable
|
1115
949
|
|
1116
|
-
#
|
1117
|
-
#
|
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
|
1124
|
-
# specified, the volume defaultMode will be used. This might be in
|
1125
|
-
# other options that affect the file mode, like fsGroup, and the
|
1126
|
-
# other mode bits set.
|
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
|
-
#
|
1132
|
-
#
|
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
|
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/
|
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
|
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
|
1307
|
-
# be set by external tools to store and retrieve arbitrary metadata.
|
1308
|
-
# not queryable and should be preserved when modifying objects. More
|
1309
|
-
#
|
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
|
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.
|
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
|
1323
|
-
# was created. It is not guaranteed to be set in happens-before
|
1324
|
-
# separate operations. Clients may not set this value. It is
|
1325
|
-
# RFC3339 form and is in UTC. Populated by the system. Read-only.
|
1326
|
-
# More info: https://git.k8s.io/community/contributors/devel/api-
|
1327
|
-
# metadata
|
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
|
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
|
1341
|
-
# deleted. This field is set by the server
|
1342
|
-
# by the user, and is not directly
|
1343
|
-
# expected to be deleted (no longer
|
1344
|
-
# reachable by name) after the time in this
|
1345
|
-
# empty. As long as the finalizers list
|
1346
|
-
# Once the deletionTimestamp is set, this
|
1347
|
-
# further into the future, although it may be
|
1348
|
-
# deleted prior to this time. For example, a
|
1349
|
-
# deleted in 30 seconds. The Kubelet will react
|
1350
|
-
# termination signal to the containers in the pod. After
|
1351
|
-
# Kubelet will send a hard termination signal (SIGKILL) to
|
1352
|
-
# after cleanup, remove the pod from the API. In the presence
|
1353
|
-
# partitions, this object may still exist after this timestamp, until
|
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
|
1161
|
+
# metadata
|
1359
1162
|
# Corresponds to the JSON property `deletionTimestamp`
|
1360
1163
|
# @return [String]
|
1361
1164
|
attr_accessor :deletion_timestamp
|
1362
1165
|
|
1363
|
-
# Not
|
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. +
|
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
|
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
|
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
|
1390
|
-
# Populated by the system. Read-only.
|
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
|
1396
|
-
# scope and select) objects. May match selectors of replication
|
1397
|
-
# routes. More info: http://kubernetes.io/docs/user-guide/labels
|
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
|
1420
|
-
# deleted, this object will be garbage
|
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
|
1426
|
-
# be used by clients to determine when objects have changed. May be
|
1427
|
-
# optimistic concurrency, change detection, and the watch operation on
|
1428
|
-
# resource or set of resources. Clients must treat these values as opaque and
|
1429
|
-
# passed unmodified back to the server
|
1430
|
-
#
|
1431
|
-
#
|
1432
|
-
# contributors/
|
1433
|
-
#
|
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.
|
1439
|
-
#
|
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
|
1445
|
-
# generated by the server on successful creation of a resource and is
|
1446
|
-
# allowed to change on PUT operations. Populated by the system. Read-only.
|
1447
|
-
# info: http://kubernetes.io/docs/user-guide/identifiers#uids
|
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
|
1537
|
-
# determine whether it is alive or ready to receive
|
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
|
-
#
|
1542
|
-
#
|
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
|
-
#
|
1548
|
-
#
|
1549
|
-
#
|
1550
|
-
|
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
|
1553
|
-
# initiated. More info: https://kubernetes.io/docs/concepts/workloads/
|
1554
|
-
# lifecycle#container-probes
|
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.
|
1560
|
-
# value is 1.
|
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
|
1566
|
-
# having failed. Defaults to 1. Must be 1 for liveness. Minimum
|
1567
|
-
#
|
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
|
-
#
|
1573
|
-
#
|
1574
|
-
#
|
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
|
-
@
|
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
|
-
#
|
1628
|
-
#
|
1629
|
-
#
|
1630
|
-
#
|
1631
|
-
#
|
1632
|
-
#
|
1633
|
-
|
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
|
-
#
|
1669
|
-
|
1670
|
-
|
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
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
1748
|
-
#
|
1749
|
-
#
|
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
|
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
|
-
#
|
1762
|
-
#
|
1763
|
-
#
|
1764
|
-
#
|
1765
|
-
#
|
1766
|
-
#
|
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
|
-
#
|
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
|
1793
|
-
#
|
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
|
1798
|
-
# 0777. Defaults to 0644. Directories within the path are not
|
1799
|
-
# setting. This might be in conflict with other options that
|
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
|
-
#
|
1806
|
-
#
|
1807
|
-
#
|
1808
|
-
#
|
1809
|
-
#
|
1810
|
-
#
|
1811
|
-
#
|
1812
|
-
#
|
1813
|
-
#
|
1814
|
-
#
|
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
|
-
#
|
1826
|
-
#
|
1827
|
-
#
|
1828
|
-
#
|
1829
|
-
#
|
1830
|
-
#
|
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
|
1850
|
-
# container. Some fields are present in both
|
1851
|
-
# PodSecurityContext. When both are set, the values in
|
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
|
-
#
|
1857
|
-
#
|
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.
|
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
|
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.
|
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
|
-
#
|
1943
|
-
#
|
1944
|
-
#
|
1945
|
-
#
|
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 [
|
1631
|
+
# @return [Fixnum]
|
1948
1632
|
attr_accessor :port
|
1949
1633
|
|
1950
1634
|
def initialize(**args)
|
@@ -1962,21 +1646,23 @@ module Google
|
|
1962
1646
|
class Volume
|
1963
1647
|
include Google::Apis::Core::Hashable
|
1964
1648
|
|
1965
|
-
# Adapts a ConfigMap into a volume. The contents of
|
1966
|
-
# field will be presented in a volume as files using
|
1967
|
-
# as the file names, unless the items element is
|
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
|
1972
1656
|
|
1973
|
-
# Volume's name.
|
1657
|
+
# Volume's name. In Cloud Run Fully Managed, the name 'cloudsql' is reserved.
|
1974
1658
|
# Corresponds to the JSON property `name`
|
1975
1659
|
# @return [String]
|
1976
1660
|
attr_accessor :name
|
1977
1661
|
|
1978
|
-
# The
|
1979
|
-
#
|
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,32 +1679,6 @@ 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
1682
|
# VolumeMount describes a mounting of a Volume within a container.
|
2023
1683
|
class VolumeMount
|
2024
1684
|
include Google::Apis::Core::Hashable
|
@@ -2029,27 +1689,20 @@ module Google
|
|
2029
1689
|
# @return [String]
|
2030
1690
|
attr_accessor :mount_path
|
2031
1691
|
|
2032
|
-
#
|
2033
|
-
#
|
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.
|
1692
|
+
# The name of the volume. There must be a corresponding Volume with the same
|
1693
|
+
# name.
|
2040
1694
|
# Corresponds to the JSON property `name`
|
2041
1695
|
# @return [String]
|
2042
1696
|
attr_accessor :name
|
2043
1697
|
|
2044
|
-
#
|
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
|
2052
|
-
# Defaults to "" (volume's root).
|
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)
|