@stack-spot/portal-network 0.134.0 → 0.135.0
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/CHANGELOG.md +14 -0
- package/dist/api/cloudPlatformHorizon.d.ts +310 -262
- package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
- package/dist/api/cloudPlatformHorizon.js +18 -28
- package/dist/api/cloudPlatformHorizon.js.map +1 -1
- package/dist/api/workflows.d.ts +97 -21
- package/dist/api/workflows.d.ts.map +1 -1
- package/dist/api/workflows.js +25 -0
- package/dist/api/workflows.js.map +1 -1
- package/dist/client/cloud-platform-horizon.d.ts +26 -32
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +1 -10
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/dist/client/workflow.d.ts +16 -0
- package/dist/client/workflow.d.ts.map +1 -1
- package/dist/client/workflow.js +19 -1
- package/dist/client/workflow.js.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudPlatformHorizon.ts +319 -307
- package/src/api/workflows.ts +154 -21
- package/src/client/cloud-platform-horizon.ts +1 -5
- package/src/client/workflow.ts +15 -1
|
@@ -19,56 +19,56 @@ export type ErrorBody = {
|
|
|
19
19
|
status: string;
|
|
20
20
|
validationDetails?: ValidationDetail[];
|
|
21
21
|
};
|
|
22
|
-
export type
|
|
23
|
-
name: string;
|
|
24
|
-
value: string;
|
|
25
|
-
};
|
|
26
|
-
export type TenantMetadataResource = {
|
|
22
|
+
export type MetadataV0 = {
|
|
27
23
|
id?: string;
|
|
28
|
-
name
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
name: string;
|
|
25
|
+
version: string;
|
|
26
|
+
tags?: {
|
|
27
|
+
[key: string]: string;
|
|
28
|
+
};
|
|
29
|
+
labels?: {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
};
|
|
32
32
|
};
|
|
33
|
-
export type
|
|
33
|
+
export type TenantManifestV1SpecCloudAccountConfigurationFromRef = {
|
|
34
34
|
id: string;
|
|
35
35
|
};
|
|
36
|
-
export type
|
|
36
|
+
export type TenantManifestV1SpecCloudAccountConfigurationIamRoles = {
|
|
37
37
|
clusterRole?: string;
|
|
38
38
|
clusterNodeGroup?: string;
|
|
39
|
-
clusterAdminRoles
|
|
39
|
+
clusterAdminRoles: string[];
|
|
40
40
|
crossplane?: string;
|
|
41
41
|
argocd?: string;
|
|
42
42
|
karpenter?: string;
|
|
43
|
+
externalSecrets?: string;
|
|
43
44
|
stackspotCloudPlatformAgent?: string;
|
|
44
45
|
stackspotCloudPlatformManager?: string;
|
|
45
46
|
stackspotCloudPlatformGateway?: string;
|
|
46
|
-
externalSecrets?: string;
|
|
47
47
|
};
|
|
48
|
-
export type
|
|
49
|
-
fromRef?:
|
|
48
|
+
export type TenantManifestV1SpecCloudAccountConfiguration = {
|
|
49
|
+
fromRef?: TenantManifestV1SpecCloudAccountConfigurationFromRef;
|
|
50
50
|
cloudProvider?: string;
|
|
51
51
|
accountId?: string;
|
|
52
52
|
region?: string;
|
|
53
53
|
vpcId?: string;
|
|
54
54
|
subnetIds?: string[];
|
|
55
55
|
customAmi?: string;
|
|
56
|
-
iamRoles?:
|
|
56
|
+
iamRoles?: TenantManifestV1SpecCloudAccountConfigurationIamRoles;
|
|
57
57
|
};
|
|
58
|
-
export type
|
|
58
|
+
export type TenantManifestV1SpecAddonReference = {
|
|
59
59
|
name: string;
|
|
60
60
|
version: string;
|
|
61
61
|
values?: {
|
|
62
62
|
[key: string]: object;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
|
-
export type
|
|
65
|
+
export type TenantManifestV1SpecKubernetes = {
|
|
66
66
|
publicAccess: boolean;
|
|
67
67
|
version: string;
|
|
68
68
|
publicCidrsAllowed: string[];
|
|
69
69
|
extraCidrsInbound: string[];
|
|
70
70
|
};
|
|
71
|
-
export type
|
|
71
|
+
export type TenantManifestV1SpecNodeGroup = {
|
|
72
72
|
volumeSize: number;
|
|
73
73
|
amiType: string;
|
|
74
74
|
capacityType: string;
|
|
@@ -76,19 +76,19 @@ export type NodeGroup = {
|
|
|
76
76
|
maxSize: number;
|
|
77
77
|
minSize: number;
|
|
78
78
|
};
|
|
79
|
-
export type
|
|
79
|
+
export type TenantManifestV1SpecStackspotCloudPlatform = {
|
|
80
80
|
createIamRoles: boolean;
|
|
81
81
|
};
|
|
82
|
-
export type
|
|
82
|
+
export type TenantManifestV1SpecHelmResource = {
|
|
83
83
|
chartName: string;
|
|
84
84
|
version: string;
|
|
85
85
|
repoUrl: string;
|
|
86
86
|
};
|
|
87
|
-
export type
|
|
87
|
+
export type TenantManifestV1SpecSeleneAppsSeleneAppEnv = {
|
|
88
88
|
name: string;
|
|
89
89
|
value: string;
|
|
90
90
|
};
|
|
91
|
-
export type
|
|
91
|
+
export type TenantManifestV1SpecSeleneAppsSeleneApp = {
|
|
92
92
|
imageRepository: string;
|
|
93
93
|
imageVersion?: string;
|
|
94
94
|
labels?: {
|
|
@@ -97,34 +97,24 @@ export type SeleneApp = {
|
|
|
97
97
|
annotations?: {
|
|
98
98
|
[key: string]: string;
|
|
99
99
|
};
|
|
100
|
-
env?:
|
|
101
|
-
};
|
|
102
|
-
export type SeleneApps = {
|
|
103
|
-
agent: SeleneApp;
|
|
104
|
-
gateway: SeleneApp;
|
|
105
|
-
manager: SeleneApp;
|
|
106
|
-
platformGatewayUrl?: string;
|
|
107
|
-
};
|
|
108
|
-
export type Karpenter = {
|
|
109
|
-
instanceProfile: string;
|
|
110
|
-
securityGroupId: string;
|
|
111
|
-
replicas: number;
|
|
112
|
-
additionalLabels: {
|
|
113
|
-
[key: string]: string;
|
|
114
|
-
};
|
|
115
|
-
volumeSize: number;
|
|
100
|
+
env?: TenantManifestV1SpecSeleneAppsSeleneAppEnv[];
|
|
116
101
|
};
|
|
117
|
-
export type
|
|
118
|
-
|
|
102
|
+
export type TenantManifestV1SpecSeleneApps = {
|
|
103
|
+
agent: TenantManifestV1SpecSeleneAppsSeleneApp;
|
|
104
|
+
gateway: TenantManifestV1SpecSeleneAppsSeleneApp;
|
|
105
|
+
manager: TenantManifestV1SpecSeleneAppsSeleneApp;
|
|
106
|
+
platformGatewayUrl: string;
|
|
107
|
+
};
|
|
108
|
+
export type TenantManifestV1SpecControlPlane = {
|
|
109
|
+
addons: TenantManifestV1SpecAddonReference[];
|
|
119
110
|
instanceTypes?: string[];
|
|
120
|
-
kubernetes:
|
|
121
|
-
nodeGroup:
|
|
122
|
-
stackspotCloudPlatform
|
|
123
|
-
crossplaneNamespace
|
|
124
|
-
eksHelm?:
|
|
125
|
-
seleneHelm?:
|
|
126
|
-
seleneApps?:
|
|
127
|
-
karpenter?: Karpenter;
|
|
111
|
+
kubernetes: TenantManifestV1SpecKubernetes;
|
|
112
|
+
nodeGroup: TenantManifestV1SpecNodeGroup;
|
|
113
|
+
stackspotCloudPlatform?: TenantManifestV1SpecStackspotCloudPlatform;
|
|
114
|
+
crossplaneNamespace: string;
|
|
115
|
+
eksHelm?: TenantManifestV1SpecHelmResource;
|
|
116
|
+
seleneHelm?: TenantManifestV1SpecHelmResource;
|
|
117
|
+
seleneApps?: TenantManifestV1SpecSeleneApps;
|
|
128
118
|
iamProvider?: string;
|
|
129
119
|
postBootstrapUserData?: string;
|
|
130
120
|
bootstrapClusterCreatorAdminPermissions?: boolean;
|
|
@@ -133,120 +123,127 @@ export type ControlPlane = {
|
|
|
133
123
|
[key: string]: object;
|
|
134
124
|
};
|
|
135
125
|
};
|
|
136
|
-
export type
|
|
137
|
-
organizationId
|
|
138
|
-
cloudAccountConfiguration:
|
|
139
|
-
controlPlane:
|
|
126
|
+
export type TenantManifestV1Spec = {
|
|
127
|
+
organizationId: string;
|
|
128
|
+
cloudAccountConfiguration: TenantManifestV1SpecCloudAccountConfiguration;
|
|
129
|
+
controlPlane: TenantManifestV1SpecControlPlane;
|
|
140
130
|
};
|
|
141
|
-
export type
|
|
142
|
-
|
|
131
|
+
export type TenantManifestV1StatusControlPlaneCondition = {
|
|
132
|
+
id?: string;
|
|
133
|
+
"type": string;
|
|
134
|
+
status: string;
|
|
135
|
+
reason: string;
|
|
136
|
+
message: string;
|
|
137
|
+
lastTransitionTime: string;
|
|
138
|
+
};
|
|
139
|
+
export type TenantManifestV1StatusControlPlane = {
|
|
143
140
|
id: string;
|
|
141
|
+
name: string;
|
|
142
|
+
active?: boolean;
|
|
143
|
+
status: string;
|
|
144
144
|
kubeVersion: string;
|
|
145
|
+
conditions: TenantManifestV1StatusControlPlaneCondition[];
|
|
146
|
+
};
|
|
147
|
+
export type TenantManifestV1Runtime = {
|
|
148
|
+
id: string;
|
|
149
|
+
name: string;
|
|
145
150
|
status: string;
|
|
146
151
|
};
|
|
147
|
-
export type
|
|
148
|
-
|
|
149
|
-
|
|
152
|
+
export type TenantManifestV1Status = {
|
|
153
|
+
created: boolean;
|
|
154
|
+
ready: boolean;
|
|
155
|
+
organizationName?: string;
|
|
156
|
+
controlPlanes?: TenantManifestV1StatusControlPlane[];
|
|
157
|
+
runtimes?: TenantManifestV1Runtime[];
|
|
158
|
+
};
|
|
159
|
+
export type TenantManifestV1 = {
|
|
160
|
+
metadata: MetadataV0;
|
|
161
|
+
spec: TenantManifestV1Spec;
|
|
162
|
+
status?: TenantManifestV1Status;
|
|
163
|
+
};
|
|
164
|
+
export type RuntimeManifestV1Alpha1SpecCloudAccountConfigurationFromRef = {
|
|
165
|
+
id: string;
|
|
166
|
+
};
|
|
167
|
+
export type RuntimeManifestV1Alpha1SpecCloudAccountConfigurationIamRoles = {
|
|
168
|
+
clusterRole?: string;
|
|
169
|
+
clusterNodeGroup?: string;
|
|
170
|
+
clusterAdminRoles: string[];
|
|
171
|
+
karpenter?: string;
|
|
150
172
|
};
|
|
151
|
-
export type
|
|
173
|
+
export type RuntimeManifestV1Alpha1SpecCloudAccountConfiguration = {
|
|
174
|
+
fromRef?: RuntimeManifestV1Alpha1SpecCloudAccountConfigurationFromRef;
|
|
175
|
+
cloudProvider: string;
|
|
176
|
+
accountId: string;
|
|
177
|
+
region: string;
|
|
178
|
+
vpcId: string;
|
|
179
|
+
subnetIds: string[];
|
|
180
|
+
customAmi?: string;
|
|
181
|
+
iamRoles: RuntimeManifestV1Alpha1SpecCloudAccountConfigurationIamRoles;
|
|
182
|
+
};
|
|
183
|
+
export type RuntimeManifestV1Alpha1SpecControlPlaneAddonReference = {
|
|
152
184
|
name: string;
|
|
153
185
|
version: string;
|
|
154
186
|
values?: {
|
|
155
187
|
[key: string]: object;
|
|
156
188
|
};
|
|
157
189
|
};
|
|
158
|
-
export type
|
|
159
|
-
|
|
190
|
+
export type RuntimeManifestV1Alpha1SpecKubernetes = {
|
|
191
|
+
publicAccess: boolean;
|
|
160
192
|
version: string;
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
};
|
|
164
|
-
export type TenantStatusResource = {
|
|
165
|
-
runtimes?: RuntimeTenantResource[];
|
|
166
|
-
controlPlane?: ControlPlaneResource[];
|
|
167
|
-
};
|
|
168
|
-
export type TenantResource = {
|
|
169
|
-
apiVersion: string;
|
|
170
|
-
kind: string;
|
|
171
|
-
metadata: TenantMetadataResource;
|
|
172
|
-
spec?: TenantSpecResource;
|
|
173
|
-
status?: TenantStatusResource;
|
|
174
|
-
};
|
|
175
|
-
export type RuntimeMetadataResource = {
|
|
176
|
-
id?: string;
|
|
177
|
-
name?: string;
|
|
178
|
-
tags?: NameValuePairResource[];
|
|
179
|
-
labels?: NameValuePairResource[];
|
|
180
|
-
organizationName?: string;
|
|
181
|
-
organizationId?: string;
|
|
182
|
-
tenantName?: string;
|
|
183
|
-
tenantId?: string;
|
|
193
|
+
publicCidrsAllowed: string[];
|
|
194
|
+
extraCidrsInbound: string[];
|
|
184
195
|
};
|
|
185
|
-
export type
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
196
|
+
export type RuntimeManifestV1Alpha1SpecNodeGroup = {
|
|
197
|
+
volumeSize: number;
|
|
198
|
+
amiType?: string;
|
|
199
|
+
capacityType: string;
|
|
200
|
+
desiredSize: number;
|
|
201
|
+
maxSize: number;
|
|
202
|
+
minSize: number;
|
|
190
203
|
};
|
|
191
|
-
export type
|
|
192
|
-
|
|
193
|
-
id: string;
|
|
194
|
-
appVersion: string;
|
|
195
|
-
status: string;
|
|
196
|
-
tags: NameValuePairResource[];
|
|
197
|
-
labels: NameValuePairResource[];
|
|
204
|
+
export type RuntimeManifestV1Alpha1SpecStackspotCloudPlatform = {
|
|
205
|
+
createIamRoles: boolean;
|
|
198
206
|
};
|
|
199
|
-
export type
|
|
200
|
-
|
|
201
|
-
id: string;
|
|
207
|
+
export type RuntimeManifestV1Alpha1SpecHelmResource = {
|
|
208
|
+
chartName: string;
|
|
202
209
|
version: string;
|
|
203
|
-
|
|
210
|
+
repoUrl: string;
|
|
204
211
|
};
|
|
205
|
-
export type
|
|
206
|
-
|
|
207
|
-
|
|
212
|
+
export type RuntimeManifestV1Alpha1SpecControlPlane = {
|
|
213
|
+
addons?: RuntimeManifestV1Alpha1SpecControlPlaneAddonReference[];
|
|
214
|
+
instanceTypes?: string[];
|
|
215
|
+
kubernetes: RuntimeManifestV1Alpha1SpecKubernetes;
|
|
216
|
+
nodeGroup: RuntimeManifestV1Alpha1SpecNodeGroup;
|
|
217
|
+
stackspotCloudPlatform?: RuntimeManifestV1Alpha1SpecStackspotCloudPlatform;
|
|
218
|
+
eksHelm?: RuntimeManifestV1Alpha1SpecHelmResource;
|
|
219
|
+
iamProvider?: string;
|
|
220
|
+
postBootstrapUserData?: string;
|
|
221
|
+
bootstrapClusterCreatorAdminPermissions?: boolean;
|
|
222
|
+
enabledClusterLogTypes?: string[];
|
|
223
|
+
argoConfigs?: {
|
|
224
|
+
[key: string]: object;
|
|
225
|
+
};
|
|
208
226
|
};
|
|
209
|
-
export type
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
spec: RuntimeSpecResource;
|
|
214
|
-
status?: RuntimeStatusResource;
|
|
227
|
+
export type RuntimeManifestV1Alpha1Spec = {
|
|
228
|
+
tenantId: string;
|
|
229
|
+
cloudAccountConfiguration: RuntimeManifestV1Alpha1SpecCloudAccountConfiguration;
|
|
230
|
+
controlPlane: RuntimeManifestV1Alpha1SpecControlPlane;
|
|
215
231
|
};
|
|
216
|
-
export type
|
|
232
|
+
export type RuntimeManifestV1Alpha1StatusControlPlaneCondition = {
|
|
217
233
|
id?: string;
|
|
218
|
-
|
|
219
|
-
tags?: NameValuePairResource[];
|
|
220
|
-
labels?: NameValuePairResource[];
|
|
221
|
-
};
|
|
222
|
-
export type TenantControlPlaneResource = {
|
|
234
|
+
"type": string;
|
|
223
235
|
status: string;
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
name: string;
|
|
228
|
-
id: string;
|
|
229
|
-
controlPlane: TenantControlPlaneResource;
|
|
236
|
+
reason: string;
|
|
237
|
+
message: string;
|
|
238
|
+
lastTransitionTime: string;
|
|
230
239
|
};
|
|
231
|
-
export type
|
|
240
|
+
export type RuntimeManifestV1Alpha1StatusControlPlane = {
|
|
232
241
|
id: string;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
controlPlanes: ControlPlaneWithStatusResource[];
|
|
239
|
-
initialized: boolean;
|
|
240
|
-
};
|
|
241
|
-
export type OrganizationSpecResource = {
|
|
242
|
-
stackspotAccountId?: string;
|
|
243
|
-
};
|
|
244
|
-
export type OrganizationResource = {
|
|
245
|
-
apiVersion: string;
|
|
246
|
-
kind: string;
|
|
247
|
-
metadata: MetadataResource;
|
|
248
|
-
status?: OrganizationStatusResource;
|
|
249
|
-
spec?: OrganizationSpecResource;
|
|
242
|
+
name: string;
|
|
243
|
+
active?: boolean;
|
|
244
|
+
status: string;
|
|
245
|
+
kubeVersion: string;
|
|
246
|
+
conditions: RuntimeManifestV1Alpha1StatusControlPlaneCondition[];
|
|
250
247
|
};
|
|
251
248
|
export type ManifestMetadata = {
|
|
252
249
|
name: string;
|
|
@@ -267,18 +264,18 @@ export type ApplicationDeploymentManifestBase = {
|
|
|
267
264
|
spec: ManifestSpec;
|
|
268
265
|
apiVersion: string;
|
|
269
266
|
};
|
|
270
|
-
export type
|
|
267
|
+
export type MetadataV1 = {
|
|
271
268
|
id?: string;
|
|
272
269
|
name: string;
|
|
273
|
-
|
|
274
|
-
tags
|
|
270
|
+
version: string;
|
|
271
|
+
tags?: {
|
|
275
272
|
[key: string]: string;
|
|
276
273
|
};
|
|
277
|
-
labels
|
|
274
|
+
labels?: {
|
|
278
275
|
[key: string]: string;
|
|
279
276
|
};
|
|
280
277
|
};
|
|
281
|
-
export type
|
|
278
|
+
export type ApplicationDeploymentManifestV1Spec = {
|
|
282
279
|
runtimeId: string;
|
|
283
280
|
applicationId: string;
|
|
284
281
|
deployTemplate: string;
|
|
@@ -286,91 +283,148 @@ export type Spec = {
|
|
|
286
283
|
[key: string]: object;
|
|
287
284
|
};
|
|
288
285
|
};
|
|
289
|
-
export type
|
|
290
|
-
|
|
286
|
+
export type ApplicationDeploymentManifestV1Status = {
|
|
287
|
+
revisionNumber?: number;
|
|
288
|
+
};
|
|
289
|
+
export type ApplicationDeploymentManifestV1 = {
|
|
290
|
+
apiVersion: "ApplicationDeploymentManifestV1";
|
|
291
291
|
} & ApplicationDeploymentManifestBase & {
|
|
292
|
-
metadata?:
|
|
293
|
-
spec?:
|
|
292
|
+
metadata?: MetadataV1;
|
|
293
|
+
spec?: ApplicationDeploymentManifestV1Spec;
|
|
294
|
+
status?: ApplicationDeploymentManifestV1Status;
|
|
294
295
|
};
|
|
295
|
-
export type
|
|
296
|
+
export type Metadata = {
|
|
296
297
|
id?: string;
|
|
297
298
|
name: string;
|
|
298
|
-
|
|
299
|
-
tags
|
|
299
|
+
appVersion: string;
|
|
300
|
+
tags: {
|
|
300
301
|
[key: string]: string;
|
|
301
302
|
};
|
|
302
|
-
labels
|
|
303
|
+
labels: {
|
|
303
304
|
[key: string]: string;
|
|
304
305
|
};
|
|
305
306
|
};
|
|
306
|
-
export type
|
|
307
|
-
|
|
307
|
+
export type Spec = {
|
|
308
|
+
runtimeId: string;
|
|
309
|
+
applicationId?: string;
|
|
310
|
+
blueprint: string;
|
|
311
|
+
blueprintValues: {
|
|
312
|
+
[key: string]: object;
|
|
313
|
+
};
|
|
308
314
|
};
|
|
309
|
-
export type
|
|
310
|
-
apiVersion: "
|
|
315
|
+
export type ApplicationDeploymentManifestV1Alpha1 = {
|
|
316
|
+
apiVersion: "ApplicationDeploymentManifestV1Alpha1";
|
|
311
317
|
} & ApplicationDeploymentManifestBase & {
|
|
312
|
-
metadata?:
|
|
318
|
+
metadata?: Metadata;
|
|
313
319
|
spec?: Spec;
|
|
314
|
-
status?: Status;
|
|
315
320
|
};
|
|
316
|
-
export type
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
+
export type RuntimeManifestV1Alpha1Status = {
|
|
322
|
+
created: boolean;
|
|
323
|
+
ready: boolean;
|
|
324
|
+
organizationName?: string;
|
|
325
|
+
organizationId?: string;
|
|
326
|
+
tenantName?: string;
|
|
327
|
+
controlPlanes?: RuntimeManifestV1Alpha1StatusControlPlane[];
|
|
328
|
+
applicationDeployments?: (ApplicationDeploymentManifestV1 | ApplicationDeploymentManifestV1Alpha1)[];
|
|
321
329
|
};
|
|
322
|
-
export type
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
spec?: Spec;
|
|
330
|
+
export type RuntimeManifestV1 = {
|
|
331
|
+
metadata: MetadataV0;
|
|
332
|
+
spec: RuntimeManifestV1Alpha1Spec;
|
|
333
|
+
status?: RuntimeManifestV1Alpha1Status;
|
|
327
334
|
};
|
|
328
|
-
export type
|
|
329
|
-
|
|
330
|
-
status?: ManifestStatus;
|
|
331
|
-
spec: ManifestSpec;
|
|
332
|
-
apiVersion: string;
|
|
335
|
+
export type OrganizationManifestV1Spec = {
|
|
336
|
+
stackspotAccountId: string;
|
|
333
337
|
};
|
|
334
|
-
export type
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
338
|
+
export type OrganizationManifestV1StatusControlPlane = {
|
|
339
|
+
id: string;
|
|
340
|
+
name: string;
|
|
341
|
+
active: boolean;
|
|
342
|
+
status: string;
|
|
343
|
+
kubeVersion: string;
|
|
339
344
|
};
|
|
340
|
-
export type
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
[key: string]: object;
|
|
345
|
-
};
|
|
346
|
-
spec?: {
|
|
347
|
-
[key: string]: object;
|
|
348
|
-
};
|
|
345
|
+
export type OrganizationManifestV1Status = {
|
|
346
|
+
created: boolean;
|
|
347
|
+
ready: boolean;
|
|
348
|
+
controlPlanes?: OrganizationManifestV1StatusControlPlane[];
|
|
349
349
|
};
|
|
350
|
-
export type
|
|
351
|
-
|
|
350
|
+
export type OrganizationManifestV1 = {
|
|
351
|
+
metadata: MetadataV0;
|
|
352
|
+
spec: OrganizationManifestV1Spec;
|
|
353
|
+
status?: OrganizationManifestV1Status;
|
|
354
|
+
};
|
|
355
|
+
export type DeployTemplateManifestV1SpecHelm = {
|
|
356
|
+
chartName: string;
|
|
357
|
+
repositoryUrl: string;
|
|
358
|
+
version: string;
|
|
359
|
+
};
|
|
360
|
+
export type DeployTemplateManifestV1Spec = {
|
|
361
|
+
helm: DeployTemplateManifestV1SpecHelm;
|
|
362
|
+
valuesSchema?: object;
|
|
363
|
+
organizationId: string;
|
|
364
|
+
};
|
|
365
|
+
export type DeployTemplateManifestV1 = {
|
|
366
|
+
metadata: MetadataV1;
|
|
367
|
+
spec: DeployTemplateManifestV1Spec;
|
|
368
|
+
};
|
|
369
|
+
export type AddonManifestV1Alpha1SpecSpecHelm = {
|
|
370
|
+
chartName: string;
|
|
371
|
+
repositoryUrl: string;
|
|
372
|
+
version: string;
|
|
373
|
+
};
|
|
374
|
+
export type AddonManifestV1Alpha1Spec = {
|
|
375
|
+
helm: AddonManifestV1Alpha1SpecSpecHelm;
|
|
376
|
+
valuesSchema?: object;
|
|
377
|
+
organizationId: string;
|
|
378
|
+
};
|
|
379
|
+
export type AddonManifestV1 = {
|
|
380
|
+
metadata: MetadataV1;
|
|
381
|
+
spec: AddonManifestV1Alpha1Spec;
|
|
382
|
+
};
|
|
383
|
+
export type LogManifestV1Spec = {
|
|
352
384
|
resourceId: string;
|
|
353
|
-
controlPlaneId
|
|
354
|
-
name
|
|
385
|
+
controlPlaneId?: string;
|
|
386
|
+
name?: string;
|
|
355
387
|
numberOfLines: number;
|
|
388
|
+
"type": string;
|
|
356
389
|
};
|
|
357
|
-
export type
|
|
358
|
-
fetchLogsTimestamp
|
|
390
|
+
export type LogManifestV1Status = {
|
|
391
|
+
fetchLogsTimestamp: string;
|
|
359
392
|
logs: string[];
|
|
360
393
|
};
|
|
361
|
-
export type
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
status?: LogStatusResource;
|
|
366
|
-
kind: string;
|
|
394
|
+
export type LogManifestV1 = {
|
|
395
|
+
metadata: MetadataV0;
|
|
396
|
+
spec: LogManifestV1Spec;
|
|
397
|
+
status?: LogManifestV1Status;
|
|
367
398
|
};
|
|
368
|
-
export type
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
399
|
+
export type HealthManifestV1Spec = {
|
|
400
|
+
"type": string;
|
|
401
|
+
resourceId: string;
|
|
402
|
+
controlPlaneId?: string;
|
|
403
|
+
};
|
|
404
|
+
export type HealthManifestV1StatusPodResource = {
|
|
405
|
+
cpu: string;
|
|
406
|
+
memory: string;
|
|
407
|
+
};
|
|
408
|
+
export type HealthManifestV1StatusPod = {
|
|
409
|
+
name: string;
|
|
410
|
+
uptime: string;
|
|
411
|
+
restarts: string;
|
|
412
|
+
status: string;
|
|
413
|
+
containers: string;
|
|
414
|
+
healthStatus: string;
|
|
415
|
+
image: string;
|
|
416
|
+
limits: HealthManifestV1StatusPodResource;
|
|
417
|
+
requests: HealthManifestV1StatusPodResource;
|
|
418
|
+
};
|
|
419
|
+
export type HealthManifestV1Status = {
|
|
420
|
+
fetchHealthTimestamp: string;
|
|
421
|
+
healthStatus: string;
|
|
422
|
+
pods: HealthManifestV1StatusPod[];
|
|
423
|
+
};
|
|
424
|
+
export type HealthManifestV1 = {
|
|
425
|
+
metadata: MetadataV0;
|
|
426
|
+
spec: HealthManifestV1Spec;
|
|
427
|
+
status?: HealthManifestV1Status;
|
|
374
428
|
};
|
|
375
429
|
/**
|
|
376
430
|
* Retrieves the organization's icon image.
|
|
@@ -403,12 +457,12 @@ export declare function listTenants({ xAccountId, page, perPage }: {
|
|
|
403
457
|
xAccountId?: string;
|
|
404
458
|
page?: number;
|
|
405
459
|
perPage?: number;
|
|
406
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
460
|
+
}, opts?: Oazapfts.RequestOpts): Promise<TenantManifestV1[]>;
|
|
407
461
|
/**
|
|
408
462
|
* Creates a new tenant.
|
|
409
463
|
*/
|
|
410
|
-
export declare function createTenant({
|
|
411
|
-
|
|
464
|
+
export declare function createTenant({ tenantManifestV1 }: {
|
|
465
|
+
tenantManifestV1: TenantManifestV1;
|
|
412
466
|
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
413
467
|
/**
|
|
414
468
|
* Returns paginated runtimes.
|
|
@@ -417,12 +471,12 @@ export declare function listRuntimes({ xAccountId, page, perPage }: {
|
|
|
417
471
|
xAccountId?: string;
|
|
418
472
|
page?: number;
|
|
419
473
|
perPage?: number;
|
|
420
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
474
|
+
}, opts?: Oazapfts.RequestOpts): Promise<RuntimeManifestV1[]>;
|
|
421
475
|
/**
|
|
422
476
|
* Creates a new runtime.
|
|
423
477
|
*/
|
|
424
|
-
export declare function createRuntime({
|
|
425
|
-
|
|
478
|
+
export declare function createRuntime({ runtimeManifestV1 }: {
|
|
479
|
+
runtimeManifestV1: RuntimeManifestV1;
|
|
426
480
|
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
427
481
|
/**
|
|
428
482
|
* Retrieves the Stackspot account organization
|
|
@@ -431,13 +485,13 @@ export declare function getOrganizations({ xAccountId, page, perPage }: {
|
|
|
431
485
|
xAccountId?: string;
|
|
432
486
|
page?: number;
|
|
433
487
|
perPage?: number;
|
|
434
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
488
|
+
}, opts?: Oazapfts.RequestOpts): Promise<OrganizationManifestV1[]>;
|
|
435
489
|
/**
|
|
436
490
|
* Creates a new organization.
|
|
437
491
|
*/
|
|
438
|
-
export declare function createOrganization({
|
|
439
|
-
|
|
440
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
492
|
+
export declare function createOrganization({ organizationManifestV1 }: {
|
|
493
|
+
organizationManifestV1: OrganizationManifestV1;
|
|
494
|
+
}, opts?: Oazapfts.RequestOpts): Promise<OrganizationManifestV1>;
|
|
441
495
|
/**
|
|
442
496
|
* Returns paginated tenants.
|
|
443
497
|
*/
|
|
@@ -445,14 +499,14 @@ export declare function listTenants1({ organizationId, page, perPage }: {
|
|
|
445
499
|
organizationId: string;
|
|
446
500
|
page?: number;
|
|
447
501
|
perPage?: number;
|
|
448
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
502
|
+
}, opts?: Oazapfts.RequestOpts): Promise<TenantManifestV1[]>;
|
|
449
503
|
/**
|
|
450
504
|
* Creates a new tenant.
|
|
451
505
|
*/
|
|
452
|
-
export declare function createTenant1({ organizationId,
|
|
506
|
+
export declare function createTenant1({ organizationId, tenantManifestV1 }: {
|
|
453
507
|
organizationId: string;
|
|
454
|
-
|
|
455
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
508
|
+
tenantManifestV1: TenantManifestV1;
|
|
509
|
+
}, opts?: Oazapfts.RequestOpts): Promise<TenantManifestV1>;
|
|
456
510
|
/**
|
|
457
511
|
* Returns paginated runtimes.
|
|
458
512
|
*/
|
|
@@ -461,15 +515,15 @@ export declare function listRuntimes1({ organizationId, tenantId, page, perPage
|
|
|
461
515
|
tenantId: string;
|
|
462
516
|
page?: number;
|
|
463
517
|
perPage?: number;
|
|
464
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
518
|
+
}, opts?: Oazapfts.RequestOpts): Promise<RuntimeManifestV1[]>;
|
|
465
519
|
/**
|
|
466
520
|
* Creates a new runtime.
|
|
467
521
|
*/
|
|
468
|
-
export declare function createRuntime1({ organizationId, tenantId,
|
|
522
|
+
export declare function createRuntime1({ organizationId, tenantId, runtimeManifestV1 }: {
|
|
469
523
|
organizationId: string;
|
|
470
524
|
tenantId: string;
|
|
471
|
-
|
|
472
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
525
|
+
runtimeManifestV1: RuntimeManifestV1;
|
|
526
|
+
}, opts?: Oazapfts.RequestOpts): Promise<RuntimeManifestV1>;
|
|
473
527
|
/**
|
|
474
528
|
*
|
|
475
529
|
* Requires one of the following permissions:
|
|
@@ -481,70 +535,64 @@ export declare function listApplicationDeployments({ organizationId, tenantId, r
|
|
|
481
535
|
organizationId: string;
|
|
482
536
|
tenantId: string;
|
|
483
537
|
runtimeId: string;
|
|
484
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
538
|
+
}, opts?: Oazapfts.RequestOpts): Promise<ApplicationDeploymentManifestV1[]>;
|
|
485
539
|
/**
|
|
486
540
|
* Apply manifesto resource yaml.
|
|
487
541
|
*/
|
|
488
|
-
export declare function deploy({ organizationId, tenantId, runtimeId,
|
|
542
|
+
export declare function deploy({ organizationId, tenantId, runtimeId, applicationDeploymentManifestV1 }: {
|
|
489
543
|
organizationId: string;
|
|
490
544
|
tenantId: string;
|
|
491
545
|
runtimeId: string;
|
|
492
|
-
|
|
493
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
546
|
+
applicationDeploymentManifestV1: ApplicationDeploymentManifestV1;
|
|
547
|
+
}, opts?: Oazapfts.RequestOpts): Promise<ApplicationDeploymentManifestV1>;
|
|
494
548
|
/**
|
|
495
549
|
* List DeployTemplate's
|
|
496
550
|
*/
|
|
497
551
|
export declare function listDeployTemplate({ organizationId }: {
|
|
498
552
|
organizationId: string;
|
|
499
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
553
|
+
}, opts?: Oazapfts.RequestOpts): Promise<DeployTemplateManifestV1[]>;
|
|
500
554
|
/**
|
|
501
555
|
* Create DeployTemplate
|
|
502
556
|
*/
|
|
503
|
-
export declare function createDeployTemplate({ organizationId,
|
|
557
|
+
export declare function createDeployTemplate({ organizationId, deployTemplateManifestV1 }: {
|
|
504
558
|
organizationId: string;
|
|
505
|
-
|
|
506
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
559
|
+
deployTemplateManifestV1: DeployTemplateManifestV1;
|
|
560
|
+
}, opts?: Oazapfts.RequestOpts): Promise<DeployTemplateManifestV1>;
|
|
507
561
|
/**
|
|
508
562
|
* List Addon's
|
|
509
563
|
*/
|
|
510
564
|
export declare function listAddon({ organizationId }: {
|
|
511
565
|
organizationId: string;
|
|
512
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
566
|
+
}, opts?: Oazapfts.RequestOpts): Promise<AddonManifestV1[]>;
|
|
513
567
|
/**
|
|
514
568
|
* Create Addon
|
|
515
569
|
*/
|
|
516
|
-
export declare function createAddon({ organizationId,
|
|
570
|
+
export declare function createAddon({ organizationId, addonManifestV1 }: {
|
|
517
571
|
organizationId: string;
|
|
518
|
-
|
|
519
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
572
|
+
addonManifestV1: AddonManifestV1;
|
|
573
|
+
}, opts?: Oazapfts.RequestOpts): Promise<AddonManifestV1>;
|
|
520
574
|
/**
|
|
521
575
|
* List application deployments
|
|
522
576
|
*/
|
|
523
|
-
export declare function listApplicationDeployments1(opts?: Oazapfts.RequestOpts): Promise<
|
|
577
|
+
export declare function listApplicationDeployments1(opts?: Oazapfts.RequestOpts): Promise<ApplicationDeploymentManifestV1[]>;
|
|
524
578
|
/**
|
|
525
579
|
* Apply manifesto resource yaml.
|
|
526
580
|
*/
|
|
527
|
-
export declare function deploy1({
|
|
528
|
-
|
|
529
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
530
|
-
/**
|
|
531
|
-
* Applies a manifest to the control plane.
|
|
532
|
-
*/
|
|
533
|
-
export declare function apply({ manifestResource }: {
|
|
534
|
-
manifestResource: ManifestResource;
|
|
535
|
-
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
581
|
+
export declare function deploy1({ applicationDeploymentManifestV1 }: {
|
|
582
|
+
applicationDeploymentManifestV1: ApplicationDeploymentManifestV1;
|
|
583
|
+
}, opts?: Oazapfts.RequestOpts): Promise<ApplicationDeploymentManifestV1>;
|
|
536
584
|
/**
|
|
537
585
|
* Retrieves the tenant details.
|
|
538
586
|
*/
|
|
539
587
|
export declare function getTenant({ id }: {
|
|
540
588
|
id: string;
|
|
541
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
589
|
+
}, opts?: Oazapfts.RequestOpts): Promise<TenantManifestV1>;
|
|
542
590
|
/**
|
|
543
591
|
* Retrieves the runtime details.
|
|
544
592
|
*/
|
|
545
593
|
export declare function getRuntime({ id }: {
|
|
546
594
|
id: string;
|
|
547
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
595
|
+
}, opts?: Oazapfts.RequestOpts): Promise<RuntimeManifestV1>;
|
|
548
596
|
/**
|
|
549
597
|
*
|
|
550
598
|
* Requires one of the following permissions:
|
|
@@ -557,7 +605,7 @@ export declare function findApplicationDeploymentById({ organizationId, tenantId
|
|
|
557
605
|
tenantId: string;
|
|
558
606
|
runtimeId: string;
|
|
559
607
|
deploymentId: string;
|
|
560
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
608
|
+
}, opts?: Oazapfts.RequestOpts): Promise<ApplicationDeploymentManifestV1>;
|
|
561
609
|
/**
|
|
562
610
|
* Get application deployment logs.
|
|
563
611
|
*/
|
|
@@ -567,7 +615,7 @@ export declare function getApplicationDeploymentLogs({ organizationId, tenantId,
|
|
|
567
615
|
runtimeId: string;
|
|
568
616
|
deploymentId: string;
|
|
569
617
|
numberOfLines?: number;
|
|
570
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
618
|
+
}, opts?: Oazapfts.RequestOpts): Promise<LogManifestV1>;
|
|
571
619
|
/**
|
|
572
620
|
* Get application deployment health.
|
|
573
621
|
*/
|
|
@@ -576,7 +624,7 @@ export declare function getApplicationDeploymentHealth({ organizationId, tenantI
|
|
|
576
624
|
tenantId: string;
|
|
577
625
|
runtimeId: string;
|
|
578
626
|
deploymentId: string;
|
|
579
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
627
|
+
}, opts?: Oazapfts.RequestOpts): Promise<HealthManifestV1>;
|
|
580
628
|
/**
|
|
581
629
|
* Retrieves the runtime details.
|
|
582
630
|
*/
|
|
@@ -584,67 +632,67 @@ export declare function getRuntime1({ organizationId, tenantId, id }: {
|
|
|
584
632
|
organizationId: string;
|
|
585
633
|
tenantId: string;
|
|
586
634
|
id: string;
|
|
587
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
635
|
+
}, opts?: Oazapfts.RequestOpts): Promise<RuntimeManifestV1>;
|
|
588
636
|
/**
|
|
589
637
|
* Retrieves the tenant details.
|
|
590
638
|
*/
|
|
591
639
|
export declare function getTenant1({ organizationId, id }: {
|
|
592
640
|
organizationId: string;
|
|
593
641
|
id: string;
|
|
594
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
642
|
+
}, opts?: Oazapfts.RequestOpts): Promise<TenantManifestV1>;
|
|
595
643
|
/**
|
|
596
644
|
* Get DeployTemplate
|
|
597
645
|
*/
|
|
598
646
|
export declare function getDeployTemplate({ organizationId, deployTemplateId }: {
|
|
599
647
|
organizationId: string;
|
|
600
648
|
deployTemplateId: string;
|
|
601
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
649
|
+
}, opts?: Oazapfts.RequestOpts): Promise<DeployTemplateManifestV1>;
|
|
602
650
|
/**
|
|
603
651
|
* Delete DeployTemplate
|
|
604
652
|
*/
|
|
605
653
|
export declare function deleteDeployTemplate({ organizationId, deployTemplateId }: {
|
|
606
654
|
organizationId: string;
|
|
607
655
|
deployTemplateId: string;
|
|
608
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
656
|
+
}, opts?: Oazapfts.RequestOpts): Promise<DeployTemplateManifestV1>;
|
|
609
657
|
/**
|
|
610
658
|
* Get Addon
|
|
611
659
|
*/
|
|
612
660
|
export declare function getAddon({ organizationId, addonId }: {
|
|
613
661
|
organizationId: string;
|
|
614
662
|
addonId: string;
|
|
615
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
663
|
+
}, opts?: Oazapfts.RequestOpts): Promise<AddonManifestV1>;
|
|
616
664
|
/**
|
|
617
665
|
* Retrieves the organization by ID
|
|
618
666
|
*/
|
|
619
667
|
export declare function getOrganizationById({ organizationId }: {
|
|
620
668
|
organizationId: string;
|
|
621
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
669
|
+
}, opts?: Oazapfts.RequestOpts): Promise<OrganizationManifestV1>;
|
|
622
670
|
/**
|
|
623
671
|
* Downloads the bootstrap module for creating a new organization.
|
|
624
672
|
*/
|
|
625
673
|
export declare function downloadBootstrapModule({ version }: {
|
|
626
674
|
version?: string;
|
|
627
675
|
}, opts?: Oazapfts.RequestOpts): Promise<Blob>;
|
|
628
|
-
export declare function getTenantExample(opts?: Oazapfts.RequestOpts): Promise<
|
|
629
|
-
export declare function getRuntimeExample(opts?: Oazapfts.RequestOpts): Promise<
|
|
630
|
-
export declare function getApplicationDeploymentExample(opts?: Oazapfts.RequestOpts): Promise<
|
|
676
|
+
export declare function getTenantExample(opts?: Oazapfts.RequestOpts): Promise<TenantManifestV1>;
|
|
677
|
+
export declare function getRuntimeExample(opts?: Oazapfts.RequestOpts): Promise<RuntimeManifestV1>;
|
|
678
|
+
export declare function getApplicationDeploymentExample(opts?: Oazapfts.RequestOpts): Promise<ApplicationDeploymentManifestV1>;
|
|
631
679
|
/**
|
|
632
680
|
* Get application deployment by ID
|
|
633
681
|
*/
|
|
634
682
|
export declare function findApplicationDeploymentById1({ deploymentId }: {
|
|
635
683
|
deploymentId: string;
|
|
636
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
684
|
+
}, opts?: Oazapfts.RequestOpts): Promise<ApplicationDeploymentManifestV1>;
|
|
637
685
|
/**
|
|
638
686
|
* Get application deployment logs.
|
|
639
687
|
*/
|
|
640
688
|
export declare function getApplicationDeploymentLogs1({ deploymentId, numberOfLines }: {
|
|
641
689
|
deploymentId: string;
|
|
642
690
|
numberOfLines?: number;
|
|
643
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
691
|
+
}, opts?: Oazapfts.RequestOpts): Promise<LogManifestV1>;
|
|
644
692
|
/**
|
|
645
693
|
* Get application deployment health.
|
|
646
694
|
*/
|
|
647
695
|
export declare function getApplicationDeploymentHealth1({ deploymentId }: {
|
|
648
696
|
deploymentId: string;
|
|
649
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
697
|
+
}, opts?: Oazapfts.RequestOpts): Promise<HealthManifestV1>;
|
|
650
698
|
//# sourceMappingURL=cloudPlatformHorizon.d.ts.map
|