/
v1alpha2AllocationResult.ts
54 lines (48 loc) · 2.25 KB
/
v1alpha2AllocationResult.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { RequestFile } from './models';
import { V1NodeSelector } from './v1NodeSelector';
import { V1alpha2ResourceHandle } from './v1alpha2ResourceHandle';
/**
* AllocationResult contains attributes of an allocated resource.
*/
export class V1alpha2AllocationResult {
'availableOnNodes'?: V1NodeSelector;
/**
* ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim. Each ResourceHandle contains data that should be passed to a specific kubelet plugin once it lands on a node. This data is returned by the driver after a successful allocation and is opaque to Kubernetes. Driver documentation may explain to users how to interpret this data if needed. Setting this field is optional. It has a maximum size of 32 entries. If null (or empty), it is assumed this allocation will be processed by a single kubelet plugin with no ResourceHandle data attached. The name of the kubelet plugin invoked will match the DriverName set in the ResourceClaimStatus this AllocationResult is embedded in.
*/
'resourceHandles'?: Array<V1alpha2ResourceHandle>;
/**
* Shareable determines whether the resource supports more than one consumer at a time.
*/
'shareable'?: boolean;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "availableOnNodes",
"baseName": "availableOnNodes",
"type": "V1NodeSelector"
},
{
"name": "resourceHandles",
"baseName": "resourceHandles",
"type": "Array<V1alpha2ResourceHandle>"
},
{
"name": "shareable",
"baseName": "shareable",
"type": "boolean"
} ];
static getAttributeTypeMap() {
return V1alpha2AllocationResult.attributeTypeMap;
}
}