kubernetes.client.models.v1_csi_driver_spec module¶
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: release-1.36 Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
- class kubernetes.client.models.v1_csi_driver_spec.V1CSIDriverSpec(*, attach_required: Annotated[bool, Strict(strict=True)] | None = None, fs_group_policy: Annotated[str, Strict(strict=True)] | None = None, node_allocatable_update_period_seconds: Annotated[int, Strict(strict=True)] | None = None, pod_info_on_mount: Annotated[bool, Strict(strict=True)] | None = None, prevent_pod_scheduling_if_missing: Annotated[bool, Strict(strict=True)] | None = None, requires_republish: Annotated[bool, Strict(strict=True)] | None = None, se_linux_mount: Annotated[bool, Strict(strict=True)] | None = None, service_account_token_in_secrets: Annotated[bool, Strict(strict=True)] | None = None, storage_capacity: Annotated[bool, Strict(strict=True)] | None = None, token_requests: List[StorageV1TokenRequest] | None = None, volume_lifecycle_modes: List[Annotated[str, Strict(strict=True)]] | None = None)¶
Bases:
BaseModelCSIDriverSpec is the specification of a CSIDriver.
- Attributes:
- openapi_types (dict): The key is attribute name
and the value is attribute type.
- attribute_map (dict): The key is attribute name
and the value is json key in definition.
- attach_required: StrictBool | None¶
- attribute_map: ClassVar[Dict[str, str]] = {'attach_required': 'attachRequired', 'fs_group_policy': 'fsGroupPolicy', 'node_allocatable_update_period_seconds': 'nodeAllocatableUpdatePeriodSeconds', 'pod_info_on_mount': 'podInfoOnMount', 'prevent_pod_scheduling_if_missing': 'preventPodSchedulingIfMissing', 'requires_republish': 'requiresRepublish', 'se_linux_mount': 'seLinuxMount', 'service_account_token_in_secrets': 'serviceAccountTokenInSecrets', 'storage_capacity': 'storageCapacity', 'token_requests': 'tokenRequests', 'volume_lifecycle_modes': 'volumeLifecycleModes'}¶
- classmethod from_dict(obj: Dict[str, Any] | None) Self | None¶
Create an instance of V1CSIDriverSpec from a dict
- classmethod from_json(json_str: str) Self | None¶
Create an instance of V1CSIDriverSpec from a JSON string
- fs_group_policy: StrictStr | None¶
- model_config = {'extra': 'forbid', 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- node_allocatable_update_period_seconds: StrictInt | None¶
- openapi_types: ClassVar[Dict[str, str]] = {'attach_required': 'bool', 'fs_group_policy': 'str', 'node_allocatable_update_period_seconds': 'int', 'pod_info_on_mount': 'bool', 'prevent_pod_scheduling_if_missing': 'bool', 'requires_republish': 'bool', 'se_linux_mount': 'bool', 'service_account_token_in_secrets': 'bool', 'storage_capacity': 'bool', 'token_requests': 'List[StorageV1TokenRequest]', 'volume_lifecycle_modes': 'List[str]'}¶
- pod_info_on_mount: StrictBool | None¶
- prevent_pod_scheduling_if_missing: StrictBool | None¶
- requires_republish: StrictBool | None¶
- se_linux_mount: StrictBool | None¶
- service_account_token_in_secrets: StrictBool | None¶
- storage_capacity: StrictBool | None¶
- to_dict(serialize: bool = False) Dict[str, Any]¶
Return all declared model fields using public or wire names.
- to_json() str¶
Returns the JSON representation of the model using alias
- to_str() str¶
Returns the string representation of the model
- token_requests: List[StorageV1TokenRequest] | None¶
- volume_lifecycle_modes: List[StrictStr] | None¶