kubernetes_asyncio.client.models.v1beta1_device_request_allocation_result 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.v1beta1_device_request_allocation_result.V1beta1DeviceRequestAllocationResult(admin_access=None, binding_conditions=None, binding_failure_conditions=None, consumed_capacity=None, device=None, driver=None, pool=None, request=None, share_id=None, tolerations=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.

property admin_access

Gets the admin_access of this V1beta1DeviceRequestAllocationResult. # noqa: E501

AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. # noqa: E501

Returns:

The admin_access of this V1beta1DeviceRequestAllocationResult. # noqa: E501

Return type:

bool

attribute_map = {'admin_access': 'adminAccess', 'binding_conditions': 'bindingConditions', 'binding_failure_conditions': 'bindingFailureConditions', 'consumed_capacity': 'consumedCapacity', 'device': 'device', 'driver': 'driver', 'pool': 'pool', 'request': 'request', 'share_id': 'shareID', 'tolerations': 'tolerations'}
property binding_conditions

Gets the binding_conditions of this V1beta1DeviceRequestAllocationResult. # noqa: E501

BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501

Returns:

The binding_conditions of this V1beta1DeviceRequestAllocationResult. # noqa: E501

Return type:

list[str]

property binding_failure_conditions

Gets the binding_failure_conditions of this V1beta1DeviceRequestAllocationResult. # noqa: E501

BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501

Returns:

The binding_failure_conditions of this V1beta1DeviceRequestAllocationResult. # noqa: E501

Return type:

list[str]

property consumed_capacity

Gets the consumed_capacity of this V1beta1DeviceRequestAllocationResult. # noqa: E501

ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity’s Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. # noqa: E501

Returns:

The consumed_capacity of this V1beta1DeviceRequestAllocationResult. # noqa: E501

Return type:

dict(str, str)

property device

Gets the device of this V1beta1DeviceRequestAllocationResult. # noqa: E501

Device references one device instance via its name in the driver’s resource pool. It must be a DNS label. # noqa: E501

Returns:

The device of this V1beta1DeviceRequestAllocationResult. # noqa: E501

Return type:

str

property driver

Gets the driver of this V1beta1DeviceRequestAllocationResult. # noqa: E501

Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. # noqa: E501

Returns:

The driver of this V1beta1DeviceRequestAllocationResult. # noqa: E501

Return type:

str

openapi_types = {'admin_access': 'bool', 'binding_conditions': 'list[str]', 'binding_failure_conditions': 'list[str]', 'consumed_capacity': 'dict(str, str)', 'device': 'str', 'driver': 'str', 'pool': 'str', 'request': 'str', 'share_id': 'str', 'tolerations': 'list[V1beta1DeviceToleration]'}
property pool

Gets the pool of this V1beta1DeviceRequestAllocationResult. # noqa: E501

This name together with the driver name and the device name field identify which device was allocated (<driver name>/<pool name>/<device name>). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. # noqa: E501

Returns:

The pool of this V1beta1DeviceRequestAllocationResult. # noqa: E501

Return type:

str

property request

Gets the request of this V1beta1DeviceRequestAllocationResult. # noqa: E501

Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. # noqa: E501

Returns:

The request of this V1beta1DeviceRequestAllocationResult. # noqa: E501

Return type:

str

property share_id

Gets the share_id of this V1beta1DeviceRequestAllocationResult. # noqa: E501

ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. # noqa: E501

Returns:

The share_id of this V1beta1DeviceRequestAllocationResult. # 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

property tolerations

Gets the tolerations of this V1beta1DeviceRequestAllocationResult. # noqa: E501

A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501

Returns:

The tolerations of this V1beta1DeviceRequestAllocationResult. # noqa: E501

Return type:

list[V1beta1DeviceToleration]