@controlplane/schema 1.0.6 → 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 +164 -125
- 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 +127 -60
- 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 +34 -32
- package/build/src/interfaces/orgLogging.d.ts +32 -25
- 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 +241 -200
- 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,54 +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
|
-
minimumWorkloadVersion?: number;
|
|
40
|
-
}
|
|
41
|
-
export interface StopReplicaSpec {
|
|
42
|
-
location: string;
|
|
43
|
-
replica?: string;
|
|
44
|
-
}
|
|
45
|
-
export interface StopReplicaStatus {
|
|
46
|
-
clusterId?: string;
|
|
47
|
-
podCreatedByCommandLink?: string;
|
|
48
|
-
podId: string;
|
|
49
|
-
}
|
|
50
|
-
export interface ReplaceVolumeSpec {
|
|
51
|
-
location: string;
|
|
52
|
-
volumeIndex: number;
|
|
53
|
-
}
|
|
54
|
-
export interface RestoreVolumeSpec {
|
|
55
|
-
location: string;
|
|
56
|
-
volumeIndex: number;
|
|
57
|
-
snapshotName: string;
|
|
58
|
-
}
|
|
59
|
-
export interface ReplaceVolumeStatus {
|
|
60
|
-
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';
|
|
61
|
-
messages?: string[];
|
|
62
|
-
clusterId?: string;
|
|
63
|
-
inUseByWorkloadId?: string;
|
|
64
|
-
storageDeviceIdToRemove?: string;
|
|
65
|
-
newStorageDeviceId?: string;
|
|
66
|
-
newVolumeAttributes?: {
|
|
67
|
-
[x: string]: string;
|
|
68
|
-
};
|
|
69
|
-
newResourceName?: string;
|
|
70
|
-
nextVolumeSize?: number;
|
|
71
|
-
}
|
|
30
|
+
export type CommandLifecycleStage = 'pending' | 'running' | 'cancelled' | 'completed' | 'failed';
|
|
72
31
|
export interface CreateVolumeSnapshotSpec {
|
|
73
32
|
location: string;
|
|
74
33
|
volumeIndex: number;
|
|
@@ -82,61 +41,27 @@ export interface CreateVolumeSnapshotStatus {
|
|
|
82
41
|
stage: 'create-snapshot' | 'update-volume-set' | 'cleanup-k8s' | 'revert';
|
|
83
42
|
messages?: string[];
|
|
84
43
|
clusterId?: string;
|
|
44
|
+
clusterIdByLocation?: {
|
|
45
|
+
[x: string]: string;
|
|
46
|
+
};
|
|
85
47
|
newSnapshotId?: string;
|
|
86
48
|
newSnapshotSize?: number;
|
|
87
49
|
creationStartTime?: Date;
|
|
88
50
|
}
|
|
89
|
-
export interface
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
messages?: string[];
|
|
98
|
-
stage: 'expand-volume' | 'delete-stateful-set' | 'await-replica-termination' | 'await-expansion-completed' | 'update-volume-set' | 'recreate-replica' | 'cleanup-k8s' | 'revert';
|
|
99
|
-
replicaRestartedAt?: Date;
|
|
100
|
-
lockNames?: string[];
|
|
101
|
-
}
|
|
102
|
-
export interface DeleteVolumeSpec {
|
|
103
|
-
location: string;
|
|
104
|
-
volumeIndex: number;
|
|
105
|
-
}
|
|
106
|
-
export interface DeleteOrphanedVolumeSpec {
|
|
107
|
-
location: string;
|
|
108
|
-
storageDeviceId: string;
|
|
109
|
-
volumeIndex: number;
|
|
110
|
-
newlyObservedStorageDeviceId?: string;
|
|
111
|
-
}
|
|
112
|
-
export interface DeleteVolumeStatus {
|
|
113
|
-
stage: 'update-volume-set' | 'delete-storage-resources' | 'shutdown-replica' | 'await-replica-termination' | 'fail' | 'cleanup-k8s';
|
|
114
|
-
clusterId?: string;
|
|
115
|
-
messages?: string[];
|
|
116
|
-
inUseByWorkloadId?: string;
|
|
117
|
-
storageDeviceIdToRemove?: string;
|
|
118
|
-
}
|
|
119
|
-
export interface DeleteOrphanedVolumeStatus {
|
|
120
|
-
stage: 'delete-storage-resources' | 'cleanup-k8s' | 'update-volume-set' | 'fail';
|
|
121
|
-
clusterId?: string;
|
|
122
|
-
messages?: string[];
|
|
123
|
-
}
|
|
124
|
-
export interface DeleteOrphanedVolumeSnapshotSpec {
|
|
125
|
-
location: string;
|
|
126
|
-
snapshotId: string;
|
|
127
|
-
volumeIndex: number;
|
|
128
|
-
}
|
|
129
|
-
export interface DeleteOrphanedVolumeSnapshotStatus {
|
|
130
|
-
stage: 'delete-snapshot' | 'update-volume-set' | 'fail';
|
|
131
|
-
clusterId?: string;
|
|
132
|
-
messages?: string[];
|
|
133
|
-
}
|
|
134
|
-
export interface SnapshotDeletionStatus {
|
|
135
|
-
stage?: 'pending' | 'k8s-resources-created' | 'deleted';
|
|
136
|
-
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;
|
|
137
59
|
}
|
|
138
60
|
export interface DeleteCloudDevicesStatus {
|
|
139
61
|
clusterId?: string;
|
|
62
|
+
clusterIdByLocation?: {
|
|
63
|
+
[x: string]: string;
|
|
64
|
+
};
|
|
140
65
|
volume: {
|
|
141
66
|
lifecycle?: 'creating' | 'unused' | 'unbound' | 'bound' | 'deleted' | 'repairing';
|
|
142
67
|
storageDeviceId?: string;
|
|
@@ -164,33 +89,38 @@ export interface DeleteCloudDevicesStatus {
|
|
|
164
89
|
[x: string]: SnapshotDeletionStatus;
|
|
165
90
|
};
|
|
166
91
|
}
|
|
167
|
-
export interface
|
|
92
|
+
export interface DeleteOrphanedVolumeSnapshotSpec {
|
|
168
93
|
location: string;
|
|
94
|
+
snapshotId: string;
|
|
169
95
|
volumeIndex: number;
|
|
170
|
-
snapshotName: string;
|
|
171
96
|
}
|
|
172
|
-
export interface
|
|
97
|
+
export interface DeleteOrphanedVolumeSnapshotStatus {
|
|
98
|
+
stage: 'delete-snapshot' | 'update-volume-set' | 'fail';
|
|
173
99
|
clusterId?: string;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
id?: string;
|
|
177
|
-
created: Date;
|
|
178
|
-
expires?: Date;
|
|
179
|
-
size?: number;
|
|
180
|
-
tags?: {
|
|
181
|
-
[x: string]: string;
|
|
182
|
-
}[];
|
|
100
|
+
clusterIdByLocation?: {
|
|
101
|
+
[x: string]: string;
|
|
183
102
|
};
|
|
184
|
-
stage: 'delete-snapshot' | 'update-volume-set';
|
|
185
103
|
messages?: string[];
|
|
186
|
-
snapshotId?: string;
|
|
187
104
|
}
|
|
188
|
-
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';
|
|
189
113
|
clusterId?: string;
|
|
190
|
-
|
|
114
|
+
clusterIdByLocation?: {
|
|
115
|
+
[x: string]: string;
|
|
116
|
+
};
|
|
117
|
+
messages?: string[];
|
|
191
118
|
}
|
|
192
|
-
export interface
|
|
193
|
-
|
|
119
|
+
export interface DeleteVolumeSetLocationStatus {
|
|
120
|
+
stage: 'delete-volumes' | 'delete-orphaned-volumes' | 'cleanup-filesystem' | 'complete';
|
|
121
|
+
volumes?: {
|
|
122
|
+
[x: string]: DeleteCloudDevicesStatus;
|
|
123
|
+
};
|
|
194
124
|
}
|
|
195
125
|
export interface DeleteVolumeSetSpec {
|
|
196
126
|
volumeSet: {
|
|
@@ -207,13 +137,122 @@ export interface DeleteVolumeSetSpec {
|
|
|
207
137
|
status?: VolumeSetStatus;
|
|
208
138
|
gvc?: any;
|
|
209
139
|
};
|
|
210
|
-
|
|
211
|
-
export interface DeleteVolumeSetLocationStatus {
|
|
212
|
-
stage: 'delete-volumes' | 'delete-orphaned-volumes' | 'cleanup-filesystem' | 'complete';
|
|
213
|
-
volumes?: {
|
|
214
|
-
[x: string]: DeleteCloudDevicesStatus;
|
|
215
|
-
};
|
|
140
|
+
locations?: string[];
|
|
216
141
|
}
|
|
217
142
|
export interface DeleteVolumeSetStatus {
|
|
218
143
|
[x: string]: DeleteVolumeSetLocationStatus;
|
|
219
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
|
}
|