/
v1LeaseSpec.ts
74 lines (68 loc) · 2.07 KB
/
v1LeaseSpec.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/**
* 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 { V1MicroTime } from '../../types';
/**
* LeaseSpec is a specification of a Lease.
*/
export class V1LeaseSpec {
/**
* MicroTime is version of Time with microsecond level precision.
*/
'acquireTime'?: V1MicroTime;
/**
* holderIdentity contains the identity of the holder of a current lease.
*/
'holderIdentity'?: string;
/**
* leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.
*/
'leaseDurationSeconds'?: number;
/**
* leaseTransitions is the number of transitions of a lease between holders.
*/
'leaseTransitions'?: number;
/**
* MicroTime is version of Time with microsecond level precision.
*/
'renewTime'?: V1MicroTime;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "acquireTime",
"baseName": "acquireTime",
"type": "V1MicroTime"
},
{
"name": "holderIdentity",
"baseName": "holderIdentity",
"type": "string"
},
{
"name": "leaseDurationSeconds",
"baseName": "leaseDurationSeconds",
"type": "number"
},
{
"name": "leaseTransitions",
"baseName": "leaseTransitions",
"type": "number"
},
{
"name": "renewTime",
"baseName": "renewTime",
"type": "V1MicroTime"
} ];
static getAttributeTypeMap() {
return V1LeaseSpec.attributeTypeMap;
}
}