@controlplane/schema 1.0.7 → 1.0.9

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.
Files changed (63) hide show
  1. package/build/src/interfaces/accessreport.d.ts +11 -11
  2. package/build/src/interfaces/agent.d.ts +14 -10
  3. package/build/src/interfaces/auditctx.d.ts +4 -4
  4. package/build/src/interfaces/base.d.ts +20 -20
  5. package/build/src/interfaces/cloudaccount.d.ts +7 -7
  6. package/build/src/interfaces/command.d.ts +155 -148
  7. package/build/src/interfaces/config.d.ts +2 -4
  8. package/build/src/interfaces/containerstatus.d.ts +6 -6
  9. package/build/src/interfaces/cronjob.d.ts +1 -1
  10. package/build/src/interfaces/dbcluster.d.ts +1 -1
  11. package/build/src/interfaces/deployment.d.ts +20 -20
  12. package/build/src/interfaces/domain.d.ts +67 -67
  13. package/build/src/interfaces/env.d.ts +1 -1
  14. package/build/src/interfaces/envoy.d.ts +5 -5
  15. package/build/src/interfaces/envoyAccessLog.d.ts +1 -1
  16. package/build/src/interfaces/envoyCluster.d.ts +9 -9
  17. package/build/src/interfaces/envoyCommon.d.ts +301 -301
  18. package/build/src/interfaces/envoyExcExtAuth.d.ts +2 -2
  19. package/build/src/interfaces/envoyHttp.d.ts +146 -146
  20. package/build/src/interfaces/envoyRateLimit.d.ts +1 -1
  21. package/build/src/interfaces/event.d.ts +9 -9
  22. package/build/src/interfaces/group.d.ts +2 -2
  23. package/build/src/interfaces/gvc.d.ts +185 -66
  24. package/build/src/interfaces/identity.d.ts +96 -63
  25. package/build/src/interfaces/image.d.ts +1 -1
  26. package/build/src/interfaces/ipSet.d.ts +14 -14
  27. package/build/src/interfaces/location.d.ts +16 -16
  28. package/build/src/interfaces/memcache.d.ts +7 -7
  29. package/build/src/interfaces/mk8s.d.ts +65 -65
  30. package/build/src/interfaces/mk8sAddons.d.ts +64 -64
  31. package/build/src/interfaces/mk8sAws.d.ts +9 -6
  32. package/build/src/interfaces/mk8sAzure.d.ts +10 -10
  33. package/build/src/interfaces/mk8sCommon.d.ts +26 -26
  34. package/build/src/interfaces/mk8sDigitalOcean.d.ts +2 -2
  35. package/build/src/interfaces/mk8sEphemeral.d.ts +1 -1
  36. package/build/src/interfaces/mk8sGcp.d.ts +9 -9
  37. package/build/src/interfaces/mk8sGeneric.d.ts +5 -5
  38. package/build/src/interfaces/mk8sHetzner.d.ts +10 -10
  39. package/build/src/interfaces/mk8sLambdalabs.d.ts +5 -5
  40. package/build/src/interfaces/mk8sLinode.d.ts +6 -6
  41. package/build/src/interfaces/mk8sOblivus.d.ts +5 -5
  42. package/build/src/interfaces/mk8sPaperspace.d.ts +5 -5
  43. package/build/src/interfaces/mk8sTriton.d.ts +23 -23
  44. package/build/src/interfaces/org.d.ts +32 -32
  45. package/build/src/interfaces/orgLogging.d.ts +32 -32
  46. package/build/src/interfaces/permissions.d.ts +1 -1
  47. package/build/src/interfaces/policy.d.ts +2 -2
  48. package/build/src/interfaces/policyMembership.d.ts +6 -6
  49. package/build/src/interfaces/query.d.ts +24 -17
  50. package/build/src/interfaces/quota.d.ts +1 -1
  51. package/build/src/interfaces/resourcePolicy.d.ts +1 -1
  52. package/build/src/interfaces/secret.d.ts +23 -23
  53. package/build/src/interfaces/serviceaccount.d.ts +7 -7
  54. package/build/src/interfaces/spicedb.d.ts +1 -1
  55. package/build/src/interfaces/statefulSet.d.ts +1 -1
  56. package/build/src/interfaces/task.d.ts +1 -1
  57. package/build/src/interfaces/tenant.d.ts +5 -5
  58. package/build/src/interfaces/tracing.d.ts +16 -8
  59. package/build/src/interfaces/user.d.ts +12 -12
  60. package/build/src/interfaces/volumeSet.d.ts +54 -46
  61. package/build/src/interfaces/workload.d.ts +203 -222
  62. package/build/src/interfaces/workloadOptions.d.ts +47 -14
  63. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
- import { Links } from './base';
2
- export interface PrincipalBinding {
3
- principalLink?: string;
4
- grantingPolicyLink?: string;
5
- grantedPermissions?: string[];
6
- match?: 'link' | 'query' | 'all';
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 AccessReport {
14
- kind?: 'accessreport';
15
- permissions?: GrantedPermission[];
16
- created?: Date;
17
- links?: Links;
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 type LocalLink = string;
2
- export type ImageLink = string;
3
- 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';
4
- export type CloudProvider = 'aws' | 'gcp' | 'azure' | 'ngs';
5
- export type Name = string;
6
- export interface Tags {
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 Regex = string;
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 type CommandLifecycleStage = 'pending' | 'running' | 'cancelled' | 'completed' | 'failed';
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 interface CronWorkloadContainerOverrides {
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 ExpandVolumeSpec {
103
- location: string;
104
- volumeIndex: number;
105
- newStorageCapacity: number;
106
- timeoutSeconds?: number;
107
- }
108
- export interface ExpandVolumeStatus {
109
- clusterId?: string;
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 DeleteVolumeSnapshotSpec {
92
+ export interface DeleteOrphanedVolumeSnapshotSpec {
196
93
  location: string;
94
+ snapshotId: string;
197
95
  volumeIndex: number;
198
- snapshotName: string;
199
96
  }
200
- export interface DeleteVolumeSnapshotStatus {
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 Cluster {
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
- since?: Date;
114
+ clusterIdByLocation?: {
115
+ [x: string]: string;
116
+ };
117
+ messages?: string[];
222
118
  }
223
- export interface Clusters {
224
- [x: string]: Cluster;
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,11 +1,9 @@
1
- import { Links } from './base';
1
+ import { Links } from './base.js';
2
2
  export interface Config {
3
3
  kind?: 'config';
4
4
  id?: string;
5
5
  lastModified?: Date;
6
6
  version?: number;
7
- data?: {
8
- [x: string]: any;
9
- };
7
+ data?: any;
10
8
  links?: Links;
11
9
  }
@@ -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,4 +1,4 @@
1
- import { ContainerStatus } from './containerstatus';
1
+ import { ContainerStatus } from './containerstatus.js';
2
2
  export interface JobExecutionCondition {
3
3
  status?: string;
4
4
  type: string;
@@ -1,4 +1,4 @@
1
- import { Name, Kind, Tags, Links } from './base';
1
+ import { Name, Kind, Tags, Links } from './base.js';
2
2
  export interface ClusterSpec {
3
3
  externalAccessEnabled?: boolean;
4
4
  postgres: {
@@ -1,17 +1,12 @@
1
- import { ContainerStatus } from './containerstatus';
2
- import { JobExecutionStatus } from './cronjob';
3
- import { Kind, Links } from './base';
4
- export interface DeploymentVersion {
5
- name?: string;
6
- created?: Date;
7
- workload?: number;
8
- gvc?: number;
9
- containers?: {
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 Deployment {
29
- name: string;
30
- kind?: Kind;
31
- links?: Links;
32
- lastModified?: Date;
33
- status?: DeploymentStatus;
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
  }