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.api.html">api</a> . <a href="run_v1.api.v1.html">v1</a> . <a href="run_v1.api.v1.namespaces.html">namespaces</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="run_v1.api.v1.namespaces.secrets.html">secrets()</a></code> |
| 79 | </p> |
| 80 | <p class="firstline">Returns the secrets Resource.</p> |
| 81 | |
| 82 | <p class="toc_element"> |
| 83 | <code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 84 | <p class="firstline">Rpc to get information about a namespace.</p> |
| 85 | <p class="toc_element"> |
| 86 | <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> |
| 87 | <p class="firstline">Rpc to update a namespace.</p> |
| 88 | <h3>Method Details</h3> |
| 89 | <div class="method"> |
| 90 | <code class="details" id="get">get(name, x__xgafv=None)</code> |
| 91 | <pre>Rpc to get information about a namespace. |
| 92 | |
| 93 | Args: |
| 94 | name: string, Required. The name of the namespace being retrieved. If needed, replace |
| 95 | {namespace_id} with the project ID. (required) |
| 96 | x__xgafv: string, V1 error format. |
| 97 | Allowed values |
| 98 | 1 - v1 error format |
| 99 | 2 - v2 error format |
| 100 | |
| 101 | Returns: |
| 102 | An object of the form: |
| 103 | |
| 104 | { # Cloud Run fully managed: not supported |
| 105 | # |
| 106 | # Cloud Run on GKE: supported |
| 107 | # |
| 108 | # Namespace provides a scope for Names. |
| 109 | # Use of multiple namespaces is optional. |
| 110 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Standard object's metadata. |
| 111 | # More info: |
| 112 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 113 | # persisted resources must have, which includes all objects users must create. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 114 | "annotations": { # (Optional) |
| 115 | # |
| 116 | # Annotations is an unstructured key value map stored with a resource that |
| 117 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 118 | # are not queryable and should be preserved when modifying objects. More |
| 119 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 120 | "a_key": "A String", |
| 121 | }, |
| 122 | "generateName": "A String", # (Optional) |
| 123 | # |
| 124 | # Cloud Run fully managed: not supported |
| 125 | # |
| 126 | # Cloud Run for Anthos: supported |
| 127 | # |
| 128 | # GenerateName is an optional prefix, used by the server, to generate a |
| 129 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 130 | # used, the name returned to the client will be different than the name |
| 131 | # passed. This value will also be combined with a unique suffix. The provided |
| 132 | # value has the same validation rules as the Name field, and may be truncated |
| 133 | # by the length of the suffix required to make the value unique on the |
| 134 | # server. |
| 135 | # |
| 136 | # If this field is specified and the generated name exists, the server will |
| 137 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 138 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 139 | # time allotted, and the client should retry (optionally after the time |
| 140 | # indicated in the Retry-After header). |
| 141 | # |
| 142 | # Applied only if Name is not specified. |
| 143 | # More info: |
| 144 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 145 | # string generateName = 2; |
| 146 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 147 | # Is required when creating |
| 148 | # resources, although some resources may allow a client to request the |
| 149 | # generation of an appropriate name automatically. Name is primarily intended |
| 150 | # for creation idempotence and configuration definition. Cannot be updated. |
| 151 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 152 | # +optional |
| 153 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 154 | # |
| 155 | # Cloud Run fully managed: not supported |
| 156 | # |
| 157 | # Cloud Run for Anthos: supported |
| 158 | # |
| 159 | # Number of seconds allowed for this object to gracefully terminate before |
| 160 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 161 | # set. May only be shortened. Read-only. |
| 162 | "clusterName": "A String", # (Optional) |
| 163 | # |
| 164 | # Cloud Run fully managed: not supported |
| 165 | # |
| 166 | # Cloud Run for Anthos: supported |
| 167 | # |
| 168 | # The name of the cluster which the object belongs to. |
| 169 | # This is used to distinguish resources with same name and namespace in |
| 170 | # different clusters. This field is not set anywhere right now and apiserver |
| 171 | # is going to ignore it if set in create or update request. |
| 172 | "finalizers": [ # (Optional) |
| 173 | # |
| 174 | # Cloud Run fully managed: not supported |
| 175 | # |
| 176 | # Cloud Run for Anthos: supported |
| 177 | # |
| 178 | # Must be empty before the object is deleted from the registry. Each entry |
| 179 | # is an identifier for the responsible component that will remove the entry |
| 180 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 181 | # in this list can only be removed. |
| 182 | # +patchStrategy=merge |
| 183 | "A String", |
| 184 | ], |
| 185 | "deletionTimestamp": "A String", # (Optional) |
| 186 | # |
| 187 | # Cloud Run fully managed: not supported |
| 188 | # |
| 189 | # Cloud Run for Anthos: supported |
| 190 | # |
| 191 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 192 | # deleted. This field is set by the server when a graceful deletion is |
| 193 | # requested by the user, and is not directly settable by a client. The |
| 194 | # resource is expected to be deleted (no longer visible from resource lists, |
| 195 | # and not reachable by name) after the time in this field, once the |
| 196 | # finalizers list is empty. As long as the finalizers list contains items, |
| 197 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 198 | # be unset or be set further into the future, although it may be shortened or |
| 199 | # the resource may be deleted prior to this time. For example, a user may |
| 200 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 201 | # sending a graceful termination signal to the containers in the pod. After |
| 202 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 203 | # to the container and after cleanup, remove the pod from the API. In the |
| 204 | # presence of network partitions, this object may still exist after this |
| 205 | # timestamp, until an administrator or automated process can determine the |
| 206 | # resource is fully terminated. |
| 207 | # If not set, graceful deletion of the object has not been requested. |
| 208 | # |
| 209 | # Populated by the system when a graceful deletion is requested. |
| 210 | # Read-only. |
| 211 | # More info: |
| 212 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 213 | "ownerReferences": [ # (Optional) |
| 214 | # |
| 215 | # Cloud Run fully managed: not supported |
| 216 | # |
| 217 | # Cloud Run for Anthos: supported |
| 218 | # |
| 219 | # List of objects that own this object. If ALL objects in the list have |
| 220 | # been deleted, this object will be garbage collected. |
| 221 | { # OwnerReference contains enough information to let you identify an owning |
| 222 | # object. Currently, an owning object must be in the same namespace, so there |
| 223 | # is no namespace field. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 224 | "controller": True or False, # If true, this reference points to the managing controller. |
| 225 | # +optional |
| 226 | "kind": "A String", # Kind of the referent. |
| 227 | # More info: |
| 228 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 229 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 230 | # the owner cannot be deleted from the key-value store until this |
| 231 | # reference is removed. |
| 232 | # Defaults to false. |
| 233 | # To set this field, a user needs "delete" permission of the owner, |
| 234 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 235 | # +optional |
| 236 | "apiVersion": "A String", # API version of the referent. |
| 237 | "name": "A String", # Name of the referent. |
| 238 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 239 | "uid": "A String", # UID of the referent. |
| 240 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 241 | }, |
| 242 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 243 | "creationTimestamp": "A String", # (Optional) |
| 244 | # |
| 245 | # CreationTimestamp is a timestamp representing the server time when this |
| 246 | # object was created. It is not guaranteed to be set in happens-before order |
| 247 | # across separate operations. Clients may not set this value. It is |
| 248 | # represented in RFC3339 form and is in UTC. |
| 249 | # |
| 250 | # Populated by the system. |
| 251 | # Read-only. |
| 252 | # Null for lists. |
| 253 | # More info: |
| 254 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 255 | "labels": { # (Optional) |
| 256 | # |
| 257 | # Map of string keys and values that can be used to organize and categorize |
| 258 | # (scope and select) objects. May match selectors of replication controllers |
| 259 | # and routes. |
| 260 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 261 | "a_key": "A String", |
| 262 | }, |
| 263 | "generation": 42, # (Optional) |
| 264 | # |
| 265 | # A sequence number representing a specific generation of the desired state. |
| 266 | # Populated by the system. Read-only. |
| 267 | "resourceVersion": "A String", # (Optional) |
| 268 | # |
| 269 | # An opaque value that represents the internal version of this object that |
| 270 | # can be used by clients to determine when objects have changed. May be used |
| 271 | # for optimistic concurrency, change detection, and the watch operation on a |
| 272 | # resource or set of resources. Clients must treat these values as opaque and |
| 273 | # passed unmodified back to the server. They may only be valid for a |
| 274 | # particular resource or set of resources. |
| 275 | # |
| 276 | # Populated by the system. |
| 277 | # Read-only. |
| 278 | # Value must be treated as opaque by clients and . |
| 279 | # More info: |
| 280 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 281 | "selfLink": "A String", # (Optional) |
| 282 | # |
| 283 | # SelfLink is a URL representing this object. |
| 284 | # Populated by the system. |
| 285 | # Read-only. |
| 286 | # string selfLink = 4; |
| 287 | "uid": "A String", # (Optional) |
| 288 | # |
| 289 | # UID is the unique in time and space value for this object. It is typically |
| 290 | # generated by the server on successful creation of a resource and is not |
| 291 | # allowed to change on PUT operations. |
| 292 | # |
| 293 | # Populated by the system. |
| 294 | # Read-only. |
| 295 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 296 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 297 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 298 | # project ID or project number. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 299 | }, |
| 300 | "status": { # Cloud Run fully managed: not supported # Status describes the current status of a Namespace. |
| 301 | # More info: |
| 302 | # https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
| 303 | # |
| 304 | # Cloud Run on GKE: supported |
| 305 | # |
| 306 | # NamespaceStatus is information about the current status of a Namespace. |
| 307 | "phase": "A String", # Phase is the current lifecycle phase of the namespace. |
| 308 | # More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ |
| 309 | }, |
| 310 | "spec": { # Cloud Run fully managed: not supported # Spec defines the behavior of the Namespace. |
| 311 | # More info: |
| 312 | # https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
| 313 | # |
| 314 | # Cloud Run on GKE: supported |
| 315 | # |
| 316 | # NamespaceSpec describes the attributes on a Namespace. |
| 317 | "finalizers": [ # Finalizers is an opaque list of values that must be empty to permanently |
| 318 | # remove object from storage. More info: |
| 319 | # https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ |
| 320 | "A String", |
| 321 | ], |
| 322 | }, |
| 323 | }</pre> |
| 324 | </div> |
| 325 | |
| 326 | <div class="method"> |
| 327 | <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> |
| 328 | <pre>Rpc to update a namespace. |
| 329 | |
| 330 | Args: |
| 331 | name: string, Required. The name of the namespace being retrieved. If needed, replace |
| 332 | {namespace_id} with the project ID. (required) |
| 333 | body: object, The request body. |
| 334 | The object takes the form of: |
| 335 | |
| 336 | { # Cloud Run fully managed: not supported |
| 337 | # |
| 338 | # Cloud Run on GKE: supported |
| 339 | # |
| 340 | # Namespace provides a scope for Names. |
| 341 | # Use of multiple namespaces is optional. |
| 342 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Standard object's metadata. |
| 343 | # More info: |
| 344 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 345 | # persisted resources must have, which includes all objects users must create. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 346 | "annotations": { # (Optional) |
| 347 | # |
| 348 | # Annotations is an unstructured key value map stored with a resource that |
| 349 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 350 | # are not queryable and should be preserved when modifying objects. More |
| 351 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 352 | "a_key": "A String", |
| 353 | }, |
| 354 | "generateName": "A String", # (Optional) |
| 355 | # |
| 356 | # Cloud Run fully managed: not supported |
| 357 | # |
| 358 | # Cloud Run for Anthos: supported |
| 359 | # |
| 360 | # GenerateName is an optional prefix, used by the server, to generate a |
| 361 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 362 | # used, the name returned to the client will be different than the name |
| 363 | # passed. This value will also be combined with a unique suffix. The provided |
| 364 | # value has the same validation rules as the Name field, and may be truncated |
| 365 | # by the length of the suffix required to make the value unique on the |
| 366 | # server. |
| 367 | # |
| 368 | # If this field is specified and the generated name exists, the server will |
| 369 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 370 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 371 | # time allotted, and the client should retry (optionally after the time |
| 372 | # indicated in the Retry-After header). |
| 373 | # |
| 374 | # Applied only if Name is not specified. |
| 375 | # More info: |
| 376 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 377 | # string generateName = 2; |
| 378 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 379 | # Is required when creating |
| 380 | # resources, although some resources may allow a client to request the |
| 381 | # generation of an appropriate name automatically. Name is primarily intended |
| 382 | # for creation idempotence and configuration definition. Cannot be updated. |
| 383 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 384 | # +optional |
| 385 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 386 | # |
| 387 | # Cloud Run fully managed: not supported |
| 388 | # |
| 389 | # Cloud Run for Anthos: supported |
| 390 | # |
| 391 | # Number of seconds allowed for this object to gracefully terminate before |
| 392 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 393 | # set. May only be shortened. Read-only. |
| 394 | "clusterName": "A String", # (Optional) |
| 395 | # |
| 396 | # Cloud Run fully managed: not supported |
| 397 | # |
| 398 | # Cloud Run for Anthos: supported |
| 399 | # |
| 400 | # The name of the cluster which the object belongs to. |
| 401 | # This is used to distinguish resources with same name and namespace in |
| 402 | # different clusters. This field is not set anywhere right now and apiserver |
| 403 | # is going to ignore it if set in create or update request. |
| 404 | "finalizers": [ # (Optional) |
| 405 | # |
| 406 | # Cloud Run fully managed: not supported |
| 407 | # |
| 408 | # Cloud Run for Anthos: supported |
| 409 | # |
| 410 | # Must be empty before the object is deleted from the registry. Each entry |
| 411 | # is an identifier for the responsible component that will remove the entry |
| 412 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 413 | # in this list can only be removed. |
| 414 | # +patchStrategy=merge |
| 415 | "A String", |
| 416 | ], |
| 417 | "deletionTimestamp": "A String", # (Optional) |
| 418 | # |
| 419 | # Cloud Run fully managed: not supported |
| 420 | # |
| 421 | # Cloud Run for Anthos: supported |
| 422 | # |
| 423 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 424 | # deleted. This field is set by the server when a graceful deletion is |
| 425 | # requested by the user, and is not directly settable by a client. The |
| 426 | # resource is expected to be deleted (no longer visible from resource lists, |
| 427 | # and not reachable by name) after the time in this field, once the |
| 428 | # finalizers list is empty. As long as the finalizers list contains items, |
| 429 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 430 | # be unset or be set further into the future, although it may be shortened or |
| 431 | # the resource may be deleted prior to this time. For example, a user may |
| 432 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 433 | # sending a graceful termination signal to the containers in the pod. After |
| 434 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 435 | # to the container and after cleanup, remove the pod from the API. In the |
| 436 | # presence of network partitions, this object may still exist after this |
| 437 | # timestamp, until an administrator or automated process can determine the |
| 438 | # resource is fully terminated. |
| 439 | # If not set, graceful deletion of the object has not been requested. |
| 440 | # |
| 441 | # Populated by the system when a graceful deletion is requested. |
| 442 | # Read-only. |
| 443 | # More info: |
| 444 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 445 | "ownerReferences": [ # (Optional) |
| 446 | # |
| 447 | # Cloud Run fully managed: not supported |
| 448 | # |
| 449 | # Cloud Run for Anthos: supported |
| 450 | # |
| 451 | # List of objects that own this object. If ALL objects in the list have |
| 452 | # been deleted, this object will be garbage collected. |
| 453 | { # OwnerReference contains enough information to let you identify an owning |
| 454 | # object. Currently, an owning object must be in the same namespace, so there |
| 455 | # is no namespace field. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 456 | "controller": True or False, # If true, this reference points to the managing controller. |
| 457 | # +optional |
| 458 | "kind": "A String", # Kind of the referent. |
| 459 | # More info: |
| 460 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 461 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 462 | # the owner cannot be deleted from the key-value store until this |
| 463 | # reference is removed. |
| 464 | # Defaults to false. |
| 465 | # To set this field, a user needs "delete" permission of the owner, |
| 466 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 467 | # +optional |
| 468 | "apiVersion": "A String", # API version of the referent. |
| 469 | "name": "A String", # Name of the referent. |
| 470 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 471 | "uid": "A String", # UID of the referent. |
| 472 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 473 | }, |
| 474 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 475 | "creationTimestamp": "A String", # (Optional) |
| 476 | # |
| 477 | # CreationTimestamp is a timestamp representing the server time when this |
| 478 | # object was created. It is not guaranteed to be set in happens-before order |
| 479 | # across separate operations. Clients may not set this value. It is |
| 480 | # represented in RFC3339 form and is in UTC. |
| 481 | # |
| 482 | # Populated by the system. |
| 483 | # Read-only. |
| 484 | # Null for lists. |
| 485 | # More info: |
| 486 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 487 | "labels": { # (Optional) |
| 488 | # |
| 489 | # Map of string keys and values that can be used to organize and categorize |
| 490 | # (scope and select) objects. May match selectors of replication controllers |
| 491 | # and routes. |
| 492 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 493 | "a_key": "A String", |
| 494 | }, |
| 495 | "generation": 42, # (Optional) |
| 496 | # |
| 497 | # A sequence number representing a specific generation of the desired state. |
| 498 | # Populated by the system. Read-only. |
| 499 | "resourceVersion": "A String", # (Optional) |
| 500 | # |
| 501 | # An opaque value that represents the internal version of this object that |
| 502 | # can be used by clients to determine when objects have changed. May be used |
| 503 | # for optimistic concurrency, change detection, and the watch operation on a |
| 504 | # resource or set of resources. Clients must treat these values as opaque and |
| 505 | # passed unmodified back to the server. They may only be valid for a |
| 506 | # particular resource or set of resources. |
| 507 | # |
| 508 | # Populated by the system. |
| 509 | # Read-only. |
| 510 | # Value must be treated as opaque by clients and . |
| 511 | # More info: |
| 512 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 513 | "selfLink": "A String", # (Optional) |
| 514 | # |
| 515 | # SelfLink is a URL representing this object. |
| 516 | # Populated by the system. |
| 517 | # Read-only. |
| 518 | # string selfLink = 4; |
| 519 | "uid": "A String", # (Optional) |
| 520 | # |
| 521 | # UID is the unique in time and space value for this object. It is typically |
| 522 | # generated by the server on successful creation of a resource and is not |
| 523 | # allowed to change on PUT operations. |
| 524 | # |
| 525 | # Populated by the system. |
| 526 | # Read-only. |
| 527 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 528 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 529 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 530 | # project ID or project number. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 531 | }, |
| 532 | "status": { # Cloud Run fully managed: not supported # Status describes the current status of a Namespace. |
| 533 | # More info: |
| 534 | # https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
| 535 | # |
| 536 | # Cloud Run on GKE: supported |
| 537 | # |
| 538 | # NamespaceStatus is information about the current status of a Namespace. |
| 539 | "phase": "A String", # Phase is the current lifecycle phase of the namespace. |
| 540 | # More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ |
| 541 | }, |
| 542 | "spec": { # Cloud Run fully managed: not supported # Spec defines the behavior of the Namespace. |
| 543 | # More info: |
| 544 | # https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
| 545 | # |
| 546 | # Cloud Run on GKE: supported |
| 547 | # |
| 548 | # NamespaceSpec describes the attributes on a Namespace. |
| 549 | "finalizers": [ # Finalizers is an opaque list of values that must be empty to permanently |
| 550 | # remove object from storage. More info: |
| 551 | # https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ |
| 552 | "A String", |
| 553 | ], |
| 554 | }, |
| 555 | } |
| 556 | |
| 557 | updateMask: string, Required. Indicates which fields in the provided namespace to update. |
| 558 | This field is currently unused. |
| 559 | x__xgafv: string, V1 error format. |
| 560 | Allowed values |
| 561 | 1 - v1 error format |
| 562 | 2 - v2 error format |
| 563 | |
| 564 | Returns: |
| 565 | An object of the form: |
| 566 | |
| 567 | { # Cloud Run fully managed: not supported |
| 568 | # |
| 569 | # Cloud Run on GKE: supported |
| 570 | # |
| 571 | # Namespace provides a scope for Names. |
| 572 | # Use of multiple namespaces is optional. |
| 573 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Standard object's metadata. |
| 574 | # More info: |
| 575 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 576 | # persisted resources must have, which includes all objects users must create. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 577 | "annotations": { # (Optional) |
| 578 | # |
| 579 | # Annotations is an unstructured key value map stored with a resource that |
| 580 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 581 | # are not queryable and should be preserved when modifying objects. More |
| 582 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 583 | "a_key": "A String", |
| 584 | }, |
| 585 | "generateName": "A String", # (Optional) |
| 586 | # |
| 587 | # Cloud Run fully managed: not supported |
| 588 | # |
| 589 | # Cloud Run for Anthos: supported |
| 590 | # |
| 591 | # GenerateName is an optional prefix, used by the server, to generate a |
| 592 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 593 | # used, the name returned to the client will be different than the name |
| 594 | # passed. This value will also be combined with a unique suffix. The provided |
| 595 | # value has the same validation rules as the Name field, and may be truncated |
| 596 | # by the length of the suffix required to make the value unique on the |
| 597 | # server. |
| 598 | # |
| 599 | # If this field is specified and the generated name exists, the server will |
| 600 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 601 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 602 | # time allotted, and the client should retry (optionally after the time |
| 603 | # indicated in the Retry-After header). |
| 604 | # |
| 605 | # Applied only if Name is not specified. |
| 606 | # More info: |
| 607 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 608 | # string generateName = 2; |
| 609 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 610 | # Is required when creating |
| 611 | # resources, although some resources may allow a client to request the |
| 612 | # generation of an appropriate name automatically. Name is primarily intended |
| 613 | # for creation idempotence and configuration definition. Cannot be updated. |
| 614 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 615 | # +optional |
| 616 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 617 | # |
| 618 | # Cloud Run fully managed: not supported |
| 619 | # |
| 620 | # Cloud Run for Anthos: supported |
| 621 | # |
| 622 | # Number of seconds allowed for this object to gracefully terminate before |
| 623 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 624 | # set. May only be shortened. Read-only. |
| 625 | "clusterName": "A String", # (Optional) |
| 626 | # |
| 627 | # Cloud Run fully managed: not supported |
| 628 | # |
| 629 | # Cloud Run for Anthos: supported |
| 630 | # |
| 631 | # The name of the cluster which the object belongs to. |
| 632 | # This is used to distinguish resources with same name and namespace in |
| 633 | # different clusters. This field is not set anywhere right now and apiserver |
| 634 | # is going to ignore it if set in create or update request. |
| 635 | "finalizers": [ # (Optional) |
| 636 | # |
| 637 | # Cloud Run fully managed: not supported |
| 638 | # |
| 639 | # Cloud Run for Anthos: supported |
| 640 | # |
| 641 | # Must be empty before the object is deleted from the registry. Each entry |
| 642 | # is an identifier for the responsible component that will remove the entry |
| 643 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 644 | # in this list can only be removed. |
| 645 | # +patchStrategy=merge |
| 646 | "A String", |
| 647 | ], |
| 648 | "deletionTimestamp": "A String", # (Optional) |
| 649 | # |
| 650 | # Cloud Run fully managed: not supported |
| 651 | # |
| 652 | # Cloud Run for Anthos: supported |
| 653 | # |
| 654 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 655 | # deleted. This field is set by the server when a graceful deletion is |
| 656 | # requested by the user, and is not directly settable by a client. The |
| 657 | # resource is expected to be deleted (no longer visible from resource lists, |
| 658 | # and not reachable by name) after the time in this field, once the |
| 659 | # finalizers list is empty. As long as the finalizers list contains items, |
| 660 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 661 | # be unset or be set further into the future, although it may be shortened or |
| 662 | # the resource may be deleted prior to this time. For example, a user may |
| 663 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 664 | # sending a graceful termination signal to the containers in the pod. After |
| 665 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 666 | # to the container and after cleanup, remove the pod from the API. In the |
| 667 | # presence of network partitions, this object may still exist after this |
| 668 | # timestamp, until an administrator or automated process can determine the |
| 669 | # resource is fully terminated. |
| 670 | # If not set, graceful deletion of the object has not been requested. |
| 671 | # |
| 672 | # Populated by the system when a graceful deletion is requested. |
| 673 | # Read-only. |
| 674 | # More info: |
| 675 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 676 | "ownerReferences": [ # (Optional) |
| 677 | # |
| 678 | # Cloud Run fully managed: not supported |
| 679 | # |
| 680 | # Cloud Run for Anthos: supported |
| 681 | # |
| 682 | # List of objects that own this object. If ALL objects in the list have |
| 683 | # been deleted, this object will be garbage collected. |
| 684 | { # OwnerReference contains enough information to let you identify an owning |
| 685 | # object. Currently, an owning object must be in the same namespace, so there |
| 686 | # is no namespace field. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 687 | "controller": True or False, # If true, this reference points to the managing controller. |
| 688 | # +optional |
| 689 | "kind": "A String", # Kind of the referent. |
| 690 | # More info: |
| 691 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 692 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 693 | # the owner cannot be deleted from the key-value store until this |
| 694 | # reference is removed. |
| 695 | # Defaults to false. |
| 696 | # To set this field, a user needs "delete" permission of the owner, |
| 697 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 698 | # +optional |
| 699 | "apiVersion": "A String", # API version of the referent. |
| 700 | "name": "A String", # Name of the referent. |
| 701 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 702 | "uid": "A String", # UID of the referent. |
| 703 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 704 | }, |
| 705 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 706 | "creationTimestamp": "A String", # (Optional) |
| 707 | # |
| 708 | # CreationTimestamp is a timestamp representing the server time when this |
| 709 | # object was created. It is not guaranteed to be set in happens-before order |
| 710 | # across separate operations. Clients may not set this value. It is |
| 711 | # represented in RFC3339 form and is in UTC. |
| 712 | # |
| 713 | # Populated by the system. |
| 714 | # Read-only. |
| 715 | # Null for lists. |
| 716 | # More info: |
| 717 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 718 | "labels": { # (Optional) |
| 719 | # |
| 720 | # Map of string keys and values that can be used to organize and categorize |
| 721 | # (scope and select) objects. May match selectors of replication controllers |
| 722 | # and routes. |
| 723 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 724 | "a_key": "A String", |
| 725 | }, |
| 726 | "generation": 42, # (Optional) |
| 727 | # |
| 728 | # A sequence number representing a specific generation of the desired state. |
| 729 | # Populated by the system. Read-only. |
| 730 | "resourceVersion": "A String", # (Optional) |
| 731 | # |
| 732 | # An opaque value that represents the internal version of this object that |
| 733 | # can be used by clients to determine when objects have changed. May be used |
| 734 | # for optimistic concurrency, change detection, and the watch operation on a |
| 735 | # resource or set of resources. Clients must treat these values as opaque and |
| 736 | # passed unmodified back to the server. They may only be valid for a |
| 737 | # particular resource or set of resources. |
| 738 | # |
| 739 | # Populated by the system. |
| 740 | # Read-only. |
| 741 | # Value must be treated as opaque by clients and . |
| 742 | # More info: |
| 743 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 744 | "selfLink": "A String", # (Optional) |
| 745 | # |
| 746 | # SelfLink is a URL representing this object. |
| 747 | # Populated by the system. |
| 748 | # Read-only. |
| 749 | # string selfLink = 4; |
| 750 | "uid": "A String", # (Optional) |
| 751 | # |
| 752 | # UID is the unique in time and space value for this object. It is typically |
| 753 | # generated by the server on successful creation of a resource and is not |
| 754 | # allowed to change on PUT operations. |
| 755 | # |
| 756 | # Populated by the system. |
| 757 | # Read-only. |
| 758 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 759 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 760 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 761 | # project ID or project number. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 762 | }, |
| 763 | "status": { # Cloud Run fully managed: not supported # Status describes the current status of a Namespace. |
| 764 | # More info: |
| 765 | # https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
| 766 | # |
| 767 | # Cloud Run on GKE: supported |
| 768 | # |
| 769 | # NamespaceStatus is information about the current status of a Namespace. |
| 770 | "phase": "A String", # Phase is the current lifecycle phase of the namespace. |
| 771 | # More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ |
| 772 | }, |
| 773 | "spec": { # Cloud Run fully managed: not supported # Spec defines the behavior of the Namespace. |
| 774 | # More info: |
| 775 | # https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
| 776 | # |
| 777 | # Cloud Run on GKE: supported |
| 778 | # |
| 779 | # NamespaceSpec describes the attributes on a Namespace. |
| 780 | "finalizers": [ # Finalizers is an opaque list of values that must be empty to permanently |
| 781 | # remove object from storage. More info: |
| 782 | # https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ |
| 783 | "A String", |
| 784 | ], |
| 785 | }, |
| 786 | }</pre> |
| 787 | </div> |
| 788 | |
| 789 | </body></html> |