@stack-spot/portal-network 0.235.3 → 0.237.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.
@@ -8,309 +8,145 @@ 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://cloud-cloud-foundation-api.stg.stackspot.com",
11
+ baseUrl: "https://api.platform.stg.zup.corp",
12
12
  };
13
13
  const oazapfts = Oazapfts.runtime(defaults);
14
14
  export const servers = {
15
- generatedServerUrl: "https://cloud-cloud-foundation-api.stg.stackspot.com"
15
+ generatedServerUrl: "https://api.platform.stg.zup.corp"
16
16
  };
17
17
  export type Tag = {
18
18
  key: string;
19
19
  value?: string;
20
20
  };
21
- export type RoleMetadata = {
22
- creationTimestamp?: string;
23
- deletionTimestamp?: string;
21
+ export type Target = {
22
+ folderIds: string[];
23
+ projectIds: string[];
24
+ };
25
+ export type JsonNode = any;
26
+ export type ResourceMetadata = {
27
+ id: string;
24
28
  name: string;
29
+ labels: {
30
+ [key: string]: string;
31
+ };
32
+ creationTimestamp: string;
33
+ deletionTimestamp?: string;
34
+ uid?: string;
25
35
  };
26
- export type RoleSpecPermission = {
36
+ export type Permission = {
27
37
  create: boolean;
28
38
  read: boolean;
29
39
  update: boolean;
30
40
  "delete": boolean;
31
41
  };
32
42
  export type RoleSpec = {
33
- boundary: RoleSpecPermission;
34
- boundarySSO: RoleSpecPermission;
35
- certificate: RoleSpecPermission;
36
- cidr: RoleSpecPermission;
37
- dnsRecord: RoleSpecPermission;
38
- dnsZone: RoleSpecPermission;
39
- fmsPolicy: RoleSpecPermission;
40
- folder: RoleSpecPermission;
41
- foundation: RoleSpecPermission;
42
- iamIdentityCenter: RoleSpecPermission;
43
- network: RoleSpecPermission;
44
- project: RoleSpecPermission;
45
- role: RoleSpecPermission;
46
- serviceControlPolicy: RoleSpecPermission;
47
- vpn: RoleSpecPermission;
48
- };
49
- export type Role = {
50
- metadata: RoleMetadata;
51
- spec: RoleSpec;
52
- };
53
- export type TunnelStatus = {
54
- tunnel1?: string;
55
- tunnel2?: string;
56
- };
57
- export type VpnDetails = {
58
- peerCustomerGatewayIp: string;
59
- destinationCidrBlock: string;
60
- tunnelStatus: TunnelStatus;
61
- };
62
- export type VpnResponse = {
63
- stackSpotAccountId: string;
64
- foundationId: string;
65
- vpnId: string;
66
- details: VpnDetails;
67
- tags: Tag[];
68
- status: "READY" | "PENDING" | "DELETING" | "ERROR";
69
- createdAt: string;
70
- updatedAt: string;
71
- deletedAt?: string;
72
- };
73
- export type ServiceControlPolicyMetadata = {
74
- creationTimestamp?: string;
75
- deletionTimestamp?: string;
76
- /** Universally Unique Lexicographically Sortable Identifier */
77
- id?: string;
78
- };
79
- export type ServiceControlPolicySpecTarget = {
80
- folderIds: string[];
81
- projectIds: string[];
82
- };
83
- export type ServiceControlPolicySpec = {
84
- /** Universally Unique Lexicographically Sortable Identifier */
85
- foundationId: string;
86
43
  name: string;
87
- description: string;
88
- content: string;
89
- target: ServiceControlPolicySpecTarget;
90
- tags: Tag[];
44
+ boundary: Permission;
45
+ boundarySSO: Permission;
46
+ certificate: Permission;
47
+ cidr: Permission;
48
+ dnsRecord: Permission;
49
+ dnsZone: Permission;
50
+ fmsPolicy: Permission;
51
+ folder: Permission;
52
+ foundation: Permission;
53
+ iamIdentityCenter: Permission;
54
+ network: Permission;
55
+ project: Permission;
56
+ role: Permission;
57
+ serviceControlPolicy: Permission;
58
+ vpn: Permission;
91
59
  };
92
- export type ServiceControlPolicyStatus = {
93
- state: "READY" | "PENDING" | "DELETING" | "ERROR";
60
+ export type ResourceCondition = {
61
+ state: "READY" | "PENDING" | "ERROR" | "UNKNOWN" | "DELETING";
62
+ lastUpdateTimestamp: string;
94
63
  message?: string;
95
- lastUpdateTimestamp?: string;
96
- };
97
- export type ServiceControlPolicy = {
98
- metadata?: ServiceControlPolicyMetadata;
99
- spec: ServiceControlPolicySpec;
100
- status?: ServiceControlPolicyStatus;
101
64
  };
102
- export type SecTool = {
103
- status: "READY" | "PENDING" | "DELETING" | "ERROR";
65
+ export type ResourceStatus = {
66
+ condition: ResourceCondition;
104
67
  };
105
- export type SecTools = {
106
- guardDuty: SecTool;
107
- inspector: SecTool;
108
- securityHub: SecTool;
68
+ export type Role = {
69
+ metadata: ResourceMetadata;
70
+ spec: RoleSpec;
71
+ status?: ResourceStatus;
109
72
  };
110
- export type FoundationDetails = {
111
- name: string;
112
- description: string;
113
- cloudProvider: string;
73
+ export type FoundationSpec = {
114
74
  region: string;
115
- secTools: SecTools;
116
- secProjectTags: Tag[];
117
- };
118
- export type FoundationResponse = {
119
- stackSpotAccountId: string;
120
- foundationId: string;
121
- foundationName: string;
122
- details: FoundationDetails;
123
- tags: Tag[];
124
- status: "READY" | "PENDING" | "DELETING" | "ERROR";
125
- createdAt: string;
126
- updatedAt: string;
127
- deletedAt?: string;
128
- };
129
- export type ProjectDetails = {
130
- name: string;
131
- folderName: string;
132
- providerAccountId?: string;
133
- };
134
- export type ProjectResponse = {
135
- stackSpotAccountId: string;
136
- foundationId: string;
137
- parentFolderId: string;
138
- projectId: string;
139
- details: ProjectDetails;
75
+ masterAccountId: string;
76
+ auditAccountId: string;
77
+ logArchiveAccountId: string;
78
+ orgId: string;
79
+ portfolioId: string;
80
+ prefix: string;
140
81
  tags: Tag[];
141
- status: "READY" | "PENDING" | "DELETING" | "ERROR";
142
- createdAt: string;
143
- updatedAt: string;
144
- deletedAt?: string;
82
+ secAccountTags: Tag[];
145
83
  };
146
- export type NetworkSubnetDetails = {
147
- az?: string;
148
- cidr?: string;
84
+ export type Pool = {
85
+ arn?: string;
149
86
  id?: string;
150
- "type": "NAT" | "PRIVATE" | "PUBLIC";
151
- };
152
- export type NetworkDetails = {
153
- cidrs?: string[];
154
- name: string;
155
- "type": "WORKLOAD" | "OUTBOUND" | "CORE";
156
- subnets: NetworkSubnetDetails[];
157
- };
158
- export type NetworkResponse = {
159
- stackSpotAccountId: string;
160
- foundationId: string;
161
- projectId: string;
162
- networkId: string;
163
- details: NetworkDetails;
164
- tags: Tag[];
165
- status: "READY" | "PENDING" | "DELETING" | "ERROR";
166
- createdAt: string;
167
- updatedAt: string;
168
- deletedAt?: string;
169
87
  };
170
- export type FolderContent = {
171
- "type": "FOLDER" | "PROJECT";
172
- id: string;
173
- name: string;
174
- status: "READY" | "PENDING" | "DELETING" | "ERROR";
175
- };
176
- export type FolderDetails = {
177
- name: string;
178
- pendingResources: boolean;
179
- content: FolderContent[];
180
- };
181
- export type FolderResponse = {
182
- stackSpotAccountId: string;
183
- foundationId: string;
184
- parentFolderId: string;
185
- folderId: string;
186
- details: FolderDetails;
187
- tags: Tag[];
188
- status: "READY" | "PENDING" | "DELETING" | "ERROR";
189
- createdAt: string;
190
- updatedAt: string;
191
- deletedAt?: string;
192
- };
193
- export type DnsZoneDetails = {
194
- domain: string;
195
- dnsZoneType: string;
196
- };
197
- export type DnsZoneResponse = {
198
- stackSpotAccountId: string;
199
- foundationId: string;
200
- dnsZoneId: string;
201
- details: DnsZoneDetails;
202
- tags: Tag[];
203
- status: "READY" | "PENDING" | "DELETING" | "ERROR";
204
- createdAt: string;
205
- updatedAt: string;
206
- deletedAt?: string;
207
- };
208
- export type DnsRecordDetails = {
209
- recordName: string;
210
- records: string[];
211
- ttl: number;
212
- "type": "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "PTR" | "SOA" | "SRV" | "TXT";
213
- dnsZoneName: string;
214
- };
215
- export type DnsRecordResponse = {
216
- stackSpotAccountId: string;
217
- foundationId: string;
218
- dnsZoneId: string;
219
- dnsRecordId: string;
220
- details: DnsRecordDetails;
221
- tags: Tag[];
222
- status: "READY" | "PENDING" | "DELETING" | "ERROR";
223
- createdAt: string;
224
- updatedAt: string;
225
- deletedAt?: string;
226
- };
227
- export type CidrDetails = {
228
- cidrNotation: string;
229
- networkAddress: string;
230
- netmask: string;
231
- broadcastAddress: string;
232
- lowAddress: string;
233
- highAddress: string;
234
- addressCount: number;
235
- };
236
- export type CidrResponse = {
237
- stackSpotAccountId: string;
238
- foundationId: string;
239
- cidrId: string;
240
- details: CidrDetails;
241
- tags: Tag[];
242
- status: "READY" | "PENDING" | "DELETING" | "ERROR";
243
- createdAt: string;
244
- updatedAt: string;
245
- deletedAt?: string;
88
+ export type Pools = {
89
+ core?: Pool;
90
+ workload?: Pool;
246
91
  };
247
- export type CertificateDomainValidation = {
248
- domainName?: string;
249
- recordName?: string;
250
- recordType?: string;
251
- recordValue?: string;
92
+ export type Scopes = {
93
+ privateId?: string;
94
+ publicId?: string;
252
95
  };
253
- export type CertificateDetails = {
254
- name: string;
255
- forInbound: "TRUE" | "FALSE";
256
- certificateStatus?: string;
257
- domainName?: string;
258
- domainValidation?: CertificateDomainValidation[];
259
- notAfter?: string;
260
- notBefore?: string;
261
- "type"?: string;
262
- validationMethod?: string;
96
+ export type Ipam = {
97
+ arn?: string;
98
+ id?: string;
99
+ pools?: Pools;
100
+ scopes?: Scopes;
263
101
  };
264
- export type CertificateResponse = {
265
- stackSpotAccountId: string;
266
- foundationId: string;
267
- certificateId: string;
268
- details: CertificateDetails;
269
- status: "READY" | "PENDING" | "DELETING" | "ERROR";
270
- tags: Tag[];
271
- createdAt: string;
272
- updatedAt: string;
273
- deletedAt?: string;
102
+ export type RouteTables = {
103
+ devopsId?: string;
104
+ spokeId?: string;
274
105
  };
275
- export type BoundaryDetails = {
276
- name: string;
277
- description: string;
278
- policyDocument: string;
106
+ export type TransitGateway = {
107
+ id?: string;
108
+ routeTables?: RouteTables;
109
+ };
110
+ export type CoreAccount = {
111
+ accountId?: string;
112
+ attachmentId?: string;
113
+ firewallSubnetIds?: string[];
114
+ ipam?: Ipam;
115
+ privateRouteTableIds?: string[];
116
+ privateSubnetIds?: string[];
117
+ publicSubnetIds?: string[];
118
+ transitGateway?: TransitGateway;
119
+ vpcCidrs?: string[];
120
+ vpcId?: string;
121
+ };
122
+ export type CoreAccounts = {
123
+ audit?: CoreAccount;
124
+ logArchive?: CoreAccount;
125
+ secInbound?: CoreAccount;
126
+ secOutbound?: CoreAccount;
127
+ secSecurity?: CoreAccount;
128
+ secSharedServices?: CoreAccount;
129
+ secTransit?: CoreAccount;
279
130
  };
280
- export type BoundaryResponse = {
281
- foundationId: string;
282
- boundaryId: string;
283
- details: BoundaryDetails;
284
- status: "READY" | "PENDING" | "DELETING" | "ERROR";
285
- tags: Tag[];
286
- createdAt: string;
287
- updatedAt: string;
288
- deletedAt?: string;
131
+ export type SecTool = {
132
+ status?: "READY" | "PENDING" | "ERROR" | "UNKNOWN" | "DELETING";
289
133
  };
290
- export type BoundarySsoDetails = {
291
- name: string;
292
- description: string;
293
- policyDocument: string;
134
+ export type SecTools = {
135
+ guardDuty?: SecTool;
136
+ inspector?: SecTool;
137
+ securityHub?: SecTool;
294
138
  };
295
- export type BoundarySsoResponse = {
296
- foundationId: string;
297
- boundarySSOId: string;
298
- details: BoundarySsoDetails;
299
- status: "READY" | "PENDING" | "DELETING" | "ERROR";
300
- tags: Tag[];
301
- createdAt: string;
302
- updatedAt: string;
303
- deletedAt?: string;
139
+ export type FoundationStatus = {
140
+ condition: ResourceCondition;
141
+ coreAccounts?: CoreAccounts;
142
+ orgRootId?: string;
143
+ preMortenOUId?: string;
144
+ secTools?: SecTools;
304
145
  };
305
- export type ResourceMetadata = {
306
- id: string;
307
- name: string;
308
- labels: {
309
- [key: string]: string;
310
- };
311
- creationTimestamp: string;
312
- deletionTimestamp?: string;
313
- uid?: string;
146
+ export type Foundation = {
147
+ metadata: ResourceMetadata;
148
+ spec: FoundationSpec;
149
+ status?: FoundationStatus;
314
150
  };
315
151
  export type FoundationRef = {
316
152
  name: string;
@@ -319,20 +155,40 @@ export type VpnSpec = {
319
155
  foundationRef: FoundationRef;
320
156
  destinationCidrBlock: string;
321
157
  peerCustomerGatewayIp: string;
158
+ tags: Tag[];
322
159
  };
323
- export type ResourceCondition = {
324
- state: "READY" | "PENDING" | "ERROR" | "UNKNOWN" | "DELETING";
325
- lastUpdateTimestamp: string;
326
- message?: string;
160
+ export type VpnConfiguration = {
161
+ ikev1?: string;
162
+ ikev2?: string;
327
163
  };
328
164
  export type VpnStatus = {
329
165
  condition: ResourceCondition;
166
+ customerGatewayId?: string;
167
+ vpnGatewayId?: string;
168
+ tunnelStatus?: string[];
169
+ configuration?: VpnConfiguration;
330
170
  };
331
171
  export type Vpn = {
332
172
  metadata: ResourceMetadata;
333
173
  spec: VpnSpec;
334
174
  status?: VpnStatus;
335
175
  };
176
+ export type ServiceControlPolicySpec = {
177
+ foundationRef: FoundationRef;
178
+ name: string;
179
+ description: string;
180
+ content: JsonNode;
181
+ target: Target;
182
+ tags: Tag[];
183
+ };
184
+ export type ServiceControlPolicyStatus = {
185
+ condition: ResourceCondition;
186
+ };
187
+ export type ServiceControlPolicy = {
188
+ metadata: ResourceMetadata;
189
+ spec: ServiceControlPolicySpec;
190
+ status?: ServiceControlPolicyStatus;
191
+ };
336
192
  export type FolderRef = {
337
193
  name: string;
338
194
  };
@@ -375,6 +231,34 @@ export type PermissionSet = {
375
231
  spec: PermissionSetSpec;
376
232
  status?: PermissionSetStatus;
377
233
  };
234
+ export type ProjectRef = {
235
+ name: string;
236
+ };
237
+ export type NetworkSpec = {
238
+ foundationRef: FoundationRef;
239
+ projectRef: ProjectRef;
240
+ prefixLength: number;
241
+ networkName: string;
242
+ networkType: "WORKLOAD" | "OUTBOUND" | "CORE";
243
+ tags: Tag[];
244
+ };
245
+ export type NetworkSubnet = {
246
+ az?: string;
247
+ cidr?: string;
248
+ id?: string;
249
+ "type": "NAT" | "PRIVATE" | "PUBLIC";
250
+ };
251
+ export type NetworkStatus = {
252
+ condition: ResourceCondition;
253
+ id?: string;
254
+ cidrs?: string[];
255
+ subnets: NetworkSubnet[];
256
+ };
257
+ export type Network = {
258
+ metadata: ResourceMetadata;
259
+ spec: NetworkSpec;
260
+ status?: NetworkStatus;
261
+ };
378
262
  export type PermissionSetRef = {
379
263
  name: string;
380
264
  };
@@ -462,6 +346,7 @@ export type FolderSpec = {
462
346
  foundationRef: FoundationRef;
463
347
  folderRef?: FolderRef;
464
348
  name: string;
349
+ tags: Tag[];
465
350
  };
466
351
  export type FolderStatus = {
467
352
  condition: ResourceCondition;
@@ -578,13 +463,11 @@ export type Firewall = {
578
463
  spec: FirewallSpec;
579
464
  status?: FirewallStatus;
580
465
  };
581
- export type ProjectRef = {
582
- name: string;
583
- };
584
466
  export type DnsZoneSpec = {
585
467
  foundationRef: FoundationRef;
586
468
  projectRef?: ProjectRef;
587
469
  domain: string;
470
+ tags: Tag[];
588
471
  };
589
472
  export type DnsZoneStatus = {
590
473
  condition: ResourceCondition;
@@ -636,6 +519,7 @@ export type CustomerPolicyAttachment = {
636
519
  export type CidrSpec = {
637
520
  foundationRef: FoundationRef;
638
521
  cidr: string;
522
+ tags: Tag[];
639
523
  };
640
524
  export type CidrStatus = {
641
525
  condition: ResourceCondition;
@@ -651,14 +535,67 @@ export type CertificateSpec = {
651
535
  tags: Tag[];
652
536
  domainName: string;
653
537
  };
538
+ export type DomainValidationOption = {
539
+ domainName?: string;
540
+ resourceRecordName?: string;
541
+ resourceRecordType?: string;
542
+ resourceRecordValue?: string;
543
+ };
654
544
  export type CertificateStatus = {
655
545
  condition: ResourceCondition;
546
+ domainName?: string;
547
+ domainValidationOptions?: DomainValidationOption[];
548
+ keyAlgorithm?: string;
549
+ notAfter?: string;
550
+ notBefore?: string;
551
+ subjectAlternativeNames?: string[];
552
+ "type"?: string;
553
+ validationEmails?: string[];
554
+ validationMethod?: string;
656
555
  };
657
556
  export type Certificate = {
658
557
  metadata: ResourceMetadata;
659
558
  spec: CertificateSpec;
660
559
  status?: CertificateStatus;
661
560
  };
561
+ export type BoundarySsoSpec = {
562
+ foundationRef: FoundationRef;
563
+ policyDocument: JsonNode;
564
+ tags: Tag[];
565
+ };
566
+ export type BoundarySsoStatus = {
567
+ condition: ResourceCondition;
568
+ stackSetName?: string;
569
+ stackSetId?: string;
570
+ stackSetArn?: string;
571
+ policyArn?: string;
572
+ ready?: boolean;
573
+ message?: string;
574
+ };
575
+ export type BoundarySso = {
576
+ metadata: ResourceMetadata;
577
+ spec: BoundarySsoSpec;
578
+ status?: BoundarySsoStatus;
579
+ };
580
+ export type BoundarySpec = {
581
+ foundationRef: FoundationRef;
582
+ policyDocument: JsonNode;
583
+ tags: Tag[];
584
+ };
585
+ export type BoundaryStatus = {
586
+ condition: ResourceCondition;
587
+ stackSetName?: string;
588
+ stackSetId?: string;
589
+ stackSetArn?: string;
590
+ policyArn?: string;
591
+ ready?: boolean;
592
+ message?: string;
593
+ };
594
+ export type Boundary = {
595
+ metadata: ResourceMetadata;
596
+ spec: BoundarySpec;
597
+ status?: BoundaryStatus;
598
+ };
662
599
  export type AccountAssignmentSpec = {
663
600
  foundationRef: FoundationRef;
664
601
  permissionSetRef: PermissionSetRef;
@@ -673,588 +610,280 @@ export type AccountAssignment = {
673
610
  spec: AccountAssignmentSpec;
674
611
  status?: AccountAssignmentStatus;
675
612
  };
676
- export type ListRole = {
677
- content: Role[];
678
- };
679
- export type ListFoundationResponse = {
680
- stackSpotAccountId: string;
681
- pendingResources: boolean;
682
- content: FoundationResponse[];
683
- };
684
- export type CreateFoundationRequest = {
685
- name: string;
686
- description: string;
687
- cloudProvider: string;
688
- region: string;
689
- masterAccountId: string;
690
- auditAccountId: string;
691
- prefix: string;
692
- orgId: string;
693
- portfolioId: string;
694
- logArchiveAccountId: string;
695
- };
696
- export type ListVpnResponse = {
697
- stackSpotAccountId: string;
698
- foundationId: string;
699
- pendingResources: boolean;
700
- content: VpnResponse[];
701
- };
702
- export type CreateVpnRequest = {
703
- peerCustomerGatewayIp: string;
704
- destinationCidrBlock: string;
705
- tags?: Tag[];
706
- };
707
- export type ListServiceControlPolicy = {
708
- /** Universally Unique Lexicographically Sortable Identifier */
709
- foundationId?: string;
710
- pendingResources: boolean;
711
- content: ServiceControlPolicy[];
712
- };
713
- export type ListProjectResponse = {
714
- stackSpotAccountId: string;
715
- foundationId: string;
716
- parentFolderId?: string;
717
- pendingResources: boolean;
718
- content: ProjectResponse[];
719
- };
720
- export type CreateProjectRequest = {
721
- parentFolderId: string;
722
- name: string;
723
- description: string;
724
- tags?: Tag[];
725
- };
726
- export type ListNetworkResponse = {
727
- stackSpotAccountId: string;
728
- foundationId: string;
729
- projectId?: string;
730
- pendingResources: boolean;
731
- content: NetworkResponse[];
732
- };
733
- export type CreateNetworkRequest = {
734
- projectId: string;
735
- prefixLength: number;
736
- name: string;
737
- "type": "WORKLOAD" | "OUTBOUND" | "CORE";
738
- tags?: Tag[];
739
- };
740
- export type CreateFolderRequest = {
741
- parentFolderId: string;
742
- name: string;
743
- tags?: Tag[];
744
- };
745
- export type ListDnsZoneResponse = {
746
- stackSpotAccountId: string;
747
- foundationId: string;
748
- pendingResources: boolean;
749
- content: DnsZoneResponse[];
750
- };
751
- export type CreateDnsZoneRequest = {
752
- domain: string;
753
- "type": "PUBLIC" | "PRIVATE";
754
- projectId?: string;
755
- tags?: Tag[];
756
- };
757
- export type ListDnsRecordResponse = {
758
- stackSpotAccountId: string;
759
- foundationId: string;
760
- projectId?: string;
761
- dnsZoneId?: string;
762
- pendingResources: boolean;
763
- content: DnsRecordResponse[];
764
- };
765
- export type CreateDnsRecordRequest = {
766
- dnsZoneId: string;
767
- projectId?: string;
768
- recordName: string;
769
- records: string[];
770
- ttl: number;
771
- "type": "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "PTR" | "SOA" | "SRV" | "TXT";
772
- };
773
- export type ListCidrResponse = {
774
- stackSpotAccountId: string;
775
- foundationId: string;
776
- pendingResources: boolean;
777
- content: CidrResponse[];
778
- };
779
- export type CreateCidrRequest = {
780
- address: string;
781
- prefix: number;
782
- tags?: Tag[];
783
- };
784
- export type ListCertificateResponse = {
785
- stackSpotAccountId: string;
786
- foundationId: string;
787
- pendingResources: boolean;
788
- content: CertificateResponse[];
789
- };
790
- export type CreateCertificateRequestBase = {
791
- tags?: Tag[];
792
- certificateName: string;
793
- forInbound: "TRUE" | "FALSE";
794
- "type": string;
795
- };
796
- export type CreatePublicCertificateRequest = {
797
- "type": "CreatePublicCertificateRequest";
798
- } & CreateCertificateRequestBase & {
799
- domainName: string;
800
- };
801
- export type ImportCertificateRequest = {
802
- "type": "ImportCertificateRequest";
803
- } & CreateCertificateRequestBase & {
804
- certificateBody: string;
805
- certificatePrivateKey: string;
806
- certificateChain?: string;
807
- };
808
- export type ListBoundaryResponse = {
809
- foundationId: string;
810
- pendingResources: boolean;
811
- content: BoundaryResponse[];
812
- };
813
- export type JsonNode = any;
814
- export type CreateBoundaryRequest = {
815
- name: string;
816
- description: string;
817
- policyDocument: JsonNode;
818
- tags: Tag[];
819
- };
820
- export type ListBoundarySsoResponse = {
821
- foundationId: string;
822
- pendingResources: boolean;
823
- content: BoundarySsoResponse[];
824
- };
825
- export type CreateBoundarySsoRequest = {
826
- name: string;
827
- description: string;
828
- policyDocument: JsonNode;
829
- tags: Tag[];
830
- };
831
- export type Configuration = {
832
- ikev1: string;
833
- ikev2: string;
834
- };
835
- export type VpnConfigurationResponse = {
836
- vpnId: string;
837
- foundationId: string;
838
- configuration: Configuration;
839
- };
840
- export function projectControllerPutTags({ $namespace, name, body }: {
613
+ export function vpnControllerPutTags({ $namespace, name, body }: {
841
614
  $namespace: string;
842
615
  name: string;
843
616
  body: Tag[];
844
617
  }, opts?: Oazapfts.RequestOpts) {
845
- return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/projects/${encodeURIComponent(name)}/tags`, oazapfts.json({
618
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/vpns/${encodeURIComponent(name)}/tags`, oazapfts.json({
846
619
  ...opts,
847
620
  method: "PUT",
848
621
  body
849
622
  })));
850
623
  }
851
- export function projectControllerPutName({ $namespace, name, body }: {
624
+ export function serviceControlPolicyControllerPutTarget({ $namespace, name, target }: {
852
625
  $namespace: string;
853
626
  name: string;
854
- body: string;
627
+ target: Target;
855
628
  }, opts?: Oazapfts.RequestOpts) {
856
- return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/projects/${encodeURIComponent(name)}/name`, oazapfts.json({
629
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}/target`, oazapfts.json({
857
630
  ...opts,
858
631
  method: "PUT",
859
- body
632
+ body: target
860
633
  })));
861
634
  }
862
- export function folderControllerPutTags({ $namespace, name, body }: {
635
+ export function serviceControlPolicyControllerPutTags({ $namespace, name, body }: {
863
636
  $namespace: string;
864
637
  name: string;
865
638
  body: Tag[];
866
639
  }, opts?: Oazapfts.RequestOpts) {
867
- return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/folders/${encodeURIComponent(name)}/tags`, oazapfts.json({
640
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}/tags`, oazapfts.json({
868
641
  ...opts,
869
642
  method: "PUT",
870
643
  body
871
644
  })));
872
645
  }
873
- export function folderControllerPutName({ $namespace, name, body }: {
646
+ export function serviceControlPolicyControllerPutName({ $namespace, name, body }: {
874
647
  $namespace: string;
875
648
  name: string;
876
649
  body: string;
877
650
  }, opts?: Oazapfts.RequestOpts) {
878
- return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/folders/${encodeURIComponent(name)}/name`, oazapfts.json({
651
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}/name`, oazapfts.json({
879
652
  ...opts,
880
653
  method: "PUT",
881
654
  body
882
655
  })));
883
656
  }
884
- export function dnsRecordControllerPutTtl({ $namespace, name, body }: {
657
+ export function serviceControlPolicyControllerPutDescription({ $namespace, name, body }: {
885
658
  $namespace: string;
886
659
  name: string;
887
- body: number;
660
+ body: string;
888
661
  }, opts?: Oazapfts.RequestOpts) {
889
- return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records/${encodeURIComponent(name)}/ttl`, oazapfts.json({
662
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}/description`, oazapfts.json({
890
663
  ...opts,
891
664
  method: "PUT",
892
665
  body
893
666
  })));
894
667
  }
895
- export function dnsRecordControllerPutRecords({ $namespace, name, body }: {
668
+ export function serviceControlPolicyControllerPutContent({ $namespace, name, jsonNode }: {
896
669
  $namespace: string;
897
670
  name: string;
898
- body: string[];
671
+ jsonNode: JsonNode;
899
672
  }, opts?: Oazapfts.RequestOpts) {
900
- return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records/${encodeURIComponent(name)}/records`, oazapfts.json({
673
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}/content`, oazapfts.json({
901
674
  ...opts,
902
675
  method: "PUT",
903
- body
676
+ body: jsonNode
904
677
  })));
905
678
  }
906
- export function certificateControllerPutTags({ $namespace, name, body }: {
679
+ export function foundationControllerPutSecProjectTags({ $namespace, body }: {
907
680
  $namespace: string;
908
- name: string;
909
681
  body: Tag[];
910
682
  }, opts?: Oazapfts.RequestOpts) {
911
- return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/certificates/${encodeURIComponent(name)}/tags`, oazapfts.json({
683
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/sec-project-tags`, oazapfts.json({
912
684
  ...opts,
913
685
  method: "PUT",
914
686
  body
915
687
  })));
916
688
  }
917
- export function getRole({ roleName }: {
918
- roleName: string;
919
- }, opts?: Oazapfts.RequestOpts) {
920
- return oazapfts.ok(oazapfts.fetchJson<{
921
- status: 200;
922
- data: Role;
923
- }>(`/portal/roles/${encodeURIComponent(roleName)}`, {
924
- ...opts
925
- }));
926
- }
927
- export function putRole({ roleName, role }: {
928
- roleName: string;
929
- role: Role;
689
+ export function projectControllerPutTags({ $namespace, name, body }: {
690
+ $namespace: string;
691
+ name: string;
692
+ body: Tag[];
930
693
  }, opts?: Oazapfts.RequestOpts) {
931
- return oazapfts.ok(oazapfts.fetchJson<{
932
- status: 202;
933
- data: Role;
934
- }>(`/portal/roles/${encodeURIComponent(roleName)}`, oazapfts.json({
694
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/projects/${encodeURIComponent(name)}/tags`, oazapfts.json({
935
695
  ...opts,
936
696
  method: "PUT",
937
- body: role
697
+ body
938
698
  })));
939
699
  }
940
- export function deleteRole({ roleName }: {
941
- roleName: string;
700
+ export function projectControllerPutName({ $namespace, name, body }: {
701
+ $namespace: string;
702
+ name: string;
703
+ body: string;
942
704
  }, opts?: Oazapfts.RequestOpts) {
943
- return oazapfts.ok(oazapfts.fetchText(`/portal/roles/${encodeURIComponent(roleName)}`, {
705
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/projects/${encodeURIComponent(name)}/name`, oazapfts.json({
944
706
  ...opts,
945
- method: "DELETE"
946
- }));
707
+ method: "PUT",
708
+ body
709
+ })));
947
710
  }
948
- export function putVpnTags({ authorization, xAccountId, foundationId, vpnId, body }: {
949
- authorization: string;
950
- xAccountId?: string;
951
- foundationId: string;
952
- vpnId: string;
711
+ export function networkControllerPutTags({ $namespace, name, body }: {
712
+ $namespace: string;
713
+ name: string;
953
714
  body: Tag[];
954
715
  }, opts?: Oazapfts.RequestOpts) {
955
- return oazapfts.ok(oazapfts.fetchJson<{
956
- status: 202;
957
- data: VpnResponse;
958
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}/tags`, oazapfts.json({
716
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/networks/${encodeURIComponent(name)}/tags`, oazapfts.json({
959
717
  ...opts,
960
718
  method: "PUT",
961
- body,
962
- headers: oazapfts.mergeHeaders(opts?.headers, {
963
- Authorization: authorization,
964
- "x-account-id": xAccountId
965
- })
719
+ body
966
720
  })));
967
721
  }
968
- export function getServiceControlPolicy({ foundationId, serviceControlPolicyId }: {
969
- foundationId: string;
970
- serviceControlPolicyId: string;
971
- }, opts?: Oazapfts.RequestOpts) {
972
- return oazapfts.ok(oazapfts.fetchJson<{
973
- status: 200;
974
- data: ServiceControlPolicy;
975
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/service-control-policies/${encodeURIComponent(serviceControlPolicyId)}`, {
976
- ...opts
977
- }));
978
- }
979
- export function putServiceControlPolicy({ foundationId, serviceControlPolicyId, serviceControlPolicy }: {
980
- foundationId: string;
981
- serviceControlPolicyId: string;
982
- serviceControlPolicy: ServiceControlPolicy;
722
+ export function networkControllerPutNetworkName({ $namespace, name, body }: {
723
+ $namespace: string;
724
+ name: string;
725
+ body: string;
983
726
  }, opts?: Oazapfts.RequestOpts) {
984
- return oazapfts.ok(oazapfts.fetchJson<{
985
- status: 202;
986
- data: ServiceControlPolicy;
987
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/service-control-policies/${encodeURIComponent(serviceControlPolicyId)}`, oazapfts.json({
727
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/networks/${encodeURIComponent(name)}/networkName`, oazapfts.json({
988
728
  ...opts,
989
729
  method: "PUT",
990
- body: serviceControlPolicy
730
+ body
991
731
  })));
992
732
  }
993
- export function deleteServiceControlPolicy({ foundationId, serviceControlPolicyId }: {
994
- foundationId: string;
995
- serviceControlPolicyId: string;
996
- }, opts?: Oazapfts.RequestOpts) {
997
- return oazapfts.ok(oazapfts.fetchJson<{
998
- status: 202;
999
- data: ServiceControlPolicy;
1000
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/service-control-policies/${encodeURIComponent(serviceControlPolicyId)}`, {
1001
- ...opts,
1002
- method: "DELETE"
1003
- }));
1004
- }
1005
- export function putFoundationSecProjectTags({ foundationId, body }: {
1006
- foundationId: string;
733
+ export function folderControllerPutTags({ $namespace, name, body }: {
734
+ $namespace: string;
735
+ name: string;
1007
736
  body: Tag[];
1008
737
  }, opts?: Oazapfts.RequestOpts) {
1009
- return oazapfts.ok(oazapfts.fetchJson<{
1010
- status: 202;
1011
- data: FoundationResponse;
1012
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/sec-project-tags`, oazapfts.json({
738
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/folders/${encodeURIComponent(name)}/tags`, oazapfts.json({
1013
739
  ...opts,
1014
740
  method: "PUT",
1015
741
  body
1016
742
  })));
1017
743
  }
1018
- export function putProjectTags({ authorization, xAccountId, foundationId, projectId, body }: {
1019
- authorization: string;
1020
- xAccountId?: string;
1021
- foundationId: string;
1022
- projectId: string;
1023
- body: Tag[];
744
+ export function folderControllerPutName({ $namespace, name, body }: {
745
+ $namespace: string;
746
+ name: string;
747
+ body: string;
1024
748
  }, opts?: Oazapfts.RequestOpts) {
1025
- return oazapfts.ok(oazapfts.fetchJson<{
1026
- status: 202;
1027
- data: ProjectResponse;
1028
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/projects/${encodeURIComponent(projectId)}/tags`, oazapfts.json({
749
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/folders/${encodeURIComponent(name)}/name`, oazapfts.json({
1029
750
  ...opts,
1030
751
  method: "PUT",
1031
- body,
1032
- headers: oazapfts.mergeHeaders(opts?.headers, {
1033
- Authorization: authorization,
1034
- "x-account-id": xAccountId
1035
- })
752
+ body
1036
753
  })));
1037
754
  }
1038
- export function putNetworkTags({ authorization, xAccountId, foundationId, networkId, body }: {
1039
- authorization: string;
1040
- xAccountId?: string;
1041
- foundationId: string;
1042
- networkId: string;
755
+ export function dnsZoneControllerPutTags({ $namespace, name, body }: {
756
+ $namespace: string;
757
+ name: string;
1043
758
  body: Tag[];
1044
759
  }, opts?: Oazapfts.RequestOpts) {
1045
- return oazapfts.ok(oazapfts.fetchJson<{
1046
- status: 202;
1047
- data: NetworkResponse;
1048
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}/tags`, oazapfts.json({
760
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-zones/${encodeURIComponent(name)}/tags`, oazapfts.json({
1049
761
  ...opts,
1050
762
  method: "PUT",
1051
- body,
1052
- headers: oazapfts.mergeHeaders(opts?.headers, {
1053
- Authorization: authorization,
1054
- "x-account-id": xAccountId
1055
- })
763
+ body
1056
764
  })));
1057
765
  }
1058
- export function getFolderTags({ authorization, xAccountId, foundationId, folderId }: {
1059
- authorization: string;
1060
- xAccountId?: string;
1061
- foundationId: string;
1062
- folderId: string;
766
+ export function dnsRecordControllerPutTtl({ $namespace, name, body }: {
767
+ $namespace: string;
768
+ name: string;
769
+ body: number;
1063
770
  }, opts?: Oazapfts.RequestOpts) {
1064
- return oazapfts.ok(oazapfts.fetchJson<{
1065
- status: 202;
1066
- data: Tag[];
1067
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/folders/${encodeURIComponent(folderId)}/tags`, {
771
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records/${encodeURIComponent(name)}/ttl`, oazapfts.json({
1068
772
  ...opts,
1069
- headers: oazapfts.mergeHeaders(opts?.headers, {
1070
- Authorization: authorization,
1071
- "x-account-id": xAccountId
1072
- })
1073
- }));
773
+ method: "PUT",
774
+ body
775
+ })));
1074
776
  }
1075
- export function putFolderTags({ authorization, xAccountId, foundationId, folderId, body }: {
1076
- authorization: string;
1077
- xAccountId?: string;
1078
- foundationId: string;
1079
- folderId: string;
1080
- body: Tag[];
777
+ export function dnsRecordControllerPutRecords({ $namespace, name, body }: {
778
+ $namespace: string;
779
+ name: string;
780
+ body: string[];
1081
781
  }, opts?: Oazapfts.RequestOpts) {
1082
- return oazapfts.ok(oazapfts.fetchJson<{
1083
- status: 202;
1084
- data: FolderResponse;
1085
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/folders/${encodeURIComponent(folderId)}/tags`, oazapfts.json({
782
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records/${encodeURIComponent(name)}/records`, oazapfts.json({
1086
783
  ...opts,
1087
784
  method: "PUT",
1088
- body,
1089
- headers: oazapfts.mergeHeaders(opts?.headers, {
1090
- Authorization: authorization,
1091
- "x-account-id": xAccountId
1092
- })
785
+ body
1093
786
  })));
1094
787
  }
1095
- export function putDnsZoneTags({ authorization, xAccountId, foundationId, dnsZoneId, body }: {
1096
- authorization: string;
1097
- xAccountId?: string;
1098
- foundationId: string;
1099
- dnsZoneId: string;
788
+ export function cidrControllerPutTags({ $namespace, name, body }: {
789
+ $namespace: string;
790
+ name: string;
1100
791
  body: Tag[];
1101
792
  }, opts?: Oazapfts.RequestOpts) {
1102
- return oazapfts.ok(oazapfts.fetchJson<{
1103
- status: 202;
1104
- data: DnsZoneResponse;
1105
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-zones/${encodeURIComponent(dnsZoneId)}/tags`, oazapfts.json({
793
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/cidrs/${encodeURIComponent(name)}/tags`, oazapfts.json({
1106
794
  ...opts,
1107
795
  method: "PUT",
1108
- body,
1109
- headers: oazapfts.mergeHeaders(opts?.headers, {
1110
- Authorization: authorization,
1111
- "x-account-id": xAccountId
1112
- })
796
+ body
1113
797
  })));
1114
798
  }
1115
- export function putDnsRecordRecords({ authorization, xAccountId, foundationId, dnsRecordId, body }: {
1116
- authorization: string;
1117
- xAccountId?: string;
1118
- foundationId: string;
1119
- dnsRecordId: string;
1120
- body: string[];
799
+ export function certificateControllerPutTags({ $namespace, name, body }: {
800
+ $namespace: string;
801
+ name: string;
802
+ body: Tag[];
1121
803
  }, opts?: Oazapfts.RequestOpts) {
1122
- return oazapfts.ok(oazapfts.fetchJson<{
1123
- status: 200;
1124
- data: DnsRecordResponse;
1125
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-records/${encodeURIComponent(dnsRecordId)}/records`, oazapfts.json({
804
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/certificates/${encodeURIComponent(name)}/tags`, oazapfts.json({
1126
805
  ...opts,
1127
806
  method: "PUT",
1128
- body,
1129
- headers: oazapfts.mergeHeaders(opts?.headers, {
1130
- Authorization: authorization,
1131
- "x-account-id": xAccountId
1132
- })
807
+ body
1133
808
  })));
1134
809
  }
1135
- export function putCidrTags({ authorization, xAccountId, foundationId, cidrId, body }: {
1136
- authorization: string;
1137
- xAccountId?: string;
1138
- foundationId: string;
1139
- cidrId: string;
810
+ export function boundarySsoControllerPutTags({ $namespace, name, body }: {
811
+ $namespace: string;
812
+ name: string;
1140
813
  body: Tag[];
1141
814
  }, opts?: Oazapfts.RequestOpts) {
1142
- return oazapfts.ok(oazapfts.fetchJson<{
1143
- status: 202;
1144
- data: CidrResponse;
1145
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/cidrs/${encodeURIComponent(cidrId)}/tags`, oazapfts.json({
815
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundary-ssos/${encodeURIComponent(name)}/tags`, oazapfts.json({
1146
816
  ...opts,
1147
817
  method: "PUT",
1148
- body,
1149
- headers: oazapfts.mergeHeaders(opts?.headers, {
1150
- Authorization: authorization,
1151
- "x-account-id": xAccountId
1152
- })
818
+ body
1153
819
  })));
1154
820
  }
1155
- export function putCertificateTags({ authorization, xAccountId, foundationId, certificateId, body }: {
1156
- authorization: string;
1157
- xAccountId?: string;
1158
- foundationId: string;
1159
- certificateId: string;
1160
- body: Tag[];
821
+ export function boundarySsoControllerPutPolicyDocument({ $namespace, name, jsonNode }: {
822
+ $namespace: string;
823
+ name: string;
824
+ jsonNode: JsonNode;
1161
825
  }, opts?: Oazapfts.RequestOpts) {
1162
- return oazapfts.ok(oazapfts.fetchJson<{
1163
- status: 202;
1164
- data: CertificateResponse;
1165
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/certificates/${encodeURIComponent(certificateId)}/tags`, oazapfts.json({
826
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundary-ssos/${encodeURIComponent(name)}/policy-document`, oazapfts.json({
1166
827
  ...opts,
1167
828
  method: "PUT",
1168
- body,
1169
- headers: oazapfts.mergeHeaders(opts?.headers, {
1170
- Authorization: authorization,
1171
- "x-account-id": xAccountId
1172
- })
829
+ body: jsonNode
1173
830
  })));
1174
831
  }
1175
- export function putBoundaryTags({ foundationId, boundaryId, body }: {
1176
- foundationId: string;
1177
- boundaryId: string;
832
+ export function boundaryControllerPutTags({ $namespace, name, body }: {
833
+ $namespace: string;
834
+ name: string;
1178
835
  body: Tag[];
1179
836
  }, opts?: Oazapfts.RequestOpts) {
1180
- return oazapfts.ok(oazapfts.fetchJson<{
1181
- status: 202;
1182
- data: BoundaryResponse;
1183
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}/tags`, oazapfts.json({
837
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundaries/${encodeURIComponent(name)}/tags`, oazapfts.json({
1184
838
  ...opts,
1185
839
  method: "PUT",
1186
840
  body
1187
841
  })));
1188
842
  }
1189
- export function putBoundaryPolicyDocument({ foundationId, boundaryId, body }: {
1190
- foundationId: string;
1191
- boundaryId: string;
1192
- body: string;
843
+ export function boundaryControllerPutPolicyDocument({ $namespace, name, jsonNode }: {
844
+ $namespace: string;
845
+ name: string;
846
+ jsonNode: JsonNode;
1193
847
  }, opts?: Oazapfts.RequestOpts) {
1194
- return oazapfts.ok(oazapfts.fetchJson<{
1195
- status: 202;
1196
- data: BoundaryResponse;
1197
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}/policy-document`, {
848
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundaries/${encodeURIComponent(name)}/policy-document`, oazapfts.json({
1198
849
  ...opts,
1199
850
  method: "PUT",
1200
- body
1201
- }));
851
+ body: jsonNode
852
+ })));
1202
853
  }
1203
- export function putBoundaryDescription({ foundationId, boundaryId, body }: {
1204
- foundationId: string;
1205
- boundaryId: string;
1206
- body: string;
1207
- }, opts?: Oazapfts.RequestOpts) {
854
+ export function roleControllerList(opts?: Oazapfts.RequestOpts) {
1208
855
  return oazapfts.ok(oazapfts.fetchJson<{
1209
- status: 202;
1210
- data: BoundaryResponse;
1211
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}/description`, {
1212
- ...opts,
1213
- method: "PUT",
1214
- body
856
+ status: 200;
857
+ data: Role[];
858
+ }>("/v2/roles", {
859
+ ...opts
1215
860
  }));
1216
861
  }
1217
- export function putBoundarySsoTags({ foundationId, boundarySsoId, body }: {
1218
- foundationId: string;
1219
- boundarySsoId: string;
1220
- body: Tag[];
862
+ export function roleControllerCreate({ roleSpec }: {
863
+ roleSpec: RoleSpec;
1221
864
  }, opts?: Oazapfts.RequestOpts) {
1222
- return oazapfts.ok(oazapfts.fetchJson<{
1223
- status: 202;
1224
- data: BoundarySsoResponse;
1225
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}/tags`, oazapfts.json({
865
+ return oazapfts.ok(oazapfts.fetchText("/v2/roles", oazapfts.json({
1226
866
  ...opts,
1227
- method: "PUT",
1228
- body
867
+ method: "POST",
868
+ body: roleSpec
1229
869
  })));
1230
870
  }
1231
- export function putBoundarySsoPolicyDocument({ foundationId, boundarySsoId, body }: {
1232
- foundationId: string;
1233
- boundarySsoId: string;
1234
- body: string;
1235
- }, opts?: Oazapfts.RequestOpts) {
871
+ export function foundationControllerList(opts?: Oazapfts.RequestOpts) {
1236
872
  return oazapfts.ok(oazapfts.fetchJson<{
1237
- status: 202;
1238
- data: BoundarySsoResponse;
1239
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}/policy-document`, {
1240
- ...opts,
1241
- method: "PUT",
1242
- body
873
+ status: 200;
874
+ data: Foundation[];
875
+ }>("/v2/foundations", {
876
+ ...opts
1243
877
  }));
1244
878
  }
1245
- export function putBoundarySsoDescription({ foundationId, boundarySsoId, body }: {
1246
- foundationId: string;
1247
- boundarySsoId: string;
1248
- body: string;
879
+ export function foundationControllerCreate({ foundationSpec }: {
880
+ foundationSpec: FoundationSpec;
1249
881
  }, opts?: Oazapfts.RequestOpts) {
1250
- return oazapfts.ok(oazapfts.fetchJson<{
1251
- status: 202;
1252
- data: BoundarySsoResponse;
1253
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}/description`, {
882
+ return oazapfts.ok(oazapfts.fetchText("/v2/foundations", oazapfts.json({
1254
883
  ...opts,
1255
- method: "PUT",
1256
- body
1257
- }));
884
+ method: "POST",
885
+ body: foundationSpec
886
+ })));
1258
887
  }
1259
888
  export function vpnControllerList({ $namespace }: {
1260
889
  $namespace: string;
@@ -1276,13 +905,36 @@ export function vpnControllerCreate({ $namespace, vpnSpec }: {
1276
905
  body: vpnSpec
1277
906
  })));
1278
907
  }
1279
- export function projectControllerList({ $namespace }: {
908
+ export function serviceControlPolicyControllerList({ $namespace }: {
909
+ $namespace: string;
910
+ }, opts?: Oazapfts.RequestOpts) {
911
+ return oazapfts.ok(oazapfts.fetchJson<{
912
+ status: 200;
913
+ data: ServiceControlPolicy[];
914
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies`, {
915
+ ...opts
916
+ }));
917
+ }
918
+ export function serviceControlPolicyControllerCreate({ $namespace, serviceControlPolicySpec }: {
919
+ $namespace: string;
920
+ serviceControlPolicySpec: ServiceControlPolicySpec;
921
+ }, opts?: Oazapfts.RequestOpts) {
922
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies`, oazapfts.json({
923
+ ...opts,
924
+ method: "POST",
925
+ body: serviceControlPolicySpec
926
+ })));
927
+ }
928
+ export function projectControllerListByFolderRef({ $namespace, folderRef }: {
1280
929
  $namespace: string;
930
+ folderRef?: string;
1281
931
  }, opts?: Oazapfts.RequestOpts) {
1282
932
  return oazapfts.ok(oazapfts.fetchJson<{
1283
933
  status: 200;
1284
934
  data: Project[];
1285
- }>(`/v2/foundations/${encodeURIComponent($namespace)}/projects`, {
935
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}/projects${QS.query(QS.explode({
936
+ folderRef
937
+ }))}`, {
1286
938
  ...opts
1287
939
  }));
1288
940
  }
@@ -1316,6 +968,29 @@ export function permissionSetControllerCreate({ $namespace, permissionSetSpec }:
1316
968
  body: permissionSetSpec
1317
969
  })));
1318
970
  }
971
+ export function networkControllerListBy({ $namespace, projectName }: {
972
+ $namespace: string;
973
+ projectName?: string;
974
+ }, opts?: Oazapfts.RequestOpts) {
975
+ return oazapfts.ok(oazapfts.fetchJson<{
976
+ status: 200;
977
+ data: Network[];
978
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}/networks${QS.query(QS.explode({
979
+ projectName
980
+ }))}`, {
981
+ ...opts
982
+ }));
983
+ }
984
+ export function networkControllerCreate({ $namespace, networkSpec }: {
985
+ $namespace: string;
986
+ networkSpec: NetworkSpec;
987
+ }, opts?: Oazapfts.RequestOpts) {
988
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/networks`, oazapfts.json({
989
+ ...opts,
990
+ method: "POST",
991
+ body: networkSpec
992
+ })));
993
+ }
1319
994
  export function managedPolicyAttachmentControllerList({ $namespace }: {
1320
995
  $namespace: string;
1321
996
  }, opts?: Oazapfts.RequestOpts) {
@@ -1416,13 +1091,16 @@ export function identityCenterControllerCreate({ $namespace, identityCenterSpec
1416
1091
  body: identityCenterSpec
1417
1092
  })));
1418
1093
  }
1419
- export function folderControllerList({ $namespace }: {
1094
+ export function folderControllerListByFolderRef({ $namespace, folderName }: {
1420
1095
  $namespace: string;
1096
+ folderName?: string;
1421
1097
  }, opts?: Oazapfts.RequestOpts) {
1422
1098
  return oazapfts.ok(oazapfts.fetchJson<{
1423
1099
  status: 200;
1424
1100
  data: Folder[];
1425
- }>(`/v2/foundations/${encodeURIComponent($namespace)}/folders`, {
1101
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}/folders${QS.query(QS.explode({
1102
+ folderName
1103
+ }))}`, {
1426
1104
  ...opts
1427
1105
  }));
1428
1106
  }
@@ -1463,593 +1141,240 @@ export function fmsAssociateAdminAccountControllerList({ $namespace }: {
1463
1141
  status: 200;
1464
1142
  data: FmsAssociateAdminAccount[];
1465
1143
  }>(`/v2/foundations/${encodeURIComponent($namespace)}/fms-associate-admin-accounts`, {
1466
- ...opts
1467
- }));
1468
- }
1469
- export function fmsAssociateAdminAccountControllerCreate({ $namespace, fmsAssociateAdminAccountSpec }: {
1470
- $namespace: string;
1471
- fmsAssociateAdminAccountSpec: FmsAssociateAdminAccountSpec;
1472
- }, opts?: Oazapfts.RequestOpts) {
1473
- return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/fms-associate-admin-accounts`, oazapfts.json({
1474
- ...opts,
1475
- method: "POST",
1476
- body: fmsAssociateAdminAccountSpec
1477
- })));
1478
- }
1479
- export function firewallControllerList({ $namespace }: {
1480
- $namespace: string;
1481
- }, opts?: Oazapfts.RequestOpts) {
1482
- return oazapfts.ok(oazapfts.fetchJson<{
1483
- status: 200;
1484
- data: Firewall[];
1485
- }>(`/v2/foundations/${encodeURIComponent($namespace)}/firewall`, {
1486
- ...opts
1487
- }));
1488
- }
1489
- export function firewallControllerCreate({ $namespace, firewallSpec }: {
1490
- $namespace: string;
1491
- firewallSpec: FirewallSpec;
1492
- }, opts?: Oazapfts.RequestOpts) {
1493
- return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/firewall`, oazapfts.json({
1494
- ...opts,
1495
- method: "POST",
1496
- body: firewallSpec
1497
- })));
1498
- }
1499
- export function dnsZoneControllerListPrivate({ $namespace, $type, projectName }: {
1500
- $namespace: string;
1501
- $type: "PUBLIC" | "PRIVATE";
1502
- projectName: string;
1503
- }, opts?: Oazapfts.RequestOpts) {
1504
- return oazapfts.ok(oazapfts.fetchJson<{
1505
- status: 200;
1506
- data: DnsZone[];
1507
- }>(`/v2/foundations/${encodeURIComponent($namespace)}/dns-zones${QS.query(QS.explode({
1508
- "type": $type,
1509
- projectName
1510
- }))}`, {
1511
- ...opts
1512
- }));
1513
- }
1514
- export function dnsZoneControllerCreate({ $namespace, dnsZoneSpec }: {
1515
- $namespace: string;
1516
- dnsZoneSpec: DnsZoneSpec;
1517
- }, opts?: Oazapfts.RequestOpts) {
1518
- return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-zones`, oazapfts.json({
1519
- ...opts,
1520
- method: "POST",
1521
- body: dnsZoneSpec
1522
- })));
1523
- }
1524
- export function dnsRecordControllerList({ $namespace }: {
1525
- $namespace: string;
1526
- }, opts?: Oazapfts.RequestOpts) {
1527
- return oazapfts.ok(oazapfts.fetchJson<{
1528
- status: 200;
1529
- data: DnsRecord[];
1530
- }>(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records`, {
1531
- ...opts
1532
- }));
1533
- }
1534
- export function dnsRecordControllerCreate({ $namespace, dnsRecordSpec }: {
1535
- $namespace: string;
1536
- dnsRecordSpec: DnsRecordSpec;
1537
- }, opts?: Oazapfts.RequestOpts) {
1538
- return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records`, oazapfts.json({
1539
- ...opts,
1540
- method: "POST",
1541
- body: dnsRecordSpec
1542
- })));
1543
- }
1544
- export function customerPolicyAttachmentControllerList({ $namespace }: {
1545
- $namespace: string;
1546
- }, opts?: Oazapfts.RequestOpts) {
1547
- return oazapfts.ok(oazapfts.fetchJson<{
1548
- status: 200;
1549
- data: CustomerPolicyAttachment[];
1550
- }>(`/v2/foundations/${encodeURIComponent($namespace)}/customer-policy-attachments`, {
1551
- ...opts
1552
- }));
1553
- }
1554
- export function customerPolicyAttachmentControllerCreate({ $namespace, customerPolicyAttachmentSpec }: {
1555
- $namespace: string;
1556
- customerPolicyAttachmentSpec: CustomerPolicyAttachmentSpec;
1557
- }, opts?: Oazapfts.RequestOpts) {
1558
- return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/customer-policy-attachments`, oazapfts.json({
1559
- ...opts,
1560
- method: "POST",
1561
- body: customerPolicyAttachmentSpec
1562
- })));
1563
- }
1564
- export function cidrControllerList({ $namespace }: {
1565
- $namespace: string;
1566
- }, opts?: Oazapfts.RequestOpts) {
1567
- return oazapfts.ok(oazapfts.fetchJson<{
1568
- status: 200;
1569
- data: Cidr[];
1570
- }>(`/v2/foundations/${encodeURIComponent($namespace)}/cidrs`, {
1571
- ...opts
1572
- }));
1573
- }
1574
- export function cidrControllerCreate({ $namespace, cidrSpec }: {
1575
- $namespace: string;
1576
- cidrSpec: CidrSpec;
1577
- }, opts?: Oazapfts.RequestOpts) {
1578
- return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/cidrs`, oazapfts.json({
1579
- ...opts,
1580
- method: "POST",
1581
- body: cidrSpec
1582
- })));
1583
- }
1584
- export function certificateControllerList({ $namespace }: {
1585
- $namespace: string;
1586
- }, opts?: Oazapfts.RequestOpts) {
1587
- return oazapfts.ok(oazapfts.fetchJson<{
1588
- status: 200;
1589
- data: Certificate[];
1590
- }>(`/v2/foundations/${encodeURIComponent($namespace)}/certificates`, {
1591
- ...opts
1592
- }));
1593
- }
1594
- export function certificateControllerCreate({ $namespace, certificateSpec }: {
1595
- $namespace: string;
1596
- certificateSpec: CertificateSpec;
1597
- }, opts?: Oazapfts.RequestOpts) {
1598
- return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/certificates`, oazapfts.json({
1599
- ...opts,
1600
- method: "POST",
1601
- body: certificateSpec
1602
- })));
1603
- }
1604
- export function accountAssignmentControllerList({ $namespace }: {
1605
- $namespace: string;
1606
- }, opts?: Oazapfts.RequestOpts) {
1607
- return oazapfts.ok(oazapfts.fetchJson<{
1608
- status: 200;
1609
- data: AccountAssignment[];
1610
- }>(`/v2/foundations/${encodeURIComponent($namespace)}/account-assignments`, {
1611
- ...opts
1612
- }));
1613
- }
1614
- export function accountAssignmentControllerCreate({ $namespace, accountAssignmentSpec }: {
1615
- $namespace: string;
1616
- accountAssignmentSpec: AccountAssignmentSpec;
1617
- }, opts?: Oazapfts.RequestOpts) {
1618
- return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/account-assignments`, oazapfts.json({
1619
- ...opts,
1620
- method: "POST",
1621
- body: accountAssignmentSpec
1622
- })));
1623
- }
1624
- export function listRole(opts?: Oazapfts.RequestOpts) {
1625
- return oazapfts.ok(oazapfts.fetchJson<{
1626
- status: 200;
1627
- data: ListRole;
1628
- }>("/portal/roles", {
1629
- ...opts
1630
- }));
1631
- }
1632
- export function createRole({ role }: {
1633
- role: Role;
1634
- }, opts?: Oazapfts.RequestOpts) {
1635
- return oazapfts.ok(oazapfts.fetchJson<{
1636
- status: 202;
1637
- data: Role;
1638
- }>("/portal/roles", oazapfts.json({
1639
- ...opts,
1640
- method: "POST",
1641
- body: role
1642
- })));
1643
- }
1644
- export function listFoundations({ authorization, xAccountId }: {
1645
- authorization: string;
1646
- xAccountId?: string;
1647
- }, opts?: Oazapfts.RequestOpts) {
1648
- return oazapfts.ok(oazapfts.fetchJson<{
1649
- status: 202;
1650
- data: ListFoundationResponse;
1651
- }>("/portal/foundations", {
1652
- ...opts,
1653
- headers: oazapfts.mergeHeaders(opts?.headers, {
1654
- Authorization: authorization,
1655
- "x-account-id": xAccountId
1656
- })
1657
- }));
1658
- }
1659
- export function createFoundation({ authorization, xAccountId, createFoundationRequest }: {
1660
- authorization: string;
1661
- xAccountId?: string;
1662
- createFoundationRequest: CreateFoundationRequest;
1663
- }, opts?: Oazapfts.RequestOpts) {
1664
- return oazapfts.ok(oazapfts.fetchJson<{
1665
- status: 202;
1666
- data: FoundationResponse;
1667
- }>("/portal/foundations", oazapfts.json({
1668
- ...opts,
1669
- method: "POST",
1670
- body: createFoundationRequest,
1671
- headers: oazapfts.mergeHeaders(opts?.headers, {
1672
- Authorization: authorization,
1673
- "x-account-id": xAccountId
1674
- })
1675
- })));
1676
- }
1677
- export function listVpns({ authorization, xAccountId, foundationId }: {
1678
- authorization: string;
1679
- xAccountId?: string;
1680
- foundationId: string;
1681
- }, opts?: Oazapfts.RequestOpts) {
1682
- return oazapfts.ok(oazapfts.fetchJson<{
1683
- status: 200;
1684
- data: ListVpnResponse;
1685
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns`, {
1686
- ...opts,
1687
- headers: oazapfts.mergeHeaders(opts?.headers, {
1688
- Authorization: authorization,
1689
- "x-account-id": xAccountId
1690
- })
1144
+ ...opts
1691
1145
  }));
1692
1146
  }
1693
- export function createVpn({ authorization, xAccountId, foundationId, createVpnRequest }: {
1694
- authorization: string;
1695
- xAccountId?: string;
1696
- foundationId: string;
1697
- createVpnRequest: CreateVpnRequest;
1147
+ export function fmsAssociateAdminAccountControllerCreate({ $namespace, fmsAssociateAdminAccountSpec }: {
1148
+ $namespace: string;
1149
+ fmsAssociateAdminAccountSpec: FmsAssociateAdminAccountSpec;
1698
1150
  }, opts?: Oazapfts.RequestOpts) {
1699
- return oazapfts.ok(oazapfts.fetchJson<{
1700
- status: 202;
1701
- data: VpnResponse;
1702
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns`, oazapfts.json({
1151
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/fms-associate-admin-accounts`, oazapfts.json({
1703
1152
  ...opts,
1704
1153
  method: "POST",
1705
- body: createVpnRequest,
1706
- headers: oazapfts.mergeHeaders(opts?.headers, {
1707
- Authorization: authorization,
1708
- "x-account-id": xAccountId
1709
- })
1154
+ body: fmsAssociateAdminAccountSpec
1710
1155
  })));
1711
1156
  }
1712
- export function listServiceControlPolicy({ foundationId }: {
1713
- foundationId: string;
1157
+ export function firewallControllerList({ $namespace }: {
1158
+ $namespace: string;
1714
1159
  }, opts?: Oazapfts.RequestOpts) {
1715
1160
  return oazapfts.ok(oazapfts.fetchJson<{
1716
1161
  status: 200;
1717
- data: ListServiceControlPolicy;
1718
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/service-control-policies`, {
1162
+ data: Firewall[];
1163
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}/firewall`, {
1719
1164
  ...opts
1720
1165
  }));
1721
1166
  }
1722
- export function createServiceControlPolicy({ foundationId, serviceControlPolicy }: {
1723
- foundationId: string;
1724
- serviceControlPolicy: ServiceControlPolicy;
1167
+ export function firewallControllerCreate({ $namespace, firewallSpec }: {
1168
+ $namespace: string;
1169
+ firewallSpec: FirewallSpec;
1725
1170
  }, opts?: Oazapfts.RequestOpts) {
1726
- return oazapfts.ok(oazapfts.fetchJson<{
1727
- status: 202;
1728
- data: ServiceControlPolicy;
1729
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/service-control-policies`, oazapfts.json({
1171
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/firewall`, oazapfts.json({
1730
1172
  ...opts,
1731
1173
  method: "POST",
1732
- body: serviceControlPolicy
1174
+ body: firewallSpec
1733
1175
  })));
1734
1176
  }
1735
- export function listProject({ authorization, xAccountId, foundationId, parentFolderId }: {
1736
- authorization: string;
1737
- xAccountId?: string;
1738
- foundationId: string;
1739
- parentFolderId?: string;
1177
+ export function dnsZoneControllerListBy({ $namespace, $type, projectName }: {
1178
+ $namespace: string;
1179
+ $type: "PUBLIC" | "PRIVATE";
1180
+ projectName?: string;
1740
1181
  }, opts?: Oazapfts.RequestOpts) {
1741
1182
  return oazapfts.ok(oazapfts.fetchJson<{
1742
1183
  status: 200;
1743
- data: ListProjectResponse;
1744
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/projects${QS.query(QS.explode({
1745
- parentFolderId
1184
+ data: DnsZone[];
1185
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}/dns-zones${QS.query(QS.explode({
1186
+ "type": $type,
1187
+ projectName
1746
1188
  }))}`, {
1747
- ...opts,
1748
- headers: oazapfts.mergeHeaders(opts?.headers, {
1749
- Authorization: authorization,
1750
- "x-account-id": xAccountId
1751
- })
1189
+ ...opts
1752
1190
  }));
1753
1191
  }
1754
- export function createProject({ authorization, xAccountId, foundationId, createProjectRequest }: {
1755
- authorization: string;
1756
- xAccountId?: string;
1757
- foundationId: string;
1758
- createProjectRequest: CreateProjectRequest;
1192
+ export function dnsZoneControllerCreate({ $namespace, dnsZoneSpec }: {
1193
+ $namespace: string;
1194
+ dnsZoneSpec: DnsZoneSpec;
1759
1195
  }, opts?: Oazapfts.RequestOpts) {
1760
- return oazapfts.ok(oazapfts.fetchJson<{
1761
- status: 202;
1762
- data: ProjectResponse;
1763
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/projects`, oazapfts.json({
1196
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-zones`, oazapfts.json({
1764
1197
  ...opts,
1765
1198
  method: "POST",
1766
- body: createProjectRequest,
1767
- headers: oazapfts.mergeHeaders(opts?.headers, {
1768
- Authorization: authorization,
1769
- "x-account-id": xAccountId
1770
- })
1199
+ body: dnsZoneSpec
1771
1200
  })));
1772
1201
  }
1773
- export function listNetwork({ authorization, xAccountId, foundationId, projectId }: {
1774
- authorization: string;
1775
- xAccountId?: string;
1776
- foundationId: string;
1777
- projectId?: string;
1202
+ export function dnsRecordControllerListBy({ $namespace, dnsZoneName }: {
1203
+ $namespace: string;
1204
+ dnsZoneName?: string;
1778
1205
  }, opts?: Oazapfts.RequestOpts) {
1779
1206
  return oazapfts.ok(oazapfts.fetchJson<{
1780
1207
  status: 200;
1781
- data: ListNetworkResponse;
1782
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/networks${QS.query(QS.explode({
1783
- projectId
1208
+ data: DnsRecord[];
1209
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records${QS.query(QS.explode({
1210
+ dnsZoneName
1784
1211
  }))}`, {
1785
- ...opts,
1786
- headers: oazapfts.mergeHeaders(opts?.headers, {
1787
- Authorization: authorization,
1788
- "x-account-id": xAccountId
1789
- })
1212
+ ...opts
1790
1213
  }));
1791
1214
  }
1792
- export function createNetwork({ authorization, xAccountId, foundationId, createNetworkRequest }: {
1793
- authorization: string;
1794
- xAccountId?: string;
1795
- foundationId: string;
1796
- createNetworkRequest: CreateNetworkRequest;
1215
+ export function dnsRecordControllerCreate({ $namespace, dnsRecordSpec }: {
1216
+ $namespace: string;
1217
+ dnsRecordSpec: DnsRecordSpec;
1797
1218
  }, opts?: Oazapfts.RequestOpts) {
1798
- return oazapfts.ok(oazapfts.fetchJson<{
1799
- status: 202;
1800
- data: NetworkResponse;
1801
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/networks`, oazapfts.json({
1219
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records`, oazapfts.json({
1802
1220
  ...opts,
1803
1221
  method: "POST",
1804
- body: createNetworkRequest,
1805
- headers: oazapfts.mergeHeaders(opts?.headers, {
1806
- Authorization: authorization,
1807
- "x-account-id": xAccountId
1808
- })
1222
+ body: dnsRecordSpec
1809
1223
  })));
1810
1224
  }
1811
- export function getFolder({ authorization, xAccountId, foundationId, folderId }: {
1812
- authorization: string;
1813
- xAccountId?: string;
1814
- foundationId: string;
1815
- folderId: string;
1225
+ export function customerPolicyAttachmentControllerList({ $namespace }: {
1226
+ $namespace: string;
1816
1227
  }, opts?: Oazapfts.RequestOpts) {
1817
1228
  return oazapfts.ok(oazapfts.fetchJson<{
1818
1229
  status: 200;
1819
- data: FolderResponse;
1820
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/folders${QS.query(QS.explode({
1821
- folderId
1822
- }))}`, {
1823
- ...opts,
1824
- headers: oazapfts.mergeHeaders(opts?.headers, {
1825
- Authorization: authorization,
1826
- "x-account-id": xAccountId
1827
- })
1230
+ data: CustomerPolicyAttachment[];
1231
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}/customer-policy-attachments`, {
1232
+ ...opts
1828
1233
  }));
1829
1234
  }
1830
- export function createFolder({ authorization, xAccountId, foundationId, createFolderRequest }: {
1831
- authorization: string;
1832
- xAccountId?: string;
1833
- foundationId: string;
1834
- createFolderRequest: CreateFolderRequest;
1235
+ export function customerPolicyAttachmentControllerCreate({ $namespace, customerPolicyAttachmentSpec }: {
1236
+ $namespace: string;
1237
+ customerPolicyAttachmentSpec: CustomerPolicyAttachmentSpec;
1835
1238
  }, opts?: Oazapfts.RequestOpts) {
1836
- return oazapfts.ok(oazapfts.fetchJson<{
1837
- status: 202;
1838
- data: FolderResponse;
1839
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/folders`, oazapfts.json({
1239
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/customer-policy-attachments`, oazapfts.json({
1840
1240
  ...opts,
1841
1241
  method: "POST",
1842
- body: createFolderRequest,
1843
- headers: oazapfts.mergeHeaders(opts?.headers, {
1844
- Authorization: authorization,
1845
- "x-account-id": xAccountId
1846
- })
1242
+ body: customerPolicyAttachmentSpec
1847
1243
  })));
1848
1244
  }
1849
- export function listDnsZone({ authorization, xAccountId, foundationId, projectId, privacy }: {
1850
- authorization: string;
1851
- xAccountId?: string;
1852
- foundationId: string;
1853
- projectId?: string;
1854
- privacy?: "PUBLIC" | "PRIVATE";
1245
+ export function cidrControllerList({ $namespace }: {
1246
+ $namespace: string;
1855
1247
  }, opts?: Oazapfts.RequestOpts) {
1856
1248
  return oazapfts.ok(oazapfts.fetchJson<{
1857
1249
  status: 200;
1858
- data: ListDnsZoneResponse;
1859
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-zones${QS.query(QS.explode({
1860
- projectId,
1861
- privacy
1862
- }))}`, {
1863
- ...opts,
1864
- headers: oazapfts.mergeHeaders(opts?.headers, {
1865
- Authorization: authorization,
1866
- "x-account-id": xAccountId
1867
- })
1250
+ data: Cidr[];
1251
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}/cidrs`, {
1252
+ ...opts
1868
1253
  }));
1869
1254
  }
1870
- export function createDnsZone({ authorization, xAccountId, foundationId, createDnsZoneRequest }: {
1871
- authorization: string;
1872
- xAccountId?: string;
1873
- foundationId: string;
1874
- createDnsZoneRequest: CreateDnsZoneRequest;
1255
+ export function cidrControllerCreate({ $namespace, cidrSpec }: {
1256
+ $namespace: string;
1257
+ cidrSpec: CidrSpec;
1875
1258
  }, opts?: Oazapfts.RequestOpts) {
1876
- return oazapfts.ok(oazapfts.fetchJson<{
1877
- status: 202;
1878
- data: DnsZoneResponse;
1879
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-zones`, oazapfts.json({
1259
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/cidrs`, oazapfts.json({
1880
1260
  ...opts,
1881
1261
  method: "POST",
1882
- body: createDnsZoneRequest,
1883
- headers: oazapfts.mergeHeaders(opts?.headers, {
1884
- Authorization: authorization,
1885
- "x-account-id": xAccountId
1886
- })
1262
+ body: cidrSpec
1887
1263
  })));
1888
1264
  }
1889
- export function listDnsRecord({ authorization, xAccountId, foundationId, projectId, dnsZoneId }: {
1890
- authorization: string;
1891
- xAccountId?: string;
1892
- foundationId: string;
1893
- projectId?: string;
1894
- dnsZoneId?: string;
1265
+ export function certificateControllerList({ $namespace }: {
1266
+ $namespace: string;
1895
1267
  }, opts?: Oazapfts.RequestOpts) {
1896
1268
  return oazapfts.ok(oazapfts.fetchJson<{
1897
1269
  status: 200;
1898
- data: ListDnsRecordResponse;
1899
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-records${QS.query(QS.explode({
1900
- projectId,
1901
- dnsZoneId
1902
- }))}`, {
1903
- ...opts,
1904
- headers: oazapfts.mergeHeaders(opts?.headers, {
1905
- Authorization: authorization,
1906
- "x-account-id": xAccountId
1907
- })
1270
+ data: Certificate[];
1271
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}/certificates`, {
1272
+ ...opts
1908
1273
  }));
1909
1274
  }
1910
- export function createDnsRecord({ authorization, xAccountId, foundationId, createDnsRecordRequest }: {
1911
- authorization: string;
1912
- xAccountId?: string;
1913
- foundationId: string;
1914
- createDnsRecordRequest: CreateDnsRecordRequest;
1275
+ export function certificateControllerCreate({ $namespace, certificateSpec }: {
1276
+ $namespace: string;
1277
+ certificateSpec: CertificateSpec;
1915
1278
  }, opts?: Oazapfts.RequestOpts) {
1916
- return oazapfts.ok(oazapfts.fetchJson<{
1917
- status: 202;
1918
- data: DnsRecordResponse;
1919
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-records`, oazapfts.json({
1279
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/certificates`, oazapfts.json({
1920
1280
  ...opts,
1921
1281
  method: "POST",
1922
- body: createDnsRecordRequest,
1923
- headers: oazapfts.mergeHeaders(opts?.headers, {
1924
- Authorization: authorization,
1925
- "x-account-id": xAccountId
1926
- })
1282
+ body: certificateSpec
1927
1283
  })));
1928
1284
  }
1929
- export function listCidr({ authorization, xAccountId, foundationId }: {
1930
- authorization: string;
1931
- xAccountId?: string;
1932
- foundationId: string;
1285
+ export function boundarySsoControllerList({ $namespace }: {
1286
+ $namespace: string;
1933
1287
  }, opts?: Oazapfts.RequestOpts) {
1934
1288
  return oazapfts.ok(oazapfts.fetchJson<{
1935
1289
  status: 200;
1936
- data: ListCidrResponse;
1937
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/cidrs`, {
1938
- ...opts,
1939
- headers: oazapfts.mergeHeaders(opts?.headers, {
1940
- Authorization: authorization,
1941
- "x-account-id": xAccountId
1942
- })
1290
+ data: BoundarySso[];
1291
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}/boundary-ssos`, {
1292
+ ...opts
1943
1293
  }));
1944
1294
  }
1945
- export function createCidr({ authorization, xAccountId, foundationId, createCidrRequest }: {
1946
- authorization: string;
1947
- xAccountId?: string;
1948
- foundationId: string;
1949
- createCidrRequest: CreateCidrRequest;
1295
+ export function boundarySsoControllerCreate({ $namespace, boundarySsoSpec }: {
1296
+ $namespace: string;
1297
+ boundarySsoSpec: BoundarySsoSpec;
1950
1298
  }, opts?: Oazapfts.RequestOpts) {
1951
- return oazapfts.ok(oazapfts.fetchJson<{
1952
- status: 202;
1953
- data: CidrResponse;
1954
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/cidrs`, oazapfts.json({
1299
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundary-ssos`, oazapfts.json({
1955
1300
  ...opts,
1956
1301
  method: "POST",
1957
- body: createCidrRequest,
1958
- headers: oazapfts.mergeHeaders(opts?.headers, {
1959
- Authorization: authorization,
1960
- "x-account-id": xAccountId
1961
- })
1302
+ body: boundarySsoSpec
1962
1303
  })));
1963
1304
  }
1964
- export function listCertificates({ authorization, xAccountId, foundationId, forInbound }: {
1965
- authorization: string;
1966
- xAccountId?: string;
1967
- foundationId: string;
1968
- forInbound?: "TRUE" | "FALSE";
1305
+ export function boundaryControllerList({ $namespace }: {
1306
+ $namespace: string;
1969
1307
  }, opts?: Oazapfts.RequestOpts) {
1970
1308
  return oazapfts.ok(oazapfts.fetchJson<{
1971
1309
  status: 200;
1972
- data: ListCertificateResponse;
1973
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/certificates${QS.query(QS.explode({
1974
- forInbound
1975
- }))}`, {
1976
- ...opts,
1977
- headers: oazapfts.mergeHeaders(opts?.headers, {
1978
- Authorization: authorization,
1979
- "x-account-id": xAccountId
1980
- })
1310
+ data: Boundary[];
1311
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}/boundaries`, {
1312
+ ...opts
1981
1313
  }));
1982
1314
  }
1983
- export function createCertificate({ authorization, xAccountId, foundationId, body }: {
1984
- authorization: string;
1985
- xAccountId?: string;
1986
- foundationId: string;
1987
- body: CreatePublicCertificateRequest | ImportCertificateRequest;
1315
+ export function boundaryControllerCreate({ $namespace, boundarySpec }: {
1316
+ $namespace: string;
1317
+ boundarySpec: BoundarySpec;
1988
1318
  }, opts?: Oazapfts.RequestOpts) {
1989
- return oazapfts.ok(oazapfts.fetchJson<{
1990
- status: 202;
1991
- data: CertificateResponse;
1992
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/certificates`, oazapfts.json({
1319
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundaries`, oazapfts.json({
1993
1320
  ...opts,
1994
1321
  method: "POST",
1995
- body,
1996
- headers: oazapfts.mergeHeaders(opts?.headers, {
1997
- Authorization: authorization,
1998
- "x-account-id": xAccountId
1999
- })
1322
+ body: boundarySpec
2000
1323
  })));
2001
1324
  }
2002
- export function listBoundary({ foundationId }: {
2003
- foundationId: string;
1325
+ export function accountAssignmentControllerList({ $namespace }: {
1326
+ $namespace: string;
2004
1327
  }, opts?: Oazapfts.RequestOpts) {
2005
1328
  return oazapfts.ok(oazapfts.fetchJson<{
2006
1329
  status: 200;
2007
- data: ListBoundaryResponse;
2008
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries`, {
1330
+ data: AccountAssignment[];
1331
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}/account-assignments`, {
2009
1332
  ...opts
2010
1333
  }));
2011
1334
  }
2012
- export function createBoundary({ foundationId, createBoundaryRequest }: {
2013
- foundationId: string;
2014
- createBoundaryRequest: CreateBoundaryRequest;
1335
+ export function accountAssignmentControllerCreate({ $namespace, accountAssignmentSpec }: {
1336
+ $namespace: string;
1337
+ accountAssignmentSpec: AccountAssignmentSpec;
2015
1338
  }, opts?: Oazapfts.RequestOpts) {
2016
- return oazapfts.ok(oazapfts.fetchJson<{
2017
- status: 202;
2018
- data: BoundaryResponse;
2019
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries`, oazapfts.json({
1339
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/account-assignments`, oazapfts.json({
2020
1340
  ...opts,
2021
1341
  method: "POST",
2022
- body: createBoundaryRequest
1342
+ body: accountAssignmentSpec
2023
1343
  })));
2024
1344
  }
2025
- export function listBoundarySso({ foundationId }: {
2026
- foundationId: string;
1345
+ export function roleControllerGet({ name }: {
1346
+ name: string;
2027
1347
  }, opts?: Oazapfts.RequestOpts) {
2028
1348
  return oazapfts.ok(oazapfts.fetchJson<{
2029
1349
  status: 200;
2030
- data: ListBoundarySsoResponse;
2031
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso`, {
1350
+ data: Role;
1351
+ }>(`/v2/roles/${encodeURIComponent(name)}`, {
2032
1352
  ...opts
2033
1353
  }));
2034
1354
  }
2035
- export function createBoundarySso({ foundationId, createBoundarySsoRequest }: {
2036
- foundationId: string;
2037
- createBoundarySsoRequest: CreateBoundarySsoRequest;
1355
+ export function roleControllerDelete({ name }: {
1356
+ name: string;
2038
1357
  }, opts?: Oazapfts.RequestOpts) {
2039
- return oazapfts.ok(oazapfts.fetchJson<{
2040
- status: 202;
2041
- data: BoundarySsoResponse;
2042
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso`, oazapfts.json({
1358
+ return oazapfts.ok(oazapfts.fetchText(`/v2/roles/${encodeURIComponent(name)}`, {
2043
1359
  ...opts,
2044
- method: "POST",
2045
- body: createBoundarySsoRequest
2046
- })));
1360
+ method: "DELETE"
1361
+ }));
2047
1362
  }
2048
1363
  export function oidcControllerGet(opts?: Oazapfts.RequestOpts) {
2049
1364
  return oazapfts.ok(oazapfts.fetchJson<{
2050
1365
  status: 200;
2051
1366
  data: string;
2052
- }>("/v2/oidc/v2/oidc", {
1367
+ }>("/v2/oidc", {
1368
+ ...opts
1369
+ }));
1370
+ }
1371
+ export function foundationControllerGet({ $namespace }: {
1372
+ $namespace: string;
1373
+ }, opts?: Oazapfts.RequestOpts) {
1374
+ return oazapfts.ok(oazapfts.fetchJson<{
1375
+ status: 200;
1376
+ data: Foundation;
1377
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}`, {
2053
1378
  ...opts
2054
1379
  }));
2055
1380
  }
@@ -2073,6 +1398,26 @@ export function vpnControllerDelete({ $namespace, name }: {
2073
1398
  method: "DELETE"
2074
1399
  }));
2075
1400
  }
1401
+ export function serviceControlPolicyControllerGet({ $namespace, name }: {
1402
+ $namespace: string;
1403
+ name: string;
1404
+ }, opts?: Oazapfts.RequestOpts) {
1405
+ return oazapfts.ok(oazapfts.fetchJson<{
1406
+ status: 200;
1407
+ data: ServiceControlPolicy;
1408
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}`, {
1409
+ ...opts
1410
+ }));
1411
+ }
1412
+ export function serviceControlPolicyControllerDelete({ $namespace, name }: {
1413
+ $namespace: string;
1414
+ name: string;
1415
+ }, opts?: Oazapfts.RequestOpts) {
1416
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}`, {
1417
+ ...opts,
1418
+ method: "DELETE"
1419
+ }));
1420
+ }
2076
1421
  export function projectControllerGet({ $namespace, name }: {
2077
1422
  $namespace: string;
2078
1423
  name: string;
@@ -2113,6 +1458,26 @@ export function permissionSetControllerDelete({ $namespace, name }: {
2113
1458
  method: "DELETE"
2114
1459
  }));
2115
1460
  }
1461
+ export function networkControllerGet({ $namespace, name }: {
1462
+ $namespace: string;
1463
+ name: string;
1464
+ }, opts?: Oazapfts.RequestOpts) {
1465
+ return oazapfts.ok(oazapfts.fetchJson<{
1466
+ status: 200;
1467
+ data: Network;
1468
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}/networks/${encodeURIComponent(name)}`, {
1469
+ ...opts
1470
+ }));
1471
+ }
1472
+ export function networkControllerDelete({ $namespace, name }: {
1473
+ $namespace: string;
1474
+ name: string;
1475
+ }, opts?: Oazapfts.RequestOpts) {
1476
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/networks/${encodeURIComponent(name)}`, {
1477
+ ...opts,
1478
+ method: "DELETE"
1479
+ }));
1480
+ }
2116
1481
  export function managedPolicyAttachmentControllerGet({ $namespace, name }: {
2117
1482
  $namespace: string;
2118
1483
  name: string;
@@ -2393,343 +1758,73 @@ export function certificateControllerDelete({ $namespace, name }: {
2393
1758
  method: "DELETE"
2394
1759
  }));
2395
1760
  }
2396
- export function accountAssignmentControllerGet({ $namespace, name }: {
1761
+ export function boundarySsoControllerGet({ $namespace, name }: {
2397
1762
  $namespace: string;
2398
1763
  name: string;
2399
1764
  }, opts?: Oazapfts.RequestOpts) {
2400
1765
  return oazapfts.ok(oazapfts.fetchJson<{
2401
1766
  status: 200;
2402
- data: AccountAssignment;
2403
- }>(`/v2/foundations/${encodeURIComponent($namespace)}/account-assignments/${encodeURIComponent(name)}`, {
1767
+ data: BoundarySso;
1768
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}/boundary-ssos/${encodeURIComponent(name)}`, {
2404
1769
  ...opts
2405
1770
  }));
2406
1771
  }
2407
- export function accountAssignmentControllerDelete({ $namespace, name }: {
1772
+ export function boundarySsoControllerDelete({ $namespace, name }: {
2408
1773
  $namespace: string;
2409
1774
  name: string;
2410
1775
  }, opts?: Oazapfts.RequestOpts) {
2411
- return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/account-assignments/${encodeURIComponent(name)}`, {
1776
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundary-ssos/${encodeURIComponent(name)}`, {
2412
1777
  ...opts,
2413
1778
  method: "DELETE"
2414
1779
  }));
2415
1780
  }
2416
- export function getOidc(opts?: Oazapfts.RequestOpts) {
2417
- return oazapfts.ok(oazapfts.fetchJson<{
2418
- status: 200;
2419
- data: string;
2420
- }>("/portal/oidc", {
2421
- ...opts
2422
- }));
2423
- }
2424
- export function getFoundation({ authorization, xAccountId, foundationId }: {
2425
- authorization: string;
2426
- xAccountId?: string;
2427
- foundationId: string;
2428
- }, opts?: Oazapfts.RequestOpts) {
2429
- return oazapfts.ok(oazapfts.fetchJson<{
2430
- status: 202;
2431
- data: FoundationResponse;
2432
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}`, {
2433
- ...opts,
2434
- headers: oazapfts.mergeHeaders(opts?.headers, {
2435
- Authorization: authorization,
2436
- "x-account-id": xAccountId
2437
- })
2438
- }));
2439
- }
2440
- export function getVpn({ authorization, xAccountId, foundationId, vpnId }: {
2441
- authorization: string;
2442
- xAccountId?: string;
2443
- foundationId: string;
2444
- vpnId: string;
2445
- }, opts?: Oazapfts.RequestOpts) {
2446
- return oazapfts.ok(oazapfts.fetchJson<{
2447
- status: 200;
2448
- data: VpnResponse;
2449
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}`, {
2450
- ...opts,
2451
- headers: oazapfts.mergeHeaders(opts?.headers, {
2452
- Authorization: authorization,
2453
- "x-account-id": xAccountId
2454
- })
2455
- }));
2456
- }
2457
- export function deleteVpn({ authorization, xAccountId, foundationId, vpnId }: {
2458
- authorization: string;
2459
- xAccountId?: string;
2460
- foundationId: string;
2461
- vpnId: string;
2462
- }, opts?: Oazapfts.RequestOpts) {
2463
- return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}`, {
2464
- ...opts,
2465
- method: "DELETE",
2466
- headers: oazapfts.mergeHeaders(opts?.headers, {
2467
- Authorization: authorization,
2468
- "x-account-id": xAccountId
2469
- })
2470
- }));
2471
- }
2472
- export function getVpnConfiguration({ authorization, xAccountId, foundationId, vpnId }: {
2473
- authorization: string;
2474
- xAccountId?: string;
2475
- foundationId: string;
2476
- vpnId: string;
2477
- }, opts?: Oazapfts.RequestOpts) {
2478
- return oazapfts.ok(oazapfts.fetchJson<{
2479
- status: 200;
2480
- data: VpnConfigurationResponse;
2481
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}/configuration`, {
2482
- ...opts,
2483
- headers: oazapfts.mergeHeaders(opts?.headers, {
2484
- Authorization: authorization,
2485
- "x-account-id": xAccountId
2486
- })
2487
- }));
2488
- }
2489
- export function getProject({ authorization, xAccountId, foundationId, projectId }: {
2490
- authorization: string;
2491
- xAccountId?: string;
2492
- foundationId: string;
2493
- projectId: string;
2494
- }, opts?: Oazapfts.RequestOpts) {
2495
- return oazapfts.ok(oazapfts.fetchJson<{
2496
- status: 200;
2497
- data: ProjectResponse;
2498
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/projects/${encodeURIComponent(projectId)}`, {
2499
- ...opts,
2500
- headers: oazapfts.mergeHeaders(opts?.headers, {
2501
- Authorization: authorization,
2502
- "x-account-id": xAccountId
2503
- })
2504
- }));
2505
- }
2506
- export function deleteProject({ authorization, xAccountId, foundationId, projectId }: {
2507
- authorization: string;
2508
- xAccountId?: string;
2509
- foundationId: string;
2510
- projectId: string;
2511
- }, opts?: Oazapfts.RequestOpts) {
2512
- return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/projects/${encodeURIComponent(projectId)}`, {
2513
- ...opts,
2514
- method: "DELETE",
2515
- headers: oazapfts.mergeHeaders(opts?.headers, {
2516
- Authorization: authorization,
2517
- "x-account-id": xAccountId
2518
- })
2519
- }));
2520
- }
2521
- export function getNetwork({ authorization, xAccountId, foundationId, networkId }: {
2522
- authorization: string;
2523
- xAccountId?: string;
2524
- foundationId: string;
2525
- networkId: string;
2526
- }, opts?: Oazapfts.RequestOpts) {
2527
- return oazapfts.ok(oazapfts.fetchJson<{
2528
- status: 200;
2529
- data: NetworkResponse;
2530
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}`, {
2531
- ...opts,
2532
- headers: oazapfts.mergeHeaders(opts?.headers, {
2533
- Authorization: authorization,
2534
- "x-account-id": xAccountId
2535
- })
2536
- }));
2537
- }
2538
- export function deleteNetwork({ authorization, xAccountId, foundationId, networkId }: {
2539
- authorization: string;
2540
- xAccountId?: string;
2541
- foundationId: string;
2542
- networkId: string;
2543
- }, opts?: Oazapfts.RequestOpts) {
2544
- return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}`, {
2545
- ...opts,
2546
- method: "DELETE",
2547
- headers: oazapfts.mergeHeaders(opts?.headers, {
2548
- Authorization: authorization,
2549
- "x-account-id": xAccountId
2550
- })
2551
- }));
2552
- }
2553
- export function getDnsZone({ authorization, xAccountId, foundationId, dnsZoneId }: {
2554
- authorization: string;
2555
- xAccountId?: string;
2556
- foundationId: string;
2557
- dnsZoneId: string;
2558
- }, opts?: Oazapfts.RequestOpts) {
2559
- return oazapfts.ok(oazapfts.fetchJson<{
2560
- status: 200;
2561
- data: DnsZoneResponse;
2562
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-zones/${encodeURIComponent(dnsZoneId)}`, {
2563
- ...opts,
2564
- headers: oazapfts.mergeHeaders(opts?.headers, {
2565
- Authorization: authorization,
2566
- "x-account-id": xAccountId
2567
- })
2568
- }));
2569
- }
2570
- export function deleteDnsZone({ authorization, xAccountId, foundationId, dnsZoneId }: {
2571
- authorization: string;
2572
- xAccountId?: string;
2573
- foundationId: string;
2574
- dnsZoneId: string;
2575
- }, opts?: Oazapfts.RequestOpts) {
2576
- return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-zones/${encodeURIComponent(dnsZoneId)}`, {
2577
- ...opts,
2578
- method: "DELETE",
2579
- headers: oazapfts.mergeHeaders(opts?.headers, {
2580
- Authorization: authorization,
2581
- "x-account-id": xAccountId
2582
- })
2583
- }));
2584
- }
2585
- export function getDnsRecord({ authorization, xAccountId, foundationId, dnsRecordId }: {
2586
- authorization: string;
2587
- xAccountId?: string;
2588
- foundationId: string;
2589
- dnsRecordId: string;
2590
- }, opts?: Oazapfts.RequestOpts) {
2591
- return oazapfts.ok(oazapfts.fetchJson<{
2592
- status: 200;
2593
- data: DnsRecordResponse;
2594
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-records/${encodeURIComponent(dnsRecordId)}`, {
2595
- ...opts,
2596
- headers: oazapfts.mergeHeaders(opts?.headers, {
2597
- Authorization: authorization,
2598
- "x-account-id": xAccountId
2599
- })
2600
- }));
2601
- }
2602
- export function deleteDnsRecord({ authorization, xAccountId, foundationId, dnsRecordId }: {
2603
- authorization: string;
2604
- xAccountId?: string;
2605
- foundationId: string;
2606
- dnsRecordId: string;
2607
- }, opts?: Oazapfts.RequestOpts) {
2608
- return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-records/${encodeURIComponent(dnsRecordId)}`, {
2609
- ...opts,
2610
- method: "DELETE",
2611
- headers: oazapfts.mergeHeaders(opts?.headers, {
2612
- Authorization: authorization,
2613
- "x-account-id": xAccountId
2614
- })
2615
- }));
2616
- }
2617
- export function getCidr({ authorization, xAccountId, foundationId, cidrId }: {
2618
- authorization: string;
2619
- xAccountId?: string;
2620
- foundationId: string;
2621
- cidrId: string;
2622
- }, opts?: Oazapfts.RequestOpts) {
2623
- return oazapfts.ok(oazapfts.fetchJson<{
2624
- status: 200;
2625
- data: CidrResponse;
2626
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/cidrs/${encodeURIComponent(cidrId)}`, {
2627
- ...opts,
2628
- headers: oazapfts.mergeHeaders(opts?.headers, {
2629
- Authorization: authorization,
2630
- "x-account-id": xAccountId
2631
- })
2632
- }));
2633
- }
2634
- export function deleteCidr({ authorization, xAccountId, foundationId, cidrId }: {
2635
- authorization: string;
2636
- xAccountId?: string;
2637
- foundationId: string;
2638
- cidrId: string;
2639
- }, opts?: Oazapfts.RequestOpts) {
2640
- return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/cidrs/${encodeURIComponent(cidrId)}`, {
2641
- ...opts,
2642
- method: "DELETE",
2643
- headers: oazapfts.mergeHeaders(opts?.headers, {
2644
- Authorization: authorization,
2645
- "x-account-id": xAccountId
2646
- })
2647
- }));
2648
- }
2649
- export function getCertificate({ authorization, xAccountId, foundationId, certificateId }: {
2650
- authorization: string;
2651
- xAccountId?: string;
2652
- foundationId: string;
2653
- certificateId: string;
1781
+ export function boundaryControllerGet({ $namespace, name }: {
1782
+ $namespace: string;
1783
+ name: string;
2654
1784
  }, opts?: Oazapfts.RequestOpts) {
2655
1785
  return oazapfts.ok(oazapfts.fetchJson<{
2656
1786
  status: 200;
2657
- data: CertificateResponse;
2658
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/certificates/${encodeURIComponent(certificateId)}`, {
2659
- ...opts,
2660
- headers: oazapfts.mergeHeaders(opts?.headers, {
2661
- Authorization: authorization,
2662
- "x-account-id": xAccountId
2663
- })
1787
+ data: Boundary;
1788
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}/boundaries/${encodeURIComponent(name)}`, {
1789
+ ...opts
2664
1790
  }));
2665
1791
  }
2666
- export function deleteCertificate({ authorization, xAccountId, foundationId, certificateId }: {
2667
- authorization: string;
2668
- xAccountId?: string;
2669
- foundationId: string;
2670
- certificateId: string;
1792
+ export function boundaryControllerDelete({ $namespace, name }: {
1793
+ $namespace: string;
1794
+ name: string;
2671
1795
  }, opts?: Oazapfts.RequestOpts) {
2672
- return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/certificates/${encodeURIComponent(certificateId)}`, {
1796
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundaries/${encodeURIComponent(name)}`, {
2673
1797
  ...opts,
2674
- method: "DELETE",
2675
- headers: oazapfts.mergeHeaders(opts?.headers, {
2676
- Authorization: authorization,
2677
- "x-account-id": xAccountId
2678
- })
1798
+ method: "DELETE"
2679
1799
  }));
2680
1800
  }
2681
- export function getBoundary({ foundationId, boundaryId }: {
2682
- foundationId: string;
2683
- boundaryId: string;
1801
+ export function accountAssignmentControllerGet({ $namespace, name }: {
1802
+ $namespace: string;
1803
+ name: string;
2684
1804
  }, opts?: Oazapfts.RequestOpts) {
2685
1805
  return oazapfts.ok(oazapfts.fetchJson<{
2686
1806
  status: 200;
2687
- data: BoundaryResponse;
2688
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}`, {
1807
+ data: AccountAssignment;
1808
+ }>(`/v2/foundations/${encodeURIComponent($namespace)}/account-assignments/${encodeURIComponent(name)}`, {
2689
1809
  ...opts
2690
1810
  }));
2691
1811
  }
2692
- export function deleteBoundary({ foundationId, boundaryId }: {
2693
- foundationId: string;
2694
- boundaryId: string;
1812
+ export function accountAssignmentControllerDelete({ $namespace, name }: {
1813
+ $namespace: string;
1814
+ name: string;
2695
1815
  }, opts?: Oazapfts.RequestOpts) {
2696
- return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}`, {
1816
+ return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/account-assignments/${encodeURIComponent(name)}`, {
2697
1817
  ...opts,
2698
1818
  method: "DELETE"
2699
1819
  }));
2700
1820
  }
2701
- export function getBoundarySso({ foundationId, boundarySsoId }: {
2702
- foundationId: string;
2703
- boundarySsoId: string;
2704
- }, opts?: Oazapfts.RequestOpts) {
1821
+ export function finOpsControllerGet(opts?: Oazapfts.RequestOpts) {
2705
1822
  return oazapfts.ok(oazapfts.fetchJson<{
2706
1823
  status: 200;
2707
- data: BoundarySsoResponse;
2708
- }>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}`, {
1824
+ data: {
1825
+ [key: string]: string;
1826
+ };
1827
+ }>("/v2/finops", {
2709
1828
  ...opts
2710
1829
  }));
2711
1830
  }
2712
- export function deleteBoundarySso({ foundationId, boundarySsoId }: {
2713
- foundationId: string;
2714
- boundarySsoId: string;
2715
- }, opts?: Oazapfts.RequestOpts) {
2716
- return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}`, {
2717
- ...opts,
2718
- method: "DELETE"
2719
- }));
2720
- }
2721
- export function deleteFolder({ authorization, xAccountId, foundationId, folderId }: {
2722
- authorization: string;
2723
- xAccountId?: string;
2724
- foundationId: string;
2725
- folderId: string;
2726
- }, opts?: Oazapfts.RequestOpts) {
2727
- return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/folders/${encodeURIComponent(folderId)}`, {
2728
- ...opts,
2729
- method: "DELETE",
2730
- headers: oazapfts.mergeHeaders(opts?.headers, {
2731
- Authorization: authorization,
2732
- "x-account-id": xAccountId
2733
- })
2734
- }));
2735
- }