@stack-spot/portal-network 1.0.0-dev.1774882431676 → 1.0.0-dev.1775671719406
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist/api/cloudPlatform.d.ts +649 -5
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +439 -0
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/apis.json +1 -1
- package/dist/client/cloud-platform.d.ts +55 -0
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +81 -3
- package/dist/client/cloud-platform.js.map +1 -1
- package/package.json +2 -2
- package/src/api/cloudPlatform.ts +1243 -127
- package/src/apis.json +1 -1
- package/src/client/cloud-platform.ts +55 -2
package/src/api/cloudPlatform.ts
CHANGED
|
@@ -14,6 +14,10 @@ const oazapfts = Oazapfts.runtime(defaults);
|
|
|
14
14
|
export const servers = {
|
|
15
15
|
generatedServerUrl: "https://cloud-cloud-foundation-api.stg.stackspot.com"
|
|
16
16
|
};
|
|
17
|
+
export type Tag = {
|
|
18
|
+
key: string;
|
|
19
|
+
value?: string;
|
|
20
|
+
};
|
|
17
21
|
export type RoleMetadata = {
|
|
18
22
|
creationTimestamp?: string;
|
|
19
23
|
deletionTimestamp?: string;
|
|
@@ -32,10 +36,13 @@ export type RoleSpec = {
|
|
|
32
36
|
cidr: RoleSpecPermission;
|
|
33
37
|
dnsRecord: RoleSpecPermission;
|
|
34
38
|
dnsZone: RoleSpecPermission;
|
|
39
|
+
fmsPolicy: RoleSpecPermission;
|
|
35
40
|
folder: RoleSpecPermission;
|
|
36
41
|
foundation: RoleSpecPermission;
|
|
42
|
+
iamIdentityCenter: RoleSpecPermission;
|
|
37
43
|
network: RoleSpecPermission;
|
|
38
44
|
project: RoleSpecPermission;
|
|
45
|
+
role: RoleSpecPermission;
|
|
39
46
|
serviceControlPolicy: RoleSpecPermission;
|
|
40
47
|
vpn: RoleSpecPermission;
|
|
41
48
|
};
|
|
@@ -43,10 +50,6 @@ export type Role = {
|
|
|
43
50
|
metadata: RoleMetadata;
|
|
44
51
|
spec: RoleSpec;
|
|
45
52
|
};
|
|
46
|
-
export type Tag = {
|
|
47
|
-
key: string;
|
|
48
|
-
value: string;
|
|
49
|
-
};
|
|
50
53
|
export type TunnelStatus = {
|
|
51
54
|
tunnel1?: string;
|
|
52
55
|
tunnel2?: string;
|
|
@@ -115,6 +118,7 @@ export type FoundationDetails = {
|
|
|
115
118
|
export type FoundationResponse = {
|
|
116
119
|
stackSpotAccountId: string;
|
|
117
120
|
foundationId: string;
|
|
121
|
+
foundationName: string;
|
|
118
122
|
details: FoundationDetails;
|
|
119
123
|
tags: Tag[];
|
|
120
124
|
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
@@ -298,6 +302,362 @@ export type BoundarySsoResponse = {
|
|
|
298
302
|
updatedAt: string;
|
|
299
303
|
deletedAt?: string;
|
|
300
304
|
};
|
|
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;
|
|
314
|
+
};
|
|
315
|
+
export type FoundationRef = {
|
|
316
|
+
name: string;
|
|
317
|
+
};
|
|
318
|
+
export type VpnSpec = {
|
|
319
|
+
foundationRef: FoundationRef;
|
|
320
|
+
destinationCidrBlock: string;
|
|
321
|
+
peerCustomerGatewayIp: string;
|
|
322
|
+
};
|
|
323
|
+
export type ResourceCondition = {
|
|
324
|
+
state: "READY" | "PENDING" | "ERROR" | "UNKNOWN" | "DELETING";
|
|
325
|
+
lastUpdateTimestamp: string;
|
|
326
|
+
message?: string;
|
|
327
|
+
};
|
|
328
|
+
export type VpnStatus = {
|
|
329
|
+
condition: ResourceCondition;
|
|
330
|
+
};
|
|
331
|
+
export type Vpn = {
|
|
332
|
+
metadata: ResourceMetadata;
|
|
333
|
+
spec: VpnSpec;
|
|
334
|
+
status?: VpnStatus;
|
|
335
|
+
};
|
|
336
|
+
export type BoundaryPolicy = {
|
|
337
|
+
name: string;
|
|
338
|
+
path: string;
|
|
339
|
+
};
|
|
340
|
+
export type InlinePolicy = {
|
|
341
|
+
policy: string;
|
|
342
|
+
};
|
|
343
|
+
export type PermissionSetSpec = {
|
|
344
|
+
foundationRef: FoundationRef;
|
|
345
|
+
name: string;
|
|
346
|
+
description: string;
|
|
347
|
+
sessionDuration: string;
|
|
348
|
+
boundaryPolicy?: BoundaryPolicy;
|
|
349
|
+
inlinePolicy?: InlinePolicy;
|
|
350
|
+
};
|
|
351
|
+
export type PermissionSetStatus = {
|
|
352
|
+
condition: ResourceCondition;
|
|
353
|
+
arn?: string;
|
|
354
|
+
};
|
|
355
|
+
export type PermissionSet = {
|
|
356
|
+
metadata: ResourceMetadata;
|
|
357
|
+
spec: PermissionSetSpec;
|
|
358
|
+
status?: PermissionSetStatus;
|
|
359
|
+
};
|
|
360
|
+
export type PermissionSetRef = {
|
|
361
|
+
name: string;
|
|
362
|
+
};
|
|
363
|
+
export type ManagedPolicyAttachmentSpec = {
|
|
364
|
+
foundationRef: FoundationRef;
|
|
365
|
+
permissionSetRef: PermissionSetRef;
|
|
366
|
+
managedPolicyArn: string;
|
|
367
|
+
};
|
|
368
|
+
export type ManagedPolicyAttachmentStatus = {
|
|
369
|
+
condition: ResourceCondition;
|
|
370
|
+
id?: string;
|
|
371
|
+
};
|
|
372
|
+
export type ManagedPolicyAttachment = {
|
|
373
|
+
metadata: ResourceMetadata;
|
|
374
|
+
spec: ManagedPolicyAttachmentSpec;
|
|
375
|
+
status?: ManagedPolicyAttachmentStatus;
|
|
376
|
+
};
|
|
377
|
+
export type IdentityStoreUserSpec = {
|
|
378
|
+
foundationRef: FoundationRef;
|
|
379
|
+
givenName: string;
|
|
380
|
+
familyName: string;
|
|
381
|
+
primaryEmail: boolean;
|
|
382
|
+
email: string;
|
|
383
|
+
};
|
|
384
|
+
export type IdentityStoreUserStatus = {
|
|
385
|
+
condition: ResourceCondition;
|
|
386
|
+
userId?: string;
|
|
387
|
+
userName?: string;
|
|
388
|
+
displayName?: string;
|
|
389
|
+
};
|
|
390
|
+
export type IdentityStoreUser = {
|
|
391
|
+
metadata: ResourceMetadata;
|
|
392
|
+
spec: IdentityStoreUserSpec;
|
|
393
|
+
status?: IdentityStoreUserStatus;
|
|
394
|
+
};
|
|
395
|
+
export type IdentityStoreGroupRef = {
|
|
396
|
+
name: string;
|
|
397
|
+
};
|
|
398
|
+
export type IdentityStoreUserRef = {
|
|
399
|
+
name: string;
|
|
400
|
+
};
|
|
401
|
+
export type IdentityStoreMembershipSpec = {
|
|
402
|
+
foundationRef: FoundationRef;
|
|
403
|
+
identityStoreGroupRef: IdentityStoreGroupRef;
|
|
404
|
+
identityStoreUserRef: IdentityStoreUserRef;
|
|
405
|
+
};
|
|
406
|
+
export type IdentityStoreMembershipStatus = {
|
|
407
|
+
condition: ResourceCondition;
|
|
408
|
+
membershipId?: string;
|
|
409
|
+
};
|
|
410
|
+
export type IdentityStoreMembership = {
|
|
411
|
+
metadata: ResourceMetadata;
|
|
412
|
+
spec: IdentityStoreMembershipSpec;
|
|
413
|
+
status?: IdentityStoreMembershipStatus;
|
|
414
|
+
};
|
|
415
|
+
export type IdentityStoreGroupSpec = {
|
|
416
|
+
foundationRef: FoundationRef;
|
|
417
|
+
displayName: string;
|
|
418
|
+
description: string;
|
|
419
|
+
};
|
|
420
|
+
export type IdentityStoreGroupStatus = {
|
|
421
|
+
condition: ResourceCondition;
|
|
422
|
+
groupId?: string;
|
|
423
|
+
};
|
|
424
|
+
export type IdentityStoreGroup = {
|
|
425
|
+
metadata: ResourceMetadata;
|
|
426
|
+
spec: IdentityStoreGroupSpec;
|
|
427
|
+
status?: IdentityStoreGroupStatus;
|
|
428
|
+
};
|
|
429
|
+
export type IdentityCenterSpec = {
|
|
430
|
+
foundationRef: FoundationRef;
|
|
431
|
+
};
|
|
432
|
+
export type IdentityCenterStatus = {
|
|
433
|
+
condition: ResourceCondition;
|
|
434
|
+
identityStoreId?: string;
|
|
435
|
+
identityInstanceArn?: string;
|
|
436
|
+
objectId?: string;
|
|
437
|
+
};
|
|
438
|
+
export type IdentityCenter = {
|
|
439
|
+
metadata: ResourceMetadata;
|
|
440
|
+
spec: IdentityCenterSpec;
|
|
441
|
+
status?: IdentityCenterStatus;
|
|
442
|
+
};
|
|
443
|
+
export type FolderRef = {
|
|
444
|
+
name: string;
|
|
445
|
+
};
|
|
446
|
+
export type FolderSpec = {
|
|
447
|
+
foundationRef: FoundationRef;
|
|
448
|
+
folderRef?: FolderRef;
|
|
449
|
+
name: string;
|
|
450
|
+
};
|
|
451
|
+
export type FolderStatus = {
|
|
452
|
+
condition: ResourceCondition;
|
|
453
|
+
id?: string;
|
|
454
|
+
arn?: string;
|
|
455
|
+
};
|
|
456
|
+
export type Folder = {
|
|
457
|
+
metadata: ResourceMetadata;
|
|
458
|
+
spec: FolderSpec;
|
|
459
|
+
status?: FolderStatus;
|
|
460
|
+
};
|
|
461
|
+
export type IcmpTypeCode = {
|
|
462
|
+
code?: number;
|
|
463
|
+
"type"?: number;
|
|
464
|
+
};
|
|
465
|
+
export type PortRange = {
|
|
466
|
+
"from"?: number;
|
|
467
|
+
to?: number;
|
|
468
|
+
};
|
|
469
|
+
export type NetworkAclEntry = {
|
|
470
|
+
cidrBlock?: string;
|
|
471
|
+
egress: boolean;
|
|
472
|
+
icmpTypeCode?: IcmpTypeCode;
|
|
473
|
+
ipv6CidrBlock?: string;
|
|
474
|
+
portRange?: PortRange;
|
|
475
|
+
protocol: string;
|
|
476
|
+
ruleAction: string;
|
|
477
|
+
};
|
|
478
|
+
export type NetworkAclEntrySet = {
|
|
479
|
+
firstEntries?: NetworkAclEntry[];
|
|
480
|
+
forceRemediateForFirstEntries: boolean;
|
|
481
|
+
forceRemediateForLastEntries: boolean;
|
|
482
|
+
lastEntries?: NetworkAclEntry[];
|
|
483
|
+
};
|
|
484
|
+
export type NetworkAclCommonPolicy = {
|
|
485
|
+
networkAclEntrySet?: NetworkAclEntrySet;
|
|
486
|
+
};
|
|
487
|
+
export type NetworkFirewallPolicy = {
|
|
488
|
+
firewallDeploymentModel?: string;
|
|
489
|
+
};
|
|
490
|
+
export type ThirdPartyFirewallPolicy = {
|
|
491
|
+
firewallDeploymentModel?: string;
|
|
492
|
+
};
|
|
493
|
+
export type PolicyOption = {
|
|
494
|
+
networkAclCommonPolicy?: NetworkAclCommonPolicy;
|
|
495
|
+
networkFirewallPolicy?: NetworkFirewallPolicy;
|
|
496
|
+
thirdPartyFirewallPolicy?: ThirdPartyFirewallPolicy;
|
|
497
|
+
};
|
|
498
|
+
export type SecurityServicePolicyData = {
|
|
499
|
+
"type": string;
|
|
500
|
+
managedServiceData?: string;
|
|
501
|
+
policyOption?: PolicyOption;
|
|
502
|
+
};
|
|
503
|
+
export type Policy = {
|
|
504
|
+
deleteUnusedFMManagedResources?: boolean;
|
|
505
|
+
excludeMap?: {
|
|
506
|
+
[key: string]: string[];
|
|
507
|
+
};
|
|
508
|
+
excludeResourceTags: boolean;
|
|
509
|
+
includeMap?: {
|
|
510
|
+
[key: string]: string[];
|
|
511
|
+
};
|
|
512
|
+
policyDescription?: string;
|
|
513
|
+
policyName: string;
|
|
514
|
+
remediationEnabled: boolean;
|
|
515
|
+
resourceSetIds?: string[];
|
|
516
|
+
resourceTagLogicalOperator?: string;
|
|
517
|
+
resourceTags?: Tag[];
|
|
518
|
+
resourceType: string;
|
|
519
|
+
resourceTypeList?: string[];
|
|
520
|
+
securityServicePolicyData: SecurityServicePolicyData;
|
|
521
|
+
};
|
|
522
|
+
export type FmsPolicySpec = {
|
|
523
|
+
foundationRef: FoundationRef;
|
|
524
|
+
policy: Policy;
|
|
525
|
+
region: string;
|
|
526
|
+
tagList: Tag[];
|
|
527
|
+
};
|
|
528
|
+
export type FmsPolicyStatus = {
|
|
529
|
+
condition: ResourceCondition;
|
|
530
|
+
arn?: string;
|
|
531
|
+
policyID?: string;
|
|
532
|
+
policyStatus?: string;
|
|
533
|
+
};
|
|
534
|
+
export type FmsPolicy = {
|
|
535
|
+
metadata: ResourceMetadata;
|
|
536
|
+
spec: FmsPolicySpec;
|
|
537
|
+
status?: FmsPolicyStatus;
|
|
538
|
+
};
|
|
539
|
+
export type FmsAssociateAdminAccountSpec = {
|
|
540
|
+
foundationRef: FoundationRef;
|
|
541
|
+
adminAccount: string;
|
|
542
|
+
};
|
|
543
|
+
export type FmsAssociateAdminAccountStatus = {
|
|
544
|
+
condition: ResourceCondition;
|
|
545
|
+
adminAccount?: string;
|
|
546
|
+
roleStatus?: string;
|
|
547
|
+
};
|
|
548
|
+
export type FmsAssociateAdminAccount = {
|
|
549
|
+
metadata: ResourceMetadata;
|
|
550
|
+
spec: FmsAssociateAdminAccountSpec;
|
|
551
|
+
status?: FmsAssociateAdminAccountStatus;
|
|
552
|
+
};
|
|
553
|
+
export type FirewallSpec = {
|
|
554
|
+
foundationRef: FoundationRef;
|
|
555
|
+
};
|
|
556
|
+
export type FirewallStatus = {
|
|
557
|
+
condition: ResourceCondition;
|
|
558
|
+
active?: boolean;
|
|
559
|
+
logBucketArn?: string;
|
|
560
|
+
};
|
|
561
|
+
export type Firewall = {
|
|
562
|
+
metadata: ResourceMetadata;
|
|
563
|
+
spec: FirewallSpec;
|
|
564
|
+
status?: FirewallStatus;
|
|
565
|
+
};
|
|
566
|
+
export type ProjectRef = {
|
|
567
|
+
name: string;
|
|
568
|
+
};
|
|
569
|
+
export type DnsZoneSpec = {
|
|
570
|
+
foundationRef: FoundationRef;
|
|
571
|
+
projectRef?: ProjectRef;
|
|
572
|
+
domain: string;
|
|
573
|
+
};
|
|
574
|
+
export type DnsZoneStatus = {
|
|
575
|
+
condition: ResourceCondition;
|
|
576
|
+
arn?: string;
|
|
577
|
+
id?: string;
|
|
578
|
+
};
|
|
579
|
+
export type DnsZone = {
|
|
580
|
+
metadata: ResourceMetadata;
|
|
581
|
+
spec: DnsZoneSpec;
|
|
582
|
+
status?: DnsZoneStatus;
|
|
583
|
+
};
|
|
584
|
+
export type DnsZoneRef = {
|
|
585
|
+
name: string;
|
|
586
|
+
};
|
|
587
|
+
export type DnsRecordSpec = {
|
|
588
|
+
foundationRef: FoundationRef;
|
|
589
|
+
dnsZoneRef: DnsZoneRef;
|
|
590
|
+
recordName: string;
|
|
591
|
+
records: string[];
|
|
592
|
+
ttl: number;
|
|
593
|
+
"type": "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "PTR" | "SOA" | "SRV" | "TXT";
|
|
594
|
+
};
|
|
595
|
+
export type DnsRecordStatus = {
|
|
596
|
+
condition: ResourceCondition;
|
|
597
|
+
};
|
|
598
|
+
export type DnsRecord = {
|
|
599
|
+
metadata: ResourceMetadata;
|
|
600
|
+
spec: DnsRecordSpec;
|
|
601
|
+
status?: DnsRecordStatus;
|
|
602
|
+
};
|
|
603
|
+
export type CustomerPolicy = {
|
|
604
|
+
name: string;
|
|
605
|
+
path?: string;
|
|
606
|
+
};
|
|
607
|
+
export type CustomerPolicyAttachmentSpec = {
|
|
608
|
+
foundationRef: FoundationRef;
|
|
609
|
+
permissionSetRef: PermissionSetRef;
|
|
610
|
+
customerPolicy: CustomerPolicy;
|
|
611
|
+
};
|
|
612
|
+
export type CustomerPolicyAttachmentStatus = {
|
|
613
|
+
condition: ResourceCondition;
|
|
614
|
+
id?: string;
|
|
615
|
+
};
|
|
616
|
+
export type CustomerPolicyAttachment = {
|
|
617
|
+
metadata: ResourceMetadata;
|
|
618
|
+
spec: CustomerPolicyAttachmentSpec;
|
|
619
|
+
status?: CustomerPolicyAttachmentStatus;
|
|
620
|
+
};
|
|
621
|
+
export type CidrSpec = {
|
|
622
|
+
foundationRef: FoundationRef;
|
|
623
|
+
cidr: string;
|
|
624
|
+
};
|
|
625
|
+
export type CidrStatus = {
|
|
626
|
+
condition: ResourceCondition;
|
|
627
|
+
};
|
|
628
|
+
export type Cidr = {
|
|
629
|
+
metadata: ResourceMetadata;
|
|
630
|
+
spec: CidrSpec;
|
|
631
|
+
status?: CidrStatus;
|
|
632
|
+
};
|
|
633
|
+
export type CertificateSpec = {
|
|
634
|
+
foundationRef: FoundationRef;
|
|
635
|
+
region: string;
|
|
636
|
+
tags: Tag[];
|
|
637
|
+
domainName: string;
|
|
638
|
+
};
|
|
639
|
+
export type CertificateStatus = {
|
|
640
|
+
condition: ResourceCondition;
|
|
641
|
+
};
|
|
642
|
+
export type Certificate = {
|
|
643
|
+
metadata: ResourceMetadata;
|
|
644
|
+
spec: CertificateSpec;
|
|
645
|
+
status?: CertificateStatus;
|
|
646
|
+
};
|
|
647
|
+
export type AccountAssignmentSpec = {
|
|
648
|
+
foundationRef: FoundationRef;
|
|
649
|
+
permissionSetRef: PermissionSetRef;
|
|
650
|
+
identityStoreGroupRef: IdentityStoreGroupRef;
|
|
651
|
+
targetAccountID: string;
|
|
652
|
+
};
|
|
653
|
+
export type AccountAssignmentStatus = {
|
|
654
|
+
condition: ResourceCondition;
|
|
655
|
+
};
|
|
656
|
+
export type AccountAssignment = {
|
|
657
|
+
metadata: ResourceMetadata;
|
|
658
|
+
spec: AccountAssignmentSpec;
|
|
659
|
+
status?: AccountAssignmentStatus;
|
|
660
|
+
};
|
|
301
661
|
export type ListRole = {
|
|
302
662
|
content: Role[];
|
|
303
663
|
};
|
|
@@ -414,8 +774,8 @@ export type ListCertificateResponse = {
|
|
|
414
774
|
};
|
|
415
775
|
export type CreateCertificateRequestBase = {
|
|
416
776
|
tags?: Tag[];
|
|
417
|
-
forInbound: "TRUE" | "FALSE";
|
|
418
777
|
certificateName: string;
|
|
778
|
+
forInbound: "TRUE" | "FALSE";
|
|
419
779
|
"type": string;
|
|
420
780
|
};
|
|
421
781
|
export type CreatePublicCertificateRequest = {
|
|
@@ -462,6 +822,61 @@ export type VpnConfigurationResponse = {
|
|
|
462
822
|
foundationId: string;
|
|
463
823
|
configuration: Configuration;
|
|
464
824
|
};
|
|
825
|
+
export function folderControllerPutTags({ $namespace, name, body }: {
|
|
826
|
+
$namespace: string;
|
|
827
|
+
name: string;
|
|
828
|
+
body: Tag[];
|
|
829
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
830
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/folders/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
831
|
+
...opts,
|
|
832
|
+
method: "PUT",
|
|
833
|
+
body
|
|
834
|
+
})));
|
|
835
|
+
}
|
|
836
|
+
export function folderControllerPutName({ $namespace, name, body }: {
|
|
837
|
+
$namespace: string;
|
|
838
|
+
name: string;
|
|
839
|
+
body: string;
|
|
840
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
841
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/folders/${encodeURIComponent(name)}/name`, oazapfts.json({
|
|
842
|
+
...opts,
|
|
843
|
+
method: "PUT",
|
|
844
|
+
body
|
|
845
|
+
})));
|
|
846
|
+
}
|
|
847
|
+
export function dnsRecordControllerPutTtl({ $namespace, name, body }: {
|
|
848
|
+
$namespace: string;
|
|
849
|
+
name: string;
|
|
850
|
+
body: number;
|
|
851
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
852
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records/${encodeURIComponent(name)}/ttl`, oazapfts.json({
|
|
853
|
+
...opts,
|
|
854
|
+
method: "PUT",
|
|
855
|
+
body
|
|
856
|
+
})));
|
|
857
|
+
}
|
|
858
|
+
export function dnsRecordControllerPutRecords({ $namespace, name, body }: {
|
|
859
|
+
$namespace: string;
|
|
860
|
+
name: string;
|
|
861
|
+
body: string[];
|
|
862
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
863
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records/${encodeURIComponent(name)}/records`, oazapfts.json({
|
|
864
|
+
...opts,
|
|
865
|
+
method: "PUT",
|
|
866
|
+
body
|
|
867
|
+
})));
|
|
868
|
+
}
|
|
869
|
+
export function certificateControllerPutTags({ $namespace, name, body }: {
|
|
870
|
+
$namespace: string;
|
|
871
|
+
name: string;
|
|
872
|
+
body: Tag[];
|
|
873
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
874
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/certificates/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
875
|
+
...opts,
|
|
876
|
+
method: "PUT",
|
|
877
|
+
body
|
|
878
|
+
})));
|
|
879
|
+
}
|
|
465
880
|
export function getRole({ roleName }: {
|
|
466
881
|
roleName: string;
|
|
467
882
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -804,184 +1219,529 @@ export function putBoundarySsoDescription({ foundationId, boundarySsoId, body }:
|
|
|
804
1219
|
body
|
|
805
1220
|
}));
|
|
806
1221
|
}
|
|
807
|
-
export function
|
|
1222
|
+
export function vpnControllerList({ $namespace }: {
|
|
1223
|
+
$namespace: string;
|
|
1224
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
808
1225
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
809
1226
|
status: 200;
|
|
810
|
-
data:
|
|
811
|
-
}>(
|
|
1227
|
+
data: Vpn[];
|
|
1228
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/vpns`, {
|
|
812
1229
|
...opts
|
|
813
1230
|
}));
|
|
814
1231
|
}
|
|
815
|
-
export function
|
|
816
|
-
|
|
1232
|
+
export function vpnControllerCreate({ $namespace, vpnSpec }: {
|
|
1233
|
+
$namespace: string;
|
|
1234
|
+
vpnSpec: VpnSpec;
|
|
817
1235
|
}, opts?: Oazapfts.RequestOpts) {
|
|
818
|
-
return oazapfts.ok(oazapfts.
|
|
819
|
-
status: 202;
|
|
820
|
-
data: Role;
|
|
821
|
-
}>("/portal/roles", oazapfts.json({
|
|
1236
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/vpns`, oazapfts.json({
|
|
822
1237
|
...opts,
|
|
823
1238
|
method: "POST",
|
|
824
|
-
body:
|
|
1239
|
+
body: vpnSpec
|
|
825
1240
|
})));
|
|
826
1241
|
}
|
|
827
|
-
export function
|
|
828
|
-
|
|
829
|
-
xAccountId?: string;
|
|
1242
|
+
export function permissionSetControllerList({ $namespace }: {
|
|
1243
|
+
$namespace: string;
|
|
830
1244
|
}, opts?: Oazapfts.RequestOpts) {
|
|
831
1245
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
832
|
-
status:
|
|
833
|
-
data:
|
|
834
|
-
}>(
|
|
835
|
-
...opts
|
|
836
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
837
|
-
Authorization: authorization,
|
|
838
|
-
"x-account-id": xAccountId
|
|
839
|
-
})
|
|
1246
|
+
status: 200;
|
|
1247
|
+
data: PermissionSet[];
|
|
1248
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/permission-sets`, {
|
|
1249
|
+
...opts
|
|
840
1250
|
}));
|
|
841
1251
|
}
|
|
842
|
-
export function
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
createFoundationRequest: CreateFoundationRequest;
|
|
1252
|
+
export function permissionSetControllerCreate({ $namespace, permissionSetSpec }: {
|
|
1253
|
+
$namespace: string;
|
|
1254
|
+
permissionSetSpec: PermissionSetSpec;
|
|
846
1255
|
}, opts?: Oazapfts.RequestOpts) {
|
|
847
|
-
return oazapfts.ok(oazapfts.
|
|
848
|
-
status: 202;
|
|
849
|
-
data: FoundationResponse;
|
|
850
|
-
}>("/portal/foundations", oazapfts.json({
|
|
1256
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/permission-sets`, oazapfts.json({
|
|
851
1257
|
...opts,
|
|
852
1258
|
method: "POST",
|
|
853
|
-
body:
|
|
854
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
855
|
-
Authorization: authorization,
|
|
856
|
-
"x-account-id": xAccountId
|
|
857
|
-
})
|
|
1259
|
+
body: permissionSetSpec
|
|
858
1260
|
})));
|
|
859
1261
|
}
|
|
860
|
-
export function
|
|
861
|
-
|
|
862
|
-
xAccountId?: string;
|
|
863
|
-
foundationId: string;
|
|
1262
|
+
export function managedPolicyAttachmentControllerList({ $namespace }: {
|
|
1263
|
+
$namespace: string;
|
|
864
1264
|
}, opts?: Oazapfts.RequestOpts) {
|
|
865
1265
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
866
1266
|
status: 200;
|
|
867
|
-
data:
|
|
868
|
-
}>(`/
|
|
869
|
-
...opts
|
|
870
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
871
|
-
Authorization: authorization,
|
|
872
|
-
"x-account-id": xAccountId
|
|
873
|
-
})
|
|
1267
|
+
data: ManagedPolicyAttachment[];
|
|
1268
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/managed-policy-attachments`, {
|
|
1269
|
+
...opts
|
|
874
1270
|
}));
|
|
875
1271
|
}
|
|
876
|
-
export function
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
foundationId: string;
|
|
880
|
-
createVpnRequest: CreateVpnRequest;
|
|
1272
|
+
export function managedPolicyAttachmentControllerCreate({ $namespace, managedPolicyAttachmentSpec }: {
|
|
1273
|
+
$namespace: string;
|
|
1274
|
+
managedPolicyAttachmentSpec: ManagedPolicyAttachmentSpec;
|
|
881
1275
|
}, opts?: Oazapfts.RequestOpts) {
|
|
882
|
-
return oazapfts.ok(oazapfts.
|
|
883
|
-
status: 202;
|
|
884
|
-
data: VpnResponse;
|
|
885
|
-
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns`, oazapfts.json({
|
|
1276
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/managed-policy-attachments`, oazapfts.json({
|
|
886
1277
|
...opts,
|
|
887
1278
|
method: "POST",
|
|
888
|
-
body:
|
|
889
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
890
|
-
Authorization: authorization,
|
|
891
|
-
"x-account-id": xAccountId
|
|
892
|
-
})
|
|
1279
|
+
body: managedPolicyAttachmentSpec
|
|
893
1280
|
})));
|
|
894
1281
|
}
|
|
895
|
-
export function
|
|
896
|
-
|
|
1282
|
+
export function identityStoreUserControllerList({ $namespace }: {
|
|
1283
|
+
$namespace: string;
|
|
897
1284
|
}, opts?: Oazapfts.RequestOpts) {
|
|
898
1285
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
899
1286
|
status: 200;
|
|
900
|
-
data:
|
|
901
|
-
}>(`/
|
|
1287
|
+
data: IdentityStoreUser[];
|
|
1288
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/identity-store-users`, {
|
|
902
1289
|
...opts
|
|
903
1290
|
}));
|
|
904
1291
|
}
|
|
905
|
-
export function
|
|
906
|
-
|
|
907
|
-
|
|
1292
|
+
export function identityStoreUserControllerCreate({ $namespace, identityStoreUserSpec }: {
|
|
1293
|
+
$namespace: string;
|
|
1294
|
+
identityStoreUserSpec: IdentityStoreUserSpec;
|
|
908
1295
|
}, opts?: Oazapfts.RequestOpts) {
|
|
909
|
-
return oazapfts.ok(oazapfts.
|
|
910
|
-
status: 202;
|
|
911
|
-
data: ServiceControlPolicy;
|
|
912
|
-
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/service-control-policies`, oazapfts.json({
|
|
1296
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/identity-store-users`, oazapfts.json({
|
|
913
1297
|
...opts,
|
|
914
1298
|
method: "POST",
|
|
915
|
-
body:
|
|
1299
|
+
body: identityStoreUserSpec
|
|
916
1300
|
})));
|
|
917
1301
|
}
|
|
918
|
-
export function
|
|
919
|
-
|
|
920
|
-
xAccountId?: string;
|
|
921
|
-
foundationId: string;
|
|
922
|
-
parentFolderId?: string;
|
|
1302
|
+
export function identityStoreMembershipControllerList({ $namespace }: {
|
|
1303
|
+
$namespace: string;
|
|
923
1304
|
}, opts?: Oazapfts.RequestOpts) {
|
|
924
1305
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
925
1306
|
status: 200;
|
|
926
|
-
data:
|
|
927
|
-
}>(`/
|
|
928
|
-
|
|
929
|
-
}))}`, {
|
|
930
|
-
...opts,
|
|
931
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
932
|
-
Authorization: authorization,
|
|
933
|
-
"x-account-id": xAccountId
|
|
934
|
-
})
|
|
1307
|
+
data: IdentityStoreMembership[];
|
|
1308
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/identity-store-memberships`, {
|
|
1309
|
+
...opts
|
|
935
1310
|
}));
|
|
936
1311
|
}
|
|
937
|
-
export function
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
foundationId: string;
|
|
941
|
-
createProjectRequest: CreateProjectRequest;
|
|
1312
|
+
export function identityStoreMembershipControllerCreate({ $namespace, identityStoreMembershipSpec }: {
|
|
1313
|
+
$namespace: string;
|
|
1314
|
+
identityStoreMembershipSpec: IdentityStoreMembershipSpec;
|
|
942
1315
|
}, opts?: Oazapfts.RequestOpts) {
|
|
943
|
-
return oazapfts.ok(oazapfts.
|
|
944
|
-
status: 202;
|
|
945
|
-
data: ProjectResponse;
|
|
946
|
-
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/projects`, oazapfts.json({
|
|
1316
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/identity-store-memberships`, oazapfts.json({
|
|
947
1317
|
...opts,
|
|
948
1318
|
method: "POST",
|
|
949
|
-
body:
|
|
950
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
951
|
-
Authorization: authorization,
|
|
952
|
-
"x-account-id": xAccountId
|
|
953
|
-
})
|
|
1319
|
+
body: identityStoreMembershipSpec
|
|
954
1320
|
})));
|
|
955
1321
|
}
|
|
956
|
-
export function
|
|
957
|
-
|
|
958
|
-
xAccountId?: string;
|
|
959
|
-
foundationId: string;
|
|
960
|
-
projectId?: string;
|
|
1322
|
+
export function identityStoreGroupControllerList({ $namespace }: {
|
|
1323
|
+
$namespace: string;
|
|
961
1324
|
}, opts?: Oazapfts.RequestOpts) {
|
|
962
1325
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
963
1326
|
status: 200;
|
|
964
|
-
data:
|
|
965
|
-
}>(`/
|
|
966
|
-
|
|
967
|
-
}))}`, {
|
|
968
|
-
...opts,
|
|
969
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
970
|
-
Authorization: authorization,
|
|
971
|
-
"x-account-id": xAccountId
|
|
972
|
-
})
|
|
1327
|
+
data: IdentityStoreGroup[];
|
|
1328
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/identity-store-groups`, {
|
|
1329
|
+
...opts
|
|
973
1330
|
}));
|
|
974
1331
|
}
|
|
975
|
-
export function
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
foundationId: string;
|
|
979
|
-
createNetworkRequest: CreateNetworkRequest;
|
|
1332
|
+
export function identityStoreGroupControllerCreate({ $namespace, identityStoreGroupSpec }: {
|
|
1333
|
+
$namespace: string;
|
|
1334
|
+
identityStoreGroupSpec: IdentityStoreGroupSpec;
|
|
980
1335
|
}, opts?: Oazapfts.RequestOpts) {
|
|
981
|
-
return oazapfts.ok(oazapfts.
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
1336
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/identity-store-groups`, oazapfts.json({
|
|
1337
|
+
...opts,
|
|
1338
|
+
method: "POST",
|
|
1339
|
+
body: identityStoreGroupSpec
|
|
1340
|
+
})));
|
|
1341
|
+
}
|
|
1342
|
+
export function identityCenterControllerList({ $namespace }: {
|
|
1343
|
+
$namespace: string;
|
|
1344
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1345
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1346
|
+
status: 200;
|
|
1347
|
+
data: IdentityCenter[];
|
|
1348
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/identity-centers`, {
|
|
1349
|
+
...opts
|
|
1350
|
+
}));
|
|
1351
|
+
}
|
|
1352
|
+
export function identityCenterControllerCreate({ $namespace, identityCenterSpec }: {
|
|
1353
|
+
$namespace: string;
|
|
1354
|
+
identityCenterSpec: IdentityCenterSpec;
|
|
1355
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1356
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/identity-centers`, oazapfts.json({
|
|
1357
|
+
...opts,
|
|
1358
|
+
method: "POST",
|
|
1359
|
+
body: identityCenterSpec
|
|
1360
|
+
})));
|
|
1361
|
+
}
|
|
1362
|
+
export function folderControllerList({ $namespace }: {
|
|
1363
|
+
$namespace: string;
|
|
1364
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1365
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1366
|
+
status: 200;
|
|
1367
|
+
data: Folder[];
|
|
1368
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/folders`, {
|
|
1369
|
+
...opts
|
|
1370
|
+
}));
|
|
1371
|
+
}
|
|
1372
|
+
export function folderControllerCreate({ $namespace, folderSpec }: {
|
|
1373
|
+
$namespace: string;
|
|
1374
|
+
folderSpec: FolderSpec;
|
|
1375
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1376
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/folders`, oazapfts.json({
|
|
1377
|
+
...opts,
|
|
1378
|
+
method: "POST",
|
|
1379
|
+
body: folderSpec
|
|
1380
|
+
})));
|
|
1381
|
+
}
|
|
1382
|
+
export function fmsPolicyControllerList({ $namespace }: {
|
|
1383
|
+
$namespace: string;
|
|
1384
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1385
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1386
|
+
status: 200;
|
|
1387
|
+
data: FmsPolicy[];
|
|
1388
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/fms-policies`, {
|
|
1389
|
+
...opts
|
|
1390
|
+
}));
|
|
1391
|
+
}
|
|
1392
|
+
export function fmsPolicyControllerCreate({ $namespace, fmsPolicySpec }: {
|
|
1393
|
+
$namespace: string;
|
|
1394
|
+
fmsPolicySpec: FmsPolicySpec;
|
|
1395
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1396
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/fms-policies`, oazapfts.json({
|
|
1397
|
+
...opts,
|
|
1398
|
+
method: "POST",
|
|
1399
|
+
body: fmsPolicySpec
|
|
1400
|
+
})));
|
|
1401
|
+
}
|
|
1402
|
+
export function fmsAssociateAdminAccountControllerList({ $namespace }: {
|
|
1403
|
+
$namespace: string;
|
|
1404
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1405
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1406
|
+
status: 200;
|
|
1407
|
+
data: FmsAssociateAdminAccount[];
|
|
1408
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/fms-associate-admin-accounts`, {
|
|
1409
|
+
...opts
|
|
1410
|
+
}));
|
|
1411
|
+
}
|
|
1412
|
+
export function fmsAssociateAdminAccountControllerCreate({ $namespace, fmsAssociateAdminAccountSpec }: {
|
|
1413
|
+
$namespace: string;
|
|
1414
|
+
fmsAssociateAdminAccountSpec: FmsAssociateAdminAccountSpec;
|
|
1415
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1416
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/fms-associate-admin-accounts`, oazapfts.json({
|
|
1417
|
+
...opts,
|
|
1418
|
+
method: "POST",
|
|
1419
|
+
body: fmsAssociateAdminAccountSpec
|
|
1420
|
+
})));
|
|
1421
|
+
}
|
|
1422
|
+
export function firewallControllerList({ $namespace }: {
|
|
1423
|
+
$namespace: string;
|
|
1424
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1425
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1426
|
+
status: 200;
|
|
1427
|
+
data: Firewall[];
|
|
1428
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/firewall`, {
|
|
1429
|
+
...opts
|
|
1430
|
+
}));
|
|
1431
|
+
}
|
|
1432
|
+
export function firewallControllerCreate({ $namespace, firewallSpec }: {
|
|
1433
|
+
$namespace: string;
|
|
1434
|
+
firewallSpec: FirewallSpec;
|
|
1435
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1436
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/firewall`, oazapfts.json({
|
|
1437
|
+
...opts,
|
|
1438
|
+
method: "POST",
|
|
1439
|
+
body: firewallSpec
|
|
1440
|
+
})));
|
|
1441
|
+
}
|
|
1442
|
+
export function dnsZoneControllerListPrivate({ $namespace, $type, projectName }: {
|
|
1443
|
+
$namespace: string;
|
|
1444
|
+
$type: "PUBLIC" | "PRIVATE";
|
|
1445
|
+
projectName: string;
|
|
1446
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1447
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1448
|
+
status: 200;
|
|
1449
|
+
data: DnsZone[];
|
|
1450
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/dns-zones${QS.query(QS.explode({
|
|
1451
|
+
"type": $type,
|
|
1452
|
+
projectName
|
|
1453
|
+
}))}`, {
|
|
1454
|
+
...opts
|
|
1455
|
+
}));
|
|
1456
|
+
}
|
|
1457
|
+
export function dnsZoneControllerCreate({ $namespace, dnsZoneSpec }: {
|
|
1458
|
+
$namespace: string;
|
|
1459
|
+
dnsZoneSpec: DnsZoneSpec;
|
|
1460
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1461
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-zones`, oazapfts.json({
|
|
1462
|
+
...opts,
|
|
1463
|
+
method: "POST",
|
|
1464
|
+
body: dnsZoneSpec
|
|
1465
|
+
})));
|
|
1466
|
+
}
|
|
1467
|
+
export function dnsRecordControllerList({ $namespace }: {
|
|
1468
|
+
$namespace: string;
|
|
1469
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1470
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1471
|
+
status: 200;
|
|
1472
|
+
data: DnsRecord[];
|
|
1473
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records`, {
|
|
1474
|
+
...opts
|
|
1475
|
+
}));
|
|
1476
|
+
}
|
|
1477
|
+
export function dnsRecordControllerCreate({ $namespace, dnsRecordSpec }: {
|
|
1478
|
+
$namespace: string;
|
|
1479
|
+
dnsRecordSpec: DnsRecordSpec;
|
|
1480
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1481
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records`, oazapfts.json({
|
|
1482
|
+
...opts,
|
|
1483
|
+
method: "POST",
|
|
1484
|
+
body: dnsRecordSpec
|
|
1485
|
+
})));
|
|
1486
|
+
}
|
|
1487
|
+
export function customerPolicyAttachmentControllerList({ $namespace }: {
|
|
1488
|
+
$namespace: string;
|
|
1489
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1490
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1491
|
+
status: 200;
|
|
1492
|
+
data: CustomerPolicyAttachment[];
|
|
1493
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/customer-policy-attachments`, {
|
|
1494
|
+
...opts
|
|
1495
|
+
}));
|
|
1496
|
+
}
|
|
1497
|
+
export function customerPolicyAttachmentControllerCreate({ $namespace, customerPolicyAttachmentSpec }: {
|
|
1498
|
+
$namespace: string;
|
|
1499
|
+
customerPolicyAttachmentSpec: CustomerPolicyAttachmentSpec;
|
|
1500
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1501
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/customer-policy-attachments`, oazapfts.json({
|
|
1502
|
+
...opts,
|
|
1503
|
+
method: "POST",
|
|
1504
|
+
body: customerPolicyAttachmentSpec
|
|
1505
|
+
})));
|
|
1506
|
+
}
|
|
1507
|
+
export function cidrControllerList({ $namespace }: {
|
|
1508
|
+
$namespace: string;
|
|
1509
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1510
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1511
|
+
status: 200;
|
|
1512
|
+
data: Cidr[];
|
|
1513
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/cidrs`, {
|
|
1514
|
+
...opts
|
|
1515
|
+
}));
|
|
1516
|
+
}
|
|
1517
|
+
export function cidrControllerCreate({ $namespace, cidrSpec }: {
|
|
1518
|
+
$namespace: string;
|
|
1519
|
+
cidrSpec: CidrSpec;
|
|
1520
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1521
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/cidrs`, oazapfts.json({
|
|
1522
|
+
...opts,
|
|
1523
|
+
method: "POST",
|
|
1524
|
+
body: cidrSpec
|
|
1525
|
+
})));
|
|
1526
|
+
}
|
|
1527
|
+
export function certificateControllerList({ $namespace }: {
|
|
1528
|
+
$namespace: string;
|
|
1529
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1530
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1531
|
+
status: 200;
|
|
1532
|
+
data: Certificate[];
|
|
1533
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/certificates`, {
|
|
1534
|
+
...opts
|
|
1535
|
+
}));
|
|
1536
|
+
}
|
|
1537
|
+
export function certificateControllerCreate({ $namespace, certificateSpec }: {
|
|
1538
|
+
$namespace: string;
|
|
1539
|
+
certificateSpec: CertificateSpec;
|
|
1540
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1541
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/certificates`, oazapfts.json({
|
|
1542
|
+
...opts,
|
|
1543
|
+
method: "POST",
|
|
1544
|
+
body: certificateSpec
|
|
1545
|
+
})));
|
|
1546
|
+
}
|
|
1547
|
+
export function accountAssignmentControllerList({ $namespace }: {
|
|
1548
|
+
$namespace: string;
|
|
1549
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1550
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1551
|
+
status: 200;
|
|
1552
|
+
data: AccountAssignment[];
|
|
1553
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/account-assignments`, {
|
|
1554
|
+
...opts
|
|
1555
|
+
}));
|
|
1556
|
+
}
|
|
1557
|
+
export function accountAssignmentControllerCreate({ $namespace, accountAssignmentSpec }: {
|
|
1558
|
+
$namespace: string;
|
|
1559
|
+
accountAssignmentSpec: AccountAssignmentSpec;
|
|
1560
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1561
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/account-assignments`, oazapfts.json({
|
|
1562
|
+
...opts,
|
|
1563
|
+
method: "POST",
|
|
1564
|
+
body: accountAssignmentSpec
|
|
1565
|
+
})));
|
|
1566
|
+
}
|
|
1567
|
+
export function listRole(opts?: Oazapfts.RequestOpts) {
|
|
1568
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1569
|
+
status: 200;
|
|
1570
|
+
data: ListRole;
|
|
1571
|
+
}>("/portal/roles", {
|
|
1572
|
+
...opts
|
|
1573
|
+
}));
|
|
1574
|
+
}
|
|
1575
|
+
export function createRole({ role }: {
|
|
1576
|
+
role: Role;
|
|
1577
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1578
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1579
|
+
status: 202;
|
|
1580
|
+
data: Role;
|
|
1581
|
+
}>("/portal/roles", oazapfts.json({
|
|
1582
|
+
...opts,
|
|
1583
|
+
method: "POST",
|
|
1584
|
+
body: role
|
|
1585
|
+
})));
|
|
1586
|
+
}
|
|
1587
|
+
export function listFoundations({ authorization, xAccountId }: {
|
|
1588
|
+
authorization: string;
|
|
1589
|
+
xAccountId?: string;
|
|
1590
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1591
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1592
|
+
status: 202;
|
|
1593
|
+
data: ListFoundationResponse;
|
|
1594
|
+
}>("/portal/foundations", {
|
|
1595
|
+
...opts,
|
|
1596
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1597
|
+
Authorization: authorization,
|
|
1598
|
+
"x-account-id": xAccountId
|
|
1599
|
+
})
|
|
1600
|
+
}));
|
|
1601
|
+
}
|
|
1602
|
+
export function createFoundation({ authorization, xAccountId, createFoundationRequest }: {
|
|
1603
|
+
authorization: string;
|
|
1604
|
+
xAccountId?: string;
|
|
1605
|
+
createFoundationRequest: CreateFoundationRequest;
|
|
1606
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1607
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1608
|
+
status: 202;
|
|
1609
|
+
data: FoundationResponse;
|
|
1610
|
+
}>("/portal/foundations", oazapfts.json({
|
|
1611
|
+
...opts,
|
|
1612
|
+
method: "POST",
|
|
1613
|
+
body: createFoundationRequest,
|
|
1614
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1615
|
+
Authorization: authorization,
|
|
1616
|
+
"x-account-id": xAccountId
|
|
1617
|
+
})
|
|
1618
|
+
})));
|
|
1619
|
+
}
|
|
1620
|
+
export function listVpns({ authorization, xAccountId, foundationId }: {
|
|
1621
|
+
authorization: string;
|
|
1622
|
+
xAccountId?: string;
|
|
1623
|
+
foundationId: string;
|
|
1624
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1625
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1626
|
+
status: 200;
|
|
1627
|
+
data: ListVpnResponse;
|
|
1628
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns`, {
|
|
1629
|
+
...opts,
|
|
1630
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1631
|
+
Authorization: authorization,
|
|
1632
|
+
"x-account-id": xAccountId
|
|
1633
|
+
})
|
|
1634
|
+
}));
|
|
1635
|
+
}
|
|
1636
|
+
export function createVpn({ authorization, xAccountId, foundationId, createVpnRequest }: {
|
|
1637
|
+
authorization: string;
|
|
1638
|
+
xAccountId?: string;
|
|
1639
|
+
foundationId: string;
|
|
1640
|
+
createVpnRequest: CreateVpnRequest;
|
|
1641
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1642
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1643
|
+
status: 202;
|
|
1644
|
+
data: VpnResponse;
|
|
1645
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns`, oazapfts.json({
|
|
1646
|
+
...opts,
|
|
1647
|
+
method: "POST",
|
|
1648
|
+
body: createVpnRequest,
|
|
1649
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1650
|
+
Authorization: authorization,
|
|
1651
|
+
"x-account-id": xAccountId
|
|
1652
|
+
})
|
|
1653
|
+
})));
|
|
1654
|
+
}
|
|
1655
|
+
export function listServiceControlPolicy({ foundationId }: {
|
|
1656
|
+
foundationId: string;
|
|
1657
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1658
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1659
|
+
status: 200;
|
|
1660
|
+
data: ListServiceControlPolicy;
|
|
1661
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/service-control-policies`, {
|
|
1662
|
+
...opts
|
|
1663
|
+
}));
|
|
1664
|
+
}
|
|
1665
|
+
export function createServiceControlPolicy({ foundationId, serviceControlPolicy }: {
|
|
1666
|
+
foundationId: string;
|
|
1667
|
+
serviceControlPolicy: ServiceControlPolicy;
|
|
1668
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1669
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1670
|
+
status: 202;
|
|
1671
|
+
data: ServiceControlPolicy;
|
|
1672
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/service-control-policies`, oazapfts.json({
|
|
1673
|
+
...opts,
|
|
1674
|
+
method: "POST",
|
|
1675
|
+
body: serviceControlPolicy
|
|
1676
|
+
})));
|
|
1677
|
+
}
|
|
1678
|
+
export function listProject({ authorization, xAccountId, foundationId, parentFolderId }: {
|
|
1679
|
+
authorization: string;
|
|
1680
|
+
xAccountId?: string;
|
|
1681
|
+
foundationId: string;
|
|
1682
|
+
parentFolderId?: string;
|
|
1683
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1684
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1685
|
+
status: 200;
|
|
1686
|
+
data: ListProjectResponse;
|
|
1687
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/projects${QS.query(QS.explode({
|
|
1688
|
+
parentFolderId
|
|
1689
|
+
}))}`, {
|
|
1690
|
+
...opts,
|
|
1691
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1692
|
+
Authorization: authorization,
|
|
1693
|
+
"x-account-id": xAccountId
|
|
1694
|
+
})
|
|
1695
|
+
}));
|
|
1696
|
+
}
|
|
1697
|
+
export function createProject({ authorization, xAccountId, foundationId, createProjectRequest }: {
|
|
1698
|
+
authorization: string;
|
|
1699
|
+
xAccountId?: string;
|
|
1700
|
+
foundationId: string;
|
|
1701
|
+
createProjectRequest: CreateProjectRequest;
|
|
1702
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1703
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1704
|
+
status: 202;
|
|
1705
|
+
data: ProjectResponse;
|
|
1706
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/projects`, oazapfts.json({
|
|
1707
|
+
...opts,
|
|
1708
|
+
method: "POST",
|
|
1709
|
+
body: createProjectRequest,
|
|
1710
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1711
|
+
Authorization: authorization,
|
|
1712
|
+
"x-account-id": xAccountId
|
|
1713
|
+
})
|
|
1714
|
+
})));
|
|
1715
|
+
}
|
|
1716
|
+
export function listNetwork({ authorization, xAccountId, foundationId, projectId }: {
|
|
1717
|
+
authorization: string;
|
|
1718
|
+
xAccountId?: string;
|
|
1719
|
+
foundationId: string;
|
|
1720
|
+
projectId?: string;
|
|
1721
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1722
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1723
|
+
status: 200;
|
|
1724
|
+
data: ListNetworkResponse;
|
|
1725
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/networks${QS.query(QS.explode({
|
|
1726
|
+
projectId
|
|
1727
|
+
}))}`, {
|
|
1728
|
+
...opts,
|
|
1729
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1730
|
+
Authorization: authorization,
|
|
1731
|
+
"x-account-id": xAccountId
|
|
1732
|
+
})
|
|
1733
|
+
}));
|
|
1734
|
+
}
|
|
1735
|
+
export function createNetwork({ authorization, xAccountId, foundationId, createNetworkRequest }: {
|
|
1736
|
+
authorization: string;
|
|
1737
|
+
xAccountId?: string;
|
|
1738
|
+
foundationId: string;
|
|
1739
|
+
createNetworkRequest: CreateNetworkRequest;
|
|
1740
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1741
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1742
|
+
status: 202;
|
|
1743
|
+
data: NetworkResponse;
|
|
1744
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/networks`, oazapfts.json({
|
|
985
1745
|
...opts,
|
|
986
1746
|
method: "POST",
|
|
987
1747
|
body: createNetworkRequest,
|
|
@@ -1228,6 +1988,362 @@ export function createBoundarySso({ foundationId, createBoundarySsoRequest }: {
|
|
|
1228
1988
|
body: createBoundarySsoRequest
|
|
1229
1989
|
})));
|
|
1230
1990
|
}
|
|
1991
|
+
export function oidcControllerGet(opts?: Oazapfts.RequestOpts) {
|
|
1992
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1993
|
+
status: 200;
|
|
1994
|
+
data: string;
|
|
1995
|
+
}>("/v2/oidc/v2/oidc", {
|
|
1996
|
+
...opts
|
|
1997
|
+
}));
|
|
1998
|
+
}
|
|
1999
|
+
export function vpnControllerGet({ $namespace, name }: {
|
|
2000
|
+
$namespace: string;
|
|
2001
|
+
name: string;
|
|
2002
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2003
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2004
|
+
status: 200;
|
|
2005
|
+
data: Vpn;
|
|
2006
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/vpns/${encodeURIComponent(name)}`, {
|
|
2007
|
+
...opts
|
|
2008
|
+
}));
|
|
2009
|
+
}
|
|
2010
|
+
export function vpnControllerDelete({ $namespace, name }: {
|
|
2011
|
+
$namespace: string;
|
|
2012
|
+
name: string;
|
|
2013
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2014
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/vpns/${encodeURIComponent(name)}`, {
|
|
2015
|
+
...opts,
|
|
2016
|
+
method: "DELETE"
|
|
2017
|
+
}));
|
|
2018
|
+
}
|
|
2019
|
+
export function permissionSetControllerGet({ $namespace, name }: {
|
|
2020
|
+
$namespace: string;
|
|
2021
|
+
name: string;
|
|
2022
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2023
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2024
|
+
status: 200;
|
|
2025
|
+
data: PermissionSet;
|
|
2026
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/permission-sets/${encodeURIComponent(name)}`, {
|
|
2027
|
+
...opts
|
|
2028
|
+
}));
|
|
2029
|
+
}
|
|
2030
|
+
export function permissionSetControllerDelete({ $namespace, name }: {
|
|
2031
|
+
$namespace: string;
|
|
2032
|
+
name: string;
|
|
2033
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2034
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/permission-sets/${encodeURIComponent(name)}`, {
|
|
2035
|
+
...opts,
|
|
2036
|
+
method: "DELETE"
|
|
2037
|
+
}));
|
|
2038
|
+
}
|
|
2039
|
+
export function managedPolicyAttachmentControllerGet({ $namespace, name }: {
|
|
2040
|
+
$namespace: string;
|
|
2041
|
+
name: string;
|
|
2042
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2043
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2044
|
+
status: 200;
|
|
2045
|
+
data: ManagedPolicyAttachment;
|
|
2046
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/managed-policy-attachments/${encodeURIComponent(name)}`, {
|
|
2047
|
+
...opts
|
|
2048
|
+
}));
|
|
2049
|
+
}
|
|
2050
|
+
export function managedPolicyAttachmentControllerDelete({ $namespace, name }: {
|
|
2051
|
+
$namespace: string;
|
|
2052
|
+
name: string;
|
|
2053
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2054
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/managed-policy-attachments/${encodeURIComponent(name)}`, {
|
|
2055
|
+
...opts,
|
|
2056
|
+
method: "DELETE"
|
|
2057
|
+
}));
|
|
2058
|
+
}
|
|
2059
|
+
export function identityStoreUserControllerGet({ $namespace, name }: {
|
|
2060
|
+
$namespace: string;
|
|
2061
|
+
name: string;
|
|
2062
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2063
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2064
|
+
status: 200;
|
|
2065
|
+
data: IdentityStoreUser;
|
|
2066
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/identity-store-users/${encodeURIComponent(name)}`, {
|
|
2067
|
+
...opts
|
|
2068
|
+
}));
|
|
2069
|
+
}
|
|
2070
|
+
export function identityStoreUserControllerDelete({ $namespace, name }: {
|
|
2071
|
+
$namespace: string;
|
|
2072
|
+
name: string;
|
|
2073
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2074
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/identity-store-users/${encodeURIComponent(name)}`, {
|
|
2075
|
+
...opts,
|
|
2076
|
+
method: "DELETE"
|
|
2077
|
+
}));
|
|
2078
|
+
}
|
|
2079
|
+
export function identityStoreMembershipControllerGet({ $namespace, name }: {
|
|
2080
|
+
$namespace: string;
|
|
2081
|
+
name: string;
|
|
2082
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2083
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2084
|
+
status: 200;
|
|
2085
|
+
data: IdentityStoreMembership;
|
|
2086
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/identity-store-memberships/${encodeURIComponent(name)}`, {
|
|
2087
|
+
...opts
|
|
2088
|
+
}));
|
|
2089
|
+
}
|
|
2090
|
+
export function identityStoreMembershipControllerDelete({ $namespace, name }: {
|
|
2091
|
+
$namespace: string;
|
|
2092
|
+
name: string;
|
|
2093
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2094
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/identity-store-memberships/${encodeURIComponent(name)}`, {
|
|
2095
|
+
...opts,
|
|
2096
|
+
method: "DELETE"
|
|
2097
|
+
}));
|
|
2098
|
+
}
|
|
2099
|
+
export function identityStoreGroupControllerGet({ $namespace, name }: {
|
|
2100
|
+
$namespace: string;
|
|
2101
|
+
name: string;
|
|
2102
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2103
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2104
|
+
status: 200;
|
|
2105
|
+
data: IdentityStoreGroup;
|
|
2106
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/identity-store-groups/${encodeURIComponent(name)}`, {
|
|
2107
|
+
...opts
|
|
2108
|
+
}));
|
|
2109
|
+
}
|
|
2110
|
+
export function identityStoreGroupControllerDelete({ $namespace, name }: {
|
|
2111
|
+
$namespace: string;
|
|
2112
|
+
name: string;
|
|
2113
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2114
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/identity-store-groups/${encodeURIComponent(name)}`, {
|
|
2115
|
+
...opts,
|
|
2116
|
+
method: "DELETE"
|
|
2117
|
+
}));
|
|
2118
|
+
}
|
|
2119
|
+
export function identityCenterControllerGet({ $namespace, name }: {
|
|
2120
|
+
$namespace: string;
|
|
2121
|
+
name: string;
|
|
2122
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2123
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2124
|
+
status: 200;
|
|
2125
|
+
data: IdentityCenter;
|
|
2126
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/identity-centers/${encodeURIComponent(name)}`, {
|
|
2127
|
+
...opts
|
|
2128
|
+
}));
|
|
2129
|
+
}
|
|
2130
|
+
export function identityCenterControllerDelete({ $namespace, name }: {
|
|
2131
|
+
$namespace: string;
|
|
2132
|
+
name: string;
|
|
2133
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2134
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/identity-centers/${encodeURIComponent(name)}`, {
|
|
2135
|
+
...opts,
|
|
2136
|
+
method: "DELETE"
|
|
2137
|
+
}));
|
|
2138
|
+
}
|
|
2139
|
+
export function folderControllerGet({ $namespace, name }: {
|
|
2140
|
+
$namespace: string;
|
|
2141
|
+
name: string;
|
|
2142
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2143
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2144
|
+
status: 200;
|
|
2145
|
+
data: Folder;
|
|
2146
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/folders/${encodeURIComponent(name)}`, {
|
|
2147
|
+
...opts
|
|
2148
|
+
}));
|
|
2149
|
+
}
|
|
2150
|
+
export function folderControllerDelete({ $namespace, name }: {
|
|
2151
|
+
$namespace: string;
|
|
2152
|
+
name: string;
|
|
2153
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2154
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/folders/${encodeURIComponent(name)}`, {
|
|
2155
|
+
...opts,
|
|
2156
|
+
method: "DELETE"
|
|
2157
|
+
}));
|
|
2158
|
+
}
|
|
2159
|
+
export function fmsPolicyControllerGet({ $namespace, name }: {
|
|
2160
|
+
$namespace: string;
|
|
2161
|
+
name: string;
|
|
2162
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2163
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2164
|
+
status: 200;
|
|
2165
|
+
data: FmsPolicy;
|
|
2166
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/fms-policies/${encodeURIComponent(name)}`, {
|
|
2167
|
+
...opts
|
|
2168
|
+
}));
|
|
2169
|
+
}
|
|
2170
|
+
export function fmsPolicyControllerDelete({ $namespace, name }: {
|
|
2171
|
+
$namespace: string;
|
|
2172
|
+
name: string;
|
|
2173
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2174
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/fms-policies/${encodeURIComponent(name)}`, {
|
|
2175
|
+
...opts,
|
|
2176
|
+
method: "DELETE"
|
|
2177
|
+
}));
|
|
2178
|
+
}
|
|
2179
|
+
export function fmsAssociateAdminAccountControllerGet({ $namespace, name }: {
|
|
2180
|
+
$namespace: string;
|
|
2181
|
+
name: string;
|
|
2182
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2183
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2184
|
+
status: 200;
|
|
2185
|
+
data: FmsAssociateAdminAccount;
|
|
2186
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/fms-associate-admin-accounts/${encodeURIComponent(name)}`, {
|
|
2187
|
+
...opts
|
|
2188
|
+
}));
|
|
2189
|
+
}
|
|
2190
|
+
export function fmsAssociateAdminAccountControllerDelete({ $namespace, name }: {
|
|
2191
|
+
$namespace: string;
|
|
2192
|
+
name: string;
|
|
2193
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2194
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/fms-associate-admin-accounts/${encodeURIComponent(name)}`, {
|
|
2195
|
+
...opts,
|
|
2196
|
+
method: "DELETE"
|
|
2197
|
+
}));
|
|
2198
|
+
}
|
|
2199
|
+
export function firewallControllerGet({ $namespace, name }: {
|
|
2200
|
+
$namespace: string;
|
|
2201
|
+
name: string;
|
|
2202
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2203
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2204
|
+
status: 200;
|
|
2205
|
+
data: Firewall;
|
|
2206
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/firewall/${encodeURIComponent(name)}`, {
|
|
2207
|
+
...opts
|
|
2208
|
+
}));
|
|
2209
|
+
}
|
|
2210
|
+
export function firewallControllerDelete({ $namespace, name }: {
|
|
2211
|
+
$namespace: string;
|
|
2212
|
+
name: string;
|
|
2213
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2214
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/firewall/${encodeURIComponent(name)}`, {
|
|
2215
|
+
...opts,
|
|
2216
|
+
method: "DELETE"
|
|
2217
|
+
}));
|
|
2218
|
+
}
|
|
2219
|
+
export function dnsZoneControllerGet({ $namespace, name }: {
|
|
2220
|
+
$namespace: string;
|
|
2221
|
+
name: string;
|
|
2222
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2223
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2224
|
+
status: 200;
|
|
2225
|
+
data: DnsZone;
|
|
2226
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/dns-zones/${encodeURIComponent(name)}`, {
|
|
2227
|
+
...opts
|
|
2228
|
+
}));
|
|
2229
|
+
}
|
|
2230
|
+
export function dnsZoneControllerDelete({ $namespace, name }: {
|
|
2231
|
+
$namespace: string;
|
|
2232
|
+
name: string;
|
|
2233
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2234
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-zones/${encodeURIComponent(name)}`, {
|
|
2235
|
+
...opts,
|
|
2236
|
+
method: "DELETE"
|
|
2237
|
+
}));
|
|
2238
|
+
}
|
|
2239
|
+
export function dnsRecordControllerGet({ $namespace, name }: {
|
|
2240
|
+
$namespace: string;
|
|
2241
|
+
name: string;
|
|
2242
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2243
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2244
|
+
status: 200;
|
|
2245
|
+
data: DnsRecord;
|
|
2246
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records/${encodeURIComponent(name)}`, {
|
|
2247
|
+
...opts
|
|
2248
|
+
}));
|
|
2249
|
+
}
|
|
2250
|
+
export function dnsRecordControllerDelete({ $namespace, name }: {
|
|
2251
|
+
$namespace: string;
|
|
2252
|
+
name: string;
|
|
2253
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2254
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records/${encodeURIComponent(name)}`, {
|
|
2255
|
+
...opts,
|
|
2256
|
+
method: "DELETE"
|
|
2257
|
+
}));
|
|
2258
|
+
}
|
|
2259
|
+
export function customerPolicyAttachmentControllerGet({ $namespace, name }: {
|
|
2260
|
+
$namespace: string;
|
|
2261
|
+
name: string;
|
|
2262
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2263
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2264
|
+
status: 200;
|
|
2265
|
+
data: CustomerPolicyAttachment;
|
|
2266
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/customer-policy-attachments/${encodeURIComponent(name)}`, {
|
|
2267
|
+
...opts
|
|
2268
|
+
}));
|
|
2269
|
+
}
|
|
2270
|
+
export function customerPolicyAttachmentControllerDelete({ $namespace, name }: {
|
|
2271
|
+
$namespace: string;
|
|
2272
|
+
name: string;
|
|
2273
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2274
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/customer-policy-attachments/${encodeURIComponent(name)}`, {
|
|
2275
|
+
...opts,
|
|
2276
|
+
method: "DELETE"
|
|
2277
|
+
}));
|
|
2278
|
+
}
|
|
2279
|
+
export function cidrControllerGet({ $namespace, name }: {
|
|
2280
|
+
$namespace: string;
|
|
2281
|
+
name: string;
|
|
2282
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2283
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2284
|
+
status: 200;
|
|
2285
|
+
data: Cidr;
|
|
2286
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/cidrs/${encodeURIComponent(name)}`, {
|
|
2287
|
+
...opts
|
|
2288
|
+
}));
|
|
2289
|
+
}
|
|
2290
|
+
export function cidrControllerDelete({ $namespace, name }: {
|
|
2291
|
+
$namespace: string;
|
|
2292
|
+
name: string;
|
|
2293
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2294
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/cidrs/${encodeURIComponent(name)}`, {
|
|
2295
|
+
...opts,
|
|
2296
|
+
method: "DELETE"
|
|
2297
|
+
}));
|
|
2298
|
+
}
|
|
2299
|
+
export function certificateControllerGet({ $namespace, name }: {
|
|
2300
|
+
$namespace: string;
|
|
2301
|
+
name: string;
|
|
2302
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2303
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2304
|
+
status: 200;
|
|
2305
|
+
data: Certificate;
|
|
2306
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/certificates/${encodeURIComponent(name)}`, {
|
|
2307
|
+
...opts
|
|
2308
|
+
}));
|
|
2309
|
+
}
|
|
2310
|
+
export function certificateControllerDelete({ $namespace, name }: {
|
|
2311
|
+
$namespace: string;
|
|
2312
|
+
name: string;
|
|
2313
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2314
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/certificates/${encodeURIComponent(name)}`, {
|
|
2315
|
+
...opts,
|
|
2316
|
+
method: "DELETE"
|
|
2317
|
+
}));
|
|
2318
|
+
}
|
|
2319
|
+
export function accountAssignmentControllerGet({ $namespace, name }: {
|
|
2320
|
+
$namespace: string;
|
|
2321
|
+
name: string;
|
|
2322
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2323
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2324
|
+
status: 200;
|
|
2325
|
+
data: AccountAssignment;
|
|
2326
|
+
}>(`/v2/foundations/${encodeURIComponent($namespace)}/account-assignments/${encodeURIComponent(name)}`, {
|
|
2327
|
+
...opts
|
|
2328
|
+
}));
|
|
2329
|
+
}
|
|
2330
|
+
export function accountAssignmentControllerDelete({ $namespace, name }: {
|
|
2331
|
+
$namespace: string;
|
|
2332
|
+
name: string;
|
|
2333
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2334
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/account-assignments/${encodeURIComponent(name)}`, {
|
|
2335
|
+
...opts,
|
|
2336
|
+
method: "DELETE"
|
|
2337
|
+
}));
|
|
2338
|
+
}
|
|
2339
|
+
export function getOidc(opts?: Oazapfts.RequestOpts) {
|
|
2340
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2341
|
+
status: 200;
|
|
2342
|
+
data: string;
|
|
2343
|
+
}>("/portal/oidc", {
|
|
2344
|
+
...opts
|
|
2345
|
+
}));
|
|
2346
|
+
}
|
|
1231
2347
|
export function getFoundation({ authorization, xAccountId, foundationId }: {
|
|
1232
2348
|
authorization: string;
|
|
1233
2349
|
xAccountId?: string;
|