Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="run_v1.html">Cloud Run API</a> . <a href="run_v1.projects.html">projects</a> . <a href="run_v1.projects.locations.html">locations</a> . <a href="run_v1.projects.locations.services.html">services</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p> |
| 79 | <p class="firstline">Create a service.</p> |
| 80 | <p class="toc_element"> |
| 81 | <code><a href="#delete">delete(name, apiVersion=None, propagationPolicy=None, kind=None, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Delete a service.</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 85 | <p class="firstline">Get information about a service.</p> |
| 86 | <p class="toc_element"> |
| 87 | <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p> |
| 88 | <p class="firstline">Get the IAM Access Control policy currently in effect for the given</p> |
| 89 | <p class="toc_element"> |
| 90 | <code><a href="#list">list(parent, resourceVersion=None, includeUninitialized=None, fieldSelector=None, continue=None, limit=None, watch=None, labelSelector=None, x__xgafv=None)</a></code></p> |
| 91 | <p class="firstline">List services.</p> |
| 92 | <p class="toc_element"> |
| 93 | <code><a href="#replaceService">replaceService(name, body=None, x__xgafv=None)</a></code></p> |
| 94 | <p class="firstline">Replace a service.</p> |
| 95 | <p class="toc_element"> |
| 96 | <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p> |
| 97 | <p class="firstline">Sets the IAM Access control policy for the specified Service. Overwrites</p> |
| 98 | <p class="toc_element"> |
| 99 | <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p> |
| 100 | <p class="firstline">Returns permissions that a caller has on the specified Project.</p> |
| 101 | <h3>Method Details</h3> |
| 102 | <div class="method"> |
| 103 | <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code> |
| 104 | <pre>Create a service. |
| 105 | |
| 106 | Args: |
| 107 | parent: string, The namespace in which the service should be created. |
| 108 | For Cloud Run (fully managed), replace {namespace_id} with the project ID |
| 109 | or number. (required) |
| 110 | body: object, The request body. |
| 111 | The object takes the form of: |
| 112 | |
| 113 | { # Service acts as a top-level container that manages a set of Routes and |
| 114 | # Configurations which implement a network service. Service exists to provide a |
| 115 | # singular abstraction which can be access controlled, reasoned about, and |
| 116 | # which encapsulates software lifecycle decisions such as rollout policy and |
| 117 | # team resource ownership. Service acts only as an orchestrator of the |
| 118 | # underlying Routes and Configurations (much as a kubernetes Deployment |
| 119 | # orchestrates ReplicaSets). |
| 120 | # |
| 121 | # The Service's controller will track the statuses of its owned Configuration |
| 122 | # and Route, reflecting their statuses and conditions as its own. |
| 123 | # |
| 124 | # See also: |
| 125 | # https://github.com/knative/serving/blob/master/docs/spec/overview.md#service |
| 126 | "status": { # The current state of the Service. Output only. # Status communicates the observed state of the Service (from the |
| 127 | # controller). |
| 128 | "latestCreatedRevisionName": "A String", # From ConfigurationStatus. |
| 129 | # LatestCreatedRevisionName is the last revision that was created from this |
| 130 | # Service's Configuration. It might not be ready yet, for that use |
| 131 | # LatestReadyRevisionName. |
| 132 | "conditions": [ # Conditions communicates information about ongoing/complete |
| 133 | # reconciliation processes that bring the "spec" inline with the observed |
| 134 | # state of the world. |
| 135 | # Service-specific conditions include: |
| 136 | # * "ConfigurationsReady": true when the underlying Configuration is ready. |
| 137 | # * "RoutesReady": true when the underlying Route is ready. |
| 138 | # * "Ready": true when both the underlying Route and Configuration are |
| 139 | # ready. |
| 140 | { # Condition defines a generic condition for a Resource |
| 141 | "message": "A String", # Optional. Human readable message indicating details about the current status. |
| 142 | "lastTransitionTime": "A String", # Optional. Last time the condition transitioned from one status to another. |
| 143 | "status": "A String", # Status of the condition, one of True, False, Unknown. |
| 144 | "severity": "A String", # Optional. How to interpret failures of this condition, one of Error, Warning, Info |
| 145 | "reason": "A String", # Optional. One-word CamelCase reason for the condition's last transition. |
| 146 | "type": "A String", # type is used to communicate the status of the reconciliation process. |
| 147 | # See also: |
| 148 | # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting |
| 149 | # Types common to all resources include: |
| 150 | # * "Ready": True when the Resource is ready. |
| 151 | }, |
| 152 | ], |
| 153 | "address": { # Information for connecting over HTTP(s). # From RouteStatus. |
| 154 | # Similar to url, information on where the service is available on HTTP. |
| 155 | "url": "A String", |
| 156 | }, |
| 157 | "observedGeneration": 42, # ObservedGeneration is the 'Generation' of the Route that |
| 158 | # was last processed by the controller. |
| 159 | # |
| 160 | # Clients polling for completed reconciliation should poll until |
| 161 | # observedGeneration = metadata.generation and the Ready condition's status |
| 162 | # is True or False. |
| 163 | "url": "A String", # From RouteStatus. |
| 164 | # URL holds the url that will distribute traffic over the provided traffic |
| 165 | # targets. It generally has the form |
| 166 | # https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app |
| 167 | "traffic": [ # From RouteStatus. |
| 168 | # Traffic holds the configured traffic distribution. |
| 169 | # These entries will always contain RevisionName references. |
| 170 | # When ConfigurationName appears in the spec, this will hold the |
| 171 | # LatestReadyRevisionName that we last observed. |
| 172 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 173 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 174 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 175 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 176 | # (e.g. basic auth, url path, etc. |
| 177 | # |
| 178 | # Not currently supported in Cloud Run. |
| 179 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 180 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 181 | # of the referenced configuration changes, we will automatically migrate |
| 182 | # traffic from the prior "latest ready" revision to the new one. This field |
| 183 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 184 | # with RevisionName. |
| 185 | # |
| 186 | # Cloud Run currently supports a single ConfigurationName. |
| 187 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 188 | # This defaults to zero if unspecified. |
| 189 | # |
| 190 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 191 | # TrafficTarget entry. |
| 192 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 193 | # traffic. This is mutually exclusive with ConfigurationName. |
| 194 | # |
| 195 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 196 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 197 | # ready Revision of the Configuration should be used for this traffic |
| 198 | # target. When provided LatestRevision must be true if RevisionName is |
| 199 | # empty; it must be false when RevisionName is non-empty. |
| 200 | # |
| 201 | # +optional |
| 202 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 203 | # this target exclusively. |
| 204 | # |
| 205 | # Not currently supported in Cloud Run. |
| 206 | # +optional |
| 207 | }, |
| 208 | ], |
| 209 | "latestReadyRevisionName": "A String", # From ConfigurationStatus. |
| 210 | # LatestReadyRevisionName holds the name of the latest Revision stamped out |
| 211 | # from this Service's Configuration that has had its "Ready" condition become |
| 212 | # "True". |
| 213 | }, |
| 214 | "apiVersion": "A String", # The API version for this call such as "serving.knative.dev/v1". |
| 215 | "spec": { # ServiceSpec holds the desired state of the Route (from the client), which # Spec holds the desired state of the Service (from the client). |
| 216 | # is used to manipulate the underlying Route and Configuration(s). |
| 217 | "traffic": [ # Traffic specifies how to distribute traffic over a collection of Knative |
| 218 | # Revisions and Configurations. |
| 219 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 220 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 221 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 222 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 223 | # (e.g. basic auth, url path, etc. |
| 224 | # |
| 225 | # Not currently supported in Cloud Run. |
| 226 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 227 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 228 | # of the referenced configuration changes, we will automatically migrate |
| 229 | # traffic from the prior "latest ready" revision to the new one. This field |
| 230 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 231 | # with RevisionName. |
| 232 | # |
| 233 | # Cloud Run currently supports a single ConfigurationName. |
| 234 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 235 | # This defaults to zero if unspecified. |
| 236 | # |
| 237 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 238 | # TrafficTarget entry. |
| 239 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 240 | # traffic. This is mutually exclusive with ConfigurationName. |
| 241 | # |
| 242 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 243 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 244 | # ready Revision of the Configuration should be used for this traffic |
| 245 | # target. When provided LatestRevision must be true if RevisionName is |
| 246 | # empty; it must be false when RevisionName is non-empty. |
| 247 | # |
| 248 | # +optional |
| 249 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 250 | # this target exclusively. |
| 251 | # |
| 252 | # Not currently supported in Cloud Run. |
| 253 | # +optional |
| 254 | }, |
| 255 | ], |
| 256 | "template": { # RevisionTemplateSpec describes the data a revision should have when created # Template holds the latest specification for the Revision to |
| 257 | # be stamped out. |
| 258 | # from a template. Based on: |
| 259 | # https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190 |
| 260 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Optional metadata for this Revision, including labels and annotations. Name |
| 261 | # will be generated by the Configuration. |
| 262 | # To set minimum instances for this revision, use the |
| 263 | # "autoscaling.knative.dev/minScale" annotation key. |
| 264 | # To set maximum instances for this revision, use the |
| 265 | # "autoscaling.knative.dev/maxScale" annotation key. |
| 266 | # To set Cloud SQL connections for the revision, use the |
| 267 | # "run.googleapis.com/cloudsql-instances" annotation key. |
| 268 | # persisted resources must have, which includes all objects users must create. |
| 269 | "creationTimestamp": "A String", # (Optional) |
| 270 | # |
| 271 | # CreationTimestamp is a timestamp representing the server time when this |
| 272 | # object was created. It is not guaranteed to be set in happens-before order |
| 273 | # across separate operations. Clients may not set this value. It is |
| 274 | # represented in RFC3339 form and is in UTC. |
| 275 | # |
| 276 | # Populated by the system. |
| 277 | # Read-only. |
| 278 | # Null for lists. |
| 279 | # More info: |
| 280 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 281 | "labels": { # (Optional) |
| 282 | # |
| 283 | # Map of string keys and values that can be used to organize and categorize |
| 284 | # (scope and select) objects. May match selectors of replication controllers |
| 285 | # and routes. |
| 286 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 287 | "a_key": "A String", |
| 288 | }, |
| 289 | "generation": 42, # (Optional) |
| 290 | # |
| 291 | # A sequence number representing a specific generation of the desired state. |
| 292 | # Populated by the system. Read-only. |
| 293 | "resourceVersion": "A String", # (Optional) |
| 294 | # |
| 295 | # An opaque value that represents the internal version of this object that |
| 296 | # can be used by clients to determine when objects have changed. May be used |
| 297 | # for optimistic concurrency, change detection, and the watch operation on a |
| 298 | # resource or set of resources. Clients must treat these values as opaque and |
| 299 | # passed unmodified back to the server. They may only be valid for a |
| 300 | # particular resource or set of resources. |
| 301 | # |
| 302 | # Populated by the system. |
| 303 | # Read-only. |
| 304 | # Value must be treated as opaque by clients and . |
| 305 | # More info: |
| 306 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 307 | "selfLink": "A String", # (Optional) |
| 308 | # |
| 309 | # SelfLink is a URL representing this object. |
| 310 | # Populated by the system. |
| 311 | # Read-only. |
| 312 | # string selfLink = 4; |
| 313 | "uid": "A String", # (Optional) |
| 314 | # |
| 315 | # UID is the unique in time and space value for this object. It is typically |
| 316 | # generated by the server on successful creation of a resource and is not |
| 317 | # allowed to change on PUT operations. |
| 318 | # |
| 319 | # Populated by the system. |
| 320 | # Read-only. |
| 321 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 322 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 323 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 324 | # project ID or project number. |
| 325 | "annotations": { # (Optional) |
| 326 | # |
| 327 | # Annotations is an unstructured key value map stored with a resource that |
| 328 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 329 | # are not queryable and should be preserved when modifying objects. More |
| 330 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 331 | "a_key": "A String", |
| 332 | }, |
| 333 | "generateName": "A String", # (Optional) |
| 334 | # |
| 335 | # Cloud Run fully managed: not supported |
| 336 | # |
| 337 | # Cloud Run for Anthos: supported |
| 338 | # |
| 339 | # GenerateName is an optional prefix, used by the server, to generate a |
| 340 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 341 | # used, the name returned to the client will be different than the name |
| 342 | # passed. This value will also be combined with a unique suffix. The provided |
| 343 | # value has the same validation rules as the Name field, and may be truncated |
| 344 | # by the length of the suffix required to make the value unique on the |
| 345 | # server. |
| 346 | # |
| 347 | # If this field is specified and the generated name exists, the server will |
| 348 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 349 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 350 | # time allotted, and the client should retry (optionally after the time |
| 351 | # indicated in the Retry-After header). |
| 352 | # |
| 353 | # Applied only if Name is not specified. |
| 354 | # More info: |
| 355 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 356 | # string generateName = 2; |
| 357 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 358 | # Is required when creating |
| 359 | # resources, although some resources may allow a client to request the |
| 360 | # generation of an appropriate name automatically. Name is primarily intended |
| 361 | # for creation idempotence and configuration definition. Cannot be updated. |
| 362 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 363 | # +optional |
| 364 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 365 | # |
| 366 | # Cloud Run fully managed: not supported |
| 367 | # |
| 368 | # Cloud Run for Anthos: supported |
| 369 | # |
| 370 | # Number of seconds allowed for this object to gracefully terminate before |
| 371 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 372 | # set. May only be shortened. Read-only. |
| 373 | "clusterName": "A String", # (Optional) |
| 374 | # |
| 375 | # Cloud Run fully managed: not supported |
| 376 | # |
| 377 | # Cloud Run for Anthos: supported |
| 378 | # |
| 379 | # The name of the cluster which the object belongs to. |
| 380 | # This is used to distinguish resources with same name and namespace in |
| 381 | # different clusters. This field is not set anywhere right now and apiserver |
| 382 | # is going to ignore it if set in create or update request. |
| 383 | "finalizers": [ # (Optional) |
| 384 | # |
| 385 | # Cloud Run fully managed: not supported |
| 386 | # |
| 387 | # Cloud Run for Anthos: supported |
| 388 | # |
| 389 | # Must be empty before the object is deleted from the registry. Each entry |
| 390 | # is an identifier for the responsible component that will remove the entry |
| 391 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 392 | # in this list can only be removed. |
| 393 | # +patchStrategy=merge |
| 394 | "A String", |
| 395 | ], |
| 396 | "deletionTimestamp": "A String", # (Optional) |
| 397 | # |
| 398 | # Cloud Run fully managed: not supported |
| 399 | # |
| 400 | # Cloud Run for Anthos: supported |
| 401 | # |
| 402 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 403 | # deleted. This field is set by the server when a graceful deletion is |
| 404 | # requested by the user, and is not directly settable by a client. The |
| 405 | # resource is expected to be deleted (no longer visible from resource lists, |
| 406 | # and not reachable by name) after the time in this field, once the |
| 407 | # finalizers list is empty. As long as the finalizers list contains items, |
| 408 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 409 | # be unset or be set further into the future, although it may be shortened or |
| 410 | # the resource may be deleted prior to this time. For example, a user may |
| 411 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 412 | # sending a graceful termination signal to the containers in the pod. After |
| 413 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 414 | # to the container and after cleanup, remove the pod from the API. In the |
| 415 | # presence of network partitions, this object may still exist after this |
| 416 | # timestamp, until an administrator or automated process can determine the |
| 417 | # resource is fully terminated. |
| 418 | # If not set, graceful deletion of the object has not been requested. |
| 419 | # |
| 420 | # Populated by the system when a graceful deletion is requested. |
| 421 | # Read-only. |
| 422 | # More info: |
| 423 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 424 | "ownerReferences": [ # (Optional) |
| 425 | # |
| 426 | # Cloud Run fully managed: not supported |
| 427 | # |
| 428 | # Cloud Run for Anthos: supported |
| 429 | # |
| 430 | # List of objects that own this object. If ALL objects in the list have |
| 431 | # been deleted, this object will be garbage collected. |
| 432 | { # OwnerReference contains enough information to let you identify an owning |
| 433 | # object. Currently, an owning object must be in the same namespace, so there |
| 434 | # is no namespace field. |
| 435 | "uid": "A String", # UID of the referent. |
| 436 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 437 | "controller": True or False, # If true, this reference points to the managing controller. |
| 438 | # +optional |
| 439 | "kind": "A String", # Kind of the referent. |
| 440 | # More info: |
| 441 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 442 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 443 | # the owner cannot be deleted from the key-value store until this |
| 444 | # reference is removed. |
| 445 | # Defaults to false. |
| 446 | # To set this field, a user needs "delete" permission of the owner, |
| 447 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 448 | # +optional |
| 449 | "apiVersion": "A String", # API version of the referent. |
| 450 | "name": "A String", # Name of the referent. |
| 451 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 452 | }, |
| 453 | ], |
| 454 | }, |
| 455 | "spec": { # RevisionSpec holds the desired state of the Revision (from the client). # RevisionSpec holds the desired state of the Revision (from the client). |
| 456 | "volumes": [ |
| 457 | { # Cloud Run fully managed: not supported |
| 458 | # |
| 459 | # Cloud Run for Anthos: supported |
| 460 | # |
| 461 | # Volume represents a named volume in a container. |
| 462 | "configMap": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 463 | # |
| 464 | # Cloud Run for Anthos: supported |
| 465 | # |
| 466 | # Cloud Run for Anthos: supported |
| 467 | # |
| 468 | # Adapts a ConfigMap into a volume. |
| 469 | # The contents of the target ConfigMap's Data field will be presented in a |
| 470 | # volume as files using the keys in the Data field as the file names, unless |
| 471 | # the items element is populated with specific mappings of keys to paths. |
| 472 | "optional": True or False, # (Optional) |
| 473 | # |
| 474 | # Cloud Run fully managed: not supported |
| 475 | # |
| 476 | # Cloud Run for Anthos: supported |
| 477 | # |
| 478 | # Specify whether the Secret or its keys must be defined. |
| 479 | "name": "A String", # Cloud Run fully managed: not supported |
| 480 | # |
| 481 | # Cloud Run for Anthos: supported |
| 482 | # |
| 483 | # Name of the config. |
| 484 | "defaultMode": 42, # (Optional) |
| 485 | # |
| 486 | # Cloud Run fully managed: not supported |
| 487 | # |
| 488 | # Cloud Run for Anthos: supported |
| 489 | # |
| 490 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 491 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 492 | # this setting. This might be in conflict with other options that affect the |
| 493 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 494 | "items": [ # (Optional) |
| 495 | # |
| 496 | # Cloud Run fully managed: not supported |
| 497 | # |
| 498 | # Cloud Run for Anthos: supported |
| 499 | # |
| 500 | # If unspecified, each key-value pair in the Data field of the referenced |
| 501 | # Secret will be projected into the volume as a file whose name is the |
| 502 | # key and content is the value. If specified, the listed keys will be |
| 503 | # projected into the specified paths, and unlisted keys will not be |
| 504 | # present. If a key is specified which is not present in the Secret, |
| 505 | # the volume setup will error unless it is marked optional. |
| 506 | { # Cloud Run fully managed: not supported |
| 507 | # |
| 508 | # Cloud Run for Anthos: supported |
| 509 | # |
| 510 | # Maps a string key to a path within a volume. |
| 511 | "key": "A String", # Cloud Run fully managed: not supported |
| 512 | # |
| 513 | # Cloud Run for Anthos: supported |
| 514 | # |
| 515 | # The key to project. |
| 516 | "path": "A String", # Cloud Run fully managed: not supported |
| 517 | # |
| 518 | # Cloud Run for Anthos: supported |
| 519 | # |
| 520 | # The relative path of the file to map the key to. |
| 521 | # May not be an absolute path. |
| 522 | # May not contain the path element '..'. |
| 523 | # May not start with the string '..'. |
| 524 | "mode": 42, # (Optional) |
| 525 | # |
| 526 | # Cloud Run fully managed: not supported |
| 527 | # |
| 528 | # Cloud Run for Anthos: supported |
| 529 | # |
| 530 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 531 | # specified, the volume defaultMode will be used. This might be in conflict |
| 532 | # with other options that affect the file mode, like fsGroup, and the result |
| 533 | # can be other mode bits set. |
| 534 | }, |
| 535 | ], |
| 536 | }, |
| 537 | "name": "A String", # Cloud Run fully managed: not supported |
| 538 | # |
| 539 | # Cloud Run for Anthos: supported |
| 540 | # |
| 541 | # Volume's name. |
| 542 | "secret": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 543 | # |
| 544 | # Cloud Run for Anthos: supported |
| 545 | # |
| 546 | # Cloud Run for Anthos: supported |
| 547 | # |
| 548 | # The contents of the target Secret's Data field will be presented in a volume |
| 549 | # as files using the keys in the Data field as the file names. |
| 550 | "optional": True or False, # (Optional) |
| 551 | # |
| 552 | # Cloud Run fully managed: not supported |
| 553 | # |
| 554 | # Cloud Run for Anthos: supported |
| 555 | # |
| 556 | # Specify whether the Secret or its keys must be defined. |
| 557 | "defaultMode": 42, # (Optional) |
| 558 | # |
| 559 | # Cloud Run fully managed: not supported |
| 560 | # |
| 561 | # Cloud Run for Anthos: supported |
| 562 | # |
| 563 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 564 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 565 | # this setting. This might be in conflict with other options that affect the |
| 566 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 567 | "secretName": "A String", # Cloud Run fully managed: not supported |
| 568 | # |
| 569 | # Cloud Run for Anthos: supported |
| 570 | # |
| 571 | # Name of the secret in the container's namespace to use. |
| 572 | "items": [ # (Optional) |
| 573 | # |
| 574 | # Cloud Run fully managed: not supported |
| 575 | # |
| 576 | # Cloud Run for Anthos: supported |
| 577 | # |
| 578 | # If unspecified, each key-value pair in the Data field of the referenced |
| 579 | # Secret will be projected into the volume as a file whose name is the |
| 580 | # key and content is the value. If specified, the listed keys will be |
| 581 | # projected into the specified paths, and unlisted keys will not be |
| 582 | # present. If a key is specified which is not present in the Secret, |
| 583 | # the volume setup will error unless it is marked optional. |
| 584 | { # Cloud Run fully managed: not supported |
| 585 | # |
| 586 | # Cloud Run for Anthos: supported |
| 587 | # |
| 588 | # Maps a string key to a path within a volume. |
| 589 | "key": "A String", # Cloud Run fully managed: not supported |
| 590 | # |
| 591 | # Cloud Run for Anthos: supported |
| 592 | # |
| 593 | # The key to project. |
| 594 | "path": "A String", # Cloud Run fully managed: not supported |
| 595 | # |
| 596 | # Cloud Run for Anthos: supported |
| 597 | # |
| 598 | # The relative path of the file to map the key to. |
| 599 | # May not be an absolute path. |
| 600 | # May not contain the path element '..'. |
| 601 | # May not start with the string '..'. |
| 602 | "mode": 42, # (Optional) |
| 603 | # |
| 604 | # Cloud Run fully managed: not supported |
| 605 | # |
| 606 | # Cloud Run for Anthos: supported |
| 607 | # |
| 608 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 609 | # specified, the volume defaultMode will be used. This might be in conflict |
| 610 | # with other options that affect the file mode, like fsGroup, and the result |
| 611 | # can be other mode bits set. |
| 612 | }, |
| 613 | ], |
| 614 | }, |
| 615 | }, |
| 616 | ], |
| 617 | "containerConcurrency": 42, # (Optional) |
| 618 | # |
| 619 | # ContainerConcurrency specifies the maximum allowed in-flight (concurrent) |
| 620 | # requests per container instance of the Revision. |
| 621 | # |
| 622 | # Cloud Run fully managed: supported, defaults to 80 |
| 623 | # |
| 624 | # Cloud Run for Anthos: supported, defaults to 0, which means concurrency |
| 625 | # to the application is not limited, and the system decides the |
| 626 | # target concurrency for the autoscaler. |
| 627 | "timeoutSeconds": 42, # TimeoutSeconds holds the max duration the instance is allowed for |
| 628 | # responding to a request. |
| 629 | # Not currently used by Cloud Run. |
| 630 | "serviceAccountName": "A String", # Email address of the IAM service account associated with the revision |
| 631 | # of the service. The service account represents the identity of the |
| 632 | # running revision, and determines what permissions the revision has. If |
| 633 | # not provided, the revision will use the project's default service account. |
| 634 | "containers": [ # Containers holds the single container that defines the unit of execution |
| 635 | # for this Revision. In the context of a Revision, we disallow a number of |
| 636 | # fields on this Container, including: name and lifecycle. |
| 637 | # In Cloud Run, only a single container may be provided. |
| 638 | # The runtime contract is documented here: |
| 639 | # https://github.com/knative/serving/blob/master/docs/runtime-contract.md |
| 640 | { # A single application container. |
| 641 | # This specifies both the container to run, the command to run in the container |
| 642 | # and the arguments to supply to it. |
| 643 | # Note that additional arguments may be supplied by the system to the container |
| 644 | # at runtime. |
| 645 | "volumeMounts": [ # (Optional) |
| 646 | # |
| 647 | # Cloud Run fully managed: not supported |
| 648 | # |
| 649 | # Cloud Run for Anthos: supported |
| 650 | # |
| 651 | # Pod volumes to mount into the container's filesystem. |
| 652 | { # Cloud Run fully managed: not supported |
| 653 | # |
| 654 | # Cloud Run for Anthos: supported |
| 655 | # |
| 656 | # VolumeMount describes a mounting of a Volume within a container. |
| 657 | "name": "A String", # Cloud Run fully managed: not supported |
| 658 | # |
| 659 | # Cloud Run for Anthos: supported |
| 660 | # |
| 661 | # This must match the Name of a Volume. |
| 662 | "readOnly": True or False, # (Optional) |
| 663 | # |
| 664 | # Cloud Run fully managed: not supported |
| 665 | # |
| 666 | # Cloud Run for Anthos: supported |
| 667 | # |
| 668 | # Only true is accepted. |
| 669 | # Defaults to true. |
| 670 | "mountPath": "A String", # Cloud Run fully managed: not supported |
| 671 | # |
| 672 | # Cloud Run for Anthos: supported |
| 673 | # |
| 674 | # Path within the container at which the volume should be mounted. Must |
| 675 | # not contain ':'. |
| 676 | "subPath": "A String", # (Optional) |
| 677 | # |
| 678 | # Cloud Run fully managed: not supported |
| 679 | # |
| 680 | # Cloud Run for Anthos: supported |
| 681 | # |
| 682 | # Path within the volume from which the container's volume should be mounted. |
| 683 | # Defaults to "" (volume's root). |
| 684 | }, |
| 685 | ], |
| 686 | "args": [ # (Optional) |
| 687 | # |
| 688 | # Cloud Run fully managed: supported |
| 689 | # |
| 690 | # Cloud Run for Anthos: supported |
| 691 | # |
| 692 | # Arguments to the entrypoint. |
| 693 | # The docker image's CMD is used if this is not provided. |
| 694 | # Variable references $(VAR_NAME) are expanded using the container's |
| 695 | # environment. If a variable cannot be resolved, the reference in the input |
| 696 | # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a |
| 697 | # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, |
| 698 | # regardless of whether the variable exists or not. |
| 699 | # More info: |
| 700 | # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell |
| 701 | "A String", |
| 702 | ], |
| 703 | "workingDir": "A String", # (Optional) |
| 704 | # |
| 705 | # Cloud Run fully managed: not supported |
| 706 | # |
| 707 | # Cloud Run for Anthos: supported |
| 708 | # |
| 709 | # Container's working directory. |
| 710 | # If not specified, the container runtime's default will be used, which |
| 711 | # might be configured in the container image. |
| 712 | "ports": [ # (Optional) |
| 713 | # |
| 714 | # List of ports to expose from the container. Only a single port can be |
| 715 | # specified. The specified ports must be listening on all interfaces |
| 716 | # (0.0.0.0) within the container to be accessible. |
| 717 | # |
| 718 | # If omitted, a port number will be chosen and passed to the container |
| 719 | # through the PORT environment variable for the container to listen on. |
| 720 | { # ContainerPort represents a network port in a single container. |
| 721 | "containerPort": 42, # (Optional) |
| 722 | # |
| 723 | # Port number the container listens on. |
| 724 | # This must be a valid port number, 0 < x < 65536. |
| 725 | "protocol": "A String", # (Optional) |
| 726 | # |
| 727 | # Cloud Run fully managed: not supported |
| 728 | # |
| 729 | # Cloud Run for Anthos: supported |
| 730 | # |
| 731 | # Protocol for port. Must be "TCP". |
| 732 | # Defaults to "TCP". |
| 733 | "name": "A String", # (Optional) |
| 734 | # |
| 735 | # Cloud Run fully managed: not supported |
| 736 | # |
| 737 | # Cloud Run for Anthos: supported |
| 738 | # |
| 739 | # If specified, used to specify which protocol to use. |
| 740 | # Allowed values are "http1" and "h2c". |
| 741 | }, |
| 742 | ], |
| 743 | "image": "A String", # Cloud Run fully managed: only supports containers from Google Container |
| 744 | # Registry |
| 745 | # |
| 746 | # Cloud Run for Anthos: supported |
| 747 | # |
| 748 | # URL of the Container image. |
| 749 | # More info: https://kubernetes.io/docs/concepts/containers/images |
| 750 | "envFrom": [ # (Optional) |
| 751 | # |
| 752 | # Cloud Run fully managed: not supported |
| 753 | # |
| 754 | # Cloud Run for Anthos: supported |
| 755 | # |
| 756 | # List of sources to populate environment variables in the container. |
| 757 | # The keys defined within a source must be a C_IDENTIFIER. All invalid keys |
| 758 | # will be reported as an event when the container is starting. When a key |
| 759 | # exists in multiple sources, the value associated with the last source will |
| 760 | # take precedence. Values defined by an Env with a duplicate key will take |
| 761 | # precedence. Cannot be updated. |
| 762 | { # Cloud Run fully managed: not supported |
| 763 | # |
| 764 | # Cloud Run for Anthos: supported |
| 765 | # |
| 766 | # EnvFromSource represents the source of a set of ConfigMaps |
| 767 | "prefix": "A String", # (Optional) |
| 768 | # |
| 769 | # Cloud Run fully managed: not supported |
| 770 | # |
| 771 | # Cloud Run for Anthos: supported |
| 772 | # |
| 773 | # An optional identifier to prepend to each key in the ConfigMap. Must be a |
| 774 | # C_IDENTIFIER. |
| 775 | "configMapRef": { # Cloud Run fully managed: not supported # (Optional) |
| 776 | # |
| 777 | # Cloud Run fully managed: not supported |
| 778 | # |
| 779 | # Cloud Run for Anthos: supported |
| 780 | # |
| 781 | # The ConfigMap to select from |
| 782 | # |
| 783 | # Cloud Run for Anthos: supported |
| 784 | # |
| 785 | # ConfigMapEnvSource selects a ConfigMap to populate the environment |
| 786 | # variables with. |
| 787 | # |
| 788 | # The contents of the target ConfigMap's Data field will represent the |
| 789 | # key-value pairs as environment variables. |
| 790 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 791 | # directly into the message. Use the "name" field instead. |
| 792 | # |
| 793 | # Cloud Run for Anthos: supported |
| 794 | # |
| 795 | # LocalObjectReference contains enough information to let you locate the |
| 796 | # referenced object inside the same namespace. |
| 797 | "name": "A String", # (Optional) |
| 798 | # |
| 799 | # Cloud Run fully managed: not supported |
| 800 | # |
| 801 | # Cloud Run for Anthos: supported |
| 802 | # |
| 803 | # Name of the referent. |
| 804 | # More info: |
| 805 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 806 | }, |
| 807 | "optional": True or False, # (Optional) |
| 808 | # |
| 809 | # Cloud Run fully managed: not supported |
| 810 | # |
| 811 | # Cloud Run for Anthos: supported |
| 812 | # |
| 813 | # Specify whether the ConfigMap must be defined |
| 814 | "name": "A String", # Cloud Run fully managed: not supported |
| 815 | # |
| 816 | # Cloud Run for Anthos: supported |
| 817 | # |
| 818 | # The ConfigMap to select from. |
| 819 | }, |
| 820 | "secretRef": { # Cloud Run fully managed: not supported # (Optional) |
| 821 | # |
| 822 | # Cloud Run fully managed: not supported |
| 823 | # |
| 824 | # Cloud Run for Anthos: supported |
| 825 | # |
| 826 | # The Secret to select from |
| 827 | # |
| 828 | # Cloud Run for Anthos: supported |
| 829 | # |
| 830 | # SecretEnvSource selects a Secret to populate the environment |
| 831 | # variables with. |
| 832 | # |
| 833 | # The contents of the target Secret's Data field will represent the |
| 834 | # key-value pairs as environment variables. |
| 835 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 836 | # directly into the message. Use the "name" field instead. |
| 837 | # |
| 838 | # Cloud Run for Anthos: supported |
| 839 | # |
| 840 | # LocalObjectReference contains enough information to let you locate the |
| 841 | # referenced object inside the same namespace. |
| 842 | "name": "A String", # (Optional) |
| 843 | # |
| 844 | # Cloud Run fully managed: not supported |
| 845 | # |
| 846 | # Cloud Run for Anthos: supported |
| 847 | # |
| 848 | # Name of the referent. |
| 849 | # More info: |
| 850 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 851 | }, |
| 852 | "optional": True or False, # (Optional) |
| 853 | # |
| 854 | # Cloud Run fully managed: not supported |
| 855 | # |
| 856 | # Cloud Run for Anthos: supported |
| 857 | # |
| 858 | # Specify whether the Secret must be defined |
| 859 | "name": "A String", # Cloud Run fully managed: not supported |
| 860 | # |
| 861 | # Cloud Run for Anthos: supported |
| 862 | # |
| 863 | # The Secret to select from. |
| 864 | }, |
| 865 | }, |
| 866 | ], |
| 867 | "name": "A String", # (Optional) |
| 868 | # |
| 869 | # Name of the container specified as a DNS_LABEL. |
| 870 | "command": [ |
| 871 | "A String", |
| 872 | ], |
| 873 | "terminationMessagePolicy": "A String", # (Optional) |
| 874 | # |
| 875 | # Cloud Run fully managed: not supported |
| 876 | # |
| 877 | # Cloud Run for Anthos: supported |
| 878 | # |
| 879 | # Indicate how the termination message should be populated. File will use the |
| 880 | # contents of terminationMessagePath to populate the container status message |
| 881 | # on both success and failure. FallbackToLogsOnError will use the last chunk |
| 882 | # of container log output if the termination message file is empty and the |
| 883 | # container exited with an error. The log output is limited to 2048 bytes or |
| 884 | # 80 lines, whichever is smaller. Defaults to File. Cannot be updated. |
| 885 | "securityContext": { # Cloud Run fully managed: not supported # (Optional) |
| 886 | # |
| 887 | # Cloud Run fully managed: not supported |
| 888 | # |
| 889 | # Cloud Run for Anthos: supported |
| 890 | # |
| 891 | # Security options the pod should run with. |
| 892 | # More info: https://kubernetes.io/docs/concepts/policy/security-context/ |
| 893 | # More info: |
| 894 | # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| 895 | # |
| 896 | # Cloud Run for Anthos: supported |
| 897 | # |
| 898 | # SecurityContext holds security configuration that will be applied to a |
| 899 | # container. Some fields are present in both SecurityContext and |
| 900 | # PodSecurityContext. When both are set, the values in SecurityContext take |
| 901 | # precedence. |
| 902 | "runAsUser": 42, # (Optional) |
| 903 | # |
| 904 | # Cloud Run fully managed: not supported |
| 905 | # |
| 906 | # Cloud Run for Anthos: supported |
| 907 | # |
| 908 | # The UID to run the entrypoint of the container process. |
| 909 | # Defaults to user specified in image metadata if unspecified. |
| 910 | # May also be set in PodSecurityContext. If set in both SecurityContext and |
| 911 | # PodSecurityContext, the value specified in SecurityContext takes |
| 912 | # precedence. |
| 913 | }, |
| 914 | "livenessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 915 | # |
| 916 | # Cloud Run fully managed: not supported |
| 917 | # |
| 918 | # Cloud Run for Anthos: supported |
| 919 | # |
| 920 | # Periodic probe of container liveness. |
| 921 | # Container will be restarted if the probe fails. |
| 922 | # More info: |
| 923 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 924 | # |
| 925 | # Cloud Run for Anthos: supported |
| 926 | # |
| 927 | # Probe describes a health check to be performed against a container to |
| 928 | # determine whether it is alive or ready to receive traffic. |
| 929 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 930 | # |
| 931 | # Cloud Run fully managed: not supported |
| 932 | # |
| 933 | # Cloud Run for Anthos: supported |
| 934 | # |
| 935 | # HTTPGet specifies the http request to perform. |
| 936 | # |
| 937 | # A field inlined from the Handler message. |
| 938 | # |
| 939 | # Cloud Run for Anthos: supported |
| 940 | # |
| 941 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 942 | "httpHeaders": [ # (Optional) |
| 943 | # |
| 944 | # Cloud Run fully managed: not supported |
| 945 | # |
| 946 | # Cloud Run for Anthos: supported |
| 947 | # |
| 948 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 949 | { # Cloud Run fully managed: not supported |
| 950 | # |
| 951 | # Cloud Run for Anthos: supported |
| 952 | # |
| 953 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 954 | "name": "A String", # Cloud Run fully managed: not supported |
| 955 | # |
| 956 | # Cloud Run for Anthos: supported |
| 957 | # |
| 958 | # The header field name |
| 959 | "value": "A String", # Cloud Run fully managed: not supported |
| 960 | # |
| 961 | # Cloud Run for Anthos: supported |
| 962 | # |
| 963 | # The header field value |
| 964 | }, |
| 965 | ], |
| 966 | "path": "A String", # (Optional) |
| 967 | # |
| 968 | # Cloud Run fully managed: not supported |
| 969 | # |
| 970 | # Cloud Run for Anthos: supported |
| 971 | # |
| 972 | # Path to access on the HTTP server. |
| 973 | "host": "A String", # (Optional) |
| 974 | # |
| 975 | # Cloud Run fully managed: not supported |
| 976 | # |
| 977 | # Cloud Run for Anthos: supported |
| 978 | # |
| 979 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 980 | # "Host" in httpHeaders instead. |
| 981 | "scheme": "A String", # (Optional) |
| 982 | # |
| 983 | # Cloud Run fully managed: not supported |
| 984 | # |
| 985 | # Cloud Run for Anthos: supported |
| 986 | # |
| 987 | # Scheme to use for connecting to the host. |
| 988 | # Defaults to HTTP. |
| 989 | }, |
| 990 | "failureThreshold": 42, # (Optional) |
| 991 | # |
| 992 | # Cloud Run fully managed: not supported |
| 993 | # |
| 994 | # Cloud Run for Anthos: supported |
| 995 | # |
| 996 | # Minimum consecutive failures for the probe to be considered failed after |
| 997 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 998 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 999 | # |
| 1000 | # Cloud Run fully managed: not supported |
| 1001 | # |
| 1002 | # Cloud Run for Anthos: supported |
| 1003 | # |
| 1004 | # One and only one of the following should be specified. |
| 1005 | # Exec specifies the action to take. |
| 1006 | # |
| 1007 | # A field inlined from the Handler message. |
| 1008 | # |
| 1009 | # Cloud Run for Anthos: supported |
| 1010 | # |
| 1011 | # ExecAction describes a "run in container" action. |
| 1012 | "command": "A String", # (Optional) |
| 1013 | # |
| 1014 | # Cloud Run fully managed: not supported |
| 1015 | # |
| 1016 | # Cloud Run for Anthos: supported |
| 1017 | # |
| 1018 | # Command is the command line to execute inside the container, the working |
| 1019 | # directory for the command is root ('/') in the container's filesystem. The |
| 1020 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 1021 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 1022 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 1023 | # live/healthy and non-zero is unhealthy. |
| 1024 | }, |
| 1025 | "initialDelaySeconds": 42, # (Optional) |
| 1026 | # |
| 1027 | # Cloud Run fully managed: not supported |
| 1028 | # |
| 1029 | # Cloud Run for Anthos: supported |
| 1030 | # |
| 1031 | # Number of seconds after the container has started before liveness probes |
| 1032 | # are initiated. More info: |
| 1033 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 1034 | "timeoutSeconds": 42, # (Optional) |
| 1035 | # |
| 1036 | # Cloud Run fully managed: not supported |
| 1037 | # |
| 1038 | # Cloud Run for Anthos: supported |
| 1039 | # |
| 1040 | # Number of seconds after which the probe times out. |
| 1041 | # Defaults to 1 second. Minimum value is 1. |
| 1042 | # More info: |
| 1043 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 1044 | "successThreshold": 42, # (Optional) |
| 1045 | # |
| 1046 | # Cloud Run fully managed: not supported |
| 1047 | # |
| 1048 | # Cloud Run for Anthos: supported |
| 1049 | # |
| 1050 | # Minimum consecutive successes for the probe to be considered successful |
| 1051 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 1052 | # is 1. |
| 1053 | "periodSeconds": 42, # (Optional) |
| 1054 | # |
| 1055 | # Cloud Run fully managed: not supported |
| 1056 | # |
| 1057 | # Cloud Run for Anthos: supported |
| 1058 | # |
| 1059 | # How often (in seconds) to perform the probe. |
| 1060 | # Default to 10 seconds. Minimum value is 1. |
| 1061 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 1062 | # |
| 1063 | # Cloud Run fully managed: not supported |
| 1064 | # |
| 1065 | # Cloud Run for Anthos: supported |
| 1066 | # |
| 1067 | # TCPSocket specifies an action involving a TCP port. |
| 1068 | # TCP hooks not yet supported |
| 1069 | # |
| 1070 | # A field inlined from the Handler message. |
| 1071 | # |
| 1072 | # Cloud Run for Anthos: supported |
| 1073 | # |
| 1074 | # TCPSocketAction describes an action based on opening a socket |
| 1075 | "port": 42, # Cloud Run fully managed: not supported |
| 1076 | # |
| 1077 | # Cloud Run for Anthos: supported |
| 1078 | # |
| 1079 | # Number or name of the port to access on the container. |
| 1080 | # Number must be in the range 1 to 65535. |
| 1081 | # Name must be an IANA_SVC_NAME. |
| 1082 | # |
| 1083 | # This field is currently limited to integer types only because of proto's |
| 1084 | # inability to properly support the IntOrString golang type. |
| 1085 | "host": "A String", # (Optional) |
| 1086 | # |
| 1087 | # Cloud Run fully managed: not supported |
| 1088 | # |
| 1089 | # Cloud Run for Anthos: supported |
| 1090 | # |
| 1091 | # Optional: Host name to connect to, defaults to the pod IP. |
| 1092 | }, |
| 1093 | }, |
| 1094 | "env": [ # (Optional) |
| 1095 | # |
| 1096 | # Cloud Run fully managed: supported |
| 1097 | # |
| 1098 | # Cloud Run for Anthos: supported |
| 1099 | # |
| 1100 | # List of environment variables to set in the container. |
| 1101 | { # EnvVar represents an environment variable present in a Container. |
| 1102 | "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER. |
| 1103 | "valueFrom": { # Cloud Run fully managed: not supported # (Optional) |
| 1104 | # |
| 1105 | # Cloud Run fully managed: not supported |
| 1106 | # |
| 1107 | # Cloud Run for Anthos: supported |
| 1108 | # |
| 1109 | # Source for the environment variable's value. Cannot be used if value is not |
| 1110 | # empty. |
| 1111 | # |
| 1112 | # Cloud Run for Anthos: supported |
| 1113 | # |
| 1114 | # EnvVarSource represents a source for the value of an EnvVar. |
| 1115 | "secretKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 1116 | # |
| 1117 | # Cloud Run fully managed: not supported |
| 1118 | # |
| 1119 | # Cloud Run for Anthos: supported |
| 1120 | # |
| 1121 | # Selects a key of a secret in the pod's namespace |
| 1122 | # |
| 1123 | # Cloud Run for Anthos: supported |
| 1124 | # |
| 1125 | # SecretKeySelector selects a key of a Secret. |
| 1126 | "key": "A String", # Cloud Run fully managed: not supported |
| 1127 | # |
| 1128 | # Cloud Run for Anthos: supported |
| 1129 | # |
| 1130 | # The key of the secret to select from. Must be a valid secret key. |
| 1131 | "name": "A String", # Cloud Run fully managed: not supported |
| 1132 | # |
| 1133 | # Cloud Run for Anthos: supported |
| 1134 | # |
| 1135 | # The name of the secret in the pod's namespace to select from. |
| 1136 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 1137 | # directly into the message. Use the "name" field instead. |
| 1138 | # |
| 1139 | # Cloud Run for Anthos: supported |
| 1140 | # |
| 1141 | # LocalObjectReference contains enough information to let you locate the |
| 1142 | # referenced object inside the same namespace. |
| 1143 | "name": "A String", # (Optional) |
| 1144 | # |
| 1145 | # Cloud Run fully managed: not supported |
| 1146 | # |
| 1147 | # Cloud Run for Anthos: supported |
| 1148 | # |
| 1149 | # Name of the referent. |
| 1150 | # More info: |
| 1151 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 1152 | }, |
| 1153 | "optional": True or False, # (Optional) |
| 1154 | # |
| 1155 | # Cloud Run fully managed: not supported |
| 1156 | # |
| 1157 | # Cloud Run for Anthos: supported |
| 1158 | # |
| 1159 | # Specify whether the Secret or its key must be defined |
| 1160 | }, |
| 1161 | "configMapKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 1162 | # |
| 1163 | # Cloud Run fully managed: not supported |
| 1164 | # |
| 1165 | # Cloud Run for Anthos: supported |
| 1166 | # |
| 1167 | # Selects a key of a ConfigMap. |
| 1168 | # |
| 1169 | # Cloud Run for Anthos: supported |
| 1170 | # |
| 1171 | # Selects a key from a ConfigMap. |
| 1172 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 1173 | # directly into the message. Use the "name" field instead. |
| 1174 | # |
| 1175 | # Cloud Run for Anthos: supported |
| 1176 | # |
| 1177 | # LocalObjectReference contains enough information to let you locate the |
| 1178 | # referenced object inside the same namespace. |
| 1179 | "name": "A String", # (Optional) |
| 1180 | # |
| 1181 | # Cloud Run fully managed: not supported |
| 1182 | # |
| 1183 | # Cloud Run for Anthos: supported |
| 1184 | # |
| 1185 | # Name of the referent. |
| 1186 | # More info: |
| 1187 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 1188 | }, |
| 1189 | "optional": True or False, # (Optional) |
| 1190 | # |
| 1191 | # Cloud Run fully managed: not supported |
| 1192 | # |
| 1193 | # Cloud Run for Anthos: supported |
| 1194 | # |
| 1195 | # Specify whether the ConfigMap or its key must be defined |
| 1196 | "key": "A String", # Cloud Run fully managed: not supported |
| 1197 | # |
| 1198 | # Cloud Run for Anthos: supported |
| 1199 | # |
| 1200 | # The key to select. |
| 1201 | "name": "A String", # Cloud Run fully managed: not supported |
| 1202 | # |
| 1203 | # Cloud Run for Anthos: supported |
| 1204 | # |
| 1205 | # The ConfigMap to select from. |
| 1206 | }, |
| 1207 | }, |
| 1208 | "value": "A String", # (Optional) |
| 1209 | # |
| 1210 | # Variable references $(VAR_NAME) are expanded |
| 1211 | # using the previous defined environment variables in the container and |
| 1212 | # any route environment variables. If a variable cannot be resolved, |
| 1213 | # the reference in the input string will be unchanged. The $(VAR_NAME) |
| 1214 | # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped |
| 1215 | # references will never be expanded, regardless of whether the variable |
| 1216 | # exists or not. |
| 1217 | # Defaults to "". |
| 1218 | }, |
| 1219 | ], |
| 1220 | "resources": { # ResourceRequirements describes the compute resource requirements. # (Optional) |
| 1221 | # |
| 1222 | # Cloud Run fully managed: supported |
| 1223 | # |
| 1224 | # Cloud Run for Anthos: supported |
| 1225 | # |
| 1226 | # Compute Resources required by this container. |
| 1227 | # More info: |
| 1228 | # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources |
| 1229 | "limits": { # (Optional) |
| 1230 | # |
| 1231 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 1232 | # supported value for CPU is '1'. |
| 1233 | # |
| 1234 | # Cloud Run for Anthos: supported |
| 1235 | # |
| 1236 | # Limits describes the maximum amount of compute resources allowed. |
| 1237 | # The values of the map is string form of the 'quantity' k8s type: |
| 1238 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 1239 | "a_key": "A String", |
| 1240 | }, |
| 1241 | "requests": { # (Optional) |
| 1242 | # |
| 1243 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 1244 | # supported value for CPU is '1'. |
| 1245 | # |
| 1246 | # Cloud Run for Anthos: supported |
| 1247 | # |
| 1248 | # Requests describes the minimum amount of compute resources required. |
| 1249 | # If Requests is omitted for a container, it defaults to Limits if that is |
| 1250 | # explicitly specified, otherwise to an implementation-defined value. |
| 1251 | # The values of the map is string form of the 'quantity' k8s type: |
| 1252 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 1253 | "a_key": "A String", |
| 1254 | }, |
| 1255 | }, |
| 1256 | "readinessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 1257 | # |
| 1258 | # Cloud Run fully managed: not supported |
| 1259 | # |
| 1260 | # Cloud Run for Anthos: supported |
| 1261 | # |
| 1262 | # Periodic probe of container service readiness. |
| 1263 | # Container will be removed from service endpoints if the probe fails. |
| 1264 | # More info: |
| 1265 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 1266 | # |
| 1267 | # Cloud Run for Anthos: supported |
| 1268 | # |
| 1269 | # Probe describes a health check to be performed against a container to |
| 1270 | # determine whether it is alive or ready to receive traffic. |
| 1271 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 1272 | # |
| 1273 | # Cloud Run fully managed: not supported |
| 1274 | # |
| 1275 | # Cloud Run for Anthos: supported |
| 1276 | # |
| 1277 | # HTTPGet specifies the http request to perform. |
| 1278 | # |
| 1279 | # A field inlined from the Handler message. |
| 1280 | # |
| 1281 | # Cloud Run for Anthos: supported |
| 1282 | # |
| 1283 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 1284 | "httpHeaders": [ # (Optional) |
| 1285 | # |
| 1286 | # Cloud Run fully managed: not supported |
| 1287 | # |
| 1288 | # Cloud Run for Anthos: supported |
| 1289 | # |
| 1290 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 1291 | { # Cloud Run fully managed: not supported |
| 1292 | # |
| 1293 | # Cloud Run for Anthos: supported |
| 1294 | # |
| 1295 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 1296 | "name": "A String", # Cloud Run fully managed: not supported |
| 1297 | # |
| 1298 | # Cloud Run for Anthos: supported |
| 1299 | # |
| 1300 | # The header field name |
| 1301 | "value": "A String", # Cloud Run fully managed: not supported |
| 1302 | # |
| 1303 | # Cloud Run for Anthos: supported |
| 1304 | # |
| 1305 | # The header field value |
| 1306 | }, |
| 1307 | ], |
| 1308 | "path": "A String", # (Optional) |
| 1309 | # |
| 1310 | # Cloud Run fully managed: not supported |
| 1311 | # |
| 1312 | # Cloud Run for Anthos: supported |
| 1313 | # |
| 1314 | # Path to access on the HTTP server. |
| 1315 | "host": "A String", # (Optional) |
| 1316 | # |
| 1317 | # Cloud Run fully managed: not supported |
| 1318 | # |
| 1319 | # Cloud Run for Anthos: supported |
| 1320 | # |
| 1321 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 1322 | # "Host" in httpHeaders instead. |
| 1323 | "scheme": "A String", # (Optional) |
| 1324 | # |
| 1325 | # Cloud Run fully managed: not supported |
| 1326 | # |
| 1327 | # Cloud Run for Anthos: supported |
| 1328 | # |
| 1329 | # Scheme to use for connecting to the host. |
| 1330 | # Defaults to HTTP. |
| 1331 | }, |
| 1332 | "failureThreshold": 42, # (Optional) |
| 1333 | # |
| 1334 | # Cloud Run fully managed: not supported |
| 1335 | # |
| 1336 | # Cloud Run for Anthos: supported |
| 1337 | # |
| 1338 | # Minimum consecutive failures for the probe to be considered failed after |
| 1339 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 1340 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 1341 | # |
| 1342 | # Cloud Run fully managed: not supported |
| 1343 | # |
| 1344 | # Cloud Run for Anthos: supported |
| 1345 | # |
| 1346 | # One and only one of the following should be specified. |
| 1347 | # Exec specifies the action to take. |
| 1348 | # |
| 1349 | # A field inlined from the Handler message. |
| 1350 | # |
| 1351 | # Cloud Run for Anthos: supported |
| 1352 | # |
| 1353 | # ExecAction describes a "run in container" action. |
| 1354 | "command": "A String", # (Optional) |
| 1355 | # |
| 1356 | # Cloud Run fully managed: not supported |
| 1357 | # |
| 1358 | # Cloud Run for Anthos: supported |
| 1359 | # |
| 1360 | # Command is the command line to execute inside the container, the working |
| 1361 | # directory for the command is root ('/') in the container's filesystem. The |
| 1362 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 1363 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 1364 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 1365 | # live/healthy and non-zero is unhealthy. |
| 1366 | }, |
| 1367 | "initialDelaySeconds": 42, # (Optional) |
| 1368 | # |
| 1369 | # Cloud Run fully managed: not supported |
| 1370 | # |
| 1371 | # Cloud Run for Anthos: supported |
| 1372 | # |
| 1373 | # Number of seconds after the container has started before liveness probes |
| 1374 | # are initiated. More info: |
| 1375 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 1376 | "timeoutSeconds": 42, # (Optional) |
| 1377 | # |
| 1378 | # Cloud Run fully managed: not supported |
| 1379 | # |
| 1380 | # Cloud Run for Anthos: supported |
| 1381 | # |
| 1382 | # Number of seconds after which the probe times out. |
| 1383 | # Defaults to 1 second. Minimum value is 1. |
| 1384 | # More info: |
| 1385 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 1386 | "successThreshold": 42, # (Optional) |
| 1387 | # |
| 1388 | # Cloud Run fully managed: not supported |
| 1389 | # |
| 1390 | # Cloud Run for Anthos: supported |
| 1391 | # |
| 1392 | # Minimum consecutive successes for the probe to be considered successful |
| 1393 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 1394 | # is 1. |
| 1395 | "periodSeconds": 42, # (Optional) |
| 1396 | # |
| 1397 | # Cloud Run fully managed: not supported |
| 1398 | # |
| 1399 | # Cloud Run for Anthos: supported |
| 1400 | # |
| 1401 | # How often (in seconds) to perform the probe. |
| 1402 | # Default to 10 seconds. Minimum value is 1. |
| 1403 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 1404 | # |
| 1405 | # Cloud Run fully managed: not supported |
| 1406 | # |
| 1407 | # Cloud Run for Anthos: supported |
| 1408 | # |
| 1409 | # TCPSocket specifies an action involving a TCP port. |
| 1410 | # TCP hooks not yet supported |
| 1411 | # |
| 1412 | # A field inlined from the Handler message. |
| 1413 | # |
| 1414 | # Cloud Run for Anthos: supported |
| 1415 | # |
| 1416 | # TCPSocketAction describes an action based on opening a socket |
| 1417 | "port": 42, # Cloud Run fully managed: not supported |
| 1418 | # |
| 1419 | # Cloud Run for Anthos: supported |
| 1420 | # |
| 1421 | # Number or name of the port to access on the container. |
| 1422 | # Number must be in the range 1 to 65535. |
| 1423 | # Name must be an IANA_SVC_NAME. |
| 1424 | # |
| 1425 | # This field is currently limited to integer types only because of proto's |
| 1426 | # inability to properly support the IntOrString golang type. |
| 1427 | "host": "A String", # (Optional) |
| 1428 | # |
| 1429 | # Cloud Run fully managed: not supported |
| 1430 | # |
| 1431 | # Cloud Run for Anthos: supported |
| 1432 | # |
| 1433 | # Optional: Host name to connect to, defaults to the pod IP. |
| 1434 | }, |
| 1435 | }, |
| 1436 | "imagePullPolicy": "A String", # (Optional) |
| 1437 | # |
| 1438 | # Cloud Run fully managed: not supported |
| 1439 | # |
| 1440 | # Cloud Run for Anthos: supported |
| 1441 | # |
| 1442 | # Image pull policy. |
| 1443 | # One of Always, Never, IfNotPresent. |
| 1444 | # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. |
| 1445 | # More info: |
| 1446 | # https://kubernetes.io/docs/concepts/containers/images#updating-images |
| 1447 | "terminationMessagePath": "A String", # (Optional) |
| 1448 | # |
| 1449 | # Cloud Run fully managed: not supported |
| 1450 | # |
| 1451 | # Cloud Run for Anthos: supported |
| 1452 | # |
| 1453 | # Path at which the file to which the container's termination |
| 1454 | # message will be written is mounted into the container's filesystem. Message |
| 1455 | # written is intended to be brief final status, such as an assertion failure |
| 1456 | # message. Will be truncated by the node if greater than 4096 bytes. The |
| 1457 | # total message length across all containers will be limited to 12kb. |
| 1458 | # Defaults to /dev/termination-log. |
| 1459 | }, |
| 1460 | ], |
| 1461 | }, |
| 1462 | }, |
| 1463 | }, |
| 1464 | "kind": "A String", # The kind of resource, in this case "Service". |
| 1465 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Metadata associated with this Service, including name, namespace, labels, |
| 1466 | # and annotations. |
| 1467 | # persisted resources must have, which includes all objects users must create. |
| 1468 | "creationTimestamp": "A String", # (Optional) |
| 1469 | # |
| 1470 | # CreationTimestamp is a timestamp representing the server time when this |
| 1471 | # object was created. It is not guaranteed to be set in happens-before order |
| 1472 | # across separate operations. Clients may not set this value. It is |
| 1473 | # represented in RFC3339 form and is in UTC. |
| 1474 | # |
| 1475 | # Populated by the system. |
| 1476 | # Read-only. |
| 1477 | # Null for lists. |
| 1478 | # More info: |
| 1479 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 1480 | "labels": { # (Optional) |
| 1481 | # |
| 1482 | # Map of string keys and values that can be used to organize and categorize |
| 1483 | # (scope and select) objects. May match selectors of replication controllers |
| 1484 | # and routes. |
| 1485 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 1486 | "a_key": "A String", |
| 1487 | }, |
| 1488 | "generation": 42, # (Optional) |
| 1489 | # |
| 1490 | # A sequence number representing a specific generation of the desired state. |
| 1491 | # Populated by the system. Read-only. |
| 1492 | "resourceVersion": "A String", # (Optional) |
| 1493 | # |
| 1494 | # An opaque value that represents the internal version of this object that |
| 1495 | # can be used by clients to determine when objects have changed. May be used |
| 1496 | # for optimistic concurrency, change detection, and the watch operation on a |
| 1497 | # resource or set of resources. Clients must treat these values as opaque and |
| 1498 | # passed unmodified back to the server. They may only be valid for a |
| 1499 | # particular resource or set of resources. |
| 1500 | # |
| 1501 | # Populated by the system. |
| 1502 | # Read-only. |
| 1503 | # Value must be treated as opaque by clients and . |
| 1504 | # More info: |
| 1505 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 1506 | "selfLink": "A String", # (Optional) |
| 1507 | # |
| 1508 | # SelfLink is a URL representing this object. |
| 1509 | # Populated by the system. |
| 1510 | # Read-only. |
| 1511 | # string selfLink = 4; |
| 1512 | "uid": "A String", # (Optional) |
| 1513 | # |
| 1514 | # UID is the unique in time and space value for this object. It is typically |
| 1515 | # generated by the server on successful creation of a resource and is not |
| 1516 | # allowed to change on PUT operations. |
| 1517 | # |
| 1518 | # Populated by the system. |
| 1519 | # Read-only. |
| 1520 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 1521 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 1522 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 1523 | # project ID or project number. |
| 1524 | "annotations": { # (Optional) |
| 1525 | # |
| 1526 | # Annotations is an unstructured key value map stored with a resource that |
| 1527 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 1528 | # are not queryable and should be preserved when modifying objects. More |
| 1529 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 1530 | "a_key": "A String", |
| 1531 | }, |
| 1532 | "generateName": "A String", # (Optional) |
| 1533 | # |
| 1534 | # Cloud Run fully managed: not supported |
| 1535 | # |
| 1536 | # Cloud Run for Anthos: supported |
| 1537 | # |
| 1538 | # GenerateName is an optional prefix, used by the server, to generate a |
| 1539 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 1540 | # used, the name returned to the client will be different than the name |
| 1541 | # passed. This value will also be combined with a unique suffix. The provided |
| 1542 | # value has the same validation rules as the Name field, and may be truncated |
| 1543 | # by the length of the suffix required to make the value unique on the |
| 1544 | # server. |
| 1545 | # |
| 1546 | # If this field is specified and the generated name exists, the server will |
| 1547 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 1548 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 1549 | # time allotted, and the client should retry (optionally after the time |
| 1550 | # indicated in the Retry-After header). |
| 1551 | # |
| 1552 | # Applied only if Name is not specified. |
| 1553 | # More info: |
| 1554 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 1555 | # string generateName = 2; |
| 1556 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 1557 | # Is required when creating |
| 1558 | # resources, although some resources may allow a client to request the |
| 1559 | # generation of an appropriate name automatically. Name is primarily intended |
| 1560 | # for creation idempotence and configuration definition. Cannot be updated. |
| 1561 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 1562 | # +optional |
| 1563 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 1564 | # |
| 1565 | # Cloud Run fully managed: not supported |
| 1566 | # |
| 1567 | # Cloud Run for Anthos: supported |
| 1568 | # |
| 1569 | # Number of seconds allowed for this object to gracefully terminate before |
| 1570 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 1571 | # set. May only be shortened. Read-only. |
| 1572 | "clusterName": "A String", # (Optional) |
| 1573 | # |
| 1574 | # Cloud Run fully managed: not supported |
| 1575 | # |
| 1576 | # Cloud Run for Anthos: supported |
| 1577 | # |
| 1578 | # The name of the cluster which the object belongs to. |
| 1579 | # This is used to distinguish resources with same name and namespace in |
| 1580 | # different clusters. This field is not set anywhere right now and apiserver |
| 1581 | # is going to ignore it if set in create or update request. |
| 1582 | "finalizers": [ # (Optional) |
| 1583 | # |
| 1584 | # Cloud Run fully managed: not supported |
| 1585 | # |
| 1586 | # Cloud Run for Anthos: supported |
| 1587 | # |
| 1588 | # Must be empty before the object is deleted from the registry. Each entry |
| 1589 | # is an identifier for the responsible component that will remove the entry |
| 1590 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 1591 | # in this list can only be removed. |
| 1592 | # +patchStrategy=merge |
| 1593 | "A String", |
| 1594 | ], |
| 1595 | "deletionTimestamp": "A String", # (Optional) |
| 1596 | # |
| 1597 | # Cloud Run fully managed: not supported |
| 1598 | # |
| 1599 | # Cloud Run for Anthos: supported |
| 1600 | # |
| 1601 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 1602 | # deleted. This field is set by the server when a graceful deletion is |
| 1603 | # requested by the user, and is not directly settable by a client. The |
| 1604 | # resource is expected to be deleted (no longer visible from resource lists, |
| 1605 | # and not reachable by name) after the time in this field, once the |
| 1606 | # finalizers list is empty. As long as the finalizers list contains items, |
| 1607 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 1608 | # be unset or be set further into the future, although it may be shortened or |
| 1609 | # the resource may be deleted prior to this time. For example, a user may |
| 1610 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 1611 | # sending a graceful termination signal to the containers in the pod. After |
| 1612 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 1613 | # to the container and after cleanup, remove the pod from the API. In the |
| 1614 | # presence of network partitions, this object may still exist after this |
| 1615 | # timestamp, until an administrator or automated process can determine the |
| 1616 | # resource is fully terminated. |
| 1617 | # If not set, graceful deletion of the object has not been requested. |
| 1618 | # |
| 1619 | # Populated by the system when a graceful deletion is requested. |
| 1620 | # Read-only. |
| 1621 | # More info: |
| 1622 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 1623 | "ownerReferences": [ # (Optional) |
| 1624 | # |
| 1625 | # Cloud Run fully managed: not supported |
| 1626 | # |
| 1627 | # Cloud Run for Anthos: supported |
| 1628 | # |
| 1629 | # List of objects that own this object. If ALL objects in the list have |
| 1630 | # been deleted, this object will be garbage collected. |
| 1631 | { # OwnerReference contains enough information to let you identify an owning |
| 1632 | # object. Currently, an owning object must be in the same namespace, so there |
| 1633 | # is no namespace field. |
| 1634 | "uid": "A String", # UID of the referent. |
| 1635 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 1636 | "controller": True or False, # If true, this reference points to the managing controller. |
| 1637 | # +optional |
| 1638 | "kind": "A String", # Kind of the referent. |
| 1639 | # More info: |
| 1640 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 1641 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 1642 | # the owner cannot be deleted from the key-value store until this |
| 1643 | # reference is removed. |
| 1644 | # Defaults to false. |
| 1645 | # To set this field, a user needs "delete" permission of the owner, |
| 1646 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 1647 | # +optional |
| 1648 | "apiVersion": "A String", # API version of the referent. |
| 1649 | "name": "A String", # Name of the referent. |
| 1650 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 1651 | }, |
| 1652 | ], |
| 1653 | }, |
| 1654 | } |
| 1655 | |
| 1656 | x__xgafv: string, V1 error format. |
| 1657 | Allowed values |
| 1658 | 1 - v1 error format |
| 1659 | 2 - v2 error format |
| 1660 | |
| 1661 | Returns: |
| 1662 | An object of the form: |
| 1663 | |
| 1664 | { # Service acts as a top-level container that manages a set of Routes and |
| 1665 | # Configurations which implement a network service. Service exists to provide a |
| 1666 | # singular abstraction which can be access controlled, reasoned about, and |
| 1667 | # which encapsulates software lifecycle decisions such as rollout policy and |
| 1668 | # team resource ownership. Service acts only as an orchestrator of the |
| 1669 | # underlying Routes and Configurations (much as a kubernetes Deployment |
| 1670 | # orchestrates ReplicaSets). |
| 1671 | # |
| 1672 | # The Service's controller will track the statuses of its owned Configuration |
| 1673 | # and Route, reflecting their statuses and conditions as its own. |
| 1674 | # |
| 1675 | # See also: |
| 1676 | # https://github.com/knative/serving/blob/master/docs/spec/overview.md#service |
| 1677 | "status": { # The current state of the Service. Output only. # Status communicates the observed state of the Service (from the |
| 1678 | # controller). |
| 1679 | "latestCreatedRevisionName": "A String", # From ConfigurationStatus. |
| 1680 | # LatestCreatedRevisionName is the last revision that was created from this |
| 1681 | # Service's Configuration. It might not be ready yet, for that use |
| 1682 | # LatestReadyRevisionName. |
| 1683 | "conditions": [ # Conditions communicates information about ongoing/complete |
| 1684 | # reconciliation processes that bring the "spec" inline with the observed |
| 1685 | # state of the world. |
| 1686 | # Service-specific conditions include: |
| 1687 | # * "ConfigurationsReady": true when the underlying Configuration is ready. |
| 1688 | # * "RoutesReady": true when the underlying Route is ready. |
| 1689 | # * "Ready": true when both the underlying Route and Configuration are |
| 1690 | # ready. |
| 1691 | { # Condition defines a generic condition for a Resource |
| 1692 | "message": "A String", # Optional. Human readable message indicating details about the current status. |
| 1693 | "lastTransitionTime": "A String", # Optional. Last time the condition transitioned from one status to another. |
| 1694 | "status": "A String", # Status of the condition, one of True, False, Unknown. |
| 1695 | "severity": "A String", # Optional. How to interpret failures of this condition, one of Error, Warning, Info |
| 1696 | "reason": "A String", # Optional. One-word CamelCase reason for the condition's last transition. |
| 1697 | "type": "A String", # type is used to communicate the status of the reconciliation process. |
| 1698 | # See also: |
| 1699 | # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting |
| 1700 | # Types common to all resources include: |
| 1701 | # * "Ready": True when the Resource is ready. |
| 1702 | }, |
| 1703 | ], |
| 1704 | "address": { # Information for connecting over HTTP(s). # From RouteStatus. |
| 1705 | # Similar to url, information on where the service is available on HTTP. |
| 1706 | "url": "A String", |
| 1707 | }, |
| 1708 | "observedGeneration": 42, # ObservedGeneration is the 'Generation' of the Route that |
| 1709 | # was last processed by the controller. |
| 1710 | # |
| 1711 | # Clients polling for completed reconciliation should poll until |
| 1712 | # observedGeneration = metadata.generation and the Ready condition's status |
| 1713 | # is True or False. |
| 1714 | "url": "A String", # From RouteStatus. |
| 1715 | # URL holds the url that will distribute traffic over the provided traffic |
| 1716 | # targets. It generally has the form |
| 1717 | # https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app |
| 1718 | "traffic": [ # From RouteStatus. |
| 1719 | # Traffic holds the configured traffic distribution. |
| 1720 | # These entries will always contain RevisionName references. |
| 1721 | # When ConfigurationName appears in the spec, this will hold the |
| 1722 | # LatestReadyRevisionName that we last observed. |
| 1723 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 1724 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 1725 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 1726 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 1727 | # (e.g. basic auth, url path, etc. |
| 1728 | # |
| 1729 | # Not currently supported in Cloud Run. |
| 1730 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 1731 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 1732 | # of the referenced configuration changes, we will automatically migrate |
| 1733 | # traffic from the prior "latest ready" revision to the new one. This field |
| 1734 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 1735 | # with RevisionName. |
| 1736 | # |
| 1737 | # Cloud Run currently supports a single ConfigurationName. |
| 1738 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 1739 | # This defaults to zero if unspecified. |
| 1740 | # |
| 1741 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 1742 | # TrafficTarget entry. |
| 1743 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 1744 | # traffic. This is mutually exclusive with ConfigurationName. |
| 1745 | # |
| 1746 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 1747 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 1748 | # ready Revision of the Configuration should be used for this traffic |
| 1749 | # target. When provided LatestRevision must be true if RevisionName is |
| 1750 | # empty; it must be false when RevisionName is non-empty. |
| 1751 | # |
| 1752 | # +optional |
| 1753 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 1754 | # this target exclusively. |
| 1755 | # |
| 1756 | # Not currently supported in Cloud Run. |
| 1757 | # +optional |
| 1758 | }, |
| 1759 | ], |
| 1760 | "latestReadyRevisionName": "A String", # From ConfigurationStatus. |
| 1761 | # LatestReadyRevisionName holds the name of the latest Revision stamped out |
| 1762 | # from this Service's Configuration that has had its "Ready" condition become |
| 1763 | # "True". |
| 1764 | }, |
| 1765 | "apiVersion": "A String", # The API version for this call such as "serving.knative.dev/v1". |
| 1766 | "spec": { # ServiceSpec holds the desired state of the Route (from the client), which # Spec holds the desired state of the Service (from the client). |
| 1767 | # is used to manipulate the underlying Route and Configuration(s). |
| 1768 | "traffic": [ # Traffic specifies how to distribute traffic over a collection of Knative |
| 1769 | # Revisions and Configurations. |
| 1770 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 1771 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 1772 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 1773 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 1774 | # (e.g. basic auth, url path, etc. |
| 1775 | # |
| 1776 | # Not currently supported in Cloud Run. |
| 1777 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 1778 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 1779 | # of the referenced configuration changes, we will automatically migrate |
| 1780 | # traffic from the prior "latest ready" revision to the new one. This field |
| 1781 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 1782 | # with RevisionName. |
| 1783 | # |
| 1784 | # Cloud Run currently supports a single ConfigurationName. |
| 1785 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 1786 | # This defaults to zero if unspecified. |
| 1787 | # |
| 1788 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 1789 | # TrafficTarget entry. |
| 1790 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 1791 | # traffic. This is mutually exclusive with ConfigurationName. |
| 1792 | # |
| 1793 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 1794 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 1795 | # ready Revision of the Configuration should be used for this traffic |
| 1796 | # target. When provided LatestRevision must be true if RevisionName is |
| 1797 | # empty; it must be false when RevisionName is non-empty. |
| 1798 | # |
| 1799 | # +optional |
| 1800 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 1801 | # this target exclusively. |
| 1802 | # |
| 1803 | # Not currently supported in Cloud Run. |
| 1804 | # +optional |
| 1805 | }, |
| 1806 | ], |
| 1807 | "template": { # RevisionTemplateSpec describes the data a revision should have when created # Template holds the latest specification for the Revision to |
| 1808 | # be stamped out. |
| 1809 | # from a template. Based on: |
| 1810 | # https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190 |
| 1811 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Optional metadata for this Revision, including labels and annotations. Name |
| 1812 | # will be generated by the Configuration. |
| 1813 | # To set minimum instances for this revision, use the |
| 1814 | # "autoscaling.knative.dev/minScale" annotation key. |
| 1815 | # To set maximum instances for this revision, use the |
| 1816 | # "autoscaling.knative.dev/maxScale" annotation key. |
| 1817 | # To set Cloud SQL connections for the revision, use the |
| 1818 | # "run.googleapis.com/cloudsql-instances" annotation key. |
| 1819 | # persisted resources must have, which includes all objects users must create. |
| 1820 | "creationTimestamp": "A String", # (Optional) |
| 1821 | # |
| 1822 | # CreationTimestamp is a timestamp representing the server time when this |
| 1823 | # object was created. It is not guaranteed to be set in happens-before order |
| 1824 | # across separate operations. Clients may not set this value. It is |
| 1825 | # represented in RFC3339 form and is in UTC. |
| 1826 | # |
| 1827 | # Populated by the system. |
| 1828 | # Read-only. |
| 1829 | # Null for lists. |
| 1830 | # More info: |
| 1831 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 1832 | "labels": { # (Optional) |
| 1833 | # |
| 1834 | # Map of string keys and values that can be used to organize and categorize |
| 1835 | # (scope and select) objects. May match selectors of replication controllers |
| 1836 | # and routes. |
| 1837 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 1838 | "a_key": "A String", |
| 1839 | }, |
| 1840 | "generation": 42, # (Optional) |
| 1841 | # |
| 1842 | # A sequence number representing a specific generation of the desired state. |
| 1843 | # Populated by the system. Read-only. |
| 1844 | "resourceVersion": "A String", # (Optional) |
| 1845 | # |
| 1846 | # An opaque value that represents the internal version of this object that |
| 1847 | # can be used by clients to determine when objects have changed. May be used |
| 1848 | # for optimistic concurrency, change detection, and the watch operation on a |
| 1849 | # resource or set of resources. Clients must treat these values as opaque and |
| 1850 | # passed unmodified back to the server. They may only be valid for a |
| 1851 | # particular resource or set of resources. |
| 1852 | # |
| 1853 | # Populated by the system. |
| 1854 | # Read-only. |
| 1855 | # Value must be treated as opaque by clients and . |
| 1856 | # More info: |
| 1857 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 1858 | "selfLink": "A String", # (Optional) |
| 1859 | # |
| 1860 | # SelfLink is a URL representing this object. |
| 1861 | # Populated by the system. |
| 1862 | # Read-only. |
| 1863 | # string selfLink = 4; |
| 1864 | "uid": "A String", # (Optional) |
| 1865 | # |
| 1866 | # UID is the unique in time and space value for this object. It is typically |
| 1867 | # generated by the server on successful creation of a resource and is not |
| 1868 | # allowed to change on PUT operations. |
| 1869 | # |
| 1870 | # Populated by the system. |
| 1871 | # Read-only. |
| 1872 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 1873 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 1874 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 1875 | # project ID or project number. |
| 1876 | "annotations": { # (Optional) |
| 1877 | # |
| 1878 | # Annotations is an unstructured key value map stored with a resource that |
| 1879 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 1880 | # are not queryable and should be preserved when modifying objects. More |
| 1881 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 1882 | "a_key": "A String", |
| 1883 | }, |
| 1884 | "generateName": "A String", # (Optional) |
| 1885 | # |
| 1886 | # Cloud Run fully managed: not supported |
| 1887 | # |
| 1888 | # Cloud Run for Anthos: supported |
| 1889 | # |
| 1890 | # GenerateName is an optional prefix, used by the server, to generate a |
| 1891 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 1892 | # used, the name returned to the client will be different than the name |
| 1893 | # passed. This value will also be combined with a unique suffix. The provided |
| 1894 | # value has the same validation rules as the Name field, and may be truncated |
| 1895 | # by the length of the suffix required to make the value unique on the |
| 1896 | # server. |
| 1897 | # |
| 1898 | # If this field is specified and the generated name exists, the server will |
| 1899 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 1900 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 1901 | # time allotted, and the client should retry (optionally after the time |
| 1902 | # indicated in the Retry-After header). |
| 1903 | # |
| 1904 | # Applied only if Name is not specified. |
| 1905 | # More info: |
| 1906 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 1907 | # string generateName = 2; |
| 1908 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 1909 | # Is required when creating |
| 1910 | # resources, although some resources may allow a client to request the |
| 1911 | # generation of an appropriate name automatically. Name is primarily intended |
| 1912 | # for creation idempotence and configuration definition. Cannot be updated. |
| 1913 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 1914 | # +optional |
| 1915 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 1916 | # |
| 1917 | # Cloud Run fully managed: not supported |
| 1918 | # |
| 1919 | # Cloud Run for Anthos: supported |
| 1920 | # |
| 1921 | # Number of seconds allowed for this object to gracefully terminate before |
| 1922 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 1923 | # set. May only be shortened. Read-only. |
| 1924 | "clusterName": "A String", # (Optional) |
| 1925 | # |
| 1926 | # Cloud Run fully managed: not supported |
| 1927 | # |
| 1928 | # Cloud Run for Anthos: supported |
| 1929 | # |
| 1930 | # The name of the cluster which the object belongs to. |
| 1931 | # This is used to distinguish resources with same name and namespace in |
| 1932 | # different clusters. This field is not set anywhere right now and apiserver |
| 1933 | # is going to ignore it if set in create or update request. |
| 1934 | "finalizers": [ # (Optional) |
| 1935 | # |
| 1936 | # Cloud Run fully managed: not supported |
| 1937 | # |
| 1938 | # Cloud Run for Anthos: supported |
| 1939 | # |
| 1940 | # Must be empty before the object is deleted from the registry. Each entry |
| 1941 | # is an identifier for the responsible component that will remove the entry |
| 1942 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 1943 | # in this list can only be removed. |
| 1944 | # +patchStrategy=merge |
| 1945 | "A String", |
| 1946 | ], |
| 1947 | "deletionTimestamp": "A String", # (Optional) |
| 1948 | # |
| 1949 | # Cloud Run fully managed: not supported |
| 1950 | # |
| 1951 | # Cloud Run for Anthos: supported |
| 1952 | # |
| 1953 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 1954 | # deleted. This field is set by the server when a graceful deletion is |
| 1955 | # requested by the user, and is not directly settable by a client. The |
| 1956 | # resource is expected to be deleted (no longer visible from resource lists, |
| 1957 | # and not reachable by name) after the time in this field, once the |
| 1958 | # finalizers list is empty. As long as the finalizers list contains items, |
| 1959 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 1960 | # be unset or be set further into the future, although it may be shortened or |
| 1961 | # the resource may be deleted prior to this time. For example, a user may |
| 1962 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 1963 | # sending a graceful termination signal to the containers in the pod. After |
| 1964 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 1965 | # to the container and after cleanup, remove the pod from the API. In the |
| 1966 | # presence of network partitions, this object may still exist after this |
| 1967 | # timestamp, until an administrator or automated process can determine the |
| 1968 | # resource is fully terminated. |
| 1969 | # If not set, graceful deletion of the object has not been requested. |
| 1970 | # |
| 1971 | # Populated by the system when a graceful deletion is requested. |
| 1972 | # Read-only. |
| 1973 | # More info: |
| 1974 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 1975 | "ownerReferences": [ # (Optional) |
| 1976 | # |
| 1977 | # Cloud Run fully managed: not supported |
| 1978 | # |
| 1979 | # Cloud Run for Anthos: supported |
| 1980 | # |
| 1981 | # List of objects that own this object. If ALL objects in the list have |
| 1982 | # been deleted, this object will be garbage collected. |
| 1983 | { # OwnerReference contains enough information to let you identify an owning |
| 1984 | # object. Currently, an owning object must be in the same namespace, so there |
| 1985 | # is no namespace field. |
| 1986 | "uid": "A String", # UID of the referent. |
| 1987 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 1988 | "controller": True or False, # If true, this reference points to the managing controller. |
| 1989 | # +optional |
| 1990 | "kind": "A String", # Kind of the referent. |
| 1991 | # More info: |
| 1992 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 1993 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 1994 | # the owner cannot be deleted from the key-value store until this |
| 1995 | # reference is removed. |
| 1996 | # Defaults to false. |
| 1997 | # To set this field, a user needs "delete" permission of the owner, |
| 1998 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 1999 | # +optional |
| 2000 | "apiVersion": "A String", # API version of the referent. |
| 2001 | "name": "A String", # Name of the referent. |
| 2002 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 2003 | }, |
| 2004 | ], |
| 2005 | }, |
| 2006 | "spec": { # RevisionSpec holds the desired state of the Revision (from the client). # RevisionSpec holds the desired state of the Revision (from the client). |
| 2007 | "volumes": [ |
| 2008 | { # Cloud Run fully managed: not supported |
| 2009 | # |
| 2010 | # Cloud Run for Anthos: supported |
| 2011 | # |
| 2012 | # Volume represents a named volume in a container. |
| 2013 | "configMap": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 2014 | # |
| 2015 | # Cloud Run for Anthos: supported |
| 2016 | # |
| 2017 | # Cloud Run for Anthos: supported |
| 2018 | # |
| 2019 | # Adapts a ConfigMap into a volume. |
| 2020 | # The contents of the target ConfigMap's Data field will be presented in a |
| 2021 | # volume as files using the keys in the Data field as the file names, unless |
| 2022 | # the items element is populated with specific mappings of keys to paths. |
| 2023 | "optional": True or False, # (Optional) |
| 2024 | # |
| 2025 | # Cloud Run fully managed: not supported |
| 2026 | # |
| 2027 | # Cloud Run for Anthos: supported |
| 2028 | # |
| 2029 | # Specify whether the Secret or its keys must be defined. |
| 2030 | "name": "A String", # Cloud Run fully managed: not supported |
| 2031 | # |
| 2032 | # Cloud Run for Anthos: supported |
| 2033 | # |
| 2034 | # Name of the config. |
| 2035 | "defaultMode": 42, # (Optional) |
| 2036 | # |
| 2037 | # Cloud Run fully managed: not supported |
| 2038 | # |
| 2039 | # Cloud Run for Anthos: supported |
| 2040 | # |
| 2041 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 2042 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 2043 | # this setting. This might be in conflict with other options that affect the |
| 2044 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 2045 | "items": [ # (Optional) |
| 2046 | # |
| 2047 | # Cloud Run fully managed: not supported |
| 2048 | # |
| 2049 | # Cloud Run for Anthos: supported |
| 2050 | # |
| 2051 | # If unspecified, each key-value pair in the Data field of the referenced |
| 2052 | # Secret will be projected into the volume as a file whose name is the |
| 2053 | # key and content is the value. If specified, the listed keys will be |
| 2054 | # projected into the specified paths, and unlisted keys will not be |
| 2055 | # present. If a key is specified which is not present in the Secret, |
| 2056 | # the volume setup will error unless it is marked optional. |
| 2057 | { # Cloud Run fully managed: not supported |
| 2058 | # |
| 2059 | # Cloud Run for Anthos: supported |
| 2060 | # |
| 2061 | # Maps a string key to a path within a volume. |
| 2062 | "key": "A String", # Cloud Run fully managed: not supported |
| 2063 | # |
| 2064 | # Cloud Run for Anthos: supported |
| 2065 | # |
| 2066 | # The key to project. |
| 2067 | "path": "A String", # Cloud Run fully managed: not supported |
| 2068 | # |
| 2069 | # Cloud Run for Anthos: supported |
| 2070 | # |
| 2071 | # The relative path of the file to map the key to. |
| 2072 | # May not be an absolute path. |
| 2073 | # May not contain the path element '..'. |
| 2074 | # May not start with the string '..'. |
| 2075 | "mode": 42, # (Optional) |
| 2076 | # |
| 2077 | # Cloud Run fully managed: not supported |
| 2078 | # |
| 2079 | # Cloud Run for Anthos: supported |
| 2080 | # |
| 2081 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 2082 | # specified, the volume defaultMode will be used. This might be in conflict |
| 2083 | # with other options that affect the file mode, like fsGroup, and the result |
| 2084 | # can be other mode bits set. |
| 2085 | }, |
| 2086 | ], |
| 2087 | }, |
| 2088 | "name": "A String", # Cloud Run fully managed: not supported |
| 2089 | # |
| 2090 | # Cloud Run for Anthos: supported |
| 2091 | # |
| 2092 | # Volume's name. |
| 2093 | "secret": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 2094 | # |
| 2095 | # Cloud Run for Anthos: supported |
| 2096 | # |
| 2097 | # Cloud Run for Anthos: supported |
| 2098 | # |
| 2099 | # The contents of the target Secret's Data field will be presented in a volume |
| 2100 | # as files using the keys in the Data field as the file names. |
| 2101 | "optional": True or False, # (Optional) |
| 2102 | # |
| 2103 | # Cloud Run fully managed: not supported |
| 2104 | # |
| 2105 | # Cloud Run for Anthos: supported |
| 2106 | # |
| 2107 | # Specify whether the Secret or its keys must be defined. |
| 2108 | "defaultMode": 42, # (Optional) |
| 2109 | # |
| 2110 | # Cloud Run fully managed: not supported |
| 2111 | # |
| 2112 | # Cloud Run for Anthos: supported |
| 2113 | # |
| 2114 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 2115 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 2116 | # this setting. This might be in conflict with other options that affect the |
| 2117 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 2118 | "secretName": "A String", # Cloud Run fully managed: not supported |
| 2119 | # |
| 2120 | # Cloud Run for Anthos: supported |
| 2121 | # |
| 2122 | # Name of the secret in the container's namespace to use. |
| 2123 | "items": [ # (Optional) |
| 2124 | # |
| 2125 | # Cloud Run fully managed: not supported |
| 2126 | # |
| 2127 | # Cloud Run for Anthos: supported |
| 2128 | # |
| 2129 | # If unspecified, each key-value pair in the Data field of the referenced |
| 2130 | # Secret will be projected into the volume as a file whose name is the |
| 2131 | # key and content is the value. If specified, the listed keys will be |
| 2132 | # projected into the specified paths, and unlisted keys will not be |
| 2133 | # present. If a key is specified which is not present in the Secret, |
| 2134 | # the volume setup will error unless it is marked optional. |
| 2135 | { # Cloud Run fully managed: not supported |
| 2136 | # |
| 2137 | # Cloud Run for Anthos: supported |
| 2138 | # |
| 2139 | # Maps a string key to a path within a volume. |
| 2140 | "key": "A String", # Cloud Run fully managed: not supported |
| 2141 | # |
| 2142 | # Cloud Run for Anthos: supported |
| 2143 | # |
| 2144 | # The key to project. |
| 2145 | "path": "A String", # Cloud Run fully managed: not supported |
| 2146 | # |
| 2147 | # Cloud Run for Anthos: supported |
| 2148 | # |
| 2149 | # The relative path of the file to map the key to. |
| 2150 | # May not be an absolute path. |
| 2151 | # May not contain the path element '..'. |
| 2152 | # May not start with the string '..'. |
| 2153 | "mode": 42, # (Optional) |
| 2154 | # |
| 2155 | # Cloud Run fully managed: not supported |
| 2156 | # |
| 2157 | # Cloud Run for Anthos: supported |
| 2158 | # |
| 2159 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 2160 | # specified, the volume defaultMode will be used. This might be in conflict |
| 2161 | # with other options that affect the file mode, like fsGroup, and the result |
| 2162 | # can be other mode bits set. |
| 2163 | }, |
| 2164 | ], |
| 2165 | }, |
| 2166 | }, |
| 2167 | ], |
| 2168 | "containerConcurrency": 42, # (Optional) |
| 2169 | # |
| 2170 | # ContainerConcurrency specifies the maximum allowed in-flight (concurrent) |
| 2171 | # requests per container instance of the Revision. |
| 2172 | # |
| 2173 | # Cloud Run fully managed: supported, defaults to 80 |
| 2174 | # |
| 2175 | # Cloud Run for Anthos: supported, defaults to 0, which means concurrency |
| 2176 | # to the application is not limited, and the system decides the |
| 2177 | # target concurrency for the autoscaler. |
| 2178 | "timeoutSeconds": 42, # TimeoutSeconds holds the max duration the instance is allowed for |
| 2179 | # responding to a request. |
| 2180 | # Not currently used by Cloud Run. |
| 2181 | "serviceAccountName": "A String", # Email address of the IAM service account associated with the revision |
| 2182 | # of the service. The service account represents the identity of the |
| 2183 | # running revision, and determines what permissions the revision has. If |
| 2184 | # not provided, the revision will use the project's default service account. |
| 2185 | "containers": [ # Containers holds the single container that defines the unit of execution |
| 2186 | # for this Revision. In the context of a Revision, we disallow a number of |
| 2187 | # fields on this Container, including: name and lifecycle. |
| 2188 | # In Cloud Run, only a single container may be provided. |
| 2189 | # The runtime contract is documented here: |
| 2190 | # https://github.com/knative/serving/blob/master/docs/runtime-contract.md |
| 2191 | { # A single application container. |
| 2192 | # This specifies both the container to run, the command to run in the container |
| 2193 | # and the arguments to supply to it. |
| 2194 | # Note that additional arguments may be supplied by the system to the container |
| 2195 | # at runtime. |
| 2196 | "volumeMounts": [ # (Optional) |
| 2197 | # |
| 2198 | # Cloud Run fully managed: not supported |
| 2199 | # |
| 2200 | # Cloud Run for Anthos: supported |
| 2201 | # |
| 2202 | # Pod volumes to mount into the container's filesystem. |
| 2203 | { # Cloud Run fully managed: not supported |
| 2204 | # |
| 2205 | # Cloud Run for Anthos: supported |
| 2206 | # |
| 2207 | # VolumeMount describes a mounting of a Volume within a container. |
| 2208 | "name": "A String", # Cloud Run fully managed: not supported |
| 2209 | # |
| 2210 | # Cloud Run for Anthos: supported |
| 2211 | # |
| 2212 | # This must match the Name of a Volume. |
| 2213 | "readOnly": True or False, # (Optional) |
| 2214 | # |
| 2215 | # Cloud Run fully managed: not supported |
| 2216 | # |
| 2217 | # Cloud Run for Anthos: supported |
| 2218 | # |
| 2219 | # Only true is accepted. |
| 2220 | # Defaults to true. |
| 2221 | "mountPath": "A String", # Cloud Run fully managed: not supported |
| 2222 | # |
| 2223 | # Cloud Run for Anthos: supported |
| 2224 | # |
| 2225 | # Path within the container at which the volume should be mounted. Must |
| 2226 | # not contain ':'. |
| 2227 | "subPath": "A String", # (Optional) |
| 2228 | # |
| 2229 | # Cloud Run fully managed: not supported |
| 2230 | # |
| 2231 | # Cloud Run for Anthos: supported |
| 2232 | # |
| 2233 | # Path within the volume from which the container's volume should be mounted. |
| 2234 | # Defaults to "" (volume's root). |
| 2235 | }, |
| 2236 | ], |
| 2237 | "args": [ # (Optional) |
| 2238 | # |
| 2239 | # Cloud Run fully managed: supported |
| 2240 | # |
| 2241 | # Cloud Run for Anthos: supported |
| 2242 | # |
| 2243 | # Arguments to the entrypoint. |
| 2244 | # The docker image's CMD is used if this is not provided. |
| 2245 | # Variable references $(VAR_NAME) are expanded using the container's |
| 2246 | # environment. If a variable cannot be resolved, the reference in the input |
| 2247 | # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a |
| 2248 | # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, |
| 2249 | # regardless of whether the variable exists or not. |
| 2250 | # More info: |
| 2251 | # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell |
| 2252 | "A String", |
| 2253 | ], |
| 2254 | "workingDir": "A String", # (Optional) |
| 2255 | # |
| 2256 | # Cloud Run fully managed: not supported |
| 2257 | # |
| 2258 | # Cloud Run for Anthos: supported |
| 2259 | # |
| 2260 | # Container's working directory. |
| 2261 | # If not specified, the container runtime's default will be used, which |
| 2262 | # might be configured in the container image. |
| 2263 | "ports": [ # (Optional) |
| 2264 | # |
| 2265 | # List of ports to expose from the container. Only a single port can be |
| 2266 | # specified. The specified ports must be listening on all interfaces |
| 2267 | # (0.0.0.0) within the container to be accessible. |
| 2268 | # |
| 2269 | # If omitted, a port number will be chosen and passed to the container |
| 2270 | # through the PORT environment variable for the container to listen on. |
| 2271 | { # ContainerPort represents a network port in a single container. |
| 2272 | "containerPort": 42, # (Optional) |
| 2273 | # |
| 2274 | # Port number the container listens on. |
| 2275 | # This must be a valid port number, 0 < x < 65536. |
| 2276 | "protocol": "A String", # (Optional) |
| 2277 | # |
| 2278 | # Cloud Run fully managed: not supported |
| 2279 | # |
| 2280 | # Cloud Run for Anthos: supported |
| 2281 | # |
| 2282 | # Protocol for port. Must be "TCP". |
| 2283 | # Defaults to "TCP". |
| 2284 | "name": "A String", # (Optional) |
| 2285 | # |
| 2286 | # Cloud Run fully managed: not supported |
| 2287 | # |
| 2288 | # Cloud Run for Anthos: supported |
| 2289 | # |
| 2290 | # If specified, used to specify which protocol to use. |
| 2291 | # Allowed values are "http1" and "h2c". |
| 2292 | }, |
| 2293 | ], |
| 2294 | "image": "A String", # Cloud Run fully managed: only supports containers from Google Container |
| 2295 | # Registry |
| 2296 | # |
| 2297 | # Cloud Run for Anthos: supported |
| 2298 | # |
| 2299 | # URL of the Container image. |
| 2300 | # More info: https://kubernetes.io/docs/concepts/containers/images |
| 2301 | "envFrom": [ # (Optional) |
| 2302 | # |
| 2303 | # Cloud Run fully managed: not supported |
| 2304 | # |
| 2305 | # Cloud Run for Anthos: supported |
| 2306 | # |
| 2307 | # List of sources to populate environment variables in the container. |
| 2308 | # The keys defined within a source must be a C_IDENTIFIER. All invalid keys |
| 2309 | # will be reported as an event when the container is starting. When a key |
| 2310 | # exists in multiple sources, the value associated with the last source will |
| 2311 | # take precedence. Values defined by an Env with a duplicate key will take |
| 2312 | # precedence. Cannot be updated. |
| 2313 | { # Cloud Run fully managed: not supported |
| 2314 | # |
| 2315 | # Cloud Run for Anthos: supported |
| 2316 | # |
| 2317 | # EnvFromSource represents the source of a set of ConfigMaps |
| 2318 | "prefix": "A String", # (Optional) |
| 2319 | # |
| 2320 | # Cloud Run fully managed: not supported |
| 2321 | # |
| 2322 | # Cloud Run for Anthos: supported |
| 2323 | # |
| 2324 | # An optional identifier to prepend to each key in the ConfigMap. Must be a |
| 2325 | # C_IDENTIFIER. |
| 2326 | "configMapRef": { # Cloud Run fully managed: not supported # (Optional) |
| 2327 | # |
| 2328 | # Cloud Run fully managed: not supported |
| 2329 | # |
| 2330 | # Cloud Run for Anthos: supported |
| 2331 | # |
| 2332 | # The ConfigMap to select from |
| 2333 | # |
| 2334 | # Cloud Run for Anthos: supported |
| 2335 | # |
| 2336 | # ConfigMapEnvSource selects a ConfigMap to populate the environment |
| 2337 | # variables with. |
| 2338 | # |
| 2339 | # The contents of the target ConfigMap's Data field will represent the |
| 2340 | # key-value pairs as environment variables. |
| 2341 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 2342 | # directly into the message. Use the "name" field instead. |
| 2343 | # |
| 2344 | # Cloud Run for Anthos: supported |
| 2345 | # |
| 2346 | # LocalObjectReference contains enough information to let you locate the |
| 2347 | # referenced object inside the same namespace. |
| 2348 | "name": "A String", # (Optional) |
| 2349 | # |
| 2350 | # Cloud Run fully managed: not supported |
| 2351 | # |
| 2352 | # Cloud Run for Anthos: supported |
| 2353 | # |
| 2354 | # Name of the referent. |
| 2355 | # More info: |
| 2356 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 2357 | }, |
| 2358 | "optional": True or False, # (Optional) |
| 2359 | # |
| 2360 | # Cloud Run fully managed: not supported |
| 2361 | # |
| 2362 | # Cloud Run for Anthos: supported |
| 2363 | # |
| 2364 | # Specify whether the ConfigMap must be defined |
| 2365 | "name": "A String", # Cloud Run fully managed: not supported |
| 2366 | # |
| 2367 | # Cloud Run for Anthos: supported |
| 2368 | # |
| 2369 | # The ConfigMap to select from. |
| 2370 | }, |
| 2371 | "secretRef": { # Cloud Run fully managed: not supported # (Optional) |
| 2372 | # |
| 2373 | # Cloud Run fully managed: not supported |
| 2374 | # |
| 2375 | # Cloud Run for Anthos: supported |
| 2376 | # |
| 2377 | # The Secret to select from |
| 2378 | # |
| 2379 | # Cloud Run for Anthos: supported |
| 2380 | # |
| 2381 | # SecretEnvSource selects a Secret to populate the environment |
| 2382 | # variables with. |
| 2383 | # |
| 2384 | # The contents of the target Secret's Data field will represent the |
| 2385 | # key-value pairs as environment variables. |
| 2386 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 2387 | # directly into the message. Use the "name" field instead. |
| 2388 | # |
| 2389 | # Cloud Run for Anthos: supported |
| 2390 | # |
| 2391 | # LocalObjectReference contains enough information to let you locate the |
| 2392 | # referenced object inside the same namespace. |
| 2393 | "name": "A String", # (Optional) |
| 2394 | # |
| 2395 | # Cloud Run fully managed: not supported |
| 2396 | # |
| 2397 | # Cloud Run for Anthos: supported |
| 2398 | # |
| 2399 | # Name of the referent. |
| 2400 | # More info: |
| 2401 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 2402 | }, |
| 2403 | "optional": True or False, # (Optional) |
| 2404 | # |
| 2405 | # Cloud Run fully managed: not supported |
| 2406 | # |
| 2407 | # Cloud Run for Anthos: supported |
| 2408 | # |
| 2409 | # Specify whether the Secret must be defined |
| 2410 | "name": "A String", # Cloud Run fully managed: not supported |
| 2411 | # |
| 2412 | # Cloud Run for Anthos: supported |
| 2413 | # |
| 2414 | # The Secret to select from. |
| 2415 | }, |
| 2416 | }, |
| 2417 | ], |
| 2418 | "name": "A String", # (Optional) |
| 2419 | # |
| 2420 | # Name of the container specified as a DNS_LABEL. |
| 2421 | "command": [ |
| 2422 | "A String", |
| 2423 | ], |
| 2424 | "terminationMessagePolicy": "A String", # (Optional) |
| 2425 | # |
| 2426 | # Cloud Run fully managed: not supported |
| 2427 | # |
| 2428 | # Cloud Run for Anthos: supported |
| 2429 | # |
| 2430 | # Indicate how the termination message should be populated. File will use the |
| 2431 | # contents of terminationMessagePath to populate the container status message |
| 2432 | # on both success and failure. FallbackToLogsOnError will use the last chunk |
| 2433 | # of container log output if the termination message file is empty and the |
| 2434 | # container exited with an error. The log output is limited to 2048 bytes or |
| 2435 | # 80 lines, whichever is smaller. Defaults to File. Cannot be updated. |
| 2436 | "securityContext": { # Cloud Run fully managed: not supported # (Optional) |
| 2437 | # |
| 2438 | # Cloud Run fully managed: not supported |
| 2439 | # |
| 2440 | # Cloud Run for Anthos: supported |
| 2441 | # |
| 2442 | # Security options the pod should run with. |
| 2443 | # More info: https://kubernetes.io/docs/concepts/policy/security-context/ |
| 2444 | # More info: |
| 2445 | # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| 2446 | # |
| 2447 | # Cloud Run for Anthos: supported |
| 2448 | # |
| 2449 | # SecurityContext holds security configuration that will be applied to a |
| 2450 | # container. Some fields are present in both SecurityContext and |
| 2451 | # PodSecurityContext. When both are set, the values in SecurityContext take |
| 2452 | # precedence. |
| 2453 | "runAsUser": 42, # (Optional) |
| 2454 | # |
| 2455 | # Cloud Run fully managed: not supported |
| 2456 | # |
| 2457 | # Cloud Run for Anthos: supported |
| 2458 | # |
| 2459 | # The UID to run the entrypoint of the container process. |
| 2460 | # Defaults to user specified in image metadata if unspecified. |
| 2461 | # May also be set in PodSecurityContext. If set in both SecurityContext and |
| 2462 | # PodSecurityContext, the value specified in SecurityContext takes |
| 2463 | # precedence. |
| 2464 | }, |
| 2465 | "livenessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 2466 | # |
| 2467 | # Cloud Run fully managed: not supported |
| 2468 | # |
| 2469 | # Cloud Run for Anthos: supported |
| 2470 | # |
| 2471 | # Periodic probe of container liveness. |
| 2472 | # Container will be restarted if the probe fails. |
| 2473 | # More info: |
| 2474 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 2475 | # |
| 2476 | # Cloud Run for Anthos: supported |
| 2477 | # |
| 2478 | # Probe describes a health check to be performed against a container to |
| 2479 | # determine whether it is alive or ready to receive traffic. |
| 2480 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 2481 | # |
| 2482 | # Cloud Run fully managed: not supported |
| 2483 | # |
| 2484 | # Cloud Run for Anthos: supported |
| 2485 | # |
| 2486 | # HTTPGet specifies the http request to perform. |
| 2487 | # |
| 2488 | # A field inlined from the Handler message. |
| 2489 | # |
| 2490 | # Cloud Run for Anthos: supported |
| 2491 | # |
| 2492 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 2493 | "httpHeaders": [ # (Optional) |
| 2494 | # |
| 2495 | # Cloud Run fully managed: not supported |
| 2496 | # |
| 2497 | # Cloud Run for Anthos: supported |
| 2498 | # |
| 2499 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 2500 | { # Cloud Run fully managed: not supported |
| 2501 | # |
| 2502 | # Cloud Run for Anthos: supported |
| 2503 | # |
| 2504 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 2505 | "name": "A String", # Cloud Run fully managed: not supported |
| 2506 | # |
| 2507 | # Cloud Run for Anthos: supported |
| 2508 | # |
| 2509 | # The header field name |
| 2510 | "value": "A String", # Cloud Run fully managed: not supported |
| 2511 | # |
| 2512 | # Cloud Run for Anthos: supported |
| 2513 | # |
| 2514 | # The header field value |
| 2515 | }, |
| 2516 | ], |
| 2517 | "path": "A String", # (Optional) |
| 2518 | # |
| 2519 | # Cloud Run fully managed: not supported |
| 2520 | # |
| 2521 | # Cloud Run for Anthos: supported |
| 2522 | # |
| 2523 | # Path to access on the HTTP server. |
| 2524 | "host": "A String", # (Optional) |
| 2525 | # |
| 2526 | # Cloud Run fully managed: not supported |
| 2527 | # |
| 2528 | # Cloud Run for Anthos: supported |
| 2529 | # |
| 2530 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 2531 | # "Host" in httpHeaders instead. |
| 2532 | "scheme": "A String", # (Optional) |
| 2533 | # |
| 2534 | # Cloud Run fully managed: not supported |
| 2535 | # |
| 2536 | # Cloud Run for Anthos: supported |
| 2537 | # |
| 2538 | # Scheme to use for connecting to the host. |
| 2539 | # Defaults to HTTP. |
| 2540 | }, |
| 2541 | "failureThreshold": 42, # (Optional) |
| 2542 | # |
| 2543 | # Cloud Run fully managed: not supported |
| 2544 | # |
| 2545 | # Cloud Run for Anthos: supported |
| 2546 | # |
| 2547 | # Minimum consecutive failures for the probe to be considered failed after |
| 2548 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 2549 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 2550 | # |
| 2551 | # Cloud Run fully managed: not supported |
| 2552 | # |
| 2553 | # Cloud Run for Anthos: supported |
| 2554 | # |
| 2555 | # One and only one of the following should be specified. |
| 2556 | # Exec specifies the action to take. |
| 2557 | # |
| 2558 | # A field inlined from the Handler message. |
| 2559 | # |
| 2560 | # Cloud Run for Anthos: supported |
| 2561 | # |
| 2562 | # ExecAction describes a "run in container" action. |
| 2563 | "command": "A String", # (Optional) |
| 2564 | # |
| 2565 | # Cloud Run fully managed: not supported |
| 2566 | # |
| 2567 | # Cloud Run for Anthos: supported |
| 2568 | # |
| 2569 | # Command is the command line to execute inside the container, the working |
| 2570 | # directory for the command is root ('/') in the container's filesystem. The |
| 2571 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 2572 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 2573 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 2574 | # live/healthy and non-zero is unhealthy. |
| 2575 | }, |
| 2576 | "initialDelaySeconds": 42, # (Optional) |
| 2577 | # |
| 2578 | # Cloud Run fully managed: not supported |
| 2579 | # |
| 2580 | # Cloud Run for Anthos: supported |
| 2581 | # |
| 2582 | # Number of seconds after the container has started before liveness probes |
| 2583 | # are initiated. More info: |
| 2584 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 2585 | "timeoutSeconds": 42, # (Optional) |
| 2586 | # |
| 2587 | # Cloud Run fully managed: not supported |
| 2588 | # |
| 2589 | # Cloud Run for Anthos: supported |
| 2590 | # |
| 2591 | # Number of seconds after which the probe times out. |
| 2592 | # Defaults to 1 second. Minimum value is 1. |
| 2593 | # More info: |
| 2594 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 2595 | "successThreshold": 42, # (Optional) |
| 2596 | # |
| 2597 | # Cloud Run fully managed: not supported |
| 2598 | # |
| 2599 | # Cloud Run for Anthos: supported |
| 2600 | # |
| 2601 | # Minimum consecutive successes for the probe to be considered successful |
| 2602 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 2603 | # is 1. |
| 2604 | "periodSeconds": 42, # (Optional) |
| 2605 | # |
| 2606 | # Cloud Run fully managed: not supported |
| 2607 | # |
| 2608 | # Cloud Run for Anthos: supported |
| 2609 | # |
| 2610 | # How often (in seconds) to perform the probe. |
| 2611 | # Default to 10 seconds. Minimum value is 1. |
| 2612 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 2613 | # |
| 2614 | # Cloud Run fully managed: not supported |
| 2615 | # |
| 2616 | # Cloud Run for Anthos: supported |
| 2617 | # |
| 2618 | # TCPSocket specifies an action involving a TCP port. |
| 2619 | # TCP hooks not yet supported |
| 2620 | # |
| 2621 | # A field inlined from the Handler message. |
| 2622 | # |
| 2623 | # Cloud Run for Anthos: supported |
| 2624 | # |
| 2625 | # TCPSocketAction describes an action based on opening a socket |
| 2626 | "port": 42, # Cloud Run fully managed: not supported |
| 2627 | # |
| 2628 | # Cloud Run for Anthos: supported |
| 2629 | # |
| 2630 | # Number or name of the port to access on the container. |
| 2631 | # Number must be in the range 1 to 65535. |
| 2632 | # Name must be an IANA_SVC_NAME. |
| 2633 | # |
| 2634 | # This field is currently limited to integer types only because of proto's |
| 2635 | # inability to properly support the IntOrString golang type. |
| 2636 | "host": "A String", # (Optional) |
| 2637 | # |
| 2638 | # Cloud Run fully managed: not supported |
| 2639 | # |
| 2640 | # Cloud Run for Anthos: supported |
| 2641 | # |
| 2642 | # Optional: Host name to connect to, defaults to the pod IP. |
| 2643 | }, |
| 2644 | }, |
| 2645 | "env": [ # (Optional) |
| 2646 | # |
| 2647 | # Cloud Run fully managed: supported |
| 2648 | # |
| 2649 | # Cloud Run for Anthos: supported |
| 2650 | # |
| 2651 | # List of environment variables to set in the container. |
| 2652 | { # EnvVar represents an environment variable present in a Container. |
| 2653 | "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER. |
| 2654 | "valueFrom": { # Cloud Run fully managed: not supported # (Optional) |
| 2655 | # |
| 2656 | # Cloud Run fully managed: not supported |
| 2657 | # |
| 2658 | # Cloud Run for Anthos: supported |
| 2659 | # |
| 2660 | # Source for the environment variable's value. Cannot be used if value is not |
| 2661 | # empty. |
| 2662 | # |
| 2663 | # Cloud Run for Anthos: supported |
| 2664 | # |
| 2665 | # EnvVarSource represents a source for the value of an EnvVar. |
| 2666 | "secretKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 2667 | # |
| 2668 | # Cloud Run fully managed: not supported |
| 2669 | # |
| 2670 | # Cloud Run for Anthos: supported |
| 2671 | # |
| 2672 | # Selects a key of a secret in the pod's namespace |
| 2673 | # |
| 2674 | # Cloud Run for Anthos: supported |
| 2675 | # |
| 2676 | # SecretKeySelector selects a key of a Secret. |
| 2677 | "key": "A String", # Cloud Run fully managed: not supported |
| 2678 | # |
| 2679 | # Cloud Run for Anthos: supported |
| 2680 | # |
| 2681 | # The key of the secret to select from. Must be a valid secret key. |
| 2682 | "name": "A String", # Cloud Run fully managed: not supported |
| 2683 | # |
| 2684 | # Cloud Run for Anthos: supported |
| 2685 | # |
| 2686 | # The name of the secret in the pod's namespace to select from. |
| 2687 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 2688 | # directly into the message. Use the "name" field instead. |
| 2689 | # |
| 2690 | # Cloud Run for Anthos: supported |
| 2691 | # |
| 2692 | # LocalObjectReference contains enough information to let you locate the |
| 2693 | # referenced object inside the same namespace. |
| 2694 | "name": "A String", # (Optional) |
| 2695 | # |
| 2696 | # Cloud Run fully managed: not supported |
| 2697 | # |
| 2698 | # Cloud Run for Anthos: supported |
| 2699 | # |
| 2700 | # Name of the referent. |
| 2701 | # More info: |
| 2702 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 2703 | }, |
| 2704 | "optional": True or False, # (Optional) |
| 2705 | # |
| 2706 | # Cloud Run fully managed: not supported |
| 2707 | # |
| 2708 | # Cloud Run for Anthos: supported |
| 2709 | # |
| 2710 | # Specify whether the Secret or its key must be defined |
| 2711 | }, |
| 2712 | "configMapKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 2713 | # |
| 2714 | # Cloud Run fully managed: not supported |
| 2715 | # |
| 2716 | # Cloud Run for Anthos: supported |
| 2717 | # |
| 2718 | # Selects a key of a ConfigMap. |
| 2719 | # |
| 2720 | # Cloud Run for Anthos: supported |
| 2721 | # |
| 2722 | # Selects a key from a ConfigMap. |
| 2723 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 2724 | # directly into the message. Use the "name" field instead. |
| 2725 | # |
| 2726 | # Cloud Run for Anthos: supported |
| 2727 | # |
| 2728 | # LocalObjectReference contains enough information to let you locate the |
| 2729 | # referenced object inside the same namespace. |
| 2730 | "name": "A String", # (Optional) |
| 2731 | # |
| 2732 | # Cloud Run fully managed: not supported |
| 2733 | # |
| 2734 | # Cloud Run for Anthos: supported |
| 2735 | # |
| 2736 | # Name of the referent. |
| 2737 | # More info: |
| 2738 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 2739 | }, |
| 2740 | "optional": True or False, # (Optional) |
| 2741 | # |
| 2742 | # Cloud Run fully managed: not supported |
| 2743 | # |
| 2744 | # Cloud Run for Anthos: supported |
| 2745 | # |
| 2746 | # Specify whether the ConfigMap or its key must be defined |
| 2747 | "key": "A String", # Cloud Run fully managed: not supported |
| 2748 | # |
| 2749 | # Cloud Run for Anthos: supported |
| 2750 | # |
| 2751 | # The key to select. |
| 2752 | "name": "A String", # Cloud Run fully managed: not supported |
| 2753 | # |
| 2754 | # Cloud Run for Anthos: supported |
| 2755 | # |
| 2756 | # The ConfigMap to select from. |
| 2757 | }, |
| 2758 | }, |
| 2759 | "value": "A String", # (Optional) |
| 2760 | # |
| 2761 | # Variable references $(VAR_NAME) are expanded |
| 2762 | # using the previous defined environment variables in the container and |
| 2763 | # any route environment variables. If a variable cannot be resolved, |
| 2764 | # the reference in the input string will be unchanged. The $(VAR_NAME) |
| 2765 | # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped |
| 2766 | # references will never be expanded, regardless of whether the variable |
| 2767 | # exists or not. |
| 2768 | # Defaults to "". |
| 2769 | }, |
| 2770 | ], |
| 2771 | "resources": { # ResourceRequirements describes the compute resource requirements. # (Optional) |
| 2772 | # |
| 2773 | # Cloud Run fully managed: supported |
| 2774 | # |
| 2775 | # Cloud Run for Anthos: supported |
| 2776 | # |
| 2777 | # Compute Resources required by this container. |
| 2778 | # More info: |
| 2779 | # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources |
| 2780 | "limits": { # (Optional) |
| 2781 | # |
| 2782 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 2783 | # supported value for CPU is '1'. |
| 2784 | # |
| 2785 | # Cloud Run for Anthos: supported |
| 2786 | # |
| 2787 | # Limits describes the maximum amount of compute resources allowed. |
| 2788 | # The values of the map is string form of the 'quantity' k8s type: |
| 2789 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 2790 | "a_key": "A String", |
| 2791 | }, |
| 2792 | "requests": { # (Optional) |
| 2793 | # |
| 2794 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 2795 | # supported value for CPU is '1'. |
| 2796 | # |
| 2797 | # Cloud Run for Anthos: supported |
| 2798 | # |
| 2799 | # Requests describes the minimum amount of compute resources required. |
| 2800 | # If Requests is omitted for a container, it defaults to Limits if that is |
| 2801 | # explicitly specified, otherwise to an implementation-defined value. |
| 2802 | # The values of the map is string form of the 'quantity' k8s type: |
| 2803 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 2804 | "a_key": "A String", |
| 2805 | }, |
| 2806 | }, |
| 2807 | "readinessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 2808 | # |
| 2809 | # Cloud Run fully managed: not supported |
| 2810 | # |
| 2811 | # Cloud Run for Anthos: supported |
| 2812 | # |
| 2813 | # Periodic probe of container service readiness. |
| 2814 | # Container will be removed from service endpoints if the probe fails. |
| 2815 | # More info: |
| 2816 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 2817 | # |
| 2818 | # Cloud Run for Anthos: supported |
| 2819 | # |
| 2820 | # Probe describes a health check to be performed against a container to |
| 2821 | # determine whether it is alive or ready to receive traffic. |
| 2822 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 2823 | # |
| 2824 | # Cloud Run fully managed: not supported |
| 2825 | # |
| 2826 | # Cloud Run for Anthos: supported |
| 2827 | # |
| 2828 | # HTTPGet specifies the http request to perform. |
| 2829 | # |
| 2830 | # A field inlined from the Handler message. |
| 2831 | # |
| 2832 | # Cloud Run for Anthos: supported |
| 2833 | # |
| 2834 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 2835 | "httpHeaders": [ # (Optional) |
| 2836 | # |
| 2837 | # Cloud Run fully managed: not supported |
| 2838 | # |
| 2839 | # Cloud Run for Anthos: supported |
| 2840 | # |
| 2841 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 2842 | { # Cloud Run fully managed: not supported |
| 2843 | # |
| 2844 | # Cloud Run for Anthos: supported |
| 2845 | # |
| 2846 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 2847 | "name": "A String", # Cloud Run fully managed: not supported |
| 2848 | # |
| 2849 | # Cloud Run for Anthos: supported |
| 2850 | # |
| 2851 | # The header field name |
| 2852 | "value": "A String", # Cloud Run fully managed: not supported |
| 2853 | # |
| 2854 | # Cloud Run for Anthos: supported |
| 2855 | # |
| 2856 | # The header field value |
| 2857 | }, |
| 2858 | ], |
| 2859 | "path": "A String", # (Optional) |
| 2860 | # |
| 2861 | # Cloud Run fully managed: not supported |
| 2862 | # |
| 2863 | # Cloud Run for Anthos: supported |
| 2864 | # |
| 2865 | # Path to access on the HTTP server. |
| 2866 | "host": "A String", # (Optional) |
| 2867 | # |
| 2868 | # Cloud Run fully managed: not supported |
| 2869 | # |
| 2870 | # Cloud Run for Anthos: supported |
| 2871 | # |
| 2872 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 2873 | # "Host" in httpHeaders instead. |
| 2874 | "scheme": "A String", # (Optional) |
| 2875 | # |
| 2876 | # Cloud Run fully managed: not supported |
| 2877 | # |
| 2878 | # Cloud Run for Anthos: supported |
| 2879 | # |
| 2880 | # Scheme to use for connecting to the host. |
| 2881 | # Defaults to HTTP. |
| 2882 | }, |
| 2883 | "failureThreshold": 42, # (Optional) |
| 2884 | # |
| 2885 | # Cloud Run fully managed: not supported |
| 2886 | # |
| 2887 | # Cloud Run for Anthos: supported |
| 2888 | # |
| 2889 | # Minimum consecutive failures for the probe to be considered failed after |
| 2890 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 2891 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 2892 | # |
| 2893 | # Cloud Run fully managed: not supported |
| 2894 | # |
| 2895 | # Cloud Run for Anthos: supported |
| 2896 | # |
| 2897 | # One and only one of the following should be specified. |
| 2898 | # Exec specifies the action to take. |
| 2899 | # |
| 2900 | # A field inlined from the Handler message. |
| 2901 | # |
| 2902 | # Cloud Run for Anthos: supported |
| 2903 | # |
| 2904 | # ExecAction describes a "run in container" action. |
| 2905 | "command": "A String", # (Optional) |
| 2906 | # |
| 2907 | # Cloud Run fully managed: not supported |
| 2908 | # |
| 2909 | # Cloud Run for Anthos: supported |
| 2910 | # |
| 2911 | # Command is the command line to execute inside the container, the working |
| 2912 | # directory for the command is root ('/') in the container's filesystem. The |
| 2913 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 2914 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 2915 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 2916 | # live/healthy and non-zero is unhealthy. |
| 2917 | }, |
| 2918 | "initialDelaySeconds": 42, # (Optional) |
| 2919 | # |
| 2920 | # Cloud Run fully managed: not supported |
| 2921 | # |
| 2922 | # Cloud Run for Anthos: supported |
| 2923 | # |
| 2924 | # Number of seconds after the container has started before liveness probes |
| 2925 | # are initiated. More info: |
| 2926 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 2927 | "timeoutSeconds": 42, # (Optional) |
| 2928 | # |
| 2929 | # Cloud Run fully managed: not supported |
| 2930 | # |
| 2931 | # Cloud Run for Anthos: supported |
| 2932 | # |
| 2933 | # Number of seconds after which the probe times out. |
| 2934 | # Defaults to 1 second. Minimum value is 1. |
| 2935 | # More info: |
| 2936 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 2937 | "successThreshold": 42, # (Optional) |
| 2938 | # |
| 2939 | # Cloud Run fully managed: not supported |
| 2940 | # |
| 2941 | # Cloud Run for Anthos: supported |
| 2942 | # |
| 2943 | # Minimum consecutive successes for the probe to be considered successful |
| 2944 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 2945 | # is 1. |
| 2946 | "periodSeconds": 42, # (Optional) |
| 2947 | # |
| 2948 | # Cloud Run fully managed: not supported |
| 2949 | # |
| 2950 | # Cloud Run for Anthos: supported |
| 2951 | # |
| 2952 | # How often (in seconds) to perform the probe. |
| 2953 | # Default to 10 seconds. Minimum value is 1. |
| 2954 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 2955 | # |
| 2956 | # Cloud Run fully managed: not supported |
| 2957 | # |
| 2958 | # Cloud Run for Anthos: supported |
| 2959 | # |
| 2960 | # TCPSocket specifies an action involving a TCP port. |
| 2961 | # TCP hooks not yet supported |
| 2962 | # |
| 2963 | # A field inlined from the Handler message. |
| 2964 | # |
| 2965 | # Cloud Run for Anthos: supported |
| 2966 | # |
| 2967 | # TCPSocketAction describes an action based on opening a socket |
| 2968 | "port": 42, # Cloud Run fully managed: not supported |
| 2969 | # |
| 2970 | # Cloud Run for Anthos: supported |
| 2971 | # |
| 2972 | # Number or name of the port to access on the container. |
| 2973 | # Number must be in the range 1 to 65535. |
| 2974 | # Name must be an IANA_SVC_NAME. |
| 2975 | # |
| 2976 | # This field is currently limited to integer types only because of proto's |
| 2977 | # inability to properly support the IntOrString golang type. |
| 2978 | "host": "A String", # (Optional) |
| 2979 | # |
| 2980 | # Cloud Run fully managed: not supported |
| 2981 | # |
| 2982 | # Cloud Run for Anthos: supported |
| 2983 | # |
| 2984 | # Optional: Host name to connect to, defaults to the pod IP. |
| 2985 | }, |
| 2986 | }, |
| 2987 | "imagePullPolicy": "A String", # (Optional) |
| 2988 | # |
| 2989 | # Cloud Run fully managed: not supported |
| 2990 | # |
| 2991 | # Cloud Run for Anthos: supported |
| 2992 | # |
| 2993 | # Image pull policy. |
| 2994 | # One of Always, Never, IfNotPresent. |
| 2995 | # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. |
| 2996 | # More info: |
| 2997 | # https://kubernetes.io/docs/concepts/containers/images#updating-images |
| 2998 | "terminationMessagePath": "A String", # (Optional) |
| 2999 | # |
| 3000 | # Cloud Run fully managed: not supported |
| 3001 | # |
| 3002 | # Cloud Run for Anthos: supported |
| 3003 | # |
| 3004 | # Path at which the file to which the container's termination |
| 3005 | # message will be written is mounted into the container's filesystem. Message |
| 3006 | # written is intended to be brief final status, such as an assertion failure |
| 3007 | # message. Will be truncated by the node if greater than 4096 bytes. The |
| 3008 | # total message length across all containers will be limited to 12kb. |
| 3009 | # Defaults to /dev/termination-log. |
| 3010 | }, |
| 3011 | ], |
| 3012 | }, |
| 3013 | }, |
| 3014 | }, |
| 3015 | "kind": "A String", # The kind of resource, in this case "Service". |
| 3016 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Metadata associated with this Service, including name, namespace, labels, |
| 3017 | # and annotations. |
| 3018 | # persisted resources must have, which includes all objects users must create. |
| 3019 | "creationTimestamp": "A String", # (Optional) |
| 3020 | # |
| 3021 | # CreationTimestamp is a timestamp representing the server time when this |
| 3022 | # object was created. It is not guaranteed to be set in happens-before order |
| 3023 | # across separate operations. Clients may not set this value. It is |
| 3024 | # represented in RFC3339 form and is in UTC. |
| 3025 | # |
| 3026 | # Populated by the system. |
| 3027 | # Read-only. |
| 3028 | # Null for lists. |
| 3029 | # More info: |
| 3030 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 3031 | "labels": { # (Optional) |
| 3032 | # |
| 3033 | # Map of string keys and values that can be used to organize and categorize |
| 3034 | # (scope and select) objects. May match selectors of replication controllers |
| 3035 | # and routes. |
| 3036 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 3037 | "a_key": "A String", |
| 3038 | }, |
| 3039 | "generation": 42, # (Optional) |
| 3040 | # |
| 3041 | # A sequence number representing a specific generation of the desired state. |
| 3042 | # Populated by the system. Read-only. |
| 3043 | "resourceVersion": "A String", # (Optional) |
| 3044 | # |
| 3045 | # An opaque value that represents the internal version of this object that |
| 3046 | # can be used by clients to determine when objects have changed. May be used |
| 3047 | # for optimistic concurrency, change detection, and the watch operation on a |
| 3048 | # resource or set of resources. Clients must treat these values as opaque and |
| 3049 | # passed unmodified back to the server. They may only be valid for a |
| 3050 | # particular resource or set of resources. |
| 3051 | # |
| 3052 | # Populated by the system. |
| 3053 | # Read-only. |
| 3054 | # Value must be treated as opaque by clients and . |
| 3055 | # More info: |
| 3056 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 3057 | "selfLink": "A String", # (Optional) |
| 3058 | # |
| 3059 | # SelfLink is a URL representing this object. |
| 3060 | # Populated by the system. |
| 3061 | # Read-only. |
| 3062 | # string selfLink = 4; |
| 3063 | "uid": "A String", # (Optional) |
| 3064 | # |
| 3065 | # UID is the unique in time and space value for this object. It is typically |
| 3066 | # generated by the server on successful creation of a resource and is not |
| 3067 | # allowed to change on PUT operations. |
| 3068 | # |
| 3069 | # Populated by the system. |
| 3070 | # Read-only. |
| 3071 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 3072 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 3073 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 3074 | # project ID or project number. |
| 3075 | "annotations": { # (Optional) |
| 3076 | # |
| 3077 | # Annotations is an unstructured key value map stored with a resource that |
| 3078 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 3079 | # are not queryable and should be preserved when modifying objects. More |
| 3080 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 3081 | "a_key": "A String", |
| 3082 | }, |
| 3083 | "generateName": "A String", # (Optional) |
| 3084 | # |
| 3085 | # Cloud Run fully managed: not supported |
| 3086 | # |
| 3087 | # Cloud Run for Anthos: supported |
| 3088 | # |
| 3089 | # GenerateName is an optional prefix, used by the server, to generate a |
| 3090 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 3091 | # used, the name returned to the client will be different than the name |
| 3092 | # passed. This value will also be combined with a unique suffix. The provided |
| 3093 | # value has the same validation rules as the Name field, and may be truncated |
| 3094 | # by the length of the suffix required to make the value unique on the |
| 3095 | # server. |
| 3096 | # |
| 3097 | # If this field is specified and the generated name exists, the server will |
| 3098 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 3099 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 3100 | # time allotted, and the client should retry (optionally after the time |
| 3101 | # indicated in the Retry-After header). |
| 3102 | # |
| 3103 | # Applied only if Name is not specified. |
| 3104 | # More info: |
| 3105 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 3106 | # string generateName = 2; |
| 3107 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 3108 | # Is required when creating |
| 3109 | # resources, although some resources may allow a client to request the |
| 3110 | # generation of an appropriate name automatically. Name is primarily intended |
| 3111 | # for creation idempotence and configuration definition. Cannot be updated. |
| 3112 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 3113 | # +optional |
| 3114 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 3115 | # |
| 3116 | # Cloud Run fully managed: not supported |
| 3117 | # |
| 3118 | # Cloud Run for Anthos: supported |
| 3119 | # |
| 3120 | # Number of seconds allowed for this object to gracefully terminate before |
| 3121 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 3122 | # set. May only be shortened. Read-only. |
| 3123 | "clusterName": "A String", # (Optional) |
| 3124 | # |
| 3125 | # Cloud Run fully managed: not supported |
| 3126 | # |
| 3127 | # Cloud Run for Anthos: supported |
| 3128 | # |
| 3129 | # The name of the cluster which the object belongs to. |
| 3130 | # This is used to distinguish resources with same name and namespace in |
| 3131 | # different clusters. This field is not set anywhere right now and apiserver |
| 3132 | # is going to ignore it if set in create or update request. |
| 3133 | "finalizers": [ # (Optional) |
| 3134 | # |
| 3135 | # Cloud Run fully managed: not supported |
| 3136 | # |
| 3137 | # Cloud Run for Anthos: supported |
| 3138 | # |
| 3139 | # Must be empty before the object is deleted from the registry. Each entry |
| 3140 | # is an identifier for the responsible component that will remove the entry |
| 3141 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 3142 | # in this list can only be removed. |
| 3143 | # +patchStrategy=merge |
| 3144 | "A String", |
| 3145 | ], |
| 3146 | "deletionTimestamp": "A String", # (Optional) |
| 3147 | # |
| 3148 | # Cloud Run fully managed: not supported |
| 3149 | # |
| 3150 | # Cloud Run for Anthos: supported |
| 3151 | # |
| 3152 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 3153 | # deleted. This field is set by the server when a graceful deletion is |
| 3154 | # requested by the user, and is not directly settable by a client. The |
| 3155 | # resource is expected to be deleted (no longer visible from resource lists, |
| 3156 | # and not reachable by name) after the time in this field, once the |
| 3157 | # finalizers list is empty. As long as the finalizers list contains items, |
| 3158 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 3159 | # be unset or be set further into the future, although it may be shortened or |
| 3160 | # the resource may be deleted prior to this time. For example, a user may |
| 3161 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 3162 | # sending a graceful termination signal to the containers in the pod. After |
| 3163 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 3164 | # to the container and after cleanup, remove the pod from the API. In the |
| 3165 | # presence of network partitions, this object may still exist after this |
| 3166 | # timestamp, until an administrator or automated process can determine the |
| 3167 | # resource is fully terminated. |
| 3168 | # If not set, graceful deletion of the object has not been requested. |
| 3169 | # |
| 3170 | # Populated by the system when a graceful deletion is requested. |
| 3171 | # Read-only. |
| 3172 | # More info: |
| 3173 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 3174 | "ownerReferences": [ # (Optional) |
| 3175 | # |
| 3176 | # Cloud Run fully managed: not supported |
| 3177 | # |
| 3178 | # Cloud Run for Anthos: supported |
| 3179 | # |
| 3180 | # List of objects that own this object. If ALL objects in the list have |
| 3181 | # been deleted, this object will be garbage collected. |
| 3182 | { # OwnerReference contains enough information to let you identify an owning |
| 3183 | # object. Currently, an owning object must be in the same namespace, so there |
| 3184 | # is no namespace field. |
| 3185 | "uid": "A String", # UID of the referent. |
| 3186 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 3187 | "controller": True or False, # If true, this reference points to the managing controller. |
| 3188 | # +optional |
| 3189 | "kind": "A String", # Kind of the referent. |
| 3190 | # More info: |
| 3191 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 3192 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 3193 | # the owner cannot be deleted from the key-value store until this |
| 3194 | # reference is removed. |
| 3195 | # Defaults to false. |
| 3196 | # To set this field, a user needs "delete" permission of the owner, |
| 3197 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 3198 | # +optional |
| 3199 | "apiVersion": "A String", # API version of the referent. |
| 3200 | "name": "A String", # Name of the referent. |
| 3201 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 3202 | }, |
| 3203 | ], |
| 3204 | }, |
| 3205 | }</pre> |
| 3206 | </div> |
| 3207 | |
| 3208 | <div class="method"> |
| 3209 | <code class="details" id="delete">delete(name, apiVersion=None, propagationPolicy=None, kind=None, x__xgafv=None)</code> |
| 3210 | <pre>Delete a service. |
| 3211 | This will cause the Service to stop serving traffic and will delete the |
| 3212 | child entities like Routes, Configurations and Revisions. |
| 3213 | |
| 3214 | Args: |
| 3215 | name: string, The name of the service to delete. |
| 3216 | For Cloud Run (fully managed), replace {namespace_id} with the project ID |
| 3217 | or number. (required) |
| 3218 | apiVersion: string, Cloud Run currently ignores this parameter. |
| 3219 | propagationPolicy: string, Specifies the propagation policy of delete. Cloud Run currently ignores |
| 3220 | this setting, and deletes in the background. Please see |
| 3221 | kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for |
| 3222 | more information. |
| 3223 | kind: string, Cloud Run currently ignores this parameter. |
| 3224 | x__xgafv: string, V1 error format. |
| 3225 | Allowed values |
| 3226 | 1 - v1 error format |
| 3227 | 2 - v2 error format |
| 3228 | |
| 3229 | Returns: |
| 3230 | An object of the form: |
| 3231 | |
| 3232 | { # Status is a return value for calls that don't return other objects |
| 3233 | "metadata": { # ListMeta describes metadata that synthetic resources must have, including # Standard list metadata. |
| 3234 | # More info: |
| 3235 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 3236 | # +optional |
| 3237 | # lists and various status objects. A resource may have only one of |
| 3238 | # {ObjectMeta, ListMeta}. |
| 3239 | "resourceVersion": "A String", # String that identifies the server's internal version of this object that |
| 3240 | # can be used by clients to determine when objects have changed. Value must |
| 3241 | # be treated as opaque by clients and passed unmodified back to the server. |
| 3242 | # Populated by the system. |
| 3243 | # Read-only. |
| 3244 | # More info: |
| 3245 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 3246 | # +optional |
| 3247 | "continue": "A String", # continue may be set if the user set a limit on the number of items |
| 3248 | # returned, and indicates that the server has more data available. The value |
| 3249 | # is opaque and may be used to issue another request to the endpoint that |
| 3250 | # served this list to retrieve the next set of available objects. Continuing |
| 3251 | # a list may not be possible if the server configuration has changed or more |
| 3252 | # than a few minutes have passed. The resourceVersion field returned when |
| 3253 | # using this continue value will be identical to the value in the first |
| 3254 | # response. |
| 3255 | "selfLink": "A String", # SelfLink is a URL representing this object. |
| 3256 | # Populated by the system. |
| 3257 | # Read-only. |
| 3258 | # +optional |
| 3259 | }, |
| 3260 | "code": 42, # Suggested HTTP return code for this status, 0 if not set. |
| 3261 | # +optional |
| 3262 | "message": "A String", # A human-readable description of the status of this operation. |
| 3263 | # +optional |
| 3264 | "status": "A String", # Status of the operation. |
| 3265 | # One of: "Success" or "Failure". |
| 3266 | # More info: |
| 3267 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status |
| 3268 | # +optional |
| 3269 | "details": { # StatusDetails is a set of additional properties that MAY be set by the # Extended data associated with the reason. Each reason may define its |
| 3270 | # own extended details. This field is optional and the data returned |
| 3271 | # is not guaranteed to conform to any schema except that defined by |
| 3272 | # the reason type. |
| 3273 | # +optional |
| 3274 | # server to provide additional information about a response. The Reason |
| 3275 | # field of a Status object defines what attributes will be set. Clients |
| 3276 | # must ignore fields that do not match the defined type of each attribute, |
| 3277 | # and should assume that any attribute may be empty, invalid, or under |
| 3278 | # defined. |
| 3279 | "name": "A String", # The name attribute of the resource associated with the status StatusReason |
| 3280 | # (when there is a single name which can be described). |
| 3281 | # +optional |
| 3282 | "uid": "A String", # UID of the resource. |
| 3283 | # (when there is a single resource which can be described). |
| 3284 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 3285 | # +optional |
| 3286 | "group": "A String", # The group attribute of the resource associated with the status |
| 3287 | # StatusReason. +optional |
| 3288 | "causes": [ # The Causes array includes more details associated with the StatusReason |
| 3289 | # failure. Not all StatusReasons may provide detailed causes. |
| 3290 | # +optional |
| 3291 | { # StatusCause provides more information about an api.Status failure, including |
| 3292 | # cases when multiple errors are encountered. |
| 3293 | "message": "A String", # A human-readable description of the cause of the error. This field may be |
| 3294 | # presented as-is to a reader. |
| 3295 | # +optional |
| 3296 | "reason": "A String", # A machine-readable description of the cause of the error. If this value is |
| 3297 | # empty there is no information available. |
| 3298 | # +optional |
| 3299 | "field": "A String", # The field of the resource that has caused this error, as named by its JSON |
| 3300 | # serialization. May include dot and postfix notation for nested attributes. |
| 3301 | # Arrays are zero-indexed. Fields may appear more than once in an array of |
| 3302 | # causes due to fields having multiple errors. |
| 3303 | # Optional. |
| 3304 | # |
| 3305 | # Examples: |
| 3306 | # "name" - the field "name" on the current resource |
| 3307 | # "items[0].name" - the field "name" on the first array entry in "items" |
| 3308 | # +optional |
| 3309 | }, |
| 3310 | ], |
| 3311 | "kind": "A String", # The kind attribute of the resource associated with the status StatusReason. |
| 3312 | # On some operations may differ from the requested resource Kind. |
| 3313 | # More info: |
| 3314 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 3315 | # +optional |
| 3316 | "retryAfterSeconds": 42, # If specified, the time in seconds before the operation should be retried. |
| 3317 | # Some errors may indicate the client must take an alternate action - for |
| 3318 | # those errors this field may indicate how long to wait before taking the |
| 3319 | # alternate action. +optional |
| 3320 | }, |
| 3321 | "reason": "A String", # A machine-readable description of why this operation is in the |
| 3322 | # "Failure" status. If this value is empty there |
| 3323 | # is no information available. A Reason clarifies an HTTP status |
| 3324 | # code but does not override it. |
| 3325 | # +optional |
| 3326 | }</pre> |
| 3327 | </div> |
| 3328 | |
| 3329 | <div class="method"> |
| 3330 | <code class="details" id="get">get(name, x__xgafv=None)</code> |
| 3331 | <pre>Get information about a service. |
| 3332 | |
| 3333 | Args: |
| 3334 | name: string, The name of the service to retrieve. |
| 3335 | For Cloud Run (fully managed), replace {namespace_id} with the project ID |
| 3336 | or number. (required) |
| 3337 | x__xgafv: string, V1 error format. |
| 3338 | Allowed values |
| 3339 | 1 - v1 error format |
| 3340 | 2 - v2 error format |
| 3341 | |
| 3342 | Returns: |
| 3343 | An object of the form: |
| 3344 | |
| 3345 | { # Service acts as a top-level container that manages a set of Routes and |
| 3346 | # Configurations which implement a network service. Service exists to provide a |
| 3347 | # singular abstraction which can be access controlled, reasoned about, and |
| 3348 | # which encapsulates software lifecycle decisions such as rollout policy and |
| 3349 | # team resource ownership. Service acts only as an orchestrator of the |
| 3350 | # underlying Routes and Configurations (much as a kubernetes Deployment |
| 3351 | # orchestrates ReplicaSets). |
| 3352 | # |
| 3353 | # The Service's controller will track the statuses of its owned Configuration |
| 3354 | # and Route, reflecting their statuses and conditions as its own. |
| 3355 | # |
| 3356 | # See also: |
| 3357 | # https://github.com/knative/serving/blob/master/docs/spec/overview.md#service |
| 3358 | "status": { # The current state of the Service. Output only. # Status communicates the observed state of the Service (from the |
| 3359 | # controller). |
| 3360 | "latestCreatedRevisionName": "A String", # From ConfigurationStatus. |
| 3361 | # LatestCreatedRevisionName is the last revision that was created from this |
| 3362 | # Service's Configuration. It might not be ready yet, for that use |
| 3363 | # LatestReadyRevisionName. |
| 3364 | "conditions": [ # Conditions communicates information about ongoing/complete |
| 3365 | # reconciliation processes that bring the "spec" inline with the observed |
| 3366 | # state of the world. |
| 3367 | # Service-specific conditions include: |
| 3368 | # * "ConfigurationsReady": true when the underlying Configuration is ready. |
| 3369 | # * "RoutesReady": true when the underlying Route is ready. |
| 3370 | # * "Ready": true when both the underlying Route and Configuration are |
| 3371 | # ready. |
| 3372 | { # Condition defines a generic condition for a Resource |
| 3373 | "message": "A String", # Optional. Human readable message indicating details about the current status. |
| 3374 | "lastTransitionTime": "A String", # Optional. Last time the condition transitioned from one status to another. |
| 3375 | "status": "A String", # Status of the condition, one of True, False, Unknown. |
| 3376 | "severity": "A String", # Optional. How to interpret failures of this condition, one of Error, Warning, Info |
| 3377 | "reason": "A String", # Optional. One-word CamelCase reason for the condition's last transition. |
| 3378 | "type": "A String", # type is used to communicate the status of the reconciliation process. |
| 3379 | # See also: |
| 3380 | # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting |
| 3381 | # Types common to all resources include: |
| 3382 | # * "Ready": True when the Resource is ready. |
| 3383 | }, |
| 3384 | ], |
| 3385 | "address": { # Information for connecting over HTTP(s). # From RouteStatus. |
| 3386 | # Similar to url, information on where the service is available on HTTP. |
| 3387 | "url": "A String", |
| 3388 | }, |
| 3389 | "observedGeneration": 42, # ObservedGeneration is the 'Generation' of the Route that |
| 3390 | # was last processed by the controller. |
| 3391 | # |
| 3392 | # Clients polling for completed reconciliation should poll until |
| 3393 | # observedGeneration = metadata.generation and the Ready condition's status |
| 3394 | # is True or False. |
| 3395 | "url": "A String", # From RouteStatus. |
| 3396 | # URL holds the url that will distribute traffic over the provided traffic |
| 3397 | # targets. It generally has the form |
| 3398 | # https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app |
| 3399 | "traffic": [ # From RouteStatus. |
| 3400 | # Traffic holds the configured traffic distribution. |
| 3401 | # These entries will always contain RevisionName references. |
| 3402 | # When ConfigurationName appears in the spec, this will hold the |
| 3403 | # LatestReadyRevisionName that we last observed. |
| 3404 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 3405 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 3406 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 3407 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 3408 | # (e.g. basic auth, url path, etc. |
| 3409 | # |
| 3410 | # Not currently supported in Cloud Run. |
| 3411 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 3412 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 3413 | # of the referenced configuration changes, we will automatically migrate |
| 3414 | # traffic from the prior "latest ready" revision to the new one. This field |
| 3415 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 3416 | # with RevisionName. |
| 3417 | # |
| 3418 | # Cloud Run currently supports a single ConfigurationName. |
| 3419 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 3420 | # This defaults to zero if unspecified. |
| 3421 | # |
| 3422 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 3423 | # TrafficTarget entry. |
| 3424 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 3425 | # traffic. This is mutually exclusive with ConfigurationName. |
| 3426 | # |
| 3427 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 3428 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 3429 | # ready Revision of the Configuration should be used for this traffic |
| 3430 | # target. When provided LatestRevision must be true if RevisionName is |
| 3431 | # empty; it must be false when RevisionName is non-empty. |
| 3432 | # |
| 3433 | # +optional |
| 3434 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 3435 | # this target exclusively. |
| 3436 | # |
| 3437 | # Not currently supported in Cloud Run. |
| 3438 | # +optional |
| 3439 | }, |
| 3440 | ], |
| 3441 | "latestReadyRevisionName": "A String", # From ConfigurationStatus. |
| 3442 | # LatestReadyRevisionName holds the name of the latest Revision stamped out |
| 3443 | # from this Service's Configuration that has had its "Ready" condition become |
| 3444 | # "True". |
| 3445 | }, |
| 3446 | "apiVersion": "A String", # The API version for this call such as "serving.knative.dev/v1". |
| 3447 | "spec": { # ServiceSpec holds the desired state of the Route (from the client), which # Spec holds the desired state of the Service (from the client). |
| 3448 | # is used to manipulate the underlying Route and Configuration(s). |
| 3449 | "traffic": [ # Traffic specifies how to distribute traffic over a collection of Knative |
| 3450 | # Revisions and Configurations. |
| 3451 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 3452 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 3453 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 3454 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 3455 | # (e.g. basic auth, url path, etc. |
| 3456 | # |
| 3457 | # Not currently supported in Cloud Run. |
| 3458 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 3459 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 3460 | # of the referenced configuration changes, we will automatically migrate |
| 3461 | # traffic from the prior "latest ready" revision to the new one. This field |
| 3462 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 3463 | # with RevisionName. |
| 3464 | # |
| 3465 | # Cloud Run currently supports a single ConfigurationName. |
| 3466 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 3467 | # This defaults to zero if unspecified. |
| 3468 | # |
| 3469 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 3470 | # TrafficTarget entry. |
| 3471 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 3472 | # traffic. This is mutually exclusive with ConfigurationName. |
| 3473 | # |
| 3474 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 3475 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 3476 | # ready Revision of the Configuration should be used for this traffic |
| 3477 | # target. When provided LatestRevision must be true if RevisionName is |
| 3478 | # empty; it must be false when RevisionName is non-empty. |
| 3479 | # |
| 3480 | # +optional |
| 3481 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 3482 | # this target exclusively. |
| 3483 | # |
| 3484 | # Not currently supported in Cloud Run. |
| 3485 | # +optional |
| 3486 | }, |
| 3487 | ], |
| 3488 | "template": { # RevisionTemplateSpec describes the data a revision should have when created # Template holds the latest specification for the Revision to |
| 3489 | # be stamped out. |
| 3490 | # from a template. Based on: |
| 3491 | # https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190 |
| 3492 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Optional metadata for this Revision, including labels and annotations. Name |
| 3493 | # will be generated by the Configuration. |
| 3494 | # To set minimum instances for this revision, use the |
| 3495 | # "autoscaling.knative.dev/minScale" annotation key. |
| 3496 | # To set maximum instances for this revision, use the |
| 3497 | # "autoscaling.knative.dev/maxScale" annotation key. |
| 3498 | # To set Cloud SQL connections for the revision, use the |
| 3499 | # "run.googleapis.com/cloudsql-instances" annotation key. |
| 3500 | # persisted resources must have, which includes all objects users must create. |
| 3501 | "creationTimestamp": "A String", # (Optional) |
| 3502 | # |
| 3503 | # CreationTimestamp is a timestamp representing the server time when this |
| 3504 | # object was created. It is not guaranteed to be set in happens-before order |
| 3505 | # across separate operations. Clients may not set this value. It is |
| 3506 | # represented in RFC3339 form and is in UTC. |
| 3507 | # |
| 3508 | # Populated by the system. |
| 3509 | # Read-only. |
| 3510 | # Null for lists. |
| 3511 | # More info: |
| 3512 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 3513 | "labels": { # (Optional) |
| 3514 | # |
| 3515 | # Map of string keys and values that can be used to organize and categorize |
| 3516 | # (scope and select) objects. May match selectors of replication controllers |
| 3517 | # and routes. |
| 3518 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 3519 | "a_key": "A String", |
| 3520 | }, |
| 3521 | "generation": 42, # (Optional) |
| 3522 | # |
| 3523 | # A sequence number representing a specific generation of the desired state. |
| 3524 | # Populated by the system. Read-only. |
| 3525 | "resourceVersion": "A String", # (Optional) |
| 3526 | # |
| 3527 | # An opaque value that represents the internal version of this object that |
| 3528 | # can be used by clients to determine when objects have changed. May be used |
| 3529 | # for optimistic concurrency, change detection, and the watch operation on a |
| 3530 | # resource or set of resources. Clients must treat these values as opaque and |
| 3531 | # passed unmodified back to the server. They may only be valid for a |
| 3532 | # particular resource or set of resources. |
| 3533 | # |
| 3534 | # Populated by the system. |
| 3535 | # Read-only. |
| 3536 | # Value must be treated as opaque by clients and . |
| 3537 | # More info: |
| 3538 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 3539 | "selfLink": "A String", # (Optional) |
| 3540 | # |
| 3541 | # SelfLink is a URL representing this object. |
| 3542 | # Populated by the system. |
| 3543 | # Read-only. |
| 3544 | # string selfLink = 4; |
| 3545 | "uid": "A String", # (Optional) |
| 3546 | # |
| 3547 | # UID is the unique in time and space value for this object. It is typically |
| 3548 | # generated by the server on successful creation of a resource and is not |
| 3549 | # allowed to change on PUT operations. |
| 3550 | # |
| 3551 | # Populated by the system. |
| 3552 | # Read-only. |
| 3553 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 3554 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 3555 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 3556 | # project ID or project number. |
| 3557 | "annotations": { # (Optional) |
| 3558 | # |
| 3559 | # Annotations is an unstructured key value map stored with a resource that |
| 3560 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 3561 | # are not queryable and should be preserved when modifying objects. More |
| 3562 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 3563 | "a_key": "A String", |
| 3564 | }, |
| 3565 | "generateName": "A String", # (Optional) |
| 3566 | # |
| 3567 | # Cloud Run fully managed: not supported |
| 3568 | # |
| 3569 | # Cloud Run for Anthos: supported |
| 3570 | # |
| 3571 | # GenerateName is an optional prefix, used by the server, to generate a |
| 3572 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 3573 | # used, the name returned to the client will be different than the name |
| 3574 | # passed. This value will also be combined with a unique suffix. The provided |
| 3575 | # value has the same validation rules as the Name field, and may be truncated |
| 3576 | # by the length of the suffix required to make the value unique on the |
| 3577 | # server. |
| 3578 | # |
| 3579 | # If this field is specified and the generated name exists, the server will |
| 3580 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 3581 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 3582 | # time allotted, and the client should retry (optionally after the time |
| 3583 | # indicated in the Retry-After header). |
| 3584 | # |
| 3585 | # Applied only if Name is not specified. |
| 3586 | # More info: |
| 3587 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 3588 | # string generateName = 2; |
| 3589 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 3590 | # Is required when creating |
| 3591 | # resources, although some resources may allow a client to request the |
| 3592 | # generation of an appropriate name automatically. Name is primarily intended |
| 3593 | # for creation idempotence and configuration definition. Cannot be updated. |
| 3594 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 3595 | # +optional |
| 3596 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 3597 | # |
| 3598 | # Cloud Run fully managed: not supported |
| 3599 | # |
| 3600 | # Cloud Run for Anthos: supported |
| 3601 | # |
| 3602 | # Number of seconds allowed for this object to gracefully terminate before |
| 3603 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 3604 | # set. May only be shortened. Read-only. |
| 3605 | "clusterName": "A String", # (Optional) |
| 3606 | # |
| 3607 | # Cloud Run fully managed: not supported |
| 3608 | # |
| 3609 | # Cloud Run for Anthos: supported |
| 3610 | # |
| 3611 | # The name of the cluster which the object belongs to. |
| 3612 | # This is used to distinguish resources with same name and namespace in |
| 3613 | # different clusters. This field is not set anywhere right now and apiserver |
| 3614 | # is going to ignore it if set in create or update request. |
| 3615 | "finalizers": [ # (Optional) |
| 3616 | # |
| 3617 | # Cloud Run fully managed: not supported |
| 3618 | # |
| 3619 | # Cloud Run for Anthos: supported |
| 3620 | # |
| 3621 | # Must be empty before the object is deleted from the registry. Each entry |
| 3622 | # is an identifier for the responsible component that will remove the entry |
| 3623 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 3624 | # in this list can only be removed. |
| 3625 | # +patchStrategy=merge |
| 3626 | "A String", |
| 3627 | ], |
| 3628 | "deletionTimestamp": "A String", # (Optional) |
| 3629 | # |
| 3630 | # Cloud Run fully managed: not supported |
| 3631 | # |
| 3632 | # Cloud Run for Anthos: supported |
| 3633 | # |
| 3634 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 3635 | # deleted. This field is set by the server when a graceful deletion is |
| 3636 | # requested by the user, and is not directly settable by a client. The |
| 3637 | # resource is expected to be deleted (no longer visible from resource lists, |
| 3638 | # and not reachable by name) after the time in this field, once the |
| 3639 | # finalizers list is empty. As long as the finalizers list contains items, |
| 3640 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 3641 | # be unset or be set further into the future, although it may be shortened or |
| 3642 | # the resource may be deleted prior to this time. For example, a user may |
| 3643 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 3644 | # sending a graceful termination signal to the containers in the pod. After |
| 3645 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 3646 | # to the container and after cleanup, remove the pod from the API. In the |
| 3647 | # presence of network partitions, this object may still exist after this |
| 3648 | # timestamp, until an administrator or automated process can determine the |
| 3649 | # resource is fully terminated. |
| 3650 | # If not set, graceful deletion of the object has not been requested. |
| 3651 | # |
| 3652 | # Populated by the system when a graceful deletion is requested. |
| 3653 | # Read-only. |
| 3654 | # More info: |
| 3655 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 3656 | "ownerReferences": [ # (Optional) |
| 3657 | # |
| 3658 | # Cloud Run fully managed: not supported |
| 3659 | # |
| 3660 | # Cloud Run for Anthos: supported |
| 3661 | # |
| 3662 | # List of objects that own this object. If ALL objects in the list have |
| 3663 | # been deleted, this object will be garbage collected. |
| 3664 | { # OwnerReference contains enough information to let you identify an owning |
| 3665 | # object. Currently, an owning object must be in the same namespace, so there |
| 3666 | # is no namespace field. |
| 3667 | "uid": "A String", # UID of the referent. |
| 3668 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 3669 | "controller": True or False, # If true, this reference points to the managing controller. |
| 3670 | # +optional |
| 3671 | "kind": "A String", # Kind of the referent. |
| 3672 | # More info: |
| 3673 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 3674 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 3675 | # the owner cannot be deleted from the key-value store until this |
| 3676 | # reference is removed. |
| 3677 | # Defaults to false. |
| 3678 | # To set this field, a user needs "delete" permission of the owner, |
| 3679 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 3680 | # +optional |
| 3681 | "apiVersion": "A String", # API version of the referent. |
| 3682 | "name": "A String", # Name of the referent. |
| 3683 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 3684 | }, |
| 3685 | ], |
| 3686 | }, |
| 3687 | "spec": { # RevisionSpec holds the desired state of the Revision (from the client). # RevisionSpec holds the desired state of the Revision (from the client). |
| 3688 | "volumes": [ |
| 3689 | { # Cloud Run fully managed: not supported |
| 3690 | # |
| 3691 | # Cloud Run for Anthos: supported |
| 3692 | # |
| 3693 | # Volume represents a named volume in a container. |
| 3694 | "configMap": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 3695 | # |
| 3696 | # Cloud Run for Anthos: supported |
| 3697 | # |
| 3698 | # Cloud Run for Anthos: supported |
| 3699 | # |
| 3700 | # Adapts a ConfigMap into a volume. |
| 3701 | # The contents of the target ConfigMap's Data field will be presented in a |
| 3702 | # volume as files using the keys in the Data field as the file names, unless |
| 3703 | # the items element is populated with specific mappings of keys to paths. |
| 3704 | "optional": True or False, # (Optional) |
| 3705 | # |
| 3706 | # Cloud Run fully managed: not supported |
| 3707 | # |
| 3708 | # Cloud Run for Anthos: supported |
| 3709 | # |
| 3710 | # Specify whether the Secret or its keys must be defined. |
| 3711 | "name": "A String", # Cloud Run fully managed: not supported |
| 3712 | # |
| 3713 | # Cloud Run for Anthos: supported |
| 3714 | # |
| 3715 | # Name of the config. |
| 3716 | "defaultMode": 42, # (Optional) |
| 3717 | # |
| 3718 | # Cloud Run fully managed: not supported |
| 3719 | # |
| 3720 | # Cloud Run for Anthos: supported |
| 3721 | # |
| 3722 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 3723 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 3724 | # this setting. This might be in conflict with other options that affect the |
| 3725 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 3726 | "items": [ # (Optional) |
| 3727 | # |
| 3728 | # Cloud Run fully managed: not supported |
| 3729 | # |
| 3730 | # Cloud Run for Anthos: supported |
| 3731 | # |
| 3732 | # If unspecified, each key-value pair in the Data field of the referenced |
| 3733 | # Secret will be projected into the volume as a file whose name is the |
| 3734 | # key and content is the value. If specified, the listed keys will be |
| 3735 | # projected into the specified paths, and unlisted keys will not be |
| 3736 | # present. If a key is specified which is not present in the Secret, |
| 3737 | # the volume setup will error unless it is marked optional. |
| 3738 | { # Cloud Run fully managed: not supported |
| 3739 | # |
| 3740 | # Cloud Run for Anthos: supported |
| 3741 | # |
| 3742 | # Maps a string key to a path within a volume. |
| 3743 | "key": "A String", # Cloud Run fully managed: not supported |
| 3744 | # |
| 3745 | # Cloud Run for Anthos: supported |
| 3746 | # |
| 3747 | # The key to project. |
| 3748 | "path": "A String", # Cloud Run fully managed: not supported |
| 3749 | # |
| 3750 | # Cloud Run for Anthos: supported |
| 3751 | # |
| 3752 | # The relative path of the file to map the key to. |
| 3753 | # May not be an absolute path. |
| 3754 | # May not contain the path element '..'. |
| 3755 | # May not start with the string '..'. |
| 3756 | "mode": 42, # (Optional) |
| 3757 | # |
| 3758 | # Cloud Run fully managed: not supported |
| 3759 | # |
| 3760 | # Cloud Run for Anthos: supported |
| 3761 | # |
| 3762 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 3763 | # specified, the volume defaultMode will be used. This might be in conflict |
| 3764 | # with other options that affect the file mode, like fsGroup, and the result |
| 3765 | # can be other mode bits set. |
| 3766 | }, |
| 3767 | ], |
| 3768 | }, |
| 3769 | "name": "A String", # Cloud Run fully managed: not supported |
| 3770 | # |
| 3771 | # Cloud Run for Anthos: supported |
| 3772 | # |
| 3773 | # Volume's name. |
| 3774 | "secret": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 3775 | # |
| 3776 | # Cloud Run for Anthos: supported |
| 3777 | # |
| 3778 | # Cloud Run for Anthos: supported |
| 3779 | # |
| 3780 | # The contents of the target Secret's Data field will be presented in a volume |
| 3781 | # as files using the keys in the Data field as the file names. |
| 3782 | "optional": True or False, # (Optional) |
| 3783 | # |
| 3784 | # Cloud Run fully managed: not supported |
| 3785 | # |
| 3786 | # Cloud Run for Anthos: supported |
| 3787 | # |
| 3788 | # Specify whether the Secret or its keys must be defined. |
| 3789 | "defaultMode": 42, # (Optional) |
| 3790 | # |
| 3791 | # Cloud Run fully managed: not supported |
| 3792 | # |
| 3793 | # Cloud Run for Anthos: supported |
| 3794 | # |
| 3795 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 3796 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 3797 | # this setting. This might be in conflict with other options that affect the |
| 3798 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 3799 | "secretName": "A String", # Cloud Run fully managed: not supported |
| 3800 | # |
| 3801 | # Cloud Run for Anthos: supported |
| 3802 | # |
| 3803 | # Name of the secret in the container's namespace to use. |
| 3804 | "items": [ # (Optional) |
| 3805 | # |
| 3806 | # Cloud Run fully managed: not supported |
| 3807 | # |
| 3808 | # Cloud Run for Anthos: supported |
| 3809 | # |
| 3810 | # If unspecified, each key-value pair in the Data field of the referenced |
| 3811 | # Secret will be projected into the volume as a file whose name is the |
| 3812 | # key and content is the value. If specified, the listed keys will be |
| 3813 | # projected into the specified paths, and unlisted keys will not be |
| 3814 | # present. If a key is specified which is not present in the Secret, |
| 3815 | # the volume setup will error unless it is marked optional. |
| 3816 | { # Cloud Run fully managed: not supported |
| 3817 | # |
| 3818 | # Cloud Run for Anthos: supported |
| 3819 | # |
| 3820 | # Maps a string key to a path within a volume. |
| 3821 | "key": "A String", # Cloud Run fully managed: not supported |
| 3822 | # |
| 3823 | # Cloud Run for Anthos: supported |
| 3824 | # |
| 3825 | # The key to project. |
| 3826 | "path": "A String", # Cloud Run fully managed: not supported |
| 3827 | # |
| 3828 | # Cloud Run for Anthos: supported |
| 3829 | # |
| 3830 | # The relative path of the file to map the key to. |
| 3831 | # May not be an absolute path. |
| 3832 | # May not contain the path element '..'. |
| 3833 | # May not start with the string '..'. |
| 3834 | "mode": 42, # (Optional) |
| 3835 | # |
| 3836 | # Cloud Run fully managed: not supported |
| 3837 | # |
| 3838 | # Cloud Run for Anthos: supported |
| 3839 | # |
| 3840 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 3841 | # specified, the volume defaultMode will be used. This might be in conflict |
| 3842 | # with other options that affect the file mode, like fsGroup, and the result |
| 3843 | # can be other mode bits set. |
| 3844 | }, |
| 3845 | ], |
| 3846 | }, |
| 3847 | }, |
| 3848 | ], |
| 3849 | "containerConcurrency": 42, # (Optional) |
| 3850 | # |
| 3851 | # ContainerConcurrency specifies the maximum allowed in-flight (concurrent) |
| 3852 | # requests per container instance of the Revision. |
| 3853 | # |
| 3854 | # Cloud Run fully managed: supported, defaults to 80 |
| 3855 | # |
| 3856 | # Cloud Run for Anthos: supported, defaults to 0, which means concurrency |
| 3857 | # to the application is not limited, and the system decides the |
| 3858 | # target concurrency for the autoscaler. |
| 3859 | "timeoutSeconds": 42, # TimeoutSeconds holds the max duration the instance is allowed for |
| 3860 | # responding to a request. |
| 3861 | # Not currently used by Cloud Run. |
| 3862 | "serviceAccountName": "A String", # Email address of the IAM service account associated with the revision |
| 3863 | # of the service. The service account represents the identity of the |
| 3864 | # running revision, and determines what permissions the revision has. If |
| 3865 | # not provided, the revision will use the project's default service account. |
| 3866 | "containers": [ # Containers holds the single container that defines the unit of execution |
| 3867 | # for this Revision. In the context of a Revision, we disallow a number of |
| 3868 | # fields on this Container, including: name and lifecycle. |
| 3869 | # In Cloud Run, only a single container may be provided. |
| 3870 | # The runtime contract is documented here: |
| 3871 | # https://github.com/knative/serving/blob/master/docs/runtime-contract.md |
| 3872 | { # A single application container. |
| 3873 | # This specifies both the container to run, the command to run in the container |
| 3874 | # and the arguments to supply to it. |
| 3875 | # Note that additional arguments may be supplied by the system to the container |
| 3876 | # at runtime. |
| 3877 | "volumeMounts": [ # (Optional) |
| 3878 | # |
| 3879 | # Cloud Run fully managed: not supported |
| 3880 | # |
| 3881 | # Cloud Run for Anthos: supported |
| 3882 | # |
| 3883 | # Pod volumes to mount into the container's filesystem. |
| 3884 | { # Cloud Run fully managed: not supported |
| 3885 | # |
| 3886 | # Cloud Run for Anthos: supported |
| 3887 | # |
| 3888 | # VolumeMount describes a mounting of a Volume within a container. |
| 3889 | "name": "A String", # Cloud Run fully managed: not supported |
| 3890 | # |
| 3891 | # Cloud Run for Anthos: supported |
| 3892 | # |
| 3893 | # This must match the Name of a Volume. |
| 3894 | "readOnly": True or False, # (Optional) |
| 3895 | # |
| 3896 | # Cloud Run fully managed: not supported |
| 3897 | # |
| 3898 | # Cloud Run for Anthos: supported |
| 3899 | # |
| 3900 | # Only true is accepted. |
| 3901 | # Defaults to true. |
| 3902 | "mountPath": "A String", # Cloud Run fully managed: not supported |
| 3903 | # |
| 3904 | # Cloud Run for Anthos: supported |
| 3905 | # |
| 3906 | # Path within the container at which the volume should be mounted. Must |
| 3907 | # not contain ':'. |
| 3908 | "subPath": "A String", # (Optional) |
| 3909 | # |
| 3910 | # Cloud Run fully managed: not supported |
| 3911 | # |
| 3912 | # Cloud Run for Anthos: supported |
| 3913 | # |
| 3914 | # Path within the volume from which the container's volume should be mounted. |
| 3915 | # Defaults to "" (volume's root). |
| 3916 | }, |
| 3917 | ], |
| 3918 | "args": [ # (Optional) |
| 3919 | # |
| 3920 | # Cloud Run fully managed: supported |
| 3921 | # |
| 3922 | # Cloud Run for Anthos: supported |
| 3923 | # |
| 3924 | # Arguments to the entrypoint. |
| 3925 | # The docker image's CMD is used if this is not provided. |
| 3926 | # Variable references $(VAR_NAME) are expanded using the container's |
| 3927 | # environment. If a variable cannot be resolved, the reference in the input |
| 3928 | # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a |
| 3929 | # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, |
| 3930 | # regardless of whether the variable exists or not. |
| 3931 | # More info: |
| 3932 | # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell |
| 3933 | "A String", |
| 3934 | ], |
| 3935 | "workingDir": "A String", # (Optional) |
| 3936 | # |
| 3937 | # Cloud Run fully managed: not supported |
| 3938 | # |
| 3939 | # Cloud Run for Anthos: supported |
| 3940 | # |
| 3941 | # Container's working directory. |
| 3942 | # If not specified, the container runtime's default will be used, which |
| 3943 | # might be configured in the container image. |
| 3944 | "ports": [ # (Optional) |
| 3945 | # |
| 3946 | # List of ports to expose from the container. Only a single port can be |
| 3947 | # specified. The specified ports must be listening on all interfaces |
| 3948 | # (0.0.0.0) within the container to be accessible. |
| 3949 | # |
| 3950 | # If omitted, a port number will be chosen and passed to the container |
| 3951 | # through the PORT environment variable for the container to listen on. |
| 3952 | { # ContainerPort represents a network port in a single container. |
| 3953 | "containerPort": 42, # (Optional) |
| 3954 | # |
| 3955 | # Port number the container listens on. |
| 3956 | # This must be a valid port number, 0 < x < 65536. |
| 3957 | "protocol": "A String", # (Optional) |
| 3958 | # |
| 3959 | # Cloud Run fully managed: not supported |
| 3960 | # |
| 3961 | # Cloud Run for Anthos: supported |
| 3962 | # |
| 3963 | # Protocol for port. Must be "TCP". |
| 3964 | # Defaults to "TCP". |
| 3965 | "name": "A String", # (Optional) |
| 3966 | # |
| 3967 | # Cloud Run fully managed: not supported |
| 3968 | # |
| 3969 | # Cloud Run for Anthos: supported |
| 3970 | # |
| 3971 | # If specified, used to specify which protocol to use. |
| 3972 | # Allowed values are "http1" and "h2c". |
| 3973 | }, |
| 3974 | ], |
| 3975 | "image": "A String", # Cloud Run fully managed: only supports containers from Google Container |
| 3976 | # Registry |
| 3977 | # |
| 3978 | # Cloud Run for Anthos: supported |
| 3979 | # |
| 3980 | # URL of the Container image. |
| 3981 | # More info: https://kubernetes.io/docs/concepts/containers/images |
| 3982 | "envFrom": [ # (Optional) |
| 3983 | # |
| 3984 | # Cloud Run fully managed: not supported |
| 3985 | # |
| 3986 | # Cloud Run for Anthos: supported |
| 3987 | # |
| 3988 | # List of sources to populate environment variables in the container. |
| 3989 | # The keys defined within a source must be a C_IDENTIFIER. All invalid keys |
| 3990 | # will be reported as an event when the container is starting. When a key |
| 3991 | # exists in multiple sources, the value associated with the last source will |
| 3992 | # take precedence. Values defined by an Env with a duplicate key will take |
| 3993 | # precedence. Cannot be updated. |
| 3994 | { # Cloud Run fully managed: not supported |
| 3995 | # |
| 3996 | # Cloud Run for Anthos: supported |
| 3997 | # |
| 3998 | # EnvFromSource represents the source of a set of ConfigMaps |
| 3999 | "prefix": "A String", # (Optional) |
| 4000 | # |
| 4001 | # Cloud Run fully managed: not supported |
| 4002 | # |
| 4003 | # Cloud Run for Anthos: supported |
| 4004 | # |
| 4005 | # An optional identifier to prepend to each key in the ConfigMap. Must be a |
| 4006 | # C_IDENTIFIER. |
| 4007 | "configMapRef": { # Cloud Run fully managed: not supported # (Optional) |
| 4008 | # |
| 4009 | # Cloud Run fully managed: not supported |
| 4010 | # |
| 4011 | # Cloud Run for Anthos: supported |
| 4012 | # |
| 4013 | # The ConfigMap to select from |
| 4014 | # |
| 4015 | # Cloud Run for Anthos: supported |
| 4016 | # |
| 4017 | # ConfigMapEnvSource selects a ConfigMap to populate the environment |
| 4018 | # variables with. |
| 4019 | # |
| 4020 | # The contents of the target ConfigMap's Data field will represent the |
| 4021 | # key-value pairs as environment variables. |
| 4022 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 4023 | # directly into the message. Use the "name" field instead. |
| 4024 | # |
| 4025 | # Cloud Run for Anthos: supported |
| 4026 | # |
| 4027 | # LocalObjectReference contains enough information to let you locate the |
| 4028 | # referenced object inside the same namespace. |
| 4029 | "name": "A String", # (Optional) |
| 4030 | # |
| 4031 | # Cloud Run fully managed: not supported |
| 4032 | # |
| 4033 | # Cloud Run for Anthos: supported |
| 4034 | # |
| 4035 | # Name of the referent. |
| 4036 | # More info: |
| 4037 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 4038 | }, |
| 4039 | "optional": True or False, # (Optional) |
| 4040 | # |
| 4041 | # Cloud Run fully managed: not supported |
| 4042 | # |
| 4043 | # Cloud Run for Anthos: supported |
| 4044 | # |
| 4045 | # Specify whether the ConfigMap must be defined |
| 4046 | "name": "A String", # Cloud Run fully managed: not supported |
| 4047 | # |
| 4048 | # Cloud Run for Anthos: supported |
| 4049 | # |
| 4050 | # The ConfigMap to select from. |
| 4051 | }, |
| 4052 | "secretRef": { # Cloud Run fully managed: not supported # (Optional) |
| 4053 | # |
| 4054 | # Cloud Run fully managed: not supported |
| 4055 | # |
| 4056 | # Cloud Run for Anthos: supported |
| 4057 | # |
| 4058 | # The Secret to select from |
| 4059 | # |
| 4060 | # Cloud Run for Anthos: supported |
| 4061 | # |
| 4062 | # SecretEnvSource selects a Secret to populate the environment |
| 4063 | # variables with. |
| 4064 | # |
| 4065 | # The contents of the target Secret's Data field will represent the |
| 4066 | # key-value pairs as environment variables. |
| 4067 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 4068 | # directly into the message. Use the "name" field instead. |
| 4069 | # |
| 4070 | # Cloud Run for Anthos: supported |
| 4071 | # |
| 4072 | # LocalObjectReference contains enough information to let you locate the |
| 4073 | # referenced object inside the same namespace. |
| 4074 | "name": "A String", # (Optional) |
| 4075 | # |
| 4076 | # Cloud Run fully managed: not supported |
| 4077 | # |
| 4078 | # Cloud Run for Anthos: supported |
| 4079 | # |
| 4080 | # Name of the referent. |
| 4081 | # More info: |
| 4082 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 4083 | }, |
| 4084 | "optional": True or False, # (Optional) |
| 4085 | # |
| 4086 | # Cloud Run fully managed: not supported |
| 4087 | # |
| 4088 | # Cloud Run for Anthos: supported |
| 4089 | # |
| 4090 | # Specify whether the Secret must be defined |
| 4091 | "name": "A String", # Cloud Run fully managed: not supported |
| 4092 | # |
| 4093 | # Cloud Run for Anthos: supported |
| 4094 | # |
| 4095 | # The Secret to select from. |
| 4096 | }, |
| 4097 | }, |
| 4098 | ], |
| 4099 | "name": "A String", # (Optional) |
| 4100 | # |
| 4101 | # Name of the container specified as a DNS_LABEL. |
| 4102 | "command": [ |
| 4103 | "A String", |
| 4104 | ], |
| 4105 | "terminationMessagePolicy": "A String", # (Optional) |
| 4106 | # |
| 4107 | # Cloud Run fully managed: not supported |
| 4108 | # |
| 4109 | # Cloud Run for Anthos: supported |
| 4110 | # |
| 4111 | # Indicate how the termination message should be populated. File will use the |
| 4112 | # contents of terminationMessagePath to populate the container status message |
| 4113 | # on both success and failure. FallbackToLogsOnError will use the last chunk |
| 4114 | # of container log output if the termination message file is empty and the |
| 4115 | # container exited with an error. The log output is limited to 2048 bytes or |
| 4116 | # 80 lines, whichever is smaller. Defaults to File. Cannot be updated. |
| 4117 | "securityContext": { # Cloud Run fully managed: not supported # (Optional) |
| 4118 | # |
| 4119 | # Cloud Run fully managed: not supported |
| 4120 | # |
| 4121 | # Cloud Run for Anthos: supported |
| 4122 | # |
| 4123 | # Security options the pod should run with. |
| 4124 | # More info: https://kubernetes.io/docs/concepts/policy/security-context/ |
| 4125 | # More info: |
| 4126 | # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| 4127 | # |
| 4128 | # Cloud Run for Anthos: supported |
| 4129 | # |
| 4130 | # SecurityContext holds security configuration that will be applied to a |
| 4131 | # container. Some fields are present in both SecurityContext and |
| 4132 | # PodSecurityContext. When both are set, the values in SecurityContext take |
| 4133 | # precedence. |
| 4134 | "runAsUser": 42, # (Optional) |
| 4135 | # |
| 4136 | # Cloud Run fully managed: not supported |
| 4137 | # |
| 4138 | # Cloud Run for Anthos: supported |
| 4139 | # |
| 4140 | # The UID to run the entrypoint of the container process. |
| 4141 | # Defaults to user specified in image metadata if unspecified. |
| 4142 | # May also be set in PodSecurityContext. If set in both SecurityContext and |
| 4143 | # PodSecurityContext, the value specified in SecurityContext takes |
| 4144 | # precedence. |
| 4145 | }, |
| 4146 | "livenessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 4147 | # |
| 4148 | # Cloud Run fully managed: not supported |
| 4149 | # |
| 4150 | # Cloud Run for Anthos: supported |
| 4151 | # |
| 4152 | # Periodic probe of container liveness. |
| 4153 | # Container will be restarted if the probe fails. |
| 4154 | # More info: |
| 4155 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 4156 | # |
| 4157 | # Cloud Run for Anthos: supported |
| 4158 | # |
| 4159 | # Probe describes a health check to be performed against a container to |
| 4160 | # determine whether it is alive or ready to receive traffic. |
| 4161 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 4162 | # |
| 4163 | # Cloud Run fully managed: not supported |
| 4164 | # |
| 4165 | # Cloud Run for Anthos: supported |
| 4166 | # |
| 4167 | # HTTPGet specifies the http request to perform. |
| 4168 | # |
| 4169 | # A field inlined from the Handler message. |
| 4170 | # |
| 4171 | # Cloud Run for Anthos: supported |
| 4172 | # |
| 4173 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 4174 | "httpHeaders": [ # (Optional) |
| 4175 | # |
| 4176 | # Cloud Run fully managed: not supported |
| 4177 | # |
| 4178 | # Cloud Run for Anthos: supported |
| 4179 | # |
| 4180 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 4181 | { # Cloud Run fully managed: not supported |
| 4182 | # |
| 4183 | # Cloud Run for Anthos: supported |
| 4184 | # |
| 4185 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 4186 | "name": "A String", # Cloud Run fully managed: not supported |
| 4187 | # |
| 4188 | # Cloud Run for Anthos: supported |
| 4189 | # |
| 4190 | # The header field name |
| 4191 | "value": "A String", # Cloud Run fully managed: not supported |
| 4192 | # |
| 4193 | # Cloud Run for Anthos: supported |
| 4194 | # |
| 4195 | # The header field value |
| 4196 | }, |
| 4197 | ], |
| 4198 | "path": "A String", # (Optional) |
| 4199 | # |
| 4200 | # Cloud Run fully managed: not supported |
| 4201 | # |
| 4202 | # Cloud Run for Anthos: supported |
| 4203 | # |
| 4204 | # Path to access on the HTTP server. |
| 4205 | "host": "A String", # (Optional) |
| 4206 | # |
| 4207 | # Cloud Run fully managed: not supported |
| 4208 | # |
| 4209 | # Cloud Run for Anthos: supported |
| 4210 | # |
| 4211 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 4212 | # "Host" in httpHeaders instead. |
| 4213 | "scheme": "A String", # (Optional) |
| 4214 | # |
| 4215 | # Cloud Run fully managed: not supported |
| 4216 | # |
| 4217 | # Cloud Run for Anthos: supported |
| 4218 | # |
| 4219 | # Scheme to use for connecting to the host. |
| 4220 | # Defaults to HTTP. |
| 4221 | }, |
| 4222 | "failureThreshold": 42, # (Optional) |
| 4223 | # |
| 4224 | # Cloud Run fully managed: not supported |
| 4225 | # |
| 4226 | # Cloud Run for Anthos: supported |
| 4227 | # |
| 4228 | # Minimum consecutive failures for the probe to be considered failed after |
| 4229 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 4230 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 4231 | # |
| 4232 | # Cloud Run fully managed: not supported |
| 4233 | # |
| 4234 | # Cloud Run for Anthos: supported |
| 4235 | # |
| 4236 | # One and only one of the following should be specified. |
| 4237 | # Exec specifies the action to take. |
| 4238 | # |
| 4239 | # A field inlined from the Handler message. |
| 4240 | # |
| 4241 | # Cloud Run for Anthos: supported |
| 4242 | # |
| 4243 | # ExecAction describes a "run in container" action. |
| 4244 | "command": "A String", # (Optional) |
| 4245 | # |
| 4246 | # Cloud Run fully managed: not supported |
| 4247 | # |
| 4248 | # Cloud Run for Anthos: supported |
| 4249 | # |
| 4250 | # Command is the command line to execute inside the container, the working |
| 4251 | # directory for the command is root ('/') in the container's filesystem. The |
| 4252 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 4253 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 4254 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 4255 | # live/healthy and non-zero is unhealthy. |
| 4256 | }, |
| 4257 | "initialDelaySeconds": 42, # (Optional) |
| 4258 | # |
| 4259 | # Cloud Run fully managed: not supported |
| 4260 | # |
| 4261 | # Cloud Run for Anthos: supported |
| 4262 | # |
| 4263 | # Number of seconds after the container has started before liveness probes |
| 4264 | # are initiated. More info: |
| 4265 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 4266 | "timeoutSeconds": 42, # (Optional) |
| 4267 | # |
| 4268 | # Cloud Run fully managed: not supported |
| 4269 | # |
| 4270 | # Cloud Run for Anthos: supported |
| 4271 | # |
| 4272 | # Number of seconds after which the probe times out. |
| 4273 | # Defaults to 1 second. Minimum value is 1. |
| 4274 | # More info: |
| 4275 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 4276 | "successThreshold": 42, # (Optional) |
| 4277 | # |
| 4278 | # Cloud Run fully managed: not supported |
| 4279 | # |
| 4280 | # Cloud Run for Anthos: supported |
| 4281 | # |
| 4282 | # Minimum consecutive successes for the probe to be considered successful |
| 4283 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 4284 | # is 1. |
| 4285 | "periodSeconds": 42, # (Optional) |
| 4286 | # |
| 4287 | # Cloud Run fully managed: not supported |
| 4288 | # |
| 4289 | # Cloud Run for Anthos: supported |
| 4290 | # |
| 4291 | # How often (in seconds) to perform the probe. |
| 4292 | # Default to 10 seconds. Minimum value is 1. |
| 4293 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 4294 | # |
| 4295 | # Cloud Run fully managed: not supported |
| 4296 | # |
| 4297 | # Cloud Run for Anthos: supported |
| 4298 | # |
| 4299 | # TCPSocket specifies an action involving a TCP port. |
| 4300 | # TCP hooks not yet supported |
| 4301 | # |
| 4302 | # A field inlined from the Handler message. |
| 4303 | # |
| 4304 | # Cloud Run for Anthos: supported |
| 4305 | # |
| 4306 | # TCPSocketAction describes an action based on opening a socket |
| 4307 | "port": 42, # Cloud Run fully managed: not supported |
| 4308 | # |
| 4309 | # Cloud Run for Anthos: supported |
| 4310 | # |
| 4311 | # Number or name of the port to access on the container. |
| 4312 | # Number must be in the range 1 to 65535. |
| 4313 | # Name must be an IANA_SVC_NAME. |
| 4314 | # |
| 4315 | # This field is currently limited to integer types only because of proto's |
| 4316 | # inability to properly support the IntOrString golang type. |
| 4317 | "host": "A String", # (Optional) |
| 4318 | # |
| 4319 | # Cloud Run fully managed: not supported |
| 4320 | # |
| 4321 | # Cloud Run for Anthos: supported |
| 4322 | # |
| 4323 | # Optional: Host name to connect to, defaults to the pod IP. |
| 4324 | }, |
| 4325 | }, |
| 4326 | "env": [ # (Optional) |
| 4327 | # |
| 4328 | # Cloud Run fully managed: supported |
| 4329 | # |
| 4330 | # Cloud Run for Anthos: supported |
| 4331 | # |
| 4332 | # List of environment variables to set in the container. |
| 4333 | { # EnvVar represents an environment variable present in a Container. |
| 4334 | "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER. |
| 4335 | "valueFrom": { # Cloud Run fully managed: not supported # (Optional) |
| 4336 | # |
| 4337 | # Cloud Run fully managed: not supported |
| 4338 | # |
| 4339 | # Cloud Run for Anthos: supported |
| 4340 | # |
| 4341 | # Source for the environment variable's value. Cannot be used if value is not |
| 4342 | # empty. |
| 4343 | # |
| 4344 | # Cloud Run for Anthos: supported |
| 4345 | # |
| 4346 | # EnvVarSource represents a source for the value of an EnvVar. |
| 4347 | "secretKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 4348 | # |
| 4349 | # Cloud Run fully managed: not supported |
| 4350 | # |
| 4351 | # Cloud Run for Anthos: supported |
| 4352 | # |
| 4353 | # Selects a key of a secret in the pod's namespace |
| 4354 | # |
| 4355 | # Cloud Run for Anthos: supported |
| 4356 | # |
| 4357 | # SecretKeySelector selects a key of a Secret. |
| 4358 | "key": "A String", # Cloud Run fully managed: not supported |
| 4359 | # |
| 4360 | # Cloud Run for Anthos: supported |
| 4361 | # |
| 4362 | # The key of the secret to select from. Must be a valid secret key. |
| 4363 | "name": "A String", # Cloud Run fully managed: not supported |
| 4364 | # |
| 4365 | # Cloud Run for Anthos: supported |
| 4366 | # |
| 4367 | # The name of the secret in the pod's namespace to select from. |
| 4368 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 4369 | # directly into the message. Use the "name" field instead. |
| 4370 | # |
| 4371 | # Cloud Run for Anthos: supported |
| 4372 | # |
| 4373 | # LocalObjectReference contains enough information to let you locate the |
| 4374 | # referenced object inside the same namespace. |
| 4375 | "name": "A String", # (Optional) |
| 4376 | # |
| 4377 | # Cloud Run fully managed: not supported |
| 4378 | # |
| 4379 | # Cloud Run for Anthos: supported |
| 4380 | # |
| 4381 | # Name of the referent. |
| 4382 | # More info: |
| 4383 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 4384 | }, |
| 4385 | "optional": True or False, # (Optional) |
| 4386 | # |
| 4387 | # Cloud Run fully managed: not supported |
| 4388 | # |
| 4389 | # Cloud Run for Anthos: supported |
| 4390 | # |
| 4391 | # Specify whether the Secret or its key must be defined |
| 4392 | }, |
| 4393 | "configMapKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 4394 | # |
| 4395 | # Cloud Run fully managed: not supported |
| 4396 | # |
| 4397 | # Cloud Run for Anthos: supported |
| 4398 | # |
| 4399 | # Selects a key of a ConfigMap. |
| 4400 | # |
| 4401 | # Cloud Run for Anthos: supported |
| 4402 | # |
| 4403 | # Selects a key from a ConfigMap. |
| 4404 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 4405 | # directly into the message. Use the "name" field instead. |
| 4406 | # |
| 4407 | # Cloud Run for Anthos: supported |
| 4408 | # |
| 4409 | # LocalObjectReference contains enough information to let you locate the |
| 4410 | # referenced object inside the same namespace. |
| 4411 | "name": "A String", # (Optional) |
| 4412 | # |
| 4413 | # Cloud Run fully managed: not supported |
| 4414 | # |
| 4415 | # Cloud Run for Anthos: supported |
| 4416 | # |
| 4417 | # Name of the referent. |
| 4418 | # More info: |
| 4419 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 4420 | }, |
| 4421 | "optional": True or False, # (Optional) |
| 4422 | # |
| 4423 | # Cloud Run fully managed: not supported |
| 4424 | # |
| 4425 | # Cloud Run for Anthos: supported |
| 4426 | # |
| 4427 | # Specify whether the ConfigMap or its key must be defined |
| 4428 | "key": "A String", # Cloud Run fully managed: not supported |
| 4429 | # |
| 4430 | # Cloud Run for Anthos: supported |
| 4431 | # |
| 4432 | # The key to select. |
| 4433 | "name": "A String", # Cloud Run fully managed: not supported |
| 4434 | # |
| 4435 | # Cloud Run for Anthos: supported |
| 4436 | # |
| 4437 | # The ConfigMap to select from. |
| 4438 | }, |
| 4439 | }, |
| 4440 | "value": "A String", # (Optional) |
| 4441 | # |
| 4442 | # Variable references $(VAR_NAME) are expanded |
| 4443 | # using the previous defined environment variables in the container and |
| 4444 | # any route environment variables. If a variable cannot be resolved, |
| 4445 | # the reference in the input string will be unchanged. The $(VAR_NAME) |
| 4446 | # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped |
| 4447 | # references will never be expanded, regardless of whether the variable |
| 4448 | # exists or not. |
| 4449 | # Defaults to "". |
| 4450 | }, |
| 4451 | ], |
| 4452 | "resources": { # ResourceRequirements describes the compute resource requirements. # (Optional) |
| 4453 | # |
| 4454 | # Cloud Run fully managed: supported |
| 4455 | # |
| 4456 | # Cloud Run for Anthos: supported |
| 4457 | # |
| 4458 | # Compute Resources required by this container. |
| 4459 | # More info: |
| 4460 | # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources |
| 4461 | "limits": { # (Optional) |
| 4462 | # |
| 4463 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 4464 | # supported value for CPU is '1'. |
| 4465 | # |
| 4466 | # Cloud Run for Anthos: supported |
| 4467 | # |
| 4468 | # Limits describes the maximum amount of compute resources allowed. |
| 4469 | # The values of the map is string form of the 'quantity' k8s type: |
| 4470 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 4471 | "a_key": "A String", |
| 4472 | }, |
| 4473 | "requests": { # (Optional) |
| 4474 | # |
| 4475 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 4476 | # supported value for CPU is '1'. |
| 4477 | # |
| 4478 | # Cloud Run for Anthos: supported |
| 4479 | # |
| 4480 | # Requests describes the minimum amount of compute resources required. |
| 4481 | # If Requests is omitted for a container, it defaults to Limits if that is |
| 4482 | # explicitly specified, otherwise to an implementation-defined value. |
| 4483 | # The values of the map is string form of the 'quantity' k8s type: |
| 4484 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 4485 | "a_key": "A String", |
| 4486 | }, |
| 4487 | }, |
| 4488 | "readinessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 4489 | # |
| 4490 | # Cloud Run fully managed: not supported |
| 4491 | # |
| 4492 | # Cloud Run for Anthos: supported |
| 4493 | # |
| 4494 | # Periodic probe of container service readiness. |
| 4495 | # Container will be removed from service endpoints if the probe fails. |
| 4496 | # More info: |
| 4497 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 4498 | # |
| 4499 | # Cloud Run for Anthos: supported |
| 4500 | # |
| 4501 | # Probe describes a health check to be performed against a container to |
| 4502 | # determine whether it is alive or ready to receive traffic. |
| 4503 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 4504 | # |
| 4505 | # Cloud Run fully managed: not supported |
| 4506 | # |
| 4507 | # Cloud Run for Anthos: supported |
| 4508 | # |
| 4509 | # HTTPGet specifies the http request to perform. |
| 4510 | # |
| 4511 | # A field inlined from the Handler message. |
| 4512 | # |
| 4513 | # Cloud Run for Anthos: supported |
| 4514 | # |
| 4515 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 4516 | "httpHeaders": [ # (Optional) |
| 4517 | # |
| 4518 | # Cloud Run fully managed: not supported |
| 4519 | # |
| 4520 | # Cloud Run for Anthos: supported |
| 4521 | # |
| 4522 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 4523 | { # Cloud Run fully managed: not supported |
| 4524 | # |
| 4525 | # Cloud Run for Anthos: supported |
| 4526 | # |
| 4527 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 4528 | "name": "A String", # Cloud Run fully managed: not supported |
| 4529 | # |
| 4530 | # Cloud Run for Anthos: supported |
| 4531 | # |
| 4532 | # The header field name |
| 4533 | "value": "A String", # Cloud Run fully managed: not supported |
| 4534 | # |
| 4535 | # Cloud Run for Anthos: supported |
| 4536 | # |
| 4537 | # The header field value |
| 4538 | }, |
| 4539 | ], |
| 4540 | "path": "A String", # (Optional) |
| 4541 | # |
| 4542 | # Cloud Run fully managed: not supported |
| 4543 | # |
| 4544 | # Cloud Run for Anthos: supported |
| 4545 | # |
| 4546 | # Path to access on the HTTP server. |
| 4547 | "host": "A String", # (Optional) |
| 4548 | # |
| 4549 | # Cloud Run fully managed: not supported |
| 4550 | # |
| 4551 | # Cloud Run for Anthos: supported |
| 4552 | # |
| 4553 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 4554 | # "Host" in httpHeaders instead. |
| 4555 | "scheme": "A String", # (Optional) |
| 4556 | # |
| 4557 | # Cloud Run fully managed: not supported |
| 4558 | # |
| 4559 | # Cloud Run for Anthos: supported |
| 4560 | # |
| 4561 | # Scheme to use for connecting to the host. |
| 4562 | # Defaults to HTTP. |
| 4563 | }, |
| 4564 | "failureThreshold": 42, # (Optional) |
| 4565 | # |
| 4566 | # Cloud Run fully managed: not supported |
| 4567 | # |
| 4568 | # Cloud Run for Anthos: supported |
| 4569 | # |
| 4570 | # Minimum consecutive failures for the probe to be considered failed after |
| 4571 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 4572 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 4573 | # |
| 4574 | # Cloud Run fully managed: not supported |
| 4575 | # |
| 4576 | # Cloud Run for Anthos: supported |
| 4577 | # |
| 4578 | # One and only one of the following should be specified. |
| 4579 | # Exec specifies the action to take. |
| 4580 | # |
| 4581 | # A field inlined from the Handler message. |
| 4582 | # |
| 4583 | # Cloud Run for Anthos: supported |
| 4584 | # |
| 4585 | # ExecAction describes a "run in container" action. |
| 4586 | "command": "A String", # (Optional) |
| 4587 | # |
| 4588 | # Cloud Run fully managed: not supported |
| 4589 | # |
| 4590 | # Cloud Run for Anthos: supported |
| 4591 | # |
| 4592 | # Command is the command line to execute inside the container, the working |
| 4593 | # directory for the command is root ('/') in the container's filesystem. The |
| 4594 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 4595 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 4596 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 4597 | # live/healthy and non-zero is unhealthy. |
| 4598 | }, |
| 4599 | "initialDelaySeconds": 42, # (Optional) |
| 4600 | # |
| 4601 | # Cloud Run fully managed: not supported |
| 4602 | # |
| 4603 | # Cloud Run for Anthos: supported |
| 4604 | # |
| 4605 | # Number of seconds after the container has started before liveness probes |
| 4606 | # are initiated. More info: |
| 4607 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 4608 | "timeoutSeconds": 42, # (Optional) |
| 4609 | # |
| 4610 | # Cloud Run fully managed: not supported |
| 4611 | # |
| 4612 | # Cloud Run for Anthos: supported |
| 4613 | # |
| 4614 | # Number of seconds after which the probe times out. |
| 4615 | # Defaults to 1 second. Minimum value is 1. |
| 4616 | # More info: |
| 4617 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 4618 | "successThreshold": 42, # (Optional) |
| 4619 | # |
| 4620 | # Cloud Run fully managed: not supported |
| 4621 | # |
| 4622 | # Cloud Run for Anthos: supported |
| 4623 | # |
| 4624 | # Minimum consecutive successes for the probe to be considered successful |
| 4625 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 4626 | # is 1. |
| 4627 | "periodSeconds": 42, # (Optional) |
| 4628 | # |
| 4629 | # Cloud Run fully managed: not supported |
| 4630 | # |
| 4631 | # Cloud Run for Anthos: supported |
| 4632 | # |
| 4633 | # How often (in seconds) to perform the probe. |
| 4634 | # Default to 10 seconds. Minimum value is 1. |
| 4635 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 4636 | # |
| 4637 | # Cloud Run fully managed: not supported |
| 4638 | # |
| 4639 | # Cloud Run for Anthos: supported |
| 4640 | # |
| 4641 | # TCPSocket specifies an action involving a TCP port. |
| 4642 | # TCP hooks not yet supported |
| 4643 | # |
| 4644 | # A field inlined from the Handler message. |
| 4645 | # |
| 4646 | # Cloud Run for Anthos: supported |
| 4647 | # |
| 4648 | # TCPSocketAction describes an action based on opening a socket |
| 4649 | "port": 42, # Cloud Run fully managed: not supported |
| 4650 | # |
| 4651 | # Cloud Run for Anthos: supported |
| 4652 | # |
| 4653 | # Number or name of the port to access on the container. |
| 4654 | # Number must be in the range 1 to 65535. |
| 4655 | # Name must be an IANA_SVC_NAME. |
| 4656 | # |
| 4657 | # This field is currently limited to integer types only because of proto's |
| 4658 | # inability to properly support the IntOrString golang type. |
| 4659 | "host": "A String", # (Optional) |
| 4660 | # |
| 4661 | # Cloud Run fully managed: not supported |
| 4662 | # |
| 4663 | # Cloud Run for Anthos: supported |
| 4664 | # |
| 4665 | # Optional: Host name to connect to, defaults to the pod IP. |
| 4666 | }, |
| 4667 | }, |
| 4668 | "imagePullPolicy": "A String", # (Optional) |
| 4669 | # |
| 4670 | # Cloud Run fully managed: not supported |
| 4671 | # |
| 4672 | # Cloud Run for Anthos: supported |
| 4673 | # |
| 4674 | # Image pull policy. |
| 4675 | # One of Always, Never, IfNotPresent. |
| 4676 | # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. |
| 4677 | # More info: |
| 4678 | # https://kubernetes.io/docs/concepts/containers/images#updating-images |
| 4679 | "terminationMessagePath": "A String", # (Optional) |
| 4680 | # |
| 4681 | # Cloud Run fully managed: not supported |
| 4682 | # |
| 4683 | # Cloud Run for Anthos: supported |
| 4684 | # |
| 4685 | # Path at which the file to which the container's termination |
| 4686 | # message will be written is mounted into the container's filesystem. Message |
| 4687 | # written is intended to be brief final status, such as an assertion failure |
| 4688 | # message. Will be truncated by the node if greater than 4096 bytes. The |
| 4689 | # total message length across all containers will be limited to 12kb. |
| 4690 | # Defaults to /dev/termination-log. |
| 4691 | }, |
| 4692 | ], |
| 4693 | }, |
| 4694 | }, |
| 4695 | }, |
| 4696 | "kind": "A String", # The kind of resource, in this case "Service". |
| 4697 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Metadata associated with this Service, including name, namespace, labels, |
| 4698 | # and annotations. |
| 4699 | # persisted resources must have, which includes all objects users must create. |
| 4700 | "creationTimestamp": "A String", # (Optional) |
| 4701 | # |
| 4702 | # CreationTimestamp is a timestamp representing the server time when this |
| 4703 | # object was created. It is not guaranteed to be set in happens-before order |
| 4704 | # across separate operations. Clients may not set this value. It is |
| 4705 | # represented in RFC3339 form and is in UTC. |
| 4706 | # |
| 4707 | # Populated by the system. |
| 4708 | # Read-only. |
| 4709 | # Null for lists. |
| 4710 | # More info: |
| 4711 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 4712 | "labels": { # (Optional) |
| 4713 | # |
| 4714 | # Map of string keys and values that can be used to organize and categorize |
| 4715 | # (scope and select) objects. May match selectors of replication controllers |
| 4716 | # and routes. |
| 4717 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 4718 | "a_key": "A String", |
| 4719 | }, |
| 4720 | "generation": 42, # (Optional) |
| 4721 | # |
| 4722 | # A sequence number representing a specific generation of the desired state. |
| 4723 | # Populated by the system. Read-only. |
| 4724 | "resourceVersion": "A String", # (Optional) |
| 4725 | # |
| 4726 | # An opaque value that represents the internal version of this object that |
| 4727 | # can be used by clients to determine when objects have changed. May be used |
| 4728 | # for optimistic concurrency, change detection, and the watch operation on a |
| 4729 | # resource or set of resources. Clients must treat these values as opaque and |
| 4730 | # passed unmodified back to the server. They may only be valid for a |
| 4731 | # particular resource or set of resources. |
| 4732 | # |
| 4733 | # Populated by the system. |
| 4734 | # Read-only. |
| 4735 | # Value must be treated as opaque by clients and . |
| 4736 | # More info: |
| 4737 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 4738 | "selfLink": "A String", # (Optional) |
| 4739 | # |
| 4740 | # SelfLink is a URL representing this object. |
| 4741 | # Populated by the system. |
| 4742 | # Read-only. |
| 4743 | # string selfLink = 4; |
| 4744 | "uid": "A String", # (Optional) |
| 4745 | # |
| 4746 | # UID is the unique in time and space value for this object. It is typically |
| 4747 | # generated by the server on successful creation of a resource and is not |
| 4748 | # allowed to change on PUT operations. |
| 4749 | # |
| 4750 | # Populated by the system. |
| 4751 | # Read-only. |
| 4752 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 4753 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 4754 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 4755 | # project ID or project number. |
| 4756 | "annotations": { # (Optional) |
| 4757 | # |
| 4758 | # Annotations is an unstructured key value map stored with a resource that |
| 4759 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 4760 | # are not queryable and should be preserved when modifying objects. More |
| 4761 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 4762 | "a_key": "A String", |
| 4763 | }, |
| 4764 | "generateName": "A String", # (Optional) |
| 4765 | # |
| 4766 | # Cloud Run fully managed: not supported |
| 4767 | # |
| 4768 | # Cloud Run for Anthos: supported |
| 4769 | # |
| 4770 | # GenerateName is an optional prefix, used by the server, to generate a |
| 4771 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 4772 | # used, the name returned to the client will be different than the name |
| 4773 | # passed. This value will also be combined with a unique suffix. The provided |
| 4774 | # value has the same validation rules as the Name field, and may be truncated |
| 4775 | # by the length of the suffix required to make the value unique on the |
| 4776 | # server. |
| 4777 | # |
| 4778 | # If this field is specified and the generated name exists, the server will |
| 4779 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 4780 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 4781 | # time allotted, and the client should retry (optionally after the time |
| 4782 | # indicated in the Retry-After header). |
| 4783 | # |
| 4784 | # Applied only if Name is not specified. |
| 4785 | # More info: |
| 4786 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 4787 | # string generateName = 2; |
| 4788 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 4789 | # Is required when creating |
| 4790 | # resources, although some resources may allow a client to request the |
| 4791 | # generation of an appropriate name automatically. Name is primarily intended |
| 4792 | # for creation idempotence and configuration definition. Cannot be updated. |
| 4793 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 4794 | # +optional |
| 4795 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 4796 | # |
| 4797 | # Cloud Run fully managed: not supported |
| 4798 | # |
| 4799 | # Cloud Run for Anthos: supported |
| 4800 | # |
| 4801 | # Number of seconds allowed for this object to gracefully terminate before |
| 4802 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 4803 | # set. May only be shortened. Read-only. |
| 4804 | "clusterName": "A String", # (Optional) |
| 4805 | # |
| 4806 | # Cloud Run fully managed: not supported |
| 4807 | # |
| 4808 | # Cloud Run for Anthos: supported |
| 4809 | # |
| 4810 | # The name of the cluster which the object belongs to. |
| 4811 | # This is used to distinguish resources with same name and namespace in |
| 4812 | # different clusters. This field is not set anywhere right now and apiserver |
| 4813 | # is going to ignore it if set in create or update request. |
| 4814 | "finalizers": [ # (Optional) |
| 4815 | # |
| 4816 | # Cloud Run fully managed: not supported |
| 4817 | # |
| 4818 | # Cloud Run for Anthos: supported |
| 4819 | # |
| 4820 | # Must be empty before the object is deleted from the registry. Each entry |
| 4821 | # is an identifier for the responsible component that will remove the entry |
| 4822 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 4823 | # in this list can only be removed. |
| 4824 | # +patchStrategy=merge |
| 4825 | "A String", |
| 4826 | ], |
| 4827 | "deletionTimestamp": "A String", # (Optional) |
| 4828 | # |
| 4829 | # Cloud Run fully managed: not supported |
| 4830 | # |
| 4831 | # Cloud Run for Anthos: supported |
| 4832 | # |
| 4833 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 4834 | # deleted. This field is set by the server when a graceful deletion is |
| 4835 | # requested by the user, and is not directly settable by a client. The |
| 4836 | # resource is expected to be deleted (no longer visible from resource lists, |
| 4837 | # and not reachable by name) after the time in this field, once the |
| 4838 | # finalizers list is empty. As long as the finalizers list contains items, |
| 4839 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 4840 | # be unset or be set further into the future, although it may be shortened or |
| 4841 | # the resource may be deleted prior to this time. For example, a user may |
| 4842 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 4843 | # sending a graceful termination signal to the containers in the pod. After |
| 4844 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 4845 | # to the container and after cleanup, remove the pod from the API. In the |
| 4846 | # presence of network partitions, this object may still exist after this |
| 4847 | # timestamp, until an administrator or automated process can determine the |
| 4848 | # resource is fully terminated. |
| 4849 | # If not set, graceful deletion of the object has not been requested. |
| 4850 | # |
| 4851 | # Populated by the system when a graceful deletion is requested. |
| 4852 | # Read-only. |
| 4853 | # More info: |
| 4854 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 4855 | "ownerReferences": [ # (Optional) |
| 4856 | # |
| 4857 | # Cloud Run fully managed: not supported |
| 4858 | # |
| 4859 | # Cloud Run for Anthos: supported |
| 4860 | # |
| 4861 | # List of objects that own this object. If ALL objects in the list have |
| 4862 | # been deleted, this object will be garbage collected. |
| 4863 | { # OwnerReference contains enough information to let you identify an owning |
| 4864 | # object. Currently, an owning object must be in the same namespace, so there |
| 4865 | # is no namespace field. |
| 4866 | "uid": "A String", # UID of the referent. |
| 4867 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 4868 | "controller": True or False, # If true, this reference points to the managing controller. |
| 4869 | # +optional |
| 4870 | "kind": "A String", # Kind of the referent. |
| 4871 | # More info: |
| 4872 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 4873 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 4874 | # the owner cannot be deleted from the key-value store until this |
| 4875 | # reference is removed. |
| 4876 | # Defaults to false. |
| 4877 | # To set this field, a user needs "delete" permission of the owner, |
| 4878 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 4879 | # +optional |
| 4880 | "apiVersion": "A String", # API version of the referent. |
| 4881 | "name": "A String", # Name of the referent. |
| 4882 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 4883 | }, |
| 4884 | ], |
| 4885 | }, |
| 4886 | }</pre> |
| 4887 | </div> |
| 4888 | |
| 4889 | <div class="method"> |
| 4890 | <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code> |
| 4891 | <pre>Get the IAM Access Control policy currently in effect for the given |
| 4892 | Cloud Run service. This result does not include any inherited policies. |
| 4893 | |
| 4894 | Args: |
| 4895 | resource: string, REQUIRED: The resource for which the policy is being requested. |
| 4896 | See the operation documentation for the appropriate value for this field. (required) |
| 4897 | options_requestedPolicyVersion: integer, Optional. The policy format version to be returned. |
| 4898 | |
| 4899 | Valid values are 0, 1, and 3. Requests specifying an invalid value will be |
| 4900 | rejected. |
| 4901 | |
| 4902 | Requests for policies with any conditional bindings must specify version 3. |
| 4903 | Policies without any conditional bindings may specify any valid value or |
| 4904 | leave the field unset. |
| 4905 | |
| 4906 | To learn which resources support conditions in their IAM policies, see the |
| 4907 | [IAM |
| 4908 | documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 4909 | x__xgafv: string, V1 error format. |
| 4910 | Allowed values |
| 4911 | 1 - v1 error format |
| 4912 | 2 - v2 error format |
| 4913 | |
| 4914 | Returns: |
| 4915 | An object of the form: |
| 4916 | |
| 4917 | { # An Identity and Access Management (IAM) policy, which specifies access |
| 4918 | # controls for Google Cloud resources. |
| 4919 | # |
| 4920 | # |
| 4921 | # A `Policy` is a collection of `bindings`. A `binding` binds one or more |
| 4922 | # `members` to a single `role`. Members can be user accounts, service accounts, |
| 4923 | # Google groups, and domains (such as G Suite). A `role` is a named list of |
| 4924 | # permissions; each `role` can be an IAM predefined role or a user-created |
| 4925 | # custom role. |
| 4926 | # |
| 4927 | # For some types of Google Cloud resources, a `binding` can also specify a |
| 4928 | # `condition`, which is a logical expression that allows access to a resource |
| 4929 | # only if the expression evaluates to `true`. A condition can add constraints |
| 4930 | # based on attributes of the request, the resource, or both. To learn which |
| 4931 | # resources support conditions in their IAM policies, see the |
| 4932 | # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 4933 | # |
| 4934 | # **JSON example:** |
| 4935 | # |
| 4936 | # { |
| 4937 | # "bindings": [ |
| 4938 | # { |
| 4939 | # "role": "roles/resourcemanager.organizationAdmin", |
| 4940 | # "members": [ |
| 4941 | # "user:mike@example.com", |
| 4942 | # "group:admins@example.com", |
| 4943 | # "domain:google.com", |
| 4944 | # "serviceAccount:my-project-id@appspot.gserviceaccount.com" |
| 4945 | # ] |
| 4946 | # }, |
| 4947 | # { |
| 4948 | # "role": "roles/resourcemanager.organizationViewer", |
| 4949 | # "members": [ |
| 4950 | # "user:eve@example.com" |
| 4951 | # ], |
| 4952 | # "condition": { |
| 4953 | # "title": "expirable access", |
| 4954 | # "description": "Does not grant access after Sep 2020", |
| 4955 | # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", |
| 4956 | # } |
| 4957 | # } |
| 4958 | # ], |
| 4959 | # "etag": "BwWWja0YfJA=", |
| 4960 | # "version": 3 |
| 4961 | # } |
| 4962 | # |
| 4963 | # **YAML example:** |
| 4964 | # |
| 4965 | # bindings: |
| 4966 | # - members: |
| 4967 | # - user:mike@example.com |
| 4968 | # - group:admins@example.com |
| 4969 | # - domain:google.com |
| 4970 | # - serviceAccount:my-project-id@appspot.gserviceaccount.com |
| 4971 | # role: roles/resourcemanager.organizationAdmin |
| 4972 | # - members: |
| 4973 | # - user:eve@example.com |
| 4974 | # role: roles/resourcemanager.organizationViewer |
| 4975 | # condition: |
| 4976 | # title: expirable access |
| 4977 | # description: Does not grant access after Sep 2020 |
| 4978 | # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') |
| 4979 | # - etag: BwWWja0YfJA= |
| 4980 | # - version: 3 |
| 4981 | # |
| 4982 | # For a description of IAM and its features, see the |
| 4983 | # [IAM documentation](https://cloud.google.com/iam/docs/). |
| 4984 | "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help |
| 4985 | # prevent simultaneous updates of a policy from overwriting each other. |
| 4986 | # It is strongly suggested that systems make use of the `etag` in the |
| 4987 | # read-modify-write cycle to perform policy updates in order to avoid race |
| 4988 | # conditions: An `etag` is returned in the response to `getIamPolicy`, and |
| 4989 | # systems are expected to put that etag in the request to `setIamPolicy` to |
| 4990 | # ensure that their change will be applied to the same version of the policy. |
| 4991 | # |
| 4992 | # **Important:** If you use IAM Conditions, you must include the `etag` field |
| 4993 | # whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 4994 | # you to overwrite a version `3` policy with a version `1` policy, and all of |
| 4995 | # the conditions in the version `3` policy are lost. |
| 4996 | "version": 42, # Specifies the format of the policy. |
| 4997 | # |
| 4998 | # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value |
| 4999 | # are rejected. |
| 5000 | # |
| 5001 | # Any operation that affects conditional role bindings must specify version |
| 5002 | # `3`. This requirement applies to the following operations: |
| 5003 | # |
| 5004 | # * Getting a policy that includes a conditional role binding |
| 5005 | # * Adding a conditional role binding to a policy |
| 5006 | # * Changing a conditional role binding in a policy |
| 5007 | # * Removing any role binding, with or without a condition, from a policy |
| 5008 | # that includes conditions |
| 5009 | # |
| 5010 | # **Important:** If you use IAM Conditions, you must include the `etag` field |
| 5011 | # whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 5012 | # you to overwrite a version `3` policy with a version `1` policy, and all of |
| 5013 | # the conditions in the version `3` policy are lost. |
| 5014 | # |
| 5015 | # If a policy does not include any conditions, operations on that policy may |
| 5016 | # specify any valid version or leave the field unset. |
| 5017 | # |
| 5018 | # To learn which resources support conditions in their IAM policies, see the |
| 5019 | # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 5020 | "auditConfigs": [ # Specifies cloud audit logging configuration for this policy. |
| 5021 | { # Specifies the audit configuration for a service. |
| 5022 | # The configuration determines which permission types are logged, and what |
| 5023 | # identities, if any, are exempted from logging. |
| 5024 | # An AuditConfig must have one or more AuditLogConfigs. |
| 5025 | # |
| 5026 | # If there are AuditConfigs for both `allServices` and a specific service, |
| 5027 | # the union of the two AuditConfigs is used for that service: the log_types |
| 5028 | # specified in each AuditConfig are enabled, and the exempted_members in each |
| 5029 | # AuditLogConfig are exempted. |
| 5030 | # |
| 5031 | # Example Policy with multiple AuditConfigs: |
| 5032 | # |
| 5033 | # { |
| 5034 | # "audit_configs": [ |
| 5035 | # { |
| 5036 | # "service": "allServices" |
| 5037 | # "audit_log_configs": [ |
| 5038 | # { |
| 5039 | # "log_type": "DATA_READ", |
| 5040 | # "exempted_members": [ |
| 5041 | # "user:jose@example.com" |
| 5042 | # ] |
| 5043 | # }, |
| 5044 | # { |
| 5045 | # "log_type": "DATA_WRITE", |
| 5046 | # }, |
| 5047 | # { |
| 5048 | # "log_type": "ADMIN_READ", |
| 5049 | # } |
| 5050 | # ] |
| 5051 | # }, |
| 5052 | # { |
| 5053 | # "service": "sampleservice.googleapis.com" |
| 5054 | # "audit_log_configs": [ |
| 5055 | # { |
| 5056 | # "log_type": "DATA_READ", |
| 5057 | # }, |
| 5058 | # { |
| 5059 | # "log_type": "DATA_WRITE", |
| 5060 | # "exempted_members": [ |
| 5061 | # "user:aliya@example.com" |
| 5062 | # ] |
| 5063 | # } |
| 5064 | # ] |
| 5065 | # } |
| 5066 | # ] |
| 5067 | # } |
| 5068 | # |
| 5069 | # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ |
| 5070 | # logging. It also exempts jose@example.com from DATA_READ logging, and |
| 5071 | # aliya@example.com from DATA_WRITE logging. |
| 5072 | "service": "A String", # Specifies a service that will be enabled for audit logging. |
| 5073 | # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. |
| 5074 | # `allServices` is a special value that covers all services. |
| 5075 | "auditLogConfigs": [ # The configuration for logging of each type of permission. |
| 5076 | { # Provides the configuration for logging a type of permissions. |
| 5077 | # Example: |
| 5078 | # |
| 5079 | # { |
| 5080 | # "audit_log_configs": [ |
| 5081 | # { |
| 5082 | # "log_type": "DATA_READ", |
| 5083 | # "exempted_members": [ |
| 5084 | # "user:jose@example.com" |
| 5085 | # ] |
| 5086 | # }, |
| 5087 | # { |
| 5088 | # "log_type": "DATA_WRITE", |
| 5089 | # } |
| 5090 | # ] |
| 5091 | # } |
| 5092 | # |
| 5093 | # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting |
| 5094 | # jose@example.com from DATA_READ logging. |
| 5095 | "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of |
| 5096 | # permission. |
| 5097 | # Follows the same format of Binding.members. |
| 5098 | "A String", |
| 5099 | ], |
| 5100 | "logType": "A String", # The log type that this config enables. |
| 5101 | }, |
| 5102 | ], |
| 5103 | }, |
| 5104 | ], |
| 5105 | "bindings": [ # Associates a list of `members` to a `role`. Optionally, may specify a |
| 5106 | # `condition` that determines how and when the `bindings` are applied. Each |
| 5107 | # of the `bindings` must contain at least one member. |
| 5108 | { # Associates `members` with a `role`. |
| 5109 | "condition": { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding. |
| 5110 | # |
| 5111 | # If the condition evaluates to `true`, then this binding applies to the |
| 5112 | # current request. |
| 5113 | # |
| 5114 | # If the condition evaluates to `false`, then this binding does not apply to |
| 5115 | # the current request. However, a different role binding might grant the same |
| 5116 | # role to one or more of the members in this binding. |
| 5117 | # |
| 5118 | # To learn which resources support conditions in their IAM policies, see the |
| 5119 | # [IAM |
| 5120 | # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 5121 | # syntax. CEL is a C-like expression language. The syntax and semantics of CEL |
| 5122 | # are documented at https://github.com/google/cel-spec. |
| 5123 | # |
| 5124 | # Example (Comparison): |
| 5125 | # |
| 5126 | # title: "Summary size limit" |
| 5127 | # description: "Determines if a summary is less than 100 chars" |
| 5128 | # expression: "document.summary.size() < 100" |
| 5129 | # |
| 5130 | # Example (Equality): |
| 5131 | # |
| 5132 | # title: "Requestor is owner" |
| 5133 | # description: "Determines if requestor is the document owner" |
| 5134 | # expression: "document.owner == request.auth.claims.email" |
| 5135 | # |
| 5136 | # Example (Logic): |
| 5137 | # |
| 5138 | # title: "Public documents" |
| 5139 | # description: "Determine whether the document should be publicly visible" |
| 5140 | # expression: "document.type != 'private' && document.type != 'internal'" |
| 5141 | # |
| 5142 | # Example (Data Manipulation): |
| 5143 | # |
| 5144 | # title: "Notification string" |
| 5145 | # description: "Create a notification string with a timestamp." |
| 5146 | # expression: "'New message received at ' + string(document.create_time)" |
| 5147 | # |
| 5148 | # The exact variables and functions that may be referenced within an expression |
| 5149 | # are determined by the service that evaluates it. See the service |
| 5150 | # documentation for additional information. |
| 5151 | "expression": "A String", # Textual representation of an expression in Common Expression Language |
| 5152 | # syntax. |
| 5153 | "title": "A String", # Optional. Title for the expression, i.e. a short string describing |
| 5154 | # its purpose. This can be used e.g. in UIs which allow to enter the |
| 5155 | # expression. |
| 5156 | "location": "A String", # Optional. String indicating the location of the expression for error |
| 5157 | # reporting, e.g. a file name and a position in the file. |
| 5158 | "description": "A String", # Optional. Description of the expression. This is a longer text which |
| 5159 | # describes the expression, e.g. when hovered over it in a UI. |
| 5160 | }, |
| 5161 | "members": [ # Specifies the identities requesting access for a Cloud Platform resource. |
| 5162 | # `members` can have the following values: |
| 5163 | # |
| 5164 | # * `allUsers`: A special identifier that represents anyone who is |
| 5165 | # on the internet; with or without a Google account. |
| 5166 | # |
| 5167 | # * `allAuthenticatedUsers`: A special identifier that represents anyone |
| 5168 | # who is authenticated with a Google account or a service account. |
| 5169 | # |
| 5170 | # * `user:{emailid}`: An email address that represents a specific Google |
| 5171 | # account. For example, `alice@example.com` . |
| 5172 | # |
| 5173 | # |
| 5174 | # * `serviceAccount:{emailid}`: An email address that represents a service |
| 5175 | # account. For example, `my-other-app@appspot.gserviceaccount.com`. |
| 5176 | # |
| 5177 | # * `group:{emailid}`: An email address that represents a Google group. |
| 5178 | # For example, `admins@example.com`. |
| 5179 | # |
| 5180 | # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 5181 | # identifier) representing a user that has been recently deleted. For |
| 5182 | # example, `alice@example.com?uid=123456789012345678901`. If the user is |
| 5183 | # recovered, this value reverts to `user:{emailid}` and the recovered user |
| 5184 | # retains the role in the binding. |
| 5185 | # |
| 5186 | # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus |
| 5187 | # unique identifier) representing a service account that has been recently |
| 5188 | # deleted. For example, |
| 5189 | # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. |
| 5190 | # If the service account is undeleted, this value reverts to |
| 5191 | # `serviceAccount:{emailid}` and the undeleted service account retains the |
| 5192 | # role in the binding. |
| 5193 | # |
| 5194 | # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 5195 | # identifier) representing a Google group that has been recently |
| 5196 | # deleted. For example, `admins@example.com?uid=123456789012345678901`. If |
| 5197 | # the group is recovered, this value reverts to `group:{emailid}` and the |
| 5198 | # recovered group retains the role in the binding. |
| 5199 | # |
| 5200 | # |
| 5201 | # * `domain:{domain}`: The G Suite domain (primary) that represents all the |
| 5202 | # users of that domain. For example, `google.com` or `example.com`. |
| 5203 | # |
| 5204 | "A String", |
| 5205 | ], |
| 5206 | "role": "A String", # Role that is assigned to `members`. |
| 5207 | # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
| 5208 | }, |
| 5209 | ], |
| 5210 | }</pre> |
| 5211 | </div> |
| 5212 | |
| 5213 | <div class="method"> |
| 5214 | <code class="details" id="list">list(parent, resourceVersion=None, includeUninitialized=None, fieldSelector=None, continue=None, limit=None, watch=None, labelSelector=None, x__xgafv=None)</code> |
| 5215 | <pre>List services. |
| 5216 | |
| 5217 | Args: |
| 5218 | parent: string, The namespace from which the services should be listed. |
| 5219 | For Cloud Run (fully managed), replace {namespace_id} with the project ID |
| 5220 | or number. (required) |
| 5221 | resourceVersion: string, The baseline resource version from which the list or watch operation should |
| 5222 | start. Not currently used by Cloud Run. |
| 5223 | includeUninitialized: boolean, Not currently used by Cloud Run. |
| 5224 | fieldSelector: string, Allows to filter resources based on a specific value for a field name. |
| 5225 | Send this in a query string format. i.e. 'metadata.name%3Dlorem'. |
| 5226 | Not currently used by Cloud Run. |
| 5227 | continue: string, Optional encoded string to continue paging. |
| 5228 | limit: integer, The maximum number of records that should be returned. |
| 5229 | watch: boolean, Flag that indicates that the client expects to watch this resource as well. |
| 5230 | Not currently used by Cloud Run. |
| 5231 | labelSelector: string, Allows to filter resources based on a label. Supported operations are |
| 5232 | =, !=, exists, in, and notIn. |
| 5233 | x__xgafv: string, V1 error format. |
| 5234 | Allowed values |
| 5235 | 1 - v1 error format |
| 5236 | 2 - v2 error format |
| 5237 | |
| 5238 | Returns: |
| 5239 | An object of the form: |
| 5240 | |
| 5241 | { # A list of Service resources. |
| 5242 | "apiVersion": "A String", # The API version for this call such as "serving.knative.dev/v1". |
| 5243 | "kind": "A String", # The kind of this resource, in this case "ServiceList". |
| 5244 | "unreachable": [ # Locations that could not be reached. |
| 5245 | "A String", |
| 5246 | ], |
| 5247 | "metadata": { # ListMeta describes metadata that synthetic resources must have, including # Metadata associated with this Service list. |
| 5248 | # lists and various status objects. A resource may have only one of |
| 5249 | # {ObjectMeta, ListMeta}. |
| 5250 | "resourceVersion": "A String", # String that identifies the server's internal version of this object that |
| 5251 | # can be used by clients to determine when objects have changed. Value must |
| 5252 | # be treated as opaque by clients and passed unmodified back to the server. |
| 5253 | # Populated by the system. |
| 5254 | # Read-only. |
| 5255 | # More info: |
| 5256 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 5257 | # +optional |
| 5258 | "continue": "A String", # continue may be set if the user set a limit on the number of items |
| 5259 | # returned, and indicates that the server has more data available. The value |
| 5260 | # is opaque and may be used to issue another request to the endpoint that |
| 5261 | # served this list to retrieve the next set of available objects. Continuing |
| 5262 | # a list may not be possible if the server configuration has changed or more |
| 5263 | # than a few minutes have passed. The resourceVersion field returned when |
| 5264 | # using this continue value will be identical to the value in the first |
| 5265 | # response. |
| 5266 | "selfLink": "A String", # SelfLink is a URL representing this object. |
| 5267 | # Populated by the system. |
| 5268 | # Read-only. |
| 5269 | # +optional |
| 5270 | }, |
| 5271 | "items": [ # List of Services. |
| 5272 | { # Service acts as a top-level container that manages a set of Routes and |
| 5273 | # Configurations which implement a network service. Service exists to provide a |
| 5274 | # singular abstraction which can be access controlled, reasoned about, and |
| 5275 | # which encapsulates software lifecycle decisions such as rollout policy and |
| 5276 | # team resource ownership. Service acts only as an orchestrator of the |
| 5277 | # underlying Routes and Configurations (much as a kubernetes Deployment |
| 5278 | # orchestrates ReplicaSets). |
| 5279 | # |
| 5280 | # The Service's controller will track the statuses of its owned Configuration |
| 5281 | # and Route, reflecting their statuses and conditions as its own. |
| 5282 | # |
| 5283 | # See also: |
| 5284 | # https://github.com/knative/serving/blob/master/docs/spec/overview.md#service |
| 5285 | "status": { # The current state of the Service. Output only. # Status communicates the observed state of the Service (from the |
| 5286 | # controller). |
| 5287 | "latestCreatedRevisionName": "A String", # From ConfigurationStatus. |
| 5288 | # LatestCreatedRevisionName is the last revision that was created from this |
| 5289 | # Service's Configuration. It might not be ready yet, for that use |
| 5290 | # LatestReadyRevisionName. |
| 5291 | "conditions": [ # Conditions communicates information about ongoing/complete |
| 5292 | # reconciliation processes that bring the "spec" inline with the observed |
| 5293 | # state of the world. |
| 5294 | # Service-specific conditions include: |
| 5295 | # * "ConfigurationsReady": true when the underlying Configuration is ready. |
| 5296 | # * "RoutesReady": true when the underlying Route is ready. |
| 5297 | # * "Ready": true when both the underlying Route and Configuration are |
| 5298 | # ready. |
| 5299 | { # Condition defines a generic condition for a Resource |
| 5300 | "message": "A String", # Optional. Human readable message indicating details about the current status. |
| 5301 | "lastTransitionTime": "A String", # Optional. Last time the condition transitioned from one status to another. |
| 5302 | "status": "A String", # Status of the condition, one of True, False, Unknown. |
| 5303 | "severity": "A String", # Optional. How to interpret failures of this condition, one of Error, Warning, Info |
| 5304 | "reason": "A String", # Optional. One-word CamelCase reason for the condition's last transition. |
| 5305 | "type": "A String", # type is used to communicate the status of the reconciliation process. |
| 5306 | # See also: |
| 5307 | # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting |
| 5308 | # Types common to all resources include: |
| 5309 | # * "Ready": True when the Resource is ready. |
| 5310 | }, |
| 5311 | ], |
| 5312 | "address": { # Information for connecting over HTTP(s). # From RouteStatus. |
| 5313 | # Similar to url, information on where the service is available on HTTP. |
| 5314 | "url": "A String", |
| 5315 | }, |
| 5316 | "observedGeneration": 42, # ObservedGeneration is the 'Generation' of the Route that |
| 5317 | # was last processed by the controller. |
| 5318 | # |
| 5319 | # Clients polling for completed reconciliation should poll until |
| 5320 | # observedGeneration = metadata.generation and the Ready condition's status |
| 5321 | # is True or False. |
| 5322 | "url": "A String", # From RouteStatus. |
| 5323 | # URL holds the url that will distribute traffic over the provided traffic |
| 5324 | # targets. It generally has the form |
| 5325 | # https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app |
| 5326 | "traffic": [ # From RouteStatus. |
| 5327 | # Traffic holds the configured traffic distribution. |
| 5328 | # These entries will always contain RevisionName references. |
| 5329 | # When ConfigurationName appears in the spec, this will hold the |
| 5330 | # LatestReadyRevisionName that we last observed. |
| 5331 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 5332 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 5333 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 5334 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 5335 | # (e.g. basic auth, url path, etc. |
| 5336 | # |
| 5337 | # Not currently supported in Cloud Run. |
| 5338 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 5339 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 5340 | # of the referenced configuration changes, we will automatically migrate |
| 5341 | # traffic from the prior "latest ready" revision to the new one. This field |
| 5342 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 5343 | # with RevisionName. |
| 5344 | # |
| 5345 | # Cloud Run currently supports a single ConfigurationName. |
| 5346 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 5347 | # This defaults to zero if unspecified. |
| 5348 | # |
| 5349 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 5350 | # TrafficTarget entry. |
| 5351 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 5352 | # traffic. This is mutually exclusive with ConfigurationName. |
| 5353 | # |
| 5354 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 5355 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 5356 | # ready Revision of the Configuration should be used for this traffic |
| 5357 | # target. When provided LatestRevision must be true if RevisionName is |
| 5358 | # empty; it must be false when RevisionName is non-empty. |
| 5359 | # |
| 5360 | # +optional |
| 5361 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 5362 | # this target exclusively. |
| 5363 | # |
| 5364 | # Not currently supported in Cloud Run. |
| 5365 | # +optional |
| 5366 | }, |
| 5367 | ], |
| 5368 | "latestReadyRevisionName": "A String", # From ConfigurationStatus. |
| 5369 | # LatestReadyRevisionName holds the name of the latest Revision stamped out |
| 5370 | # from this Service's Configuration that has had its "Ready" condition become |
| 5371 | # "True". |
| 5372 | }, |
| 5373 | "apiVersion": "A String", # The API version for this call such as "serving.knative.dev/v1". |
| 5374 | "spec": { # ServiceSpec holds the desired state of the Route (from the client), which # Spec holds the desired state of the Service (from the client). |
| 5375 | # is used to manipulate the underlying Route and Configuration(s). |
| 5376 | "traffic": [ # Traffic specifies how to distribute traffic over a collection of Knative |
| 5377 | # Revisions and Configurations. |
| 5378 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 5379 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 5380 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 5381 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 5382 | # (e.g. basic auth, url path, etc. |
| 5383 | # |
| 5384 | # Not currently supported in Cloud Run. |
| 5385 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 5386 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 5387 | # of the referenced configuration changes, we will automatically migrate |
| 5388 | # traffic from the prior "latest ready" revision to the new one. This field |
| 5389 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 5390 | # with RevisionName. |
| 5391 | # |
| 5392 | # Cloud Run currently supports a single ConfigurationName. |
| 5393 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 5394 | # This defaults to zero if unspecified. |
| 5395 | # |
| 5396 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 5397 | # TrafficTarget entry. |
| 5398 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 5399 | # traffic. This is mutually exclusive with ConfigurationName. |
| 5400 | # |
| 5401 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 5402 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 5403 | # ready Revision of the Configuration should be used for this traffic |
| 5404 | # target. When provided LatestRevision must be true if RevisionName is |
| 5405 | # empty; it must be false when RevisionName is non-empty. |
| 5406 | # |
| 5407 | # +optional |
| 5408 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 5409 | # this target exclusively. |
| 5410 | # |
| 5411 | # Not currently supported in Cloud Run. |
| 5412 | # +optional |
| 5413 | }, |
| 5414 | ], |
| 5415 | "template": { # RevisionTemplateSpec describes the data a revision should have when created # Template holds the latest specification for the Revision to |
| 5416 | # be stamped out. |
| 5417 | # from a template. Based on: |
| 5418 | # https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190 |
| 5419 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Optional metadata for this Revision, including labels and annotations. Name |
| 5420 | # will be generated by the Configuration. |
| 5421 | # To set minimum instances for this revision, use the |
| 5422 | # "autoscaling.knative.dev/minScale" annotation key. |
| 5423 | # To set maximum instances for this revision, use the |
| 5424 | # "autoscaling.knative.dev/maxScale" annotation key. |
| 5425 | # To set Cloud SQL connections for the revision, use the |
| 5426 | # "run.googleapis.com/cloudsql-instances" annotation key. |
| 5427 | # persisted resources must have, which includes all objects users must create. |
| 5428 | "creationTimestamp": "A String", # (Optional) |
| 5429 | # |
| 5430 | # CreationTimestamp is a timestamp representing the server time when this |
| 5431 | # object was created. It is not guaranteed to be set in happens-before order |
| 5432 | # across separate operations. Clients may not set this value. It is |
| 5433 | # represented in RFC3339 form and is in UTC. |
| 5434 | # |
| 5435 | # Populated by the system. |
| 5436 | # Read-only. |
| 5437 | # Null for lists. |
| 5438 | # More info: |
| 5439 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 5440 | "labels": { # (Optional) |
| 5441 | # |
| 5442 | # Map of string keys and values that can be used to organize and categorize |
| 5443 | # (scope and select) objects. May match selectors of replication controllers |
| 5444 | # and routes. |
| 5445 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 5446 | "a_key": "A String", |
| 5447 | }, |
| 5448 | "generation": 42, # (Optional) |
| 5449 | # |
| 5450 | # A sequence number representing a specific generation of the desired state. |
| 5451 | # Populated by the system. Read-only. |
| 5452 | "resourceVersion": "A String", # (Optional) |
| 5453 | # |
| 5454 | # An opaque value that represents the internal version of this object that |
| 5455 | # can be used by clients to determine when objects have changed. May be used |
| 5456 | # for optimistic concurrency, change detection, and the watch operation on a |
| 5457 | # resource or set of resources. Clients must treat these values as opaque and |
| 5458 | # passed unmodified back to the server. They may only be valid for a |
| 5459 | # particular resource or set of resources. |
| 5460 | # |
| 5461 | # Populated by the system. |
| 5462 | # Read-only. |
| 5463 | # Value must be treated as opaque by clients and . |
| 5464 | # More info: |
| 5465 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 5466 | "selfLink": "A String", # (Optional) |
| 5467 | # |
| 5468 | # SelfLink is a URL representing this object. |
| 5469 | # Populated by the system. |
| 5470 | # Read-only. |
| 5471 | # string selfLink = 4; |
| 5472 | "uid": "A String", # (Optional) |
| 5473 | # |
| 5474 | # UID is the unique in time and space value for this object. It is typically |
| 5475 | # generated by the server on successful creation of a resource and is not |
| 5476 | # allowed to change on PUT operations. |
| 5477 | # |
| 5478 | # Populated by the system. |
| 5479 | # Read-only. |
| 5480 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 5481 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 5482 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 5483 | # project ID or project number. |
| 5484 | "annotations": { # (Optional) |
| 5485 | # |
| 5486 | # Annotations is an unstructured key value map stored with a resource that |
| 5487 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 5488 | # are not queryable and should be preserved when modifying objects. More |
| 5489 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 5490 | "a_key": "A String", |
| 5491 | }, |
| 5492 | "generateName": "A String", # (Optional) |
| 5493 | # |
| 5494 | # Cloud Run fully managed: not supported |
| 5495 | # |
| 5496 | # Cloud Run for Anthos: supported |
| 5497 | # |
| 5498 | # GenerateName is an optional prefix, used by the server, to generate a |
| 5499 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 5500 | # used, the name returned to the client will be different than the name |
| 5501 | # passed. This value will also be combined with a unique suffix. The provided |
| 5502 | # value has the same validation rules as the Name field, and may be truncated |
| 5503 | # by the length of the suffix required to make the value unique on the |
| 5504 | # server. |
| 5505 | # |
| 5506 | # If this field is specified and the generated name exists, the server will |
| 5507 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 5508 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 5509 | # time allotted, and the client should retry (optionally after the time |
| 5510 | # indicated in the Retry-After header). |
| 5511 | # |
| 5512 | # Applied only if Name is not specified. |
| 5513 | # More info: |
| 5514 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 5515 | # string generateName = 2; |
| 5516 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 5517 | # Is required when creating |
| 5518 | # resources, although some resources may allow a client to request the |
| 5519 | # generation of an appropriate name automatically. Name is primarily intended |
| 5520 | # for creation idempotence and configuration definition. Cannot be updated. |
| 5521 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 5522 | # +optional |
| 5523 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 5524 | # |
| 5525 | # Cloud Run fully managed: not supported |
| 5526 | # |
| 5527 | # Cloud Run for Anthos: supported |
| 5528 | # |
| 5529 | # Number of seconds allowed for this object to gracefully terminate before |
| 5530 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 5531 | # set. May only be shortened. Read-only. |
| 5532 | "clusterName": "A String", # (Optional) |
| 5533 | # |
| 5534 | # Cloud Run fully managed: not supported |
| 5535 | # |
| 5536 | # Cloud Run for Anthos: supported |
| 5537 | # |
| 5538 | # The name of the cluster which the object belongs to. |
| 5539 | # This is used to distinguish resources with same name and namespace in |
| 5540 | # different clusters. This field is not set anywhere right now and apiserver |
| 5541 | # is going to ignore it if set in create or update request. |
| 5542 | "finalizers": [ # (Optional) |
| 5543 | # |
| 5544 | # Cloud Run fully managed: not supported |
| 5545 | # |
| 5546 | # Cloud Run for Anthos: supported |
| 5547 | # |
| 5548 | # Must be empty before the object is deleted from the registry. Each entry |
| 5549 | # is an identifier for the responsible component that will remove the entry |
| 5550 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 5551 | # in this list can only be removed. |
| 5552 | # +patchStrategy=merge |
| 5553 | "A String", |
| 5554 | ], |
| 5555 | "deletionTimestamp": "A String", # (Optional) |
| 5556 | # |
| 5557 | # Cloud Run fully managed: not supported |
| 5558 | # |
| 5559 | # Cloud Run for Anthos: supported |
| 5560 | # |
| 5561 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 5562 | # deleted. This field is set by the server when a graceful deletion is |
| 5563 | # requested by the user, and is not directly settable by a client. The |
| 5564 | # resource is expected to be deleted (no longer visible from resource lists, |
| 5565 | # and not reachable by name) after the time in this field, once the |
| 5566 | # finalizers list is empty. As long as the finalizers list contains items, |
| 5567 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 5568 | # be unset or be set further into the future, although it may be shortened or |
| 5569 | # the resource may be deleted prior to this time. For example, a user may |
| 5570 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 5571 | # sending a graceful termination signal to the containers in the pod. After |
| 5572 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 5573 | # to the container and after cleanup, remove the pod from the API. In the |
| 5574 | # presence of network partitions, this object may still exist after this |
| 5575 | # timestamp, until an administrator or automated process can determine the |
| 5576 | # resource is fully terminated. |
| 5577 | # If not set, graceful deletion of the object has not been requested. |
| 5578 | # |
| 5579 | # Populated by the system when a graceful deletion is requested. |
| 5580 | # Read-only. |
| 5581 | # More info: |
| 5582 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 5583 | "ownerReferences": [ # (Optional) |
| 5584 | # |
| 5585 | # Cloud Run fully managed: not supported |
| 5586 | # |
| 5587 | # Cloud Run for Anthos: supported |
| 5588 | # |
| 5589 | # List of objects that own this object. If ALL objects in the list have |
| 5590 | # been deleted, this object will be garbage collected. |
| 5591 | { # OwnerReference contains enough information to let you identify an owning |
| 5592 | # object. Currently, an owning object must be in the same namespace, so there |
| 5593 | # is no namespace field. |
| 5594 | "uid": "A String", # UID of the referent. |
| 5595 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 5596 | "controller": True or False, # If true, this reference points to the managing controller. |
| 5597 | # +optional |
| 5598 | "kind": "A String", # Kind of the referent. |
| 5599 | # More info: |
| 5600 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 5601 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 5602 | # the owner cannot be deleted from the key-value store until this |
| 5603 | # reference is removed. |
| 5604 | # Defaults to false. |
| 5605 | # To set this field, a user needs "delete" permission of the owner, |
| 5606 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 5607 | # +optional |
| 5608 | "apiVersion": "A String", # API version of the referent. |
| 5609 | "name": "A String", # Name of the referent. |
| 5610 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 5611 | }, |
| 5612 | ], |
| 5613 | }, |
| 5614 | "spec": { # RevisionSpec holds the desired state of the Revision (from the client). # RevisionSpec holds the desired state of the Revision (from the client). |
| 5615 | "volumes": [ |
| 5616 | { # Cloud Run fully managed: not supported |
| 5617 | # |
| 5618 | # Cloud Run for Anthos: supported |
| 5619 | # |
| 5620 | # Volume represents a named volume in a container. |
| 5621 | "configMap": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 5622 | # |
| 5623 | # Cloud Run for Anthos: supported |
| 5624 | # |
| 5625 | # Cloud Run for Anthos: supported |
| 5626 | # |
| 5627 | # Adapts a ConfigMap into a volume. |
| 5628 | # The contents of the target ConfigMap's Data field will be presented in a |
| 5629 | # volume as files using the keys in the Data field as the file names, unless |
| 5630 | # the items element is populated with specific mappings of keys to paths. |
| 5631 | "optional": True or False, # (Optional) |
| 5632 | # |
| 5633 | # Cloud Run fully managed: not supported |
| 5634 | # |
| 5635 | # Cloud Run for Anthos: supported |
| 5636 | # |
| 5637 | # Specify whether the Secret or its keys must be defined. |
| 5638 | "name": "A String", # Cloud Run fully managed: not supported |
| 5639 | # |
| 5640 | # Cloud Run for Anthos: supported |
| 5641 | # |
| 5642 | # Name of the config. |
| 5643 | "defaultMode": 42, # (Optional) |
| 5644 | # |
| 5645 | # Cloud Run fully managed: not supported |
| 5646 | # |
| 5647 | # Cloud Run for Anthos: supported |
| 5648 | # |
| 5649 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 5650 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 5651 | # this setting. This might be in conflict with other options that affect the |
| 5652 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 5653 | "items": [ # (Optional) |
| 5654 | # |
| 5655 | # Cloud Run fully managed: not supported |
| 5656 | # |
| 5657 | # Cloud Run for Anthos: supported |
| 5658 | # |
| 5659 | # If unspecified, each key-value pair in the Data field of the referenced |
| 5660 | # Secret will be projected into the volume as a file whose name is the |
| 5661 | # key and content is the value. If specified, the listed keys will be |
| 5662 | # projected into the specified paths, and unlisted keys will not be |
| 5663 | # present. If a key is specified which is not present in the Secret, |
| 5664 | # the volume setup will error unless it is marked optional. |
| 5665 | { # Cloud Run fully managed: not supported |
| 5666 | # |
| 5667 | # Cloud Run for Anthos: supported |
| 5668 | # |
| 5669 | # Maps a string key to a path within a volume. |
| 5670 | "key": "A String", # Cloud Run fully managed: not supported |
| 5671 | # |
| 5672 | # Cloud Run for Anthos: supported |
| 5673 | # |
| 5674 | # The key to project. |
| 5675 | "path": "A String", # Cloud Run fully managed: not supported |
| 5676 | # |
| 5677 | # Cloud Run for Anthos: supported |
| 5678 | # |
| 5679 | # The relative path of the file to map the key to. |
| 5680 | # May not be an absolute path. |
| 5681 | # May not contain the path element '..'. |
| 5682 | # May not start with the string '..'. |
| 5683 | "mode": 42, # (Optional) |
| 5684 | # |
| 5685 | # Cloud Run fully managed: not supported |
| 5686 | # |
| 5687 | # Cloud Run for Anthos: supported |
| 5688 | # |
| 5689 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 5690 | # specified, the volume defaultMode will be used. This might be in conflict |
| 5691 | # with other options that affect the file mode, like fsGroup, and the result |
| 5692 | # can be other mode bits set. |
| 5693 | }, |
| 5694 | ], |
| 5695 | }, |
| 5696 | "name": "A String", # Cloud Run fully managed: not supported |
| 5697 | # |
| 5698 | # Cloud Run for Anthos: supported |
| 5699 | # |
| 5700 | # Volume's name. |
| 5701 | "secret": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 5702 | # |
| 5703 | # Cloud Run for Anthos: supported |
| 5704 | # |
| 5705 | # Cloud Run for Anthos: supported |
| 5706 | # |
| 5707 | # The contents of the target Secret's Data field will be presented in a volume |
| 5708 | # as files using the keys in the Data field as the file names. |
| 5709 | "optional": True or False, # (Optional) |
| 5710 | # |
| 5711 | # Cloud Run fully managed: not supported |
| 5712 | # |
| 5713 | # Cloud Run for Anthos: supported |
| 5714 | # |
| 5715 | # Specify whether the Secret or its keys must be defined. |
| 5716 | "defaultMode": 42, # (Optional) |
| 5717 | # |
| 5718 | # Cloud Run fully managed: not supported |
| 5719 | # |
| 5720 | # Cloud Run for Anthos: supported |
| 5721 | # |
| 5722 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 5723 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 5724 | # this setting. This might be in conflict with other options that affect the |
| 5725 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 5726 | "secretName": "A String", # Cloud Run fully managed: not supported |
| 5727 | # |
| 5728 | # Cloud Run for Anthos: supported |
| 5729 | # |
| 5730 | # Name of the secret in the container's namespace to use. |
| 5731 | "items": [ # (Optional) |
| 5732 | # |
| 5733 | # Cloud Run fully managed: not supported |
| 5734 | # |
| 5735 | # Cloud Run for Anthos: supported |
| 5736 | # |
| 5737 | # If unspecified, each key-value pair in the Data field of the referenced |
| 5738 | # Secret will be projected into the volume as a file whose name is the |
| 5739 | # key and content is the value. If specified, the listed keys will be |
| 5740 | # projected into the specified paths, and unlisted keys will not be |
| 5741 | # present. If a key is specified which is not present in the Secret, |
| 5742 | # the volume setup will error unless it is marked optional. |
| 5743 | { # Cloud Run fully managed: not supported |
| 5744 | # |
| 5745 | # Cloud Run for Anthos: supported |
| 5746 | # |
| 5747 | # Maps a string key to a path within a volume. |
| 5748 | "key": "A String", # Cloud Run fully managed: not supported |
| 5749 | # |
| 5750 | # Cloud Run for Anthos: supported |
| 5751 | # |
| 5752 | # The key to project. |
| 5753 | "path": "A String", # Cloud Run fully managed: not supported |
| 5754 | # |
| 5755 | # Cloud Run for Anthos: supported |
| 5756 | # |
| 5757 | # The relative path of the file to map the key to. |
| 5758 | # May not be an absolute path. |
| 5759 | # May not contain the path element '..'. |
| 5760 | # May not start with the string '..'. |
| 5761 | "mode": 42, # (Optional) |
| 5762 | # |
| 5763 | # Cloud Run fully managed: not supported |
| 5764 | # |
| 5765 | # Cloud Run for Anthos: supported |
| 5766 | # |
| 5767 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 5768 | # specified, the volume defaultMode will be used. This might be in conflict |
| 5769 | # with other options that affect the file mode, like fsGroup, and the result |
| 5770 | # can be other mode bits set. |
| 5771 | }, |
| 5772 | ], |
| 5773 | }, |
| 5774 | }, |
| 5775 | ], |
| 5776 | "containerConcurrency": 42, # (Optional) |
| 5777 | # |
| 5778 | # ContainerConcurrency specifies the maximum allowed in-flight (concurrent) |
| 5779 | # requests per container instance of the Revision. |
| 5780 | # |
| 5781 | # Cloud Run fully managed: supported, defaults to 80 |
| 5782 | # |
| 5783 | # Cloud Run for Anthos: supported, defaults to 0, which means concurrency |
| 5784 | # to the application is not limited, and the system decides the |
| 5785 | # target concurrency for the autoscaler. |
| 5786 | "timeoutSeconds": 42, # TimeoutSeconds holds the max duration the instance is allowed for |
| 5787 | # responding to a request. |
| 5788 | # Not currently used by Cloud Run. |
| 5789 | "serviceAccountName": "A String", # Email address of the IAM service account associated with the revision |
| 5790 | # of the service. The service account represents the identity of the |
| 5791 | # running revision, and determines what permissions the revision has. If |
| 5792 | # not provided, the revision will use the project's default service account. |
| 5793 | "containers": [ # Containers holds the single container that defines the unit of execution |
| 5794 | # for this Revision. In the context of a Revision, we disallow a number of |
| 5795 | # fields on this Container, including: name and lifecycle. |
| 5796 | # In Cloud Run, only a single container may be provided. |
| 5797 | # The runtime contract is documented here: |
| 5798 | # https://github.com/knative/serving/blob/master/docs/runtime-contract.md |
| 5799 | { # A single application container. |
| 5800 | # This specifies both the container to run, the command to run in the container |
| 5801 | # and the arguments to supply to it. |
| 5802 | # Note that additional arguments may be supplied by the system to the container |
| 5803 | # at runtime. |
| 5804 | "volumeMounts": [ # (Optional) |
| 5805 | # |
| 5806 | # Cloud Run fully managed: not supported |
| 5807 | # |
| 5808 | # Cloud Run for Anthos: supported |
| 5809 | # |
| 5810 | # Pod volumes to mount into the container's filesystem. |
| 5811 | { # Cloud Run fully managed: not supported |
| 5812 | # |
| 5813 | # Cloud Run for Anthos: supported |
| 5814 | # |
| 5815 | # VolumeMount describes a mounting of a Volume within a container. |
| 5816 | "name": "A String", # Cloud Run fully managed: not supported |
| 5817 | # |
| 5818 | # Cloud Run for Anthos: supported |
| 5819 | # |
| 5820 | # This must match the Name of a Volume. |
| 5821 | "readOnly": True or False, # (Optional) |
| 5822 | # |
| 5823 | # Cloud Run fully managed: not supported |
| 5824 | # |
| 5825 | # Cloud Run for Anthos: supported |
| 5826 | # |
| 5827 | # Only true is accepted. |
| 5828 | # Defaults to true. |
| 5829 | "mountPath": "A String", # Cloud Run fully managed: not supported |
| 5830 | # |
| 5831 | # Cloud Run for Anthos: supported |
| 5832 | # |
| 5833 | # Path within the container at which the volume should be mounted. Must |
| 5834 | # not contain ':'. |
| 5835 | "subPath": "A String", # (Optional) |
| 5836 | # |
| 5837 | # Cloud Run fully managed: not supported |
| 5838 | # |
| 5839 | # Cloud Run for Anthos: supported |
| 5840 | # |
| 5841 | # Path within the volume from which the container's volume should be mounted. |
| 5842 | # Defaults to "" (volume's root). |
| 5843 | }, |
| 5844 | ], |
| 5845 | "args": [ # (Optional) |
| 5846 | # |
| 5847 | # Cloud Run fully managed: supported |
| 5848 | # |
| 5849 | # Cloud Run for Anthos: supported |
| 5850 | # |
| 5851 | # Arguments to the entrypoint. |
| 5852 | # The docker image's CMD is used if this is not provided. |
| 5853 | # Variable references $(VAR_NAME) are expanded using the container's |
| 5854 | # environment. If a variable cannot be resolved, the reference in the input |
| 5855 | # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a |
| 5856 | # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, |
| 5857 | # regardless of whether the variable exists or not. |
| 5858 | # More info: |
| 5859 | # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell |
| 5860 | "A String", |
| 5861 | ], |
| 5862 | "workingDir": "A String", # (Optional) |
| 5863 | # |
| 5864 | # Cloud Run fully managed: not supported |
| 5865 | # |
| 5866 | # Cloud Run for Anthos: supported |
| 5867 | # |
| 5868 | # Container's working directory. |
| 5869 | # If not specified, the container runtime's default will be used, which |
| 5870 | # might be configured in the container image. |
| 5871 | "ports": [ # (Optional) |
| 5872 | # |
| 5873 | # List of ports to expose from the container. Only a single port can be |
| 5874 | # specified. The specified ports must be listening on all interfaces |
| 5875 | # (0.0.0.0) within the container to be accessible. |
| 5876 | # |
| 5877 | # If omitted, a port number will be chosen and passed to the container |
| 5878 | # through the PORT environment variable for the container to listen on. |
| 5879 | { # ContainerPort represents a network port in a single container. |
| 5880 | "containerPort": 42, # (Optional) |
| 5881 | # |
| 5882 | # Port number the container listens on. |
| 5883 | # This must be a valid port number, 0 < x < 65536. |
| 5884 | "protocol": "A String", # (Optional) |
| 5885 | # |
| 5886 | # Cloud Run fully managed: not supported |
| 5887 | # |
| 5888 | # Cloud Run for Anthos: supported |
| 5889 | # |
| 5890 | # Protocol for port. Must be "TCP". |
| 5891 | # Defaults to "TCP". |
| 5892 | "name": "A String", # (Optional) |
| 5893 | # |
| 5894 | # Cloud Run fully managed: not supported |
| 5895 | # |
| 5896 | # Cloud Run for Anthos: supported |
| 5897 | # |
| 5898 | # If specified, used to specify which protocol to use. |
| 5899 | # Allowed values are "http1" and "h2c". |
| 5900 | }, |
| 5901 | ], |
| 5902 | "image": "A String", # Cloud Run fully managed: only supports containers from Google Container |
| 5903 | # Registry |
| 5904 | # |
| 5905 | # Cloud Run for Anthos: supported |
| 5906 | # |
| 5907 | # URL of the Container image. |
| 5908 | # More info: https://kubernetes.io/docs/concepts/containers/images |
| 5909 | "envFrom": [ # (Optional) |
| 5910 | # |
| 5911 | # Cloud Run fully managed: not supported |
| 5912 | # |
| 5913 | # Cloud Run for Anthos: supported |
| 5914 | # |
| 5915 | # List of sources to populate environment variables in the container. |
| 5916 | # The keys defined within a source must be a C_IDENTIFIER. All invalid keys |
| 5917 | # will be reported as an event when the container is starting. When a key |
| 5918 | # exists in multiple sources, the value associated with the last source will |
| 5919 | # take precedence. Values defined by an Env with a duplicate key will take |
| 5920 | # precedence. Cannot be updated. |
| 5921 | { # Cloud Run fully managed: not supported |
| 5922 | # |
| 5923 | # Cloud Run for Anthos: supported |
| 5924 | # |
| 5925 | # EnvFromSource represents the source of a set of ConfigMaps |
| 5926 | "prefix": "A String", # (Optional) |
| 5927 | # |
| 5928 | # Cloud Run fully managed: not supported |
| 5929 | # |
| 5930 | # Cloud Run for Anthos: supported |
| 5931 | # |
| 5932 | # An optional identifier to prepend to each key in the ConfigMap. Must be a |
| 5933 | # C_IDENTIFIER. |
| 5934 | "configMapRef": { # Cloud Run fully managed: not supported # (Optional) |
| 5935 | # |
| 5936 | # Cloud Run fully managed: not supported |
| 5937 | # |
| 5938 | # Cloud Run for Anthos: supported |
| 5939 | # |
| 5940 | # The ConfigMap to select from |
| 5941 | # |
| 5942 | # Cloud Run for Anthos: supported |
| 5943 | # |
| 5944 | # ConfigMapEnvSource selects a ConfigMap to populate the environment |
| 5945 | # variables with. |
| 5946 | # |
| 5947 | # The contents of the target ConfigMap's Data field will represent the |
| 5948 | # key-value pairs as environment variables. |
| 5949 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 5950 | # directly into the message. Use the "name" field instead. |
| 5951 | # |
| 5952 | # Cloud Run for Anthos: supported |
| 5953 | # |
| 5954 | # LocalObjectReference contains enough information to let you locate the |
| 5955 | # referenced object inside the same namespace. |
| 5956 | "name": "A String", # (Optional) |
| 5957 | # |
| 5958 | # Cloud Run fully managed: not supported |
| 5959 | # |
| 5960 | # Cloud Run for Anthos: supported |
| 5961 | # |
| 5962 | # Name of the referent. |
| 5963 | # More info: |
| 5964 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 5965 | }, |
| 5966 | "optional": True or False, # (Optional) |
| 5967 | # |
| 5968 | # Cloud Run fully managed: not supported |
| 5969 | # |
| 5970 | # Cloud Run for Anthos: supported |
| 5971 | # |
| 5972 | # Specify whether the ConfigMap must be defined |
| 5973 | "name": "A String", # Cloud Run fully managed: not supported |
| 5974 | # |
| 5975 | # Cloud Run for Anthos: supported |
| 5976 | # |
| 5977 | # The ConfigMap to select from. |
| 5978 | }, |
| 5979 | "secretRef": { # Cloud Run fully managed: not supported # (Optional) |
| 5980 | # |
| 5981 | # Cloud Run fully managed: not supported |
| 5982 | # |
| 5983 | # Cloud Run for Anthos: supported |
| 5984 | # |
| 5985 | # The Secret to select from |
| 5986 | # |
| 5987 | # Cloud Run for Anthos: supported |
| 5988 | # |
| 5989 | # SecretEnvSource selects a Secret to populate the environment |
| 5990 | # variables with. |
| 5991 | # |
| 5992 | # The contents of the target Secret's Data field will represent the |
| 5993 | # key-value pairs as environment variables. |
| 5994 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 5995 | # directly into the message. Use the "name" field instead. |
| 5996 | # |
| 5997 | # Cloud Run for Anthos: supported |
| 5998 | # |
| 5999 | # LocalObjectReference contains enough information to let you locate the |
| 6000 | # referenced object inside the same namespace. |
| 6001 | "name": "A String", # (Optional) |
| 6002 | # |
| 6003 | # Cloud Run fully managed: not supported |
| 6004 | # |
| 6005 | # Cloud Run for Anthos: supported |
| 6006 | # |
| 6007 | # Name of the referent. |
| 6008 | # More info: |
| 6009 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 6010 | }, |
| 6011 | "optional": True or False, # (Optional) |
| 6012 | # |
| 6013 | # Cloud Run fully managed: not supported |
| 6014 | # |
| 6015 | # Cloud Run for Anthos: supported |
| 6016 | # |
| 6017 | # Specify whether the Secret must be defined |
| 6018 | "name": "A String", # Cloud Run fully managed: not supported |
| 6019 | # |
| 6020 | # Cloud Run for Anthos: supported |
| 6021 | # |
| 6022 | # The Secret to select from. |
| 6023 | }, |
| 6024 | }, |
| 6025 | ], |
| 6026 | "name": "A String", # (Optional) |
| 6027 | # |
| 6028 | # Name of the container specified as a DNS_LABEL. |
| 6029 | "command": [ |
| 6030 | "A String", |
| 6031 | ], |
| 6032 | "terminationMessagePolicy": "A String", # (Optional) |
| 6033 | # |
| 6034 | # Cloud Run fully managed: not supported |
| 6035 | # |
| 6036 | # Cloud Run for Anthos: supported |
| 6037 | # |
| 6038 | # Indicate how the termination message should be populated. File will use the |
| 6039 | # contents of terminationMessagePath to populate the container status message |
| 6040 | # on both success and failure. FallbackToLogsOnError will use the last chunk |
| 6041 | # of container log output if the termination message file is empty and the |
| 6042 | # container exited with an error. The log output is limited to 2048 bytes or |
| 6043 | # 80 lines, whichever is smaller. Defaults to File. Cannot be updated. |
| 6044 | "securityContext": { # Cloud Run fully managed: not supported # (Optional) |
| 6045 | # |
| 6046 | # Cloud Run fully managed: not supported |
| 6047 | # |
| 6048 | # Cloud Run for Anthos: supported |
| 6049 | # |
| 6050 | # Security options the pod should run with. |
| 6051 | # More info: https://kubernetes.io/docs/concepts/policy/security-context/ |
| 6052 | # More info: |
| 6053 | # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| 6054 | # |
| 6055 | # Cloud Run for Anthos: supported |
| 6056 | # |
| 6057 | # SecurityContext holds security configuration that will be applied to a |
| 6058 | # container. Some fields are present in both SecurityContext and |
| 6059 | # PodSecurityContext. When both are set, the values in SecurityContext take |
| 6060 | # precedence. |
| 6061 | "runAsUser": 42, # (Optional) |
| 6062 | # |
| 6063 | # Cloud Run fully managed: not supported |
| 6064 | # |
| 6065 | # Cloud Run for Anthos: supported |
| 6066 | # |
| 6067 | # The UID to run the entrypoint of the container process. |
| 6068 | # Defaults to user specified in image metadata if unspecified. |
| 6069 | # May also be set in PodSecurityContext. If set in both SecurityContext and |
| 6070 | # PodSecurityContext, the value specified in SecurityContext takes |
| 6071 | # precedence. |
| 6072 | }, |
| 6073 | "livenessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 6074 | # |
| 6075 | # Cloud Run fully managed: not supported |
| 6076 | # |
| 6077 | # Cloud Run for Anthos: supported |
| 6078 | # |
| 6079 | # Periodic probe of container liveness. |
| 6080 | # Container will be restarted if the probe fails. |
| 6081 | # More info: |
| 6082 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 6083 | # |
| 6084 | # Cloud Run for Anthos: supported |
| 6085 | # |
| 6086 | # Probe describes a health check to be performed against a container to |
| 6087 | # determine whether it is alive or ready to receive traffic. |
| 6088 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 6089 | # |
| 6090 | # Cloud Run fully managed: not supported |
| 6091 | # |
| 6092 | # Cloud Run for Anthos: supported |
| 6093 | # |
| 6094 | # HTTPGet specifies the http request to perform. |
| 6095 | # |
| 6096 | # A field inlined from the Handler message. |
| 6097 | # |
| 6098 | # Cloud Run for Anthos: supported |
| 6099 | # |
| 6100 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 6101 | "httpHeaders": [ # (Optional) |
| 6102 | # |
| 6103 | # Cloud Run fully managed: not supported |
| 6104 | # |
| 6105 | # Cloud Run for Anthos: supported |
| 6106 | # |
| 6107 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 6108 | { # Cloud Run fully managed: not supported |
| 6109 | # |
| 6110 | # Cloud Run for Anthos: supported |
| 6111 | # |
| 6112 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 6113 | "name": "A String", # Cloud Run fully managed: not supported |
| 6114 | # |
| 6115 | # Cloud Run for Anthos: supported |
| 6116 | # |
| 6117 | # The header field name |
| 6118 | "value": "A String", # Cloud Run fully managed: not supported |
| 6119 | # |
| 6120 | # Cloud Run for Anthos: supported |
| 6121 | # |
| 6122 | # The header field value |
| 6123 | }, |
| 6124 | ], |
| 6125 | "path": "A String", # (Optional) |
| 6126 | # |
| 6127 | # Cloud Run fully managed: not supported |
| 6128 | # |
| 6129 | # Cloud Run for Anthos: supported |
| 6130 | # |
| 6131 | # Path to access on the HTTP server. |
| 6132 | "host": "A String", # (Optional) |
| 6133 | # |
| 6134 | # Cloud Run fully managed: not supported |
| 6135 | # |
| 6136 | # Cloud Run for Anthos: supported |
| 6137 | # |
| 6138 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 6139 | # "Host" in httpHeaders instead. |
| 6140 | "scheme": "A String", # (Optional) |
| 6141 | # |
| 6142 | # Cloud Run fully managed: not supported |
| 6143 | # |
| 6144 | # Cloud Run for Anthos: supported |
| 6145 | # |
| 6146 | # Scheme to use for connecting to the host. |
| 6147 | # Defaults to HTTP. |
| 6148 | }, |
| 6149 | "failureThreshold": 42, # (Optional) |
| 6150 | # |
| 6151 | # Cloud Run fully managed: not supported |
| 6152 | # |
| 6153 | # Cloud Run for Anthos: supported |
| 6154 | # |
| 6155 | # Minimum consecutive failures for the probe to be considered failed after |
| 6156 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 6157 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 6158 | # |
| 6159 | # Cloud Run fully managed: not supported |
| 6160 | # |
| 6161 | # Cloud Run for Anthos: supported |
| 6162 | # |
| 6163 | # One and only one of the following should be specified. |
| 6164 | # Exec specifies the action to take. |
| 6165 | # |
| 6166 | # A field inlined from the Handler message. |
| 6167 | # |
| 6168 | # Cloud Run for Anthos: supported |
| 6169 | # |
| 6170 | # ExecAction describes a "run in container" action. |
| 6171 | "command": "A String", # (Optional) |
| 6172 | # |
| 6173 | # Cloud Run fully managed: not supported |
| 6174 | # |
| 6175 | # Cloud Run for Anthos: supported |
| 6176 | # |
| 6177 | # Command is the command line to execute inside the container, the working |
| 6178 | # directory for the command is root ('/') in the container's filesystem. The |
| 6179 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 6180 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 6181 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 6182 | # live/healthy and non-zero is unhealthy. |
| 6183 | }, |
| 6184 | "initialDelaySeconds": 42, # (Optional) |
| 6185 | # |
| 6186 | # Cloud Run fully managed: not supported |
| 6187 | # |
| 6188 | # Cloud Run for Anthos: supported |
| 6189 | # |
| 6190 | # Number of seconds after the container has started before liveness probes |
| 6191 | # are initiated. More info: |
| 6192 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 6193 | "timeoutSeconds": 42, # (Optional) |
| 6194 | # |
| 6195 | # Cloud Run fully managed: not supported |
| 6196 | # |
| 6197 | # Cloud Run for Anthos: supported |
| 6198 | # |
| 6199 | # Number of seconds after which the probe times out. |
| 6200 | # Defaults to 1 second. Minimum value is 1. |
| 6201 | # More info: |
| 6202 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 6203 | "successThreshold": 42, # (Optional) |
| 6204 | # |
| 6205 | # Cloud Run fully managed: not supported |
| 6206 | # |
| 6207 | # Cloud Run for Anthos: supported |
| 6208 | # |
| 6209 | # Minimum consecutive successes for the probe to be considered successful |
| 6210 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 6211 | # is 1. |
| 6212 | "periodSeconds": 42, # (Optional) |
| 6213 | # |
| 6214 | # Cloud Run fully managed: not supported |
| 6215 | # |
| 6216 | # Cloud Run for Anthos: supported |
| 6217 | # |
| 6218 | # How often (in seconds) to perform the probe. |
| 6219 | # Default to 10 seconds. Minimum value is 1. |
| 6220 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 6221 | # |
| 6222 | # Cloud Run fully managed: not supported |
| 6223 | # |
| 6224 | # Cloud Run for Anthos: supported |
| 6225 | # |
| 6226 | # TCPSocket specifies an action involving a TCP port. |
| 6227 | # TCP hooks not yet supported |
| 6228 | # |
| 6229 | # A field inlined from the Handler message. |
| 6230 | # |
| 6231 | # Cloud Run for Anthos: supported |
| 6232 | # |
| 6233 | # TCPSocketAction describes an action based on opening a socket |
| 6234 | "port": 42, # Cloud Run fully managed: not supported |
| 6235 | # |
| 6236 | # Cloud Run for Anthos: supported |
| 6237 | # |
| 6238 | # Number or name of the port to access on the container. |
| 6239 | # Number must be in the range 1 to 65535. |
| 6240 | # Name must be an IANA_SVC_NAME. |
| 6241 | # |
| 6242 | # This field is currently limited to integer types only because of proto's |
| 6243 | # inability to properly support the IntOrString golang type. |
| 6244 | "host": "A String", # (Optional) |
| 6245 | # |
| 6246 | # Cloud Run fully managed: not supported |
| 6247 | # |
| 6248 | # Cloud Run for Anthos: supported |
| 6249 | # |
| 6250 | # Optional: Host name to connect to, defaults to the pod IP. |
| 6251 | }, |
| 6252 | }, |
| 6253 | "env": [ # (Optional) |
| 6254 | # |
| 6255 | # Cloud Run fully managed: supported |
| 6256 | # |
| 6257 | # Cloud Run for Anthos: supported |
| 6258 | # |
| 6259 | # List of environment variables to set in the container. |
| 6260 | { # EnvVar represents an environment variable present in a Container. |
| 6261 | "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER. |
| 6262 | "valueFrom": { # Cloud Run fully managed: not supported # (Optional) |
| 6263 | # |
| 6264 | # Cloud Run fully managed: not supported |
| 6265 | # |
| 6266 | # Cloud Run for Anthos: supported |
| 6267 | # |
| 6268 | # Source for the environment variable's value. Cannot be used if value is not |
| 6269 | # empty. |
| 6270 | # |
| 6271 | # Cloud Run for Anthos: supported |
| 6272 | # |
| 6273 | # EnvVarSource represents a source for the value of an EnvVar. |
| 6274 | "secretKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 6275 | # |
| 6276 | # Cloud Run fully managed: not supported |
| 6277 | # |
| 6278 | # Cloud Run for Anthos: supported |
| 6279 | # |
| 6280 | # Selects a key of a secret in the pod's namespace |
| 6281 | # |
| 6282 | # Cloud Run for Anthos: supported |
| 6283 | # |
| 6284 | # SecretKeySelector selects a key of a Secret. |
| 6285 | "key": "A String", # Cloud Run fully managed: not supported |
| 6286 | # |
| 6287 | # Cloud Run for Anthos: supported |
| 6288 | # |
| 6289 | # The key of the secret to select from. Must be a valid secret key. |
| 6290 | "name": "A String", # Cloud Run fully managed: not supported |
| 6291 | # |
| 6292 | # Cloud Run for Anthos: supported |
| 6293 | # |
| 6294 | # The name of the secret in the pod's namespace to select from. |
| 6295 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 6296 | # directly into the message. Use the "name" field instead. |
| 6297 | # |
| 6298 | # Cloud Run for Anthos: supported |
| 6299 | # |
| 6300 | # LocalObjectReference contains enough information to let you locate the |
| 6301 | # referenced object inside the same namespace. |
| 6302 | "name": "A String", # (Optional) |
| 6303 | # |
| 6304 | # Cloud Run fully managed: not supported |
| 6305 | # |
| 6306 | # Cloud Run for Anthos: supported |
| 6307 | # |
| 6308 | # Name of the referent. |
| 6309 | # More info: |
| 6310 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 6311 | }, |
| 6312 | "optional": True or False, # (Optional) |
| 6313 | # |
| 6314 | # Cloud Run fully managed: not supported |
| 6315 | # |
| 6316 | # Cloud Run for Anthos: supported |
| 6317 | # |
| 6318 | # Specify whether the Secret or its key must be defined |
| 6319 | }, |
| 6320 | "configMapKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 6321 | # |
| 6322 | # Cloud Run fully managed: not supported |
| 6323 | # |
| 6324 | # Cloud Run for Anthos: supported |
| 6325 | # |
| 6326 | # Selects a key of a ConfigMap. |
| 6327 | # |
| 6328 | # Cloud Run for Anthos: supported |
| 6329 | # |
| 6330 | # Selects a key from a ConfigMap. |
| 6331 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 6332 | # directly into the message. Use the "name" field instead. |
| 6333 | # |
| 6334 | # Cloud Run for Anthos: supported |
| 6335 | # |
| 6336 | # LocalObjectReference contains enough information to let you locate the |
| 6337 | # referenced object inside the same namespace. |
| 6338 | "name": "A String", # (Optional) |
| 6339 | # |
| 6340 | # Cloud Run fully managed: not supported |
| 6341 | # |
| 6342 | # Cloud Run for Anthos: supported |
| 6343 | # |
| 6344 | # Name of the referent. |
| 6345 | # More info: |
| 6346 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 6347 | }, |
| 6348 | "optional": True or False, # (Optional) |
| 6349 | # |
| 6350 | # Cloud Run fully managed: not supported |
| 6351 | # |
| 6352 | # Cloud Run for Anthos: supported |
| 6353 | # |
| 6354 | # Specify whether the ConfigMap or its key must be defined |
| 6355 | "key": "A String", # Cloud Run fully managed: not supported |
| 6356 | # |
| 6357 | # Cloud Run for Anthos: supported |
| 6358 | # |
| 6359 | # The key to select. |
| 6360 | "name": "A String", # Cloud Run fully managed: not supported |
| 6361 | # |
| 6362 | # Cloud Run for Anthos: supported |
| 6363 | # |
| 6364 | # The ConfigMap to select from. |
| 6365 | }, |
| 6366 | }, |
| 6367 | "value": "A String", # (Optional) |
| 6368 | # |
| 6369 | # Variable references $(VAR_NAME) are expanded |
| 6370 | # using the previous defined environment variables in the container and |
| 6371 | # any route environment variables. If a variable cannot be resolved, |
| 6372 | # the reference in the input string will be unchanged. The $(VAR_NAME) |
| 6373 | # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped |
| 6374 | # references will never be expanded, regardless of whether the variable |
| 6375 | # exists or not. |
| 6376 | # Defaults to "". |
| 6377 | }, |
| 6378 | ], |
| 6379 | "resources": { # ResourceRequirements describes the compute resource requirements. # (Optional) |
| 6380 | # |
| 6381 | # Cloud Run fully managed: supported |
| 6382 | # |
| 6383 | # Cloud Run for Anthos: supported |
| 6384 | # |
| 6385 | # Compute Resources required by this container. |
| 6386 | # More info: |
| 6387 | # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources |
| 6388 | "limits": { # (Optional) |
| 6389 | # |
| 6390 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 6391 | # supported value for CPU is '1'. |
| 6392 | # |
| 6393 | # Cloud Run for Anthos: supported |
| 6394 | # |
| 6395 | # Limits describes the maximum amount of compute resources allowed. |
| 6396 | # The values of the map is string form of the 'quantity' k8s type: |
| 6397 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 6398 | "a_key": "A String", |
| 6399 | }, |
| 6400 | "requests": { # (Optional) |
| 6401 | # |
| 6402 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 6403 | # supported value for CPU is '1'. |
| 6404 | # |
| 6405 | # Cloud Run for Anthos: supported |
| 6406 | # |
| 6407 | # Requests describes the minimum amount of compute resources required. |
| 6408 | # If Requests is omitted for a container, it defaults to Limits if that is |
| 6409 | # explicitly specified, otherwise to an implementation-defined value. |
| 6410 | # The values of the map is string form of the 'quantity' k8s type: |
| 6411 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 6412 | "a_key": "A String", |
| 6413 | }, |
| 6414 | }, |
| 6415 | "readinessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 6416 | # |
| 6417 | # Cloud Run fully managed: not supported |
| 6418 | # |
| 6419 | # Cloud Run for Anthos: supported |
| 6420 | # |
| 6421 | # Periodic probe of container service readiness. |
| 6422 | # Container will be removed from service endpoints if the probe fails. |
| 6423 | # More info: |
| 6424 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 6425 | # |
| 6426 | # Cloud Run for Anthos: supported |
| 6427 | # |
| 6428 | # Probe describes a health check to be performed against a container to |
| 6429 | # determine whether it is alive or ready to receive traffic. |
| 6430 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 6431 | # |
| 6432 | # Cloud Run fully managed: not supported |
| 6433 | # |
| 6434 | # Cloud Run for Anthos: supported |
| 6435 | # |
| 6436 | # HTTPGet specifies the http request to perform. |
| 6437 | # |
| 6438 | # A field inlined from the Handler message. |
| 6439 | # |
| 6440 | # Cloud Run for Anthos: supported |
| 6441 | # |
| 6442 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 6443 | "httpHeaders": [ # (Optional) |
| 6444 | # |
| 6445 | # Cloud Run fully managed: not supported |
| 6446 | # |
| 6447 | # Cloud Run for Anthos: supported |
| 6448 | # |
| 6449 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 6450 | { # Cloud Run fully managed: not supported |
| 6451 | # |
| 6452 | # Cloud Run for Anthos: supported |
| 6453 | # |
| 6454 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 6455 | "name": "A String", # Cloud Run fully managed: not supported |
| 6456 | # |
| 6457 | # Cloud Run for Anthos: supported |
| 6458 | # |
| 6459 | # The header field name |
| 6460 | "value": "A String", # Cloud Run fully managed: not supported |
| 6461 | # |
| 6462 | # Cloud Run for Anthos: supported |
| 6463 | # |
| 6464 | # The header field value |
| 6465 | }, |
| 6466 | ], |
| 6467 | "path": "A String", # (Optional) |
| 6468 | # |
| 6469 | # Cloud Run fully managed: not supported |
| 6470 | # |
| 6471 | # Cloud Run for Anthos: supported |
| 6472 | # |
| 6473 | # Path to access on the HTTP server. |
| 6474 | "host": "A String", # (Optional) |
| 6475 | # |
| 6476 | # Cloud Run fully managed: not supported |
| 6477 | # |
| 6478 | # Cloud Run for Anthos: supported |
| 6479 | # |
| 6480 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 6481 | # "Host" in httpHeaders instead. |
| 6482 | "scheme": "A String", # (Optional) |
| 6483 | # |
| 6484 | # Cloud Run fully managed: not supported |
| 6485 | # |
| 6486 | # Cloud Run for Anthos: supported |
| 6487 | # |
| 6488 | # Scheme to use for connecting to the host. |
| 6489 | # Defaults to HTTP. |
| 6490 | }, |
| 6491 | "failureThreshold": 42, # (Optional) |
| 6492 | # |
| 6493 | # Cloud Run fully managed: not supported |
| 6494 | # |
| 6495 | # Cloud Run for Anthos: supported |
| 6496 | # |
| 6497 | # Minimum consecutive failures for the probe to be considered failed after |
| 6498 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 6499 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 6500 | # |
| 6501 | # Cloud Run fully managed: not supported |
| 6502 | # |
| 6503 | # Cloud Run for Anthos: supported |
| 6504 | # |
| 6505 | # One and only one of the following should be specified. |
| 6506 | # Exec specifies the action to take. |
| 6507 | # |
| 6508 | # A field inlined from the Handler message. |
| 6509 | # |
| 6510 | # Cloud Run for Anthos: supported |
| 6511 | # |
| 6512 | # ExecAction describes a "run in container" action. |
| 6513 | "command": "A String", # (Optional) |
| 6514 | # |
| 6515 | # Cloud Run fully managed: not supported |
| 6516 | # |
| 6517 | # Cloud Run for Anthos: supported |
| 6518 | # |
| 6519 | # Command is the command line to execute inside the container, the working |
| 6520 | # directory for the command is root ('/') in the container's filesystem. The |
| 6521 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 6522 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 6523 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 6524 | # live/healthy and non-zero is unhealthy. |
| 6525 | }, |
| 6526 | "initialDelaySeconds": 42, # (Optional) |
| 6527 | # |
| 6528 | # Cloud Run fully managed: not supported |
| 6529 | # |
| 6530 | # Cloud Run for Anthos: supported |
| 6531 | # |
| 6532 | # Number of seconds after the container has started before liveness probes |
| 6533 | # are initiated. More info: |
| 6534 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 6535 | "timeoutSeconds": 42, # (Optional) |
| 6536 | # |
| 6537 | # Cloud Run fully managed: not supported |
| 6538 | # |
| 6539 | # Cloud Run for Anthos: supported |
| 6540 | # |
| 6541 | # Number of seconds after which the probe times out. |
| 6542 | # Defaults to 1 second. Minimum value is 1. |
| 6543 | # More info: |
| 6544 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 6545 | "successThreshold": 42, # (Optional) |
| 6546 | # |
| 6547 | # Cloud Run fully managed: not supported |
| 6548 | # |
| 6549 | # Cloud Run for Anthos: supported |
| 6550 | # |
| 6551 | # Minimum consecutive successes for the probe to be considered successful |
| 6552 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 6553 | # is 1. |
| 6554 | "periodSeconds": 42, # (Optional) |
| 6555 | # |
| 6556 | # Cloud Run fully managed: not supported |
| 6557 | # |
| 6558 | # Cloud Run for Anthos: supported |
| 6559 | # |
| 6560 | # How often (in seconds) to perform the probe. |
| 6561 | # Default to 10 seconds. Minimum value is 1. |
| 6562 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 6563 | # |
| 6564 | # Cloud Run fully managed: not supported |
| 6565 | # |
| 6566 | # Cloud Run for Anthos: supported |
| 6567 | # |
| 6568 | # TCPSocket specifies an action involving a TCP port. |
| 6569 | # TCP hooks not yet supported |
| 6570 | # |
| 6571 | # A field inlined from the Handler message. |
| 6572 | # |
| 6573 | # Cloud Run for Anthos: supported |
| 6574 | # |
| 6575 | # TCPSocketAction describes an action based on opening a socket |
| 6576 | "port": 42, # Cloud Run fully managed: not supported |
| 6577 | # |
| 6578 | # Cloud Run for Anthos: supported |
| 6579 | # |
| 6580 | # Number or name of the port to access on the container. |
| 6581 | # Number must be in the range 1 to 65535. |
| 6582 | # Name must be an IANA_SVC_NAME. |
| 6583 | # |
| 6584 | # This field is currently limited to integer types only because of proto's |
| 6585 | # inability to properly support the IntOrString golang type. |
| 6586 | "host": "A String", # (Optional) |
| 6587 | # |
| 6588 | # Cloud Run fully managed: not supported |
| 6589 | # |
| 6590 | # Cloud Run for Anthos: supported |
| 6591 | # |
| 6592 | # Optional: Host name to connect to, defaults to the pod IP. |
| 6593 | }, |
| 6594 | }, |
| 6595 | "imagePullPolicy": "A String", # (Optional) |
| 6596 | # |
| 6597 | # Cloud Run fully managed: not supported |
| 6598 | # |
| 6599 | # Cloud Run for Anthos: supported |
| 6600 | # |
| 6601 | # Image pull policy. |
| 6602 | # One of Always, Never, IfNotPresent. |
| 6603 | # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. |
| 6604 | # More info: |
| 6605 | # https://kubernetes.io/docs/concepts/containers/images#updating-images |
| 6606 | "terminationMessagePath": "A String", # (Optional) |
| 6607 | # |
| 6608 | # Cloud Run fully managed: not supported |
| 6609 | # |
| 6610 | # Cloud Run for Anthos: supported |
| 6611 | # |
| 6612 | # Path at which the file to which the container's termination |
| 6613 | # message will be written is mounted into the container's filesystem. Message |
| 6614 | # written is intended to be brief final status, such as an assertion failure |
| 6615 | # message. Will be truncated by the node if greater than 4096 bytes. The |
| 6616 | # total message length across all containers will be limited to 12kb. |
| 6617 | # Defaults to /dev/termination-log. |
| 6618 | }, |
| 6619 | ], |
| 6620 | }, |
| 6621 | }, |
| 6622 | }, |
| 6623 | "kind": "A String", # The kind of resource, in this case "Service". |
| 6624 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Metadata associated with this Service, including name, namespace, labels, |
| 6625 | # and annotations. |
| 6626 | # persisted resources must have, which includes all objects users must create. |
| 6627 | "creationTimestamp": "A String", # (Optional) |
| 6628 | # |
| 6629 | # CreationTimestamp is a timestamp representing the server time when this |
| 6630 | # object was created. It is not guaranteed to be set in happens-before order |
| 6631 | # across separate operations. Clients may not set this value. It is |
| 6632 | # represented in RFC3339 form and is in UTC. |
| 6633 | # |
| 6634 | # Populated by the system. |
| 6635 | # Read-only. |
| 6636 | # Null for lists. |
| 6637 | # More info: |
| 6638 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 6639 | "labels": { # (Optional) |
| 6640 | # |
| 6641 | # Map of string keys and values that can be used to organize and categorize |
| 6642 | # (scope and select) objects. May match selectors of replication controllers |
| 6643 | # and routes. |
| 6644 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 6645 | "a_key": "A String", |
| 6646 | }, |
| 6647 | "generation": 42, # (Optional) |
| 6648 | # |
| 6649 | # A sequence number representing a specific generation of the desired state. |
| 6650 | # Populated by the system. Read-only. |
| 6651 | "resourceVersion": "A String", # (Optional) |
| 6652 | # |
| 6653 | # An opaque value that represents the internal version of this object that |
| 6654 | # can be used by clients to determine when objects have changed. May be used |
| 6655 | # for optimistic concurrency, change detection, and the watch operation on a |
| 6656 | # resource or set of resources. Clients must treat these values as opaque and |
| 6657 | # passed unmodified back to the server. They may only be valid for a |
| 6658 | # particular resource or set of resources. |
| 6659 | # |
| 6660 | # Populated by the system. |
| 6661 | # Read-only. |
| 6662 | # Value must be treated as opaque by clients and . |
| 6663 | # More info: |
| 6664 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 6665 | "selfLink": "A String", # (Optional) |
| 6666 | # |
| 6667 | # SelfLink is a URL representing this object. |
| 6668 | # Populated by the system. |
| 6669 | # Read-only. |
| 6670 | # string selfLink = 4; |
| 6671 | "uid": "A String", # (Optional) |
| 6672 | # |
| 6673 | # UID is the unique in time and space value for this object. It is typically |
| 6674 | # generated by the server on successful creation of a resource and is not |
| 6675 | # allowed to change on PUT operations. |
| 6676 | # |
| 6677 | # Populated by the system. |
| 6678 | # Read-only. |
| 6679 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 6680 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 6681 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 6682 | # project ID or project number. |
| 6683 | "annotations": { # (Optional) |
| 6684 | # |
| 6685 | # Annotations is an unstructured key value map stored with a resource that |
| 6686 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 6687 | # are not queryable and should be preserved when modifying objects. More |
| 6688 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 6689 | "a_key": "A String", |
| 6690 | }, |
| 6691 | "generateName": "A String", # (Optional) |
| 6692 | # |
| 6693 | # Cloud Run fully managed: not supported |
| 6694 | # |
| 6695 | # Cloud Run for Anthos: supported |
| 6696 | # |
| 6697 | # GenerateName is an optional prefix, used by the server, to generate a |
| 6698 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 6699 | # used, the name returned to the client will be different than the name |
| 6700 | # passed. This value will also be combined with a unique suffix. The provided |
| 6701 | # value has the same validation rules as the Name field, and may be truncated |
| 6702 | # by the length of the suffix required to make the value unique on the |
| 6703 | # server. |
| 6704 | # |
| 6705 | # If this field is specified and the generated name exists, the server will |
| 6706 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 6707 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 6708 | # time allotted, and the client should retry (optionally after the time |
| 6709 | # indicated in the Retry-After header). |
| 6710 | # |
| 6711 | # Applied only if Name is not specified. |
| 6712 | # More info: |
| 6713 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 6714 | # string generateName = 2; |
| 6715 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 6716 | # Is required when creating |
| 6717 | # resources, although some resources may allow a client to request the |
| 6718 | # generation of an appropriate name automatically. Name is primarily intended |
| 6719 | # for creation idempotence and configuration definition. Cannot be updated. |
| 6720 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 6721 | # +optional |
| 6722 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 6723 | # |
| 6724 | # Cloud Run fully managed: not supported |
| 6725 | # |
| 6726 | # Cloud Run for Anthos: supported |
| 6727 | # |
| 6728 | # Number of seconds allowed for this object to gracefully terminate before |
| 6729 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 6730 | # set. May only be shortened. Read-only. |
| 6731 | "clusterName": "A String", # (Optional) |
| 6732 | # |
| 6733 | # Cloud Run fully managed: not supported |
| 6734 | # |
| 6735 | # Cloud Run for Anthos: supported |
| 6736 | # |
| 6737 | # The name of the cluster which the object belongs to. |
| 6738 | # This is used to distinguish resources with same name and namespace in |
| 6739 | # different clusters. This field is not set anywhere right now and apiserver |
| 6740 | # is going to ignore it if set in create or update request. |
| 6741 | "finalizers": [ # (Optional) |
| 6742 | # |
| 6743 | # Cloud Run fully managed: not supported |
| 6744 | # |
| 6745 | # Cloud Run for Anthos: supported |
| 6746 | # |
| 6747 | # Must be empty before the object is deleted from the registry. Each entry |
| 6748 | # is an identifier for the responsible component that will remove the entry |
| 6749 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 6750 | # in this list can only be removed. |
| 6751 | # +patchStrategy=merge |
| 6752 | "A String", |
| 6753 | ], |
| 6754 | "deletionTimestamp": "A String", # (Optional) |
| 6755 | # |
| 6756 | # Cloud Run fully managed: not supported |
| 6757 | # |
| 6758 | # Cloud Run for Anthos: supported |
| 6759 | # |
| 6760 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 6761 | # deleted. This field is set by the server when a graceful deletion is |
| 6762 | # requested by the user, and is not directly settable by a client. The |
| 6763 | # resource is expected to be deleted (no longer visible from resource lists, |
| 6764 | # and not reachable by name) after the time in this field, once the |
| 6765 | # finalizers list is empty. As long as the finalizers list contains items, |
| 6766 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 6767 | # be unset or be set further into the future, although it may be shortened or |
| 6768 | # the resource may be deleted prior to this time. For example, a user may |
| 6769 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 6770 | # sending a graceful termination signal to the containers in the pod. After |
| 6771 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 6772 | # to the container and after cleanup, remove the pod from the API. In the |
| 6773 | # presence of network partitions, this object may still exist after this |
| 6774 | # timestamp, until an administrator or automated process can determine the |
| 6775 | # resource is fully terminated. |
| 6776 | # If not set, graceful deletion of the object has not been requested. |
| 6777 | # |
| 6778 | # Populated by the system when a graceful deletion is requested. |
| 6779 | # Read-only. |
| 6780 | # More info: |
| 6781 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 6782 | "ownerReferences": [ # (Optional) |
| 6783 | # |
| 6784 | # Cloud Run fully managed: not supported |
| 6785 | # |
| 6786 | # Cloud Run for Anthos: supported |
| 6787 | # |
| 6788 | # List of objects that own this object. If ALL objects in the list have |
| 6789 | # been deleted, this object will be garbage collected. |
| 6790 | { # OwnerReference contains enough information to let you identify an owning |
| 6791 | # object. Currently, an owning object must be in the same namespace, so there |
| 6792 | # is no namespace field. |
| 6793 | "uid": "A String", # UID of the referent. |
| 6794 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 6795 | "controller": True or False, # If true, this reference points to the managing controller. |
| 6796 | # +optional |
| 6797 | "kind": "A String", # Kind of the referent. |
| 6798 | # More info: |
| 6799 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 6800 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 6801 | # the owner cannot be deleted from the key-value store until this |
| 6802 | # reference is removed. |
| 6803 | # Defaults to false. |
| 6804 | # To set this field, a user needs "delete" permission of the owner, |
| 6805 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 6806 | # +optional |
| 6807 | "apiVersion": "A String", # API version of the referent. |
| 6808 | "name": "A String", # Name of the referent. |
| 6809 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 6810 | }, |
| 6811 | ], |
| 6812 | }, |
| 6813 | }, |
| 6814 | ], |
| 6815 | }</pre> |
| 6816 | </div> |
| 6817 | |
| 6818 | <div class="method"> |
| 6819 | <code class="details" id="replaceService">replaceService(name, body=None, x__xgafv=None)</code> |
| 6820 | <pre>Replace a service. |
| 6821 | |
| 6822 | Only the spec and metadata labels and annotations are modifiable. After |
| 6823 | the Update request, Cloud Run will work to make the 'status' |
| 6824 | match the requested 'spec'. |
| 6825 | |
| 6826 | May provide metadata.resourceVersion to enforce update from last read for |
| 6827 | optimistic concurrency control. |
| 6828 | |
| 6829 | Args: |
| 6830 | name: string, The name of the service being replaced. |
| 6831 | For Cloud Run (fully managed), replace {namespace_id} with the project ID |
| 6832 | or number. (required) |
| 6833 | body: object, The request body. |
| 6834 | The object takes the form of: |
| 6835 | |
| 6836 | { # Service acts as a top-level container that manages a set of Routes and |
| 6837 | # Configurations which implement a network service. Service exists to provide a |
| 6838 | # singular abstraction which can be access controlled, reasoned about, and |
| 6839 | # which encapsulates software lifecycle decisions such as rollout policy and |
| 6840 | # team resource ownership. Service acts only as an orchestrator of the |
| 6841 | # underlying Routes and Configurations (much as a kubernetes Deployment |
| 6842 | # orchestrates ReplicaSets). |
| 6843 | # |
| 6844 | # The Service's controller will track the statuses of its owned Configuration |
| 6845 | # and Route, reflecting their statuses and conditions as its own. |
| 6846 | # |
| 6847 | # See also: |
| 6848 | # https://github.com/knative/serving/blob/master/docs/spec/overview.md#service |
| 6849 | "status": { # The current state of the Service. Output only. # Status communicates the observed state of the Service (from the |
| 6850 | # controller). |
| 6851 | "latestCreatedRevisionName": "A String", # From ConfigurationStatus. |
| 6852 | # LatestCreatedRevisionName is the last revision that was created from this |
| 6853 | # Service's Configuration. It might not be ready yet, for that use |
| 6854 | # LatestReadyRevisionName. |
| 6855 | "conditions": [ # Conditions communicates information about ongoing/complete |
| 6856 | # reconciliation processes that bring the "spec" inline with the observed |
| 6857 | # state of the world. |
| 6858 | # Service-specific conditions include: |
| 6859 | # * "ConfigurationsReady": true when the underlying Configuration is ready. |
| 6860 | # * "RoutesReady": true when the underlying Route is ready. |
| 6861 | # * "Ready": true when both the underlying Route and Configuration are |
| 6862 | # ready. |
| 6863 | { # Condition defines a generic condition for a Resource |
| 6864 | "message": "A String", # Optional. Human readable message indicating details about the current status. |
| 6865 | "lastTransitionTime": "A String", # Optional. Last time the condition transitioned from one status to another. |
| 6866 | "status": "A String", # Status of the condition, one of True, False, Unknown. |
| 6867 | "severity": "A String", # Optional. How to interpret failures of this condition, one of Error, Warning, Info |
| 6868 | "reason": "A String", # Optional. One-word CamelCase reason for the condition's last transition. |
| 6869 | "type": "A String", # type is used to communicate the status of the reconciliation process. |
| 6870 | # See also: |
| 6871 | # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting |
| 6872 | # Types common to all resources include: |
| 6873 | # * "Ready": True when the Resource is ready. |
| 6874 | }, |
| 6875 | ], |
| 6876 | "address": { # Information for connecting over HTTP(s). # From RouteStatus. |
| 6877 | # Similar to url, information on where the service is available on HTTP. |
| 6878 | "url": "A String", |
| 6879 | }, |
| 6880 | "observedGeneration": 42, # ObservedGeneration is the 'Generation' of the Route that |
| 6881 | # was last processed by the controller. |
| 6882 | # |
| 6883 | # Clients polling for completed reconciliation should poll until |
| 6884 | # observedGeneration = metadata.generation and the Ready condition's status |
| 6885 | # is True or False. |
| 6886 | "url": "A String", # From RouteStatus. |
| 6887 | # URL holds the url that will distribute traffic over the provided traffic |
| 6888 | # targets. It generally has the form |
| 6889 | # https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app |
| 6890 | "traffic": [ # From RouteStatus. |
| 6891 | # Traffic holds the configured traffic distribution. |
| 6892 | # These entries will always contain RevisionName references. |
| 6893 | # When ConfigurationName appears in the spec, this will hold the |
| 6894 | # LatestReadyRevisionName that we last observed. |
| 6895 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 6896 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 6897 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 6898 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 6899 | # (e.g. basic auth, url path, etc. |
| 6900 | # |
| 6901 | # Not currently supported in Cloud Run. |
| 6902 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 6903 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 6904 | # of the referenced configuration changes, we will automatically migrate |
| 6905 | # traffic from the prior "latest ready" revision to the new one. This field |
| 6906 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 6907 | # with RevisionName. |
| 6908 | # |
| 6909 | # Cloud Run currently supports a single ConfigurationName. |
| 6910 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 6911 | # This defaults to zero if unspecified. |
| 6912 | # |
| 6913 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 6914 | # TrafficTarget entry. |
| 6915 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 6916 | # traffic. This is mutually exclusive with ConfigurationName. |
| 6917 | # |
| 6918 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 6919 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 6920 | # ready Revision of the Configuration should be used for this traffic |
| 6921 | # target. When provided LatestRevision must be true if RevisionName is |
| 6922 | # empty; it must be false when RevisionName is non-empty. |
| 6923 | # |
| 6924 | # +optional |
| 6925 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 6926 | # this target exclusively. |
| 6927 | # |
| 6928 | # Not currently supported in Cloud Run. |
| 6929 | # +optional |
| 6930 | }, |
| 6931 | ], |
| 6932 | "latestReadyRevisionName": "A String", # From ConfigurationStatus. |
| 6933 | # LatestReadyRevisionName holds the name of the latest Revision stamped out |
| 6934 | # from this Service's Configuration that has had its "Ready" condition become |
| 6935 | # "True". |
| 6936 | }, |
| 6937 | "apiVersion": "A String", # The API version for this call such as "serving.knative.dev/v1". |
| 6938 | "spec": { # ServiceSpec holds the desired state of the Route (from the client), which # Spec holds the desired state of the Service (from the client). |
| 6939 | # is used to manipulate the underlying Route and Configuration(s). |
| 6940 | "traffic": [ # Traffic specifies how to distribute traffic over a collection of Knative |
| 6941 | # Revisions and Configurations. |
| 6942 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 6943 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 6944 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 6945 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 6946 | # (e.g. basic auth, url path, etc. |
| 6947 | # |
| 6948 | # Not currently supported in Cloud Run. |
| 6949 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 6950 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 6951 | # of the referenced configuration changes, we will automatically migrate |
| 6952 | # traffic from the prior "latest ready" revision to the new one. This field |
| 6953 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 6954 | # with RevisionName. |
| 6955 | # |
| 6956 | # Cloud Run currently supports a single ConfigurationName. |
| 6957 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 6958 | # This defaults to zero if unspecified. |
| 6959 | # |
| 6960 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 6961 | # TrafficTarget entry. |
| 6962 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 6963 | # traffic. This is mutually exclusive with ConfigurationName. |
| 6964 | # |
| 6965 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 6966 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 6967 | # ready Revision of the Configuration should be used for this traffic |
| 6968 | # target. When provided LatestRevision must be true if RevisionName is |
| 6969 | # empty; it must be false when RevisionName is non-empty. |
| 6970 | # |
| 6971 | # +optional |
| 6972 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 6973 | # this target exclusively. |
| 6974 | # |
| 6975 | # Not currently supported in Cloud Run. |
| 6976 | # +optional |
| 6977 | }, |
| 6978 | ], |
| 6979 | "template": { # RevisionTemplateSpec describes the data a revision should have when created # Template holds the latest specification for the Revision to |
| 6980 | # be stamped out. |
| 6981 | # from a template. Based on: |
| 6982 | # https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190 |
| 6983 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Optional metadata for this Revision, including labels and annotations. Name |
| 6984 | # will be generated by the Configuration. |
| 6985 | # To set minimum instances for this revision, use the |
| 6986 | # "autoscaling.knative.dev/minScale" annotation key. |
| 6987 | # To set maximum instances for this revision, use the |
| 6988 | # "autoscaling.knative.dev/maxScale" annotation key. |
| 6989 | # To set Cloud SQL connections for the revision, use the |
| 6990 | # "run.googleapis.com/cloudsql-instances" annotation key. |
| 6991 | # persisted resources must have, which includes all objects users must create. |
| 6992 | "creationTimestamp": "A String", # (Optional) |
| 6993 | # |
| 6994 | # CreationTimestamp is a timestamp representing the server time when this |
| 6995 | # object was created. It is not guaranteed to be set in happens-before order |
| 6996 | # across separate operations. Clients may not set this value. It is |
| 6997 | # represented in RFC3339 form and is in UTC. |
| 6998 | # |
| 6999 | # Populated by the system. |
| 7000 | # Read-only. |
| 7001 | # Null for lists. |
| 7002 | # More info: |
| 7003 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 7004 | "labels": { # (Optional) |
| 7005 | # |
| 7006 | # Map of string keys and values that can be used to organize and categorize |
| 7007 | # (scope and select) objects. May match selectors of replication controllers |
| 7008 | # and routes. |
| 7009 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 7010 | "a_key": "A String", |
| 7011 | }, |
| 7012 | "generation": 42, # (Optional) |
| 7013 | # |
| 7014 | # A sequence number representing a specific generation of the desired state. |
| 7015 | # Populated by the system. Read-only. |
| 7016 | "resourceVersion": "A String", # (Optional) |
| 7017 | # |
| 7018 | # An opaque value that represents the internal version of this object that |
| 7019 | # can be used by clients to determine when objects have changed. May be used |
| 7020 | # for optimistic concurrency, change detection, and the watch operation on a |
| 7021 | # resource or set of resources. Clients must treat these values as opaque and |
| 7022 | # passed unmodified back to the server. They may only be valid for a |
| 7023 | # particular resource or set of resources. |
| 7024 | # |
| 7025 | # Populated by the system. |
| 7026 | # Read-only. |
| 7027 | # Value must be treated as opaque by clients and . |
| 7028 | # More info: |
| 7029 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 7030 | "selfLink": "A String", # (Optional) |
| 7031 | # |
| 7032 | # SelfLink is a URL representing this object. |
| 7033 | # Populated by the system. |
| 7034 | # Read-only. |
| 7035 | # string selfLink = 4; |
| 7036 | "uid": "A String", # (Optional) |
| 7037 | # |
| 7038 | # UID is the unique in time and space value for this object. It is typically |
| 7039 | # generated by the server on successful creation of a resource and is not |
| 7040 | # allowed to change on PUT operations. |
| 7041 | # |
| 7042 | # Populated by the system. |
| 7043 | # Read-only. |
| 7044 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 7045 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 7046 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 7047 | # project ID or project number. |
| 7048 | "annotations": { # (Optional) |
| 7049 | # |
| 7050 | # Annotations is an unstructured key value map stored with a resource that |
| 7051 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 7052 | # are not queryable and should be preserved when modifying objects. More |
| 7053 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 7054 | "a_key": "A String", |
| 7055 | }, |
| 7056 | "generateName": "A String", # (Optional) |
| 7057 | # |
| 7058 | # Cloud Run fully managed: not supported |
| 7059 | # |
| 7060 | # Cloud Run for Anthos: supported |
| 7061 | # |
| 7062 | # GenerateName is an optional prefix, used by the server, to generate a |
| 7063 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 7064 | # used, the name returned to the client will be different than the name |
| 7065 | # passed. This value will also be combined with a unique suffix. The provided |
| 7066 | # value has the same validation rules as the Name field, and may be truncated |
| 7067 | # by the length of the suffix required to make the value unique on the |
| 7068 | # server. |
| 7069 | # |
| 7070 | # If this field is specified and the generated name exists, the server will |
| 7071 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 7072 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 7073 | # time allotted, and the client should retry (optionally after the time |
| 7074 | # indicated in the Retry-After header). |
| 7075 | # |
| 7076 | # Applied only if Name is not specified. |
| 7077 | # More info: |
| 7078 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 7079 | # string generateName = 2; |
| 7080 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 7081 | # Is required when creating |
| 7082 | # resources, although some resources may allow a client to request the |
| 7083 | # generation of an appropriate name automatically. Name is primarily intended |
| 7084 | # for creation idempotence and configuration definition. Cannot be updated. |
| 7085 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 7086 | # +optional |
| 7087 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 7088 | # |
| 7089 | # Cloud Run fully managed: not supported |
| 7090 | # |
| 7091 | # Cloud Run for Anthos: supported |
| 7092 | # |
| 7093 | # Number of seconds allowed for this object to gracefully terminate before |
| 7094 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 7095 | # set. May only be shortened. Read-only. |
| 7096 | "clusterName": "A String", # (Optional) |
| 7097 | # |
| 7098 | # Cloud Run fully managed: not supported |
| 7099 | # |
| 7100 | # Cloud Run for Anthos: supported |
| 7101 | # |
| 7102 | # The name of the cluster which the object belongs to. |
| 7103 | # This is used to distinguish resources with same name and namespace in |
| 7104 | # different clusters. This field is not set anywhere right now and apiserver |
| 7105 | # is going to ignore it if set in create or update request. |
| 7106 | "finalizers": [ # (Optional) |
| 7107 | # |
| 7108 | # Cloud Run fully managed: not supported |
| 7109 | # |
| 7110 | # Cloud Run for Anthos: supported |
| 7111 | # |
| 7112 | # Must be empty before the object is deleted from the registry. Each entry |
| 7113 | # is an identifier for the responsible component that will remove the entry |
| 7114 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 7115 | # in this list can only be removed. |
| 7116 | # +patchStrategy=merge |
| 7117 | "A String", |
| 7118 | ], |
| 7119 | "deletionTimestamp": "A String", # (Optional) |
| 7120 | # |
| 7121 | # Cloud Run fully managed: not supported |
| 7122 | # |
| 7123 | # Cloud Run for Anthos: supported |
| 7124 | # |
| 7125 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 7126 | # deleted. This field is set by the server when a graceful deletion is |
| 7127 | # requested by the user, and is not directly settable by a client. The |
| 7128 | # resource is expected to be deleted (no longer visible from resource lists, |
| 7129 | # and not reachable by name) after the time in this field, once the |
| 7130 | # finalizers list is empty. As long as the finalizers list contains items, |
| 7131 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 7132 | # be unset or be set further into the future, although it may be shortened or |
| 7133 | # the resource may be deleted prior to this time. For example, a user may |
| 7134 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 7135 | # sending a graceful termination signal to the containers in the pod. After |
| 7136 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 7137 | # to the container and after cleanup, remove the pod from the API. In the |
| 7138 | # presence of network partitions, this object may still exist after this |
| 7139 | # timestamp, until an administrator or automated process can determine the |
| 7140 | # resource is fully terminated. |
| 7141 | # If not set, graceful deletion of the object has not been requested. |
| 7142 | # |
| 7143 | # Populated by the system when a graceful deletion is requested. |
| 7144 | # Read-only. |
| 7145 | # More info: |
| 7146 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 7147 | "ownerReferences": [ # (Optional) |
| 7148 | # |
| 7149 | # Cloud Run fully managed: not supported |
| 7150 | # |
| 7151 | # Cloud Run for Anthos: supported |
| 7152 | # |
| 7153 | # List of objects that own this object. If ALL objects in the list have |
| 7154 | # been deleted, this object will be garbage collected. |
| 7155 | { # OwnerReference contains enough information to let you identify an owning |
| 7156 | # object. Currently, an owning object must be in the same namespace, so there |
| 7157 | # is no namespace field. |
| 7158 | "uid": "A String", # UID of the referent. |
| 7159 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 7160 | "controller": True or False, # If true, this reference points to the managing controller. |
| 7161 | # +optional |
| 7162 | "kind": "A String", # Kind of the referent. |
| 7163 | # More info: |
| 7164 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 7165 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 7166 | # the owner cannot be deleted from the key-value store until this |
| 7167 | # reference is removed. |
| 7168 | # Defaults to false. |
| 7169 | # To set this field, a user needs "delete" permission of the owner, |
| 7170 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 7171 | # +optional |
| 7172 | "apiVersion": "A String", # API version of the referent. |
| 7173 | "name": "A String", # Name of the referent. |
| 7174 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 7175 | }, |
| 7176 | ], |
| 7177 | }, |
| 7178 | "spec": { # RevisionSpec holds the desired state of the Revision (from the client). # RevisionSpec holds the desired state of the Revision (from the client). |
| 7179 | "volumes": [ |
| 7180 | { # Cloud Run fully managed: not supported |
| 7181 | # |
| 7182 | # Cloud Run for Anthos: supported |
| 7183 | # |
| 7184 | # Volume represents a named volume in a container. |
| 7185 | "configMap": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 7186 | # |
| 7187 | # Cloud Run for Anthos: supported |
| 7188 | # |
| 7189 | # Cloud Run for Anthos: supported |
| 7190 | # |
| 7191 | # Adapts a ConfigMap into a volume. |
| 7192 | # The contents of the target ConfigMap's Data field will be presented in a |
| 7193 | # volume as files using the keys in the Data field as the file names, unless |
| 7194 | # the items element is populated with specific mappings of keys to paths. |
| 7195 | "optional": True or False, # (Optional) |
| 7196 | # |
| 7197 | # Cloud Run fully managed: not supported |
| 7198 | # |
| 7199 | # Cloud Run for Anthos: supported |
| 7200 | # |
| 7201 | # Specify whether the Secret or its keys must be defined. |
| 7202 | "name": "A String", # Cloud Run fully managed: not supported |
| 7203 | # |
| 7204 | # Cloud Run for Anthos: supported |
| 7205 | # |
| 7206 | # Name of the config. |
| 7207 | "defaultMode": 42, # (Optional) |
| 7208 | # |
| 7209 | # Cloud Run fully managed: not supported |
| 7210 | # |
| 7211 | # Cloud Run for Anthos: supported |
| 7212 | # |
| 7213 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 7214 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 7215 | # this setting. This might be in conflict with other options that affect the |
| 7216 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 7217 | "items": [ # (Optional) |
| 7218 | # |
| 7219 | # Cloud Run fully managed: not supported |
| 7220 | # |
| 7221 | # Cloud Run for Anthos: supported |
| 7222 | # |
| 7223 | # If unspecified, each key-value pair in the Data field of the referenced |
| 7224 | # Secret will be projected into the volume as a file whose name is the |
| 7225 | # key and content is the value. If specified, the listed keys will be |
| 7226 | # projected into the specified paths, and unlisted keys will not be |
| 7227 | # present. If a key is specified which is not present in the Secret, |
| 7228 | # the volume setup will error unless it is marked optional. |
| 7229 | { # Cloud Run fully managed: not supported |
| 7230 | # |
| 7231 | # Cloud Run for Anthos: supported |
| 7232 | # |
| 7233 | # Maps a string key to a path within a volume. |
| 7234 | "key": "A String", # Cloud Run fully managed: not supported |
| 7235 | # |
| 7236 | # Cloud Run for Anthos: supported |
| 7237 | # |
| 7238 | # The key to project. |
| 7239 | "path": "A String", # Cloud Run fully managed: not supported |
| 7240 | # |
| 7241 | # Cloud Run for Anthos: supported |
| 7242 | # |
| 7243 | # The relative path of the file to map the key to. |
| 7244 | # May not be an absolute path. |
| 7245 | # May not contain the path element '..'. |
| 7246 | # May not start with the string '..'. |
| 7247 | "mode": 42, # (Optional) |
| 7248 | # |
| 7249 | # Cloud Run fully managed: not supported |
| 7250 | # |
| 7251 | # Cloud Run for Anthos: supported |
| 7252 | # |
| 7253 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 7254 | # specified, the volume defaultMode will be used. This might be in conflict |
| 7255 | # with other options that affect the file mode, like fsGroup, and the result |
| 7256 | # can be other mode bits set. |
| 7257 | }, |
| 7258 | ], |
| 7259 | }, |
| 7260 | "name": "A String", # Cloud Run fully managed: not supported |
| 7261 | # |
| 7262 | # Cloud Run for Anthos: supported |
| 7263 | # |
| 7264 | # Volume's name. |
| 7265 | "secret": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 7266 | # |
| 7267 | # Cloud Run for Anthos: supported |
| 7268 | # |
| 7269 | # Cloud Run for Anthos: supported |
| 7270 | # |
| 7271 | # The contents of the target Secret's Data field will be presented in a volume |
| 7272 | # as files using the keys in the Data field as the file names. |
| 7273 | "optional": True or False, # (Optional) |
| 7274 | # |
| 7275 | # Cloud Run fully managed: not supported |
| 7276 | # |
| 7277 | # Cloud Run for Anthos: supported |
| 7278 | # |
| 7279 | # Specify whether the Secret or its keys must be defined. |
| 7280 | "defaultMode": 42, # (Optional) |
| 7281 | # |
| 7282 | # Cloud Run fully managed: not supported |
| 7283 | # |
| 7284 | # Cloud Run for Anthos: supported |
| 7285 | # |
| 7286 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 7287 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 7288 | # this setting. This might be in conflict with other options that affect the |
| 7289 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 7290 | "secretName": "A String", # Cloud Run fully managed: not supported |
| 7291 | # |
| 7292 | # Cloud Run for Anthos: supported |
| 7293 | # |
| 7294 | # Name of the secret in the container's namespace to use. |
| 7295 | "items": [ # (Optional) |
| 7296 | # |
| 7297 | # Cloud Run fully managed: not supported |
| 7298 | # |
| 7299 | # Cloud Run for Anthos: supported |
| 7300 | # |
| 7301 | # If unspecified, each key-value pair in the Data field of the referenced |
| 7302 | # Secret will be projected into the volume as a file whose name is the |
| 7303 | # key and content is the value. If specified, the listed keys will be |
| 7304 | # projected into the specified paths, and unlisted keys will not be |
| 7305 | # present. If a key is specified which is not present in the Secret, |
| 7306 | # the volume setup will error unless it is marked optional. |
| 7307 | { # Cloud Run fully managed: not supported |
| 7308 | # |
| 7309 | # Cloud Run for Anthos: supported |
| 7310 | # |
| 7311 | # Maps a string key to a path within a volume. |
| 7312 | "key": "A String", # Cloud Run fully managed: not supported |
| 7313 | # |
| 7314 | # Cloud Run for Anthos: supported |
| 7315 | # |
| 7316 | # The key to project. |
| 7317 | "path": "A String", # Cloud Run fully managed: not supported |
| 7318 | # |
| 7319 | # Cloud Run for Anthos: supported |
| 7320 | # |
| 7321 | # The relative path of the file to map the key to. |
| 7322 | # May not be an absolute path. |
| 7323 | # May not contain the path element '..'. |
| 7324 | # May not start with the string '..'. |
| 7325 | "mode": 42, # (Optional) |
| 7326 | # |
| 7327 | # Cloud Run fully managed: not supported |
| 7328 | # |
| 7329 | # Cloud Run for Anthos: supported |
| 7330 | # |
| 7331 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 7332 | # specified, the volume defaultMode will be used. This might be in conflict |
| 7333 | # with other options that affect the file mode, like fsGroup, and the result |
| 7334 | # can be other mode bits set. |
| 7335 | }, |
| 7336 | ], |
| 7337 | }, |
| 7338 | }, |
| 7339 | ], |
| 7340 | "containerConcurrency": 42, # (Optional) |
| 7341 | # |
| 7342 | # ContainerConcurrency specifies the maximum allowed in-flight (concurrent) |
| 7343 | # requests per container instance of the Revision. |
| 7344 | # |
| 7345 | # Cloud Run fully managed: supported, defaults to 80 |
| 7346 | # |
| 7347 | # Cloud Run for Anthos: supported, defaults to 0, which means concurrency |
| 7348 | # to the application is not limited, and the system decides the |
| 7349 | # target concurrency for the autoscaler. |
| 7350 | "timeoutSeconds": 42, # TimeoutSeconds holds the max duration the instance is allowed for |
| 7351 | # responding to a request. |
| 7352 | # Not currently used by Cloud Run. |
| 7353 | "serviceAccountName": "A String", # Email address of the IAM service account associated with the revision |
| 7354 | # of the service. The service account represents the identity of the |
| 7355 | # running revision, and determines what permissions the revision has. If |
| 7356 | # not provided, the revision will use the project's default service account. |
| 7357 | "containers": [ # Containers holds the single container that defines the unit of execution |
| 7358 | # for this Revision. In the context of a Revision, we disallow a number of |
| 7359 | # fields on this Container, including: name and lifecycle. |
| 7360 | # In Cloud Run, only a single container may be provided. |
| 7361 | # The runtime contract is documented here: |
| 7362 | # https://github.com/knative/serving/blob/master/docs/runtime-contract.md |
| 7363 | { # A single application container. |
| 7364 | # This specifies both the container to run, the command to run in the container |
| 7365 | # and the arguments to supply to it. |
| 7366 | # Note that additional arguments may be supplied by the system to the container |
| 7367 | # at runtime. |
| 7368 | "volumeMounts": [ # (Optional) |
| 7369 | # |
| 7370 | # Cloud Run fully managed: not supported |
| 7371 | # |
| 7372 | # Cloud Run for Anthos: supported |
| 7373 | # |
| 7374 | # Pod volumes to mount into the container's filesystem. |
| 7375 | { # Cloud Run fully managed: not supported |
| 7376 | # |
| 7377 | # Cloud Run for Anthos: supported |
| 7378 | # |
| 7379 | # VolumeMount describes a mounting of a Volume within a container. |
| 7380 | "name": "A String", # Cloud Run fully managed: not supported |
| 7381 | # |
| 7382 | # Cloud Run for Anthos: supported |
| 7383 | # |
| 7384 | # This must match the Name of a Volume. |
| 7385 | "readOnly": True or False, # (Optional) |
| 7386 | # |
| 7387 | # Cloud Run fully managed: not supported |
| 7388 | # |
| 7389 | # Cloud Run for Anthos: supported |
| 7390 | # |
| 7391 | # Only true is accepted. |
| 7392 | # Defaults to true. |
| 7393 | "mountPath": "A String", # Cloud Run fully managed: not supported |
| 7394 | # |
| 7395 | # Cloud Run for Anthos: supported |
| 7396 | # |
| 7397 | # Path within the container at which the volume should be mounted. Must |
| 7398 | # not contain ':'. |
| 7399 | "subPath": "A String", # (Optional) |
| 7400 | # |
| 7401 | # Cloud Run fully managed: not supported |
| 7402 | # |
| 7403 | # Cloud Run for Anthos: supported |
| 7404 | # |
| 7405 | # Path within the volume from which the container's volume should be mounted. |
| 7406 | # Defaults to "" (volume's root). |
| 7407 | }, |
| 7408 | ], |
| 7409 | "args": [ # (Optional) |
| 7410 | # |
| 7411 | # Cloud Run fully managed: supported |
| 7412 | # |
| 7413 | # Cloud Run for Anthos: supported |
| 7414 | # |
| 7415 | # Arguments to the entrypoint. |
| 7416 | # The docker image's CMD is used if this is not provided. |
| 7417 | # Variable references $(VAR_NAME) are expanded using the container's |
| 7418 | # environment. If a variable cannot be resolved, the reference in the input |
| 7419 | # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a |
| 7420 | # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, |
| 7421 | # regardless of whether the variable exists or not. |
| 7422 | # More info: |
| 7423 | # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell |
| 7424 | "A String", |
| 7425 | ], |
| 7426 | "workingDir": "A String", # (Optional) |
| 7427 | # |
| 7428 | # Cloud Run fully managed: not supported |
| 7429 | # |
| 7430 | # Cloud Run for Anthos: supported |
| 7431 | # |
| 7432 | # Container's working directory. |
| 7433 | # If not specified, the container runtime's default will be used, which |
| 7434 | # might be configured in the container image. |
| 7435 | "ports": [ # (Optional) |
| 7436 | # |
| 7437 | # List of ports to expose from the container. Only a single port can be |
| 7438 | # specified. The specified ports must be listening on all interfaces |
| 7439 | # (0.0.0.0) within the container to be accessible. |
| 7440 | # |
| 7441 | # If omitted, a port number will be chosen and passed to the container |
| 7442 | # through the PORT environment variable for the container to listen on. |
| 7443 | { # ContainerPort represents a network port in a single container. |
| 7444 | "containerPort": 42, # (Optional) |
| 7445 | # |
| 7446 | # Port number the container listens on. |
| 7447 | # This must be a valid port number, 0 < x < 65536. |
| 7448 | "protocol": "A String", # (Optional) |
| 7449 | # |
| 7450 | # Cloud Run fully managed: not supported |
| 7451 | # |
| 7452 | # Cloud Run for Anthos: supported |
| 7453 | # |
| 7454 | # Protocol for port. Must be "TCP". |
| 7455 | # Defaults to "TCP". |
| 7456 | "name": "A String", # (Optional) |
| 7457 | # |
| 7458 | # Cloud Run fully managed: not supported |
| 7459 | # |
| 7460 | # Cloud Run for Anthos: supported |
| 7461 | # |
| 7462 | # If specified, used to specify which protocol to use. |
| 7463 | # Allowed values are "http1" and "h2c". |
| 7464 | }, |
| 7465 | ], |
| 7466 | "image": "A String", # Cloud Run fully managed: only supports containers from Google Container |
| 7467 | # Registry |
| 7468 | # |
| 7469 | # Cloud Run for Anthos: supported |
| 7470 | # |
| 7471 | # URL of the Container image. |
| 7472 | # More info: https://kubernetes.io/docs/concepts/containers/images |
| 7473 | "envFrom": [ # (Optional) |
| 7474 | # |
| 7475 | # Cloud Run fully managed: not supported |
| 7476 | # |
| 7477 | # Cloud Run for Anthos: supported |
| 7478 | # |
| 7479 | # List of sources to populate environment variables in the container. |
| 7480 | # The keys defined within a source must be a C_IDENTIFIER. All invalid keys |
| 7481 | # will be reported as an event when the container is starting. When a key |
| 7482 | # exists in multiple sources, the value associated with the last source will |
| 7483 | # take precedence. Values defined by an Env with a duplicate key will take |
| 7484 | # precedence. Cannot be updated. |
| 7485 | { # Cloud Run fully managed: not supported |
| 7486 | # |
| 7487 | # Cloud Run for Anthos: supported |
| 7488 | # |
| 7489 | # EnvFromSource represents the source of a set of ConfigMaps |
| 7490 | "prefix": "A String", # (Optional) |
| 7491 | # |
| 7492 | # Cloud Run fully managed: not supported |
| 7493 | # |
| 7494 | # Cloud Run for Anthos: supported |
| 7495 | # |
| 7496 | # An optional identifier to prepend to each key in the ConfigMap. Must be a |
| 7497 | # C_IDENTIFIER. |
| 7498 | "configMapRef": { # Cloud Run fully managed: not supported # (Optional) |
| 7499 | # |
| 7500 | # Cloud Run fully managed: not supported |
| 7501 | # |
| 7502 | # Cloud Run for Anthos: supported |
| 7503 | # |
| 7504 | # The ConfigMap to select from |
| 7505 | # |
| 7506 | # Cloud Run for Anthos: supported |
| 7507 | # |
| 7508 | # ConfigMapEnvSource selects a ConfigMap to populate the environment |
| 7509 | # variables with. |
| 7510 | # |
| 7511 | # The contents of the target ConfigMap's Data field will represent the |
| 7512 | # key-value pairs as environment variables. |
| 7513 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 7514 | # directly into the message. Use the "name" field instead. |
| 7515 | # |
| 7516 | # Cloud Run for Anthos: supported |
| 7517 | # |
| 7518 | # LocalObjectReference contains enough information to let you locate the |
| 7519 | # referenced object inside the same namespace. |
| 7520 | "name": "A String", # (Optional) |
| 7521 | # |
| 7522 | # Cloud Run fully managed: not supported |
| 7523 | # |
| 7524 | # Cloud Run for Anthos: supported |
| 7525 | # |
| 7526 | # Name of the referent. |
| 7527 | # More info: |
| 7528 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 7529 | }, |
| 7530 | "optional": True or False, # (Optional) |
| 7531 | # |
| 7532 | # Cloud Run fully managed: not supported |
| 7533 | # |
| 7534 | # Cloud Run for Anthos: supported |
| 7535 | # |
| 7536 | # Specify whether the ConfigMap must be defined |
| 7537 | "name": "A String", # Cloud Run fully managed: not supported |
| 7538 | # |
| 7539 | # Cloud Run for Anthos: supported |
| 7540 | # |
| 7541 | # The ConfigMap to select from. |
| 7542 | }, |
| 7543 | "secretRef": { # Cloud Run fully managed: not supported # (Optional) |
| 7544 | # |
| 7545 | # Cloud Run fully managed: not supported |
| 7546 | # |
| 7547 | # Cloud Run for Anthos: supported |
| 7548 | # |
| 7549 | # The Secret to select from |
| 7550 | # |
| 7551 | # Cloud Run for Anthos: supported |
| 7552 | # |
| 7553 | # SecretEnvSource selects a Secret to populate the environment |
| 7554 | # variables with. |
| 7555 | # |
| 7556 | # The contents of the target Secret's Data field will represent the |
| 7557 | # key-value pairs as environment variables. |
| 7558 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 7559 | # directly into the message. Use the "name" field instead. |
| 7560 | # |
| 7561 | # Cloud Run for Anthos: supported |
| 7562 | # |
| 7563 | # LocalObjectReference contains enough information to let you locate the |
| 7564 | # referenced object inside the same namespace. |
| 7565 | "name": "A String", # (Optional) |
| 7566 | # |
| 7567 | # Cloud Run fully managed: not supported |
| 7568 | # |
| 7569 | # Cloud Run for Anthos: supported |
| 7570 | # |
| 7571 | # Name of the referent. |
| 7572 | # More info: |
| 7573 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 7574 | }, |
| 7575 | "optional": True or False, # (Optional) |
| 7576 | # |
| 7577 | # Cloud Run fully managed: not supported |
| 7578 | # |
| 7579 | # Cloud Run for Anthos: supported |
| 7580 | # |
| 7581 | # Specify whether the Secret must be defined |
| 7582 | "name": "A String", # Cloud Run fully managed: not supported |
| 7583 | # |
| 7584 | # Cloud Run for Anthos: supported |
| 7585 | # |
| 7586 | # The Secret to select from. |
| 7587 | }, |
| 7588 | }, |
| 7589 | ], |
| 7590 | "name": "A String", # (Optional) |
| 7591 | # |
| 7592 | # Name of the container specified as a DNS_LABEL. |
| 7593 | "command": [ |
| 7594 | "A String", |
| 7595 | ], |
| 7596 | "terminationMessagePolicy": "A String", # (Optional) |
| 7597 | # |
| 7598 | # Cloud Run fully managed: not supported |
| 7599 | # |
| 7600 | # Cloud Run for Anthos: supported |
| 7601 | # |
| 7602 | # Indicate how the termination message should be populated. File will use the |
| 7603 | # contents of terminationMessagePath to populate the container status message |
| 7604 | # on both success and failure. FallbackToLogsOnError will use the last chunk |
| 7605 | # of container log output if the termination message file is empty and the |
| 7606 | # container exited with an error. The log output is limited to 2048 bytes or |
| 7607 | # 80 lines, whichever is smaller. Defaults to File. Cannot be updated. |
| 7608 | "securityContext": { # Cloud Run fully managed: not supported # (Optional) |
| 7609 | # |
| 7610 | # Cloud Run fully managed: not supported |
| 7611 | # |
| 7612 | # Cloud Run for Anthos: supported |
| 7613 | # |
| 7614 | # Security options the pod should run with. |
| 7615 | # More info: https://kubernetes.io/docs/concepts/policy/security-context/ |
| 7616 | # More info: |
| 7617 | # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| 7618 | # |
| 7619 | # Cloud Run for Anthos: supported |
| 7620 | # |
| 7621 | # SecurityContext holds security configuration that will be applied to a |
| 7622 | # container. Some fields are present in both SecurityContext and |
| 7623 | # PodSecurityContext. When both are set, the values in SecurityContext take |
| 7624 | # precedence. |
| 7625 | "runAsUser": 42, # (Optional) |
| 7626 | # |
| 7627 | # Cloud Run fully managed: not supported |
| 7628 | # |
| 7629 | # Cloud Run for Anthos: supported |
| 7630 | # |
| 7631 | # The UID to run the entrypoint of the container process. |
| 7632 | # Defaults to user specified in image metadata if unspecified. |
| 7633 | # May also be set in PodSecurityContext. If set in both SecurityContext and |
| 7634 | # PodSecurityContext, the value specified in SecurityContext takes |
| 7635 | # precedence. |
| 7636 | }, |
| 7637 | "livenessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 7638 | # |
| 7639 | # Cloud Run fully managed: not supported |
| 7640 | # |
| 7641 | # Cloud Run for Anthos: supported |
| 7642 | # |
| 7643 | # Periodic probe of container liveness. |
| 7644 | # Container will be restarted if the probe fails. |
| 7645 | # More info: |
| 7646 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 7647 | # |
| 7648 | # Cloud Run for Anthos: supported |
| 7649 | # |
| 7650 | # Probe describes a health check to be performed against a container to |
| 7651 | # determine whether it is alive or ready to receive traffic. |
| 7652 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 7653 | # |
| 7654 | # Cloud Run fully managed: not supported |
| 7655 | # |
| 7656 | # Cloud Run for Anthos: supported |
| 7657 | # |
| 7658 | # HTTPGet specifies the http request to perform. |
| 7659 | # |
| 7660 | # A field inlined from the Handler message. |
| 7661 | # |
| 7662 | # Cloud Run for Anthos: supported |
| 7663 | # |
| 7664 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 7665 | "httpHeaders": [ # (Optional) |
| 7666 | # |
| 7667 | # Cloud Run fully managed: not supported |
| 7668 | # |
| 7669 | # Cloud Run for Anthos: supported |
| 7670 | # |
| 7671 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 7672 | { # Cloud Run fully managed: not supported |
| 7673 | # |
| 7674 | # Cloud Run for Anthos: supported |
| 7675 | # |
| 7676 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 7677 | "name": "A String", # Cloud Run fully managed: not supported |
| 7678 | # |
| 7679 | # Cloud Run for Anthos: supported |
| 7680 | # |
| 7681 | # The header field name |
| 7682 | "value": "A String", # Cloud Run fully managed: not supported |
| 7683 | # |
| 7684 | # Cloud Run for Anthos: supported |
| 7685 | # |
| 7686 | # The header field value |
| 7687 | }, |
| 7688 | ], |
| 7689 | "path": "A String", # (Optional) |
| 7690 | # |
| 7691 | # Cloud Run fully managed: not supported |
| 7692 | # |
| 7693 | # Cloud Run for Anthos: supported |
| 7694 | # |
| 7695 | # Path to access on the HTTP server. |
| 7696 | "host": "A String", # (Optional) |
| 7697 | # |
| 7698 | # Cloud Run fully managed: not supported |
| 7699 | # |
| 7700 | # Cloud Run for Anthos: supported |
| 7701 | # |
| 7702 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 7703 | # "Host" in httpHeaders instead. |
| 7704 | "scheme": "A String", # (Optional) |
| 7705 | # |
| 7706 | # Cloud Run fully managed: not supported |
| 7707 | # |
| 7708 | # Cloud Run for Anthos: supported |
| 7709 | # |
| 7710 | # Scheme to use for connecting to the host. |
| 7711 | # Defaults to HTTP. |
| 7712 | }, |
| 7713 | "failureThreshold": 42, # (Optional) |
| 7714 | # |
| 7715 | # Cloud Run fully managed: not supported |
| 7716 | # |
| 7717 | # Cloud Run for Anthos: supported |
| 7718 | # |
| 7719 | # Minimum consecutive failures for the probe to be considered failed after |
| 7720 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 7721 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 7722 | # |
| 7723 | # Cloud Run fully managed: not supported |
| 7724 | # |
| 7725 | # Cloud Run for Anthos: supported |
| 7726 | # |
| 7727 | # One and only one of the following should be specified. |
| 7728 | # Exec specifies the action to take. |
| 7729 | # |
| 7730 | # A field inlined from the Handler message. |
| 7731 | # |
| 7732 | # Cloud Run for Anthos: supported |
| 7733 | # |
| 7734 | # ExecAction describes a "run in container" action. |
| 7735 | "command": "A String", # (Optional) |
| 7736 | # |
| 7737 | # Cloud Run fully managed: not supported |
| 7738 | # |
| 7739 | # Cloud Run for Anthos: supported |
| 7740 | # |
| 7741 | # Command is the command line to execute inside the container, the working |
| 7742 | # directory for the command is root ('/') in the container's filesystem. The |
| 7743 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 7744 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 7745 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 7746 | # live/healthy and non-zero is unhealthy. |
| 7747 | }, |
| 7748 | "initialDelaySeconds": 42, # (Optional) |
| 7749 | # |
| 7750 | # Cloud Run fully managed: not supported |
| 7751 | # |
| 7752 | # Cloud Run for Anthos: supported |
| 7753 | # |
| 7754 | # Number of seconds after the container has started before liveness probes |
| 7755 | # are initiated. More info: |
| 7756 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 7757 | "timeoutSeconds": 42, # (Optional) |
| 7758 | # |
| 7759 | # Cloud Run fully managed: not supported |
| 7760 | # |
| 7761 | # Cloud Run for Anthos: supported |
| 7762 | # |
| 7763 | # Number of seconds after which the probe times out. |
| 7764 | # Defaults to 1 second. Minimum value is 1. |
| 7765 | # More info: |
| 7766 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 7767 | "successThreshold": 42, # (Optional) |
| 7768 | # |
| 7769 | # Cloud Run fully managed: not supported |
| 7770 | # |
| 7771 | # Cloud Run for Anthos: supported |
| 7772 | # |
| 7773 | # Minimum consecutive successes for the probe to be considered successful |
| 7774 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 7775 | # is 1. |
| 7776 | "periodSeconds": 42, # (Optional) |
| 7777 | # |
| 7778 | # Cloud Run fully managed: not supported |
| 7779 | # |
| 7780 | # Cloud Run for Anthos: supported |
| 7781 | # |
| 7782 | # How often (in seconds) to perform the probe. |
| 7783 | # Default to 10 seconds. Minimum value is 1. |
| 7784 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 7785 | # |
| 7786 | # Cloud Run fully managed: not supported |
| 7787 | # |
| 7788 | # Cloud Run for Anthos: supported |
| 7789 | # |
| 7790 | # TCPSocket specifies an action involving a TCP port. |
| 7791 | # TCP hooks not yet supported |
| 7792 | # |
| 7793 | # A field inlined from the Handler message. |
| 7794 | # |
| 7795 | # Cloud Run for Anthos: supported |
| 7796 | # |
| 7797 | # TCPSocketAction describes an action based on opening a socket |
| 7798 | "port": 42, # Cloud Run fully managed: not supported |
| 7799 | # |
| 7800 | # Cloud Run for Anthos: supported |
| 7801 | # |
| 7802 | # Number or name of the port to access on the container. |
| 7803 | # Number must be in the range 1 to 65535. |
| 7804 | # Name must be an IANA_SVC_NAME. |
| 7805 | # |
| 7806 | # This field is currently limited to integer types only because of proto's |
| 7807 | # inability to properly support the IntOrString golang type. |
| 7808 | "host": "A String", # (Optional) |
| 7809 | # |
| 7810 | # Cloud Run fully managed: not supported |
| 7811 | # |
| 7812 | # Cloud Run for Anthos: supported |
| 7813 | # |
| 7814 | # Optional: Host name to connect to, defaults to the pod IP. |
| 7815 | }, |
| 7816 | }, |
| 7817 | "env": [ # (Optional) |
| 7818 | # |
| 7819 | # Cloud Run fully managed: supported |
| 7820 | # |
| 7821 | # Cloud Run for Anthos: supported |
| 7822 | # |
| 7823 | # List of environment variables to set in the container. |
| 7824 | { # EnvVar represents an environment variable present in a Container. |
| 7825 | "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER. |
| 7826 | "valueFrom": { # Cloud Run fully managed: not supported # (Optional) |
| 7827 | # |
| 7828 | # Cloud Run fully managed: not supported |
| 7829 | # |
| 7830 | # Cloud Run for Anthos: supported |
| 7831 | # |
| 7832 | # Source for the environment variable's value. Cannot be used if value is not |
| 7833 | # empty. |
| 7834 | # |
| 7835 | # Cloud Run for Anthos: supported |
| 7836 | # |
| 7837 | # EnvVarSource represents a source for the value of an EnvVar. |
| 7838 | "secretKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 7839 | # |
| 7840 | # Cloud Run fully managed: not supported |
| 7841 | # |
| 7842 | # Cloud Run for Anthos: supported |
| 7843 | # |
| 7844 | # Selects a key of a secret in the pod's namespace |
| 7845 | # |
| 7846 | # Cloud Run for Anthos: supported |
| 7847 | # |
| 7848 | # SecretKeySelector selects a key of a Secret. |
| 7849 | "key": "A String", # Cloud Run fully managed: not supported |
| 7850 | # |
| 7851 | # Cloud Run for Anthos: supported |
| 7852 | # |
| 7853 | # The key of the secret to select from. Must be a valid secret key. |
| 7854 | "name": "A String", # Cloud Run fully managed: not supported |
| 7855 | # |
| 7856 | # Cloud Run for Anthos: supported |
| 7857 | # |
| 7858 | # The name of the secret in the pod's namespace to select from. |
| 7859 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 7860 | # directly into the message. Use the "name" field instead. |
| 7861 | # |
| 7862 | # Cloud Run for Anthos: supported |
| 7863 | # |
| 7864 | # LocalObjectReference contains enough information to let you locate the |
| 7865 | # referenced object inside the same namespace. |
| 7866 | "name": "A String", # (Optional) |
| 7867 | # |
| 7868 | # Cloud Run fully managed: not supported |
| 7869 | # |
| 7870 | # Cloud Run for Anthos: supported |
| 7871 | # |
| 7872 | # Name of the referent. |
| 7873 | # More info: |
| 7874 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 7875 | }, |
| 7876 | "optional": True or False, # (Optional) |
| 7877 | # |
| 7878 | # Cloud Run fully managed: not supported |
| 7879 | # |
| 7880 | # Cloud Run for Anthos: supported |
| 7881 | # |
| 7882 | # Specify whether the Secret or its key must be defined |
| 7883 | }, |
| 7884 | "configMapKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 7885 | # |
| 7886 | # Cloud Run fully managed: not supported |
| 7887 | # |
| 7888 | # Cloud Run for Anthos: supported |
| 7889 | # |
| 7890 | # Selects a key of a ConfigMap. |
| 7891 | # |
| 7892 | # Cloud Run for Anthos: supported |
| 7893 | # |
| 7894 | # Selects a key from a ConfigMap. |
| 7895 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 7896 | # directly into the message. Use the "name" field instead. |
| 7897 | # |
| 7898 | # Cloud Run for Anthos: supported |
| 7899 | # |
| 7900 | # LocalObjectReference contains enough information to let you locate the |
| 7901 | # referenced object inside the same namespace. |
| 7902 | "name": "A String", # (Optional) |
| 7903 | # |
| 7904 | # Cloud Run fully managed: not supported |
| 7905 | # |
| 7906 | # Cloud Run for Anthos: supported |
| 7907 | # |
| 7908 | # Name of the referent. |
| 7909 | # More info: |
| 7910 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 7911 | }, |
| 7912 | "optional": True or False, # (Optional) |
| 7913 | # |
| 7914 | # Cloud Run fully managed: not supported |
| 7915 | # |
| 7916 | # Cloud Run for Anthos: supported |
| 7917 | # |
| 7918 | # Specify whether the ConfigMap or its key must be defined |
| 7919 | "key": "A String", # Cloud Run fully managed: not supported |
| 7920 | # |
| 7921 | # Cloud Run for Anthos: supported |
| 7922 | # |
| 7923 | # The key to select. |
| 7924 | "name": "A String", # Cloud Run fully managed: not supported |
| 7925 | # |
| 7926 | # Cloud Run for Anthos: supported |
| 7927 | # |
| 7928 | # The ConfigMap to select from. |
| 7929 | }, |
| 7930 | }, |
| 7931 | "value": "A String", # (Optional) |
| 7932 | # |
| 7933 | # Variable references $(VAR_NAME) are expanded |
| 7934 | # using the previous defined environment variables in the container and |
| 7935 | # any route environment variables. If a variable cannot be resolved, |
| 7936 | # the reference in the input string will be unchanged. The $(VAR_NAME) |
| 7937 | # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped |
| 7938 | # references will never be expanded, regardless of whether the variable |
| 7939 | # exists or not. |
| 7940 | # Defaults to "". |
| 7941 | }, |
| 7942 | ], |
| 7943 | "resources": { # ResourceRequirements describes the compute resource requirements. # (Optional) |
| 7944 | # |
| 7945 | # Cloud Run fully managed: supported |
| 7946 | # |
| 7947 | # Cloud Run for Anthos: supported |
| 7948 | # |
| 7949 | # Compute Resources required by this container. |
| 7950 | # More info: |
| 7951 | # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources |
| 7952 | "limits": { # (Optional) |
| 7953 | # |
| 7954 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 7955 | # supported value for CPU is '1'. |
| 7956 | # |
| 7957 | # Cloud Run for Anthos: supported |
| 7958 | # |
| 7959 | # Limits describes the maximum amount of compute resources allowed. |
| 7960 | # The values of the map is string form of the 'quantity' k8s type: |
| 7961 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 7962 | "a_key": "A String", |
| 7963 | }, |
| 7964 | "requests": { # (Optional) |
| 7965 | # |
| 7966 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 7967 | # supported value for CPU is '1'. |
| 7968 | # |
| 7969 | # Cloud Run for Anthos: supported |
| 7970 | # |
| 7971 | # Requests describes the minimum amount of compute resources required. |
| 7972 | # If Requests is omitted for a container, it defaults to Limits if that is |
| 7973 | # explicitly specified, otherwise to an implementation-defined value. |
| 7974 | # The values of the map is string form of the 'quantity' k8s type: |
| 7975 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 7976 | "a_key": "A String", |
| 7977 | }, |
| 7978 | }, |
| 7979 | "readinessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 7980 | # |
| 7981 | # Cloud Run fully managed: not supported |
| 7982 | # |
| 7983 | # Cloud Run for Anthos: supported |
| 7984 | # |
| 7985 | # Periodic probe of container service readiness. |
| 7986 | # Container will be removed from service endpoints if the probe fails. |
| 7987 | # More info: |
| 7988 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 7989 | # |
| 7990 | # Cloud Run for Anthos: supported |
| 7991 | # |
| 7992 | # Probe describes a health check to be performed against a container to |
| 7993 | # determine whether it is alive or ready to receive traffic. |
| 7994 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 7995 | # |
| 7996 | # Cloud Run fully managed: not supported |
| 7997 | # |
| 7998 | # Cloud Run for Anthos: supported |
| 7999 | # |
| 8000 | # HTTPGet specifies the http request to perform. |
| 8001 | # |
| 8002 | # A field inlined from the Handler message. |
| 8003 | # |
| 8004 | # Cloud Run for Anthos: supported |
| 8005 | # |
| 8006 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 8007 | "httpHeaders": [ # (Optional) |
| 8008 | # |
| 8009 | # Cloud Run fully managed: not supported |
| 8010 | # |
| 8011 | # Cloud Run for Anthos: supported |
| 8012 | # |
| 8013 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 8014 | { # Cloud Run fully managed: not supported |
| 8015 | # |
| 8016 | # Cloud Run for Anthos: supported |
| 8017 | # |
| 8018 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 8019 | "name": "A String", # Cloud Run fully managed: not supported |
| 8020 | # |
| 8021 | # Cloud Run for Anthos: supported |
| 8022 | # |
| 8023 | # The header field name |
| 8024 | "value": "A String", # Cloud Run fully managed: not supported |
| 8025 | # |
| 8026 | # Cloud Run for Anthos: supported |
| 8027 | # |
| 8028 | # The header field value |
| 8029 | }, |
| 8030 | ], |
| 8031 | "path": "A String", # (Optional) |
| 8032 | # |
| 8033 | # Cloud Run fully managed: not supported |
| 8034 | # |
| 8035 | # Cloud Run for Anthos: supported |
| 8036 | # |
| 8037 | # Path to access on the HTTP server. |
| 8038 | "host": "A String", # (Optional) |
| 8039 | # |
| 8040 | # Cloud Run fully managed: not supported |
| 8041 | # |
| 8042 | # Cloud Run for Anthos: supported |
| 8043 | # |
| 8044 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 8045 | # "Host" in httpHeaders instead. |
| 8046 | "scheme": "A String", # (Optional) |
| 8047 | # |
| 8048 | # Cloud Run fully managed: not supported |
| 8049 | # |
| 8050 | # Cloud Run for Anthos: supported |
| 8051 | # |
| 8052 | # Scheme to use for connecting to the host. |
| 8053 | # Defaults to HTTP. |
| 8054 | }, |
| 8055 | "failureThreshold": 42, # (Optional) |
| 8056 | # |
| 8057 | # Cloud Run fully managed: not supported |
| 8058 | # |
| 8059 | # Cloud Run for Anthos: supported |
| 8060 | # |
| 8061 | # Minimum consecutive failures for the probe to be considered failed after |
| 8062 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 8063 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 8064 | # |
| 8065 | # Cloud Run fully managed: not supported |
| 8066 | # |
| 8067 | # Cloud Run for Anthos: supported |
| 8068 | # |
| 8069 | # One and only one of the following should be specified. |
| 8070 | # Exec specifies the action to take. |
| 8071 | # |
| 8072 | # A field inlined from the Handler message. |
| 8073 | # |
| 8074 | # Cloud Run for Anthos: supported |
| 8075 | # |
| 8076 | # ExecAction describes a "run in container" action. |
| 8077 | "command": "A String", # (Optional) |
| 8078 | # |
| 8079 | # Cloud Run fully managed: not supported |
| 8080 | # |
| 8081 | # Cloud Run for Anthos: supported |
| 8082 | # |
| 8083 | # Command is the command line to execute inside the container, the working |
| 8084 | # directory for the command is root ('/') in the container's filesystem. The |
| 8085 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 8086 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 8087 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 8088 | # live/healthy and non-zero is unhealthy. |
| 8089 | }, |
| 8090 | "initialDelaySeconds": 42, # (Optional) |
| 8091 | # |
| 8092 | # Cloud Run fully managed: not supported |
| 8093 | # |
| 8094 | # Cloud Run for Anthos: supported |
| 8095 | # |
| 8096 | # Number of seconds after the container has started before liveness probes |
| 8097 | # are initiated. More info: |
| 8098 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 8099 | "timeoutSeconds": 42, # (Optional) |
| 8100 | # |
| 8101 | # Cloud Run fully managed: not supported |
| 8102 | # |
| 8103 | # Cloud Run for Anthos: supported |
| 8104 | # |
| 8105 | # Number of seconds after which the probe times out. |
| 8106 | # Defaults to 1 second. Minimum value is 1. |
| 8107 | # More info: |
| 8108 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 8109 | "successThreshold": 42, # (Optional) |
| 8110 | # |
| 8111 | # Cloud Run fully managed: not supported |
| 8112 | # |
| 8113 | # Cloud Run for Anthos: supported |
| 8114 | # |
| 8115 | # Minimum consecutive successes for the probe to be considered successful |
| 8116 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 8117 | # is 1. |
| 8118 | "periodSeconds": 42, # (Optional) |
| 8119 | # |
| 8120 | # Cloud Run fully managed: not supported |
| 8121 | # |
| 8122 | # Cloud Run for Anthos: supported |
| 8123 | # |
| 8124 | # How often (in seconds) to perform the probe. |
| 8125 | # Default to 10 seconds. Minimum value is 1. |
| 8126 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 8127 | # |
| 8128 | # Cloud Run fully managed: not supported |
| 8129 | # |
| 8130 | # Cloud Run for Anthos: supported |
| 8131 | # |
| 8132 | # TCPSocket specifies an action involving a TCP port. |
| 8133 | # TCP hooks not yet supported |
| 8134 | # |
| 8135 | # A field inlined from the Handler message. |
| 8136 | # |
| 8137 | # Cloud Run for Anthos: supported |
| 8138 | # |
| 8139 | # TCPSocketAction describes an action based on opening a socket |
| 8140 | "port": 42, # Cloud Run fully managed: not supported |
| 8141 | # |
| 8142 | # Cloud Run for Anthos: supported |
| 8143 | # |
| 8144 | # Number or name of the port to access on the container. |
| 8145 | # Number must be in the range 1 to 65535. |
| 8146 | # Name must be an IANA_SVC_NAME. |
| 8147 | # |
| 8148 | # This field is currently limited to integer types only because of proto's |
| 8149 | # inability to properly support the IntOrString golang type. |
| 8150 | "host": "A String", # (Optional) |
| 8151 | # |
| 8152 | # Cloud Run fully managed: not supported |
| 8153 | # |
| 8154 | # Cloud Run for Anthos: supported |
| 8155 | # |
| 8156 | # Optional: Host name to connect to, defaults to the pod IP. |
| 8157 | }, |
| 8158 | }, |
| 8159 | "imagePullPolicy": "A String", # (Optional) |
| 8160 | # |
| 8161 | # Cloud Run fully managed: not supported |
| 8162 | # |
| 8163 | # Cloud Run for Anthos: supported |
| 8164 | # |
| 8165 | # Image pull policy. |
| 8166 | # One of Always, Never, IfNotPresent. |
| 8167 | # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. |
| 8168 | # More info: |
| 8169 | # https://kubernetes.io/docs/concepts/containers/images#updating-images |
| 8170 | "terminationMessagePath": "A String", # (Optional) |
| 8171 | # |
| 8172 | # Cloud Run fully managed: not supported |
| 8173 | # |
| 8174 | # Cloud Run for Anthos: supported |
| 8175 | # |
| 8176 | # Path at which the file to which the container's termination |
| 8177 | # message will be written is mounted into the container's filesystem. Message |
| 8178 | # written is intended to be brief final status, such as an assertion failure |
| 8179 | # message. Will be truncated by the node if greater than 4096 bytes. The |
| 8180 | # total message length across all containers will be limited to 12kb. |
| 8181 | # Defaults to /dev/termination-log. |
| 8182 | }, |
| 8183 | ], |
| 8184 | }, |
| 8185 | }, |
| 8186 | }, |
| 8187 | "kind": "A String", # The kind of resource, in this case "Service". |
| 8188 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Metadata associated with this Service, including name, namespace, labels, |
| 8189 | # and annotations. |
| 8190 | # persisted resources must have, which includes all objects users must create. |
| 8191 | "creationTimestamp": "A String", # (Optional) |
| 8192 | # |
| 8193 | # CreationTimestamp is a timestamp representing the server time when this |
| 8194 | # object was created. It is not guaranteed to be set in happens-before order |
| 8195 | # across separate operations. Clients may not set this value. It is |
| 8196 | # represented in RFC3339 form and is in UTC. |
| 8197 | # |
| 8198 | # Populated by the system. |
| 8199 | # Read-only. |
| 8200 | # Null for lists. |
| 8201 | # More info: |
| 8202 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 8203 | "labels": { # (Optional) |
| 8204 | # |
| 8205 | # Map of string keys and values that can be used to organize and categorize |
| 8206 | # (scope and select) objects. May match selectors of replication controllers |
| 8207 | # and routes. |
| 8208 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 8209 | "a_key": "A String", |
| 8210 | }, |
| 8211 | "generation": 42, # (Optional) |
| 8212 | # |
| 8213 | # A sequence number representing a specific generation of the desired state. |
| 8214 | # Populated by the system. Read-only. |
| 8215 | "resourceVersion": "A String", # (Optional) |
| 8216 | # |
| 8217 | # An opaque value that represents the internal version of this object that |
| 8218 | # can be used by clients to determine when objects have changed. May be used |
| 8219 | # for optimistic concurrency, change detection, and the watch operation on a |
| 8220 | # resource or set of resources. Clients must treat these values as opaque and |
| 8221 | # passed unmodified back to the server. They may only be valid for a |
| 8222 | # particular resource or set of resources. |
| 8223 | # |
| 8224 | # Populated by the system. |
| 8225 | # Read-only. |
| 8226 | # Value must be treated as opaque by clients and . |
| 8227 | # More info: |
| 8228 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 8229 | "selfLink": "A String", # (Optional) |
| 8230 | # |
| 8231 | # SelfLink is a URL representing this object. |
| 8232 | # Populated by the system. |
| 8233 | # Read-only. |
| 8234 | # string selfLink = 4; |
| 8235 | "uid": "A String", # (Optional) |
| 8236 | # |
| 8237 | # UID is the unique in time and space value for this object. It is typically |
| 8238 | # generated by the server on successful creation of a resource and is not |
| 8239 | # allowed to change on PUT operations. |
| 8240 | # |
| 8241 | # Populated by the system. |
| 8242 | # Read-only. |
| 8243 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 8244 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 8245 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 8246 | # project ID or project number. |
| 8247 | "annotations": { # (Optional) |
| 8248 | # |
| 8249 | # Annotations is an unstructured key value map stored with a resource that |
| 8250 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 8251 | # are not queryable and should be preserved when modifying objects. More |
| 8252 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 8253 | "a_key": "A String", |
| 8254 | }, |
| 8255 | "generateName": "A String", # (Optional) |
| 8256 | # |
| 8257 | # Cloud Run fully managed: not supported |
| 8258 | # |
| 8259 | # Cloud Run for Anthos: supported |
| 8260 | # |
| 8261 | # GenerateName is an optional prefix, used by the server, to generate a |
| 8262 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 8263 | # used, the name returned to the client will be different than the name |
| 8264 | # passed. This value will also be combined with a unique suffix. The provided |
| 8265 | # value has the same validation rules as the Name field, and may be truncated |
| 8266 | # by the length of the suffix required to make the value unique on the |
| 8267 | # server. |
| 8268 | # |
| 8269 | # If this field is specified and the generated name exists, the server will |
| 8270 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 8271 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 8272 | # time allotted, and the client should retry (optionally after the time |
| 8273 | # indicated in the Retry-After header). |
| 8274 | # |
| 8275 | # Applied only if Name is not specified. |
| 8276 | # More info: |
| 8277 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 8278 | # string generateName = 2; |
| 8279 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 8280 | # Is required when creating |
| 8281 | # resources, although some resources may allow a client to request the |
| 8282 | # generation of an appropriate name automatically. Name is primarily intended |
| 8283 | # for creation idempotence and configuration definition. Cannot be updated. |
| 8284 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 8285 | # +optional |
| 8286 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 8287 | # |
| 8288 | # Cloud Run fully managed: not supported |
| 8289 | # |
| 8290 | # Cloud Run for Anthos: supported |
| 8291 | # |
| 8292 | # Number of seconds allowed for this object to gracefully terminate before |
| 8293 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 8294 | # set. May only be shortened. Read-only. |
| 8295 | "clusterName": "A String", # (Optional) |
| 8296 | # |
| 8297 | # Cloud Run fully managed: not supported |
| 8298 | # |
| 8299 | # Cloud Run for Anthos: supported |
| 8300 | # |
| 8301 | # The name of the cluster which the object belongs to. |
| 8302 | # This is used to distinguish resources with same name and namespace in |
| 8303 | # different clusters. This field is not set anywhere right now and apiserver |
| 8304 | # is going to ignore it if set in create or update request. |
| 8305 | "finalizers": [ # (Optional) |
| 8306 | # |
| 8307 | # Cloud Run fully managed: not supported |
| 8308 | # |
| 8309 | # Cloud Run for Anthos: supported |
| 8310 | # |
| 8311 | # Must be empty before the object is deleted from the registry. Each entry |
| 8312 | # is an identifier for the responsible component that will remove the entry |
| 8313 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 8314 | # in this list can only be removed. |
| 8315 | # +patchStrategy=merge |
| 8316 | "A String", |
| 8317 | ], |
| 8318 | "deletionTimestamp": "A String", # (Optional) |
| 8319 | # |
| 8320 | # Cloud Run fully managed: not supported |
| 8321 | # |
| 8322 | # Cloud Run for Anthos: supported |
| 8323 | # |
| 8324 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 8325 | # deleted. This field is set by the server when a graceful deletion is |
| 8326 | # requested by the user, and is not directly settable by a client. The |
| 8327 | # resource is expected to be deleted (no longer visible from resource lists, |
| 8328 | # and not reachable by name) after the time in this field, once the |
| 8329 | # finalizers list is empty. As long as the finalizers list contains items, |
| 8330 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 8331 | # be unset or be set further into the future, although it may be shortened or |
| 8332 | # the resource may be deleted prior to this time. For example, a user may |
| 8333 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 8334 | # sending a graceful termination signal to the containers in the pod. After |
| 8335 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 8336 | # to the container and after cleanup, remove the pod from the API. In the |
| 8337 | # presence of network partitions, this object may still exist after this |
| 8338 | # timestamp, until an administrator or automated process can determine the |
| 8339 | # resource is fully terminated. |
| 8340 | # If not set, graceful deletion of the object has not been requested. |
| 8341 | # |
| 8342 | # Populated by the system when a graceful deletion is requested. |
| 8343 | # Read-only. |
| 8344 | # More info: |
| 8345 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 8346 | "ownerReferences": [ # (Optional) |
| 8347 | # |
| 8348 | # Cloud Run fully managed: not supported |
| 8349 | # |
| 8350 | # Cloud Run for Anthos: supported |
| 8351 | # |
| 8352 | # List of objects that own this object. If ALL objects in the list have |
| 8353 | # been deleted, this object will be garbage collected. |
| 8354 | { # OwnerReference contains enough information to let you identify an owning |
| 8355 | # object. Currently, an owning object must be in the same namespace, so there |
| 8356 | # is no namespace field. |
| 8357 | "uid": "A String", # UID of the referent. |
| 8358 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 8359 | "controller": True or False, # If true, this reference points to the managing controller. |
| 8360 | # +optional |
| 8361 | "kind": "A String", # Kind of the referent. |
| 8362 | # More info: |
| 8363 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 8364 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 8365 | # the owner cannot be deleted from the key-value store until this |
| 8366 | # reference is removed. |
| 8367 | # Defaults to false. |
| 8368 | # To set this field, a user needs "delete" permission of the owner, |
| 8369 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 8370 | # +optional |
| 8371 | "apiVersion": "A String", # API version of the referent. |
| 8372 | "name": "A String", # Name of the referent. |
| 8373 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 8374 | }, |
| 8375 | ], |
| 8376 | }, |
| 8377 | } |
| 8378 | |
| 8379 | x__xgafv: string, V1 error format. |
| 8380 | Allowed values |
| 8381 | 1 - v1 error format |
| 8382 | 2 - v2 error format |
| 8383 | |
| 8384 | Returns: |
| 8385 | An object of the form: |
| 8386 | |
| 8387 | { # Service acts as a top-level container that manages a set of Routes and |
| 8388 | # Configurations which implement a network service. Service exists to provide a |
| 8389 | # singular abstraction which can be access controlled, reasoned about, and |
| 8390 | # which encapsulates software lifecycle decisions such as rollout policy and |
| 8391 | # team resource ownership. Service acts only as an orchestrator of the |
| 8392 | # underlying Routes and Configurations (much as a kubernetes Deployment |
| 8393 | # orchestrates ReplicaSets). |
| 8394 | # |
| 8395 | # The Service's controller will track the statuses of its owned Configuration |
| 8396 | # and Route, reflecting their statuses and conditions as its own. |
| 8397 | # |
| 8398 | # See also: |
| 8399 | # https://github.com/knative/serving/blob/master/docs/spec/overview.md#service |
| 8400 | "status": { # The current state of the Service. Output only. # Status communicates the observed state of the Service (from the |
| 8401 | # controller). |
| 8402 | "latestCreatedRevisionName": "A String", # From ConfigurationStatus. |
| 8403 | # LatestCreatedRevisionName is the last revision that was created from this |
| 8404 | # Service's Configuration. It might not be ready yet, for that use |
| 8405 | # LatestReadyRevisionName. |
| 8406 | "conditions": [ # Conditions communicates information about ongoing/complete |
| 8407 | # reconciliation processes that bring the "spec" inline with the observed |
| 8408 | # state of the world. |
| 8409 | # Service-specific conditions include: |
| 8410 | # * "ConfigurationsReady": true when the underlying Configuration is ready. |
| 8411 | # * "RoutesReady": true when the underlying Route is ready. |
| 8412 | # * "Ready": true when both the underlying Route and Configuration are |
| 8413 | # ready. |
| 8414 | { # Condition defines a generic condition for a Resource |
| 8415 | "message": "A String", # Optional. Human readable message indicating details about the current status. |
| 8416 | "lastTransitionTime": "A String", # Optional. Last time the condition transitioned from one status to another. |
| 8417 | "status": "A String", # Status of the condition, one of True, False, Unknown. |
| 8418 | "severity": "A String", # Optional. How to interpret failures of this condition, one of Error, Warning, Info |
| 8419 | "reason": "A String", # Optional. One-word CamelCase reason for the condition's last transition. |
| 8420 | "type": "A String", # type is used to communicate the status of the reconciliation process. |
| 8421 | # See also: |
| 8422 | # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting |
| 8423 | # Types common to all resources include: |
| 8424 | # * "Ready": True when the Resource is ready. |
| 8425 | }, |
| 8426 | ], |
| 8427 | "address": { # Information for connecting over HTTP(s). # From RouteStatus. |
| 8428 | # Similar to url, information on where the service is available on HTTP. |
| 8429 | "url": "A String", |
| 8430 | }, |
| 8431 | "observedGeneration": 42, # ObservedGeneration is the 'Generation' of the Route that |
| 8432 | # was last processed by the controller. |
| 8433 | # |
| 8434 | # Clients polling for completed reconciliation should poll until |
| 8435 | # observedGeneration = metadata.generation and the Ready condition's status |
| 8436 | # is True or False. |
| 8437 | "url": "A String", # From RouteStatus. |
| 8438 | # URL holds the url that will distribute traffic over the provided traffic |
| 8439 | # targets. It generally has the form |
| 8440 | # https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app |
| 8441 | "traffic": [ # From RouteStatus. |
| 8442 | # Traffic holds the configured traffic distribution. |
| 8443 | # These entries will always contain RevisionName references. |
| 8444 | # When ConfigurationName appears in the spec, this will hold the |
| 8445 | # LatestReadyRevisionName that we last observed. |
| 8446 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 8447 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 8448 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 8449 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 8450 | # (e.g. basic auth, url path, etc. |
| 8451 | # |
| 8452 | # Not currently supported in Cloud Run. |
| 8453 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 8454 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 8455 | # of the referenced configuration changes, we will automatically migrate |
| 8456 | # traffic from the prior "latest ready" revision to the new one. This field |
| 8457 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 8458 | # with RevisionName. |
| 8459 | # |
| 8460 | # Cloud Run currently supports a single ConfigurationName. |
| 8461 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 8462 | # This defaults to zero if unspecified. |
| 8463 | # |
| 8464 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 8465 | # TrafficTarget entry. |
| 8466 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 8467 | # traffic. This is mutually exclusive with ConfigurationName. |
| 8468 | # |
| 8469 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 8470 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 8471 | # ready Revision of the Configuration should be used for this traffic |
| 8472 | # target. When provided LatestRevision must be true if RevisionName is |
| 8473 | # empty; it must be false when RevisionName is non-empty. |
| 8474 | # |
| 8475 | # +optional |
| 8476 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 8477 | # this target exclusively. |
| 8478 | # |
| 8479 | # Not currently supported in Cloud Run. |
| 8480 | # +optional |
| 8481 | }, |
| 8482 | ], |
| 8483 | "latestReadyRevisionName": "A String", # From ConfigurationStatus. |
| 8484 | # LatestReadyRevisionName holds the name of the latest Revision stamped out |
| 8485 | # from this Service's Configuration that has had its "Ready" condition become |
| 8486 | # "True". |
| 8487 | }, |
| 8488 | "apiVersion": "A String", # The API version for this call such as "serving.knative.dev/v1". |
| 8489 | "spec": { # ServiceSpec holds the desired state of the Route (from the client), which # Spec holds the desired state of the Service (from the client). |
| 8490 | # is used to manipulate the underlying Route and Configuration(s). |
| 8491 | "traffic": [ # Traffic specifies how to distribute traffic over a collection of Knative |
| 8492 | # Revisions and Configurations. |
| 8493 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 8494 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 8495 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 8496 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 8497 | # (e.g. basic auth, url path, etc. |
| 8498 | # |
| 8499 | # Not currently supported in Cloud Run. |
| 8500 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 8501 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 8502 | # of the referenced configuration changes, we will automatically migrate |
| 8503 | # traffic from the prior "latest ready" revision to the new one. This field |
| 8504 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 8505 | # with RevisionName. |
| 8506 | # |
| 8507 | # Cloud Run currently supports a single ConfigurationName. |
| 8508 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 8509 | # This defaults to zero if unspecified. |
| 8510 | # |
| 8511 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 8512 | # TrafficTarget entry. |
| 8513 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 8514 | # traffic. This is mutually exclusive with ConfigurationName. |
| 8515 | # |
| 8516 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 8517 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 8518 | # ready Revision of the Configuration should be used for this traffic |
| 8519 | # target. When provided LatestRevision must be true if RevisionName is |
| 8520 | # empty; it must be false when RevisionName is non-empty. |
| 8521 | # |
| 8522 | # +optional |
| 8523 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 8524 | # this target exclusively. |
| 8525 | # |
| 8526 | # Not currently supported in Cloud Run. |
| 8527 | # +optional |
| 8528 | }, |
| 8529 | ], |
| 8530 | "template": { # RevisionTemplateSpec describes the data a revision should have when created # Template holds the latest specification for the Revision to |
| 8531 | # be stamped out. |
| 8532 | # from a template. Based on: |
| 8533 | # https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190 |
| 8534 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Optional metadata for this Revision, including labels and annotations. Name |
| 8535 | # will be generated by the Configuration. |
| 8536 | # To set minimum instances for this revision, use the |
| 8537 | # "autoscaling.knative.dev/minScale" annotation key. |
| 8538 | # To set maximum instances for this revision, use the |
| 8539 | # "autoscaling.knative.dev/maxScale" annotation key. |
| 8540 | # To set Cloud SQL connections for the revision, use the |
| 8541 | # "run.googleapis.com/cloudsql-instances" annotation key. |
| 8542 | # persisted resources must have, which includes all objects users must create. |
| 8543 | "creationTimestamp": "A String", # (Optional) |
| 8544 | # |
| 8545 | # CreationTimestamp is a timestamp representing the server time when this |
| 8546 | # object was created. It is not guaranteed to be set in happens-before order |
| 8547 | # across separate operations. Clients may not set this value. It is |
| 8548 | # represented in RFC3339 form and is in UTC. |
| 8549 | # |
| 8550 | # Populated by the system. |
| 8551 | # Read-only. |
| 8552 | # Null for lists. |
| 8553 | # More info: |
| 8554 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 8555 | "labels": { # (Optional) |
| 8556 | # |
| 8557 | # Map of string keys and values that can be used to organize and categorize |
| 8558 | # (scope and select) objects. May match selectors of replication controllers |
| 8559 | # and routes. |
| 8560 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 8561 | "a_key": "A String", |
| 8562 | }, |
| 8563 | "generation": 42, # (Optional) |
| 8564 | # |
| 8565 | # A sequence number representing a specific generation of the desired state. |
| 8566 | # Populated by the system. Read-only. |
| 8567 | "resourceVersion": "A String", # (Optional) |
| 8568 | # |
| 8569 | # An opaque value that represents the internal version of this object that |
| 8570 | # can be used by clients to determine when objects have changed. May be used |
| 8571 | # for optimistic concurrency, change detection, and the watch operation on a |
| 8572 | # resource or set of resources. Clients must treat these values as opaque and |
| 8573 | # passed unmodified back to the server. They may only be valid for a |
| 8574 | # particular resource or set of resources. |
| 8575 | # |
| 8576 | # Populated by the system. |
| 8577 | # Read-only. |
| 8578 | # Value must be treated as opaque by clients and . |
| 8579 | # More info: |
| 8580 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 8581 | "selfLink": "A String", # (Optional) |
| 8582 | # |
| 8583 | # SelfLink is a URL representing this object. |
| 8584 | # Populated by the system. |
| 8585 | # Read-only. |
| 8586 | # string selfLink = 4; |
| 8587 | "uid": "A String", # (Optional) |
| 8588 | # |
| 8589 | # UID is the unique in time and space value for this object. It is typically |
| 8590 | # generated by the server on successful creation of a resource and is not |
| 8591 | # allowed to change on PUT operations. |
| 8592 | # |
| 8593 | # Populated by the system. |
| 8594 | # Read-only. |
| 8595 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 8596 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 8597 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 8598 | # project ID or project number. |
| 8599 | "annotations": { # (Optional) |
| 8600 | # |
| 8601 | # Annotations is an unstructured key value map stored with a resource that |
| 8602 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 8603 | # are not queryable and should be preserved when modifying objects. More |
| 8604 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 8605 | "a_key": "A String", |
| 8606 | }, |
| 8607 | "generateName": "A String", # (Optional) |
| 8608 | # |
| 8609 | # Cloud Run fully managed: not supported |
| 8610 | # |
| 8611 | # Cloud Run for Anthos: supported |
| 8612 | # |
| 8613 | # GenerateName is an optional prefix, used by the server, to generate a |
| 8614 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 8615 | # used, the name returned to the client will be different than the name |
| 8616 | # passed. This value will also be combined with a unique suffix. The provided |
| 8617 | # value has the same validation rules as the Name field, and may be truncated |
| 8618 | # by the length of the suffix required to make the value unique on the |
| 8619 | # server. |
| 8620 | # |
| 8621 | # If this field is specified and the generated name exists, the server will |
| 8622 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 8623 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 8624 | # time allotted, and the client should retry (optionally after the time |
| 8625 | # indicated in the Retry-After header). |
| 8626 | # |
| 8627 | # Applied only if Name is not specified. |
| 8628 | # More info: |
| 8629 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 8630 | # string generateName = 2; |
| 8631 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 8632 | # Is required when creating |
| 8633 | # resources, although some resources may allow a client to request the |
| 8634 | # generation of an appropriate name automatically. Name is primarily intended |
| 8635 | # for creation idempotence and configuration definition. Cannot be updated. |
| 8636 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 8637 | # +optional |
| 8638 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 8639 | # |
| 8640 | # Cloud Run fully managed: not supported |
| 8641 | # |
| 8642 | # Cloud Run for Anthos: supported |
| 8643 | # |
| 8644 | # Number of seconds allowed for this object to gracefully terminate before |
| 8645 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 8646 | # set. May only be shortened. Read-only. |
| 8647 | "clusterName": "A String", # (Optional) |
| 8648 | # |
| 8649 | # Cloud Run fully managed: not supported |
| 8650 | # |
| 8651 | # Cloud Run for Anthos: supported |
| 8652 | # |
| 8653 | # The name of the cluster which the object belongs to. |
| 8654 | # This is used to distinguish resources with same name and namespace in |
| 8655 | # different clusters. This field is not set anywhere right now and apiserver |
| 8656 | # is going to ignore it if set in create or update request. |
| 8657 | "finalizers": [ # (Optional) |
| 8658 | # |
| 8659 | # Cloud Run fully managed: not supported |
| 8660 | # |
| 8661 | # Cloud Run for Anthos: supported |
| 8662 | # |
| 8663 | # Must be empty before the object is deleted from the registry. Each entry |
| 8664 | # is an identifier for the responsible component that will remove the entry |
| 8665 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 8666 | # in this list can only be removed. |
| 8667 | # +patchStrategy=merge |
| 8668 | "A String", |
| 8669 | ], |
| 8670 | "deletionTimestamp": "A String", # (Optional) |
| 8671 | # |
| 8672 | # Cloud Run fully managed: not supported |
| 8673 | # |
| 8674 | # Cloud Run for Anthos: supported |
| 8675 | # |
| 8676 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 8677 | # deleted. This field is set by the server when a graceful deletion is |
| 8678 | # requested by the user, and is not directly settable by a client. The |
| 8679 | # resource is expected to be deleted (no longer visible from resource lists, |
| 8680 | # and not reachable by name) after the time in this field, once the |
| 8681 | # finalizers list is empty. As long as the finalizers list contains items, |
| 8682 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 8683 | # be unset or be set further into the future, although it may be shortened or |
| 8684 | # the resource may be deleted prior to this time. For example, a user may |
| 8685 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 8686 | # sending a graceful termination signal to the containers in the pod. After |
| 8687 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 8688 | # to the container and after cleanup, remove the pod from the API. In the |
| 8689 | # presence of network partitions, this object may still exist after this |
| 8690 | # timestamp, until an administrator or automated process can determine the |
| 8691 | # resource is fully terminated. |
| 8692 | # If not set, graceful deletion of the object has not been requested. |
| 8693 | # |
| 8694 | # Populated by the system when a graceful deletion is requested. |
| 8695 | # Read-only. |
| 8696 | # More info: |
| 8697 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 8698 | "ownerReferences": [ # (Optional) |
| 8699 | # |
| 8700 | # Cloud Run fully managed: not supported |
| 8701 | # |
| 8702 | # Cloud Run for Anthos: supported |
| 8703 | # |
| 8704 | # List of objects that own this object. If ALL objects in the list have |
| 8705 | # been deleted, this object will be garbage collected. |
| 8706 | { # OwnerReference contains enough information to let you identify an owning |
| 8707 | # object. Currently, an owning object must be in the same namespace, so there |
| 8708 | # is no namespace field. |
| 8709 | "uid": "A String", # UID of the referent. |
| 8710 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 8711 | "controller": True or False, # If true, this reference points to the managing controller. |
| 8712 | # +optional |
| 8713 | "kind": "A String", # Kind of the referent. |
| 8714 | # More info: |
| 8715 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 8716 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 8717 | # the owner cannot be deleted from the key-value store until this |
| 8718 | # reference is removed. |
| 8719 | # Defaults to false. |
| 8720 | # To set this field, a user needs "delete" permission of the owner, |
| 8721 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 8722 | # +optional |
| 8723 | "apiVersion": "A String", # API version of the referent. |
| 8724 | "name": "A String", # Name of the referent. |
| 8725 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 8726 | }, |
| 8727 | ], |
| 8728 | }, |
| 8729 | "spec": { # RevisionSpec holds the desired state of the Revision (from the client). # RevisionSpec holds the desired state of the Revision (from the client). |
| 8730 | "volumes": [ |
| 8731 | { # Cloud Run fully managed: not supported |
| 8732 | # |
| 8733 | # Cloud Run for Anthos: supported |
| 8734 | # |
| 8735 | # Volume represents a named volume in a container. |
| 8736 | "configMap": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 8737 | # |
| 8738 | # Cloud Run for Anthos: supported |
| 8739 | # |
| 8740 | # Cloud Run for Anthos: supported |
| 8741 | # |
| 8742 | # Adapts a ConfigMap into a volume. |
| 8743 | # The contents of the target ConfigMap's Data field will be presented in a |
| 8744 | # volume as files using the keys in the Data field as the file names, unless |
| 8745 | # the items element is populated with specific mappings of keys to paths. |
| 8746 | "optional": True or False, # (Optional) |
| 8747 | # |
| 8748 | # Cloud Run fully managed: not supported |
| 8749 | # |
| 8750 | # Cloud Run for Anthos: supported |
| 8751 | # |
| 8752 | # Specify whether the Secret or its keys must be defined. |
| 8753 | "name": "A String", # Cloud Run fully managed: not supported |
| 8754 | # |
| 8755 | # Cloud Run for Anthos: supported |
| 8756 | # |
| 8757 | # Name of the config. |
| 8758 | "defaultMode": 42, # (Optional) |
| 8759 | # |
| 8760 | # Cloud Run fully managed: not supported |
| 8761 | # |
| 8762 | # Cloud Run for Anthos: supported |
| 8763 | # |
| 8764 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 8765 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 8766 | # this setting. This might be in conflict with other options that affect the |
| 8767 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 8768 | "items": [ # (Optional) |
| 8769 | # |
| 8770 | # Cloud Run fully managed: not supported |
| 8771 | # |
| 8772 | # Cloud Run for Anthos: supported |
| 8773 | # |
| 8774 | # If unspecified, each key-value pair in the Data field of the referenced |
| 8775 | # Secret will be projected into the volume as a file whose name is the |
| 8776 | # key and content is the value. If specified, the listed keys will be |
| 8777 | # projected into the specified paths, and unlisted keys will not be |
| 8778 | # present. If a key is specified which is not present in the Secret, |
| 8779 | # the volume setup will error unless it is marked optional. |
| 8780 | { # Cloud Run fully managed: not supported |
| 8781 | # |
| 8782 | # Cloud Run for Anthos: supported |
| 8783 | # |
| 8784 | # Maps a string key to a path within a volume. |
| 8785 | "key": "A String", # Cloud Run fully managed: not supported |
| 8786 | # |
| 8787 | # Cloud Run for Anthos: supported |
| 8788 | # |
| 8789 | # The key to project. |
| 8790 | "path": "A String", # Cloud Run fully managed: not supported |
| 8791 | # |
| 8792 | # Cloud Run for Anthos: supported |
| 8793 | # |
| 8794 | # The relative path of the file to map the key to. |
| 8795 | # May not be an absolute path. |
| 8796 | # May not contain the path element '..'. |
| 8797 | # May not start with the string '..'. |
| 8798 | "mode": 42, # (Optional) |
| 8799 | # |
| 8800 | # Cloud Run fully managed: not supported |
| 8801 | # |
| 8802 | # Cloud Run for Anthos: supported |
| 8803 | # |
| 8804 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 8805 | # specified, the volume defaultMode will be used. This might be in conflict |
| 8806 | # with other options that affect the file mode, like fsGroup, and the result |
| 8807 | # can be other mode bits set. |
| 8808 | }, |
| 8809 | ], |
| 8810 | }, |
| 8811 | "name": "A String", # Cloud Run fully managed: not supported |
| 8812 | # |
| 8813 | # Cloud Run for Anthos: supported |
| 8814 | # |
| 8815 | # Volume's name. |
| 8816 | "secret": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 8817 | # |
| 8818 | # Cloud Run for Anthos: supported |
| 8819 | # |
| 8820 | # Cloud Run for Anthos: supported |
| 8821 | # |
| 8822 | # The contents of the target Secret's Data field will be presented in a volume |
| 8823 | # as files using the keys in the Data field as the file names. |
| 8824 | "optional": True or False, # (Optional) |
| 8825 | # |
| 8826 | # Cloud Run fully managed: not supported |
| 8827 | # |
| 8828 | # Cloud Run for Anthos: supported |
| 8829 | # |
| 8830 | # Specify whether the Secret or its keys must be defined. |
| 8831 | "defaultMode": 42, # (Optional) |
| 8832 | # |
| 8833 | # Cloud Run fully managed: not supported |
| 8834 | # |
| 8835 | # Cloud Run for Anthos: supported |
| 8836 | # |
| 8837 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 8838 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 8839 | # this setting. This might be in conflict with other options that affect the |
| 8840 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 8841 | "secretName": "A String", # Cloud Run fully managed: not supported |
| 8842 | # |
| 8843 | # Cloud Run for Anthos: supported |
| 8844 | # |
| 8845 | # Name of the secret in the container's namespace to use. |
| 8846 | "items": [ # (Optional) |
| 8847 | # |
| 8848 | # Cloud Run fully managed: not supported |
| 8849 | # |
| 8850 | # Cloud Run for Anthos: supported |
| 8851 | # |
| 8852 | # If unspecified, each key-value pair in the Data field of the referenced |
| 8853 | # Secret will be projected into the volume as a file whose name is the |
| 8854 | # key and content is the value. If specified, the listed keys will be |
| 8855 | # projected into the specified paths, and unlisted keys will not be |
| 8856 | # present. If a key is specified which is not present in the Secret, |
| 8857 | # the volume setup will error unless it is marked optional. |
| 8858 | { # Cloud Run fully managed: not supported |
| 8859 | # |
| 8860 | # Cloud Run for Anthos: supported |
| 8861 | # |
| 8862 | # Maps a string key to a path within a volume. |
| 8863 | "key": "A String", # Cloud Run fully managed: not supported |
| 8864 | # |
| 8865 | # Cloud Run for Anthos: supported |
| 8866 | # |
| 8867 | # The key to project. |
| 8868 | "path": "A String", # Cloud Run fully managed: not supported |
| 8869 | # |
| 8870 | # Cloud Run for Anthos: supported |
| 8871 | # |
| 8872 | # The relative path of the file to map the key to. |
| 8873 | # May not be an absolute path. |
| 8874 | # May not contain the path element '..'. |
| 8875 | # May not start with the string '..'. |
| 8876 | "mode": 42, # (Optional) |
| 8877 | # |
| 8878 | # Cloud Run fully managed: not supported |
| 8879 | # |
| 8880 | # Cloud Run for Anthos: supported |
| 8881 | # |
| 8882 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 8883 | # specified, the volume defaultMode will be used. This might be in conflict |
| 8884 | # with other options that affect the file mode, like fsGroup, and the result |
| 8885 | # can be other mode bits set. |
| 8886 | }, |
| 8887 | ], |
| 8888 | }, |
| 8889 | }, |
| 8890 | ], |
| 8891 | "containerConcurrency": 42, # (Optional) |
| 8892 | # |
| 8893 | # ContainerConcurrency specifies the maximum allowed in-flight (concurrent) |
| 8894 | # requests per container instance of the Revision. |
| 8895 | # |
| 8896 | # Cloud Run fully managed: supported, defaults to 80 |
| 8897 | # |
| 8898 | # Cloud Run for Anthos: supported, defaults to 0, which means concurrency |
| 8899 | # to the application is not limited, and the system decides the |
| 8900 | # target concurrency for the autoscaler. |
| 8901 | "timeoutSeconds": 42, # TimeoutSeconds holds the max duration the instance is allowed for |
| 8902 | # responding to a request. |
| 8903 | # Not currently used by Cloud Run. |
| 8904 | "serviceAccountName": "A String", # Email address of the IAM service account associated with the revision |
| 8905 | # of the service. The service account represents the identity of the |
| 8906 | # running revision, and determines what permissions the revision has. If |
| 8907 | # not provided, the revision will use the project's default service account. |
| 8908 | "containers": [ # Containers holds the single container that defines the unit of execution |
| 8909 | # for this Revision. In the context of a Revision, we disallow a number of |
| 8910 | # fields on this Container, including: name and lifecycle. |
| 8911 | # In Cloud Run, only a single container may be provided. |
| 8912 | # The runtime contract is documented here: |
| 8913 | # https://github.com/knative/serving/blob/master/docs/runtime-contract.md |
| 8914 | { # A single application container. |
| 8915 | # This specifies both the container to run, the command to run in the container |
| 8916 | # and the arguments to supply to it. |
| 8917 | # Note that additional arguments may be supplied by the system to the container |
| 8918 | # at runtime. |
| 8919 | "volumeMounts": [ # (Optional) |
| 8920 | # |
| 8921 | # Cloud Run fully managed: not supported |
| 8922 | # |
| 8923 | # Cloud Run for Anthos: supported |
| 8924 | # |
| 8925 | # Pod volumes to mount into the container's filesystem. |
| 8926 | { # Cloud Run fully managed: not supported |
| 8927 | # |
| 8928 | # Cloud Run for Anthos: supported |
| 8929 | # |
| 8930 | # VolumeMount describes a mounting of a Volume within a container. |
| 8931 | "name": "A String", # Cloud Run fully managed: not supported |
| 8932 | # |
| 8933 | # Cloud Run for Anthos: supported |
| 8934 | # |
| 8935 | # This must match the Name of a Volume. |
| 8936 | "readOnly": True or False, # (Optional) |
| 8937 | # |
| 8938 | # Cloud Run fully managed: not supported |
| 8939 | # |
| 8940 | # Cloud Run for Anthos: supported |
| 8941 | # |
| 8942 | # Only true is accepted. |
| 8943 | # Defaults to true. |
| 8944 | "mountPath": "A String", # Cloud Run fully managed: not supported |
| 8945 | # |
| 8946 | # Cloud Run for Anthos: supported |
| 8947 | # |
| 8948 | # Path within the container at which the volume should be mounted. Must |
| 8949 | # not contain ':'. |
| 8950 | "subPath": "A String", # (Optional) |
| 8951 | # |
| 8952 | # Cloud Run fully managed: not supported |
| 8953 | # |
| 8954 | # Cloud Run for Anthos: supported |
| 8955 | # |
| 8956 | # Path within the volume from which the container's volume should be mounted. |
| 8957 | # Defaults to "" (volume's root). |
| 8958 | }, |
| 8959 | ], |
| 8960 | "args": [ # (Optional) |
| 8961 | # |
| 8962 | # Cloud Run fully managed: supported |
| 8963 | # |
| 8964 | # Cloud Run for Anthos: supported |
| 8965 | # |
| 8966 | # Arguments to the entrypoint. |
| 8967 | # The docker image's CMD is used if this is not provided. |
| 8968 | # Variable references $(VAR_NAME) are expanded using the container's |
| 8969 | # environment. If a variable cannot be resolved, the reference in the input |
| 8970 | # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a |
| 8971 | # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, |
| 8972 | # regardless of whether the variable exists or not. |
| 8973 | # More info: |
| 8974 | # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell |
| 8975 | "A String", |
| 8976 | ], |
| 8977 | "workingDir": "A String", # (Optional) |
| 8978 | # |
| 8979 | # Cloud Run fully managed: not supported |
| 8980 | # |
| 8981 | # Cloud Run for Anthos: supported |
| 8982 | # |
| 8983 | # Container's working directory. |
| 8984 | # If not specified, the container runtime's default will be used, which |
| 8985 | # might be configured in the container image. |
| 8986 | "ports": [ # (Optional) |
| 8987 | # |
| 8988 | # List of ports to expose from the container. Only a single port can be |
| 8989 | # specified. The specified ports must be listening on all interfaces |
| 8990 | # (0.0.0.0) within the container to be accessible. |
| 8991 | # |
| 8992 | # If omitted, a port number will be chosen and passed to the container |
| 8993 | # through the PORT environment variable for the container to listen on. |
| 8994 | { # ContainerPort represents a network port in a single container. |
| 8995 | "containerPort": 42, # (Optional) |
| 8996 | # |
| 8997 | # Port number the container listens on. |
| 8998 | # This must be a valid port number, 0 < x < 65536. |
| 8999 | "protocol": "A String", # (Optional) |
| 9000 | # |
| 9001 | # Cloud Run fully managed: not supported |
| 9002 | # |
| 9003 | # Cloud Run for Anthos: supported |
| 9004 | # |
| 9005 | # Protocol for port. Must be "TCP". |
| 9006 | # Defaults to "TCP". |
| 9007 | "name": "A String", # (Optional) |
| 9008 | # |
| 9009 | # Cloud Run fully managed: not supported |
| 9010 | # |
| 9011 | # Cloud Run for Anthos: supported |
| 9012 | # |
| 9013 | # If specified, used to specify which protocol to use. |
| 9014 | # Allowed values are "http1" and "h2c". |
| 9015 | }, |
| 9016 | ], |
| 9017 | "image": "A String", # Cloud Run fully managed: only supports containers from Google Container |
| 9018 | # Registry |
| 9019 | # |
| 9020 | # Cloud Run for Anthos: supported |
| 9021 | # |
| 9022 | # URL of the Container image. |
| 9023 | # More info: https://kubernetes.io/docs/concepts/containers/images |
| 9024 | "envFrom": [ # (Optional) |
| 9025 | # |
| 9026 | # Cloud Run fully managed: not supported |
| 9027 | # |
| 9028 | # Cloud Run for Anthos: supported |
| 9029 | # |
| 9030 | # List of sources to populate environment variables in the container. |
| 9031 | # The keys defined within a source must be a C_IDENTIFIER. All invalid keys |
| 9032 | # will be reported as an event when the container is starting. When a key |
| 9033 | # exists in multiple sources, the value associated with the last source will |
| 9034 | # take precedence. Values defined by an Env with a duplicate key will take |
| 9035 | # precedence. Cannot be updated. |
| 9036 | { # Cloud Run fully managed: not supported |
| 9037 | # |
| 9038 | # Cloud Run for Anthos: supported |
| 9039 | # |
| 9040 | # EnvFromSource represents the source of a set of ConfigMaps |
| 9041 | "prefix": "A String", # (Optional) |
| 9042 | # |
| 9043 | # Cloud Run fully managed: not supported |
| 9044 | # |
| 9045 | # Cloud Run for Anthos: supported |
| 9046 | # |
| 9047 | # An optional identifier to prepend to each key in the ConfigMap. Must be a |
| 9048 | # C_IDENTIFIER. |
| 9049 | "configMapRef": { # Cloud Run fully managed: not supported # (Optional) |
| 9050 | # |
| 9051 | # Cloud Run fully managed: not supported |
| 9052 | # |
| 9053 | # Cloud Run for Anthos: supported |
| 9054 | # |
| 9055 | # The ConfigMap to select from |
| 9056 | # |
| 9057 | # Cloud Run for Anthos: supported |
| 9058 | # |
| 9059 | # ConfigMapEnvSource selects a ConfigMap to populate the environment |
| 9060 | # variables with. |
| 9061 | # |
| 9062 | # The contents of the target ConfigMap's Data field will represent the |
| 9063 | # key-value pairs as environment variables. |
| 9064 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 9065 | # directly into the message. Use the "name" field instead. |
| 9066 | # |
| 9067 | # Cloud Run for Anthos: supported |
| 9068 | # |
| 9069 | # LocalObjectReference contains enough information to let you locate the |
| 9070 | # referenced object inside the same namespace. |
| 9071 | "name": "A String", # (Optional) |
| 9072 | # |
| 9073 | # Cloud Run fully managed: not supported |
| 9074 | # |
| 9075 | # Cloud Run for Anthos: supported |
| 9076 | # |
| 9077 | # Name of the referent. |
| 9078 | # More info: |
| 9079 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 9080 | }, |
| 9081 | "optional": True or False, # (Optional) |
| 9082 | # |
| 9083 | # Cloud Run fully managed: not supported |
| 9084 | # |
| 9085 | # Cloud Run for Anthos: supported |
| 9086 | # |
| 9087 | # Specify whether the ConfigMap must be defined |
| 9088 | "name": "A String", # Cloud Run fully managed: not supported |
| 9089 | # |
| 9090 | # Cloud Run for Anthos: supported |
| 9091 | # |
| 9092 | # The ConfigMap to select from. |
| 9093 | }, |
| 9094 | "secretRef": { # Cloud Run fully managed: not supported # (Optional) |
| 9095 | # |
| 9096 | # Cloud Run fully managed: not supported |
| 9097 | # |
| 9098 | # Cloud Run for Anthos: supported |
| 9099 | # |
| 9100 | # The Secret to select from |
| 9101 | # |
| 9102 | # Cloud Run for Anthos: supported |
| 9103 | # |
| 9104 | # SecretEnvSource selects a Secret to populate the environment |
| 9105 | # variables with. |
| 9106 | # |
| 9107 | # The contents of the target Secret's Data field will represent the |
| 9108 | # key-value pairs as environment variables. |
| 9109 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 9110 | # directly into the message. Use the "name" field instead. |
| 9111 | # |
| 9112 | # Cloud Run for Anthos: supported |
| 9113 | # |
| 9114 | # LocalObjectReference contains enough information to let you locate the |
| 9115 | # referenced object inside the same namespace. |
| 9116 | "name": "A String", # (Optional) |
| 9117 | # |
| 9118 | # Cloud Run fully managed: not supported |
| 9119 | # |
| 9120 | # Cloud Run for Anthos: supported |
| 9121 | # |
| 9122 | # Name of the referent. |
| 9123 | # More info: |
| 9124 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 9125 | }, |
| 9126 | "optional": True or False, # (Optional) |
| 9127 | # |
| 9128 | # Cloud Run fully managed: not supported |
| 9129 | # |
| 9130 | # Cloud Run for Anthos: supported |
| 9131 | # |
| 9132 | # Specify whether the Secret must be defined |
| 9133 | "name": "A String", # Cloud Run fully managed: not supported |
| 9134 | # |
| 9135 | # Cloud Run for Anthos: supported |
| 9136 | # |
| 9137 | # The Secret to select from. |
| 9138 | }, |
| 9139 | }, |
| 9140 | ], |
| 9141 | "name": "A String", # (Optional) |
| 9142 | # |
| 9143 | # Name of the container specified as a DNS_LABEL. |
| 9144 | "command": [ |
| 9145 | "A String", |
| 9146 | ], |
| 9147 | "terminationMessagePolicy": "A String", # (Optional) |
| 9148 | # |
| 9149 | # Cloud Run fully managed: not supported |
| 9150 | # |
| 9151 | # Cloud Run for Anthos: supported |
| 9152 | # |
| 9153 | # Indicate how the termination message should be populated. File will use the |
| 9154 | # contents of terminationMessagePath to populate the container status message |
| 9155 | # on both success and failure. FallbackToLogsOnError will use the last chunk |
| 9156 | # of container log output if the termination message file is empty and the |
| 9157 | # container exited with an error. The log output is limited to 2048 bytes or |
| 9158 | # 80 lines, whichever is smaller. Defaults to File. Cannot be updated. |
| 9159 | "securityContext": { # Cloud Run fully managed: not supported # (Optional) |
| 9160 | # |
| 9161 | # Cloud Run fully managed: not supported |
| 9162 | # |
| 9163 | # Cloud Run for Anthos: supported |
| 9164 | # |
| 9165 | # Security options the pod should run with. |
| 9166 | # More info: https://kubernetes.io/docs/concepts/policy/security-context/ |
| 9167 | # More info: |
| 9168 | # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| 9169 | # |
| 9170 | # Cloud Run for Anthos: supported |
| 9171 | # |
| 9172 | # SecurityContext holds security configuration that will be applied to a |
| 9173 | # container. Some fields are present in both SecurityContext and |
| 9174 | # PodSecurityContext. When both are set, the values in SecurityContext take |
| 9175 | # precedence. |
| 9176 | "runAsUser": 42, # (Optional) |
| 9177 | # |
| 9178 | # Cloud Run fully managed: not supported |
| 9179 | # |
| 9180 | # Cloud Run for Anthos: supported |
| 9181 | # |
| 9182 | # The UID to run the entrypoint of the container process. |
| 9183 | # Defaults to user specified in image metadata if unspecified. |
| 9184 | # May also be set in PodSecurityContext. If set in both SecurityContext and |
| 9185 | # PodSecurityContext, the value specified in SecurityContext takes |
| 9186 | # precedence. |
| 9187 | }, |
| 9188 | "livenessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 9189 | # |
| 9190 | # Cloud Run fully managed: not supported |
| 9191 | # |
| 9192 | # Cloud Run for Anthos: supported |
| 9193 | # |
| 9194 | # Periodic probe of container liveness. |
| 9195 | # Container will be restarted if the probe fails. |
| 9196 | # More info: |
| 9197 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 9198 | # |
| 9199 | # Cloud Run for Anthos: supported |
| 9200 | # |
| 9201 | # Probe describes a health check to be performed against a container to |
| 9202 | # determine whether it is alive or ready to receive traffic. |
| 9203 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 9204 | # |
| 9205 | # Cloud Run fully managed: not supported |
| 9206 | # |
| 9207 | # Cloud Run for Anthos: supported |
| 9208 | # |
| 9209 | # HTTPGet specifies the http request to perform. |
| 9210 | # |
| 9211 | # A field inlined from the Handler message. |
| 9212 | # |
| 9213 | # Cloud Run for Anthos: supported |
| 9214 | # |
| 9215 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 9216 | "httpHeaders": [ # (Optional) |
| 9217 | # |
| 9218 | # Cloud Run fully managed: not supported |
| 9219 | # |
| 9220 | # Cloud Run for Anthos: supported |
| 9221 | # |
| 9222 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 9223 | { # Cloud Run fully managed: not supported |
| 9224 | # |
| 9225 | # Cloud Run for Anthos: supported |
| 9226 | # |
| 9227 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 9228 | "name": "A String", # Cloud Run fully managed: not supported |
| 9229 | # |
| 9230 | # Cloud Run for Anthos: supported |
| 9231 | # |
| 9232 | # The header field name |
| 9233 | "value": "A String", # Cloud Run fully managed: not supported |
| 9234 | # |
| 9235 | # Cloud Run for Anthos: supported |
| 9236 | # |
| 9237 | # The header field value |
| 9238 | }, |
| 9239 | ], |
| 9240 | "path": "A String", # (Optional) |
| 9241 | # |
| 9242 | # Cloud Run fully managed: not supported |
| 9243 | # |
| 9244 | # Cloud Run for Anthos: supported |
| 9245 | # |
| 9246 | # Path to access on the HTTP server. |
| 9247 | "host": "A String", # (Optional) |
| 9248 | # |
| 9249 | # Cloud Run fully managed: not supported |
| 9250 | # |
| 9251 | # Cloud Run for Anthos: supported |
| 9252 | # |
| 9253 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 9254 | # "Host" in httpHeaders instead. |
| 9255 | "scheme": "A String", # (Optional) |
| 9256 | # |
| 9257 | # Cloud Run fully managed: not supported |
| 9258 | # |
| 9259 | # Cloud Run for Anthos: supported |
| 9260 | # |
| 9261 | # Scheme to use for connecting to the host. |
| 9262 | # Defaults to HTTP. |
| 9263 | }, |
| 9264 | "failureThreshold": 42, # (Optional) |
| 9265 | # |
| 9266 | # Cloud Run fully managed: not supported |
| 9267 | # |
| 9268 | # Cloud Run for Anthos: supported |
| 9269 | # |
| 9270 | # Minimum consecutive failures for the probe to be considered failed after |
| 9271 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 9272 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 9273 | # |
| 9274 | # Cloud Run fully managed: not supported |
| 9275 | # |
| 9276 | # Cloud Run for Anthos: supported |
| 9277 | # |
| 9278 | # One and only one of the following should be specified. |
| 9279 | # Exec specifies the action to take. |
| 9280 | # |
| 9281 | # A field inlined from the Handler message. |
| 9282 | # |
| 9283 | # Cloud Run for Anthos: supported |
| 9284 | # |
| 9285 | # ExecAction describes a "run in container" action. |
| 9286 | "command": "A String", # (Optional) |
| 9287 | # |
| 9288 | # Cloud Run fully managed: not supported |
| 9289 | # |
| 9290 | # Cloud Run for Anthos: supported |
| 9291 | # |
| 9292 | # Command is the command line to execute inside the container, the working |
| 9293 | # directory for the command is root ('/') in the container's filesystem. The |
| 9294 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 9295 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 9296 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 9297 | # live/healthy and non-zero is unhealthy. |
| 9298 | }, |
| 9299 | "initialDelaySeconds": 42, # (Optional) |
| 9300 | # |
| 9301 | # Cloud Run fully managed: not supported |
| 9302 | # |
| 9303 | # Cloud Run for Anthos: supported |
| 9304 | # |
| 9305 | # Number of seconds after the container has started before liveness probes |
| 9306 | # are initiated. More info: |
| 9307 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 9308 | "timeoutSeconds": 42, # (Optional) |
| 9309 | # |
| 9310 | # Cloud Run fully managed: not supported |
| 9311 | # |
| 9312 | # Cloud Run for Anthos: supported |
| 9313 | # |
| 9314 | # Number of seconds after which the probe times out. |
| 9315 | # Defaults to 1 second. Minimum value is 1. |
| 9316 | # More info: |
| 9317 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 9318 | "successThreshold": 42, # (Optional) |
| 9319 | # |
| 9320 | # Cloud Run fully managed: not supported |
| 9321 | # |
| 9322 | # Cloud Run for Anthos: supported |
| 9323 | # |
| 9324 | # Minimum consecutive successes for the probe to be considered successful |
| 9325 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 9326 | # is 1. |
| 9327 | "periodSeconds": 42, # (Optional) |
| 9328 | # |
| 9329 | # Cloud Run fully managed: not supported |
| 9330 | # |
| 9331 | # Cloud Run for Anthos: supported |
| 9332 | # |
| 9333 | # How often (in seconds) to perform the probe. |
| 9334 | # Default to 10 seconds. Minimum value is 1. |
| 9335 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 9336 | # |
| 9337 | # Cloud Run fully managed: not supported |
| 9338 | # |
| 9339 | # Cloud Run for Anthos: supported |
| 9340 | # |
| 9341 | # TCPSocket specifies an action involving a TCP port. |
| 9342 | # TCP hooks not yet supported |
| 9343 | # |
| 9344 | # A field inlined from the Handler message. |
| 9345 | # |
| 9346 | # Cloud Run for Anthos: supported |
| 9347 | # |
| 9348 | # TCPSocketAction describes an action based on opening a socket |
| 9349 | "port": 42, # Cloud Run fully managed: not supported |
| 9350 | # |
| 9351 | # Cloud Run for Anthos: supported |
| 9352 | # |
| 9353 | # Number or name of the port to access on the container. |
| 9354 | # Number must be in the range 1 to 65535. |
| 9355 | # Name must be an IANA_SVC_NAME. |
| 9356 | # |
| 9357 | # This field is currently limited to integer types only because of proto's |
| 9358 | # inability to properly support the IntOrString golang type. |
| 9359 | "host": "A String", # (Optional) |
| 9360 | # |
| 9361 | # Cloud Run fully managed: not supported |
| 9362 | # |
| 9363 | # Cloud Run for Anthos: supported |
| 9364 | # |
| 9365 | # Optional: Host name to connect to, defaults to the pod IP. |
| 9366 | }, |
| 9367 | }, |
| 9368 | "env": [ # (Optional) |
| 9369 | # |
| 9370 | # Cloud Run fully managed: supported |
| 9371 | # |
| 9372 | # Cloud Run for Anthos: supported |
| 9373 | # |
| 9374 | # List of environment variables to set in the container. |
| 9375 | { # EnvVar represents an environment variable present in a Container. |
| 9376 | "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER. |
| 9377 | "valueFrom": { # Cloud Run fully managed: not supported # (Optional) |
| 9378 | # |
| 9379 | # Cloud Run fully managed: not supported |
| 9380 | # |
| 9381 | # Cloud Run for Anthos: supported |
| 9382 | # |
| 9383 | # Source for the environment variable's value. Cannot be used if value is not |
| 9384 | # empty. |
| 9385 | # |
| 9386 | # Cloud Run for Anthos: supported |
| 9387 | # |
| 9388 | # EnvVarSource represents a source for the value of an EnvVar. |
| 9389 | "secretKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 9390 | # |
| 9391 | # Cloud Run fully managed: not supported |
| 9392 | # |
| 9393 | # Cloud Run for Anthos: supported |
| 9394 | # |
| 9395 | # Selects a key of a secret in the pod's namespace |
| 9396 | # |
| 9397 | # Cloud Run for Anthos: supported |
| 9398 | # |
| 9399 | # SecretKeySelector selects a key of a Secret. |
| 9400 | "key": "A String", # Cloud Run fully managed: not supported |
| 9401 | # |
| 9402 | # Cloud Run for Anthos: supported |
| 9403 | # |
| 9404 | # The key of the secret to select from. Must be a valid secret key. |
| 9405 | "name": "A String", # Cloud Run fully managed: not supported |
| 9406 | # |
| 9407 | # Cloud Run for Anthos: supported |
| 9408 | # |
| 9409 | # The name of the secret in the pod's namespace to select from. |
| 9410 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 9411 | # directly into the message. Use the "name" field instead. |
| 9412 | # |
| 9413 | # Cloud Run for Anthos: supported |
| 9414 | # |
| 9415 | # LocalObjectReference contains enough information to let you locate the |
| 9416 | # referenced object inside the same namespace. |
| 9417 | "name": "A String", # (Optional) |
| 9418 | # |
| 9419 | # Cloud Run fully managed: not supported |
| 9420 | # |
| 9421 | # Cloud Run for Anthos: supported |
| 9422 | # |
| 9423 | # Name of the referent. |
| 9424 | # More info: |
| 9425 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 9426 | }, |
| 9427 | "optional": True or False, # (Optional) |
| 9428 | # |
| 9429 | # Cloud Run fully managed: not supported |
| 9430 | # |
| 9431 | # Cloud Run for Anthos: supported |
| 9432 | # |
| 9433 | # Specify whether the Secret or its key must be defined |
| 9434 | }, |
| 9435 | "configMapKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 9436 | # |
| 9437 | # Cloud Run fully managed: not supported |
| 9438 | # |
| 9439 | # Cloud Run for Anthos: supported |
| 9440 | # |
| 9441 | # Selects a key of a ConfigMap. |
| 9442 | # |
| 9443 | # Cloud Run for Anthos: supported |
| 9444 | # |
| 9445 | # Selects a key from a ConfigMap. |
| 9446 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 9447 | # directly into the message. Use the "name" field instead. |
| 9448 | # |
| 9449 | # Cloud Run for Anthos: supported |
| 9450 | # |
| 9451 | # LocalObjectReference contains enough information to let you locate the |
| 9452 | # referenced object inside the same namespace. |
| 9453 | "name": "A String", # (Optional) |
| 9454 | # |
| 9455 | # Cloud Run fully managed: not supported |
| 9456 | # |
| 9457 | # Cloud Run for Anthos: supported |
| 9458 | # |
| 9459 | # Name of the referent. |
| 9460 | # More info: |
| 9461 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 9462 | }, |
| 9463 | "optional": True or False, # (Optional) |
| 9464 | # |
| 9465 | # Cloud Run fully managed: not supported |
| 9466 | # |
| 9467 | # Cloud Run for Anthos: supported |
| 9468 | # |
| 9469 | # Specify whether the ConfigMap or its key must be defined |
| 9470 | "key": "A String", # Cloud Run fully managed: not supported |
| 9471 | # |
| 9472 | # Cloud Run for Anthos: supported |
| 9473 | # |
| 9474 | # The key to select. |
| 9475 | "name": "A String", # Cloud Run fully managed: not supported |
| 9476 | # |
| 9477 | # Cloud Run for Anthos: supported |
| 9478 | # |
| 9479 | # The ConfigMap to select from. |
| 9480 | }, |
| 9481 | }, |
| 9482 | "value": "A String", # (Optional) |
| 9483 | # |
| 9484 | # Variable references $(VAR_NAME) are expanded |
| 9485 | # using the previous defined environment variables in the container and |
| 9486 | # any route environment variables. If a variable cannot be resolved, |
| 9487 | # the reference in the input string will be unchanged. The $(VAR_NAME) |
| 9488 | # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped |
| 9489 | # references will never be expanded, regardless of whether the variable |
| 9490 | # exists or not. |
| 9491 | # Defaults to "". |
| 9492 | }, |
| 9493 | ], |
| 9494 | "resources": { # ResourceRequirements describes the compute resource requirements. # (Optional) |
| 9495 | # |
| 9496 | # Cloud Run fully managed: supported |
| 9497 | # |
| 9498 | # Cloud Run for Anthos: supported |
| 9499 | # |
| 9500 | # Compute Resources required by this container. |
| 9501 | # More info: |
| 9502 | # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources |
| 9503 | "limits": { # (Optional) |
| 9504 | # |
| 9505 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 9506 | # supported value for CPU is '1'. |
| 9507 | # |
| 9508 | # Cloud Run for Anthos: supported |
| 9509 | # |
| 9510 | # Limits describes the maximum amount of compute resources allowed. |
| 9511 | # The values of the map is string form of the 'quantity' k8s type: |
| 9512 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 9513 | "a_key": "A String", |
| 9514 | }, |
| 9515 | "requests": { # (Optional) |
| 9516 | # |
| 9517 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 9518 | # supported value for CPU is '1'. |
| 9519 | # |
| 9520 | # Cloud Run for Anthos: supported |
| 9521 | # |
| 9522 | # Requests describes the minimum amount of compute resources required. |
| 9523 | # If Requests is omitted for a container, it defaults to Limits if that is |
| 9524 | # explicitly specified, otherwise to an implementation-defined value. |
| 9525 | # The values of the map is string form of the 'quantity' k8s type: |
| 9526 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 9527 | "a_key": "A String", |
| 9528 | }, |
| 9529 | }, |
| 9530 | "readinessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 9531 | # |
| 9532 | # Cloud Run fully managed: not supported |
| 9533 | # |
| 9534 | # Cloud Run for Anthos: supported |
| 9535 | # |
| 9536 | # Periodic probe of container service readiness. |
| 9537 | # Container will be removed from service endpoints if the probe fails. |
| 9538 | # More info: |
| 9539 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 9540 | # |
| 9541 | # Cloud Run for Anthos: supported |
| 9542 | # |
| 9543 | # Probe describes a health check to be performed against a container to |
| 9544 | # determine whether it is alive or ready to receive traffic. |
| 9545 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 9546 | # |
| 9547 | # Cloud Run fully managed: not supported |
| 9548 | # |
| 9549 | # Cloud Run for Anthos: supported |
| 9550 | # |
| 9551 | # HTTPGet specifies the http request to perform. |
| 9552 | # |
| 9553 | # A field inlined from the Handler message. |
| 9554 | # |
| 9555 | # Cloud Run for Anthos: supported |
| 9556 | # |
| 9557 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 9558 | "httpHeaders": [ # (Optional) |
| 9559 | # |
| 9560 | # Cloud Run fully managed: not supported |
| 9561 | # |
| 9562 | # Cloud Run for Anthos: supported |
| 9563 | # |
| 9564 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 9565 | { # Cloud Run fully managed: not supported |
| 9566 | # |
| 9567 | # Cloud Run for Anthos: supported |
| 9568 | # |
| 9569 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 9570 | "name": "A String", # Cloud Run fully managed: not supported |
| 9571 | # |
| 9572 | # Cloud Run for Anthos: supported |
| 9573 | # |
| 9574 | # The header field name |
| 9575 | "value": "A String", # Cloud Run fully managed: not supported |
| 9576 | # |
| 9577 | # Cloud Run for Anthos: supported |
| 9578 | # |
| 9579 | # The header field value |
| 9580 | }, |
| 9581 | ], |
| 9582 | "path": "A String", # (Optional) |
| 9583 | # |
| 9584 | # Cloud Run fully managed: not supported |
| 9585 | # |
| 9586 | # Cloud Run for Anthos: supported |
| 9587 | # |
| 9588 | # Path to access on the HTTP server. |
| 9589 | "host": "A String", # (Optional) |
| 9590 | # |
| 9591 | # Cloud Run fully managed: not supported |
| 9592 | # |
| 9593 | # Cloud Run for Anthos: supported |
| 9594 | # |
| 9595 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 9596 | # "Host" in httpHeaders instead. |
| 9597 | "scheme": "A String", # (Optional) |
| 9598 | # |
| 9599 | # Cloud Run fully managed: not supported |
| 9600 | # |
| 9601 | # Cloud Run for Anthos: supported |
| 9602 | # |
| 9603 | # Scheme to use for connecting to the host. |
| 9604 | # Defaults to HTTP. |
| 9605 | }, |
| 9606 | "failureThreshold": 42, # (Optional) |
| 9607 | # |
| 9608 | # Cloud Run fully managed: not supported |
| 9609 | # |
| 9610 | # Cloud Run for Anthos: supported |
| 9611 | # |
| 9612 | # Minimum consecutive failures for the probe to be considered failed after |
| 9613 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 9614 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 9615 | # |
| 9616 | # Cloud Run fully managed: not supported |
| 9617 | # |
| 9618 | # Cloud Run for Anthos: supported |
| 9619 | # |
| 9620 | # One and only one of the following should be specified. |
| 9621 | # Exec specifies the action to take. |
| 9622 | # |
| 9623 | # A field inlined from the Handler message. |
| 9624 | # |
| 9625 | # Cloud Run for Anthos: supported |
| 9626 | # |
| 9627 | # ExecAction describes a "run in container" action. |
| 9628 | "command": "A String", # (Optional) |
| 9629 | # |
| 9630 | # Cloud Run fully managed: not supported |
| 9631 | # |
| 9632 | # Cloud Run for Anthos: supported |
| 9633 | # |
| 9634 | # Command is the command line to execute inside the container, the working |
| 9635 | # directory for the command is root ('/') in the container's filesystem. The |
| 9636 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 9637 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 9638 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 9639 | # live/healthy and non-zero is unhealthy. |
| 9640 | }, |
| 9641 | "initialDelaySeconds": 42, # (Optional) |
| 9642 | # |
| 9643 | # Cloud Run fully managed: not supported |
| 9644 | # |
| 9645 | # Cloud Run for Anthos: supported |
| 9646 | # |
| 9647 | # Number of seconds after the container has started before liveness probes |
| 9648 | # are initiated. More info: |
| 9649 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 9650 | "timeoutSeconds": 42, # (Optional) |
| 9651 | # |
| 9652 | # Cloud Run fully managed: not supported |
| 9653 | # |
| 9654 | # Cloud Run for Anthos: supported |
| 9655 | # |
| 9656 | # Number of seconds after which the probe times out. |
| 9657 | # Defaults to 1 second. Minimum value is 1. |
| 9658 | # More info: |
| 9659 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 9660 | "successThreshold": 42, # (Optional) |
| 9661 | # |
| 9662 | # Cloud Run fully managed: not supported |
| 9663 | # |
| 9664 | # Cloud Run for Anthos: supported |
| 9665 | # |
| 9666 | # Minimum consecutive successes for the probe to be considered successful |
| 9667 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 9668 | # is 1. |
| 9669 | "periodSeconds": 42, # (Optional) |
| 9670 | # |
| 9671 | # Cloud Run fully managed: not supported |
| 9672 | # |
| 9673 | # Cloud Run for Anthos: supported |
| 9674 | # |
| 9675 | # How often (in seconds) to perform the probe. |
| 9676 | # Default to 10 seconds. Minimum value is 1. |
| 9677 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 9678 | # |
| 9679 | # Cloud Run fully managed: not supported |
| 9680 | # |
| 9681 | # Cloud Run for Anthos: supported |
| 9682 | # |
| 9683 | # TCPSocket specifies an action involving a TCP port. |
| 9684 | # TCP hooks not yet supported |
| 9685 | # |
| 9686 | # A field inlined from the Handler message. |
| 9687 | # |
| 9688 | # Cloud Run for Anthos: supported |
| 9689 | # |
| 9690 | # TCPSocketAction describes an action based on opening a socket |
| 9691 | "port": 42, # Cloud Run fully managed: not supported |
| 9692 | # |
| 9693 | # Cloud Run for Anthos: supported |
| 9694 | # |
| 9695 | # Number or name of the port to access on the container. |
| 9696 | # Number must be in the range 1 to 65535. |
| 9697 | # Name must be an IANA_SVC_NAME. |
| 9698 | # |
| 9699 | # This field is currently limited to integer types only because of proto's |
| 9700 | # inability to properly support the IntOrString golang type. |
| 9701 | "host": "A String", # (Optional) |
| 9702 | # |
| 9703 | # Cloud Run fully managed: not supported |
| 9704 | # |
| 9705 | # Cloud Run for Anthos: supported |
| 9706 | # |
| 9707 | # Optional: Host name to connect to, defaults to the pod IP. |
| 9708 | }, |
| 9709 | }, |
| 9710 | "imagePullPolicy": "A String", # (Optional) |
| 9711 | # |
| 9712 | # Cloud Run fully managed: not supported |
| 9713 | # |
| 9714 | # Cloud Run for Anthos: supported |
| 9715 | # |
| 9716 | # Image pull policy. |
| 9717 | # One of Always, Never, IfNotPresent. |
| 9718 | # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. |
| 9719 | # More info: |
| 9720 | # https://kubernetes.io/docs/concepts/containers/images#updating-images |
| 9721 | "terminationMessagePath": "A String", # (Optional) |
| 9722 | # |
| 9723 | # Cloud Run fully managed: not supported |
| 9724 | # |
| 9725 | # Cloud Run for Anthos: supported |
| 9726 | # |
| 9727 | # Path at which the file to which the container's termination |
| 9728 | # message will be written is mounted into the container's filesystem. Message |
| 9729 | # written is intended to be brief final status, such as an assertion failure |
| 9730 | # message. Will be truncated by the node if greater than 4096 bytes. The |
| 9731 | # total message length across all containers will be limited to 12kb. |
| 9732 | # Defaults to /dev/termination-log. |
| 9733 | }, |
| 9734 | ], |
| 9735 | }, |
| 9736 | }, |
| 9737 | }, |
| 9738 | "kind": "A String", # The kind of resource, in this case "Service". |
| 9739 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Metadata associated with this Service, including name, namespace, labels, |
| 9740 | # and annotations. |
| 9741 | # persisted resources must have, which includes all objects users must create. |
| 9742 | "creationTimestamp": "A String", # (Optional) |
| 9743 | # |
| 9744 | # CreationTimestamp is a timestamp representing the server time when this |
| 9745 | # object was created. It is not guaranteed to be set in happens-before order |
| 9746 | # across separate operations. Clients may not set this value. It is |
| 9747 | # represented in RFC3339 form and is in UTC. |
| 9748 | # |
| 9749 | # Populated by the system. |
| 9750 | # Read-only. |
| 9751 | # Null for lists. |
| 9752 | # More info: |
| 9753 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 9754 | "labels": { # (Optional) |
| 9755 | # |
| 9756 | # Map of string keys and values that can be used to organize and categorize |
| 9757 | # (scope and select) objects. May match selectors of replication controllers |
| 9758 | # and routes. |
| 9759 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 9760 | "a_key": "A String", |
| 9761 | }, |
| 9762 | "generation": 42, # (Optional) |
| 9763 | # |
| 9764 | # A sequence number representing a specific generation of the desired state. |
| 9765 | # Populated by the system. Read-only. |
| 9766 | "resourceVersion": "A String", # (Optional) |
| 9767 | # |
| 9768 | # An opaque value that represents the internal version of this object that |
| 9769 | # can be used by clients to determine when objects have changed. May be used |
| 9770 | # for optimistic concurrency, change detection, and the watch operation on a |
| 9771 | # resource or set of resources. Clients must treat these values as opaque and |
| 9772 | # passed unmodified back to the server. They may only be valid for a |
| 9773 | # particular resource or set of resources. |
| 9774 | # |
| 9775 | # Populated by the system. |
| 9776 | # Read-only. |
| 9777 | # Value must be treated as opaque by clients and . |
| 9778 | # More info: |
| 9779 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 9780 | "selfLink": "A String", # (Optional) |
| 9781 | # |
| 9782 | # SelfLink is a URL representing this object. |
| 9783 | # Populated by the system. |
| 9784 | # Read-only. |
| 9785 | # string selfLink = 4; |
| 9786 | "uid": "A String", # (Optional) |
| 9787 | # |
| 9788 | # UID is the unique in time and space value for this object. It is typically |
| 9789 | # generated by the server on successful creation of a resource and is not |
| 9790 | # allowed to change on PUT operations. |
| 9791 | # |
| 9792 | # Populated by the system. |
| 9793 | # Read-only. |
| 9794 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 9795 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 9796 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 9797 | # project ID or project number. |
| 9798 | "annotations": { # (Optional) |
| 9799 | # |
| 9800 | # Annotations is an unstructured key value map stored with a resource that |
| 9801 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 9802 | # are not queryable and should be preserved when modifying objects. More |
| 9803 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 9804 | "a_key": "A String", |
| 9805 | }, |
| 9806 | "generateName": "A String", # (Optional) |
| 9807 | # |
| 9808 | # Cloud Run fully managed: not supported |
| 9809 | # |
| 9810 | # Cloud Run for Anthos: supported |
| 9811 | # |
| 9812 | # GenerateName is an optional prefix, used by the server, to generate a |
| 9813 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 9814 | # used, the name returned to the client will be different than the name |
| 9815 | # passed. This value will also be combined with a unique suffix. The provided |
| 9816 | # value has the same validation rules as the Name field, and may be truncated |
| 9817 | # by the length of the suffix required to make the value unique on the |
| 9818 | # server. |
| 9819 | # |
| 9820 | # If this field is specified and the generated name exists, the server will |
| 9821 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 9822 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 9823 | # time allotted, and the client should retry (optionally after the time |
| 9824 | # indicated in the Retry-After header). |
| 9825 | # |
| 9826 | # Applied only if Name is not specified. |
| 9827 | # More info: |
| 9828 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 9829 | # string generateName = 2; |
| 9830 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 9831 | # Is required when creating |
| 9832 | # resources, although some resources may allow a client to request the |
| 9833 | # generation of an appropriate name automatically. Name is primarily intended |
| 9834 | # for creation idempotence and configuration definition. Cannot be updated. |
| 9835 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 9836 | # +optional |
| 9837 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 9838 | # |
| 9839 | # Cloud Run fully managed: not supported |
| 9840 | # |
| 9841 | # Cloud Run for Anthos: supported |
| 9842 | # |
| 9843 | # Number of seconds allowed for this object to gracefully terminate before |
| 9844 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 9845 | # set. May only be shortened. Read-only. |
| 9846 | "clusterName": "A String", # (Optional) |
| 9847 | # |
| 9848 | # Cloud Run fully managed: not supported |
| 9849 | # |
| 9850 | # Cloud Run for Anthos: supported |
| 9851 | # |
| 9852 | # The name of the cluster which the object belongs to. |
| 9853 | # This is used to distinguish resources with same name and namespace in |
| 9854 | # different clusters. This field is not set anywhere right now and apiserver |
| 9855 | # is going to ignore it if set in create or update request. |
| 9856 | "finalizers": [ # (Optional) |
| 9857 | # |
| 9858 | # Cloud Run fully managed: not supported |
| 9859 | # |
| 9860 | # Cloud Run for Anthos: supported |
| 9861 | # |
| 9862 | # Must be empty before the object is deleted from the registry. Each entry |
| 9863 | # is an identifier for the responsible component that will remove the entry |
| 9864 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 9865 | # in this list can only be removed. |
| 9866 | # +patchStrategy=merge |
| 9867 | "A String", |
| 9868 | ], |
| 9869 | "deletionTimestamp": "A String", # (Optional) |
| 9870 | # |
| 9871 | # Cloud Run fully managed: not supported |
| 9872 | # |
| 9873 | # Cloud Run for Anthos: supported |
| 9874 | # |
| 9875 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 9876 | # deleted. This field is set by the server when a graceful deletion is |
| 9877 | # requested by the user, and is not directly settable by a client. The |
| 9878 | # resource is expected to be deleted (no longer visible from resource lists, |
| 9879 | # and not reachable by name) after the time in this field, once the |
| 9880 | # finalizers list is empty. As long as the finalizers list contains items, |
| 9881 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 9882 | # be unset or be set further into the future, although it may be shortened or |
| 9883 | # the resource may be deleted prior to this time. For example, a user may |
| 9884 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 9885 | # sending a graceful termination signal to the containers in the pod. After |
| 9886 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 9887 | # to the container and after cleanup, remove the pod from the API. In the |
| 9888 | # presence of network partitions, this object may still exist after this |
| 9889 | # timestamp, until an administrator or automated process can determine the |
| 9890 | # resource is fully terminated. |
| 9891 | # If not set, graceful deletion of the object has not been requested. |
| 9892 | # |
| 9893 | # Populated by the system when a graceful deletion is requested. |
| 9894 | # Read-only. |
| 9895 | # More info: |
| 9896 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 9897 | "ownerReferences": [ # (Optional) |
| 9898 | # |
| 9899 | # Cloud Run fully managed: not supported |
| 9900 | # |
| 9901 | # Cloud Run for Anthos: supported |
| 9902 | # |
| 9903 | # List of objects that own this object. If ALL objects in the list have |
| 9904 | # been deleted, this object will be garbage collected. |
| 9905 | { # OwnerReference contains enough information to let you identify an owning |
| 9906 | # object. Currently, an owning object must be in the same namespace, so there |
| 9907 | # is no namespace field. |
| 9908 | "uid": "A String", # UID of the referent. |
| 9909 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 9910 | "controller": True or False, # If true, this reference points to the managing controller. |
| 9911 | # +optional |
| 9912 | "kind": "A String", # Kind of the referent. |
| 9913 | # More info: |
| 9914 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 9915 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 9916 | # the owner cannot be deleted from the key-value store until this |
| 9917 | # reference is removed. |
| 9918 | # Defaults to false. |
| 9919 | # To set this field, a user needs "delete" permission of the owner, |
| 9920 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 9921 | # +optional |
| 9922 | "apiVersion": "A String", # API version of the referent. |
| 9923 | "name": "A String", # Name of the referent. |
| 9924 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 9925 | }, |
| 9926 | ], |
| 9927 | }, |
| 9928 | }</pre> |
| 9929 | </div> |
| 9930 | |
| 9931 | <div class="method"> |
| 9932 | <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code> |
| 9933 | <pre>Sets the IAM Access control policy for the specified Service. Overwrites |
| 9934 | any existing policy. |
| 9935 | |
| 9936 | Args: |
| 9937 | resource: string, REQUIRED: The resource for which the policy is being specified. |
| 9938 | See the operation documentation for the appropriate value for this field. (required) |
| 9939 | body: object, The request body. |
| 9940 | The object takes the form of: |
| 9941 | |
| 9942 | { # Request message for `SetIamPolicy` method. |
| 9943 | "policy": { # An Identity and Access Management (IAM) policy, which specifies access # REQUIRED: The complete policy to be applied to the `resource`. The size of |
| 9944 | # the policy is limited to a few 10s of KB. An empty policy is a |
| 9945 | # valid policy but certain Cloud Platform services (such as Projects) |
| 9946 | # might reject them. |
| 9947 | # controls for Google Cloud resources. |
| 9948 | # |
| 9949 | # |
| 9950 | # A `Policy` is a collection of `bindings`. A `binding` binds one or more |
| 9951 | # `members` to a single `role`. Members can be user accounts, service accounts, |
| 9952 | # Google groups, and domains (such as G Suite). A `role` is a named list of |
| 9953 | # permissions; each `role` can be an IAM predefined role or a user-created |
| 9954 | # custom role. |
| 9955 | # |
| 9956 | # For some types of Google Cloud resources, a `binding` can also specify a |
| 9957 | # `condition`, which is a logical expression that allows access to a resource |
| 9958 | # only if the expression evaluates to `true`. A condition can add constraints |
| 9959 | # based on attributes of the request, the resource, or both. To learn which |
| 9960 | # resources support conditions in their IAM policies, see the |
| 9961 | # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 9962 | # |
| 9963 | # **JSON example:** |
| 9964 | # |
| 9965 | # { |
| 9966 | # "bindings": [ |
| 9967 | # { |
| 9968 | # "role": "roles/resourcemanager.organizationAdmin", |
| 9969 | # "members": [ |
| 9970 | # "user:mike@example.com", |
| 9971 | # "group:admins@example.com", |
| 9972 | # "domain:google.com", |
| 9973 | # "serviceAccount:my-project-id@appspot.gserviceaccount.com" |
| 9974 | # ] |
| 9975 | # }, |
| 9976 | # { |
| 9977 | # "role": "roles/resourcemanager.organizationViewer", |
| 9978 | # "members": [ |
| 9979 | # "user:eve@example.com" |
| 9980 | # ], |
| 9981 | # "condition": { |
| 9982 | # "title": "expirable access", |
| 9983 | # "description": "Does not grant access after Sep 2020", |
| 9984 | # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", |
| 9985 | # } |
| 9986 | # } |
| 9987 | # ], |
| 9988 | # "etag": "BwWWja0YfJA=", |
| 9989 | # "version": 3 |
| 9990 | # } |
| 9991 | # |
| 9992 | # **YAML example:** |
| 9993 | # |
| 9994 | # bindings: |
| 9995 | # - members: |
| 9996 | # - user:mike@example.com |
| 9997 | # - group:admins@example.com |
| 9998 | # - domain:google.com |
| 9999 | # - serviceAccount:my-project-id@appspot.gserviceaccount.com |
| 10000 | # role: roles/resourcemanager.organizationAdmin |
| 10001 | # - members: |
| 10002 | # - user:eve@example.com |
| 10003 | # role: roles/resourcemanager.organizationViewer |
| 10004 | # condition: |
| 10005 | # title: expirable access |
| 10006 | # description: Does not grant access after Sep 2020 |
| 10007 | # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') |
| 10008 | # - etag: BwWWja0YfJA= |
| 10009 | # - version: 3 |
| 10010 | # |
| 10011 | # For a description of IAM and its features, see the |
| 10012 | # [IAM documentation](https://cloud.google.com/iam/docs/). |
| 10013 | "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help |
| 10014 | # prevent simultaneous updates of a policy from overwriting each other. |
| 10015 | # It is strongly suggested that systems make use of the `etag` in the |
| 10016 | # read-modify-write cycle to perform policy updates in order to avoid race |
| 10017 | # conditions: An `etag` is returned in the response to `getIamPolicy`, and |
| 10018 | # systems are expected to put that etag in the request to `setIamPolicy` to |
| 10019 | # ensure that their change will be applied to the same version of the policy. |
| 10020 | # |
| 10021 | # **Important:** If you use IAM Conditions, you must include the `etag` field |
| 10022 | # whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 10023 | # you to overwrite a version `3` policy with a version `1` policy, and all of |
| 10024 | # the conditions in the version `3` policy are lost. |
| 10025 | "version": 42, # Specifies the format of the policy. |
| 10026 | # |
| 10027 | # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value |
| 10028 | # are rejected. |
| 10029 | # |
| 10030 | # Any operation that affects conditional role bindings must specify version |
| 10031 | # `3`. This requirement applies to the following operations: |
| 10032 | # |
| 10033 | # * Getting a policy that includes a conditional role binding |
| 10034 | # * Adding a conditional role binding to a policy |
| 10035 | # * Changing a conditional role binding in a policy |
| 10036 | # * Removing any role binding, with or without a condition, from a policy |
| 10037 | # that includes conditions |
| 10038 | # |
| 10039 | # **Important:** If you use IAM Conditions, you must include the `etag` field |
| 10040 | # whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 10041 | # you to overwrite a version `3` policy with a version `1` policy, and all of |
| 10042 | # the conditions in the version `3` policy are lost. |
| 10043 | # |
| 10044 | # If a policy does not include any conditions, operations on that policy may |
| 10045 | # specify any valid version or leave the field unset. |
| 10046 | # |
| 10047 | # To learn which resources support conditions in their IAM policies, see the |
| 10048 | # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 10049 | "auditConfigs": [ # Specifies cloud audit logging configuration for this policy. |
| 10050 | { # Specifies the audit configuration for a service. |
| 10051 | # The configuration determines which permission types are logged, and what |
| 10052 | # identities, if any, are exempted from logging. |
| 10053 | # An AuditConfig must have one or more AuditLogConfigs. |
| 10054 | # |
| 10055 | # If there are AuditConfigs for both `allServices` and a specific service, |
| 10056 | # the union of the two AuditConfigs is used for that service: the log_types |
| 10057 | # specified in each AuditConfig are enabled, and the exempted_members in each |
| 10058 | # AuditLogConfig are exempted. |
| 10059 | # |
| 10060 | # Example Policy with multiple AuditConfigs: |
| 10061 | # |
| 10062 | # { |
| 10063 | # "audit_configs": [ |
| 10064 | # { |
| 10065 | # "service": "allServices" |
| 10066 | # "audit_log_configs": [ |
| 10067 | # { |
| 10068 | # "log_type": "DATA_READ", |
| 10069 | # "exempted_members": [ |
| 10070 | # "user:jose@example.com" |
| 10071 | # ] |
| 10072 | # }, |
| 10073 | # { |
| 10074 | # "log_type": "DATA_WRITE", |
| 10075 | # }, |
| 10076 | # { |
| 10077 | # "log_type": "ADMIN_READ", |
| 10078 | # } |
| 10079 | # ] |
| 10080 | # }, |
| 10081 | # { |
| 10082 | # "service": "sampleservice.googleapis.com" |
| 10083 | # "audit_log_configs": [ |
| 10084 | # { |
| 10085 | # "log_type": "DATA_READ", |
| 10086 | # }, |
| 10087 | # { |
| 10088 | # "log_type": "DATA_WRITE", |
| 10089 | # "exempted_members": [ |
| 10090 | # "user:aliya@example.com" |
| 10091 | # ] |
| 10092 | # } |
| 10093 | # ] |
| 10094 | # } |
| 10095 | # ] |
| 10096 | # } |
| 10097 | # |
| 10098 | # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ |
| 10099 | # logging. It also exempts jose@example.com from DATA_READ logging, and |
| 10100 | # aliya@example.com from DATA_WRITE logging. |
| 10101 | "service": "A String", # Specifies a service that will be enabled for audit logging. |
| 10102 | # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. |
| 10103 | # `allServices` is a special value that covers all services. |
| 10104 | "auditLogConfigs": [ # The configuration for logging of each type of permission. |
| 10105 | { # Provides the configuration for logging a type of permissions. |
| 10106 | # Example: |
| 10107 | # |
| 10108 | # { |
| 10109 | # "audit_log_configs": [ |
| 10110 | # { |
| 10111 | # "log_type": "DATA_READ", |
| 10112 | # "exempted_members": [ |
| 10113 | # "user:jose@example.com" |
| 10114 | # ] |
| 10115 | # }, |
| 10116 | # { |
| 10117 | # "log_type": "DATA_WRITE", |
| 10118 | # } |
| 10119 | # ] |
| 10120 | # } |
| 10121 | # |
| 10122 | # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting |
| 10123 | # jose@example.com from DATA_READ logging. |
| 10124 | "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of |
| 10125 | # permission. |
| 10126 | # Follows the same format of Binding.members. |
| 10127 | "A String", |
| 10128 | ], |
| 10129 | "logType": "A String", # The log type that this config enables. |
| 10130 | }, |
| 10131 | ], |
| 10132 | }, |
| 10133 | ], |
| 10134 | "bindings": [ # Associates a list of `members` to a `role`. Optionally, may specify a |
| 10135 | # `condition` that determines how and when the `bindings` are applied. Each |
| 10136 | # of the `bindings` must contain at least one member. |
| 10137 | { # Associates `members` with a `role`. |
| 10138 | "condition": { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding. |
| 10139 | # |
| 10140 | # If the condition evaluates to `true`, then this binding applies to the |
| 10141 | # current request. |
| 10142 | # |
| 10143 | # If the condition evaluates to `false`, then this binding does not apply to |
| 10144 | # the current request. However, a different role binding might grant the same |
| 10145 | # role to one or more of the members in this binding. |
| 10146 | # |
| 10147 | # To learn which resources support conditions in their IAM policies, see the |
| 10148 | # [IAM |
| 10149 | # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 10150 | # syntax. CEL is a C-like expression language. The syntax and semantics of CEL |
| 10151 | # are documented at https://github.com/google/cel-spec. |
| 10152 | # |
| 10153 | # Example (Comparison): |
| 10154 | # |
| 10155 | # title: "Summary size limit" |
| 10156 | # description: "Determines if a summary is less than 100 chars" |
| 10157 | # expression: "document.summary.size() < 100" |
| 10158 | # |
| 10159 | # Example (Equality): |
| 10160 | # |
| 10161 | # title: "Requestor is owner" |
| 10162 | # description: "Determines if requestor is the document owner" |
| 10163 | # expression: "document.owner == request.auth.claims.email" |
| 10164 | # |
| 10165 | # Example (Logic): |
| 10166 | # |
| 10167 | # title: "Public documents" |
| 10168 | # description: "Determine whether the document should be publicly visible" |
| 10169 | # expression: "document.type != 'private' && document.type != 'internal'" |
| 10170 | # |
| 10171 | # Example (Data Manipulation): |
| 10172 | # |
| 10173 | # title: "Notification string" |
| 10174 | # description: "Create a notification string with a timestamp." |
| 10175 | # expression: "'New message received at ' + string(document.create_time)" |
| 10176 | # |
| 10177 | # The exact variables and functions that may be referenced within an expression |
| 10178 | # are determined by the service that evaluates it. See the service |
| 10179 | # documentation for additional information. |
| 10180 | "expression": "A String", # Textual representation of an expression in Common Expression Language |
| 10181 | # syntax. |
| 10182 | "title": "A String", # Optional. Title for the expression, i.e. a short string describing |
| 10183 | # its purpose. This can be used e.g. in UIs which allow to enter the |
| 10184 | # expression. |
| 10185 | "location": "A String", # Optional. String indicating the location of the expression for error |
| 10186 | # reporting, e.g. a file name and a position in the file. |
| 10187 | "description": "A String", # Optional. Description of the expression. This is a longer text which |
| 10188 | # describes the expression, e.g. when hovered over it in a UI. |
| 10189 | }, |
| 10190 | "members": [ # Specifies the identities requesting access for a Cloud Platform resource. |
| 10191 | # `members` can have the following values: |
| 10192 | # |
| 10193 | # * `allUsers`: A special identifier that represents anyone who is |
| 10194 | # on the internet; with or without a Google account. |
| 10195 | # |
| 10196 | # * `allAuthenticatedUsers`: A special identifier that represents anyone |
| 10197 | # who is authenticated with a Google account or a service account. |
| 10198 | # |
| 10199 | # * `user:{emailid}`: An email address that represents a specific Google |
| 10200 | # account. For example, `alice@example.com` . |
| 10201 | # |
| 10202 | # |
| 10203 | # * `serviceAccount:{emailid}`: An email address that represents a service |
| 10204 | # account. For example, `my-other-app@appspot.gserviceaccount.com`. |
| 10205 | # |
| 10206 | # * `group:{emailid}`: An email address that represents a Google group. |
| 10207 | # For example, `admins@example.com`. |
| 10208 | # |
| 10209 | # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 10210 | # identifier) representing a user that has been recently deleted. For |
| 10211 | # example, `alice@example.com?uid=123456789012345678901`. If the user is |
| 10212 | # recovered, this value reverts to `user:{emailid}` and the recovered user |
| 10213 | # retains the role in the binding. |
| 10214 | # |
| 10215 | # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus |
| 10216 | # unique identifier) representing a service account that has been recently |
| 10217 | # deleted. For example, |
| 10218 | # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. |
| 10219 | # If the service account is undeleted, this value reverts to |
| 10220 | # `serviceAccount:{emailid}` and the undeleted service account retains the |
| 10221 | # role in the binding. |
| 10222 | # |
| 10223 | # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 10224 | # identifier) representing a Google group that has been recently |
| 10225 | # deleted. For example, `admins@example.com?uid=123456789012345678901`. If |
| 10226 | # the group is recovered, this value reverts to `group:{emailid}` and the |
| 10227 | # recovered group retains the role in the binding. |
| 10228 | # |
| 10229 | # |
| 10230 | # * `domain:{domain}`: The G Suite domain (primary) that represents all the |
| 10231 | # users of that domain. For example, `google.com` or `example.com`. |
| 10232 | # |
| 10233 | "A String", |
| 10234 | ], |
| 10235 | "role": "A String", # Role that is assigned to `members`. |
| 10236 | # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
| 10237 | }, |
| 10238 | ], |
| 10239 | }, |
| 10240 | "updateMask": "A String", # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only |
| 10241 | # the fields in the mask will be modified. If no mask is provided, the |
| 10242 | # following default mask is used: |
| 10243 | # |
| 10244 | # `paths: "bindings, etag"` |
| 10245 | } |
| 10246 | |
| 10247 | x__xgafv: string, V1 error format. |
| 10248 | Allowed values |
| 10249 | 1 - v1 error format |
| 10250 | 2 - v2 error format |
| 10251 | |
| 10252 | Returns: |
| 10253 | An object of the form: |
| 10254 | |
| 10255 | { # An Identity and Access Management (IAM) policy, which specifies access |
| 10256 | # controls for Google Cloud resources. |
| 10257 | # |
| 10258 | # |
| 10259 | # A `Policy` is a collection of `bindings`. A `binding` binds one or more |
| 10260 | # `members` to a single `role`. Members can be user accounts, service accounts, |
| 10261 | # Google groups, and domains (such as G Suite). A `role` is a named list of |
| 10262 | # permissions; each `role` can be an IAM predefined role or a user-created |
| 10263 | # custom role. |
| 10264 | # |
| 10265 | # For some types of Google Cloud resources, a `binding` can also specify a |
| 10266 | # `condition`, which is a logical expression that allows access to a resource |
| 10267 | # only if the expression evaluates to `true`. A condition can add constraints |
| 10268 | # based on attributes of the request, the resource, or both. To learn which |
| 10269 | # resources support conditions in their IAM policies, see the |
| 10270 | # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 10271 | # |
| 10272 | # **JSON example:** |
| 10273 | # |
| 10274 | # { |
| 10275 | # "bindings": [ |
| 10276 | # { |
| 10277 | # "role": "roles/resourcemanager.organizationAdmin", |
| 10278 | # "members": [ |
| 10279 | # "user:mike@example.com", |
| 10280 | # "group:admins@example.com", |
| 10281 | # "domain:google.com", |
| 10282 | # "serviceAccount:my-project-id@appspot.gserviceaccount.com" |
| 10283 | # ] |
| 10284 | # }, |
| 10285 | # { |
| 10286 | # "role": "roles/resourcemanager.organizationViewer", |
| 10287 | # "members": [ |
| 10288 | # "user:eve@example.com" |
| 10289 | # ], |
| 10290 | # "condition": { |
| 10291 | # "title": "expirable access", |
| 10292 | # "description": "Does not grant access after Sep 2020", |
| 10293 | # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", |
| 10294 | # } |
| 10295 | # } |
| 10296 | # ], |
| 10297 | # "etag": "BwWWja0YfJA=", |
| 10298 | # "version": 3 |
| 10299 | # } |
| 10300 | # |
| 10301 | # **YAML example:** |
| 10302 | # |
| 10303 | # bindings: |
| 10304 | # - members: |
| 10305 | # - user:mike@example.com |
| 10306 | # - group:admins@example.com |
| 10307 | # - domain:google.com |
| 10308 | # - serviceAccount:my-project-id@appspot.gserviceaccount.com |
| 10309 | # role: roles/resourcemanager.organizationAdmin |
| 10310 | # - members: |
| 10311 | # - user:eve@example.com |
| 10312 | # role: roles/resourcemanager.organizationViewer |
| 10313 | # condition: |
| 10314 | # title: expirable access |
| 10315 | # description: Does not grant access after Sep 2020 |
| 10316 | # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') |
| 10317 | # - etag: BwWWja0YfJA= |
| 10318 | # - version: 3 |
| 10319 | # |
| 10320 | # For a description of IAM and its features, see the |
| 10321 | # [IAM documentation](https://cloud.google.com/iam/docs/). |
| 10322 | "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help |
| 10323 | # prevent simultaneous updates of a policy from overwriting each other. |
| 10324 | # It is strongly suggested that systems make use of the `etag` in the |
| 10325 | # read-modify-write cycle to perform policy updates in order to avoid race |
| 10326 | # conditions: An `etag` is returned in the response to `getIamPolicy`, and |
| 10327 | # systems are expected to put that etag in the request to `setIamPolicy` to |
| 10328 | # ensure that their change will be applied to the same version of the policy. |
| 10329 | # |
| 10330 | # **Important:** If you use IAM Conditions, you must include the `etag` field |
| 10331 | # whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 10332 | # you to overwrite a version `3` policy with a version `1` policy, and all of |
| 10333 | # the conditions in the version `3` policy are lost. |
| 10334 | "version": 42, # Specifies the format of the policy. |
| 10335 | # |
| 10336 | # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value |
| 10337 | # are rejected. |
| 10338 | # |
| 10339 | # Any operation that affects conditional role bindings must specify version |
| 10340 | # `3`. This requirement applies to the following operations: |
| 10341 | # |
| 10342 | # * Getting a policy that includes a conditional role binding |
| 10343 | # * Adding a conditional role binding to a policy |
| 10344 | # * Changing a conditional role binding in a policy |
| 10345 | # * Removing any role binding, with or without a condition, from a policy |
| 10346 | # that includes conditions |
| 10347 | # |
| 10348 | # **Important:** If you use IAM Conditions, you must include the `etag` field |
| 10349 | # whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 10350 | # you to overwrite a version `3` policy with a version `1` policy, and all of |
| 10351 | # the conditions in the version `3` policy are lost. |
| 10352 | # |
| 10353 | # If a policy does not include any conditions, operations on that policy may |
| 10354 | # specify any valid version or leave the field unset. |
| 10355 | # |
| 10356 | # To learn which resources support conditions in their IAM policies, see the |
| 10357 | # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 10358 | "auditConfigs": [ # Specifies cloud audit logging configuration for this policy. |
| 10359 | { # Specifies the audit configuration for a service. |
| 10360 | # The configuration determines which permission types are logged, and what |
| 10361 | # identities, if any, are exempted from logging. |
| 10362 | # An AuditConfig must have one or more AuditLogConfigs. |
| 10363 | # |
| 10364 | # If there are AuditConfigs for both `allServices` and a specific service, |
| 10365 | # the union of the two AuditConfigs is used for that service: the log_types |
| 10366 | # specified in each AuditConfig are enabled, and the exempted_members in each |
| 10367 | # AuditLogConfig are exempted. |
| 10368 | # |
| 10369 | # Example Policy with multiple AuditConfigs: |
| 10370 | # |
| 10371 | # { |
| 10372 | # "audit_configs": [ |
| 10373 | # { |
| 10374 | # "service": "allServices" |
| 10375 | # "audit_log_configs": [ |
| 10376 | # { |
| 10377 | # "log_type": "DATA_READ", |
| 10378 | # "exempted_members": [ |
| 10379 | # "user:jose@example.com" |
| 10380 | # ] |
| 10381 | # }, |
| 10382 | # { |
| 10383 | # "log_type": "DATA_WRITE", |
| 10384 | # }, |
| 10385 | # { |
| 10386 | # "log_type": "ADMIN_READ", |
| 10387 | # } |
| 10388 | # ] |
| 10389 | # }, |
| 10390 | # { |
| 10391 | # "service": "sampleservice.googleapis.com" |
| 10392 | # "audit_log_configs": [ |
| 10393 | # { |
| 10394 | # "log_type": "DATA_READ", |
| 10395 | # }, |
| 10396 | # { |
| 10397 | # "log_type": "DATA_WRITE", |
| 10398 | # "exempted_members": [ |
| 10399 | # "user:aliya@example.com" |
| 10400 | # ] |
| 10401 | # } |
| 10402 | # ] |
| 10403 | # } |
| 10404 | # ] |
| 10405 | # } |
| 10406 | # |
| 10407 | # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ |
| 10408 | # logging. It also exempts jose@example.com from DATA_READ logging, and |
| 10409 | # aliya@example.com from DATA_WRITE logging. |
| 10410 | "service": "A String", # Specifies a service that will be enabled for audit logging. |
| 10411 | # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. |
| 10412 | # `allServices` is a special value that covers all services. |
| 10413 | "auditLogConfigs": [ # The configuration for logging of each type of permission. |
| 10414 | { # Provides the configuration for logging a type of permissions. |
| 10415 | # Example: |
| 10416 | # |
| 10417 | # { |
| 10418 | # "audit_log_configs": [ |
| 10419 | # { |
| 10420 | # "log_type": "DATA_READ", |
| 10421 | # "exempted_members": [ |
| 10422 | # "user:jose@example.com" |
| 10423 | # ] |
| 10424 | # }, |
| 10425 | # { |
| 10426 | # "log_type": "DATA_WRITE", |
| 10427 | # } |
| 10428 | # ] |
| 10429 | # } |
| 10430 | # |
| 10431 | # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting |
| 10432 | # jose@example.com from DATA_READ logging. |
| 10433 | "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of |
| 10434 | # permission. |
| 10435 | # Follows the same format of Binding.members. |
| 10436 | "A String", |
| 10437 | ], |
| 10438 | "logType": "A String", # The log type that this config enables. |
| 10439 | }, |
| 10440 | ], |
| 10441 | }, |
| 10442 | ], |
| 10443 | "bindings": [ # Associates a list of `members` to a `role`. Optionally, may specify a |
| 10444 | # `condition` that determines how and when the `bindings` are applied. Each |
| 10445 | # of the `bindings` must contain at least one member. |
| 10446 | { # Associates `members` with a `role`. |
| 10447 | "condition": { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding. |
| 10448 | # |
| 10449 | # If the condition evaluates to `true`, then this binding applies to the |
| 10450 | # current request. |
| 10451 | # |
| 10452 | # If the condition evaluates to `false`, then this binding does not apply to |
| 10453 | # the current request. However, a different role binding might grant the same |
| 10454 | # role to one or more of the members in this binding. |
| 10455 | # |
| 10456 | # To learn which resources support conditions in their IAM policies, see the |
| 10457 | # [IAM |
| 10458 | # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 10459 | # syntax. CEL is a C-like expression language. The syntax and semantics of CEL |
| 10460 | # are documented at https://github.com/google/cel-spec. |
| 10461 | # |
| 10462 | # Example (Comparison): |
| 10463 | # |
| 10464 | # title: "Summary size limit" |
| 10465 | # description: "Determines if a summary is less than 100 chars" |
| 10466 | # expression: "document.summary.size() < 100" |
| 10467 | # |
| 10468 | # Example (Equality): |
| 10469 | # |
| 10470 | # title: "Requestor is owner" |
| 10471 | # description: "Determines if requestor is the document owner" |
| 10472 | # expression: "document.owner == request.auth.claims.email" |
| 10473 | # |
| 10474 | # Example (Logic): |
| 10475 | # |
| 10476 | # title: "Public documents" |
| 10477 | # description: "Determine whether the document should be publicly visible" |
| 10478 | # expression: "document.type != 'private' && document.type != 'internal'" |
| 10479 | # |
| 10480 | # Example (Data Manipulation): |
| 10481 | # |
| 10482 | # title: "Notification string" |
| 10483 | # description: "Create a notification string with a timestamp." |
| 10484 | # expression: "'New message received at ' + string(document.create_time)" |
| 10485 | # |
| 10486 | # The exact variables and functions that may be referenced within an expression |
| 10487 | # are determined by the service that evaluates it. See the service |
| 10488 | # documentation for additional information. |
| 10489 | "expression": "A String", # Textual representation of an expression in Common Expression Language |
| 10490 | # syntax. |
| 10491 | "title": "A String", # Optional. Title for the expression, i.e. a short string describing |
| 10492 | # its purpose. This can be used e.g. in UIs which allow to enter the |
| 10493 | # expression. |
| 10494 | "location": "A String", # Optional. String indicating the location of the expression for error |
| 10495 | # reporting, e.g. a file name and a position in the file. |
| 10496 | "description": "A String", # Optional. Description of the expression. This is a longer text which |
| 10497 | # describes the expression, e.g. when hovered over it in a UI. |
| 10498 | }, |
| 10499 | "members": [ # Specifies the identities requesting access for a Cloud Platform resource. |
| 10500 | # `members` can have the following values: |
| 10501 | # |
| 10502 | # * `allUsers`: A special identifier that represents anyone who is |
| 10503 | # on the internet; with or without a Google account. |
| 10504 | # |
| 10505 | # * `allAuthenticatedUsers`: A special identifier that represents anyone |
| 10506 | # who is authenticated with a Google account or a service account. |
| 10507 | # |
| 10508 | # * `user:{emailid}`: An email address that represents a specific Google |
| 10509 | # account. For example, `alice@example.com` . |
| 10510 | # |
| 10511 | # |
| 10512 | # * `serviceAccount:{emailid}`: An email address that represents a service |
| 10513 | # account. For example, `my-other-app@appspot.gserviceaccount.com`. |
| 10514 | # |
| 10515 | # * `group:{emailid}`: An email address that represents a Google group. |
| 10516 | # For example, `admins@example.com`. |
| 10517 | # |
| 10518 | # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 10519 | # identifier) representing a user that has been recently deleted. For |
| 10520 | # example, `alice@example.com?uid=123456789012345678901`. If the user is |
| 10521 | # recovered, this value reverts to `user:{emailid}` and the recovered user |
| 10522 | # retains the role in the binding. |
| 10523 | # |
| 10524 | # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus |
| 10525 | # unique identifier) representing a service account that has been recently |
| 10526 | # deleted. For example, |
| 10527 | # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. |
| 10528 | # If the service account is undeleted, this value reverts to |
| 10529 | # `serviceAccount:{emailid}` and the undeleted service account retains the |
| 10530 | # role in the binding. |
| 10531 | # |
| 10532 | # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 10533 | # identifier) representing a Google group that has been recently |
| 10534 | # deleted. For example, `admins@example.com?uid=123456789012345678901`. If |
| 10535 | # the group is recovered, this value reverts to `group:{emailid}` and the |
| 10536 | # recovered group retains the role in the binding. |
| 10537 | # |
| 10538 | # |
| 10539 | # * `domain:{domain}`: The G Suite domain (primary) that represents all the |
| 10540 | # users of that domain. For example, `google.com` or `example.com`. |
| 10541 | # |
| 10542 | "A String", |
| 10543 | ], |
| 10544 | "role": "A String", # Role that is assigned to `members`. |
| 10545 | # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
| 10546 | }, |
| 10547 | ], |
| 10548 | }</pre> |
| 10549 | </div> |
| 10550 | |
| 10551 | <div class="method"> |
| 10552 | <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code> |
| 10553 | <pre>Returns permissions that a caller has on the specified Project. |
| 10554 | |
| 10555 | There are no permissions required for making this API call. |
| 10556 | |
| 10557 | Args: |
| 10558 | resource: string, REQUIRED: The resource for which the policy detail is being requested. |
| 10559 | See the operation documentation for the appropriate value for this field. (required) |
| 10560 | body: object, The request body. |
| 10561 | The object takes the form of: |
| 10562 | |
| 10563 | { # Request message for `TestIamPermissions` method. |
| 10564 | "permissions": [ # The set of permissions to check for the `resource`. Permissions with |
| 10565 | # wildcards (such as '*' or 'storage.*') are not allowed. For more |
| 10566 | # information see |
| 10567 | # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
| 10568 | "A String", |
| 10569 | ], |
| 10570 | } |
| 10571 | |
| 10572 | x__xgafv: string, V1 error format. |
| 10573 | Allowed values |
| 10574 | 1 - v1 error format |
| 10575 | 2 - v2 error format |
| 10576 | |
| 10577 | Returns: |
| 10578 | An object of the form: |
| 10579 | |
| 10580 | { # Response message for `TestIamPermissions` method. |
| 10581 | "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is |
| 10582 | # allowed. |
| 10583 | "A String", |
| 10584 | ], |
| 10585 | }</pre> |
| 10586 | </div> |
| 10587 | |
| 10588 | </body></html> |