@daytonaio/api-client 0.120.0 → 0.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api/organizations-api.d.ts +117 -3
- package/src/api/organizations-api.js +232 -0
- package/src/api/organizations-api.js.map +1 -1
- package/src/api/regions-api.d.ts +78 -0
- package/src/api/regions-api.js +139 -0
- package/src/api/regions-api.js.map +1 -0
- package/src/api/sandbox-api.d.ts +0 -34
- package/src/api/sandbox-api.js +0 -69
- package/src/api/sandbox-api.js.map +1 -1
- package/src/api.d.ts +1 -0
- package/src/api.js +1 -0
- package/src/api.js.map +1 -1
- package/src/models/create-organization.d.ts +6 -0
- package/src/models/create-user.d.ts +6 -0
- package/src/models/create-user.js.map +1 -1
- package/src/models/index.d.ts +4 -0
- package/src/models/index.js +4 -0
- package/src/models/index.js.map +1 -1
- package/src/models/organization-usage-overview.d.ts +3 -32
- package/src/models/organization-usage-overview.js +12 -0
- package/src/models/organization-usage-overview.js.map +1 -1
- package/src/models/organization.d.ts +2 -20
- package/src/models/region-quota.d.ts +48 -0
- package/src/models/region-quota.js +4 -0
- package/src/models/region-quota.js.map +1 -0
- package/src/models/region-usage-overview.d.ts +60 -0
- package/src/models/region-usage-overview.js +4 -0
- package/src/models/region-usage-overview.js.map +1 -0
- package/src/models/region.d.ts +24 -0
- package/src/models/update-organization-default-region.d.ts +24 -0
- package/src/models/update-organization-default-region.js +4 -0
- package/src/models/update-organization-default-region.js.map +1 -0
- package/src/models/update-organization-quota.d.ts +0 -18
- package/src/models/update-organization-region-quota.d.ts +36 -0
- package/src/models/update-organization-region-quota.js +4 -0
- package/src/models/update-organization-region-quota.js.map +1 -0
package/package.json
CHANGED
|
@@ -22,9 +22,12 @@ import type { OrganizationSandboxDefaultLimitedNetworkEgress } from '../models';
|
|
|
22
22
|
import type { OrganizationSuspension } from '../models';
|
|
23
23
|
import type { OrganizationUsageOverview } from '../models';
|
|
24
24
|
import type { OrganizationUser } from '../models';
|
|
25
|
+
import type { RegionQuota } from '../models';
|
|
26
|
+
import type { UpdateOrganizationDefaultRegion } from '../models';
|
|
25
27
|
import type { UpdateOrganizationInvitation } from '../models';
|
|
26
28
|
import type { UpdateOrganizationMemberAccess } from '../models';
|
|
27
29
|
import type { UpdateOrganizationQuota } from '../models';
|
|
30
|
+
import type { UpdateOrganizationRegionQuota } from '../models';
|
|
28
31
|
import type { UpdateOrganizationRole } from '../models';
|
|
29
32
|
/**
|
|
30
33
|
* OrganizationsApi - axios parameter creator
|
|
@@ -139,6 +142,14 @@ export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configu
|
|
|
139
142
|
* @throws {RequiredError}
|
|
140
143
|
*/
|
|
141
144
|
getOrganizationUsageOverview: (organizationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @summary Get region quota by sandbox ID
|
|
148
|
+
* @param {string} sandboxId Sandbox ID
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
getRegionQuotaBySandboxId: (sandboxId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
142
153
|
/**
|
|
143
154
|
*
|
|
144
155
|
* @summary Leave organization
|
|
@@ -185,6 +196,15 @@ export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configu
|
|
|
185
196
|
* @throws {RequiredError}
|
|
186
197
|
*/
|
|
187
198
|
listOrganizations: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
199
|
+
/**
|
|
200
|
+
*
|
|
201
|
+
* @summary Set default region for organization
|
|
202
|
+
* @param {string} organizationId Organization ID
|
|
203
|
+
* @param {UpdateOrganizationDefaultRegion} updateOrganizationDefaultRegion
|
|
204
|
+
* @param {*} [options] Override http request option.
|
|
205
|
+
* @throws {RequiredError}
|
|
206
|
+
*/
|
|
207
|
+
setOrganizationDefaultRegion: (organizationId: string, updateOrganizationDefaultRegion: UpdateOrganizationDefaultRegion, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
188
208
|
/**
|
|
189
209
|
*
|
|
190
210
|
* @summary Suspend organization
|
|
@@ -231,6 +251,16 @@ export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configu
|
|
|
231
251
|
* @throws {RequiredError}
|
|
232
252
|
*/
|
|
233
253
|
updateOrganizationQuota: (organizationId: string, updateOrganizationQuota: UpdateOrganizationQuota, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
254
|
+
/**
|
|
255
|
+
*
|
|
256
|
+
* @summary Update organization region quota
|
|
257
|
+
* @param {string} organizationId Organization ID
|
|
258
|
+
* @param {string} regionId ID of the region where the updated quota will be applied
|
|
259
|
+
* @param {UpdateOrganizationRegionQuota} updateOrganizationRegionQuota
|
|
260
|
+
* @param {*} [options] Override http request option.
|
|
261
|
+
* @throws {RequiredError}
|
|
262
|
+
*/
|
|
263
|
+
updateOrganizationRegionQuota: (organizationId: string, regionId: string, updateOrganizationRegionQuota: UpdateOrganizationRegionQuota, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
234
264
|
/**
|
|
235
265
|
*
|
|
236
266
|
* @summary Update organization role
|
|
@@ -364,6 +394,14 @@ export declare const OrganizationsApiFp: (configuration?: Configuration) => {
|
|
|
364
394
|
* @throws {RequiredError}
|
|
365
395
|
*/
|
|
366
396
|
getOrganizationUsageOverview(organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationUsageOverview>>;
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @summary Get region quota by sandbox ID
|
|
400
|
+
* @param {string} sandboxId Sandbox ID
|
|
401
|
+
* @param {*} [options] Override http request option.
|
|
402
|
+
* @throws {RequiredError}
|
|
403
|
+
*/
|
|
404
|
+
getRegionQuotaBySandboxId(sandboxId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegionQuota>>;
|
|
367
405
|
/**
|
|
368
406
|
*
|
|
369
407
|
* @summary Leave organization
|
|
@@ -410,6 +448,15 @@ export declare const OrganizationsApiFp: (configuration?: Configuration) => {
|
|
|
410
448
|
* @throws {RequiredError}
|
|
411
449
|
*/
|
|
412
450
|
listOrganizations(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Organization>>>;
|
|
451
|
+
/**
|
|
452
|
+
*
|
|
453
|
+
* @summary Set default region for organization
|
|
454
|
+
* @param {string} organizationId Organization ID
|
|
455
|
+
* @param {UpdateOrganizationDefaultRegion} updateOrganizationDefaultRegion
|
|
456
|
+
* @param {*} [options] Override http request option.
|
|
457
|
+
* @throws {RequiredError}
|
|
458
|
+
*/
|
|
459
|
+
setOrganizationDefaultRegion(organizationId: string, updateOrganizationDefaultRegion: UpdateOrganizationDefaultRegion, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
413
460
|
/**
|
|
414
461
|
*
|
|
415
462
|
* @summary Suspend organization
|
|
@@ -455,7 +502,17 @@ export declare const OrganizationsApiFp: (configuration?: Configuration) => {
|
|
|
455
502
|
* @param {*} [options] Override http request option.
|
|
456
503
|
* @throws {RequiredError}
|
|
457
504
|
*/
|
|
458
|
-
updateOrganizationQuota(organizationId: string, updateOrganizationQuota: UpdateOrganizationQuota, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
505
|
+
updateOrganizationQuota(organizationId: string, updateOrganizationQuota: UpdateOrganizationQuota, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
506
|
+
/**
|
|
507
|
+
*
|
|
508
|
+
* @summary Update organization region quota
|
|
509
|
+
* @param {string} organizationId Organization ID
|
|
510
|
+
* @param {string} regionId ID of the region where the updated quota will be applied
|
|
511
|
+
* @param {UpdateOrganizationRegionQuota} updateOrganizationRegionQuota
|
|
512
|
+
* @param {*} [options] Override http request option.
|
|
513
|
+
* @throws {RequiredError}
|
|
514
|
+
*/
|
|
515
|
+
updateOrganizationRegionQuota(organizationId: string, regionId: string, updateOrganizationRegionQuota: UpdateOrganizationRegionQuota, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
459
516
|
/**
|
|
460
517
|
*
|
|
461
518
|
* @summary Update organization role
|
|
@@ -589,6 +646,14 @@ export declare const OrganizationsApiFactory: (configuration?: Configuration, ba
|
|
|
589
646
|
* @throws {RequiredError}
|
|
590
647
|
*/
|
|
591
648
|
getOrganizationUsageOverview(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationUsageOverview>;
|
|
649
|
+
/**
|
|
650
|
+
*
|
|
651
|
+
* @summary Get region quota by sandbox ID
|
|
652
|
+
* @param {string} sandboxId Sandbox ID
|
|
653
|
+
* @param {*} [options] Override http request option.
|
|
654
|
+
* @throws {RequiredError}
|
|
655
|
+
*/
|
|
656
|
+
getRegionQuotaBySandboxId(sandboxId: string, options?: RawAxiosRequestConfig): AxiosPromise<RegionQuota>;
|
|
592
657
|
/**
|
|
593
658
|
*
|
|
594
659
|
* @summary Leave organization
|
|
@@ -635,6 +700,15 @@ export declare const OrganizationsApiFactory: (configuration?: Configuration, ba
|
|
|
635
700
|
* @throws {RequiredError}
|
|
636
701
|
*/
|
|
637
702
|
listOrganizations(options?: RawAxiosRequestConfig): AxiosPromise<Array<Organization>>;
|
|
703
|
+
/**
|
|
704
|
+
*
|
|
705
|
+
* @summary Set default region for organization
|
|
706
|
+
* @param {string} organizationId Organization ID
|
|
707
|
+
* @param {UpdateOrganizationDefaultRegion} updateOrganizationDefaultRegion
|
|
708
|
+
* @param {*} [options] Override http request option.
|
|
709
|
+
* @throws {RequiredError}
|
|
710
|
+
*/
|
|
711
|
+
setOrganizationDefaultRegion(organizationId: string, updateOrganizationDefaultRegion: UpdateOrganizationDefaultRegion, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
638
712
|
/**
|
|
639
713
|
*
|
|
640
714
|
* @summary Suspend organization
|
|
@@ -680,7 +754,17 @@ export declare const OrganizationsApiFactory: (configuration?: Configuration, ba
|
|
|
680
754
|
* @param {*} [options] Override http request option.
|
|
681
755
|
* @throws {RequiredError}
|
|
682
756
|
*/
|
|
683
|
-
updateOrganizationQuota(organizationId: string, updateOrganizationQuota: UpdateOrganizationQuota, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
757
|
+
updateOrganizationQuota(organizationId: string, updateOrganizationQuota: UpdateOrganizationQuota, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
758
|
+
/**
|
|
759
|
+
*
|
|
760
|
+
* @summary Update organization region quota
|
|
761
|
+
* @param {string} organizationId Organization ID
|
|
762
|
+
* @param {string} regionId ID of the region where the updated quota will be applied
|
|
763
|
+
* @param {UpdateOrganizationRegionQuota} updateOrganizationRegionQuota
|
|
764
|
+
* @param {*} [options] Override http request option.
|
|
765
|
+
* @throws {RequiredError}
|
|
766
|
+
*/
|
|
767
|
+
updateOrganizationRegionQuota(organizationId: string, regionId: string, updateOrganizationRegionQuota: UpdateOrganizationRegionQuota, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
684
768
|
/**
|
|
685
769
|
*
|
|
686
770
|
* @summary Update organization role
|
|
@@ -829,6 +913,15 @@ export declare class OrganizationsApi extends BaseAPI {
|
|
|
829
913
|
* @memberof OrganizationsApi
|
|
830
914
|
*/
|
|
831
915
|
getOrganizationUsageOverview(organizationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrganizationUsageOverview, any>>;
|
|
916
|
+
/**
|
|
917
|
+
*
|
|
918
|
+
* @summary Get region quota by sandbox ID
|
|
919
|
+
* @param {string} sandboxId Sandbox ID
|
|
920
|
+
* @param {*} [options] Override http request option.
|
|
921
|
+
* @throws {RequiredError}
|
|
922
|
+
* @memberof OrganizationsApi
|
|
923
|
+
*/
|
|
924
|
+
getRegionQuotaBySandboxId(sandboxId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RegionQuota, any>>;
|
|
832
925
|
/**
|
|
833
926
|
*
|
|
834
927
|
* @summary Leave organization
|
|
@@ -881,6 +974,16 @@ export declare class OrganizationsApi extends BaseAPI {
|
|
|
881
974
|
* @memberof OrganizationsApi
|
|
882
975
|
*/
|
|
883
976
|
listOrganizations(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Organization[], any>>;
|
|
977
|
+
/**
|
|
978
|
+
*
|
|
979
|
+
* @summary Set default region for organization
|
|
980
|
+
* @param {string} organizationId Organization ID
|
|
981
|
+
* @param {UpdateOrganizationDefaultRegion} updateOrganizationDefaultRegion
|
|
982
|
+
* @param {*} [options] Override http request option.
|
|
983
|
+
* @throws {RequiredError}
|
|
984
|
+
* @memberof OrganizationsApi
|
|
985
|
+
*/
|
|
986
|
+
setOrganizationDefaultRegion(organizationId: string, updateOrganizationDefaultRegion: UpdateOrganizationDefaultRegion, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
884
987
|
/**
|
|
885
988
|
*
|
|
886
989
|
* @summary Suspend organization
|
|
@@ -931,7 +1034,18 @@ export declare class OrganizationsApi extends BaseAPI {
|
|
|
931
1034
|
* @throws {RequiredError}
|
|
932
1035
|
* @memberof OrganizationsApi
|
|
933
1036
|
*/
|
|
934
|
-
updateOrganizationQuota(organizationId: string, updateOrganizationQuota: UpdateOrganizationQuota, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
1037
|
+
updateOrganizationQuota(organizationId: string, updateOrganizationQuota: UpdateOrganizationQuota, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1038
|
+
/**
|
|
1039
|
+
*
|
|
1040
|
+
* @summary Update organization region quota
|
|
1041
|
+
* @param {string} organizationId Organization ID
|
|
1042
|
+
* @param {string} regionId ID of the region where the updated quota will be applied
|
|
1043
|
+
* @param {UpdateOrganizationRegionQuota} updateOrganizationRegionQuota
|
|
1044
|
+
* @param {*} [options] Override http request option.
|
|
1045
|
+
* @throws {RequiredError}
|
|
1046
|
+
* @memberof OrganizationsApi
|
|
1047
|
+
*/
|
|
1048
|
+
updateOrganizationRegionQuota(organizationId: string, regionId: string, updateOrganizationRegionQuota: UpdateOrganizationRegionQuota, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
935
1049
|
/**
|
|
936
1050
|
*
|
|
937
1051
|
* @summary Update organization role
|
|
@@ -466,6 +466,38 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
466
466
|
options: localVarRequestOptions,
|
|
467
467
|
};
|
|
468
468
|
},
|
|
469
|
+
/**
|
|
470
|
+
*
|
|
471
|
+
* @summary Get region quota by sandbox ID
|
|
472
|
+
* @param {string} sandboxId Sandbox ID
|
|
473
|
+
* @param {*} [options] Override http request option.
|
|
474
|
+
* @throws {RequiredError}
|
|
475
|
+
*/
|
|
476
|
+
getRegionQuotaBySandboxId: async (sandboxId, options = {}) => {
|
|
477
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
478
|
+
(0, common_1.assertParamExists)('getRegionQuotaBySandboxId', 'sandboxId', sandboxId);
|
|
479
|
+
const localVarPath = `/organizations/region-quota/by-sandbox-id/{sandboxId}`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
|
|
480
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
481
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
482
|
+
let baseOptions;
|
|
483
|
+
if (configuration) {
|
|
484
|
+
baseOptions = configuration.baseOptions;
|
|
485
|
+
}
|
|
486
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
487
|
+
const localVarHeaderParameter = {};
|
|
488
|
+
const localVarQueryParameter = {};
|
|
489
|
+
// authentication bearer required
|
|
490
|
+
// http bearer authentication required
|
|
491
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
492
|
+
// authentication oauth2 required
|
|
493
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
494
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
495
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
496
|
+
return {
|
|
497
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
498
|
+
options: localVarRequestOptions,
|
|
499
|
+
};
|
|
500
|
+
},
|
|
469
501
|
/**
|
|
470
502
|
*
|
|
471
503
|
* @summary Leave organization
|
|
@@ -652,6 +684,43 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
652
684
|
options: localVarRequestOptions,
|
|
653
685
|
};
|
|
654
686
|
},
|
|
687
|
+
/**
|
|
688
|
+
*
|
|
689
|
+
* @summary Set default region for organization
|
|
690
|
+
* @param {string} organizationId Organization ID
|
|
691
|
+
* @param {UpdateOrganizationDefaultRegion} updateOrganizationDefaultRegion
|
|
692
|
+
* @param {*} [options] Override http request option.
|
|
693
|
+
* @throws {RequiredError}
|
|
694
|
+
*/
|
|
695
|
+
setOrganizationDefaultRegion: async (organizationId, updateOrganizationDefaultRegion, options = {}) => {
|
|
696
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
697
|
+
(0, common_1.assertParamExists)('setOrganizationDefaultRegion', 'organizationId', organizationId);
|
|
698
|
+
// verify required parameter 'updateOrganizationDefaultRegion' is not null or undefined
|
|
699
|
+
(0, common_1.assertParamExists)('setOrganizationDefaultRegion', 'updateOrganizationDefaultRegion', updateOrganizationDefaultRegion);
|
|
700
|
+
const localVarPath = `/organizations/{organizationId}/default-region`.replace(`{${'organizationId'}}`, encodeURIComponent(String(organizationId)));
|
|
701
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
702
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
703
|
+
let baseOptions;
|
|
704
|
+
if (configuration) {
|
|
705
|
+
baseOptions = configuration.baseOptions;
|
|
706
|
+
}
|
|
707
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
708
|
+
const localVarHeaderParameter = {};
|
|
709
|
+
const localVarQueryParameter = {};
|
|
710
|
+
// authentication bearer required
|
|
711
|
+
// http bearer authentication required
|
|
712
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
713
|
+
// authentication oauth2 required
|
|
714
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
715
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
716
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
717
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
718
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateOrganizationDefaultRegion, localVarRequestOptions, configuration);
|
|
719
|
+
return {
|
|
720
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
721
|
+
options: localVarRequestOptions,
|
|
722
|
+
};
|
|
723
|
+
},
|
|
655
724
|
/**
|
|
656
725
|
*
|
|
657
726
|
* @summary Suspend organization
|
|
@@ -840,6 +909,48 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
840
909
|
options: localVarRequestOptions,
|
|
841
910
|
};
|
|
842
911
|
},
|
|
912
|
+
/**
|
|
913
|
+
*
|
|
914
|
+
* @summary Update organization region quota
|
|
915
|
+
* @param {string} organizationId Organization ID
|
|
916
|
+
* @param {string} regionId ID of the region where the updated quota will be applied
|
|
917
|
+
* @param {UpdateOrganizationRegionQuota} updateOrganizationRegionQuota
|
|
918
|
+
* @param {*} [options] Override http request option.
|
|
919
|
+
* @throws {RequiredError}
|
|
920
|
+
*/
|
|
921
|
+
updateOrganizationRegionQuota: async (organizationId, regionId, updateOrganizationRegionQuota, options = {}) => {
|
|
922
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
923
|
+
(0, common_1.assertParamExists)('updateOrganizationRegionQuota', 'organizationId', organizationId);
|
|
924
|
+
// verify required parameter 'regionId' is not null or undefined
|
|
925
|
+
(0, common_1.assertParamExists)('updateOrganizationRegionQuota', 'regionId', regionId);
|
|
926
|
+
// verify required parameter 'updateOrganizationRegionQuota' is not null or undefined
|
|
927
|
+
(0, common_1.assertParamExists)('updateOrganizationRegionQuota', 'updateOrganizationRegionQuota', updateOrganizationRegionQuota);
|
|
928
|
+
const localVarPath = `/organizations/{organizationId}/quota/{regionId}`
|
|
929
|
+
.replace(`{${'organizationId'}}`, encodeURIComponent(String(organizationId)))
|
|
930
|
+
.replace(`{${'regionId'}}`, encodeURIComponent(String(regionId)));
|
|
931
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
932
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
933
|
+
let baseOptions;
|
|
934
|
+
if (configuration) {
|
|
935
|
+
baseOptions = configuration.baseOptions;
|
|
936
|
+
}
|
|
937
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
938
|
+
const localVarHeaderParameter = {};
|
|
939
|
+
const localVarQueryParameter = {};
|
|
940
|
+
// authentication bearer required
|
|
941
|
+
// http bearer authentication required
|
|
942
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
943
|
+
// authentication oauth2 required
|
|
944
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
945
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
946
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
947
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
948
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateOrganizationRegionQuota, localVarRequestOptions, configuration);
|
|
949
|
+
return {
|
|
950
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
951
|
+
options: localVarRequestOptions,
|
|
952
|
+
};
|
|
953
|
+
},
|
|
843
954
|
/**
|
|
844
955
|
*
|
|
845
956
|
* @summary Update organization role
|
|
@@ -1102,6 +1213,19 @@ const OrganizationsApiFp = function (configuration) {
|
|
|
1102
1213
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.getOrganizationUsageOverview']?.[localVarOperationServerIndex]?.url;
|
|
1103
1214
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1104
1215
|
},
|
|
1216
|
+
/**
|
|
1217
|
+
*
|
|
1218
|
+
* @summary Get region quota by sandbox ID
|
|
1219
|
+
* @param {string} sandboxId Sandbox ID
|
|
1220
|
+
* @param {*} [options] Override http request option.
|
|
1221
|
+
* @throws {RequiredError}
|
|
1222
|
+
*/
|
|
1223
|
+
async getRegionQuotaBySandboxId(sandboxId, options) {
|
|
1224
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRegionQuotaBySandboxId(sandboxId, options);
|
|
1225
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1226
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.getRegionQuotaBySandboxId']?.[localVarOperationServerIndex]?.url;
|
|
1227
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1228
|
+
},
|
|
1105
1229
|
/**
|
|
1106
1230
|
*
|
|
1107
1231
|
* @summary Leave organization
|
|
@@ -1178,6 +1302,20 @@ const OrganizationsApiFp = function (configuration) {
|
|
|
1178
1302
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.listOrganizations']?.[localVarOperationServerIndex]?.url;
|
|
1179
1303
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1180
1304
|
},
|
|
1305
|
+
/**
|
|
1306
|
+
*
|
|
1307
|
+
* @summary Set default region for organization
|
|
1308
|
+
* @param {string} organizationId Organization ID
|
|
1309
|
+
* @param {UpdateOrganizationDefaultRegion} updateOrganizationDefaultRegion
|
|
1310
|
+
* @param {*} [options] Override http request option.
|
|
1311
|
+
* @throws {RequiredError}
|
|
1312
|
+
*/
|
|
1313
|
+
async setOrganizationDefaultRegion(organizationId, updateOrganizationDefaultRegion, options) {
|
|
1314
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setOrganizationDefaultRegion(organizationId, updateOrganizationDefaultRegion, options);
|
|
1315
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1316
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.setOrganizationDefaultRegion']?.[localVarOperationServerIndex]?.url;
|
|
1317
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1318
|
+
},
|
|
1181
1319
|
/**
|
|
1182
1320
|
*
|
|
1183
1321
|
* @summary Suspend organization
|
|
@@ -1249,6 +1387,21 @@ const OrganizationsApiFp = function (configuration) {
|
|
|
1249
1387
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.updateOrganizationQuota']?.[localVarOperationServerIndex]?.url;
|
|
1250
1388
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1251
1389
|
},
|
|
1390
|
+
/**
|
|
1391
|
+
*
|
|
1392
|
+
* @summary Update organization region quota
|
|
1393
|
+
* @param {string} organizationId Organization ID
|
|
1394
|
+
* @param {string} regionId ID of the region where the updated quota will be applied
|
|
1395
|
+
* @param {UpdateOrganizationRegionQuota} updateOrganizationRegionQuota
|
|
1396
|
+
* @param {*} [options] Override http request option.
|
|
1397
|
+
* @throws {RequiredError}
|
|
1398
|
+
*/
|
|
1399
|
+
async updateOrganizationRegionQuota(organizationId, regionId, updateOrganizationRegionQuota, options) {
|
|
1400
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganizationRegionQuota(organizationId, regionId, updateOrganizationRegionQuota, options);
|
|
1401
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1402
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.updateOrganizationRegionQuota']?.[localVarOperationServerIndex]?.url;
|
|
1403
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1404
|
+
},
|
|
1252
1405
|
/**
|
|
1253
1406
|
*
|
|
1254
1407
|
* @summary Update organization role
|
|
@@ -1437,6 +1590,16 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
|
1437
1590
|
.getOrganizationUsageOverview(organizationId, options)
|
|
1438
1591
|
.then((request) => request(axios, basePath));
|
|
1439
1592
|
},
|
|
1593
|
+
/**
|
|
1594
|
+
*
|
|
1595
|
+
* @summary Get region quota by sandbox ID
|
|
1596
|
+
* @param {string} sandboxId Sandbox ID
|
|
1597
|
+
* @param {*} [options] Override http request option.
|
|
1598
|
+
* @throws {RequiredError}
|
|
1599
|
+
*/
|
|
1600
|
+
getRegionQuotaBySandboxId(sandboxId, options) {
|
|
1601
|
+
return localVarFp.getRegionQuotaBySandboxId(sandboxId, options).then((request) => request(axios, basePath));
|
|
1602
|
+
},
|
|
1440
1603
|
/**
|
|
1441
1604
|
*
|
|
1442
1605
|
* @summary Leave organization
|
|
@@ -1497,6 +1660,19 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
|
1497
1660
|
listOrganizations(options) {
|
|
1498
1661
|
return localVarFp.listOrganizations(options).then((request) => request(axios, basePath));
|
|
1499
1662
|
},
|
|
1663
|
+
/**
|
|
1664
|
+
*
|
|
1665
|
+
* @summary Set default region for organization
|
|
1666
|
+
* @param {string} organizationId Organization ID
|
|
1667
|
+
* @param {UpdateOrganizationDefaultRegion} updateOrganizationDefaultRegion
|
|
1668
|
+
* @param {*} [options] Override http request option.
|
|
1669
|
+
* @throws {RequiredError}
|
|
1670
|
+
*/
|
|
1671
|
+
setOrganizationDefaultRegion(organizationId, updateOrganizationDefaultRegion, options) {
|
|
1672
|
+
return localVarFp
|
|
1673
|
+
.setOrganizationDefaultRegion(organizationId, updateOrganizationDefaultRegion, options)
|
|
1674
|
+
.then((request) => request(axios, basePath));
|
|
1675
|
+
},
|
|
1500
1676
|
/**
|
|
1501
1677
|
*
|
|
1502
1678
|
* @summary Suspend organization
|
|
@@ -1561,6 +1737,20 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
|
1561
1737
|
.updateOrganizationQuota(organizationId, updateOrganizationQuota, options)
|
|
1562
1738
|
.then((request) => request(axios, basePath));
|
|
1563
1739
|
},
|
|
1740
|
+
/**
|
|
1741
|
+
*
|
|
1742
|
+
* @summary Update organization region quota
|
|
1743
|
+
* @param {string} organizationId Organization ID
|
|
1744
|
+
* @param {string} regionId ID of the region where the updated quota will be applied
|
|
1745
|
+
* @param {UpdateOrganizationRegionQuota} updateOrganizationRegionQuota
|
|
1746
|
+
* @param {*} [options] Override http request option.
|
|
1747
|
+
* @throws {RequiredError}
|
|
1748
|
+
*/
|
|
1749
|
+
updateOrganizationRegionQuota(organizationId, regionId, updateOrganizationRegionQuota, options) {
|
|
1750
|
+
return localVarFp
|
|
1751
|
+
.updateOrganizationRegionQuota(organizationId, regionId, updateOrganizationRegionQuota, options)
|
|
1752
|
+
.then((request) => request(axios, basePath));
|
|
1753
|
+
},
|
|
1564
1754
|
/**
|
|
1565
1755
|
*
|
|
1566
1756
|
* @summary Update organization role
|
|
@@ -1771,6 +1961,19 @@ class OrganizationsApi extends base_1.BaseAPI {
|
|
|
1771
1961
|
.getOrganizationUsageOverview(organizationId, options)
|
|
1772
1962
|
.then((request) => request(this.axios, this.basePath));
|
|
1773
1963
|
}
|
|
1964
|
+
/**
|
|
1965
|
+
*
|
|
1966
|
+
* @summary Get region quota by sandbox ID
|
|
1967
|
+
* @param {string} sandboxId Sandbox ID
|
|
1968
|
+
* @param {*} [options] Override http request option.
|
|
1969
|
+
* @throws {RequiredError}
|
|
1970
|
+
* @memberof OrganizationsApi
|
|
1971
|
+
*/
|
|
1972
|
+
getRegionQuotaBySandboxId(sandboxId, options) {
|
|
1973
|
+
return (0, exports.OrganizationsApiFp)(this.configuration)
|
|
1974
|
+
.getRegionQuotaBySandboxId(sandboxId, options)
|
|
1975
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1976
|
+
}
|
|
1774
1977
|
/**
|
|
1775
1978
|
*
|
|
1776
1979
|
* @summary Leave organization
|
|
@@ -1847,6 +2050,20 @@ class OrganizationsApi extends base_1.BaseAPI {
|
|
|
1847
2050
|
.listOrganizations(options)
|
|
1848
2051
|
.then((request) => request(this.axios, this.basePath));
|
|
1849
2052
|
}
|
|
2053
|
+
/**
|
|
2054
|
+
*
|
|
2055
|
+
* @summary Set default region for organization
|
|
2056
|
+
* @param {string} organizationId Organization ID
|
|
2057
|
+
* @param {UpdateOrganizationDefaultRegion} updateOrganizationDefaultRegion
|
|
2058
|
+
* @param {*} [options] Override http request option.
|
|
2059
|
+
* @throws {RequiredError}
|
|
2060
|
+
* @memberof OrganizationsApi
|
|
2061
|
+
*/
|
|
2062
|
+
setOrganizationDefaultRegion(organizationId, updateOrganizationDefaultRegion, options) {
|
|
2063
|
+
return (0, exports.OrganizationsApiFp)(this.configuration)
|
|
2064
|
+
.setOrganizationDefaultRegion(organizationId, updateOrganizationDefaultRegion, options)
|
|
2065
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2066
|
+
}
|
|
1850
2067
|
/**
|
|
1851
2068
|
*
|
|
1852
2069
|
* @summary Suspend organization
|
|
@@ -1918,6 +2135,21 @@ class OrganizationsApi extends base_1.BaseAPI {
|
|
|
1918
2135
|
.updateOrganizationQuota(organizationId, updateOrganizationQuota, options)
|
|
1919
2136
|
.then((request) => request(this.axios, this.basePath));
|
|
1920
2137
|
}
|
|
2138
|
+
/**
|
|
2139
|
+
*
|
|
2140
|
+
* @summary Update organization region quota
|
|
2141
|
+
* @param {string} organizationId Organization ID
|
|
2142
|
+
* @param {string} regionId ID of the region where the updated quota will be applied
|
|
2143
|
+
* @param {UpdateOrganizationRegionQuota} updateOrganizationRegionQuota
|
|
2144
|
+
* @param {*} [options] Override http request option.
|
|
2145
|
+
* @throws {RequiredError}
|
|
2146
|
+
* @memberof OrganizationsApi
|
|
2147
|
+
*/
|
|
2148
|
+
updateOrganizationRegionQuota(organizationId, regionId, updateOrganizationRegionQuota, options) {
|
|
2149
|
+
return (0, exports.OrganizationsApiFp)(this.configuration)
|
|
2150
|
+
.updateOrganizationRegionQuota(organizationId, regionId, updateOrganizationRegionQuota, options)
|
|
2151
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2152
|
+
}
|
|
1921
2153
|
/**
|
|
1922
2154
|
*
|
|
1923
2155
|
* @summary Update organization role
|