kubernetes.aio.client.models.v1_pod_resource_claim module¶
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: release-1.36 Generated by: https://openapi-generator.tech
- class kubernetes.aio.client.models.v1_pod_resource_claim.V1PodResourceClaim(name=None, resource_claim_name=None, resource_claim_template_name=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.
- attribute_map = {'name': 'name', 'resource_claim_name': 'resourceClaimName', 'resource_claim_template_name': 'resourceClaimTemplateName'}¶
- property name¶
Gets the name of this V1PodResourceClaim. # noqa: E501
Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. # noqa: E501
- Returns:
The name of this V1PodResourceClaim. # noqa: E501
- Return type:
str
- openapi_types = {'name': 'str', 'resource_claim_name': 'str', 'resource_claim_template_name': 'str'}¶
- property resource_claim_name¶
Gets the resource_claim_name of this V1PodResourceClaim. # noqa: E501
ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. # noqa: E501
- Returns:
The resource_claim_name of this V1PodResourceClaim. # noqa: E501
- Return type:
str
- property resource_claim_template_name¶
Gets the resource_claim_template_name of this V1PodResourceClaim. # noqa: E501
ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. When the DRAWorkloadResourceClaims feature gate is enabled and the pod belongs to a PodGroup that defines a PodGroupResourceClaim with the same Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the ResourceClaim generated for the PodGroup. All pods in the group that define an equivalent PodResourceClaim matching the PodGroupResourceClaim’s Name and ResourceClaimTemplateName share the same generated ResourceClaim. ResourceClaims generated for a PodGroup are owned by the PodGroup and their lifecycles are tied to the PodGroup instead of any individual pod. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. # noqa: E501
- Returns:
The resource_claim_template_name of this V1PodResourceClaim. # 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