kubernetes.client.models.v1beta2_allocated_device_status 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.v1beta2_allocated_device_status.V1beta2AllocatedDeviceStatus(*, conditions: List[V1Condition] | None = None, data: Dict[str, Any] | None = None, device: Annotated[str, Strict(strict=True)], driver: Annotated[str, Strict(strict=True)], network_data: V1beta2NetworkDeviceData | None = None, pool: Annotated[str, Strict(strict=True)], share_id: Annotated[str, Strict(strict=True)] | None = None)

Bases: BaseModel

AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices.

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]] = {'conditions': 'conditions', 'data': 'data', 'device': 'device', 'driver': 'driver', 'network_data': 'networkData', 'pool': 'pool', 'share_id': 'shareID'}
conditions: List[V1Condition] | None
data: Dict[str, Any] | None
device: StrictStr
driver: StrictStr
classmethod from_dict(obj: Dict[str, Any] | None) Self | None

Create an instance of V1beta2AllocatedDeviceStatus from a dict

classmethod from_json(json_str: str) Self | None

Create an instance of V1beta2AllocatedDeviceStatus 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].

network_data: V1beta2NetworkDeviceData | None
openapi_types: ClassVar[Dict[str, str]] = {'conditions': 'List[V1Condition]', 'data': 'object', 'device': 'str', 'driver': 'str', 'network_data': 'V1beta2NetworkDeviceData', 'pool': 'str', 'share_id': 'str'}
pool: StrictStr
share_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