kubernetes_asyncio.client.models.v1_secret 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.V1Secret(api_version=None, data=None, immutable=None, kind=None, metadata=None, string_data=None, type=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- property api_version
Gets the api_version of this V1Secret. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- Returns:
The api_version of this V1Secret. # noqa: E501
- Return type:
str
- attribute_map = {'api_version': 'apiVersion', 'data': 'data', 'immutable': 'immutable', 'kind': 'kind', 'metadata': 'metadata', 'string_data': 'stringData', 'type': 'type'}
- property data
Gets the data of this V1Secret. # noqa: E501
Data contains the secret data. Each key must consist of alphanumeric characters, ‘-’, ‘_’ or ‘.’. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 # noqa: E501
- Returns:
The data of this V1Secret. # noqa: E501
- Return type:
dict(str, str)
- property immutable
Gets the immutable of this V1Secret. # noqa: E501
Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. # noqa: E501
- Returns:
The immutable of this V1Secret. # noqa: E501
- Return type:
bool
- property kind
Gets the kind of this V1Secret. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- Returns:
The kind of this V1Secret. # noqa: E501
- Return type:
str
- property metadata
Gets the metadata of this V1Secret. # noqa: E501
- Returns:
The metadata of this V1Secret. # noqa: E501
- Return type:
- openapi_types = {'api_version': 'str', 'data': 'dict(str, str)', 'immutable': 'bool', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'string_data': 'dict(str, str)', 'type': 'str'}
- property string_data
Gets the string_data of this V1Secret. # noqa: E501
stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. # noqa: E501
- Returns:
The string_data of this V1Secret. # noqa: E501
- Return type:
dict(str, str)
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model
- property type
Gets the type of this V1Secret. # noqa: E501
Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types # noqa: E501
- Returns:
The type of this V1Secret. # noqa: E501
- Return type:
str