kubernetes_asyncio.client.models.v1_secret_volume_source 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_secret_volume_source.V1SecretVolumeSource(default_mode=None, items=None, optional=None, secret_name=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 = {'default_mode': 'defaultMode', 'items': 'items', 'optional': 'optional', 'secret_name': 'secretName'}
property default_mode

Gets the default_mode of this V1SecretVolumeSource. # noqa: E501

defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501

Returns:

The default_mode of this V1SecretVolumeSource. # noqa: E501

Return type:

int

property items

Gets the items of this V1SecretVolumeSource. # noqa: E501

items If unspecified, each key-value pair in the Data field of the referenced Secret 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 Secret, 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 V1SecretVolumeSource. # noqa: E501

Return type:

list[V1KeyToPath]

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

Gets the optional of this V1SecretVolumeSource. # noqa: E501

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

Returns:

The optional of this V1SecretVolumeSource. # noqa: E501

Return type:

bool

property secret_name

Gets the secret_name of this V1SecretVolumeSource. # noqa: E501

secretName is the name of the secret in the pod’s namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret # noqa: E501

Returns:

The secret_name of this V1SecretVolumeSource. # noqa: E501

Return type:

str

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model