/
v1ResourceRequirements.ts
56 lines (50 loc) · 2.1 KB
/
v1ResourceRequirements.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
54
55
/**
* 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 { V1ResourceClaim } from './v1ResourceClaim';
/**
* ResourceRequirements describes the compute resource requirements.
*/
export class V1ResourceRequirements {
/**
* Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.
*/
'claims'?: Array<V1ResourceClaim>;
/**
* Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
*/
'limits'?: { [key: string]: string; };
/**
* Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
*/
'requests'?: { [key: string]: string; };
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "claims",
"baseName": "claims",
"type": "Array<V1ResourceClaim>"
},
{
"name": "limits",
"baseName": "limits",
"type": "{ [key: string]: string; }"
},
{
"name": "requests",
"baseName": "requests",
"type": "{ [key: string]: string; }"
} ];
static getAttributeTypeMap() {
return V1ResourceRequirements.attributeTypeMap;
}
}