@controlplane/schema 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/interfaces/accessreport.d.ts +11 -11
- package/build/src/interfaces/agent.d.ts +14 -10
- package/build/src/interfaces/auditctx.d.ts +4 -4
- package/build/src/interfaces/base.d.ts +20 -20
- package/build/src/interfaces/cloudaccount.d.ts +7 -7
- package/build/src/interfaces/command.d.ts +155 -148
- package/build/src/interfaces/config.d.ts +2 -4
- package/build/src/interfaces/containerstatus.d.ts +6 -6
- package/build/src/interfaces/cronjob.d.ts +1 -1
- package/build/src/interfaces/dbcluster.d.ts +1 -1
- package/build/src/interfaces/deployment.d.ts +20 -20
- package/build/src/interfaces/domain.d.ts +67 -67
- package/build/src/interfaces/env.d.ts +1 -1
- package/build/src/interfaces/envoy.d.ts +5 -5
- package/build/src/interfaces/envoyAccessLog.d.ts +1 -1
- package/build/src/interfaces/envoyCluster.d.ts +9 -9
- package/build/src/interfaces/envoyCommon.d.ts +301 -301
- package/build/src/interfaces/envoyExcExtAuth.d.ts +2 -2
- package/build/src/interfaces/envoyHttp.d.ts +146 -146
- package/build/src/interfaces/envoyRateLimit.d.ts +1 -1
- package/build/src/interfaces/event.d.ts +9 -9
- package/build/src/interfaces/group.d.ts +2 -2
- package/build/src/interfaces/gvc.d.ts +185 -66
- package/build/src/interfaces/identity.d.ts +96 -63
- package/build/src/interfaces/image.d.ts +1 -1
- package/build/src/interfaces/ipSet.d.ts +14 -14
- package/build/src/interfaces/location.d.ts +16 -16
- package/build/src/interfaces/memcache.d.ts +7 -7
- package/build/src/interfaces/mk8s.d.ts +65 -65
- package/build/src/interfaces/mk8sAddons.d.ts +64 -64
- package/build/src/interfaces/mk8sAws.d.ts +6 -6
- package/build/src/interfaces/mk8sAzure.d.ts +10 -10
- package/build/src/interfaces/mk8sCommon.d.ts +26 -26
- package/build/src/interfaces/mk8sDigitalOcean.d.ts +2 -2
- package/build/src/interfaces/mk8sEphemeral.d.ts +1 -1
- package/build/src/interfaces/mk8sGcp.d.ts +9 -9
- package/build/src/interfaces/mk8sGeneric.d.ts +5 -5
- package/build/src/interfaces/mk8sHetzner.d.ts +10 -10
- package/build/src/interfaces/mk8sLambdalabs.d.ts +5 -5
- package/build/src/interfaces/mk8sLinode.d.ts +6 -6
- package/build/src/interfaces/mk8sOblivus.d.ts +5 -5
- package/build/src/interfaces/mk8sPaperspace.d.ts +5 -5
- package/build/src/interfaces/mk8sTriton.d.ts +23 -23
- package/build/src/interfaces/org.d.ts +32 -32
- package/build/src/interfaces/orgLogging.d.ts +32 -32
- package/build/src/interfaces/permissions.d.ts +1 -1
- package/build/src/interfaces/policy.d.ts +2 -2
- package/build/src/interfaces/policyMembership.d.ts +6 -6
- package/build/src/interfaces/query.d.ts +24 -17
- package/build/src/interfaces/quota.d.ts +1 -1
- package/build/src/interfaces/resourcePolicy.d.ts +1 -1
- package/build/src/interfaces/secret.d.ts +23 -23
- package/build/src/interfaces/serviceaccount.d.ts +7 -7
- package/build/src/interfaces/spicedb.d.ts +1 -1
- package/build/src/interfaces/statefulSet.d.ts +1 -1
- package/build/src/interfaces/task.d.ts +1 -1
- package/build/src/interfaces/tenant.d.ts +5 -5
- package/build/src/interfaces/tracing.d.ts +16 -8
- package/build/src/interfaces/user.d.ts +12 -12
- package/build/src/interfaces/volumeSet.d.ts +54 -46
- package/build/src/interfaces/workload.d.ts +203 -222
- package/build/src/interfaces/workloadOptions.d.ts +47 -14
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Links } from './base';
|
|
2
|
-
export interface
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { Links } from './base.js';
|
|
2
|
+
export interface AccessReport {
|
|
3
|
+
kind?: 'accessreport';
|
|
4
|
+
permissions?: GrantedPermission[];
|
|
5
|
+
created?: Date;
|
|
6
|
+
links?: Links;
|
|
7
7
|
}
|
|
8
8
|
export interface GrantedPermission {
|
|
9
9
|
name?: string;
|
|
10
10
|
description?: string;
|
|
11
11
|
bindings?: PrincipalBinding[];
|
|
12
12
|
}
|
|
13
|
-
export interface
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
export interface PrincipalBinding {
|
|
14
|
+
principalLink?: string;
|
|
15
|
+
grantingPolicyLink?: string;
|
|
16
|
+
grantedPermissions?: string[];
|
|
17
|
+
match?: 'link' | 'query' | 'all';
|
|
18
18
|
}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import { Name, Kind, Tags, Links } from './base';
|
|
2
|
-
export interface BootstrapConfig {
|
|
3
|
-
registrationToken: string;
|
|
4
|
-
agentId: string;
|
|
5
|
-
agentLink: string;
|
|
6
|
-
hubEndpoint: string;
|
|
7
|
-
}
|
|
8
|
-
export interface AgentStatus {
|
|
9
|
-
bootstrapConfig?: BootstrapConfig;
|
|
10
|
-
}
|
|
1
|
+
import { Name, Kind, Tags, Links } from './base.js';
|
|
11
2
|
export interface Agent {
|
|
12
3
|
id?: string;
|
|
13
4
|
name?: Name;
|
|
@@ -21,6 +12,8 @@ export interface Agent {
|
|
|
21
12
|
status?: AgentStatus;
|
|
22
13
|
}
|
|
23
14
|
export interface AgentInfo {
|
|
15
|
+
protocolVersion?: 'v1' | 'v2';
|
|
16
|
+
instanceId?: string;
|
|
24
17
|
lastActive?: Date;
|
|
25
18
|
env?: {
|
|
26
19
|
[x: string]: any;
|
|
@@ -28,3 +21,14 @@ export interface AgentInfo {
|
|
|
28
21
|
peerCount?: number;
|
|
29
22
|
serviceCount?: number;
|
|
30
23
|
}
|
|
24
|
+
export interface AgentStatus {
|
|
25
|
+
bootstrapConfig?: BootstrapConfig;
|
|
26
|
+
protocolVersion?: 'v1' | 'v2';
|
|
27
|
+
}
|
|
28
|
+
export interface BootstrapConfig {
|
|
29
|
+
registrationToken: string;
|
|
30
|
+
agentId: string;
|
|
31
|
+
agentLink: string;
|
|
32
|
+
hubEndpoint: string;
|
|
33
|
+
protocolVersion?: 'v1' | 'v2';
|
|
34
|
+
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { Name, Kind, Tags, Links } from './base';
|
|
2
|
-
export interface AuditContextStatus {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
}
|
|
1
|
+
import { Name, Kind, Tags, Links } from './base.js';
|
|
5
2
|
export interface AuditContext {
|
|
6
3
|
id?: string;
|
|
7
4
|
name?: Name;
|
|
@@ -15,3 +12,6 @@ export interface AuditContext {
|
|
|
15
12
|
status?: AuditContextStatus;
|
|
16
13
|
origin?: 'default' | 'builtin';
|
|
17
14
|
}
|
|
15
|
+
export interface AuditContextStatus {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
[x: string]: any;
|
|
8
|
-
}
|
|
9
|
-
export interface Link {
|
|
10
|
-
rel: string;
|
|
11
|
-
href: string;
|
|
1
|
+
export interface ApiError {
|
|
2
|
+
status?: number;
|
|
3
|
+
message?: string;
|
|
4
|
+
code?: string;
|
|
5
|
+
details?: any;
|
|
6
|
+
id?: string;
|
|
12
7
|
}
|
|
13
|
-
export type Links = Link[];
|
|
14
8
|
export interface Base {
|
|
15
9
|
id?: string;
|
|
16
10
|
name?: Name;
|
|
@@ -22,20 +16,26 @@ export interface Base {
|
|
|
22
16
|
lastModified?: Date;
|
|
23
17
|
links?: Links;
|
|
24
18
|
}
|
|
19
|
+
export type CloudProvider = 'aws' | 'gcp' | 'azure' | 'ngs';
|
|
20
|
+
export type ImageLink = string;
|
|
21
|
+
export type Kind = 'org' | 'cloudaccount' | 'policy' | 'user' | 'group' | 'resource' | 'task' | 'permissions' | 'serviceaccount' | 'secret' | 'location' | 'gvc' | 'workload' | 'quota' | 'identity' | 'deployment' | 'event' | 'domain' | 'image' | 'ipset' | 'resourcepolicy' | 'agent' | 'accessreport' | 'policymembership' | 'dbcluster' | 'auditctx' | 'memcachecluster' | 'spicedbcluster' | 'tenant' | 'mk8s' | 'command' | 'imagesummary' | 'volumeset';
|
|
22
|
+
export interface Link {
|
|
23
|
+
rel: string;
|
|
24
|
+
href: string;
|
|
25
|
+
}
|
|
26
|
+
export type Links = Link[];
|
|
25
27
|
export interface List {
|
|
26
28
|
kind?: 'list';
|
|
27
29
|
itemKind?: 'org' | 'cloudaccount' | 'policy' | 'user' | 'group' | 'resource' | 'task' | 'permissions' | 'serviceaccount' | 'secret' | 'location' | 'gvc' | 'workload' | 'quota' | 'identity' | 'deployment' | 'event' | 'account' | 'domain' | 'image' | 'ipset' | 'resourcepolicy' | 'accessreport' | 'agent' | 'auditctx' | 'dbcluster' | 'memcachecluster' | 'spicedbcluster' | 'tenant' | 'mk8s' | 'command' | 'policymembership' | 'primitive' | 'foreign' | 'link' | 'imagesummary' | 'volumeset';
|
|
28
30
|
items: any[];
|
|
29
31
|
links: Link[];
|
|
30
32
|
}
|
|
31
|
-
export type
|
|
32
|
-
export interface ApiError {
|
|
33
|
-
status?: number;
|
|
34
|
-
message?: string;
|
|
35
|
-
code?: string;
|
|
36
|
-
details?: any;
|
|
37
|
-
id?: string;
|
|
38
|
-
}
|
|
33
|
+
export type LocalLink = string;
|
|
39
34
|
export interface MultiZoneOptions {
|
|
40
35
|
enabled?: boolean;
|
|
41
36
|
}
|
|
37
|
+
export type Name = string;
|
|
38
|
+
export type Regex = string;
|
|
39
|
+
export interface Tags {
|
|
40
|
+
[x: string]: any;
|
|
41
|
+
}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import { Name, Kind, Tags, Links, CloudProvider } from './base';
|
|
1
|
+
import { Name, Kind, Tags, Links, CloudProvider } from './base.js';
|
|
2
2
|
export interface AwsConfig {
|
|
3
3
|
roleArn: string;
|
|
4
4
|
}
|
|
5
|
-
export interface GcpConfig {
|
|
6
|
-
projectId: string;
|
|
7
|
-
}
|
|
8
|
-
export interface NgsConfig {
|
|
9
|
-
secretLink: string;
|
|
10
|
-
}
|
|
11
5
|
export interface AzureConfig {
|
|
12
6
|
secretLink: string;
|
|
13
7
|
}
|
|
@@ -29,9 +23,15 @@ export interface CloudAccount {
|
|
|
29
23
|
lastError?: string;
|
|
30
24
|
};
|
|
31
25
|
}
|
|
26
|
+
export interface GcpConfig {
|
|
27
|
+
projectId: string;
|
|
28
|
+
}
|
|
32
29
|
export interface Instructions {
|
|
33
30
|
message?: string;
|
|
34
31
|
data?: {
|
|
35
32
|
[x: string]: any;
|
|
36
33
|
};
|
|
37
34
|
}
|
|
35
|
+
export interface NgsConfig {
|
|
36
|
+
secretLink: string;
|
|
37
|
+
}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { Kind, Links, Tags, ImageLink, Name } from './base';
|
|
2
|
-
import { EnvVar } from './env';
|
|
3
|
-
import { Memory, Cpu } from './workload';
|
|
4
|
-
import { VolumeSnapshot, VolumeSetSpec, VolumeSetStatus } from './volumeSet';
|
|
5
|
-
export
|
|
1
|
+
import { Kind, Links, Tags, ImageLink, Name } from './base.js';
|
|
2
|
+
import { EnvVar } from './env.js';
|
|
3
|
+
import { Memory, Cpu } from './workload.js';
|
|
4
|
+
import { VolumeSnapshot, VolumeSetSpec, VolumeSetStatus } from './volumeSet.js';
|
|
5
|
+
export interface Cluster {
|
|
6
|
+
clusterId?: string;
|
|
7
|
+
since?: Date;
|
|
8
|
+
}
|
|
9
|
+
export interface Clusters {
|
|
10
|
+
[x: string]: Cluster;
|
|
11
|
+
}
|
|
6
12
|
export interface Command {
|
|
7
13
|
id?: string;
|
|
8
14
|
ownerId?: string;
|
|
@@ -21,64 +27,7 @@ export interface Command {
|
|
|
21
27
|
[x: string]: any;
|
|
22
28
|
};
|
|
23
29
|
}
|
|
24
|
-
export
|
|
25
|
-
name: string;
|
|
26
|
-
env?: EnvVar[];
|
|
27
|
-
command?: string;
|
|
28
|
-
args?: string[];
|
|
29
|
-
memory?: Memory;
|
|
30
|
-
cpu?: Cpu;
|
|
31
|
-
image?: ImageLink;
|
|
32
|
-
}
|
|
33
|
-
export interface RunCronWorkloadSpec {
|
|
34
|
-
location: string;
|
|
35
|
-
containerOverrides?: CronWorkloadContainerOverrides[];
|
|
36
|
-
}
|
|
37
|
-
export interface RunCronWorkloadStatus {
|
|
38
|
-
replica?: string;
|
|
39
|
-
clusterIdByLocation?: {
|
|
40
|
-
[x: string]: string;
|
|
41
|
-
};
|
|
42
|
-
minimumWorkloadVersion?: number;
|
|
43
|
-
}
|
|
44
|
-
export interface StopReplicaSpec {
|
|
45
|
-
location: string;
|
|
46
|
-
replica?: string;
|
|
47
|
-
}
|
|
48
|
-
export interface StopReplicaStatus {
|
|
49
|
-
clusterId?: string;
|
|
50
|
-
clusterIdByLocation?: {
|
|
51
|
-
[x: string]: string;
|
|
52
|
-
};
|
|
53
|
-
podCreatedByCommandLink?: string;
|
|
54
|
-
podId: string;
|
|
55
|
-
}
|
|
56
|
-
export interface ReplaceVolumeSpec {
|
|
57
|
-
location: string;
|
|
58
|
-
volumeIndex: number;
|
|
59
|
-
}
|
|
60
|
-
export interface RestoreVolumeSpec {
|
|
61
|
-
volumeIndex: number;
|
|
62
|
-
location: string;
|
|
63
|
-
snapshotName: string;
|
|
64
|
-
zone?: string;
|
|
65
|
-
}
|
|
66
|
-
export interface ReplaceVolumeStatus {
|
|
67
|
-
stage: 'create-volume' | 'cleanup-after-volume-creation' | 'update-volume-set' | 'configure-storage-resources' | 'remove-finalizer' | 'shutdown-replica' | 'await-replica-termination' | 'cleanup-k8s' | 'fail' | 'revert' | 'cleanup-old-storage-device' | 'restart-replica';
|
|
68
|
-
messages?: string[];
|
|
69
|
-
clusterId?: string;
|
|
70
|
-
clusterIdByLocation?: {
|
|
71
|
-
[x: string]: string;
|
|
72
|
-
};
|
|
73
|
-
inUseByWorkloadId?: string;
|
|
74
|
-
storageDeviceIdToRemove?: string;
|
|
75
|
-
newStorageDeviceId?: string;
|
|
76
|
-
newVolumeAttributes?: {
|
|
77
|
-
[x: string]: string;
|
|
78
|
-
};
|
|
79
|
-
newResourceName?: string;
|
|
80
|
-
nextVolumeSize?: number;
|
|
81
|
-
}
|
|
30
|
+
export type CommandLifecycleStage = 'pending' | 'running' | 'cancelled' | 'completed' | 'failed';
|
|
82
31
|
export interface CreateVolumeSnapshotSpec {
|
|
83
32
|
location: string;
|
|
84
33
|
volumeIndex: number;
|
|
@@ -99,66 +48,14 @@ export interface CreateVolumeSnapshotStatus {
|
|
|
99
48
|
newSnapshotSize?: number;
|
|
100
49
|
creationStartTime?: Date;
|
|
101
50
|
}
|
|
102
|
-
export interface
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
clusterIdByLocation?: {
|
|
111
|
-
[x: string]: string;
|
|
112
|
-
};
|
|
113
|
-
messages?: string[];
|
|
114
|
-
stage: 'expand-volume' | 'delete-stateful-set' | 'await-replica-termination' | 'await-expansion-completed' | 'update-volume-set' | 'recreate-replica' | 'cleanup-k8s' | 'revert';
|
|
115
|
-
replicaRestartedAt?: Date;
|
|
116
|
-
lockNames?: string[];
|
|
117
|
-
}
|
|
118
|
-
export interface DeleteVolumeSpec {
|
|
119
|
-
location: string;
|
|
120
|
-
volumeIndex: number;
|
|
121
|
-
}
|
|
122
|
-
export interface DeleteOrphanedVolumeSpec {
|
|
123
|
-
location: string;
|
|
124
|
-
storageDeviceId: string;
|
|
125
|
-
volumeIndex: number;
|
|
126
|
-
newlyObservedStorageDeviceId?: string;
|
|
127
|
-
}
|
|
128
|
-
export interface DeleteVolumeStatus {
|
|
129
|
-
stage: 'update-volume-set' | 'delete-storage-resources' | 'shutdown-replica' | 'await-replica-termination' | 'fail' | 'cleanup-k8s';
|
|
130
|
-
clusterId?: string;
|
|
131
|
-
clusterIdByLocation?: {
|
|
132
|
-
[x: string]: string;
|
|
133
|
-
};
|
|
134
|
-
messages?: string[];
|
|
135
|
-
inUseByWorkloadId?: string;
|
|
136
|
-
storageDeviceIdToRemove?: string;
|
|
137
|
-
}
|
|
138
|
-
export interface DeleteOrphanedVolumeStatus {
|
|
139
|
-
stage: 'delete-storage-resources' | 'cleanup-k8s' | 'update-volume-set' | 'fail';
|
|
140
|
-
clusterId?: string;
|
|
141
|
-
clusterIdByLocation?: {
|
|
142
|
-
[x: string]: string;
|
|
143
|
-
};
|
|
144
|
-
messages?: string[];
|
|
145
|
-
}
|
|
146
|
-
export interface DeleteOrphanedVolumeSnapshotSpec {
|
|
147
|
-
location: string;
|
|
148
|
-
snapshotId: string;
|
|
149
|
-
volumeIndex: number;
|
|
150
|
-
}
|
|
151
|
-
export interface DeleteOrphanedVolumeSnapshotStatus {
|
|
152
|
-
stage: 'delete-snapshot' | 'update-volume-set' | 'fail';
|
|
153
|
-
clusterId?: string;
|
|
154
|
-
clusterIdByLocation?: {
|
|
155
|
-
[x: string]: string;
|
|
156
|
-
};
|
|
157
|
-
messages?: string[];
|
|
158
|
-
}
|
|
159
|
-
export interface SnapshotDeletionStatus {
|
|
160
|
-
stage?: 'pending' | 'k8s-resources-created' | 'deleted';
|
|
161
|
-
messages?: string[];
|
|
51
|
+
export interface CronWorkloadContainerOverrides {
|
|
52
|
+
name: string;
|
|
53
|
+
env?: EnvVar[];
|
|
54
|
+
command?: string;
|
|
55
|
+
args?: string[];
|
|
56
|
+
memory?: Memory;
|
|
57
|
+
cpu?: Cpu;
|
|
58
|
+
image?: ImageLink;
|
|
162
59
|
}
|
|
163
60
|
export interface DeleteCloudDevicesStatus {
|
|
164
61
|
clusterId?: string;
|
|
@@ -192,36 +89,38 @@ export interface DeleteCloudDevicesStatus {
|
|
|
192
89
|
[x: string]: SnapshotDeletionStatus;
|
|
193
90
|
};
|
|
194
91
|
}
|
|
195
|
-
export interface
|
|
92
|
+
export interface DeleteOrphanedVolumeSnapshotSpec {
|
|
196
93
|
location: string;
|
|
94
|
+
snapshotId: string;
|
|
197
95
|
volumeIndex: number;
|
|
198
|
-
snapshotName: string;
|
|
199
96
|
}
|
|
200
|
-
export interface
|
|
97
|
+
export interface DeleteOrphanedVolumeSnapshotStatus {
|
|
98
|
+
stage: 'delete-snapshot' | 'update-volume-set' | 'fail';
|
|
201
99
|
clusterId?: string;
|
|
202
100
|
clusterIdByLocation?: {
|
|
203
101
|
[x: string]: string;
|
|
204
102
|
};
|
|
205
|
-
snapshot: {
|
|
206
|
-
name: string;
|
|
207
|
-
id?: string;
|
|
208
|
-
created: Date;
|
|
209
|
-
expires?: Date;
|
|
210
|
-
size?: number;
|
|
211
|
-
tags?: {
|
|
212
|
-
[x: string]: string;
|
|
213
|
-
}[];
|
|
214
|
-
};
|
|
215
|
-
stage: 'delete-snapshot' | 'update-volume-set';
|
|
216
103
|
messages?: string[];
|
|
217
|
-
snapshotId?: string;
|
|
218
104
|
}
|
|
219
|
-
export interface
|
|
105
|
+
export interface DeleteOrphanedVolumeSpec {
|
|
106
|
+
location: string;
|
|
107
|
+
storageDeviceId: string;
|
|
108
|
+
volumeIndex: number;
|
|
109
|
+
newlyObservedStorageDeviceId?: string;
|
|
110
|
+
}
|
|
111
|
+
export interface DeleteOrphanedVolumeStatus {
|
|
112
|
+
stage: 'delete-storage-resources' | 'cleanup-k8s' | 'update-volume-set' | 'fail';
|
|
220
113
|
clusterId?: string;
|
|
221
|
-
|
|
114
|
+
clusterIdByLocation?: {
|
|
115
|
+
[x: string]: string;
|
|
116
|
+
};
|
|
117
|
+
messages?: string[];
|
|
222
118
|
}
|
|
223
|
-
export interface
|
|
224
|
-
|
|
119
|
+
export interface DeleteVolumeSetLocationStatus {
|
|
120
|
+
stage: 'delete-volumes' | 'delete-orphaned-volumes' | 'cleanup-filesystem' | 'complete';
|
|
121
|
+
volumes?: {
|
|
122
|
+
[x: string]: DeleteCloudDevicesStatus;
|
|
123
|
+
};
|
|
225
124
|
}
|
|
226
125
|
export interface DeleteVolumeSetSpec {
|
|
227
126
|
volumeSet: {
|
|
@@ -240,12 +139,120 @@ export interface DeleteVolumeSetSpec {
|
|
|
240
139
|
};
|
|
241
140
|
locations?: string[];
|
|
242
141
|
}
|
|
243
|
-
export interface DeleteVolumeSetLocationStatus {
|
|
244
|
-
stage: 'delete-volumes' | 'delete-orphaned-volumes' | 'cleanup-filesystem' | 'complete';
|
|
245
|
-
volumes?: {
|
|
246
|
-
[x: string]: DeleteCloudDevicesStatus;
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
142
|
export interface DeleteVolumeSetStatus {
|
|
250
143
|
[x: string]: DeleteVolumeSetLocationStatus;
|
|
251
144
|
}
|
|
145
|
+
export interface DeleteVolumeSnapshotSpec {
|
|
146
|
+
location: string;
|
|
147
|
+
volumeIndex: number;
|
|
148
|
+
snapshotName: string;
|
|
149
|
+
}
|
|
150
|
+
export interface DeleteVolumeSnapshotStatus {
|
|
151
|
+
clusterId?: string;
|
|
152
|
+
clusterIdByLocation?: {
|
|
153
|
+
[x: string]: string;
|
|
154
|
+
};
|
|
155
|
+
snapshot: {
|
|
156
|
+
name: string;
|
|
157
|
+
id?: string;
|
|
158
|
+
created: Date;
|
|
159
|
+
expires?: Date;
|
|
160
|
+
size?: number;
|
|
161
|
+
tags?: {
|
|
162
|
+
[x: string]: string;
|
|
163
|
+
}[];
|
|
164
|
+
};
|
|
165
|
+
stage: 'delete-snapshot' | 'update-volume-set';
|
|
166
|
+
messages?: string[];
|
|
167
|
+
snapshotId?: string;
|
|
168
|
+
}
|
|
169
|
+
export interface DeleteVolumeSpec {
|
|
170
|
+
location: string;
|
|
171
|
+
volumeIndex: number;
|
|
172
|
+
}
|
|
173
|
+
export interface DeleteVolumeStatus {
|
|
174
|
+
stage: 'update-volume-set' | 'delete-storage-resources' | 'shutdown-replica' | 'await-replica-termination' | 'fail' | 'cleanup-k8s';
|
|
175
|
+
clusterId?: string;
|
|
176
|
+
clusterIdByLocation?: {
|
|
177
|
+
[x: string]: string;
|
|
178
|
+
};
|
|
179
|
+
messages?: string[];
|
|
180
|
+
inUseByWorkloadId?: string;
|
|
181
|
+
storageDeviceIdToRemove?: string;
|
|
182
|
+
}
|
|
183
|
+
export interface ExpandVolumeSpec {
|
|
184
|
+
location: string;
|
|
185
|
+
volumeIndex: number;
|
|
186
|
+
newStorageCapacity: number;
|
|
187
|
+
timeoutSeconds?: number;
|
|
188
|
+
}
|
|
189
|
+
export interface ExpandVolumeStatus {
|
|
190
|
+
clusterId?: string;
|
|
191
|
+
clusterIdByLocation?: {
|
|
192
|
+
[x: string]: string;
|
|
193
|
+
};
|
|
194
|
+
messages?: string[];
|
|
195
|
+
stage: 'expand-volume' | 'delete-stateful-set' | 'await-online-resize' | 'await-replica-termination' | 'await-expansion-completed' | 'update-volume-set' | 'recreate-replica' | 'cleanup-k8s' | 'revert';
|
|
196
|
+
replicaRestartedAt?: Date;
|
|
197
|
+
onlineResizeStartedAt?: Date;
|
|
198
|
+
lockNames?: string[];
|
|
199
|
+
}
|
|
200
|
+
export interface ReplaceVolumeSpec {
|
|
201
|
+
location: string;
|
|
202
|
+
volumeIndex: number;
|
|
203
|
+
}
|
|
204
|
+
export interface ReplaceVolumeStatus {
|
|
205
|
+
stage: 'create-volume' | 'cleanup-after-volume-creation' | 'update-volume-set' | 'configure-storage-resources' | 'remove-finalizer' | 'shutdown-replica' | 'await-replica-termination' | 'cleanup-k8s' | 'fail' | 'revert' | 'cleanup-old-storage-device' | 'restart-replica';
|
|
206
|
+
messages?: string[];
|
|
207
|
+
clusterId?: string;
|
|
208
|
+
clusterIdByLocation?: {
|
|
209
|
+
[x: string]: string;
|
|
210
|
+
};
|
|
211
|
+
inUseByWorkloadId?: string;
|
|
212
|
+
storageDeviceIdToRemove?: string;
|
|
213
|
+
newStorageDeviceId?: string;
|
|
214
|
+
newVolumeAttributes?: {
|
|
215
|
+
[x: string]: string;
|
|
216
|
+
};
|
|
217
|
+
newResourceName?: string;
|
|
218
|
+
nextVolumeSize?: number;
|
|
219
|
+
}
|
|
220
|
+
export interface RestoreVolumeSpec {
|
|
221
|
+
volumeIndex: number;
|
|
222
|
+
location: string;
|
|
223
|
+
snapshotName: string;
|
|
224
|
+
zone?: string;
|
|
225
|
+
}
|
|
226
|
+
export interface RunCronWorkloadSpec {
|
|
227
|
+
location: string;
|
|
228
|
+
containerOverrides?: CronWorkloadContainerOverrides[];
|
|
229
|
+
}
|
|
230
|
+
export interface RunCronWorkloadStatus {
|
|
231
|
+
replica?: string;
|
|
232
|
+
clusterIdByLocation?: {
|
|
233
|
+
[x: string]: string;
|
|
234
|
+
};
|
|
235
|
+
minimumWorkloadVersion?: number;
|
|
236
|
+
}
|
|
237
|
+
export interface ShrinkVolumeSpec {
|
|
238
|
+
location: string;
|
|
239
|
+
volumeIndex: number;
|
|
240
|
+
newStorageCapacity: number;
|
|
241
|
+
timeoutSeconds?: number;
|
|
242
|
+
}
|
|
243
|
+
export interface SnapshotDeletionStatus {
|
|
244
|
+
stage?: 'pending' | 'k8s-resources-created' | 'deleted';
|
|
245
|
+
messages?: string[];
|
|
246
|
+
}
|
|
247
|
+
export interface StopReplicaSpec {
|
|
248
|
+
location: string;
|
|
249
|
+
replica?: string;
|
|
250
|
+
}
|
|
251
|
+
export interface StopReplicaStatus {
|
|
252
|
+
clusterId?: string;
|
|
253
|
+
clusterIdByLocation?: {
|
|
254
|
+
[x: string]: string;
|
|
255
|
+
};
|
|
256
|
+
podCreatedByCommandLink?: string;
|
|
257
|
+
podId: string;
|
|
258
|
+
}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
export interface DeploymentResources {
|
|
2
|
-
replicas?: number;
|
|
3
|
-
replicasReady?: number;
|
|
4
|
-
cpu?: number;
|
|
5
|
-
memory?: number;
|
|
6
|
-
}
|
|
7
1
|
export interface ContainerStatus {
|
|
8
2
|
name?: string;
|
|
9
3
|
image?: string;
|
|
@@ -17,3 +11,9 @@ export interface ContainerStatus {
|
|
|
17
11
|
count?: number;
|
|
18
12
|
};
|
|
19
13
|
}
|
|
14
|
+
export interface DeploymentResources {
|
|
15
|
+
replicas?: number;
|
|
16
|
+
replicasReady?: number;
|
|
17
|
+
cpu?: number;
|
|
18
|
+
memory?: number;
|
|
19
|
+
}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { JobExecutionStatus } from './cronjob';
|
|
3
|
-
import {
|
|
4
|
-
export interface
|
|
5
|
-
name
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
[x: string]: ContainerStatus;
|
|
11
|
-
};
|
|
12
|
-
ready?: boolean;
|
|
13
|
-
message?: string;
|
|
14
|
-
zone?: string;
|
|
1
|
+
import { Kind, Links } from './base.js';
|
|
2
|
+
import { JobExecutionStatus } from './cronjob.js';
|
|
3
|
+
import { ContainerStatus } from './containerstatus.js';
|
|
4
|
+
export interface Deployment {
|
|
5
|
+
name: string;
|
|
6
|
+
kind?: Kind;
|
|
7
|
+
links?: Links;
|
|
8
|
+
lastModified?: Date;
|
|
9
|
+
status?: DeploymentStatus;
|
|
15
10
|
}
|
|
16
11
|
export interface DeploymentStatus {
|
|
17
12
|
endpoint?: string;
|
|
@@ -25,10 +20,15 @@ export interface DeploymentStatus {
|
|
|
25
20
|
jobExecutions?: JobExecutionStatus[];
|
|
26
21
|
message?: string;
|
|
27
22
|
}
|
|
28
|
-
export interface
|
|
29
|
-
name
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
export interface DeploymentVersion {
|
|
24
|
+
name?: string;
|
|
25
|
+
created?: Date;
|
|
26
|
+
workload?: number;
|
|
27
|
+
gvc?: number;
|
|
28
|
+
containers?: {
|
|
29
|
+
[x: string]: ContainerStatus;
|
|
30
|
+
};
|
|
31
|
+
ready?: boolean;
|
|
32
|
+
message?: string;
|
|
33
|
+
zone?: string;
|
|
34
34
|
}
|