kubernetes.client.models.v1_node_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_node_spec.V1NodeSpec(*, config_source: V1NodeConfigSource | None = None, external_id: Annotated[str, Strict(strict=True)] | None = None, pod_cidr: Annotated[str, Strict(strict=True)] | None = None, pod_cidrs: List[Annotated[str, Strict(strict=True)]] | None = None, provider_id: Annotated[str, Strict(strict=True)] | None = None, taints: List[V1Taint] | None = None, unschedulable: Annotated[bool, Strict(strict=True)] | None = None)¶
Bases:
BaseModelNodeSpec describes the attributes that a node is created with.
- 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.
- attribute_map: ClassVar[Dict[str, str]] = {'config_source': 'configSource', 'external_id': 'externalID', 'pod_cidr': 'podCIDR', 'pod_cidrs': 'podCIDRs', 'provider_id': 'providerID', 'taints': 'taints', 'unschedulable': 'unschedulable'}¶
- config_source: V1NodeConfigSource | None¶
- external_id: StrictStr | None¶
- classmethod from_dict(obj: Dict[str, Any] | None) Self | None¶
Create an instance of V1NodeSpec from a dict
- classmethod from_json(json_str: str) Self | None¶
Create an instance of V1NodeSpec from a JSON string
- 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].
- openapi_types: ClassVar[Dict[str, str]] = {'config_source': 'V1NodeConfigSource', 'external_id': 'str', 'pod_cidr': 'str', 'pod_cidrs': 'List[str]', 'provider_id': 'str', 'taints': 'List[V1Taint]', 'unschedulable': 'bool'}¶
- pod_cidr: StrictStr | None¶
- pod_cidrs: List[StrictStr] | None¶
- provider_id: StrictStr | 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
- unschedulable: StrictBool | None¶