@stack-spot/portal-network 0.221.0 → 0.222.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.
@@ -1,3058 +0,0 @@
1
- /**
2
- * PlatformHorizonApplication
3
- * 0.0.2
4
- * DO NOT MODIFY - This file has been generated using oazapfts.
5
- * See https://www.npmjs.com/package/oazapfts
6
- */
7
- import * as Oazapfts from "@oazapfts/runtime";
8
- import * as QS from "@oazapfts/runtime/query";
9
- export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
10
- headers: {},
11
- baseUrl: "https://cloud-platform-horizon.dev.stackspot.com",
12
- };
13
- const oazapfts = Oazapfts.runtime(defaults);
14
- export const servers = {
15
- generatedServerUrl: "https://cloud-platform-horizon.dev.stackspot.com"
16
- };
17
- export type ValidationDetail = {
18
- code: string;
19
- values: string[];
20
- };
21
- export type ErrorBody = {
22
- code: string;
23
- details: string;
24
- status: string;
25
- validationDetails?: ValidationDetail[];
26
- };
27
- export type MetadataV1 = {
28
- id?: string;
29
- name: string;
30
- version: string;
31
- labels?: {
32
- [key: string]: string;
33
- };
34
- propagableLabels?: {
35
- [key: string]: string;
36
- };
37
- };
38
- export type DeploymentContextManifestV1Spec = {
39
- runtimeId: string;
40
- deployTemplateId: string;
41
- workspaceId: string;
42
- applications: string[];
43
- environment: string;
44
- isDefault: boolean;
45
- };
46
- export type DeploymentContextManifestV1 = {
47
- metadata: MetadataV1;
48
- spec: DeploymentContextManifestV1Spec;
49
- };
50
- export type TenantManifestV1SpecCloudAccountConfigurationFromRef = {
51
- id: string;
52
- };
53
- export type TenantManifestV1SpecCloudAccountConfigurationIamRoles = {
54
- clusterRole?: string;
55
- clusterNodeGroup?: string;
56
- clusterAdminRoles: string[];
57
- crossplane?: string;
58
- crossAccountRoleArn?: string;
59
- argocd?: string;
60
- karpenter?: string;
61
- externalSecrets?: string;
62
- stackspotCloudPlatformAgent?: string;
63
- stackspotCloudPlatformManager?: string;
64
- stackspotCloudPlatformGateway?: string;
65
- nodeRole?: string;
66
- };
67
- export type TenantManifestV1SpecCloudAccountConfiguration = {
68
- fromRef?: TenantManifestV1SpecCloudAccountConfigurationFromRef;
69
- cloudProvider?: string;
70
- accountId?: string;
71
- region?: string;
72
- vpcId?: string;
73
- subnetIds?: string[];
74
- customAmi?: string;
75
- iamRoles?: TenantManifestV1SpecCloudAccountConfigurationIamRoles;
76
- };
77
- export type TenantManifestV1SpecAddonReference = {
78
- /** Name of the registered addon */
79
- name: string;
80
- /** Version of the registered addon */
81
- version: string;
82
- /** Context for this addon */
83
- context: string;
84
- "namespace": string;
85
- values?: {
86
- [key: string]: object;
87
- };
88
- };
89
- export type TenantManifestV1SpecKubernetesNetworkConfig = {
90
- ipFamily?: string;
91
- serviceIpv4Cidr?: string;
92
- };
93
- export type TenantManifestV1SpecKubernetes = {
94
- publicAccess: boolean;
95
- privateAccess: boolean;
96
- version: string;
97
- publicCidrsAllowed: string[];
98
- privateCidrsAllowed?: string[];
99
- extraCidrsInbound?: string[];
100
- networkConfig?: TenantManifestV1SpecKubernetesNetworkConfig;
101
- };
102
- export type TenantManifestV1SpecNodeGroup = {
103
- volumeSize?: number;
104
- amiType?: string;
105
- capacityType?: string;
106
- desiredSize?: number;
107
- maxSize?: number;
108
- minSize?: number;
109
- };
110
- export type TenantManifestV1SpecStackspotCloudPlatform = {
111
- createIamRoles: boolean;
112
- };
113
- export type TenantManifestV1SpecHelmResource = {
114
- chartName: string;
115
- version: string;
116
- repoUrl: string;
117
- };
118
- export type TenantManifestV1SpecSeleneAppsSeleneAppEnv = {
119
- name: string;
120
- value: string;
121
- };
122
- export type TenantManifestV1SpecSeleneAppsSeleneApp = {
123
- imageRepository: string;
124
- imageVersion?: string;
125
- labels?: {
126
- [key: string]: string;
127
- };
128
- annotations?: {
129
- [key: string]: string;
130
- };
131
- env?: TenantManifestV1SpecSeleneAppsSeleneAppEnv[];
132
- };
133
- export type TenantManifestV1SpecSeleneApps = {
134
- agent: TenantManifestV1SpecSeleneAppsSeleneApp;
135
- gateway: TenantManifestV1SpecSeleneAppsSeleneApp;
136
- manager: TenantManifestV1SpecSeleneAppsSeleneApp;
137
- platformGatewayUrl: string;
138
- };
139
- export type TenantManifestV1SpecArgoCdMetrics = {
140
- enabled: boolean;
141
- };
142
- export type TenantManifestV1SpecArgoCdComponentConfig = {
143
- metrics?: TenantManifestV1SpecArgoCdMetrics;
144
- podAnnotations?: {
145
- [key: string]: string;
146
- };
147
- };
148
- export type TenantManifestV1SpecArgoCdConfigsSsh = {
149
- extraHosts: string;
150
- };
151
- export type TenantManifestV1SpecArgoCdConfigsTls = {
152
- certificates: {
153
- [key: string]: string;
154
- };
155
- };
156
- export type TenantManifestV1SpecArgoCdConfigs = {
157
- ssh?: TenantManifestV1SpecArgoCdConfigsSsh;
158
- tls?: TenantManifestV1SpecArgoCdConfigsTls;
159
- repositories?: {
160
- [key: string]: object;
161
- };
162
- credentialTemplates?: {
163
- [key: string]: object;
164
- };
165
- };
166
- export type TenantManifestV1SpecArgoCd = {
167
- chart?: TenantManifestV1SpecHelmResource;
168
- server?: TenantManifestV1SpecArgoCdComponentConfig;
169
- controller?: TenantManifestV1SpecArgoCdComponentConfig;
170
- applicationSet?: TenantManifestV1SpecArgoCdComponentConfig;
171
- repoServer?: TenantManifestV1SpecArgoCdComponentConfig;
172
- configs?: TenantManifestV1SpecArgoCdConfigs;
173
- };
174
- export type TenantManifestV1SpecKarpenterNodeClass = {
175
- name?: string;
176
- amiType?: string;
177
- amiVersion?: string;
178
- amiId?: string;
179
- detailedMonitoring?: boolean;
180
- volumeSize?: number;
181
- metadataOptions?: {
182
- [key: string]: object;
183
- };
184
- subnetIds?: string[];
185
- userData?: string;
186
- };
187
- export type TenantManifestV1SpecKarpenterNodePoolLimits = {
188
- cpu: string;
189
- memory: string;
190
- };
191
- export type TenantManifestV1SpecKarpenterNodePoolInstanceFamilies = {
192
- amd?: string[];
193
- arm?: string[];
194
- };
195
- export type TenantManifestV1SpecKarpenterNodePool = {
196
- /** Name of the NodePool */
197
- name?: string;
198
- /** Resource limits for the NodePool */
199
- limits?: TenantManifestV1SpecKarpenterNodePoolLimits;
200
- /** The amount of time a node can live on the cluster before being deleted by Karpenter */
201
- expireAfter?: string;
202
- /** Instance sizes to use with this NodePool */
203
- instanceSizes?: string[];
204
- /** Instance families to use with this NodePool */
205
- instanceFamilies?: TenantManifestV1SpecKarpenterNodePoolInstanceFamilies;
206
- /** Instance architecture to use with this NodePool (valid values: amd, arm) */
207
- architecture?: string;
208
- /** Availability zones to use with this NodePool */
209
- zones?: string[];
210
- /** Instance capacity type to use with this NodePool (valid values: spot, on-demand, reserved) */
211
- capacityType?: string;
212
- /** Node Class resource to associate this NodePool with */
213
- nodeClassName?: string;
214
- /** Configuration for Karpenter to disrupt nodes through your NodePool */
215
- disruption?: {
216
- [key: string]: object;
217
- };
218
- /** Taints to add to provisioned nodes */
219
- taints?: {
220
- [key: string]: object;
221
- }[];
222
- };
223
- export type TenantManifestV1SpecKarpenter = {
224
- chart?: TenantManifestV1SpecHelmResource;
225
- customAnnotations?: {
226
- [key: string]: string;
227
- };
228
- replicas?: number;
229
- podAnnotations?: {
230
- [key: string]: string;
231
- };
232
- defaultNodeClass?: TenantManifestV1SpecKarpenterNodeClass;
233
- additionalNodeClasses?: TenantManifestV1SpecKarpenterNodeClass[];
234
- defaultNodePool?: TenantManifestV1SpecKarpenterNodePool;
235
- additionalNodePools?: TenantManifestV1SpecKarpenterNodePool[];
236
- };
237
- export type TenantManifestV1SpecExternalSecretsHelmRepoConfig = {
238
- url: string;
239
- username?: string;
240
- password?: string;
241
- };
242
- export type TenantManifestV1SpecExternalSecrets = {
243
- enabled?: boolean;
244
- chart?: TenantManifestV1SpecHelmResource;
245
- helmRepo?: TenantManifestV1SpecExternalSecretsHelmRepoConfig;
246
- enableMetrics?: boolean;
247
- podAnnotations?: {
248
- [key: string]: string;
249
- };
250
- };
251
- export type TenantManifestV1SpecFargateConfiguration = {
252
- /** Set the Fargate Profile IAM role. If empty, it will be autocreated */
253
- roleArn?: string;
254
- /** Define selectors use with the Fargate Profile (defaults to Karpenter and coreDNS) */
255
- selector?: {
256
- [key: string]: object;
257
- }[];
258
- };
259
- export type TenantManifestV1SpecCrossplaneMetrics = {
260
- enabled?: boolean;
261
- };
262
- export type TenantManifestV1SpecCrossplaneProvider = {
263
- services?: string[];
264
- version: string;
265
- repo: string;
266
- };
267
- export type TenantManifestV1SpecCrossplaneDefaultProvider = {
268
- aws?: TenantManifestV1SpecCrossplaneProvider;
269
- kubernetes?: TenantManifestV1SpecCrossplaneProvider;
270
- };
271
- export type TenantManifestV1SpecCrossplaneFunction = {
272
- name: string;
273
- version: string;
274
- repo: string;
275
- };
276
- export type TenantManifestV1SpecCrossplane = {
277
- chart?: TenantManifestV1SpecHelmResource;
278
- replicas?: number;
279
- registryCaBundleConfig?: {
280
- [key: string]: object;
281
- };
282
- metrics?: TenantManifestV1SpecCrossplaneMetrics;
283
- customAnnotations?: {
284
- [key: string]: string;
285
- };
286
- defaultProviders?: TenantManifestV1SpecCrossplaneDefaultProvider;
287
- defaultFunctions?: TenantManifestV1SpecCrossplaneFunction[];
288
- additionalFunctions?: TenantManifestV1SpecCrossplaneFunction[];
289
- };
290
- export type TenantManifestV1SpecDefaultEksAddonsVersions = {
291
- coreDns?: string;
292
- podIdentity?: string;
293
- vpcCni?: string;
294
- kubeProxy?: string;
295
- };
296
- export type TenantManifestV1SpecDefaultEksAddonsConfigurationValues = {
297
- coreDns?: string;
298
- podIdentity?: string;
299
- vpcCni?: string;
300
- kubeProxy?: string;
301
- };
302
- export type TenantManifestV1SpecDefaultEksAddons = {
303
- versions?: TenantManifestV1SpecDefaultEksAddonsVersions;
304
- configurationValues?: TenantManifestV1SpecDefaultEksAddonsConfigurationValues;
305
- };
306
- export type TenantManifestV1SpecEksAddon = {
307
- name: string;
308
- version: string;
309
- configurationValues?: string;
310
- };
311
- export type TenantManifestV1SpecEncryptionConfig = {
312
- autoCreate?: boolean;
313
- kmsKeyArn?: string;
314
- };
315
- export type TenantManifestV1SpecCustomLogGroup = {
316
- enabled?: boolean;
317
- retention?: number;
318
- kmsKeyArn?: string;
319
- autoCreateKmsKey?: boolean;
320
- };
321
- export type TenantManifestV1SpecSecurityGroupRule = {
322
- name: string;
323
- "type": string;
324
- description: string;
325
- protocol: string;
326
- fromPort: number;
327
- toPort: number;
328
- sourceCidr?: string;
329
- sourceIsNodeGroup?: boolean;
330
- sourcePrefixListId?: string;
331
- sourceIsCluster?: boolean;
332
- sourceIsSelf?: boolean;
333
- destinationCidr?: string;
334
- };
335
- export type TenantManifestV1SpecSecurityGroup = {
336
- autoCreate?: boolean;
337
- ids?: string[];
338
- additionalRules?: TenantManifestV1SpecSecurityGroupRule[];
339
- };
340
- export type TenantManifestV1SpecControlPlane = {
341
- addons: TenantManifestV1SpecAddonReference[];
342
- instanceTypes?: string[];
343
- kubernetes: TenantManifestV1SpecKubernetes;
344
- nodeGroup?: TenantManifestV1SpecNodeGroup;
345
- stackspotCloudPlatform?: TenantManifestV1SpecStackspotCloudPlatform;
346
- crossplaneNamespace: string;
347
- eksHelm?: TenantManifestV1SpecHelmResource;
348
- seleneHelm?: TenantManifestV1SpecHelmResource;
349
- seleneApps?: TenantManifestV1SpecSeleneApps;
350
- iamProvider?: "AWS" | "ITAU";
351
- postBootstrapUserData?: string;
352
- bootstrapClusterCreatorAdminPermissions?: boolean;
353
- enabledClusterLogTypes?: string[];
354
- argoCd?: TenantManifestV1SpecArgoCd;
355
- controlPlaneCustomAnnotations?: {
356
- [key: string]: string;
357
- };
358
- karpenter?: TenantManifestV1SpecKarpenter;
359
- authenticationMode?: "API" | "API_AND_CONFIG_MAP" | "CONFIG_MAP";
360
- supportType?: string;
361
- externalSecrets?: TenantManifestV1SpecExternalSecrets;
362
- fargateConfiguration?: TenantManifestV1SpecFargateConfiguration;
363
- crossplane?: TenantManifestV1SpecCrossplane;
364
- defaultEksAddons?: TenantManifestV1SpecDefaultEksAddons;
365
- additionalEksAddons?: TenantManifestV1SpecEksAddon[];
366
- encryptionConfig?: TenantManifestV1SpecEncryptionConfig;
367
- customLogGroup?: TenantManifestV1SpecCustomLogGroup;
368
- clusterSecurityGroup?: TenantManifestV1SpecSecurityGroup;
369
- nodeSecurityGroup?: TenantManifestV1SpecSecurityGroup;
370
- };
371
- export type TenantManifestV1SpecItauConfig = {
372
- iamsrProviderRoleArn: string;
373
- iamsrApiToken?: string;
374
- iamsrCerts?: string;
375
- };
376
- export type TenantManifestV1Spec = {
377
- context: string;
378
- additionalSuffix?: string;
379
- organizationId: string;
380
- cloudAccountConfiguration: TenantManifestV1SpecCloudAccountConfiguration;
381
- controlPlane: TenantManifestV1SpecControlPlane;
382
- itau?: TenantManifestV1SpecItauConfig;
383
- };
384
- export type TenantManifestV1StatusControlPlaneCondition = {
385
- id?: string;
386
- "type": string;
387
- status: string;
388
- reason: string;
389
- message: string;
390
- lastTransitionTime: string;
391
- };
392
- export type TenantManifestV1StatusControlPlane = {
393
- id: string;
394
- name: string;
395
- active?: boolean;
396
- status: string;
397
- kubeVersion: string;
398
- conditions: TenantManifestV1StatusControlPlaneCondition[];
399
- };
400
- export type TenantManifestV1Runtime = {
401
- id: string;
402
- name: string;
403
- status: string;
404
- };
405
- export type TenantManifestV1Status = {
406
- created: boolean;
407
- ready: boolean;
408
- organizationName?: string;
409
- controlPlanes?: TenantManifestV1StatusControlPlane[];
410
- runtimes?: TenantManifestV1Runtime[];
411
- };
412
- export type TenantManifestV1 = {
413
- metadata: MetadataV1;
414
- spec: TenantManifestV1Spec;
415
- status?: TenantManifestV1Status;
416
- };
417
- export type RuntimeManifestV1Alpha1SpecCloudAccountConfigurationFromRef = {
418
- id: string;
419
- };
420
- export type RuntimeManifestV1Alpha1SpecCloudAccountConfigurationIamRoles = {
421
- clusterRole?: string;
422
- nodeRole?: string;
423
- clusterNodeGroup?: string;
424
- clusterAdminRoles: string[];
425
- karpenter?: string;
426
- crossAccountRoleArn?: string;
427
- };
428
- export type RuntimeManifestV1Alpha1SpecCloudAccountConfiguration = {
429
- fromRef?: RuntimeManifestV1Alpha1SpecCloudAccountConfigurationFromRef;
430
- cloudProvider: string;
431
- accountId: string;
432
- region: string;
433
- vpcId: string;
434
- subnetIds: string[];
435
- customAmi?: string;
436
- iamRoles: RuntimeManifestV1Alpha1SpecCloudAccountConfigurationIamRoles;
437
- };
438
- export type RuntimeManifestV1Alpha1SpecControlPlaneAddonReference = {
439
- /** Name of the registered addon */
440
- name: string;
441
- /** Version of the registered addon */
442
- version: string;
443
- /** Context for this addon */
444
- context: string;
445
- "namespace": string;
446
- values?: {
447
- [key: string]: object;
448
- };
449
- };
450
- export type RuntimeManifestV1Alpha1SpecKubernetesNetworkConfig = {
451
- ipFamily?: string;
452
- serviceIpv4Cidr?: string;
453
- };
454
- export type RuntimeManifestV1Alpha1SpecKubernetes = {
455
- publicAccess: boolean;
456
- privateAccess: boolean;
457
- version: string;
458
- publicCidrsAllowed: string[];
459
- privateCidrsAllowed?: string[];
460
- extraCidrsInbound?: string[];
461
- networkConfig?: RuntimeManifestV1Alpha1SpecKubernetesNetworkConfig;
462
- };
463
- export type RuntimeManifestV1Alpha1SpecNodeGroup = {
464
- volumeSize?: number;
465
- amiType?: string;
466
- capacityType?: string;
467
- desiredSize?: number;
468
- maxSize?: number;
469
- minSize?: number;
470
- };
471
- export type RuntimeManifestV1Alpha1SpecStackspotCloudPlatform = {
472
- createIamRoles: boolean;
473
- };
474
- export type RuntimeManifestV1Alpha1SpecHelmResource = {
475
- chartName: string;
476
- version: string;
477
- repoUrl: string;
478
- };
479
- export type RuntimeManifestV1Alpha1SpecKarpenterNodeClass = {
480
- name?: string;
481
- amiType?: string;
482
- amiVersion?: string;
483
- amiId?: string;
484
- detailedMonitoring?: boolean;
485
- volumeSize?: number;
486
- metadataOptions?: {
487
- [key: string]: object;
488
- };
489
- subnetIds?: string[];
490
- userData?: string;
491
- };
492
- export type RuntimeManifestV1Alpha1SpecKarpenterNodePoolLimits = {
493
- cpu: string;
494
- memory: string;
495
- };
496
- export type RuntimeManifestV1Alpha1SpecKarpenterNodePoolInstanceFamilies = {
497
- amd?: string[];
498
- arm?: string[];
499
- };
500
- export type RuntimeManifestV1Alpha1SpecKarpenterNodePool = {
501
- /** Name of the NodePool */
502
- name?: string;
503
- /** Resource limits for the NodePool */
504
- limits?: RuntimeManifestV1Alpha1SpecKarpenterNodePoolLimits;
505
- /** The amount of time a node can live on the cluster before being deleted by Karpenter */
506
- expireAfter?: string;
507
- /** Instance sizes to use with this NodePool */
508
- instanceSizes?: string[];
509
- /** Instance families to use with this NodePool */
510
- instanceFamilies?: RuntimeManifestV1Alpha1SpecKarpenterNodePoolInstanceFamilies;
511
- /** Instance architecture to use with this NodePool (valid values: amd, arm) */
512
- architecture?: string;
513
- /** Availability zones to use with this NodePool */
514
- zones?: string[];
515
- /** Instance capacity type to use with this NodePool (valid values: spot, on-demand, reserved) */
516
- capacityType?: string;
517
- /** Node Class resource to associate this NodePool with */
518
- nodeClassName?: string;
519
- /** Configuration for Karpenter to disrupt nodes through your NodePool */
520
- disruption?: {
521
- [key: string]: object;
522
- };
523
- /** Taints to add to provisioned nodes */
524
- taints?: {
525
- [key: string]: object;
526
- }[];
527
- };
528
- export type RuntimeManifestV1Alpha1SpecKarpenter = {
529
- chart?: RuntimeManifestV1Alpha1SpecHelmResource;
530
- customAnnotations?: {
531
- [key: string]: string;
532
- };
533
- replicas?: number;
534
- podAnnotations?: {
535
- [key: string]: string;
536
- };
537
- defaultNodeClass?: RuntimeManifestV1Alpha1SpecKarpenterNodeClass;
538
- additionalNodeClasses?: RuntimeManifestV1Alpha1SpecKarpenterNodeClass[];
539
- defaultNodePool?: RuntimeManifestV1Alpha1SpecKarpenterNodePool;
540
- additionalNodePools?: RuntimeManifestV1Alpha1SpecKarpenterNodePool[];
541
- };
542
- export type RuntimeManifestV1Alpha1SpecFargateConfiguration = {
543
- /** Set the Fargate Profile IAM role. If empty, it will be autocreated */
544
- roleArn?: string;
545
- /** Define selectors use with the Fargate Profile (defaults to Karpenter and coreDNS) */
546
- selector?: {
547
- [key: string]: object;
548
- }[];
549
- };
550
- export type RuntimeManifestV1Alpha1SpecDefaultEksAddonsVersions = {
551
- coreDns?: string;
552
- podIdentity?: string;
553
- vpcCni?: string;
554
- kubeProxy?: string;
555
- };
556
- export type RuntimeManifestV1Alpha1SpecDefaultEksAddonsConfigurationValues = {
557
- coreDns?: string;
558
- podIdentity?: string;
559
- vpcCni?: string;
560
- kubeProxy?: string;
561
- };
562
- export type RuntimeManifestV1Alpha1SpecDefaultEksAddons = {
563
- versions?: RuntimeManifestV1Alpha1SpecDefaultEksAddonsVersions;
564
- configurationValues?: RuntimeManifestV1Alpha1SpecDefaultEksAddonsConfigurationValues;
565
- };
566
- export type RuntimeManifestV1Alpha1SpecEksAddon = {
567
- name: string;
568
- version: string;
569
- configurationValues?: string;
570
- };
571
- export type RuntimeManifestV1Alpha1SpecEncryptionConfig = {
572
- autoCreate?: boolean;
573
- kmsKeyArn?: string;
574
- };
575
- export type RuntimeManifestV1Alpha1SpecCustomLogGroup = {
576
- enabled?: boolean;
577
- retention?: number;
578
- kmsKeyArn?: string;
579
- autoCreateKmsKey?: boolean;
580
- };
581
- export type RuntimeManifestV1Alpha1SpecSecurityGroupRule = {
582
- name: string;
583
- "type": string;
584
- description: string;
585
- protocol: string;
586
- fromPort: number;
587
- toPort: number;
588
- sourceCidr?: string;
589
- sourceIsNodeGroup?: boolean;
590
- sourcePrefixListId?: string;
591
- sourceIsCluster?: boolean;
592
- sourceIsSelf?: boolean;
593
- destinationCidr?: string;
594
- };
595
- export type RuntimeManifestV1Alpha1SpecSecurityGroup = {
596
- autoCreate?: boolean;
597
- ids?: string[];
598
- additionalRules?: RuntimeManifestV1Alpha1SpecSecurityGroupRule[];
599
- };
600
- export type RuntimeManifestV1Alpha1SpecControlPlane = {
601
- addons?: RuntimeManifestV1Alpha1SpecControlPlaneAddonReference[];
602
- instanceTypes?: string[];
603
- kubernetes: RuntimeManifestV1Alpha1SpecKubernetes;
604
- nodeGroup?: RuntimeManifestV1Alpha1SpecNodeGroup;
605
- stackspotCloudPlatform?: RuntimeManifestV1Alpha1SpecStackspotCloudPlatform;
606
- eksHelm?: RuntimeManifestV1Alpha1SpecHelmResource;
607
- iamProvider?: "AWS" | "ITAU";
608
- authenticationMode?: "API" | "API_AND_CONFIG_MAP" | "CONFIG_MAP";
609
- postBootstrapUserData?: string;
610
- bootstrapClusterCreatorAdminPermissions?: boolean;
611
- enabledClusterLogTypes?: string[];
612
- argoConfigs?: {
613
- [key: string]: object;
614
- };
615
- karpenter?: RuntimeManifestV1Alpha1SpecKarpenter;
616
- fargateConfiguration?: RuntimeManifestV1Alpha1SpecFargateConfiguration;
617
- defaultEksAddons?: RuntimeManifestV1Alpha1SpecDefaultEksAddons;
618
- additionalEksAddons?: RuntimeManifestV1Alpha1SpecEksAddon[];
619
- encryptionConfig?: RuntimeManifestV1Alpha1SpecEncryptionConfig;
620
- customLogGroup?: RuntimeManifestV1Alpha1SpecCustomLogGroup;
621
- clusterSecurityGroup?: RuntimeManifestV1Alpha1SpecSecurityGroup;
622
- nodeSecurityGroup?: RuntimeManifestV1Alpha1SpecSecurityGroup;
623
- };
624
- export type RuntimeManifestV1Alpha1SpecItauConfig = {
625
- iamsrProviderRoleArn: string;
626
- iamsrApiToken?: string;
627
- iamsrCerts?: string;
628
- };
629
- export type RuntimeManifestV1Alpha1Spec = {
630
- context: string;
631
- additionalSuffix?: string;
632
- tenantId: string;
633
- cloudAccountConfiguration: RuntimeManifestV1Alpha1SpecCloudAccountConfiguration;
634
- controlPlane: RuntimeManifestV1Alpha1SpecControlPlane;
635
- itau?: RuntimeManifestV1Alpha1SpecItauConfig;
636
- };
637
- export type RuntimeManifestV1Alpha1StatusControlPlaneCondition = {
638
- id?: string;
639
- "type": string;
640
- status: string;
641
- reason: string;
642
- message: string;
643
- lastTransitionTime: string;
644
- };
645
- export type RuntimeManifestV1Alpha1StatusControlPlane = {
646
- id: string;
647
- name: string;
648
- active?: boolean;
649
- status: string;
650
- kubeVersion: string;
651
- conditions: RuntimeManifestV1Alpha1StatusControlPlaneCondition[];
652
- };
653
- export type ManifestStatus = object;
654
- export type ManifestMetadata = {
655
- propagableLabels?: {
656
- [key: string]: string;
657
- };
658
- name: string;
659
- id?: string;
660
- version: string;
661
- labels?: {
662
- [key: string]: string;
663
- };
664
- };
665
- export type ManifestSpec = object;
666
- export type ApplicationDeploymentManifestBase = {
667
- status?: ManifestStatus;
668
- metadata: ManifestMetadata;
669
- spec: ManifestSpec;
670
- apiVersion: string;
671
- };
672
- export type ApplicationDeploymentManifestV1Spec = {
673
- runtimeId?: string;
674
- destinationNamespace?: string;
675
- applicationId: string;
676
- environment?: string;
677
- workspaceId?: string;
678
- deployTemplate?: string;
679
- deployTemplateValues: {
680
- [key: string]: object;
681
- };
682
- };
683
- export type ApplicationDeploymentManifestV1Status = {
684
- revisionNumber?: number;
685
- runtimeId?: string;
686
- };
687
- export type ApplicationDeploymentManifestV1 = {
688
- apiVersion: "ApplicationDeploymentManifestV1";
689
- } & ApplicationDeploymentManifestBase & {
690
- metadata: MetadataV1;
691
- spec: ApplicationDeploymentManifestV1Spec;
692
- status?: ApplicationDeploymentManifestV1Status;
693
- };
694
- export type Metadata = {
695
- id?: string;
696
- name: string;
697
- appVersion: string;
698
- labels: {
699
- [key: string]: string;
700
- };
701
- tags: {
702
- [key: string]: string;
703
- };
704
- };
705
- export type Spec = {
706
- runtimeId: string;
707
- applicationId?: string;
708
- blueprint: string;
709
- blueprintValues: {
710
- [key: string]: object;
711
- };
712
- };
713
- export type ApplicationDeploymentManifestV1Alpha1 = {
714
- apiVersion: "ApplicationDeploymentManifestV1Alpha1";
715
- } & ApplicationDeploymentManifestBase & {
716
- metadata: Metadata;
717
- spec: Spec;
718
- };
719
- export type RuntimeManifestV1Alpha1Status = {
720
- created: boolean;
721
- ready: boolean;
722
- organizationName?: string;
723
- organizationId?: string;
724
- tenantName?: string;
725
- controlPlanes?: RuntimeManifestV1Alpha1StatusControlPlane[];
726
- applicationDeployments?: (ApplicationDeploymentManifestV1 | ApplicationDeploymentManifestV1Alpha1)[];
727
- };
728
- export type RuntimeManifestV1 = {
729
- metadata: MetadataV1;
730
- spec: RuntimeManifestV1Alpha1Spec;
731
- status?: RuntimeManifestV1Alpha1Status;
732
- };
733
- export type OrganizationManifestV1Spec = {
734
- stackspotAccountId: string;
735
- };
736
- export type OrganizationManifestV1StatusControlPlane = {
737
- id: string;
738
- name: string;
739
- active: boolean;
740
- status: string;
741
- kubeVersion: string;
742
- };
743
- export type OrganizationManifestV1Status = {
744
- created: boolean;
745
- ready: boolean;
746
- controlPlanes?: OrganizationManifestV1StatusControlPlane[];
747
- };
748
- export type OrganizationManifestV1 = {
749
- metadata: MetadataV1;
750
- spec: OrganizationManifestV1Spec;
751
- status?: OrganizationManifestV1Status;
752
- };
753
- export type AssociateRuntimeWithWorkspaceEnvironmentRequest = {
754
- runtimeIds: string[];
755
- workspaceId: string;
756
- workspaceName: string;
757
- environmentId: string;
758
- environmentName: string;
759
- applicationId?: string;
760
- applicationName?: string;
761
- };
762
- export type AssociateRuntimeWithWorkspaceEnvironmentResponse = {
763
- runtimeId: string;
764
- workspaceId: string;
765
- workspaceName: string;
766
- environmentId: string;
767
- environmentName: string;
768
- applicationId?: string;
769
- applicationName?: string;
770
- };
771
- export type DeployTemplateManifestV1SpecHelm = {
772
- chartName: string;
773
- repositoryUrl: string;
774
- version: string;
775
- };
776
- export type DeployTemplateManifestV1Spec = {
777
- helm: DeployTemplateManifestV1SpecHelm;
778
- valuesSchema?: object;
779
- organizationId: string;
780
- };
781
- export type DeployTemplateManifestV1 = {
782
- metadata: MetadataV1;
783
- spec: DeployTemplateManifestV1Spec;
784
- };
785
- export type AddonManifestV1Alpha1SpecSpecHelm = {
786
- chartName: string;
787
- repositoryUrl: string;
788
- version: string;
789
- };
790
- export type AddonManifestV1Alpha1Spec = {
791
- helm: AddonManifestV1Alpha1SpecSpecHelm;
792
- valuesSchema?: object;
793
- organizationId: string;
794
- };
795
- export type AddonManifestV1 = {
796
- metadata: MetadataV1;
797
- spec: AddonManifestV1Alpha1Spec;
798
- };
799
- export type RuntimeSummary = {
800
- runtimeName: string;
801
- runtimeId: string;
802
- environmentId: string;
803
- tenantName: string;
804
- tenantId: string;
805
- organizationName: string;
806
- organizationId: string;
807
- addons: string[];
808
- };
809
- export type Association = {
810
- workspaceId: string;
811
- environmentId: string;
812
- applicationId?: string;
813
- runtimes: RuntimeSummary[];
814
- };
815
- export type ListRuntimeWorkspaceEnvironmentAssociationsResponse = {
816
- associations: Association[];
817
- };
818
- export type RolloutManifestV1Metadata = {
819
- id?: string;
820
- name: string;
821
- version: string;
822
- labels?: {
823
- [key: string]: string;
824
- };
825
- propagableLabels?: {
826
- [key: string]: string;
827
- };
828
- revision: string;
829
- "namespace": string;
830
- creationTimestamp?: string;
831
- };
832
- export type RolloutManifestV1Spec = {
833
- resourceId: string;
834
- replicas?: number;
835
- strategy?: {
836
- [key: string]: object;
837
- };
838
- template?: {
839
- [key: string]: object;
840
- };
841
- "type": string;
842
- };
843
- export type RolloutManifestV1Status = {
844
- availableReplicas?: number;
845
- blueGreen?: {
846
- [key: string]: object;
847
- };
848
- canary?: {
849
- [key: string]: object;
850
- };
851
- conditions?: {
852
- [key: string]: object;
853
- }[];
854
- currentPodHash?: string;
855
- currentStepHash?: string;
856
- currentStepIndex?: number;
857
- observedGeneration?: string;
858
- phase?: string;
859
- readyReplicas?: number;
860
- replicas?: number;
861
- restartedAt?: string;
862
- selector?: string;
863
- stableRS?: string;
864
- updatedReplicas?: number;
865
- controllerPause?: boolean;
866
- message?: string;
867
- pauseConditions?: {
868
- [key: string]: object;
869
- }[];
870
- abort?: boolean;
871
- abortedAt?: string;
872
- promoteFull?: boolean;
873
- hpareplicas?: number;
874
- };
875
- export type RolloutManifestV1StatusWrite = {
876
- HPAReplicas?: number;
877
- availableReplicas?: number;
878
- blueGreen?: {
879
- [key: string]: object;
880
- };
881
- canary?: {
882
- [key: string]: object;
883
- };
884
- conditions?: {
885
- [key: string]: object;
886
- }[];
887
- currentPodHash?: string;
888
- currentStepHash?: string;
889
- currentStepIndex?: number;
890
- observedGeneration?: string;
891
- phase?: string;
892
- readyReplicas?: number;
893
- replicas?: number;
894
- restartedAt?: string;
895
- selector?: string;
896
- stableRS?: string;
897
- updatedReplicas?: number;
898
- controllerPause?: boolean;
899
- message?: string;
900
- pauseConditions?: {
901
- [key: string]: object;
902
- }[];
903
- abort?: boolean;
904
- abortedAt?: string;
905
- promoteFull?: boolean;
906
- hpareplicas?: number;
907
- };
908
- export type RolloutManifestV1 = {
909
- metadata: RolloutManifestV1Metadata;
910
- spec: RolloutManifestV1Spec;
911
- status?: RolloutManifestV1Status;
912
- };
913
- export type RolloutManifestV1Write = {
914
- metadata: RolloutManifestV1Metadata;
915
- spec: RolloutManifestV1Spec;
916
- status?: RolloutManifestV1StatusWrite;
917
- };
918
- export type LogManifestV1Spec = {
919
- resourceId: string;
920
- controlPlaneId?: string;
921
- name?: string;
922
- numberOfLines: number;
923
- "type": string;
924
- };
925
- export type LogManifestV1Status = {
926
- fetchLogsTimestamp: string;
927
- logs: string[];
928
- };
929
- export type LogManifestV1 = {
930
- metadata: MetadataV1;
931
- spec: LogManifestV1Spec;
932
- status?: LogManifestV1Status;
933
- };
934
- export type HealthManifestV1Spec = {
935
- "type": string;
936
- resourceId: string;
937
- controlPlaneId?: string;
938
- };
939
- export type HealthManifestV1StatusPodResource = {
940
- cpu: string;
941
- memory: string;
942
- };
943
- export type HealthManifestV1StatusPod = {
944
- name: string;
945
- uptime: string;
946
- restarts: string;
947
- status: string;
948
- containers: string;
949
- healthStatus: string;
950
- image: string;
951
- limits: HealthManifestV1StatusPodResource;
952
- requests: HealthManifestV1StatusPodResource;
953
- };
954
- export type HealthManifestV1Status = {
955
- fetchHealthTimestamp: string;
956
- healthStatus: string;
957
- pods: HealthManifestV1StatusPod[];
958
- };
959
- export type HealthManifestV1 = {
960
- metadata: MetadataV1;
961
- spec: HealthManifestV1Spec;
962
- status?: HealthManifestV1Status;
963
- };
964
- /**
965
- * Retrieves the organization's icon image.
966
- */
967
- export function getOrganizationIcon({ organizationId }: {
968
- organizationId: string;
969
- }, opts?: Oazapfts.RequestOpts) {
970
- return oazapfts.ok(oazapfts.fetchJson<{
971
- status: 200;
972
- data: Blob;
973
- } | {
974
- status: 400;
975
- data: ErrorBody;
976
- } | {
977
- status: 401;
978
- data: ErrorBody;
979
- } | {
980
- status: 404;
981
- data: ErrorBody;
982
- } | {
983
- status: 422;
984
- data: {
985
- code?: string;
986
- details?: string;
987
- status?: string;
988
- validationDetails?: ValidationDetail[];
989
- };
990
- } | {
991
- status: 500;
992
- data: {
993
- code?: string;
994
- details?: string;
995
- status?: string;
996
- validationDetails?: ValidationDetail[];
997
- };
998
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/icon`, {
999
- ...opts
1000
- }));
1001
- }
1002
- /**
1003
- * Uploads or update the organization's icon.
1004
- */
1005
- export function createOrUpdateOrganizationIcon({ organizationId, body }: {
1006
- organizationId: string;
1007
- body?: {
1008
- icon: Blob;
1009
- };
1010
- }, opts?: Oazapfts.RequestOpts) {
1011
- return oazapfts.ok(oazapfts.fetchJson<{
1012
- status: 200;
1013
- data: object;
1014
- } | {
1015
- status: 400;
1016
- data: ErrorBody;
1017
- } | {
1018
- status: 401;
1019
- data: ErrorBody;
1020
- } | {
1021
- status: 404;
1022
- data: ErrorBody;
1023
- } | {
1024
- status: 422;
1025
- data: {
1026
- code?: string;
1027
- details?: string;
1028
- status?: string;
1029
- validationDetails?: ValidationDetail[];
1030
- };
1031
- } | {
1032
- status: 500;
1033
- data: {
1034
- code?: string;
1035
- details?: string;
1036
- status?: string;
1037
- validationDetails?: ValidationDetail[];
1038
- };
1039
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/icon`, oazapfts.multipart({
1040
- ...opts,
1041
- method: "PUT",
1042
- body
1043
- })));
1044
- }
1045
- /**
1046
- * Uploads the organization's icon.
1047
- */
1048
- export function createOrganizationIcon({ organizationId, body }: {
1049
- organizationId: string;
1050
- body?: {
1051
- icon: Blob;
1052
- };
1053
- }, opts?: Oazapfts.RequestOpts) {
1054
- return oazapfts.ok(oazapfts.fetchJson<{
1055
- status: 200;
1056
- data: object;
1057
- } | {
1058
- status: 201;
1059
- data: object;
1060
- } | {
1061
- status: 400;
1062
- data: ErrorBody;
1063
- } | {
1064
- status: 401;
1065
- data: ErrorBody;
1066
- } | {
1067
- status: 404;
1068
- data: ErrorBody;
1069
- } | {
1070
- status: 422;
1071
- data: {
1072
- code?: string;
1073
- details?: string;
1074
- status?: string;
1075
- validationDetails?: ValidationDetail[];
1076
- };
1077
- } | {
1078
- status: 500;
1079
- data: {
1080
- code?: string;
1081
- details?: string;
1082
- status?: string;
1083
- validationDetails?: ValidationDetail[];
1084
- };
1085
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/icon`, oazapfts.multipart({
1086
- ...opts,
1087
- method: "POST",
1088
- body
1089
- })));
1090
- }
1091
- /**
1092
- * List deployment contexts
1093
- */
1094
- export function list({ environment, runtimeId, deployTemplateId, workspaceId, isDefault }: {
1095
- environment?: string;
1096
- runtimeId?: string;
1097
- deployTemplateId?: string;
1098
- workspaceId?: string;
1099
- isDefault?: boolean;
1100
- }, opts?: Oazapfts.RequestOpts) {
1101
- return oazapfts.ok(oazapfts.fetchJson<{
1102
- status: 200;
1103
- data: DeploymentContextManifestV1[];
1104
- } | {
1105
- status: 400;
1106
- data: ErrorBody;
1107
- } | {
1108
- status: 401;
1109
- data: ErrorBody;
1110
- } | {
1111
- status: 404;
1112
- data: ErrorBody;
1113
- } | {
1114
- status: 422;
1115
- data: {
1116
- code?: string;
1117
- details?: string;
1118
- status?: string;
1119
- validationDetails?: ValidationDetail[];
1120
- };
1121
- } | {
1122
- status: 500;
1123
- data: {
1124
- code?: string;
1125
- details?: string;
1126
- status?: string;
1127
- validationDetails?: ValidationDetail[];
1128
- };
1129
- }>(`/v1/deployment-contexts${QS.query(QS.explode({
1130
- environment,
1131
- runtimeId,
1132
- deployTemplateId,
1133
- workspaceId,
1134
- isDefault
1135
- }))}`, {
1136
- ...opts
1137
- }));
1138
- }
1139
- /**
1140
- * Updates a deployment context
1141
- */
1142
- export function update({ deploymentContextManifestV1 }: {
1143
- deploymentContextManifestV1: DeploymentContextManifestV1;
1144
- }, opts?: Oazapfts.RequestOpts) {
1145
- return oazapfts.ok(oazapfts.fetchJson<{
1146
- status: 200;
1147
- } | {
1148
- status: 400;
1149
- data: ErrorBody;
1150
- } | {
1151
- status: 401;
1152
- data: ErrorBody;
1153
- } | {
1154
- status: 404;
1155
- data: ErrorBody;
1156
- } | {
1157
- status: 422;
1158
- data: {
1159
- code?: string;
1160
- details?: string;
1161
- status?: string;
1162
- validationDetails?: ValidationDetail[];
1163
- };
1164
- } | {
1165
- status: 500;
1166
- data: {
1167
- code?: string;
1168
- details?: string;
1169
- status?: string;
1170
- validationDetails?: ValidationDetail[];
1171
- };
1172
- }>("/v1/deployment-contexts", oazapfts.json({
1173
- ...opts,
1174
- method: "PUT",
1175
- body: deploymentContextManifestV1
1176
- })));
1177
- }
1178
- /**
1179
- * Create a Deployment Context
1180
- */
1181
- export function create({ deploymentContextManifestV1 }: {
1182
- deploymentContextManifestV1: DeploymentContextManifestV1;
1183
- }, opts?: Oazapfts.RequestOpts) {
1184
- return oazapfts.ok(oazapfts.fetchJson<{
1185
- status: 201;
1186
- data: DeploymentContextManifestV1;
1187
- } | {
1188
- status: 400;
1189
- data: ErrorBody;
1190
- } | {
1191
- status: 401;
1192
- data: ErrorBody;
1193
- } | {
1194
- status: 404;
1195
- data: ErrorBody;
1196
- } | {
1197
- status: 422;
1198
- data: {
1199
- code?: string;
1200
- details?: string;
1201
- status?: string;
1202
- validationDetails?: ValidationDetail[];
1203
- };
1204
- } | {
1205
- status: 500;
1206
- data: {
1207
- code?: string;
1208
- details?: string;
1209
- status?: string;
1210
- validationDetails?: ValidationDetail[];
1211
- };
1212
- }>("/v1/deployment-contexts", oazapfts.json({
1213
- ...opts,
1214
- method: "POST",
1215
- body: deploymentContextManifestV1
1216
- })));
1217
- }
1218
- /**
1219
- * List all tenants in the stackspot account
1220
- */
1221
- export function listTenants({ xAccountId, page, perPage }: {
1222
- xAccountId?: string;
1223
- page?: number;
1224
- perPage?: number;
1225
- }, opts?: Oazapfts.RequestOpts) {
1226
- return oazapfts.ok(oazapfts.fetchJson<{
1227
- status: 200;
1228
- data: TenantManifestV1[];
1229
- } | {
1230
- status: 400;
1231
- data: ErrorBody;
1232
- } | {
1233
- status: 401;
1234
- data: ErrorBody;
1235
- } | {
1236
- status: 403;
1237
- data: ErrorBody;
1238
- } | {
1239
- status: 404;
1240
- data: ErrorBody;
1241
- } | {
1242
- status: 422;
1243
- data: {
1244
- code?: string;
1245
- details?: string;
1246
- status?: string;
1247
- validationDetails?: ValidationDetail[];
1248
- };
1249
- } | {
1250
- status: 500;
1251
- data: {
1252
- code?: string;
1253
- details?: string;
1254
- status?: string;
1255
- validationDetails?: ValidationDetail[];
1256
- };
1257
- }>(`/v1/tenants${QS.query(QS.explode({
1258
- page,
1259
- perPage
1260
- }))}`, {
1261
- ...opts,
1262
- headers: oazapfts.mergeHeaders(opts?.headers, {
1263
- "X-Account-Id": xAccountId
1264
- })
1265
- }));
1266
- }
1267
- /**
1268
- * Creates a new tenant.
1269
- */
1270
- export function createTenant({ tenantManifestV1 }: {
1271
- tenantManifestV1: TenantManifestV1;
1272
- }, opts?: Oazapfts.RequestOpts) {
1273
- return oazapfts.ok(oazapfts.fetchJson<{
1274
- status: 201;
1275
- } | {
1276
- status: 400;
1277
- data: ErrorBody;
1278
- } | {
1279
- status: 401;
1280
- data: ErrorBody;
1281
- } | {
1282
- status: 403;
1283
- data: ErrorBody;
1284
- } | {
1285
- status: 404;
1286
- data: ErrorBody;
1287
- } | {
1288
- status: 422;
1289
- data: {
1290
- code?: string;
1291
- details?: string;
1292
- status?: string;
1293
- validationDetails?: ValidationDetail[];
1294
- };
1295
- } | {
1296
- status: 500;
1297
- data: {
1298
- code?: string;
1299
- details?: string;
1300
- status?: string;
1301
- validationDetails?: ValidationDetail[];
1302
- };
1303
- }>("/v1/tenants", oazapfts.json({
1304
- ...opts,
1305
- method: "POST",
1306
- body: tenantManifestV1
1307
- })));
1308
- }
1309
- /**
1310
- * Returns paginated runtimes.
1311
- */
1312
- export function listRuntimes({ xAccountId, page, perPage }: {
1313
- xAccountId?: string;
1314
- page?: number;
1315
- perPage?: number;
1316
- }, opts?: Oazapfts.RequestOpts) {
1317
- return oazapfts.ok(oazapfts.fetchJson<{
1318
- status: 200;
1319
- data: RuntimeManifestV1[];
1320
- } | {
1321
- status: 400;
1322
- data: ErrorBody;
1323
- } | {
1324
- status: 401;
1325
- data: ErrorBody;
1326
- } | {
1327
- status: 403;
1328
- data: ErrorBody;
1329
- } | {
1330
- status: 404;
1331
- data: ErrorBody;
1332
- } | {
1333
- status: 422;
1334
- data: {
1335
- code?: string;
1336
- details?: string;
1337
- status?: string;
1338
- validationDetails?: ValidationDetail[];
1339
- };
1340
- } | {
1341
- status: 500;
1342
- data: {
1343
- code?: string;
1344
- details?: string;
1345
- status?: string;
1346
- validationDetails?: ValidationDetail[];
1347
- };
1348
- }>(`/v1/runtimes${QS.query(QS.explode({
1349
- page,
1350
- perPage
1351
- }))}`, {
1352
- ...opts,
1353
- headers: oazapfts.mergeHeaders(opts?.headers, {
1354
- "X-Account-Id": xAccountId
1355
- })
1356
- }));
1357
- }
1358
- /**
1359
- * Creates a new runtime.
1360
- */
1361
- export function createRuntime({ runtimeManifestV1 }: {
1362
- runtimeManifestV1: RuntimeManifestV1;
1363
- }, opts?: Oazapfts.RequestOpts) {
1364
- return oazapfts.ok(oazapfts.fetchJson<{
1365
- status: 201;
1366
- } | {
1367
- status: 400;
1368
- data: ErrorBody;
1369
- } | {
1370
- status: 401;
1371
- data: ErrorBody;
1372
- } | {
1373
- status: 403;
1374
- data: ErrorBody;
1375
- } | {
1376
- status: 404;
1377
- data: ErrorBody;
1378
- } | {
1379
- status: 422;
1380
- data: {
1381
- code?: string;
1382
- details?: string;
1383
- status?: string;
1384
- validationDetails?: ValidationDetail[];
1385
- };
1386
- } | {
1387
- status: 500;
1388
- data: {
1389
- code?: string;
1390
- details?: string;
1391
- status?: string;
1392
- validationDetails?: ValidationDetail[];
1393
- };
1394
- }>("/v1/runtimes", oazapfts.json({
1395
- ...opts,
1396
- method: "POST",
1397
- body: runtimeManifestV1
1398
- })));
1399
- }
1400
- /**
1401
- * Retrieves the Stackspot account organization
1402
- */
1403
- export function getOrganizations({ xAccountId, page, perPage }: {
1404
- xAccountId?: string;
1405
- page?: number;
1406
- perPage?: number;
1407
- }, opts?: Oazapfts.RequestOpts) {
1408
- return oazapfts.ok(oazapfts.fetchJson<{
1409
- status: 200;
1410
- data: OrganizationManifestV1[];
1411
- } | {
1412
- status: 400;
1413
- data: ErrorBody;
1414
- } | {
1415
- status: 401;
1416
- data: ErrorBody;
1417
- } | {
1418
- status: 403;
1419
- data: ErrorBody;
1420
- } | {
1421
- status: 404;
1422
- data: ErrorBody;
1423
- } | {
1424
- status: 422;
1425
- data: {
1426
- code?: string;
1427
- details?: string;
1428
- status?: string;
1429
- validationDetails?: ValidationDetail[];
1430
- };
1431
- } | {
1432
- status: 500;
1433
- data: {
1434
- code?: string;
1435
- details?: string;
1436
- status?: string;
1437
- validationDetails?: ValidationDetail[];
1438
- };
1439
- }>(`/v1/organizations${QS.query(QS.explode({
1440
- page,
1441
- perPage
1442
- }))}`, {
1443
- ...opts,
1444
- headers: oazapfts.mergeHeaders(opts?.headers, {
1445
- "X-Account-Id": xAccountId
1446
- })
1447
- }));
1448
- }
1449
- /**
1450
- * Creates a new organization.
1451
- */
1452
- export function createOrganization({ organizationManifestV1 }: {
1453
- organizationManifestV1: OrganizationManifestV1;
1454
- }, opts?: Oazapfts.RequestOpts) {
1455
- return oazapfts.ok(oazapfts.fetchJson<{
1456
- status: 201;
1457
- data: OrganizationManifestV1;
1458
- } | {
1459
- status: 400;
1460
- data: ErrorBody;
1461
- } | {
1462
- status: 401;
1463
- data: ErrorBody;
1464
- } | {
1465
- status: 403;
1466
- data: ErrorBody;
1467
- } | {
1468
- status: 404;
1469
- data: ErrorBody;
1470
- } | {
1471
- status: 422;
1472
- data: {
1473
- code?: string;
1474
- details?: string;
1475
- status?: string;
1476
- validationDetails?: ValidationDetail[];
1477
- };
1478
- } | {
1479
- status: 500;
1480
- data: {
1481
- code?: string;
1482
- details?: string;
1483
- status?: string;
1484
- validationDetails?: ValidationDetail[];
1485
- };
1486
- }>("/v1/organizations", oazapfts.json({
1487
- ...opts,
1488
- method: "POST",
1489
- body: organizationManifestV1
1490
- })));
1491
- }
1492
- /**
1493
- * Returns paginated tenants.
1494
- */
1495
- export function listTenants1({ organizationId, page, perPage }: {
1496
- organizationId: string;
1497
- page?: number;
1498
- perPage?: number;
1499
- }, opts?: Oazapfts.RequestOpts) {
1500
- return oazapfts.ok(oazapfts.fetchJson<{
1501
- status: 200;
1502
- data: TenantManifestV1[];
1503
- } | {
1504
- status: 400;
1505
- data: ErrorBody;
1506
- } | {
1507
- status: 401;
1508
- data: ErrorBody;
1509
- } | {
1510
- status: 403;
1511
- data: ErrorBody;
1512
- } | {
1513
- status: 404;
1514
- data: ErrorBody;
1515
- } | {
1516
- status: 422;
1517
- data: {
1518
- code?: string;
1519
- details?: string;
1520
- status?: string;
1521
- validationDetails?: ValidationDetail[];
1522
- };
1523
- } | {
1524
- status: 500;
1525
- data: {
1526
- code?: string;
1527
- details?: string;
1528
- status?: string;
1529
- validationDetails?: ValidationDetail[];
1530
- };
1531
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants${QS.query(QS.explode({
1532
- page,
1533
- perPage
1534
- }))}`, {
1535
- ...opts
1536
- }));
1537
- }
1538
- /**
1539
- * Creates a new tenant.
1540
- */
1541
- export function createTenant1({ organizationId, tenantManifestV1 }: {
1542
- organizationId: string;
1543
- tenantManifestV1: TenantManifestV1;
1544
- }, opts?: Oazapfts.RequestOpts) {
1545
- return oazapfts.ok(oazapfts.fetchJson<{
1546
- status: 201;
1547
- data: TenantManifestV1;
1548
- } | {
1549
- status: 400;
1550
- data: ErrorBody;
1551
- } | {
1552
- status: 401;
1553
- data: ErrorBody;
1554
- } | {
1555
- status: 403;
1556
- data: ErrorBody;
1557
- } | {
1558
- status: 404;
1559
- data: ErrorBody;
1560
- } | {
1561
- status: 422;
1562
- data: {
1563
- code?: string;
1564
- details?: string;
1565
- status?: string;
1566
- validationDetails?: ValidationDetail[];
1567
- };
1568
- } | {
1569
- status: 500;
1570
- data: {
1571
- code?: string;
1572
- details?: string;
1573
- status?: string;
1574
- validationDetails?: ValidationDetail[];
1575
- };
1576
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants`, oazapfts.json({
1577
- ...opts,
1578
- method: "POST",
1579
- body: tenantManifestV1
1580
- })));
1581
- }
1582
- /**
1583
- * Returns paginated runtimes.
1584
- */
1585
- export function listRuntimes1({ organizationId, tenantId, page, perPage }: {
1586
- organizationId: string;
1587
- tenantId: string;
1588
- page?: number;
1589
- perPage?: number;
1590
- }, opts?: Oazapfts.RequestOpts) {
1591
- return oazapfts.ok(oazapfts.fetchJson<{
1592
- status: 200;
1593
- data: RuntimeManifestV1[];
1594
- } | {
1595
- status: 400;
1596
- data: ErrorBody;
1597
- } | {
1598
- status: 401;
1599
- data: ErrorBody;
1600
- } | {
1601
- status: 403;
1602
- data: ErrorBody;
1603
- } | {
1604
- status: 404;
1605
- data: ErrorBody;
1606
- } | {
1607
- status: 422;
1608
- data: {
1609
- code?: string;
1610
- details?: string;
1611
- status?: string;
1612
- validationDetails?: ValidationDetail[];
1613
- };
1614
- } | {
1615
- status: 500;
1616
- data: {
1617
- code?: string;
1618
- details?: string;
1619
- status?: string;
1620
- validationDetails?: ValidationDetail[];
1621
- };
1622
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes${QS.query(QS.explode({
1623
- page,
1624
- perPage
1625
- }))}`, {
1626
- ...opts
1627
- }));
1628
- }
1629
- /**
1630
- * Creates a new runtime.
1631
- */
1632
- export function createRuntime1({ organizationId, tenantId, runtimeManifestV1 }: {
1633
- organizationId: string;
1634
- tenantId: string;
1635
- runtimeManifestV1: RuntimeManifestV1;
1636
- }, opts?: Oazapfts.RequestOpts) {
1637
- return oazapfts.ok(oazapfts.fetchJson<{
1638
- status: 201;
1639
- data: RuntimeManifestV1;
1640
- } | {
1641
- status: 400;
1642
- data: ErrorBody;
1643
- } | {
1644
- status: 401;
1645
- data: ErrorBody;
1646
- } | {
1647
- status: 403;
1648
- data: ErrorBody;
1649
- } | {
1650
- status: 404;
1651
- data: ErrorBody;
1652
- } | {
1653
- status: 422;
1654
- data: {
1655
- code?: string;
1656
- details?: string;
1657
- status?: string;
1658
- validationDetails?: ValidationDetail[];
1659
- };
1660
- } | {
1661
- status: 500;
1662
- data: {
1663
- code?: string;
1664
- details?: string;
1665
- status?: string;
1666
- validationDetails?: ValidationDetail[];
1667
- };
1668
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes`, oazapfts.json({
1669
- ...opts,
1670
- method: "POST",
1671
- body: runtimeManifestV1
1672
- })));
1673
- }
1674
- /**
1675
- *
1676
- * Requires one of the following permissions:
1677
- * - cloud_platform:*:view
1678
- * - cloud_platform:*:support
1679
- *
1680
- */
1681
- export function listApplicationDeployments({ organizationId, tenantId, runtimeId }: {
1682
- organizationId: string;
1683
- tenantId: string;
1684
- runtimeId: string;
1685
- }, opts?: Oazapfts.RequestOpts) {
1686
- return oazapfts.ok(oazapfts.fetchJson<{
1687
- status: 200;
1688
- data: ApplicationDeploymentManifestV1[];
1689
- } | {
1690
- status: 400;
1691
- data: ErrorBody;
1692
- } | {
1693
- status: 401;
1694
- data: ErrorBody;
1695
- } | {
1696
- status: 404;
1697
- data: ErrorBody;
1698
- } | {
1699
- status: 422;
1700
- data: {
1701
- code?: string;
1702
- details?: string;
1703
- status?: string;
1704
- validationDetails?: ValidationDetail[];
1705
- };
1706
- } | {
1707
- status: 500;
1708
- data: {
1709
- code?: string;
1710
- details?: string;
1711
- status?: string;
1712
- validationDetails?: ValidationDetail[];
1713
- };
1714
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments`, {
1715
- ...opts
1716
- }));
1717
- }
1718
- /**
1719
- * Apply manifesto resource yaml.
1720
- */
1721
- export function deploy({ organizationId, tenantId, runtimeId, applicationDeploymentManifestV1 }: {
1722
- organizationId: string;
1723
- tenantId: string;
1724
- runtimeId: string;
1725
- applicationDeploymentManifestV1: ApplicationDeploymentManifestV1;
1726
- }, opts?: Oazapfts.RequestOpts) {
1727
- return oazapfts.ok(oazapfts.fetchJson<{
1728
- status: 202;
1729
- data: ApplicationDeploymentManifestV1;
1730
- } | {
1731
- status: 400;
1732
- data: ErrorBody;
1733
- } | {
1734
- status: 401;
1735
- data: ErrorBody;
1736
- } | {
1737
- status: 403;
1738
- data: ErrorBody;
1739
- } | {
1740
- status: 404;
1741
- data: ErrorBody;
1742
- } | {
1743
- status: 422;
1744
- data: {
1745
- code?: string;
1746
- details?: string;
1747
- status?: string;
1748
- validationDetails?: ValidationDetail[];
1749
- };
1750
- } | {
1751
- status: 500;
1752
- data: {
1753
- code?: string;
1754
- details?: string;
1755
- status?: string;
1756
- validationDetails?: ValidationDetail[];
1757
- };
1758
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments`, oazapfts.json({
1759
- ...opts,
1760
- method: "POST",
1761
- body: applicationDeploymentManifestV1
1762
- })));
1763
- }
1764
- /**
1765
- * Execute a rollout action on an application deployment.
1766
- */
1767
- export function postApplicationDeploymentRolloutAction({ organizationId, tenantId, runtimeId, deploymentId, action }: {
1768
- organizationId: string;
1769
- tenantId: string;
1770
- runtimeId: string;
1771
- deploymentId: string;
1772
- action: string;
1773
- }, opts?: Oazapfts.RequestOpts) {
1774
- return oazapfts.ok(oazapfts.fetchJson<{
1775
- status: 200;
1776
- data: string;
1777
- } | {
1778
- status: 400;
1779
- data: ErrorBody;
1780
- } | {
1781
- status: 401;
1782
- data: ErrorBody;
1783
- } | {
1784
- status: 404;
1785
- data: ErrorBody;
1786
- } | {
1787
- status: 422;
1788
- data: {
1789
- code?: string;
1790
- details?: string;
1791
- status?: string;
1792
- validationDetails?: ValidationDetail[];
1793
- };
1794
- } | {
1795
- status: 500;
1796
- data: {
1797
- code?: string;
1798
- details?: string;
1799
- status?: string;
1800
- validationDetails?: ValidationDetail[];
1801
- };
1802
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}/rollout/action/${encodeURIComponent(action)}`, {
1803
- ...opts,
1804
- method: "POST"
1805
- }));
1806
- }
1807
- /**
1808
- * Associate a runtime with a workspace's environment
1809
- */
1810
- export function associateWithWorkspaceEnvironment({ xAccountId, organizationId, tenantId, associateRuntimeWithWorkspaceEnvironmentRequest }: {
1811
- xAccountId?: string;
1812
- organizationId: string;
1813
- tenantId: string;
1814
- associateRuntimeWithWorkspaceEnvironmentRequest: AssociateRuntimeWithWorkspaceEnvironmentRequest;
1815
- }, opts?: Oazapfts.RequestOpts) {
1816
- return oazapfts.ok(oazapfts.fetchJson<{
1817
- status: 200;
1818
- data: AssociateRuntimeWithWorkspaceEnvironmentResponse[];
1819
- } | {
1820
- status: 400;
1821
- data: ErrorBody;
1822
- } | {
1823
- status: 401;
1824
- data: ErrorBody;
1825
- } | {
1826
- status: 403;
1827
- data: ErrorBody;
1828
- } | {
1829
- status: 404;
1830
- data: ErrorBody;
1831
- } | {
1832
- status: 409;
1833
- data: ErrorBody;
1834
- } | {
1835
- status: 422;
1836
- data: {
1837
- code?: string;
1838
- details?: string;
1839
- status?: string;
1840
- validationDetails?: ValidationDetail[];
1841
- };
1842
- } | {
1843
- status: 500;
1844
- data: {
1845
- code?: string;
1846
- details?: string;
1847
- status?: string;
1848
- validationDetails?: ValidationDetail[];
1849
- };
1850
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/associations`, oazapfts.json({
1851
- ...opts,
1852
- method: "POST",
1853
- body: associateRuntimeWithWorkspaceEnvironmentRequest,
1854
- headers: oazapfts.mergeHeaders(opts?.headers, {
1855
- "X-Account-Id": xAccountId
1856
- })
1857
- })));
1858
- }
1859
- /**
1860
- * List DeployTemplate's
1861
- */
1862
- export function listDeployTemplate({ organizationId }: {
1863
- organizationId: string;
1864
- }, opts?: Oazapfts.RequestOpts) {
1865
- return oazapfts.ok(oazapfts.fetchJson<{
1866
- status: 200;
1867
- data: DeployTemplateManifestV1[];
1868
- } | {
1869
- status: 400;
1870
- data: ErrorBody;
1871
- } | {
1872
- status: 401;
1873
- data: ErrorBody;
1874
- } | {
1875
- status: 404;
1876
- data: ErrorBody;
1877
- } | {
1878
- status: 422;
1879
- data: {
1880
- code?: string;
1881
- details?: string;
1882
- status?: string;
1883
- validationDetails?: ValidationDetail[];
1884
- };
1885
- } | {
1886
- status: 500;
1887
- data: {
1888
- code?: string;
1889
- details?: string;
1890
- status?: string;
1891
- validationDetails?: ValidationDetail[];
1892
- };
1893
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/deploy-templates`, {
1894
- ...opts
1895
- }));
1896
- }
1897
- /**
1898
- * Create DeployTemplate
1899
- */
1900
- export function createDeployTemplate({ organizationId, deployTemplateManifestV1 }: {
1901
- organizationId: string;
1902
- deployTemplateManifestV1: DeployTemplateManifestV1;
1903
- }, opts?: Oazapfts.RequestOpts) {
1904
- return oazapfts.ok(oazapfts.fetchJson<{
1905
- status: 202;
1906
- data: DeployTemplateManifestV1;
1907
- } | {
1908
- status: 400;
1909
- data: ErrorBody;
1910
- } | {
1911
- status: 401;
1912
- data: ErrorBody;
1913
- } | {
1914
- status: 404;
1915
- data: ErrorBody;
1916
- } | {
1917
- status: 422;
1918
- data: {
1919
- code?: string;
1920
- details?: string;
1921
- status?: string;
1922
- validationDetails?: ValidationDetail[];
1923
- };
1924
- } | {
1925
- status: 500;
1926
- data: {
1927
- code?: string;
1928
- details?: string;
1929
- status?: string;
1930
- validationDetails?: ValidationDetail[];
1931
- };
1932
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/deploy-templates`, oazapfts.json({
1933
- ...opts,
1934
- method: "POST",
1935
- body: deployTemplateManifestV1
1936
- })));
1937
- }
1938
- /**
1939
- * List Addons
1940
- */
1941
- export function listAddon({ organizationId }: {
1942
- organizationId: string;
1943
- }, opts?: Oazapfts.RequestOpts) {
1944
- return oazapfts.ok(oazapfts.fetchJson<{
1945
- status: 200;
1946
- data: AddonManifestV1[];
1947
- } | {
1948
- status: 400;
1949
- data: ErrorBody;
1950
- } | {
1951
- status: 401;
1952
- data: ErrorBody;
1953
- } | {
1954
- status: 404;
1955
- data: ErrorBody;
1956
- } | {
1957
- status: 422;
1958
- data: {
1959
- code?: string;
1960
- details?: string;
1961
- status?: string;
1962
- validationDetails?: ValidationDetail[];
1963
- };
1964
- } | {
1965
- status: 500;
1966
- data: {
1967
- code?: string;
1968
- details?: string;
1969
- status?: string;
1970
- validationDetails?: ValidationDetail[];
1971
- };
1972
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/addons`, {
1973
- ...opts
1974
- }));
1975
- }
1976
- /**
1977
- * Create Addon
1978
- */
1979
- export function createAddon({ organizationId, addonManifestV1 }: {
1980
- organizationId: string;
1981
- addonManifestV1: AddonManifestV1;
1982
- }, opts?: Oazapfts.RequestOpts) {
1983
- return oazapfts.ok(oazapfts.fetchJson<{
1984
- status: 202;
1985
- data: AddonManifestV1;
1986
- } | {
1987
- status: 400;
1988
- data: ErrorBody;
1989
- } | {
1990
- status: 401;
1991
- data: ErrorBody;
1992
- } | {
1993
- status: 404;
1994
- data: ErrorBody;
1995
- } | {
1996
- status: 422;
1997
- data: {
1998
- code?: string;
1999
- details?: string;
2000
- status?: string;
2001
- validationDetails?: ValidationDetail[];
2002
- };
2003
- } | {
2004
- status: 500;
2005
- data: {
2006
- code?: string;
2007
- details?: string;
2008
- status?: string;
2009
- validationDetails?: ValidationDetail[];
2010
- };
2011
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/addons`, oazapfts.json({
2012
- ...opts,
2013
- method: "POST",
2014
- body: addonManifestV1
2015
- })));
2016
- }
2017
- /**
2018
- * List application deployments
2019
- */
2020
- export function listApplicationDeployments1(opts?: Oazapfts.RequestOpts) {
2021
- return oazapfts.ok(oazapfts.fetchJson<{
2022
- status: 200;
2023
- data: ApplicationDeploymentManifestV1[];
2024
- } | {
2025
- status: 400;
2026
- data: ErrorBody;
2027
- } | {
2028
- status: 401;
2029
- data: ErrorBody;
2030
- } | {
2031
- status: 404;
2032
- data: ErrorBody;
2033
- } | {
2034
- status: 422;
2035
- data: {
2036
- code?: string;
2037
- details?: string;
2038
- status?: string;
2039
- validationDetails?: ValidationDetail[];
2040
- };
2041
- } | {
2042
- status: 500;
2043
- data: {
2044
- code?: string;
2045
- details?: string;
2046
- status?: string;
2047
- validationDetails?: ValidationDetail[];
2048
- };
2049
- }>("/v1/applications/deployments", {
2050
- ...opts
2051
- }));
2052
- }
2053
- /**
2054
- * Apply manifesto resource yaml.
2055
- */
2056
- export function deploy1({ applicationDeploymentManifestV1 }: {
2057
- applicationDeploymentManifestV1: ApplicationDeploymentManifestV1;
2058
- }, opts?: Oazapfts.RequestOpts) {
2059
- return oazapfts.ok(oazapfts.fetchJson<{
2060
- status: 202;
2061
- data: ApplicationDeploymentManifestV1;
2062
- } | {
2063
- status: 400;
2064
- data: ErrorBody;
2065
- } | {
2066
- status: 401;
2067
- data: ErrorBody;
2068
- } | {
2069
- status: 403;
2070
- data: ErrorBody;
2071
- } | {
2072
- status: 404;
2073
- data: ErrorBody;
2074
- } | {
2075
- status: 422;
2076
- data: {
2077
- code?: string;
2078
- details?: string;
2079
- status?: string;
2080
- validationDetails?: ValidationDetail[];
2081
- };
2082
- } | {
2083
- status: 500;
2084
- data: {
2085
- code?: string;
2086
- details?: string;
2087
- status?: string;
2088
- validationDetails?: ValidationDetail[];
2089
- };
2090
- }>("/v1/applications/deployments", oazapfts.json({
2091
- ...opts,
2092
- method: "POST",
2093
- body: applicationDeploymentManifestV1
2094
- })));
2095
- }
2096
- /**
2097
- * Retrieves the tenant details.
2098
- */
2099
- export function getTenant({ id }: {
2100
- id: string;
2101
- }, opts?: Oazapfts.RequestOpts) {
2102
- return oazapfts.ok(oazapfts.fetchJson<{
2103
- status: 200;
2104
- data: TenantManifestV1;
2105
- } | {
2106
- status: 400;
2107
- data: ErrorBody;
2108
- } | {
2109
- status: 401;
2110
- data: ErrorBody;
2111
- } | {
2112
- status: 403;
2113
- data: ErrorBody;
2114
- } | {
2115
- status: 404;
2116
- data: ErrorBody;
2117
- } | {
2118
- status: 422;
2119
- data: {
2120
- code?: string;
2121
- details?: string;
2122
- status?: string;
2123
- validationDetails?: ValidationDetail[];
2124
- };
2125
- } | {
2126
- status: 500;
2127
- data: {
2128
- code?: string;
2129
- details?: string;
2130
- status?: string;
2131
- validationDetails?: ValidationDetail[];
2132
- };
2133
- }>(`/v1/tenants/${encodeURIComponent(id)}`, {
2134
- ...opts
2135
- }));
2136
- }
2137
- /**
2138
- * Retrieves the runtime details.
2139
- */
2140
- export function getRuntime({ id }: {
2141
- id: string;
2142
- }, opts?: Oazapfts.RequestOpts) {
2143
- return oazapfts.ok(oazapfts.fetchJson<{
2144
- status: 200;
2145
- data: RuntimeManifestV1;
2146
- } | {
2147
- status: 400;
2148
- data: ErrorBody;
2149
- } | {
2150
- status: 401;
2151
- data: ErrorBody;
2152
- } | {
2153
- status: 403;
2154
- data: ErrorBody;
2155
- } | {
2156
- status: 404;
2157
- data: ErrorBody;
2158
- } | {
2159
- status: 422;
2160
- data: {
2161
- code?: string;
2162
- details?: string;
2163
- status?: string;
2164
- validationDetails?: ValidationDetail[];
2165
- };
2166
- } | {
2167
- status: 500;
2168
- data: {
2169
- code?: string;
2170
- details?: string;
2171
- status?: string;
2172
- validationDetails?: ValidationDetail[];
2173
- };
2174
- }>(`/v1/runtimes/${encodeURIComponent(id)}`, {
2175
- ...opts
2176
- }));
2177
- }
2178
- export function listAssociations({ xAccountId, workspaceId, envId, applicationId }: {
2179
- xAccountId?: string;
2180
- workspaceId: string;
2181
- envId?: string;
2182
- applicationId?: string;
2183
- }, opts?: Oazapfts.RequestOpts) {
2184
- return oazapfts.ok(oazapfts.fetchJson<{
2185
- status: 200;
2186
- data: ListRuntimeWorkspaceEnvironmentAssociationsResponse;
2187
- } | {
2188
- status: 400;
2189
- data: ErrorBody;
2190
- } | {
2191
- status: 401;
2192
- data: ErrorBody;
2193
- } | {
2194
- status: 404;
2195
- data: ErrorBody;
2196
- } | {
2197
- status: 422;
2198
- data: {
2199
- code?: string;
2200
- details?: string;
2201
- status?: string;
2202
- validationDetails?: ValidationDetail[];
2203
- };
2204
- } | {
2205
- status: 500;
2206
- data: {
2207
- code?: string;
2208
- details?: string;
2209
- status?: string;
2210
- validationDetails?: ValidationDetail[];
2211
- };
2212
- }>(`/v1/runtimes/associations/workspaces${QS.query(QS.explode({
2213
- workspaceId,
2214
- envId,
2215
- applicationId
2216
- }))}`, {
2217
- ...opts,
2218
- headers: oazapfts.mergeHeaders(opts?.headers, {
2219
- "X-Account-Id": xAccountId
2220
- })
2221
- }));
2222
- }
2223
- /**
2224
- * Retrieves associate a runtime with a workspace's environment
2225
- */
2226
- export function getAssociationWorkspaceEnvironmentByRuntimeId({ xAccountId, organizationId, tenantId, runtimeId }: {
2227
- xAccountId?: string;
2228
- organizationId: string;
2229
- tenantId: string;
2230
- runtimeId: string;
2231
- }, opts?: Oazapfts.RequestOpts) {
2232
- return oazapfts.ok(oazapfts.fetchJson<{
2233
- status: 200;
2234
- data: AssociateRuntimeWithWorkspaceEnvironmentResponse[];
2235
- } | {
2236
- status: 400;
2237
- data: ErrorBody;
2238
- } | {
2239
- status: 401;
2240
- data: ErrorBody;
2241
- } | {
2242
- status: 404;
2243
- data: ErrorBody;
2244
- } | {
2245
- status: 422;
2246
- data: {
2247
- code?: string;
2248
- details?: string;
2249
- status?: string;
2250
- validationDetails?: ValidationDetail[];
2251
- };
2252
- } | {
2253
- status: 500;
2254
- data: {
2255
- code?: string;
2256
- details?: string;
2257
- status?: string;
2258
- validationDetails?: ValidationDetail[];
2259
- };
2260
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/associations`, {
2261
- ...opts,
2262
- headers: oazapfts.mergeHeaders(opts?.headers, {
2263
- "X-Account-Id": xAccountId
2264
- })
2265
- }));
2266
- }
2267
- /**
2268
- *
2269
- * Requires one of the following permissions:
2270
- * - cloud_platform:*:view
2271
- * - cloud_platform:*:support
2272
- *
2273
- */
2274
- export function findApplicationDeploymentById({ organizationId, tenantId, runtimeId, deploymentId }: {
2275
- organizationId: string;
2276
- tenantId: string;
2277
- runtimeId: string;
2278
- deploymentId: string;
2279
- }, opts?: Oazapfts.RequestOpts) {
2280
- return oazapfts.ok(oazapfts.fetchJson<{
2281
- status: 200;
2282
- data: ApplicationDeploymentManifestV1;
2283
- } | {
2284
- status: 400;
2285
- data: ErrorBody;
2286
- } | {
2287
- status: 401;
2288
- data: ErrorBody;
2289
- } | {
2290
- status: 404;
2291
- data: ErrorBody;
2292
- } | {
2293
- status: 422;
2294
- data: {
2295
- code?: string;
2296
- details?: string;
2297
- status?: string;
2298
- validationDetails?: ValidationDetail[];
2299
- };
2300
- } | {
2301
- status: 500;
2302
- data: {
2303
- code?: string;
2304
- details?: string;
2305
- status?: string;
2306
- validationDetails?: ValidationDetail[];
2307
- };
2308
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}`, {
2309
- ...opts
2310
- }));
2311
- }
2312
- /**
2313
- * Delete application deployment
2314
- */
2315
- export function deleteApplicationDeployment({ organizationId, tenantId, runtimeId, deploymentId }: {
2316
- organizationId: string;
2317
- tenantId: string;
2318
- runtimeId: string;
2319
- deploymentId: string;
2320
- }, opts?: Oazapfts.RequestOpts) {
2321
- return oazapfts.ok(oazapfts.fetchJson<{
2322
- status: 200;
2323
- data: string;
2324
- } | {
2325
- status: 400;
2326
- data: ErrorBody;
2327
- } | {
2328
- status: 401;
2329
- data: ErrorBody;
2330
- } | {
2331
- status: 404;
2332
- data: ErrorBody;
2333
- } | {
2334
- status: 422;
2335
- data: {
2336
- code?: string;
2337
- details?: string;
2338
- status?: string;
2339
- validationDetails?: ValidationDetail[];
2340
- };
2341
- } | {
2342
- status: 500;
2343
- data: {
2344
- code?: string;
2345
- details?: string;
2346
- status?: string;
2347
- validationDetails?: ValidationDetail[];
2348
- };
2349
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}`, {
2350
- ...opts,
2351
- method: "DELETE"
2352
- }));
2353
- }
2354
- /**
2355
- * Get application deployment rollout.
2356
- */
2357
- export function listApplicationDeploymentRollouts({ organizationId, tenantId, runtimeId, deploymentId }: {
2358
- organizationId: string;
2359
- tenantId: string;
2360
- runtimeId: string;
2361
- deploymentId: string;
2362
- }, opts?: Oazapfts.RequestOpts) {
2363
- return oazapfts.ok(oazapfts.fetchJson<{
2364
- status: 200;
2365
- data: RolloutManifestV1[];
2366
- } | {
2367
- status: 400;
2368
- data: ErrorBody;
2369
- } | {
2370
- status: 401;
2371
- data: ErrorBody;
2372
- } | {
2373
- status: 404;
2374
- data: ErrorBody;
2375
- } | {
2376
- status: 422;
2377
- data: {
2378
- code?: string;
2379
- details?: string;
2380
- status?: string;
2381
- validationDetails?: ValidationDetail[];
2382
- };
2383
- } | {
2384
- status: 500;
2385
- data: {
2386
- code?: string;
2387
- details?: string;
2388
- status?: string;
2389
- validationDetails?: ValidationDetail[];
2390
- };
2391
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}/rollouts`, {
2392
- ...opts
2393
- }));
2394
- }
2395
- /**
2396
- * Get application deployment logs.
2397
- */
2398
- export function getApplicationDeploymentLogs({ organizationId, tenantId, runtimeId, deploymentId, numberOfLines }: {
2399
- organizationId: string;
2400
- tenantId: string;
2401
- runtimeId: string;
2402
- deploymentId: string;
2403
- numberOfLines?: number;
2404
- }, opts?: Oazapfts.RequestOpts) {
2405
- return oazapfts.ok(oazapfts.fetchJson<{
2406
- status: 200;
2407
- data: LogManifestV1;
2408
- } | {
2409
- status: 400;
2410
- data: ErrorBody;
2411
- } | {
2412
- status: 401;
2413
- data: ErrorBody;
2414
- } | {
2415
- status: 404;
2416
- data: ErrorBody;
2417
- } | {
2418
- status: 422;
2419
- data: {
2420
- code?: string;
2421
- details?: string;
2422
- status?: string;
2423
- validationDetails?: ValidationDetail[];
2424
- };
2425
- } | {
2426
- status: 500;
2427
- data: {
2428
- code?: string;
2429
- details?: string;
2430
- status?: string;
2431
- validationDetails?: ValidationDetail[];
2432
- };
2433
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}/logs${QS.query(QS.explode({
2434
- numberOfLines
2435
- }))}`, {
2436
- ...opts
2437
- }));
2438
- }
2439
- /**
2440
- * Get application deployment health.
2441
- */
2442
- export function getApplicationDeploymentHealth({ organizationId, tenantId, runtimeId, deploymentId }: {
2443
- organizationId: string;
2444
- tenantId: string;
2445
- runtimeId: string;
2446
- deploymentId: string;
2447
- }, opts?: Oazapfts.RequestOpts) {
2448
- return oazapfts.ok(oazapfts.fetchJson<{
2449
- status: 200;
2450
- data: HealthManifestV1;
2451
- } | {
2452
- status: 400;
2453
- data: ErrorBody;
2454
- } | {
2455
- status: 401;
2456
- data: ErrorBody;
2457
- } | {
2458
- status: 404;
2459
- data: ErrorBody;
2460
- } | {
2461
- status: 422;
2462
- data: {
2463
- code?: string;
2464
- details?: string;
2465
- status?: string;
2466
- validationDetails?: ValidationDetail[];
2467
- };
2468
- } | {
2469
- status: 500;
2470
- data: {
2471
- code?: string;
2472
- details?: string;
2473
- status?: string;
2474
- validationDetails?: ValidationDetail[];
2475
- };
2476
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}/health`, {
2477
- ...opts
2478
- }));
2479
- }
2480
- /**
2481
- * Retrieves the runtime details.
2482
- */
2483
- export function getRuntime1({ organizationId, tenantId, id }: {
2484
- organizationId: string;
2485
- tenantId: string;
2486
- id: string;
2487
- }, opts?: Oazapfts.RequestOpts) {
2488
- return oazapfts.ok(oazapfts.fetchJson<{
2489
- status: 200;
2490
- data: RuntimeManifestV1;
2491
- } | {
2492
- status: 400;
2493
- data: ErrorBody;
2494
- } | {
2495
- status: 401;
2496
- data: ErrorBody;
2497
- } | {
2498
- status: 403;
2499
- data: ErrorBody;
2500
- } | {
2501
- status: 404;
2502
- data: ErrorBody;
2503
- } | {
2504
- status: 422;
2505
- data: {
2506
- code?: string;
2507
- details?: string;
2508
- status?: string;
2509
- validationDetails?: ValidationDetail[];
2510
- };
2511
- } | {
2512
- status: 500;
2513
- data: {
2514
- code?: string;
2515
- details?: string;
2516
- status?: string;
2517
- validationDetails?: ValidationDetail[];
2518
- };
2519
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(id)}`, {
2520
- ...opts
2521
- }));
2522
- }
2523
- /**
2524
- * Retrieves the tenant details.
2525
- */
2526
- export function getTenant1({ organizationId, id }: {
2527
- organizationId: string;
2528
- id: string;
2529
- }, opts?: Oazapfts.RequestOpts) {
2530
- return oazapfts.ok(oazapfts.fetchJson<{
2531
- status: 200;
2532
- data: TenantManifestV1;
2533
- } | {
2534
- status: 400;
2535
- data: ErrorBody;
2536
- } | {
2537
- status: 401;
2538
- data: ErrorBody;
2539
- } | {
2540
- status: 403;
2541
- data: ErrorBody;
2542
- } | {
2543
- status: 404;
2544
- data: ErrorBody;
2545
- } | {
2546
- status: 422;
2547
- data: {
2548
- code?: string;
2549
- details?: string;
2550
- status?: string;
2551
- validationDetails?: ValidationDetail[];
2552
- };
2553
- } | {
2554
- status: 500;
2555
- data: {
2556
- code?: string;
2557
- details?: string;
2558
- status?: string;
2559
- validationDetails?: ValidationDetail[];
2560
- };
2561
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(id)}`, {
2562
- ...opts
2563
- }));
2564
- }
2565
- /**
2566
- * Get DeployTemplate
2567
- */
2568
- export function getDeployTemplate({ organizationId, deployTemplateId }: {
2569
- organizationId: string;
2570
- deployTemplateId: string;
2571
- }, opts?: Oazapfts.RequestOpts) {
2572
- return oazapfts.ok(oazapfts.fetchJson<{
2573
- status: 200;
2574
- data: DeployTemplateManifestV1;
2575
- } | {
2576
- status: 400;
2577
- data: ErrorBody;
2578
- } | {
2579
- status: 401;
2580
- data: ErrorBody;
2581
- } | {
2582
- status: 404;
2583
- data: ErrorBody;
2584
- } | {
2585
- status: 422;
2586
- data: {
2587
- code?: string;
2588
- details?: string;
2589
- status?: string;
2590
- validationDetails?: ValidationDetail[];
2591
- };
2592
- } | {
2593
- status: 500;
2594
- data: {
2595
- code?: string;
2596
- details?: string;
2597
- status?: string;
2598
- validationDetails?: ValidationDetail[];
2599
- };
2600
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/deploy-templates/${encodeURIComponent(deployTemplateId)}`, {
2601
- ...opts
2602
- }));
2603
- }
2604
- /**
2605
- * Delete DeployTemplate
2606
- */
2607
- export function deleteDeployTemplate({ organizationId, deployTemplateId }: {
2608
- organizationId: string;
2609
- deployTemplateId: string;
2610
- }, opts?: Oazapfts.RequestOpts) {
2611
- return oazapfts.ok(oazapfts.fetchJson<{
2612
- status: 200;
2613
- data: DeployTemplateManifestV1;
2614
- } | {
2615
- status: 400;
2616
- data: ErrorBody;
2617
- } | {
2618
- status: 401;
2619
- data: ErrorBody;
2620
- } | {
2621
- status: 404;
2622
- data: ErrorBody;
2623
- } | {
2624
- status: 422;
2625
- data: {
2626
- code?: string;
2627
- details?: string;
2628
- status?: string;
2629
- validationDetails?: ValidationDetail[];
2630
- };
2631
- } | {
2632
- status: 500;
2633
- data: {
2634
- code?: string;
2635
- details?: string;
2636
- status?: string;
2637
- validationDetails?: ValidationDetail[];
2638
- };
2639
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/deploy-templates/${encodeURIComponent(deployTemplateId)}`, {
2640
- ...opts,
2641
- method: "DELETE"
2642
- }));
2643
- }
2644
- /**
2645
- * Get Addon
2646
- */
2647
- export function getAddon({ organizationId, addonId }: {
2648
- organizationId: string;
2649
- addonId: string;
2650
- }, opts?: Oazapfts.RequestOpts) {
2651
- return oazapfts.ok(oazapfts.fetchJson<{
2652
- status: 200;
2653
- data: AddonManifestV1;
2654
- } | {
2655
- status: 400;
2656
- data: ErrorBody;
2657
- } | {
2658
- status: 401;
2659
- data: ErrorBody;
2660
- } | {
2661
- status: 404;
2662
- data: ErrorBody;
2663
- } | {
2664
- status: 422;
2665
- data: {
2666
- code?: string;
2667
- details?: string;
2668
- status?: string;
2669
- validationDetails?: ValidationDetail[];
2670
- };
2671
- } | {
2672
- status: 500;
2673
- data: {
2674
- code?: string;
2675
- details?: string;
2676
- status?: string;
2677
- validationDetails?: ValidationDetail[];
2678
- };
2679
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/addons/${encodeURIComponent(addonId)}`, {
2680
- ...opts
2681
- }));
2682
- }
2683
- /**
2684
- * Retrieves the organization by ID
2685
- */
2686
- export function getOrganizationById({ organizationId }: {
2687
- organizationId: string;
2688
- }, opts?: Oazapfts.RequestOpts) {
2689
- return oazapfts.ok(oazapfts.fetchJson<{
2690
- status: 200;
2691
- data: OrganizationManifestV1;
2692
- } | {
2693
- status: 400;
2694
- data: ErrorBody;
2695
- } | {
2696
- status: 401;
2697
- data: ErrorBody;
2698
- } | {
2699
- status: 403;
2700
- data: ErrorBody;
2701
- } | {
2702
- status: 404;
2703
- data: ErrorBody;
2704
- } | {
2705
- status: 422;
2706
- data: {
2707
- code?: string;
2708
- details?: string;
2709
- status?: string;
2710
- validationDetails?: ValidationDetail[];
2711
- };
2712
- } | {
2713
- status: 500;
2714
- data: {
2715
- code?: string;
2716
- details?: string;
2717
- status?: string;
2718
- validationDetails?: ValidationDetail[];
2719
- };
2720
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}`, {
2721
- ...opts
2722
- }));
2723
- }
2724
- /**
2725
- * Downloads the bootstrap module for creating a new organization.
2726
- */
2727
- export function downloadBootstrapModule({ version }: {
2728
- version?: string;
2729
- }, opts?: Oazapfts.RequestOpts) {
2730
- return oazapfts.ok(oazapfts.fetchJson<{
2731
- status: 200;
2732
- data: Blob;
2733
- } | {
2734
- status: 400;
2735
- data: ErrorBody;
2736
- } | {
2737
- status: 401;
2738
- data: ErrorBody;
2739
- } | {
2740
- status: 403;
2741
- data: ErrorBody;
2742
- } | {
2743
- status: 404;
2744
- data: ErrorBody;
2745
- } | {
2746
- status: 422;
2747
- data: {
2748
- code?: string;
2749
- details?: string;
2750
- status?: string;
2751
- validationDetails?: ValidationDetail[];
2752
- };
2753
- } | {
2754
- status: 500;
2755
- data: {
2756
- code?: string;
2757
- details?: string;
2758
- status?: string;
2759
- validationDetails?: ValidationDetail[];
2760
- };
2761
- }>(`/v1/organizations/bootstrap${QS.query(QS.explode({
2762
- version
2763
- }))}`, {
2764
- ...opts
2765
- }));
2766
- }
2767
- export function getTenantExample(opts?: Oazapfts.RequestOpts) {
2768
- return oazapfts.ok(oazapfts.fetchJson<{
2769
- status: 200;
2770
- data: TenantManifestV1;
2771
- } | {
2772
- status: 400;
2773
- data: ErrorBody;
2774
- } | {
2775
- status: 401;
2776
- data: ErrorBody;
2777
- } | {
2778
- status: 404;
2779
- data: ErrorBody;
2780
- } | {
2781
- status: 422;
2782
- data: {
2783
- code?: string;
2784
- details?: string;
2785
- status?: string;
2786
- validationDetails?: ValidationDetail[];
2787
- };
2788
- } | {
2789
- status: 500;
2790
- data: {
2791
- code?: string;
2792
- details?: string;
2793
- status?: string;
2794
- validationDetails?: ValidationDetail[];
2795
- };
2796
- }>("/v1/examples/tenant", {
2797
- ...opts
2798
- }));
2799
- }
2800
- export function getRuntimeExample(opts?: Oazapfts.RequestOpts) {
2801
- return oazapfts.ok(oazapfts.fetchJson<{
2802
- status: 200;
2803
- data: RuntimeManifestV1;
2804
- } | {
2805
- status: 400;
2806
- data: ErrorBody;
2807
- } | {
2808
- status: 401;
2809
- data: ErrorBody;
2810
- } | {
2811
- status: 404;
2812
- data: ErrorBody;
2813
- } | {
2814
- status: 422;
2815
- data: {
2816
- code?: string;
2817
- details?: string;
2818
- status?: string;
2819
- validationDetails?: ValidationDetail[];
2820
- };
2821
- } | {
2822
- status: 500;
2823
- data: {
2824
- code?: string;
2825
- details?: string;
2826
- status?: string;
2827
- validationDetails?: ValidationDetail[];
2828
- };
2829
- }>("/v1/examples/runtime", {
2830
- ...opts
2831
- }));
2832
- }
2833
- export function getApplicationDeploymentExample(opts?: Oazapfts.RequestOpts) {
2834
- return oazapfts.ok(oazapfts.fetchJson<{
2835
- status: 200;
2836
- data: ApplicationDeploymentManifestV1;
2837
- } | {
2838
- status: 400;
2839
- data: ErrorBody;
2840
- } | {
2841
- status: 401;
2842
- data: ErrorBody;
2843
- } | {
2844
- status: 404;
2845
- data: ErrorBody;
2846
- } | {
2847
- status: 422;
2848
- data: {
2849
- code?: string;
2850
- details?: string;
2851
- status?: string;
2852
- validationDetails?: ValidationDetail[];
2853
- };
2854
- } | {
2855
- status: 500;
2856
- data: {
2857
- code?: string;
2858
- details?: string;
2859
- status?: string;
2860
- validationDetails?: ValidationDetail[];
2861
- };
2862
- }>("/v1/examples/applicationDeployment", {
2863
- ...opts
2864
- }));
2865
- }
2866
- /**
2867
- * Get deployment context by ID
2868
- */
2869
- export function getV1DeploymentContextsById({ id }: {
2870
- id: string;
2871
- }, opts?: Oazapfts.RequestOpts) {
2872
- return oazapfts.ok(oazapfts.fetchJson<{
2873
- status: 200;
2874
- data: DeploymentContextManifestV1;
2875
- } | {
2876
- status: 400;
2877
- data: ErrorBody;
2878
- } | {
2879
- status: 401;
2880
- data: ErrorBody;
2881
- } | {
2882
- status: 404;
2883
- data: ErrorBody;
2884
- } | {
2885
- status: 422;
2886
- data: {
2887
- code?: string;
2888
- details?: string;
2889
- status?: string;
2890
- validationDetails?: ValidationDetail[];
2891
- };
2892
- } | {
2893
- status: 500;
2894
- data: {
2895
- code?: string;
2896
- details?: string;
2897
- status?: string;
2898
- validationDetails?: ValidationDetail[];
2899
- };
2900
- }>(`/v1/deployment-contexts/${encodeURIComponent(id)}`, {
2901
- ...opts
2902
- }));
2903
- }
2904
- /**
2905
- * Delete deployment context by ID
2906
- */
2907
- export function deleteV1DeploymentContextsById({ id }: {
2908
- id: string;
2909
- }, opts?: Oazapfts.RequestOpts) {
2910
- return oazapfts.ok(oazapfts.fetchJson<{
2911
- status: 204;
2912
- } | {
2913
- status: 400;
2914
- data: ErrorBody;
2915
- } | {
2916
- status: 401;
2917
- data: ErrorBody;
2918
- } | {
2919
- status: 404;
2920
- data: ErrorBody;
2921
- } | {
2922
- status: 422;
2923
- data: {
2924
- code?: string;
2925
- details?: string;
2926
- status?: string;
2927
- validationDetails?: ValidationDetail[];
2928
- };
2929
- } | {
2930
- status: 500;
2931
- data: {
2932
- code?: string;
2933
- details?: string;
2934
- status?: string;
2935
- validationDetails?: ValidationDetail[];
2936
- };
2937
- }>(`/v1/deployment-contexts/${encodeURIComponent(id)}`, {
2938
- ...opts,
2939
- method: "DELETE"
2940
- }));
2941
- }
2942
- /**
2943
- * Get application deployment by ID
2944
- */
2945
- export function findApplicationDeploymentById1({ deploymentId }: {
2946
- deploymentId: string;
2947
- }, opts?: Oazapfts.RequestOpts) {
2948
- return oazapfts.ok(oazapfts.fetchJson<{
2949
- status: 200;
2950
- data: ApplicationDeploymentManifestV1;
2951
- } | {
2952
- status: 400;
2953
- data: ErrorBody;
2954
- } | {
2955
- status: 401;
2956
- data: ErrorBody;
2957
- } | {
2958
- status: 404;
2959
- data: ErrorBody;
2960
- } | {
2961
- status: 422;
2962
- data: {
2963
- code?: string;
2964
- details?: string;
2965
- status?: string;
2966
- validationDetails?: ValidationDetail[];
2967
- };
2968
- } | {
2969
- status: 500;
2970
- data: {
2971
- code?: string;
2972
- details?: string;
2973
- status?: string;
2974
- validationDetails?: ValidationDetail[];
2975
- };
2976
- }>(`/v1/applications/deployments/${encodeURIComponent(deploymentId)}`, {
2977
- ...opts
2978
- }));
2979
- }
2980
- /**
2981
- * Get application deployment logs.
2982
- */
2983
- export function getApplicationDeploymentLogs1({ deploymentId, numberOfLines }: {
2984
- deploymentId: string;
2985
- numberOfLines?: number;
2986
- }, opts?: Oazapfts.RequestOpts) {
2987
- return oazapfts.ok(oazapfts.fetchJson<{
2988
- status: 200;
2989
- data: LogManifestV1;
2990
- } | {
2991
- status: 400;
2992
- data: ErrorBody;
2993
- } | {
2994
- status: 401;
2995
- data: ErrorBody;
2996
- } | {
2997
- status: 404;
2998
- data: ErrorBody;
2999
- } | {
3000
- status: 422;
3001
- data: {
3002
- code?: string;
3003
- details?: string;
3004
- status?: string;
3005
- validationDetails?: ValidationDetail[];
3006
- };
3007
- } | {
3008
- status: 500;
3009
- data: {
3010
- code?: string;
3011
- details?: string;
3012
- status?: string;
3013
- validationDetails?: ValidationDetail[];
3014
- };
3015
- }>(`/v1/applications/deployments/${encodeURIComponent(deploymentId)}/logs${QS.query(QS.explode({
3016
- numberOfLines
3017
- }))}`, {
3018
- ...opts
3019
- }));
3020
- }
3021
- /**
3022
- * Get application deployment health.
3023
- */
3024
- export function getApplicationDeploymentHealth1({ deploymentId }: {
3025
- deploymentId: string;
3026
- }, opts?: Oazapfts.RequestOpts) {
3027
- return oazapfts.ok(oazapfts.fetchJson<{
3028
- status: 200;
3029
- data: HealthManifestV1;
3030
- } | {
3031
- status: 400;
3032
- data: ErrorBody;
3033
- } | {
3034
- status: 401;
3035
- data: ErrorBody;
3036
- } | {
3037
- status: 404;
3038
- data: ErrorBody;
3039
- } | {
3040
- status: 422;
3041
- data: {
3042
- code?: string;
3043
- details?: string;
3044
- status?: string;
3045
- validationDetails?: ValidationDetail[];
3046
- };
3047
- } | {
3048
- status: 500;
3049
- data: {
3050
- code?: string;
3051
- details?: string;
3052
- status?: string;
3053
- validationDetails?: ValidationDetail[];
3054
- };
3055
- }>(`/v1/applications/deployments/${encodeURIComponent(deploymentId)}/health`, {
3056
- ...opts
3057
- }));
3058
- }