@stack-spot/portal-network 0.235.3 → 0.236.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 +7 -0
- package/dist/api/cloudPlatform.d.ts +300 -14
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +214 -10
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/apis.json +7 -3
- package/dist/client/cloud-platform.d.ts +684 -12
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +888 -15
- package/dist/client/cloud-platform.js.map +1 -1
- package/package.json +2 -2
- package/scripts/generate-apis.ts +4 -3
- package/src/api/cloudPlatform.ts +511 -20
- package/src/api-docs/cloud-platform-docs-prd.json +12139 -0
- package/src/api-docs/cloud-platform-docs-stg.json +12139 -0
- package/src/apis.json +7 -3
- package/src/client/cloud-platform.ts +596 -14
package/src/api/cloudPlatform.ts
CHANGED
|
@@ -8,16 +8,21 @@ import * as Oazapfts from "@oazapfts/runtime";
|
|
|
8
8
|
import * as QS from "@oazapfts/runtime/query";
|
|
9
9
|
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
10
|
headers: {},
|
|
11
|
-
baseUrl: "https://
|
|
11
|
+
baseUrl: "https://api.platform.zup.corp",
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {
|
|
15
|
-
generatedServerUrl: "https://
|
|
15
|
+
generatedServerUrl: "https://api.platform.zup.corp"
|
|
16
16
|
};
|
|
17
17
|
export type Tag = {
|
|
18
18
|
key: string;
|
|
19
19
|
value?: string;
|
|
20
20
|
};
|
|
21
|
+
export type Target = {
|
|
22
|
+
folderIds: string[];
|
|
23
|
+
projectIds: string[];
|
|
24
|
+
};
|
|
25
|
+
export type JsonNode = any;
|
|
21
26
|
export type RoleMetadata = {
|
|
22
27
|
creationTimestamp?: string;
|
|
23
28
|
deletionTimestamp?: string;
|
|
@@ -312,6 +317,80 @@ export type ResourceMetadata = {
|
|
|
312
317
|
deletionTimestamp?: string;
|
|
313
318
|
uid?: string;
|
|
314
319
|
};
|
|
320
|
+
export type FoundationSpec = {
|
|
321
|
+
region: string;
|
|
322
|
+
masterAccountId: string;
|
|
323
|
+
auditAccountId: string;
|
|
324
|
+
logArchiveAccountId: string;
|
|
325
|
+
orgId: string;
|
|
326
|
+
portfolioId: string;
|
|
327
|
+
prefix: string;
|
|
328
|
+
tags: Tag[];
|
|
329
|
+
secAccountTags: Tag[];
|
|
330
|
+
};
|
|
331
|
+
export type ResourceCondition = {
|
|
332
|
+
state: "READY" | "PENDING" | "ERROR" | "UNKNOWN" | "DELETING";
|
|
333
|
+
lastUpdateTimestamp: string;
|
|
334
|
+
message?: string;
|
|
335
|
+
};
|
|
336
|
+
export type Pool = {
|
|
337
|
+
arn?: string;
|
|
338
|
+
id?: string;
|
|
339
|
+
};
|
|
340
|
+
export type Pools = {
|
|
341
|
+
core?: Pool;
|
|
342
|
+
workload?: Pool;
|
|
343
|
+
};
|
|
344
|
+
export type Scopes = {
|
|
345
|
+
privateId?: string;
|
|
346
|
+
publicId?: string;
|
|
347
|
+
};
|
|
348
|
+
export type Ipam = {
|
|
349
|
+
arn?: string;
|
|
350
|
+
id?: string;
|
|
351
|
+
pools?: Pools;
|
|
352
|
+
scopes?: Scopes;
|
|
353
|
+
};
|
|
354
|
+
export type RouteTables = {
|
|
355
|
+
devopsId?: string;
|
|
356
|
+
spokeId?: string;
|
|
357
|
+
};
|
|
358
|
+
export type TransitGateway = {
|
|
359
|
+
id?: string;
|
|
360
|
+
routeTables?: RouteTables;
|
|
361
|
+
};
|
|
362
|
+
export type CoreAccount = {
|
|
363
|
+
accountId?: string;
|
|
364
|
+
attachmentId?: string;
|
|
365
|
+
firewallSubnetIds?: string[];
|
|
366
|
+
ipam?: Ipam;
|
|
367
|
+
privateRouteTableIds?: string[];
|
|
368
|
+
privateSubnetIds?: string[];
|
|
369
|
+
publicSubnetIds?: string[];
|
|
370
|
+
transitGateway?: TransitGateway;
|
|
371
|
+
vpcCidrs?: string[];
|
|
372
|
+
vpcId?: string;
|
|
373
|
+
};
|
|
374
|
+
export type CoreAccounts = {
|
|
375
|
+
audit?: CoreAccount;
|
|
376
|
+
logArchive?: CoreAccount;
|
|
377
|
+
secInbound?: CoreAccount;
|
|
378
|
+
secOutbound?: CoreAccount;
|
|
379
|
+
secSecurity?: CoreAccount;
|
|
380
|
+
secSharedServices?: CoreAccount;
|
|
381
|
+
secTransit?: CoreAccount;
|
|
382
|
+
};
|
|
383
|
+
export type FoundationStatus = {
|
|
384
|
+
condition: ResourceCondition;
|
|
385
|
+
coreAccounts?: CoreAccounts;
|
|
386
|
+
orgRootId?: string;
|
|
387
|
+
secTools?: SecTools;
|
|
388
|
+
};
|
|
389
|
+
export type Foundation = {
|
|
390
|
+
metadata: ResourceMetadata;
|
|
391
|
+
spec: FoundationSpec;
|
|
392
|
+
status?: FoundationStatus;
|
|
393
|
+
};
|
|
315
394
|
export type FoundationRef = {
|
|
316
395
|
name: string;
|
|
317
396
|
};
|
|
@@ -319,11 +398,7 @@ export type VpnSpec = {
|
|
|
319
398
|
foundationRef: FoundationRef;
|
|
320
399
|
destinationCidrBlock: string;
|
|
321
400
|
peerCustomerGatewayIp: string;
|
|
322
|
-
|
|
323
|
-
export type ResourceCondition = {
|
|
324
|
-
state: "READY" | "PENDING" | "ERROR" | "UNKNOWN" | "DELETING";
|
|
325
|
-
lastUpdateTimestamp: string;
|
|
326
|
-
message?: string;
|
|
401
|
+
tags: Tag[];
|
|
327
402
|
};
|
|
328
403
|
export type VpnStatus = {
|
|
329
404
|
condition: ResourceCondition;
|
|
@@ -375,6 +450,34 @@ export type PermissionSet = {
|
|
|
375
450
|
spec: PermissionSetSpec;
|
|
376
451
|
status?: PermissionSetStatus;
|
|
377
452
|
};
|
|
453
|
+
export type ProjectRef = {
|
|
454
|
+
name: string;
|
|
455
|
+
};
|
|
456
|
+
export type NetworkSpec = {
|
|
457
|
+
foundationRef: FoundationRef;
|
|
458
|
+
projectRef: ProjectRef;
|
|
459
|
+
prefixLength: number;
|
|
460
|
+
networkName: string;
|
|
461
|
+
networkType: "WORKLOAD" | "OUTBOUND" | "CORE";
|
|
462
|
+
tags: Tag[];
|
|
463
|
+
};
|
|
464
|
+
export type NetworkSubnet = {
|
|
465
|
+
az?: string;
|
|
466
|
+
cidr?: string;
|
|
467
|
+
id?: string;
|
|
468
|
+
"type": "NAT" | "PRIVATE" | "PUBLIC";
|
|
469
|
+
};
|
|
470
|
+
export type NetworkStatus = {
|
|
471
|
+
condition: ResourceCondition;
|
|
472
|
+
id?: string;
|
|
473
|
+
cidrs?: string[];
|
|
474
|
+
subnets: NetworkSubnet[];
|
|
475
|
+
};
|
|
476
|
+
export type Network = {
|
|
477
|
+
metadata: ResourceMetadata;
|
|
478
|
+
spec: NetworkSpec;
|
|
479
|
+
status?: NetworkStatus;
|
|
480
|
+
};
|
|
378
481
|
export type PermissionSetRef = {
|
|
379
482
|
name: string;
|
|
380
483
|
};
|
|
@@ -462,6 +565,7 @@ export type FolderSpec = {
|
|
|
462
565
|
foundationRef: FoundationRef;
|
|
463
566
|
folderRef?: FolderRef;
|
|
464
567
|
name: string;
|
|
568
|
+
tags: Tag[];
|
|
465
569
|
};
|
|
466
570
|
export type FolderStatus = {
|
|
467
571
|
condition: ResourceCondition;
|
|
@@ -578,13 +682,11 @@ export type Firewall = {
|
|
|
578
682
|
spec: FirewallSpec;
|
|
579
683
|
status?: FirewallStatus;
|
|
580
684
|
};
|
|
581
|
-
export type ProjectRef = {
|
|
582
|
-
name: string;
|
|
583
|
-
};
|
|
584
685
|
export type DnsZoneSpec = {
|
|
585
686
|
foundationRef: FoundationRef;
|
|
586
687
|
projectRef?: ProjectRef;
|
|
587
688
|
domain: string;
|
|
689
|
+
tags: Tag[];
|
|
588
690
|
};
|
|
589
691
|
export type DnsZoneStatus = {
|
|
590
692
|
condition: ResourceCondition;
|
|
@@ -636,6 +738,7 @@ export type CustomerPolicyAttachment = {
|
|
|
636
738
|
export type CidrSpec = {
|
|
637
739
|
foundationRef: FoundationRef;
|
|
638
740
|
cidr: string;
|
|
741
|
+
tags: Tag[];
|
|
639
742
|
};
|
|
640
743
|
export type CidrStatus = {
|
|
641
744
|
condition: ResourceCondition;
|
|
@@ -651,14 +754,67 @@ export type CertificateSpec = {
|
|
|
651
754
|
tags: Tag[];
|
|
652
755
|
domainName: string;
|
|
653
756
|
};
|
|
757
|
+
export type DomainValidationOption = {
|
|
758
|
+
domainName?: string;
|
|
759
|
+
resourceRecordName?: string;
|
|
760
|
+
resourceRecordType?: string;
|
|
761
|
+
resourceRecordValue?: string;
|
|
762
|
+
};
|
|
654
763
|
export type CertificateStatus = {
|
|
655
764
|
condition: ResourceCondition;
|
|
765
|
+
domainName?: string;
|
|
766
|
+
domainValidationOptions?: DomainValidationOption[];
|
|
767
|
+
keyAlgorithm?: string;
|
|
768
|
+
notAfter?: string;
|
|
769
|
+
notBefore?: string;
|
|
770
|
+
subjectAlternativeNames?: string[];
|
|
771
|
+
"type"?: string;
|
|
772
|
+
validationEmails?: string[];
|
|
773
|
+
validationMethod?: string;
|
|
656
774
|
};
|
|
657
775
|
export type Certificate = {
|
|
658
776
|
metadata: ResourceMetadata;
|
|
659
777
|
spec: CertificateSpec;
|
|
660
778
|
status?: CertificateStatus;
|
|
661
779
|
};
|
|
780
|
+
export type BoundarySsoSpec = {
|
|
781
|
+
foundationRef: FoundationRef;
|
|
782
|
+
policyDocument: JsonNode;
|
|
783
|
+
tags: Tag[];
|
|
784
|
+
};
|
|
785
|
+
export type BoundarySsoStatus = {
|
|
786
|
+
condition: ResourceCondition;
|
|
787
|
+
stackSetName?: string;
|
|
788
|
+
stackSetId?: string;
|
|
789
|
+
stackSetArn?: string;
|
|
790
|
+
policyArn?: string;
|
|
791
|
+
ready?: boolean;
|
|
792
|
+
message?: string;
|
|
793
|
+
};
|
|
794
|
+
export type BoundarySso = {
|
|
795
|
+
metadata: ResourceMetadata;
|
|
796
|
+
spec: BoundarySsoSpec;
|
|
797
|
+
status?: BoundarySsoStatus;
|
|
798
|
+
};
|
|
799
|
+
export type BoundarySpec = {
|
|
800
|
+
foundationRef: FoundationRef;
|
|
801
|
+
policyDocument: JsonNode;
|
|
802
|
+
tags: Tag[];
|
|
803
|
+
};
|
|
804
|
+
export type BoundaryStatus = {
|
|
805
|
+
condition: ResourceCondition;
|
|
806
|
+
stackSetName?: string;
|
|
807
|
+
stackSetId?: string;
|
|
808
|
+
stackSetArn?: string;
|
|
809
|
+
policyArn?: string;
|
|
810
|
+
ready?: boolean;
|
|
811
|
+
message?: string;
|
|
812
|
+
};
|
|
813
|
+
export type Boundary = {
|
|
814
|
+
metadata: ResourceMetadata;
|
|
815
|
+
spec: BoundarySpec;
|
|
816
|
+
status?: BoundaryStatus;
|
|
817
|
+
};
|
|
662
818
|
export type AccountAssignmentSpec = {
|
|
663
819
|
foundationRef: FoundationRef;
|
|
664
820
|
permissionSetRef: PermissionSetRef;
|
|
@@ -810,7 +966,6 @@ export type ListBoundaryResponse = {
|
|
|
810
966
|
pendingResources: boolean;
|
|
811
967
|
content: BoundaryResponse[];
|
|
812
968
|
};
|
|
813
|
-
export type JsonNode = any;
|
|
814
969
|
export type CreateBoundaryRequest = {
|
|
815
970
|
name: string;
|
|
816
971
|
description: string;
|
|
@@ -837,6 +992,72 @@ export type VpnConfigurationResponse = {
|
|
|
837
992
|
foundationId: string;
|
|
838
993
|
configuration: Configuration;
|
|
839
994
|
};
|
|
995
|
+
export function vpnControllerPutTags({ $namespace, name, body }: {
|
|
996
|
+
$namespace: string;
|
|
997
|
+
name: string;
|
|
998
|
+
body: Tag[];
|
|
999
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1000
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/vpns/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
1001
|
+
...opts,
|
|
1002
|
+
method: "PUT",
|
|
1003
|
+
body
|
|
1004
|
+
})));
|
|
1005
|
+
}
|
|
1006
|
+
export function serviceControlPolicyControllerPutTarget({ $namespace, name, target }: {
|
|
1007
|
+
$namespace: string;
|
|
1008
|
+
name: string;
|
|
1009
|
+
target: Target;
|
|
1010
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1011
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}/target`, oazapfts.json({
|
|
1012
|
+
...opts,
|
|
1013
|
+
method: "PUT",
|
|
1014
|
+
body: target
|
|
1015
|
+
})));
|
|
1016
|
+
}
|
|
1017
|
+
export function serviceControlPolicyControllerPutTags({ $namespace, name, body }: {
|
|
1018
|
+
$namespace: string;
|
|
1019
|
+
name: string;
|
|
1020
|
+
body: Tag[];
|
|
1021
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1022
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
1023
|
+
...opts,
|
|
1024
|
+
method: "PUT",
|
|
1025
|
+
body
|
|
1026
|
+
})));
|
|
1027
|
+
}
|
|
1028
|
+
export function serviceControlPolicyControllerPutName({ $namespace, name, body }: {
|
|
1029
|
+
$namespace: string;
|
|
1030
|
+
name: string;
|
|
1031
|
+
body: string;
|
|
1032
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1033
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}/name`, oazapfts.json({
|
|
1034
|
+
...opts,
|
|
1035
|
+
method: "PUT",
|
|
1036
|
+
body
|
|
1037
|
+
})));
|
|
1038
|
+
}
|
|
1039
|
+
export function serviceControlPolicyControllerPutDescription({ $namespace, name, body }: {
|
|
1040
|
+
$namespace: string;
|
|
1041
|
+
name: string;
|
|
1042
|
+
body: string;
|
|
1043
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1044
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}/description`, oazapfts.json({
|
|
1045
|
+
...opts,
|
|
1046
|
+
method: "PUT",
|
|
1047
|
+
body
|
|
1048
|
+
})));
|
|
1049
|
+
}
|
|
1050
|
+
export function serviceControlPolicyControllerPutContent({ $namespace, name, jsonNode }: {
|
|
1051
|
+
$namespace: string;
|
|
1052
|
+
name: string;
|
|
1053
|
+
jsonNode: JsonNode;
|
|
1054
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1055
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}/content`, oazapfts.json({
|
|
1056
|
+
...opts,
|
|
1057
|
+
method: "PUT",
|
|
1058
|
+
body: jsonNode
|
|
1059
|
+
})));
|
|
1060
|
+
}
|
|
840
1061
|
export function projectControllerPutTags({ $namespace, name, body }: {
|
|
841
1062
|
$namespace: string;
|
|
842
1063
|
name: string;
|
|
@@ -859,6 +1080,28 @@ export function projectControllerPutName({ $namespace, name, body }: {
|
|
|
859
1080
|
body
|
|
860
1081
|
})));
|
|
861
1082
|
}
|
|
1083
|
+
export function networkControllerPutTags({ $namespace, name, body }: {
|
|
1084
|
+
$namespace: string;
|
|
1085
|
+
name: string;
|
|
1086
|
+
body: Tag[];
|
|
1087
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1088
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/networks/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
1089
|
+
...opts,
|
|
1090
|
+
method: "PUT",
|
|
1091
|
+
body
|
|
1092
|
+
})));
|
|
1093
|
+
}
|
|
1094
|
+
export function networkControllerPutNetworkName({ $namespace, name, body }: {
|
|
1095
|
+
$namespace: string;
|
|
1096
|
+
name: string;
|
|
1097
|
+
body: string;
|
|
1098
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1099
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/networks/${encodeURIComponent(name)}/networkName`, oazapfts.json({
|
|
1100
|
+
...opts,
|
|
1101
|
+
method: "PUT",
|
|
1102
|
+
body
|
|
1103
|
+
})));
|
|
1104
|
+
}
|
|
862
1105
|
export function folderControllerPutTags({ $namespace, name, body }: {
|
|
863
1106
|
$namespace: string;
|
|
864
1107
|
name: string;
|
|
@@ -881,6 +1124,17 @@ export function folderControllerPutName({ $namespace, name, body }: {
|
|
|
881
1124
|
body
|
|
882
1125
|
})));
|
|
883
1126
|
}
|
|
1127
|
+
export function dnsZoneControllerPutTags({ $namespace, name, body }: {
|
|
1128
|
+
$namespace: string;
|
|
1129
|
+
name: string;
|
|
1130
|
+
body: Tag[];
|
|
1131
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1132
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-zones/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
1133
|
+
...opts,
|
|
1134
|
+
method: "PUT",
|
|
1135
|
+
body
|
|
1136
|
+
})));
|
|
1137
|
+
}
|
|
884
1138
|
export function dnsRecordControllerPutTtl({ $namespace, name, body }: {
|
|
885
1139
|
$namespace: string;
|
|
886
1140
|
name: string;
|
|
@@ -903,6 +1157,17 @@ export function dnsRecordControllerPutRecords({ $namespace, name, body }: {
|
|
|
903
1157
|
body
|
|
904
1158
|
})));
|
|
905
1159
|
}
|
|
1160
|
+
export function cidrControllerPutTags({ $namespace, name, body }: {
|
|
1161
|
+
$namespace: string;
|
|
1162
|
+
name: string;
|
|
1163
|
+
body: Tag[];
|
|
1164
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1165
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/cidrs/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
1166
|
+
...opts,
|
|
1167
|
+
method: "PUT",
|
|
1168
|
+
body
|
|
1169
|
+
})));
|
|
1170
|
+
}
|
|
906
1171
|
export function certificateControllerPutTags({ $namespace, name, body }: {
|
|
907
1172
|
$namespace: string;
|
|
908
1173
|
name: string;
|
|
@@ -914,6 +1179,28 @@ export function certificateControllerPutTags({ $namespace, name, body }: {
|
|
|
914
1179
|
body
|
|
915
1180
|
})));
|
|
916
1181
|
}
|
|
1182
|
+
export function boundarySsoControllerPutTags({ $namespace, name, body }: {
|
|
1183
|
+
$namespace: string;
|
|
1184
|
+
name: string;
|
|
1185
|
+
body: Tag[];
|
|
1186
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1187
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundary-ssos/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
1188
|
+
...opts,
|
|
1189
|
+
method: "PUT",
|
|
1190
|
+
body
|
|
1191
|
+
})));
|
|
1192
|
+
}
|
|
1193
|
+
export function boundaryControllerPutTags({ $namespace, name, body }: {
|
|
1194
|
+
$namespace: string;
|
|
1195
|
+
name: string;
|
|
1196
|
+
body: Tag[];
|
|
1197
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1198
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundaries/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
1199
|
+
...opts,
|
|
1200
|
+
method: "PUT",
|
|
1201
|
+
body
|
|
1202
|
+
})));
|
|
1203
|
+
}
|
|
917
1204
|
export function getRole({ roleName }: {
|
|
918
1205
|
roleName: string;
|
|
919
1206
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1256,6 +1543,23 @@ export function putBoundarySsoDescription({ foundationId, boundarySsoId, body }:
|
|
|
1256
1543
|
body
|
|
1257
1544
|
}));
|
|
1258
1545
|
}
|
|
1546
|
+
export function foundationControllerList(opts?: Oazapfts.RequestOpts) {
|
|
1547
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1548
|
+
status: 200;
|
|
1549
|
+
data: Foundation[];
|
|
1550
|
+
}>("/v2/foundations", {
|
|
1551
|
+
...opts
|
|
1552
|
+
}));
|
|
1553
|
+
}
|
|
1554
|
+
export function foundationControllerCreate({ foundationSpec }: {
|
|
1555
|
+
foundationSpec: FoundationSpec;
|
|
1556
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1557
|
+
return oazapfts.ok(oazapfts.fetchText("/v2/foundations", oazapfts.json({
|
|
1558
|
+
...opts,
|
|
1559
|
+
method: "POST",
|
|
1560
|
+
body: foundationSpec
|
|
1561
|
+
})));
|
|
1562
|
+
}
|
|
1259
1563
|
export function vpnControllerList({ $namespace }: {
|
|
1260
1564
|
$namespace: string;
|
|
1261
1565
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1276,13 +1580,36 @@ export function vpnControllerCreate({ $namespace, vpnSpec }: {
|
|
|
1276
1580
|
body: vpnSpec
|
|
1277
1581
|
})));
|
|
1278
1582
|
}
|
|
1279
|
-
export function
|
|
1583
|
+
export function serviceControlPolicyControllerList({ $namespace }: {
|
|
1280
1584
|
$namespace: string;
|
|
1585
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1586
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1587
|
+
status: 200;
|
|
1588
|
+
data: ServiceControlPolicy[];
|
|
1589
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies`, {
|
|
1590
|
+
...opts
|
|
1591
|
+
}));
|
|
1592
|
+
}
|
|
1593
|
+
export function serviceControlPolicyControllerCreate({ $namespace, serviceControlPolicySpec }: {
|
|
1594
|
+
$namespace: string;
|
|
1595
|
+
serviceControlPolicySpec: ServiceControlPolicySpec;
|
|
1596
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1597
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies`, oazapfts.json({
|
|
1598
|
+
...opts,
|
|
1599
|
+
method: "POST",
|
|
1600
|
+
body: serviceControlPolicySpec
|
|
1601
|
+
})));
|
|
1602
|
+
}
|
|
1603
|
+
export function projectControllerListByFolderRef({ $namespace, folderRef }: {
|
|
1604
|
+
$namespace: string;
|
|
1605
|
+
folderRef?: string;
|
|
1281
1606
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1282
1607
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1283
1608
|
status: 200;
|
|
1284
1609
|
data: Project[];
|
|
1285
|
-
}>(`/v2/foundations/${encodeURIComponent($namespace)}/projects
|
|
1610
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/projects${QS.query(QS.explode({
|
|
1611
|
+
folderRef
|
|
1612
|
+
}))}`, {
|
|
1286
1613
|
...opts
|
|
1287
1614
|
}));
|
|
1288
1615
|
}
|
|
@@ -1316,6 +1643,26 @@ export function permissionSetControllerCreate({ $namespace, permissionSetSpec }:
|
|
|
1316
1643
|
body: permissionSetSpec
|
|
1317
1644
|
})));
|
|
1318
1645
|
}
|
|
1646
|
+
export function networkControllerList({ $namespace }: {
|
|
1647
|
+
$namespace: string;
|
|
1648
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1649
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1650
|
+
status: 200;
|
|
1651
|
+
data: Network[];
|
|
1652
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/networks`, {
|
|
1653
|
+
...opts
|
|
1654
|
+
}));
|
|
1655
|
+
}
|
|
1656
|
+
export function networkControllerCreate({ $namespace, networkSpec }: {
|
|
1657
|
+
$namespace: string;
|
|
1658
|
+
networkSpec: NetworkSpec;
|
|
1659
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1660
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/networks`, oazapfts.json({
|
|
1661
|
+
...opts,
|
|
1662
|
+
method: "POST",
|
|
1663
|
+
body: networkSpec
|
|
1664
|
+
})));
|
|
1665
|
+
}
|
|
1319
1666
|
export function managedPolicyAttachmentControllerList({ $namespace }: {
|
|
1320
1667
|
$namespace: string;
|
|
1321
1668
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1416,13 +1763,16 @@ export function identityCenterControllerCreate({ $namespace, identityCenterSpec
|
|
|
1416
1763
|
body: identityCenterSpec
|
|
1417
1764
|
})));
|
|
1418
1765
|
}
|
|
1419
|
-
export function
|
|
1766
|
+
export function folderControllerListByFolderRef({ $namespace, folderName }: {
|
|
1420
1767
|
$namespace: string;
|
|
1768
|
+
folderName?: string;
|
|
1421
1769
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1422
1770
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1423
1771
|
status: 200;
|
|
1424
1772
|
data: Folder[];
|
|
1425
|
-
}>(`/v2/foundations/${encodeURIComponent($namespace)}/folders
|
|
1773
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/folders${QS.query(QS.explode({
|
|
1774
|
+
folderName
|
|
1775
|
+
}))}`, {
|
|
1426
1776
|
...opts
|
|
1427
1777
|
}));
|
|
1428
1778
|
}
|
|
@@ -1496,10 +1846,10 @@ export function firewallControllerCreate({ $namespace, firewallSpec }: {
|
|
|
1496
1846
|
body: firewallSpec
|
|
1497
1847
|
})));
|
|
1498
1848
|
}
|
|
1499
|
-
export function
|
|
1849
|
+
export function dnsZoneControllerListBy({ $namespace, $type, projectName }: {
|
|
1500
1850
|
$namespace: string;
|
|
1501
1851
|
$type: "PUBLIC" | "PRIVATE";
|
|
1502
|
-
projectName
|
|
1852
|
+
projectName?: string;
|
|
1503
1853
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1504
1854
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1505
1855
|
status: 200;
|
|
@@ -1521,13 +1871,16 @@ export function dnsZoneControllerCreate({ $namespace, dnsZoneSpec }: {
|
|
|
1521
1871
|
body: dnsZoneSpec
|
|
1522
1872
|
})));
|
|
1523
1873
|
}
|
|
1524
|
-
export function
|
|
1874
|
+
export function dnsRecordControllerListBy({ $namespace, dnsZoneName }: {
|
|
1525
1875
|
$namespace: string;
|
|
1876
|
+
dnsZoneName?: string;
|
|
1526
1877
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1527
1878
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1528
1879
|
status: 200;
|
|
1529
1880
|
data: DnsRecord[];
|
|
1530
|
-
}>(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records
|
|
1881
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records${QS.query(QS.explode({
|
|
1882
|
+
dnsZoneName
|
|
1883
|
+
}))}`, {
|
|
1531
1884
|
...opts
|
|
1532
1885
|
}));
|
|
1533
1886
|
}
|
|
@@ -1601,6 +1954,46 @@ export function certificateControllerCreate({ $namespace, certificateSpec }: {
|
|
|
1601
1954
|
body: certificateSpec
|
|
1602
1955
|
})));
|
|
1603
1956
|
}
|
|
1957
|
+
export function boundarySsoControllerList({ $namespace }: {
|
|
1958
|
+
$namespace: string;
|
|
1959
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1960
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1961
|
+
status: 200;
|
|
1962
|
+
data: BoundarySso[];
|
|
1963
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/boundary-ssos`, {
|
|
1964
|
+
...opts
|
|
1965
|
+
}));
|
|
1966
|
+
}
|
|
1967
|
+
export function boundarySsoControllerCreate({ $namespace, boundarySsoSpec }: {
|
|
1968
|
+
$namespace: string;
|
|
1969
|
+
boundarySsoSpec: BoundarySsoSpec;
|
|
1970
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1971
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundary-ssos`, oazapfts.json({
|
|
1972
|
+
...opts,
|
|
1973
|
+
method: "POST",
|
|
1974
|
+
body: boundarySsoSpec
|
|
1975
|
+
})));
|
|
1976
|
+
}
|
|
1977
|
+
export function boundaryControllerList({ $namespace }: {
|
|
1978
|
+
$namespace: string;
|
|
1979
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1980
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1981
|
+
status: 200;
|
|
1982
|
+
data: Boundary[];
|
|
1983
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/boundaries`, {
|
|
1984
|
+
...opts
|
|
1985
|
+
}));
|
|
1986
|
+
}
|
|
1987
|
+
export function boundaryControllerCreate({ $namespace, boundarySpec }: {
|
|
1988
|
+
$namespace: string;
|
|
1989
|
+
boundarySpec: BoundarySpec;
|
|
1990
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1991
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundaries`, oazapfts.json({
|
|
1992
|
+
...opts,
|
|
1993
|
+
method: "POST",
|
|
1994
|
+
body: boundarySpec
|
|
1995
|
+
})));
|
|
1996
|
+
}
|
|
1604
1997
|
export function accountAssignmentControllerList({ $namespace }: {
|
|
1605
1998
|
$namespace: string;
|
|
1606
1999
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2049,7 +2442,17 @@ export function oidcControllerGet(opts?: Oazapfts.RequestOpts) {
|
|
|
2049
2442
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2050
2443
|
status: 200;
|
|
2051
2444
|
data: string;
|
|
2052
|
-
}>("/v2/oidc
|
|
2445
|
+
}>("/v2/oidc", {
|
|
2446
|
+
...opts
|
|
2447
|
+
}));
|
|
2448
|
+
}
|
|
2449
|
+
export function foundationControllerGet({ $namespace }: {
|
|
2450
|
+
$namespace: string;
|
|
2451
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2452
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2453
|
+
status: 200;
|
|
2454
|
+
data: Foundation;
|
|
2455
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}`, {
|
|
2053
2456
|
...opts
|
|
2054
2457
|
}));
|
|
2055
2458
|
}
|
|
@@ -2073,6 +2476,26 @@ export function vpnControllerDelete({ $namespace, name }: {
|
|
|
2073
2476
|
method: "DELETE"
|
|
2074
2477
|
}));
|
|
2075
2478
|
}
|
|
2479
|
+
export function serviceControlPolicyControllerGet({ $namespace, name }: {
|
|
2480
|
+
$namespace: string;
|
|
2481
|
+
name: string;
|
|
2482
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2483
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2484
|
+
status: 200;
|
|
2485
|
+
data: ServiceControlPolicy;
|
|
2486
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}`, {
|
|
2487
|
+
...opts
|
|
2488
|
+
}));
|
|
2489
|
+
}
|
|
2490
|
+
export function serviceControlPolicyControllerDelete({ $namespace, name }: {
|
|
2491
|
+
$namespace: string;
|
|
2492
|
+
name: string;
|
|
2493
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2494
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}`, {
|
|
2495
|
+
...opts,
|
|
2496
|
+
method: "DELETE"
|
|
2497
|
+
}));
|
|
2498
|
+
}
|
|
2076
2499
|
export function projectControllerGet({ $namespace, name }: {
|
|
2077
2500
|
$namespace: string;
|
|
2078
2501
|
name: string;
|
|
@@ -2113,6 +2536,26 @@ export function permissionSetControllerDelete({ $namespace, name }: {
|
|
|
2113
2536
|
method: "DELETE"
|
|
2114
2537
|
}));
|
|
2115
2538
|
}
|
|
2539
|
+
export function networkControllerGet({ $namespace, name }: {
|
|
2540
|
+
$namespace: string;
|
|
2541
|
+
name: string;
|
|
2542
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2543
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2544
|
+
status: 200;
|
|
2545
|
+
data: Network;
|
|
2546
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/networks/${encodeURIComponent(name)}`, {
|
|
2547
|
+
...opts
|
|
2548
|
+
}));
|
|
2549
|
+
}
|
|
2550
|
+
export function networkControllerDelete({ $namespace, name }: {
|
|
2551
|
+
$namespace: string;
|
|
2552
|
+
name: string;
|
|
2553
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2554
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/networks/${encodeURIComponent(name)}`, {
|
|
2555
|
+
...opts,
|
|
2556
|
+
method: "DELETE"
|
|
2557
|
+
}));
|
|
2558
|
+
}
|
|
2116
2559
|
export function managedPolicyAttachmentControllerGet({ $namespace, name }: {
|
|
2117
2560
|
$namespace: string;
|
|
2118
2561
|
name: string;
|
|
@@ -2393,6 +2836,46 @@ export function certificateControllerDelete({ $namespace, name }: {
|
|
|
2393
2836
|
method: "DELETE"
|
|
2394
2837
|
}));
|
|
2395
2838
|
}
|
|
2839
|
+
export function boundarySsoControllerGet({ $namespace, name }: {
|
|
2840
|
+
$namespace: string;
|
|
2841
|
+
name: string;
|
|
2842
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2843
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2844
|
+
status: 200;
|
|
2845
|
+
data: BoundarySso;
|
|
2846
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/boundary-ssos/${encodeURIComponent(name)}`, {
|
|
2847
|
+
...opts
|
|
2848
|
+
}));
|
|
2849
|
+
}
|
|
2850
|
+
export function boundarySsoControllerDelete({ $namespace, name }: {
|
|
2851
|
+
$namespace: string;
|
|
2852
|
+
name: string;
|
|
2853
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2854
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundary-ssos/${encodeURIComponent(name)}`, {
|
|
2855
|
+
...opts,
|
|
2856
|
+
method: "DELETE"
|
|
2857
|
+
}));
|
|
2858
|
+
}
|
|
2859
|
+
export function boundaryControllerGet({ $namespace, name }: {
|
|
2860
|
+
$namespace: string;
|
|
2861
|
+
name: string;
|
|
2862
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2863
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2864
|
+
status: 200;
|
|
2865
|
+
data: Boundary;
|
|
2866
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/boundaries/${encodeURIComponent(name)}`, {
|
|
2867
|
+
...opts
|
|
2868
|
+
}));
|
|
2869
|
+
}
|
|
2870
|
+
export function boundaryControllerDelete({ $namespace, name }: {
|
|
2871
|
+
$namespace: string;
|
|
2872
|
+
name: string;
|
|
2873
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2874
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundaries/${encodeURIComponent(name)}`, {
|
|
2875
|
+
...opts,
|
|
2876
|
+
method: "DELETE"
|
|
2877
|
+
}));
|
|
2878
|
+
}
|
|
2396
2879
|
export function accountAssignmentControllerGet({ $namespace, name }: {
|
|
2397
2880
|
$namespace: string;
|
|
2398
2881
|
name: string;
|
|
@@ -2413,6 +2896,14 @@ export function accountAssignmentControllerDelete({ $namespace, name }: {
|
|
|
2413
2896
|
method: "DELETE"
|
|
2414
2897
|
}));
|
|
2415
2898
|
}
|
|
2899
|
+
export function finOpsControllerGet(opts?: Oazapfts.RequestOpts) {
|
|
2900
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2901
|
+
status: 200;
|
|
2902
|
+
data: string;
|
|
2903
|
+
}>("/v2/finops", {
|
|
2904
|
+
...opts
|
|
2905
|
+
}));
|
|
2906
|
+
}
|
|
2416
2907
|
export function getOidc(opts?: Oazapfts.RequestOpts) {
|
|
2417
2908
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2418
2909
|
status: 200;
|