kubernetes_asyncio.client.models.v1_config_map_projection module

Kubernetes

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech

class kubernetes_asyncio.client.models.v1_config_map_projection.V1ConfigMapProjection(items=None, name=None, optional=None, local_vars_configuration=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

attribute_map = {'items': 'items', 'name': 'name', 'optional': 'optional'}
property items

Gets the items of this V1ConfigMapProjection. # noqa: E501

items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the ‘..’ path or start with ‘..’. # noqa: E501

Returns:

The items of this V1ConfigMapProjection. # noqa: E501

Return type:

list[V1KeyToPath]

property name

Gets the name of this V1ConfigMapProjection. # noqa: E501

Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501

Returns:

The name of this V1ConfigMapProjection. # noqa: E501

Return type:

str

openapi_types = {'items': 'list[V1KeyToPath]', 'name': 'str', 'optional': 'bool'}
property optional

Gets the optional of this V1ConfigMapProjection. # noqa: E501

optional specify whether the ConfigMap or its keys must be defined # noqa: E501

Returns:

The optional of this V1ConfigMapProjection. # noqa: E501

Return type:

bool

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model