@nexgencloud/hyperstack-sdk-typescript 1.55.4-alpha → 1.55.7-alpha

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/api.ts CHANGED
@@ -1820,154 +1820,6 @@ export interface CompatibleImage {
1820
1820
  */
1821
1821
  'reason'?: string;
1822
1822
  }
1823
- /**
1824
- *
1825
- * @export
1826
- * @interface ComplianceFields
1827
- */
1828
- export interface ComplianceFields {
1829
- /**
1830
- *
1831
- * @type {Array<number>}
1832
- * @memberof ComplianceFields
1833
- */
1834
- 'cpu'?: Array<number>;
1835
- /**
1836
- *
1837
- * @type {string}
1838
- * @memberof ComplianceFields
1839
- */
1840
- 'gpu_model'?: string;
1841
- /**
1842
- *
1843
- * @type {Array<number>}
1844
- * @memberof ComplianceFields
1845
- */
1846
- 'hdd'?: Array<number>;
1847
- /**
1848
- *
1849
- * @type {Array<number>}
1850
- * @memberof ComplianceFields
1851
- */
1852
- 'ram'?: Array<number>;
1853
- }
1854
- /**
1855
- *
1856
- * @export
1857
- * @interface ComplianceModelFields
1858
- */
1859
- export interface ComplianceModelFields {
1860
- /**
1861
- *
1862
- * @type {number}
1863
- * @memberof ComplianceModelFields
1864
- */
1865
- 'base_value'?: number;
1866
- /**
1867
- *
1868
- * @type {string}
1869
- * @memberof ComplianceModelFields
1870
- */
1871
- 'gpu_model'?: string;
1872
- /**
1873
- *
1874
- * @type {number}
1875
- * @memberof ComplianceModelFields
1876
- */
1877
- 'id'?: number;
1878
- /**
1879
- *
1880
- * @type {string}
1881
- * @memberof ComplianceModelFields
1882
- */
1883
- 'resource_type'?: string;
1884
- /**
1885
- *
1886
- * @type {number}
1887
- * @memberof ComplianceModelFields
1888
- */
1889
- 'variation_max'?: number;
1890
- /**
1891
- *
1892
- * @type {number}
1893
- * @memberof ComplianceModelFields
1894
- */
1895
- 'variation_min'?: number;
1896
- /**
1897
- *
1898
- * @type {number}
1899
- * @memberof ComplianceModelFields
1900
- */
1901
- 'variation_unit'?: number;
1902
- }
1903
- /**
1904
- *
1905
- * @export
1906
- * @interface CompliancePayload
1907
- */
1908
- export interface CompliancePayload {
1909
- /**
1910
- *
1911
- * @type {number}
1912
- * @memberof CompliancePayload
1913
- */
1914
- 'base_value': number;
1915
- /**
1916
- *
1917
- * @type {string}
1918
- * @memberof CompliancePayload
1919
- */
1920
- 'gpu_model': string;
1921
- /**
1922
- *
1923
- * @type {string}
1924
- * @memberof CompliancePayload
1925
- */
1926
- 'resource_type': string;
1927
- /**
1928
- *
1929
- * @type {number}
1930
- * @memberof CompliancePayload
1931
- */
1932
- 'variation_max': number;
1933
- /**
1934
- *
1935
- * @type {number}
1936
- * @memberof CompliancePayload
1937
- */
1938
- 'variation_min': number;
1939
- /**
1940
- *
1941
- * @type {number}
1942
- * @memberof CompliancePayload
1943
- */
1944
- 'variation_unit': number;
1945
- }
1946
- /**
1947
- *
1948
- * @export
1949
- * @interface ComplianceResponse
1950
- */
1951
- export interface ComplianceResponse {
1952
- /**
1953
- *
1954
- * @type {ComplianceFields}
1955
- * @memberof ComplianceResponse
1956
- */
1957
- 'compliance'?: ComplianceFields;
1958
- /**
1959
- *
1960
- * @type {string}
1961
- * @memberof ComplianceResponse
1962
- */
1963
- 'message'?: string;
1964
- /**
1965
- *
1966
- * @type {boolean}
1967
- * @memberof ComplianceResponse
1968
- */
1969
- 'status'?: boolean;
1970
- }
1971
1823
  /**
1972
1824
  *
1973
1825
  * @export
@@ -2068,43 +1920,6 @@ export interface ConsentTemplatesResponse {
2068
1920
  */
2069
1921
  'templates'?: object;
2070
1922
  }
2071
- /**
2072
- *
2073
- * @export
2074
- * @interface ContainerOverviewFields
2075
- */
2076
- export interface ContainerOverviewFields {
2077
- /**
2078
- *
2079
- * @type {number}
2080
- * @memberof ContainerOverviewFields
2081
- */
2082
- 'cost_per_hour'?: number;
2083
- /**
2084
- *
2085
- * @type {number}
2086
- * @memberof ContainerOverviewFields
2087
- */
2088
- 'count'?: number;
2089
- /**
2090
- *
2091
- * @type {number}
2092
- * @memberof ContainerOverviewFields
2093
- */
2094
- 'gpus'?: number;
2095
- /**
2096
- *
2097
- * @type {number}
2098
- * @memberof ContainerOverviewFields
2099
- */
2100
- 'ram'?: number;
2101
- /**
2102
- *
2103
- * @type {number}
2104
- * @memberof ContainerOverviewFields
2105
- */
2106
- 'vcpus'?: number;
2107
- }
2108
1923
  /**
2109
1924
  *
2110
1925
  * @export
@@ -3006,31 +2821,6 @@ export interface CreateSnapshotResponse {
3006
2821
  */
3007
2822
  'status'?: boolean;
3008
2823
  }
3009
- /**
3010
- *
3011
- * @export
3012
- * @interface CreateUpdateComplianceResponse
3013
- */
3014
- export interface CreateUpdateComplianceResponse {
3015
- /**
3016
- *
3017
- * @type {ComplianceModelFields}
3018
- * @memberof CreateUpdateComplianceResponse
3019
- */
3020
- 'compliance'?: ComplianceModelFields;
3021
- /**
3022
- *
3023
- * @type {string}
3024
- * @memberof CreateUpdateComplianceResponse
3025
- */
3026
- 'message'?: string;
3027
- /**
3028
- *
3029
- * @type {boolean}
3030
- * @memberof CreateUpdateComplianceResponse
3031
- */
3032
- 'status'?: boolean;
3033
- }
3034
2824
  /**
3035
2825
  *
3036
2826
  * @export
@@ -3260,123 +3050,6 @@ export interface DeleteClusterNodesFields {
3260
3050
  */
3261
3051
  'ids'?: Array<number>;
3262
3052
  }
3263
- /**
3264
- *
3265
- * @export
3266
- * @interface DeploymentFields
3267
- */
3268
- export interface DeploymentFields {
3269
- /**
3270
- *
3271
- * @type {string}
3272
- * @memberof DeploymentFields
3273
- */
3274
- 'created_at'?: string;
3275
- /**
3276
- *
3277
- * @type {string}
3278
- * @memberof DeploymentFields
3279
- */
3280
- 'description'?: string;
3281
- /**
3282
- *
3283
- * @type {number}
3284
- * @memberof DeploymentFields
3285
- */
3286
- 'id'?: number;
3287
- /**
3288
- *
3289
- * @type {string}
3290
- * @memberof DeploymentFields
3291
- */
3292
- 'name'?: string;
3293
- /**
3294
- *
3295
- * @type {string}
3296
- * @memberof DeploymentFields
3297
- */
3298
- 'status'?: string;
3299
- /**
3300
- *
3301
- * @type {string}
3302
- * @memberof DeploymentFields
3303
- */
3304
- 'template'?: string;
3305
- }
3306
- /**
3307
- *
3308
- * @export
3309
- * @interface DeploymentFieldsForStartDeployments
3310
- */
3311
- export interface DeploymentFieldsForStartDeployments {
3312
- /**
3313
- *
3314
- * @type {string}
3315
- * @memberof DeploymentFieldsForStartDeployments
3316
- */
3317
- 'created_at'?: string;
3318
- /**
3319
- *
3320
- * @type {string}
3321
- * @memberof DeploymentFieldsForStartDeployments
3322
- */
3323
- 'description'?: string;
3324
- /**
3325
- *
3326
- * @type {number}
3327
- * @memberof DeploymentFieldsForStartDeployments
3328
- */
3329
- 'id'?: number;
3330
- /**
3331
- *
3332
- * @type {string}
3333
- * @memberof DeploymentFieldsForStartDeployments
3334
- */
3335
- 'name'?: string;
3336
- /**
3337
- *
3338
- * @type {string}
3339
- * @memberof DeploymentFieldsForStartDeployments
3340
- */
3341
- 'status'?: string;
3342
- /**
3343
- *
3344
- * @type {string}
3345
- * @memberof DeploymentFieldsForStartDeployments
3346
- */
3347
- 'template'?: string;
3348
- /**
3349
- *
3350
- * @type {string}
3351
- * @memberof DeploymentFieldsForStartDeployments
3352
- */
3353
- 'variables'?: string;
3354
- }
3355
- /**
3356
- *
3357
- * @export
3358
- * @interface Deployments
3359
- */
3360
- export interface Deployments {
3361
- /**
3362
- *
3363
- * @type {Array<DeploymentFields>}
3364
- * @memberof Deployments
3365
- */
3366
- 'deployments'?: Array<DeploymentFields>;
3367
- /**
3368
- *
3369
- * @type {string}
3370
- * @memberof Deployments
3371
- */
3372
- 'message'?: string;
3373
- /**
3374
- *
3375
- * @type {boolean}
3376
- * @memberof Deployments
3377
- */
3378
- 'status'?: boolean;
3379
- }
3380
3053
  /**
3381
3054
  *
3382
3055
  * @export
@@ -5210,6 +4883,12 @@ export interface InstanceFields {
5210
4883
  * @memberof InstanceFields
5211
4884
  */
5212
4885
  'callback_url'?: string;
4886
+ /**
4887
+ * The COE cluster this VM is a node of, or null.
4888
+ * @type {number}
4889
+ * @memberof InstanceFields
4890
+ */
4891
+ 'cluster_id'?: number;
5213
4892
  /**
5214
4893
  *
5215
4894
  * @type {number}
@@ -5222,6 +4901,12 @@ export interface InstanceFields {
5222
4901
  * @memberof InstanceFields
5223
4902
  */
5224
4903
  'created_at'?: string;
4904
+ /**
4905
+ * The dedicated inference endpoint this VM serves, or null.
4906
+ * @type {number}
4907
+ * @memberof InstanceFields
4908
+ */
4909
+ 'dedicated_inference_id'?: number;
5225
4910
  /**
5226
4911
  *
5227
4912
  * @type {InstanceEnhancedMetricsFields}
@@ -6919,12 +6604,6 @@ export interface OrganizationUserResponseModel {
6919
6604
  * @interface OverviewInfo
6920
6605
  */
6921
6606
  export interface OverviewInfo {
6922
- /**
6923
- *
6924
- * @type {ContainerOverviewFields}
6925
- * @memberof OverviewInfo
6926
- */
6927
- 'container'?: ContainerOverviewFields;
6928
6607
  /**
6929
6608
  *
6930
6609
  * @type {InstanceOverviewFields}
@@ -7185,11 +6864,11 @@ export interface PaymentInitiateFields {
7185
6864
  */
7186
6865
  export interface PaymentInitiatePayload {
7187
6866
  /**
7188
- *
6867
+ * The amount to pay, in dollars. Must be at least $5.00.
7189
6868
  * @type {number}
7190
6869
  * @memberof PaymentInitiatePayload
7191
6870
  */
7192
- 'amount'?: number;
6871
+ 'amount': number;
7193
6872
  }
7194
6873
  /**
7195
6874
  *
@@ -9399,62 +9078,6 @@ export interface Snapshots {
9399
9078
  */
9400
9079
  'status'?: boolean;
9401
9080
  }
9402
- /**
9403
- *
9404
- * @export
9405
- * @interface StartDeployment
9406
- */
9407
- export interface StartDeployment {
9408
- /**
9409
- *
9410
- * @type {DeploymentFieldsForStartDeployments}
9411
- * @memberof StartDeployment
9412
- */
9413
- 'deployment'?: DeploymentFieldsForStartDeployments;
9414
- /**
9415
- *
9416
- * @type {string}
9417
- * @memberof StartDeployment
9418
- */
9419
- 'message'?: string;
9420
- /**
9421
- *
9422
- * @type {boolean}
9423
- * @memberof StartDeployment
9424
- */
9425
- 'status'?: boolean;
9426
- }
9427
- /**
9428
- *
9429
- * @export
9430
- * @interface StartDeploymentPayload
9431
- */
9432
- export interface StartDeploymentPayload {
9433
- /**
9434
- *
9435
- * @type {string}
9436
- * @memberof StartDeploymentPayload
9437
- */
9438
- 'description': string;
9439
- /**
9440
- *
9441
- * @type {string}
9442
- * @memberof StartDeploymentPayload
9443
- */
9444
- 'name': string;
9445
- /**
9446
- *
9447
- * @type {number}
9448
- * @memberof StartDeploymentPayload
9449
- */
9450
- 'template_id': number;
9451
- /**
9452
- *
9453
- * @type {{ [key: string]: string; }}
9454
- * @memberof StartDeploymentPayload
9455
- */
9456
- 'variables'?: { [key: string]: string; };
9457
- }
9458
9081
  /**
9459
9082
  *
9460
9083
  * @export
@@ -9647,99 +9270,6 @@ export interface SupportedKeypairPublicKeyTypesResponse {
9647
9270
  */
9648
9271
  'supported_key_types'?: Array<string>;
9649
9272
  }
9650
- /**
9651
- *
9652
- * @export
9653
- * @interface Template
9654
- */
9655
- export interface Template {
9656
- /**
9657
- *
9658
- * @type {string}
9659
- * @memberof Template
9660
- */
9661
- 'message'?: string;
9662
- /**
9663
- *
9664
- * @type {boolean}
9665
- * @memberof Template
9666
- */
9667
- 'status'?: boolean;
9668
- /**
9669
- *
9670
- * @type {TemplateFields}
9671
- * @memberof Template
9672
- */
9673
- 'template'?: TemplateFields;
9674
- }
9675
- /**
9676
- *
9677
- * @export
9678
- * @interface TemplateFields
9679
- */
9680
- export interface TemplateFields {
9681
- /**
9682
- *
9683
- * @type {string}
9684
- * @memberof TemplateFields
9685
- */
9686
- 'content'?: string;
9687
- /**
9688
- *
9689
- * @type {string}
9690
- * @memberof TemplateFields
9691
- */
9692
- 'created_at'?: string;
9693
- /**
9694
- *
9695
- * @type {string}
9696
- * @memberof TemplateFields
9697
- */
9698
- 'description'?: string;
9699
- /**
9700
- *
9701
- * @type {number}
9702
- * @memberof TemplateFields
9703
- */
9704
- 'id'?: number;
9705
- /**
9706
- *
9707
- * @type {boolean}
9708
- * @memberof TemplateFields
9709
- */
9710
- 'is_public'?: boolean;
9711
- /**
9712
- *
9713
- * @type {string}
9714
- * @memberof TemplateFields
9715
- */
9716
- 'name'?: string;
9717
- }
9718
- /**
9719
- *
9720
- * @export
9721
- * @interface Templates
9722
- */
9723
- export interface Templates {
9724
- /**
9725
- *
9726
- * @type {string}
9727
- * @memberof Templates
9728
- */
9729
- 'message'?: string;
9730
- /**
9731
- *
9732
- * @type {boolean}
9733
- * @memberof Templates
9734
- */
9735
- 'status'?: boolean;
9736
- /**
9737
- *
9738
- * @type {Array<TemplateFields>}
9739
- * @memberof Templates
9740
- */
9741
- 'templates'?: Array<TemplateFields>;
9742
- }
9743
9273
  /**
9744
9274
  *
9745
9275
  * @export
@@ -10038,31 +9568,6 @@ export interface UpdateOrganizationResponseModel {
10038
9568
  */
10039
9569
  'status'?: boolean;
10040
9570
  }
10041
- /**
10042
- *
10043
- * @export
10044
- * @interface UpdateTemplate
10045
- */
10046
- export interface UpdateTemplate {
10047
- /**
10048
- *
10049
- * @type {string}
10050
- * @memberof UpdateTemplate
10051
- */
10052
- 'description'?: string;
10053
- /**
10054
- *
10055
- * @type {boolean}
10056
- * @memberof UpdateTemplate
10057
- */
10058
- 'is_public'?: boolean;
10059
- /**
10060
- *
10061
- * @type {string}
10062
- * @memberof UpdateTemplate
10063
- */
10064
- 'name'?: string;
10065
- }
10066
9571
  /**
10067
9572
  *
10068
9573
  * @export
@@ -12143,38 +11648,6 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
12143
11648
 
12144
11649
 
12145
11650
 
12146
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12147
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12148
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12149
-
12150
- return {
12151
- url: toPathString(localVarUrlObj),
12152
- options: localVarRequestOptions,
12153
- };
12154
- },
12155
- /**
12156
- * Disable Multi-Factor Authentication (MFA) for the currently authenticated user. This endpoint is used to turn off MFA.
12157
- * @param {*} [options] Override http request option.
12158
- * @throws {RequiredError}
12159
- */
12160
- disableMFA: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12161
- const localVarPath = `/auth/me/mfa/disable`;
12162
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12163
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12164
- let baseOptions;
12165
- if (configuration) {
12166
- baseOptions = configuration.baseOptions;
12167
- }
12168
-
12169
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12170
- const localVarHeaderParameter = {} as any;
12171
- const localVarQueryParameter = {} as any;
12172
-
12173
- // authentication apiKey required
12174
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
12175
-
12176
-
12177
-
12178
11651
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12179
11652
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12180
11653
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -12305,17 +11778,6 @@ export const AuthApiFp = function(configuration?: Configuration) {
12305
11778
  const localVarOperationServerBasePath = operationServerMap['AuthApi.changeOrganizationForToken']?.[localVarOperationServerIndex]?.url;
12306
11779
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12307
11780
  },
12308
- /**
12309
- * Disable Multi-Factor Authentication (MFA) for the currently authenticated user. This endpoint is used to turn off MFA.
12310
- * @param {*} [options] Override http request option.
12311
- * @throws {RequiredError}
12312
- */
12313
- async disableMFA(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonResponseModel>> {
12314
- const localVarAxiosArgs = await localVarAxiosParamCreator.disableMFA(options);
12315
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12316
- const localVarOperationServerBasePath = operationServerMap['AuthApi.disableMFA']?.[localVarOperationServerIndex]?.url;
12317
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12318
- },
12319
11781
  /**
12320
11782
  * Retrieve the Multi-Factor Authentication (MFA) status for the currentlyauthenticated user. Includes whether MFA is enabled.
12321
11783
  * @summary Get MFA status for authenticated user
@@ -12371,14 +11833,6 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
12371
11833
  changeOrganizationForToken(orgId: number, options?: RawAxiosRequestConfig): AxiosPromise<AuthGetTokenResponseModel> {
12372
11834
  return localVarFp.changeOrganizationForToken(orgId, options).then((request) => request(axios, basePath));
12373
11835
  },
12374
- /**
12375
- * Disable Multi-Factor Authentication (MFA) for the currently authenticated user. This endpoint is used to turn off MFA.
12376
- * @param {*} [options] Override http request option.
12377
- * @throws {RequiredError}
12378
- */
12379
- disableMFA(options?: RawAxiosRequestConfig): AxiosPromise<CommonResponseModel> {
12380
- return localVarFp.disableMFA(options).then((request) => request(axios, basePath));
12381
- },
12382
11836
  /**
12383
11837
  * Retrieve the Multi-Factor Authentication (MFA) status for the currentlyauthenticated user. Includes whether MFA is enabled.
12384
11838
  * @summary Get MFA status for authenticated user
@@ -12427,16 +11881,6 @@ export class AuthApi extends BaseAPI {
12427
11881
  return AuthApiFp(this.configuration).changeOrganizationForToken(orgId, options).then((request) => request(this.axios, this.basePath));
12428
11882
  }
12429
11883
 
12430
- /**
12431
- * Disable Multi-Factor Authentication (MFA) for the currently authenticated user. This endpoint is used to turn off MFA.
12432
- * @param {*} [options] Override http request option.
12433
- * @throws {RequiredError}
12434
- * @memberof AuthApi
12435
- */
12436
- public disableMFA(options?: RawAxiosRequestConfig) {
12437
- return AuthApiFp(this.configuration).disableMFA(options).then((request) => request(this.axios, this.basePath));
12438
- }
12439
-
12440
11884
  /**
12441
11885
  * Retrieve the Multi-Factor Authentication (MFA) status for the currentlyauthenticated user. Includes whether MFA is enabled.
12442
11886
  * @summary Get MFA status for authenticated user
@@ -19121,22 +18565,19 @@ export class ClustersApi extends BaseAPI {
19121
18565
 
19122
18566
 
19123
18567
  /**
19124
- * ComplianceApi - axios parameter creator
18568
+ * CreditApi - axios parameter creator
19125
18569
  * @export
19126
18570
  */
19127
- export const ComplianceApiAxiosParamCreator = function (configuration?: Configuration) {
18571
+ export const CreditApiAxiosParamCreator = function (configuration?: Configuration) {
19128
18572
  return {
19129
18573
  /**
19130
- *
19131
- * @summary Create compliance
19132
- * @param {CompliancePayload} payload
18574
+ * Retrieves the current credit balance for your [**organization**](/docs/rbac/organization). Ensuring a positive credit balance allows you to create resources. However, for prepaid accounts, if the credit balance falls below $0, all associated resources will be temporarily suspended until a [**payment**](/docs/api-reference/billing-resources/create-payment) is made. For additional information, [**click here**](None/docs/api-reference/billing-resources/retrieve-credit-balance/).
18575
+ * @summary GET: View credit and threshold
19133
18576
  * @param {*} [options] Override http request option.
19134
18577
  * @throws {RequiredError}
19135
18578
  */
19136
- createCompliance: async (payload: CompliancePayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19137
- // verify required parameter 'payload' is not null or undefined
19138
- assertParamExists('createCompliance', 'payload', payload)
19139
- const localVarPath = `/core/compliance`;
18579
+ getUserCredit: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18580
+ const localVarPath = `/billing/user-credit/credit`;
19140
18581
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19141
18582
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19142
18583
  let baseOptions;
@@ -19144,7 +18585,7 @@ export const ComplianceApiAxiosParamCreator = function (configuration?: Configur
19144
18585
  baseOptions = configuration.baseOptions;
19145
18586
  }
19146
18587
 
19147
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18588
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19148
18589
  const localVarHeaderParameter = {} as any;
19149
18590
  const localVarQueryParameter = {} as any;
19150
18591
 
@@ -19153,379 +18594,50 @@ export const ComplianceApiAxiosParamCreator = function (configuration?: Configur
19153
18594
 
19154
18595
 
19155
18596
 
19156
- localVarHeaderParameter['Content-Type'] = 'application/json';
19157
-
19158
18597
  setSearchParams(localVarUrlObj, localVarQueryParameter);
19159
18598
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19160
18599
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19161
- localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
19162
18600
 
19163
18601
  return {
19164
18602
  url: toPathString(localVarUrlObj),
19165
18603
  options: localVarRequestOptions,
19166
18604
  };
19167
18605
  },
18606
+ }
18607
+ };
18608
+
18609
+ /**
18610
+ * CreditApi - functional programming interface
18611
+ * @export
18612
+ */
18613
+ export const CreditApiFp = function(configuration?: Configuration) {
18614
+ const localVarAxiosParamCreator = CreditApiAxiosParamCreator(configuration)
18615
+ return {
19168
18616
  /**
19169
- *
19170
- * @summary Delete a compliance
19171
- * @param {string} gpuModel
18617
+ * Retrieves the current credit balance for your [**organization**](/docs/rbac/organization). Ensuring a positive credit balance allows you to create resources. However, for prepaid accounts, if the credit balance falls below $0, all associated resources will be temporarily suspended until a [**payment**](/docs/api-reference/billing-resources/create-payment) is made. For additional information, [**click here**](None/docs/api-reference/billing-resources/retrieve-credit-balance/).
18618
+ * @summary GET: View credit and threshold
19172
18619
  * @param {*} [options] Override http request option.
19173
18620
  * @throws {RequiredError}
19174
18621
  */
19175
- deleteCompliance: async (gpuModel: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19176
- // verify required parameter 'gpuModel' is not null or undefined
19177
- assertParamExists('deleteCompliance', 'gpuModel', gpuModel)
19178
- const localVarPath = `/core/compliance/{gpu_model}`
19179
- .replace(`{${"gpu_model"}}`, encodeURIComponent(String(gpuModel)));
19180
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
19181
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19182
- let baseOptions;
19183
- if (configuration) {
19184
- baseOptions = configuration.baseOptions;
19185
- }
19186
-
19187
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
19188
- const localVarHeaderParameter = {} as any;
19189
- const localVarQueryParameter = {} as any;
19190
-
19191
- // authentication apiKey required
19192
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
19193
-
19194
-
19195
-
19196
- setSearchParams(localVarUrlObj, localVarQueryParameter);
19197
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19198
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19199
-
19200
- return {
19201
- url: toPathString(localVarUrlObj),
19202
- options: localVarRequestOptions,
19203
- };
18622
+ async getUserCredit(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCreditAndThresholdInfoInResponse>> {
18623
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserCredit(options);
18624
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18625
+ const localVarOperationServerBasePath = operationServerMap['CreditApi.getUserCredit']?.[localVarOperationServerIndex]?.url;
18626
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19204
18627
  },
18628
+ }
18629
+ };
18630
+
18631
+ /**
18632
+ * CreditApi - factory interface
18633
+ * @export
18634
+ */
18635
+ export const CreditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
18636
+ const localVarFp = CreditApiFp(configuration)
18637
+ return {
19205
18638
  /**
19206
- * Returns a list of compliance objects each corresponding to available GPU models. These compliance objects contain minimum and maximum values for RAM in GB, number of vCPUs, and system disk capacity in GB. Use the optional `gpu` model parameter in the query string to filter responses by GPU model. For additional details on GPU compliance, [**click here**](https://docs.hyperstack.cloud/docs/hardware/flavors#adhering-to-gpu-compliance).
19207
- * @summary Retrieve GPU compliance
19208
- * @param {string} [gpu] This is for gpu model
19209
- * @param {*} [options] Override http request option.
19210
- * @throws {RequiredError}
19211
- */
19212
- getCompliance: async (gpu?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19213
- const localVarPath = `/core/compliance`;
19214
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
19215
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19216
- let baseOptions;
19217
- if (configuration) {
19218
- baseOptions = configuration.baseOptions;
19219
- }
19220
-
19221
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19222
- const localVarHeaderParameter = {} as any;
19223
- const localVarQueryParameter = {} as any;
19224
-
19225
- // authentication apiKey required
19226
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
19227
-
19228
- if (gpu !== undefined) {
19229
- localVarQueryParameter['gpu'] = gpu;
19230
- }
19231
-
19232
-
19233
-
19234
- setSearchParams(localVarUrlObj, localVarQueryParameter);
19235
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19236
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19237
-
19238
- return {
19239
- url: toPathString(localVarUrlObj),
19240
- options: localVarRequestOptions,
19241
- };
19242
- },
19243
- /**
19244
- *
19245
- * @summary Update a compliance
19246
- * @param {CompliancePayload} payload
19247
- * @param {*} [options] Override http request option.
19248
- * @throws {RequiredError}
19249
- */
19250
- updateCompliance: async (payload: CompliancePayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19251
- // verify required parameter 'payload' is not null or undefined
19252
- assertParamExists('updateCompliance', 'payload', payload)
19253
- const localVarPath = `/core/compliance`;
19254
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
19255
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19256
- let baseOptions;
19257
- if (configuration) {
19258
- baseOptions = configuration.baseOptions;
19259
- }
19260
-
19261
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
19262
- const localVarHeaderParameter = {} as any;
19263
- const localVarQueryParameter = {} as any;
19264
-
19265
- // authentication apiKey required
19266
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
19267
-
19268
-
19269
-
19270
- localVarHeaderParameter['Content-Type'] = 'application/json';
19271
-
19272
- setSearchParams(localVarUrlObj, localVarQueryParameter);
19273
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19274
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19275
- localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
19276
-
19277
- return {
19278
- url: toPathString(localVarUrlObj),
19279
- options: localVarRequestOptions,
19280
- };
19281
- },
19282
- }
19283
- };
19284
-
19285
- /**
19286
- * ComplianceApi - functional programming interface
19287
- * @export
19288
- */
19289
- export const ComplianceApiFp = function(configuration?: Configuration) {
19290
- const localVarAxiosParamCreator = ComplianceApiAxiosParamCreator(configuration)
19291
- return {
19292
- /**
19293
- *
19294
- * @summary Create compliance
19295
- * @param {CompliancePayload} payload
19296
- * @param {*} [options] Override http request option.
19297
- * @throws {RequiredError}
19298
- */
19299
- async createCompliance(payload: CompliancePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateUpdateComplianceResponse>> {
19300
- const localVarAxiosArgs = await localVarAxiosParamCreator.createCompliance(payload, options);
19301
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19302
- const localVarOperationServerBasePath = operationServerMap['ComplianceApi.createCompliance']?.[localVarOperationServerIndex]?.url;
19303
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19304
- },
19305
- /**
19306
- *
19307
- * @summary Delete a compliance
19308
- * @param {string} gpuModel
19309
- * @param {*} [options] Override http request option.
19310
- * @throws {RequiredError}
19311
- */
19312
- async deleteCompliance(gpuModel: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseModel>> {
19313
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCompliance(gpuModel, options);
19314
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19315
- const localVarOperationServerBasePath = operationServerMap['ComplianceApi.deleteCompliance']?.[localVarOperationServerIndex]?.url;
19316
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19317
- },
19318
- /**
19319
- * Returns a list of compliance objects each corresponding to available GPU models. These compliance objects contain minimum and maximum values for RAM in GB, number of vCPUs, and system disk capacity in GB. Use the optional `gpu` model parameter in the query string to filter responses by GPU model. For additional details on GPU compliance, [**click here**](https://docs.hyperstack.cloud/docs/hardware/flavors#adhering-to-gpu-compliance).
19320
- * @summary Retrieve GPU compliance
19321
- * @param {string} [gpu] This is for gpu model
19322
- * @param {*} [options] Override http request option.
19323
- * @throws {RequiredError}
19324
- */
19325
- async getCompliance(gpu?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ComplianceResponse>> {
19326
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCompliance(gpu, options);
19327
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19328
- const localVarOperationServerBasePath = operationServerMap['ComplianceApi.getCompliance']?.[localVarOperationServerIndex]?.url;
19329
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19330
- },
19331
- /**
19332
- *
19333
- * @summary Update a compliance
19334
- * @param {CompliancePayload} payload
19335
- * @param {*} [options] Override http request option.
19336
- * @throws {RequiredError}
19337
- */
19338
- async updateCompliance(payload: CompliancePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateUpdateComplianceResponse>> {
19339
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompliance(payload, options);
19340
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19341
- const localVarOperationServerBasePath = operationServerMap['ComplianceApi.updateCompliance']?.[localVarOperationServerIndex]?.url;
19342
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19343
- },
19344
- }
19345
- };
19346
-
19347
- /**
19348
- * ComplianceApi - factory interface
19349
- * @export
19350
- */
19351
- export const ComplianceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
19352
- const localVarFp = ComplianceApiFp(configuration)
19353
- return {
19354
- /**
19355
- *
19356
- * @summary Create compliance
19357
- * @param {CompliancePayload} payload
19358
- * @param {*} [options] Override http request option.
19359
- * @throws {RequiredError}
19360
- */
19361
- createCompliance(payload: CompliancePayload, options?: RawAxiosRequestConfig): AxiosPromise<CreateUpdateComplianceResponse> {
19362
- return localVarFp.createCompliance(payload, options).then((request) => request(axios, basePath));
19363
- },
19364
- /**
19365
- *
19366
- * @summary Delete a compliance
19367
- * @param {string} gpuModel
19368
- * @param {*} [options] Override http request option.
19369
- * @throws {RequiredError}
19370
- */
19371
- deleteCompliance(gpuModel: string, options?: RawAxiosRequestConfig): AxiosPromise<ResponseModel> {
19372
- return localVarFp.deleteCompliance(gpuModel, options).then((request) => request(axios, basePath));
19373
- },
19374
- /**
19375
- * Returns a list of compliance objects each corresponding to available GPU models. These compliance objects contain minimum and maximum values for RAM in GB, number of vCPUs, and system disk capacity in GB. Use the optional `gpu` model parameter in the query string to filter responses by GPU model. For additional details on GPU compliance, [**click here**](https://docs.hyperstack.cloud/docs/hardware/flavors#adhering-to-gpu-compliance).
19376
- * @summary Retrieve GPU compliance
19377
- * @param {string} [gpu] This is for gpu model
19378
- * @param {*} [options] Override http request option.
19379
- * @throws {RequiredError}
19380
- */
19381
- getCompliance(gpu?: string, options?: RawAxiosRequestConfig): AxiosPromise<ComplianceResponse> {
19382
- return localVarFp.getCompliance(gpu, options).then((request) => request(axios, basePath));
19383
- },
19384
- /**
19385
- *
19386
- * @summary Update a compliance
19387
- * @param {CompliancePayload} payload
19388
- * @param {*} [options] Override http request option.
19389
- * @throws {RequiredError}
19390
- */
19391
- updateCompliance(payload: CompliancePayload, options?: RawAxiosRequestConfig): AxiosPromise<CreateUpdateComplianceResponse> {
19392
- return localVarFp.updateCompliance(payload, options).then((request) => request(axios, basePath));
19393
- },
19394
- };
19395
- };
19396
-
19397
- /**
19398
- * ComplianceApi - object-oriented interface
19399
- * @export
19400
- * @class ComplianceApi
19401
- * @extends {BaseAPI}
19402
- */
19403
- export class ComplianceApi extends BaseAPI {
19404
- /**
19405
- *
19406
- * @summary Create compliance
19407
- * @param {CompliancePayload} payload
19408
- * @param {*} [options] Override http request option.
19409
- * @throws {RequiredError}
19410
- * @memberof ComplianceApi
19411
- */
19412
- public createCompliance(payload: CompliancePayload, options?: RawAxiosRequestConfig) {
19413
- return ComplianceApiFp(this.configuration).createCompliance(payload, options).then((request) => request(this.axios, this.basePath));
19414
- }
19415
-
19416
- /**
19417
- *
19418
- * @summary Delete a compliance
19419
- * @param {string} gpuModel
19420
- * @param {*} [options] Override http request option.
19421
- * @throws {RequiredError}
19422
- * @memberof ComplianceApi
19423
- */
19424
- public deleteCompliance(gpuModel: string, options?: RawAxiosRequestConfig) {
19425
- return ComplianceApiFp(this.configuration).deleteCompliance(gpuModel, options).then((request) => request(this.axios, this.basePath));
19426
- }
19427
-
19428
- /**
19429
- * Returns a list of compliance objects each corresponding to available GPU models. These compliance objects contain minimum and maximum values for RAM in GB, number of vCPUs, and system disk capacity in GB. Use the optional `gpu` model parameter in the query string to filter responses by GPU model. For additional details on GPU compliance, [**click here**](https://docs.hyperstack.cloud/docs/hardware/flavors#adhering-to-gpu-compliance).
19430
- * @summary Retrieve GPU compliance
19431
- * @param {string} [gpu] This is for gpu model
19432
- * @param {*} [options] Override http request option.
19433
- * @throws {RequiredError}
19434
- * @memberof ComplianceApi
19435
- */
19436
- public getCompliance(gpu?: string, options?: RawAxiosRequestConfig) {
19437
- return ComplianceApiFp(this.configuration).getCompliance(gpu, options).then((request) => request(this.axios, this.basePath));
19438
- }
19439
-
19440
- /**
19441
- *
19442
- * @summary Update a compliance
19443
- * @param {CompliancePayload} payload
19444
- * @param {*} [options] Override http request option.
19445
- * @throws {RequiredError}
19446
- * @memberof ComplianceApi
19447
- */
19448
- public updateCompliance(payload: CompliancePayload, options?: RawAxiosRequestConfig) {
19449
- return ComplianceApiFp(this.configuration).updateCompliance(payload, options).then((request) => request(this.axios, this.basePath));
19450
- }
19451
- }
19452
-
19453
-
19454
-
19455
- /**
19456
- * CreditApi - axios parameter creator
19457
- * @export
19458
- */
19459
- export const CreditApiAxiosParamCreator = function (configuration?: Configuration) {
19460
- return {
19461
- /**
19462
- * Retrieves the current credit balance for your [**organization**](/docs/rbac/organization). Ensuring a positive credit balance allows you to create resources. However, for prepaid accounts, if the credit balance falls below $0, all associated resources will be temporarily suspended until a [**payment**](/docs/api-reference/billing-resources/create-payment) is made. For additional information, [**click here**](None/docs/api-reference/billing-resources/retrieve-credit-balance/).
19463
- * @summary GET: View credit and threshold
19464
- * @param {*} [options] Override http request option.
19465
- * @throws {RequiredError}
19466
- */
19467
- getUserCredit: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19468
- const localVarPath = `/billing/user-credit/credit`;
19469
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
19470
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19471
- let baseOptions;
19472
- if (configuration) {
19473
- baseOptions = configuration.baseOptions;
19474
- }
19475
-
19476
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19477
- const localVarHeaderParameter = {} as any;
19478
- const localVarQueryParameter = {} as any;
19479
-
19480
- // authentication apiKey required
19481
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
19482
-
19483
-
19484
-
19485
- setSearchParams(localVarUrlObj, localVarQueryParameter);
19486
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19487
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19488
-
19489
- return {
19490
- url: toPathString(localVarUrlObj),
19491
- options: localVarRequestOptions,
19492
- };
19493
- },
19494
- }
19495
- };
19496
-
19497
- /**
19498
- * CreditApi - functional programming interface
19499
- * @export
19500
- */
19501
- export const CreditApiFp = function(configuration?: Configuration) {
19502
- const localVarAxiosParamCreator = CreditApiAxiosParamCreator(configuration)
19503
- return {
19504
- /**
19505
- * Retrieves the current credit balance for your [**organization**](/docs/rbac/organization). Ensuring a positive credit balance allows you to create resources. However, for prepaid accounts, if the credit balance falls below $0, all associated resources will be temporarily suspended until a [**payment**](/docs/api-reference/billing-resources/create-payment) is made. For additional information, [**click here**](None/docs/api-reference/billing-resources/retrieve-credit-balance/).
19506
- * @summary GET: View credit and threshold
19507
- * @param {*} [options] Override http request option.
19508
- * @throws {RequiredError}
19509
- */
19510
- async getUserCredit(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCreditAndThresholdInfoInResponse>> {
19511
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUserCredit(options);
19512
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19513
- const localVarOperationServerBasePath = operationServerMap['CreditApi.getUserCredit']?.[localVarOperationServerIndex]?.url;
19514
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19515
- },
19516
- }
19517
- };
19518
-
19519
- /**
19520
- * CreditApi - factory interface
19521
- * @export
19522
- */
19523
- export const CreditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
19524
- const localVarFp = CreditApiFp(configuration)
19525
- return {
19526
- /**
19527
- * Retrieves the current credit balance for your [**organization**](/docs/rbac/organization). Ensuring a positive credit balance allows you to create resources. However, for prepaid accounts, if the credit balance falls below $0, all associated resources will be temporarily suspended until a [**payment**](/docs/api-reference/billing-resources/create-payment) is made. For additional information, [**click here**](None/docs/api-reference/billing-resources/retrieve-credit-balance/).
19528
- * @summary GET: View credit and threshold
18639
+ * Retrieves the current credit balance for your [**organization**](/docs/rbac/organization). Ensuring a positive credit balance allows you to create resources. However, for prepaid accounts, if the credit balance falls below $0, all associated resources will be temporarily suspended until a [**payment**](/docs/api-reference/billing-resources/create-payment) is made. For additional information, [**click here**](None/docs/api-reference/billing-resources/retrieve-credit-balance/).
18640
+ * @summary GET: View credit and threshold
19529
18641
  * @param {*} [options] Override http request option.
19530
18642
  * @throws {RequiredError}
19531
18643
  */
@@ -19843,7 +18955,7 @@ export class CustomerContractApi extends BaseAPI {
19843
18955
  export const DashboardApiAxiosParamCreator = function (configuration?: Configuration) {
19844
18956
  return {
19845
18957
  /**
19846
- * Returns hardware and pricing overview for your active resources, includingvirtual machines, containers, and volumes. For more details on the Dashboard feature, [**click here**](https://docs.hyperstack.cloud/docs/resource-management/dashboard/).
18958
+ * Returns hardware and pricing overview for your active resources, includingvirtual machines and volumes. For more details on the Dashboard feature, [**click here**](https://docs.hyperstack.cloud/docs/resource-management/dashboard/).
19847
18959
  * @summary Retrieve Dashboard
19848
18960
  * @param {*} [options] Override http request option.
19849
18961
  * @throws {RequiredError}
@@ -19886,7 +18998,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
19886
18998
  const localVarAxiosParamCreator = DashboardApiAxiosParamCreator(configuration)
19887
18999
  return {
19888
19000
  /**
19889
- * Returns hardware and pricing overview for your active resources, includingvirtual machines, containers, and volumes. For more details on the Dashboard feature, [**click here**](https://docs.hyperstack.cloud/docs/resource-management/dashboard/).
19001
+ * Returns hardware and pricing overview for your active resources, includingvirtual machines and volumes. For more details on the Dashboard feature, [**click here**](https://docs.hyperstack.cloud/docs/resource-management/dashboard/).
19890
19002
  * @summary Retrieve Dashboard
19891
19003
  * @param {*} [options] Override http request option.
19892
19004
  * @throws {RequiredError}
@@ -19908,7 +19020,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
19908
19020
  const localVarFp = DashboardApiFp(configuration)
19909
19021
  return {
19910
19022
  /**
19911
- * Returns hardware and pricing overview for your active resources, includingvirtual machines, containers, and volumes. For more details on the Dashboard feature, [**click here**](https://docs.hyperstack.cloud/docs/resource-management/dashboard/).
19023
+ * Returns hardware and pricing overview for your active resources, includingvirtual machines and volumes. For more details on the Dashboard feature, [**click here**](https://docs.hyperstack.cloud/docs/resource-management/dashboard/).
19912
19024
  * @summary Retrieve Dashboard
19913
19025
  * @param {*} [options] Override http request option.
19914
19026
  * @throws {RequiredError}
@@ -19927,7 +19039,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
19927
19039
  */
19928
19040
  export class DashboardApi extends BaseAPI {
19929
19041
  /**
19930
- * Returns hardware and pricing overview for your active resources, includingvirtual machines, containers, and volumes. For more details on the Dashboard feature, [**click here**](https://docs.hyperstack.cloud/docs/resource-management/dashboard/).
19042
+ * Returns hardware and pricing overview for your active resources, includingvirtual machines and volumes. For more details on the Dashboard feature, [**click here**](https://docs.hyperstack.cloud/docs/resource-management/dashboard/).
19931
19043
  * @summary Retrieve Dashboard
19932
19044
  * @param {*} [options] Override http request option.
19933
19045
  * @throws {RequiredError}
@@ -19941,23 +19053,19 @@ export class DashboardApi extends BaseAPI {
19941
19053
 
19942
19054
 
19943
19055
  /**
19944
- * DeploymentApi - axios parameter creator
19056
+ * EmailOptInOutApi - axios parameter creator
19945
19057
  * @export
19946
19058
  */
19947
- export const DeploymentApiAxiosParamCreator = function (configuration?: Configuration) {
19059
+ export const EmailOptInOutApiAxiosParamCreator = function (configuration?: Configuration) {
19948
19060
  return {
19949
19061
  /**
19950
- *
19951
- * @summary Delete Deployment
19952
- * @param {number} id
19062
+ * Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
19063
+ * @summary Get all email preferences for the authenticated user
19953
19064
  * @param {*} [options] Override http request option.
19954
19065
  * @throws {RequiredError}
19955
19066
  */
19956
- deleteDeployment: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19957
- // verify required parameter 'id' is not null or undefined
19958
- assertParamExists('deleteDeployment', 'id', id)
19959
- const localVarPath = `/core/marketplace/deployments/{id}`
19960
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
19067
+ getEmailPreferencesForAUser: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19068
+ const localVarPath = `/auth/email/opt-out`;
19961
19069
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19962
19070
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19963
19071
  let baseOptions;
@@ -19965,7 +19073,7 @@ export const DeploymentApiAxiosParamCreator = function (configuration?: Configur
19965
19073
  baseOptions = configuration.baseOptions;
19966
19074
  }
19967
19075
 
19968
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
19076
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19969
19077
  const localVarHeaderParameter = {} as any;
19970
19078
  const localVarQueryParameter = {} as any;
19971
19079
 
@@ -19984,334 +19092,16 @@ export const DeploymentApiAxiosParamCreator = function (configuration?: Configur
19984
19092
  };
19985
19093
  },
19986
19094
  /**
19987
- *
19988
- * @summary Details of Deployment by ID
19989
- * @param {number} id
19095
+ * Sets opted_in to the given value for every non-required, non-deleted email category. Required categories are not affected.
19096
+ * @summary Toggle all optional email preferences for the authenticated user
19097
+ * @param {UpdateEmailPreferenceInput} payload
19990
19098
  * @param {*} [options] Override http request option.
19991
19099
  * @throws {RequiredError}
19992
19100
  */
19993
- getDeployment: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19994
- // verify required parameter 'id' is not null or undefined
19995
- assertParamExists('getDeployment', 'id', id)
19996
- const localVarPath = `/core/marketplace/deployments/{id}`
19997
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
19998
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
19999
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20000
- let baseOptions;
20001
- if (configuration) {
20002
- baseOptions = configuration.baseOptions;
20003
- }
20004
-
20005
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20006
- const localVarHeaderParameter = {} as any;
20007
- const localVarQueryParameter = {} as any;
20008
-
20009
- // authentication apiKey required
20010
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
20011
-
20012
-
20013
-
20014
- setSearchParams(localVarUrlObj, localVarQueryParameter);
20015
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20016
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20017
-
20018
- return {
20019
- url: toPathString(localVarUrlObj),
20020
- options: localVarRequestOptions,
20021
- };
20022
- },
20023
- /**
20024
- *
20025
- * @summary List Deployments
20026
- * @param {*} [options] Override http request option.
20027
- * @throws {RequiredError}
20028
- */
20029
- listDeployments: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20030
- const localVarPath = `/core/marketplace/deployments`;
20031
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
20032
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20033
- let baseOptions;
20034
- if (configuration) {
20035
- baseOptions = configuration.baseOptions;
20036
- }
20037
-
20038
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20039
- const localVarHeaderParameter = {} as any;
20040
- const localVarQueryParameter = {} as any;
20041
-
20042
- // authentication apiKey required
20043
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
20044
-
20045
-
20046
-
20047
- setSearchParams(localVarUrlObj, localVarQueryParameter);
20048
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20049
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20050
-
20051
- return {
20052
- url: toPathString(localVarUrlObj),
20053
- options: localVarRequestOptions,
20054
- };
20055
- },
20056
- /**
20057
- *
20058
- * @summary Start Deployment
20059
- * @param {StartDeploymentPayload} payload
20060
- * @param {*} [options] Override http request option.
20061
- * @throws {RequiredError}
20062
- */
20063
- startDeployment: async (payload: StartDeploymentPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20064
- // verify required parameter 'payload' is not null or undefined
20065
- assertParamExists('startDeployment', 'payload', payload)
20066
- const localVarPath = `/core/marketplace/deployments`;
20067
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
20068
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20069
- let baseOptions;
20070
- if (configuration) {
20071
- baseOptions = configuration.baseOptions;
20072
- }
20073
-
20074
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
20075
- const localVarHeaderParameter = {} as any;
20076
- const localVarQueryParameter = {} as any;
20077
-
20078
- // authentication apiKey required
20079
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
20080
-
20081
-
20082
-
20083
- localVarHeaderParameter['Content-Type'] = 'application/json';
20084
-
20085
- setSearchParams(localVarUrlObj, localVarQueryParameter);
20086
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20087
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20088
- localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
20089
-
20090
- return {
20091
- url: toPathString(localVarUrlObj),
20092
- options: localVarRequestOptions,
20093
- };
20094
- },
20095
- }
20096
- };
20097
-
20098
- /**
20099
- * DeploymentApi - functional programming interface
20100
- * @export
20101
- */
20102
- export const DeploymentApiFp = function(configuration?: Configuration) {
20103
- const localVarAxiosParamCreator = DeploymentApiAxiosParamCreator(configuration)
20104
- return {
20105
- /**
20106
- *
20107
- * @summary Delete Deployment
20108
- * @param {number} id
20109
- * @param {*} [options] Override http request option.
20110
- * @throws {RequiredError}
20111
- */
20112
- async deleteDeployment(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseModel>> {
20113
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeployment(id, options);
20114
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20115
- const localVarOperationServerBasePath = operationServerMap['DeploymentApi.deleteDeployment']?.[localVarOperationServerIndex]?.url;
20116
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20117
- },
20118
- /**
20119
- *
20120
- * @summary Details of Deployment by ID
20121
- * @param {number} id
20122
- * @param {*} [options] Override http request option.
20123
- * @throws {RequiredError}
20124
- */
20125
- async getDeployment(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StartDeployment>> {
20126
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDeployment(id, options);
20127
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20128
- const localVarOperationServerBasePath = operationServerMap['DeploymentApi.getDeployment']?.[localVarOperationServerIndex]?.url;
20129
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20130
- },
20131
- /**
20132
- *
20133
- * @summary List Deployments
20134
- * @param {*} [options] Override http request option.
20135
- * @throws {RequiredError}
20136
- */
20137
- async listDeployments(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Deployments>> {
20138
- const localVarAxiosArgs = await localVarAxiosParamCreator.listDeployments(options);
20139
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20140
- const localVarOperationServerBasePath = operationServerMap['DeploymentApi.listDeployments']?.[localVarOperationServerIndex]?.url;
20141
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20142
- },
20143
- /**
20144
- *
20145
- * @summary Start Deployment
20146
- * @param {StartDeploymentPayload} payload
20147
- * @param {*} [options] Override http request option.
20148
- * @throws {RequiredError}
20149
- */
20150
- async startDeployment(payload: StartDeploymentPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StartDeployment>> {
20151
- const localVarAxiosArgs = await localVarAxiosParamCreator.startDeployment(payload, options);
20152
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20153
- const localVarOperationServerBasePath = operationServerMap['DeploymentApi.startDeployment']?.[localVarOperationServerIndex]?.url;
20154
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20155
- },
20156
- }
20157
- };
20158
-
20159
- /**
20160
- * DeploymentApi - factory interface
20161
- * @export
20162
- */
20163
- export const DeploymentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
20164
- const localVarFp = DeploymentApiFp(configuration)
20165
- return {
20166
- /**
20167
- *
20168
- * @summary Delete Deployment
20169
- * @param {number} id
20170
- * @param {*} [options] Override http request option.
20171
- * @throws {RequiredError}
20172
- */
20173
- deleteDeployment(id: number, options?: RawAxiosRequestConfig): AxiosPromise<ResponseModel> {
20174
- return localVarFp.deleteDeployment(id, options).then((request) => request(axios, basePath));
20175
- },
20176
- /**
20177
- *
20178
- * @summary Details of Deployment by ID
20179
- * @param {number} id
20180
- * @param {*} [options] Override http request option.
20181
- * @throws {RequiredError}
20182
- */
20183
- getDeployment(id: number, options?: RawAxiosRequestConfig): AxiosPromise<StartDeployment> {
20184
- return localVarFp.getDeployment(id, options).then((request) => request(axios, basePath));
20185
- },
20186
- /**
20187
- *
20188
- * @summary List Deployments
20189
- * @param {*} [options] Override http request option.
20190
- * @throws {RequiredError}
20191
- */
20192
- listDeployments(options?: RawAxiosRequestConfig): AxiosPromise<Deployments> {
20193
- return localVarFp.listDeployments(options).then((request) => request(axios, basePath));
20194
- },
20195
- /**
20196
- *
20197
- * @summary Start Deployment
20198
- * @param {StartDeploymentPayload} payload
20199
- * @param {*} [options] Override http request option.
20200
- * @throws {RequiredError}
20201
- */
20202
- startDeployment(payload: StartDeploymentPayload, options?: RawAxiosRequestConfig): AxiosPromise<StartDeployment> {
20203
- return localVarFp.startDeployment(payload, options).then((request) => request(axios, basePath));
20204
- },
20205
- };
20206
- };
20207
-
20208
- /**
20209
- * DeploymentApi - object-oriented interface
20210
- * @export
20211
- * @class DeploymentApi
20212
- * @extends {BaseAPI}
20213
- */
20214
- export class DeploymentApi extends BaseAPI {
20215
- /**
20216
- *
20217
- * @summary Delete Deployment
20218
- * @param {number} id
20219
- * @param {*} [options] Override http request option.
20220
- * @throws {RequiredError}
20221
- * @memberof DeploymentApi
20222
- */
20223
- public deleteDeployment(id: number, options?: RawAxiosRequestConfig) {
20224
- return DeploymentApiFp(this.configuration).deleteDeployment(id, options).then((request) => request(this.axios, this.basePath));
20225
- }
20226
-
20227
- /**
20228
- *
20229
- * @summary Details of Deployment by ID
20230
- * @param {number} id
20231
- * @param {*} [options] Override http request option.
20232
- * @throws {RequiredError}
20233
- * @memberof DeploymentApi
20234
- */
20235
- public getDeployment(id: number, options?: RawAxiosRequestConfig) {
20236
- return DeploymentApiFp(this.configuration).getDeployment(id, options).then((request) => request(this.axios, this.basePath));
20237
- }
20238
-
20239
- /**
20240
- *
20241
- * @summary List Deployments
20242
- * @param {*} [options] Override http request option.
20243
- * @throws {RequiredError}
20244
- * @memberof DeploymentApi
20245
- */
20246
- public listDeployments(options?: RawAxiosRequestConfig) {
20247
- return DeploymentApiFp(this.configuration).listDeployments(options).then((request) => request(this.axios, this.basePath));
20248
- }
20249
-
20250
- /**
20251
- *
20252
- * @summary Start Deployment
20253
- * @param {StartDeploymentPayload} payload
20254
- * @param {*} [options] Override http request option.
20255
- * @throws {RequiredError}
20256
- * @memberof DeploymentApi
20257
- */
20258
- public startDeployment(payload: StartDeploymentPayload, options?: RawAxiosRequestConfig) {
20259
- return DeploymentApiFp(this.configuration).startDeployment(payload, options).then((request) => request(this.axios, this.basePath));
20260
- }
20261
- }
20262
-
20263
-
20264
-
20265
- /**
20266
- * EmailOptInOutApi - axios parameter creator
20267
- * @export
20268
- */
20269
- export const EmailOptInOutApiAxiosParamCreator = function (configuration?: Configuration) {
20270
- return {
20271
- /**
20272
- * Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
20273
- * @summary Get all email preferences for the authenticated user
20274
- * @param {*} [options] Override http request option.
20275
- * @throws {RequiredError}
20276
- */
20277
- getEmailPreferencesForAUser: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20278
- const localVarPath = `/auth/email/opt-out`;
20279
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
20280
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20281
- let baseOptions;
20282
- if (configuration) {
20283
- baseOptions = configuration.baseOptions;
20284
- }
20285
-
20286
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20287
- const localVarHeaderParameter = {} as any;
20288
- const localVarQueryParameter = {} as any;
20289
-
20290
- // authentication apiKey required
20291
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
20292
-
20293
-
20294
-
20295
- setSearchParams(localVarUrlObj, localVarQueryParameter);
20296
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20297
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20298
-
20299
- return {
20300
- url: toPathString(localVarUrlObj),
20301
- options: localVarRequestOptions,
20302
- };
20303
- },
20304
- /**
20305
- * Sets opted_in to the given value for every non-required, non-deleted email category. Required categories are not affected.
20306
- * @summary Toggle all optional email preferences for the authenticated user
20307
- * @param {UpdateEmailPreferenceInput} payload
20308
- * @param {*} [options] Override http request option.
20309
- * @throws {RequiredError}
20310
- */
20311
- toggleAllOptionalEmailPreferencesForTheUser: async (payload: UpdateEmailPreferenceInput, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20312
- // verify required parameter 'payload' is not null or undefined
20313
- assertParamExists('toggleAllOptionalEmailPreferencesForTheUser', 'payload', payload)
20314
- const localVarPath = `/auth/email/opt-out`;
19101
+ toggleAllOptionalEmailPreferencesForTheUser: async (payload: UpdateEmailPreferenceInput, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19102
+ // verify required parameter 'payload' is not null or undefined
19103
+ assertParamExists('toggleAllOptionalEmailPreferencesForTheUser', 'payload', payload)
19104
+ const localVarPath = `/auth/email/opt-out`;
20315
19105
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20316
19106
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20317
19107
  let baseOptions;
@@ -26187,452 +24977,6 @@ export class StockApi extends BaseAPI {
26187
24977
 
26188
24978
 
26189
24979
 
26190
- /**
26191
- * TemplateApi - axios parameter creator
26192
- * @export
26193
- */
26194
- export const TemplateApiAxiosParamCreator = function (configuration?: Configuration) {
26195
- return {
26196
- /**
26197
- * Creates a resource template for deployment.
26198
- * @summary Create template
26199
- * @param {File} content YAML file is required
26200
- * @param {string} description description is required
26201
- * @param {string} isPublic is_public is required
26202
- * @param {string} name name is required
26203
- * @param {*} [options] Override http request option.
26204
- * @throws {RequiredError}
26205
- */
26206
- createTemplate: async (content: File, description: string, isPublic: string, name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26207
- // verify required parameter 'content' is not null or undefined
26208
- assertParamExists('createTemplate', 'content', content)
26209
- // verify required parameter 'description' is not null or undefined
26210
- assertParamExists('createTemplate', 'description', description)
26211
- // verify required parameter 'isPublic' is not null or undefined
26212
- assertParamExists('createTemplate', 'isPublic', isPublic)
26213
- // verify required parameter 'name' is not null or undefined
26214
- assertParamExists('createTemplate', 'name', name)
26215
- const localVarPath = `/core/marketplace/templates`;
26216
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
26217
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26218
- let baseOptions;
26219
- if (configuration) {
26220
- baseOptions = configuration.baseOptions;
26221
- }
26222
-
26223
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
26224
- const localVarHeaderParameter = {} as any;
26225
- const localVarQueryParameter = {} as any;
26226
- const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
26227
-
26228
- // authentication apiKey required
26229
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
26230
-
26231
-
26232
- if (content !== undefined) {
26233
- localVarFormParams.append('content', content as any);
26234
- }
26235
-
26236
- if (description !== undefined) {
26237
- localVarFormParams.append('description', description as any);
26238
- }
26239
-
26240
- if (isPublic !== undefined) {
26241
- localVarFormParams.append('is_public', isPublic as any);
26242
- }
26243
-
26244
- if (name !== undefined) {
26245
- localVarFormParams.append('name', name as any);
26246
- }
26247
-
26248
-
26249
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
26250
-
26251
- setSearchParams(localVarUrlObj, localVarQueryParameter);
26252
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26253
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26254
- localVarRequestOptions.data = localVarFormParams;
26255
-
26256
- return {
26257
- url: toPathString(localVarUrlObj),
26258
- options: localVarRequestOptions,
26259
- };
26260
- },
26261
- /**
26262
- * Permanently deletes a template. Supply the template ID in the path to delete the specified template.
26263
- * @summary Delete template
26264
- * @param {number} id
26265
- * @param {*} [options] Override http request option.
26266
- * @throws {RequiredError}
26267
- */
26268
- deleteTemplate: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26269
- // verify required parameter 'id' is not null or undefined
26270
- assertParamExists('deleteTemplate', 'id', id)
26271
- const localVarPath = `/core/marketplace/templates/{id}`
26272
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
26273
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
26274
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26275
- let baseOptions;
26276
- if (configuration) {
26277
- baseOptions = configuration.baseOptions;
26278
- }
26279
-
26280
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
26281
- const localVarHeaderParameter = {} as any;
26282
- const localVarQueryParameter = {} as any;
26283
-
26284
- // authentication apiKey required
26285
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
26286
-
26287
-
26288
-
26289
- setSearchParams(localVarUrlObj, localVarQueryParameter);
26290
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26291
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26292
-
26293
- return {
26294
- url: toPathString(localVarUrlObj),
26295
- options: localVarRequestOptions,
26296
- };
26297
- },
26298
- /**
26299
- * Retrieves the resource configuration details for a specified template.Provide the template ID in the path to retrieve details for the specified template.For additional information on template configuration details,[**click here**](https://docs.hyperstack.cloud/docs/api-references/).
26300
- * @summary Retrieve template details
26301
- * @param {number} id
26302
- * @param {*} [options] Override http request option.
26303
- * @throws {RequiredError}
26304
- */
26305
- getTemplate: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26306
- // verify required parameter 'id' is not null or undefined
26307
- assertParamExists('getTemplate', 'id', id)
26308
- const localVarPath = `/core/marketplace/templates/{id}`
26309
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
26310
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
26311
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26312
- let baseOptions;
26313
- if (configuration) {
26314
- baseOptions = configuration.baseOptions;
26315
- }
26316
-
26317
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26318
- const localVarHeaderParameter = {} as any;
26319
- const localVarQueryParameter = {} as any;
26320
-
26321
- // authentication apiKey required
26322
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
26323
-
26324
-
26325
-
26326
- setSearchParams(localVarUrlObj, localVarQueryParameter);
26327
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26328
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26329
-
26330
- return {
26331
- url: toPathString(localVarUrlObj),
26332
- options: localVarRequestOptions,
26333
- };
26334
- },
26335
- /**
26336
- * Returns a comprehensive list of templates, providing resource configuration details for each. Optionally, specify the `visibility` as `public` or `private` to retrieve templates with the desired visibility status. To learn more about the templates feature, [**click here**](https://docs.hyperstack.cloud/docs/features/templates#view-a-list-of-templates).
26337
- * @summary List templates
26338
- * @param {string} [visibility] Specify the &#x60;visibility&#x60; status as either &#x60;public&#x60; or &#x60;private&#x60; to filter and retrieve templates with the desired visibility.
26339
- * @param {*} [options] Override http request option.
26340
- * @throws {RequiredError}
26341
- */
26342
- listTemplates: async (visibility?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26343
- const localVarPath = `/core/marketplace/templates`;
26344
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
26345
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26346
- let baseOptions;
26347
- if (configuration) {
26348
- baseOptions = configuration.baseOptions;
26349
- }
26350
-
26351
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26352
- const localVarHeaderParameter = {} as any;
26353
- const localVarQueryParameter = {} as any;
26354
-
26355
- // authentication apiKey required
26356
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
26357
-
26358
- if (visibility !== undefined) {
26359
- localVarQueryParameter['visibility'] = visibility;
26360
- }
26361
-
26362
-
26363
-
26364
- setSearchParams(localVarUrlObj, localVarQueryParameter);
26365
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26366
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26367
-
26368
- return {
26369
- url: toPathString(localVarUrlObj),
26370
- options: localVarRequestOptions,
26371
- };
26372
- },
26373
- /**
26374
- * Updates the details of a template. Modify the template name, description and/or`is_public` status to change the public/private visibility of the template.
26375
- * @summary Update template
26376
- * @param {number} id
26377
- * @param {UpdateTemplate} payload
26378
- * @param {*} [options] Override http request option.
26379
- * @throws {RequiredError}
26380
- */
26381
- updateTemplate: async (id: number, payload: UpdateTemplate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26382
- // verify required parameter 'id' is not null or undefined
26383
- assertParamExists('updateTemplate', 'id', id)
26384
- // verify required parameter 'payload' is not null or undefined
26385
- assertParamExists('updateTemplate', 'payload', payload)
26386
- const localVarPath = `/core/marketplace/templates/{id}`
26387
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
26388
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
26389
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26390
- let baseOptions;
26391
- if (configuration) {
26392
- baseOptions = configuration.baseOptions;
26393
- }
26394
-
26395
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
26396
- const localVarHeaderParameter = {} as any;
26397
- const localVarQueryParameter = {} as any;
26398
-
26399
- // authentication apiKey required
26400
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
26401
-
26402
-
26403
-
26404
- localVarHeaderParameter['Content-Type'] = 'application/json';
26405
-
26406
- setSearchParams(localVarUrlObj, localVarQueryParameter);
26407
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26408
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26409
- localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
26410
-
26411
- return {
26412
- url: toPathString(localVarUrlObj),
26413
- options: localVarRequestOptions,
26414
- };
26415
- },
26416
- }
26417
- };
26418
-
26419
- /**
26420
- * TemplateApi - functional programming interface
26421
- * @export
26422
- */
26423
- export const TemplateApiFp = function(configuration?: Configuration) {
26424
- const localVarAxiosParamCreator = TemplateApiAxiosParamCreator(configuration)
26425
- return {
26426
- /**
26427
- * Creates a resource template for deployment.
26428
- * @summary Create template
26429
- * @param {File} content YAML file is required
26430
- * @param {string} description description is required
26431
- * @param {string} isPublic is_public is required
26432
- * @param {string} name name is required
26433
- * @param {*} [options] Override http request option.
26434
- * @throws {RequiredError}
26435
- */
26436
- async createTemplate(content: File, description: string, isPublic: string, name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Template>> {
26437
- const localVarAxiosArgs = await localVarAxiosParamCreator.createTemplate(content, description, isPublic, name, options);
26438
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26439
- const localVarOperationServerBasePath = operationServerMap['TemplateApi.createTemplate']?.[localVarOperationServerIndex]?.url;
26440
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26441
- },
26442
- /**
26443
- * Permanently deletes a template. Supply the template ID in the path to delete the specified template.
26444
- * @summary Delete template
26445
- * @param {number} id
26446
- * @param {*} [options] Override http request option.
26447
- * @throws {RequiredError}
26448
- */
26449
- async deleteTemplate(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseModel>> {
26450
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTemplate(id, options);
26451
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26452
- const localVarOperationServerBasePath = operationServerMap['TemplateApi.deleteTemplate']?.[localVarOperationServerIndex]?.url;
26453
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26454
- },
26455
- /**
26456
- * Retrieves the resource configuration details for a specified template.Provide the template ID in the path to retrieve details for the specified template.For additional information on template configuration details,[**click here**](https://docs.hyperstack.cloud/docs/api-references/).
26457
- * @summary Retrieve template details
26458
- * @param {number} id
26459
- * @param {*} [options] Override http request option.
26460
- * @throws {RequiredError}
26461
- */
26462
- async getTemplate(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Template>> {
26463
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplate(id, options);
26464
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26465
- const localVarOperationServerBasePath = operationServerMap['TemplateApi.getTemplate']?.[localVarOperationServerIndex]?.url;
26466
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26467
- },
26468
- /**
26469
- * Returns a comprehensive list of templates, providing resource configuration details for each. Optionally, specify the `visibility` as `public` or `private` to retrieve templates with the desired visibility status. To learn more about the templates feature, [**click here**](https://docs.hyperstack.cloud/docs/features/templates#view-a-list-of-templates).
26470
- * @summary List templates
26471
- * @param {string} [visibility] Specify the &#x60;visibility&#x60; status as either &#x60;public&#x60; or &#x60;private&#x60; to filter and retrieve templates with the desired visibility.
26472
- * @param {*} [options] Override http request option.
26473
- * @throws {RequiredError}
26474
- */
26475
- async listTemplates(visibility?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Templates>> {
26476
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTemplates(visibility, options);
26477
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26478
- const localVarOperationServerBasePath = operationServerMap['TemplateApi.listTemplates']?.[localVarOperationServerIndex]?.url;
26479
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26480
- },
26481
- /**
26482
- * Updates the details of a template. Modify the template name, description and/or`is_public` status to change the public/private visibility of the template.
26483
- * @summary Update template
26484
- * @param {number} id
26485
- * @param {UpdateTemplate} payload
26486
- * @param {*} [options] Override http request option.
26487
- * @throws {RequiredError}
26488
- */
26489
- async updateTemplate(id: number, payload: UpdateTemplate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Template>> {
26490
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateTemplate(id, payload, options);
26491
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26492
- const localVarOperationServerBasePath = operationServerMap['TemplateApi.updateTemplate']?.[localVarOperationServerIndex]?.url;
26493
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26494
- },
26495
- }
26496
- };
26497
-
26498
- /**
26499
- * TemplateApi - factory interface
26500
- * @export
26501
- */
26502
- export const TemplateApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
26503
- const localVarFp = TemplateApiFp(configuration)
26504
- return {
26505
- /**
26506
- * Creates a resource template for deployment.
26507
- * @summary Create template
26508
- * @param {File} content YAML file is required
26509
- * @param {string} description description is required
26510
- * @param {string} isPublic is_public is required
26511
- * @param {string} name name is required
26512
- * @param {*} [options] Override http request option.
26513
- * @throws {RequiredError}
26514
- */
26515
- createTemplate(content: File, description: string, isPublic: string, name: string, options?: RawAxiosRequestConfig): AxiosPromise<Template> {
26516
- return localVarFp.createTemplate(content, description, isPublic, name, options).then((request) => request(axios, basePath));
26517
- },
26518
- /**
26519
- * Permanently deletes a template. Supply the template ID in the path to delete the specified template.
26520
- * @summary Delete template
26521
- * @param {number} id
26522
- * @param {*} [options] Override http request option.
26523
- * @throws {RequiredError}
26524
- */
26525
- deleteTemplate(id: number, options?: RawAxiosRequestConfig): AxiosPromise<ResponseModel> {
26526
- return localVarFp.deleteTemplate(id, options).then((request) => request(axios, basePath));
26527
- },
26528
- /**
26529
- * Retrieves the resource configuration details for a specified template.Provide the template ID in the path to retrieve details for the specified template.For additional information on template configuration details,[**click here**](https://docs.hyperstack.cloud/docs/api-references/).
26530
- * @summary Retrieve template details
26531
- * @param {number} id
26532
- * @param {*} [options] Override http request option.
26533
- * @throws {RequiredError}
26534
- */
26535
- getTemplate(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Template> {
26536
- return localVarFp.getTemplate(id, options).then((request) => request(axios, basePath));
26537
- },
26538
- /**
26539
- * Returns a comprehensive list of templates, providing resource configuration details for each. Optionally, specify the `visibility` as `public` or `private` to retrieve templates with the desired visibility status. To learn more about the templates feature, [**click here**](https://docs.hyperstack.cloud/docs/features/templates#view-a-list-of-templates).
26540
- * @summary List templates
26541
- * @param {string} [visibility] Specify the &#x60;visibility&#x60; status as either &#x60;public&#x60; or &#x60;private&#x60; to filter and retrieve templates with the desired visibility.
26542
- * @param {*} [options] Override http request option.
26543
- * @throws {RequiredError}
26544
- */
26545
- listTemplates(visibility?: string, options?: RawAxiosRequestConfig): AxiosPromise<Templates> {
26546
- return localVarFp.listTemplates(visibility, options).then((request) => request(axios, basePath));
26547
- },
26548
- /**
26549
- * Updates the details of a template. Modify the template name, description and/or`is_public` status to change the public/private visibility of the template.
26550
- * @summary Update template
26551
- * @param {number} id
26552
- * @param {UpdateTemplate} payload
26553
- * @param {*} [options] Override http request option.
26554
- * @throws {RequiredError}
26555
- */
26556
- updateTemplate(id: number, payload: UpdateTemplate, options?: RawAxiosRequestConfig): AxiosPromise<Template> {
26557
- return localVarFp.updateTemplate(id, payload, options).then((request) => request(axios, basePath));
26558
- },
26559
- };
26560
- };
26561
-
26562
- /**
26563
- * TemplateApi - object-oriented interface
26564
- * @export
26565
- * @class TemplateApi
26566
- * @extends {BaseAPI}
26567
- */
26568
- export class TemplateApi extends BaseAPI {
26569
- /**
26570
- * Creates a resource template for deployment.
26571
- * @summary Create template
26572
- * @param {File} content YAML file is required
26573
- * @param {string} description description is required
26574
- * @param {string} isPublic is_public is required
26575
- * @param {string} name name is required
26576
- * @param {*} [options] Override http request option.
26577
- * @throws {RequiredError}
26578
- * @memberof TemplateApi
26579
- */
26580
- public createTemplate(content: File, description: string, isPublic: string, name: string, options?: RawAxiosRequestConfig) {
26581
- return TemplateApiFp(this.configuration).createTemplate(content, description, isPublic, name, options).then((request) => request(this.axios, this.basePath));
26582
- }
26583
-
26584
- /**
26585
- * Permanently deletes a template. Supply the template ID in the path to delete the specified template.
26586
- * @summary Delete template
26587
- * @param {number} id
26588
- * @param {*} [options] Override http request option.
26589
- * @throws {RequiredError}
26590
- * @memberof TemplateApi
26591
- */
26592
- public deleteTemplate(id: number, options?: RawAxiosRequestConfig) {
26593
- return TemplateApiFp(this.configuration).deleteTemplate(id, options).then((request) => request(this.axios, this.basePath));
26594
- }
26595
-
26596
- /**
26597
- * Retrieves the resource configuration details for a specified template.Provide the template ID in the path to retrieve details for the specified template.For additional information on template configuration details,[**click here**](https://docs.hyperstack.cloud/docs/api-references/).
26598
- * @summary Retrieve template details
26599
- * @param {number} id
26600
- * @param {*} [options] Override http request option.
26601
- * @throws {RequiredError}
26602
- * @memberof TemplateApi
26603
- */
26604
- public getTemplate(id: number, options?: RawAxiosRequestConfig) {
26605
- return TemplateApiFp(this.configuration).getTemplate(id, options).then((request) => request(this.axios, this.basePath));
26606
- }
26607
-
26608
- /**
26609
- * Returns a comprehensive list of templates, providing resource configuration details for each. Optionally, specify the `visibility` as `public` or `private` to retrieve templates with the desired visibility status. To learn more about the templates feature, [**click here**](https://docs.hyperstack.cloud/docs/features/templates#view-a-list-of-templates).
26610
- * @summary List templates
26611
- * @param {string} [visibility] Specify the &#x60;visibility&#x60; status as either &#x60;public&#x60; or &#x60;private&#x60; to filter and retrieve templates with the desired visibility.
26612
- * @param {*} [options] Override http request option.
26613
- * @throws {RequiredError}
26614
- * @memberof TemplateApi
26615
- */
26616
- public listTemplates(visibility?: string, options?: RawAxiosRequestConfig) {
26617
- return TemplateApiFp(this.configuration).listTemplates(visibility, options).then((request) => request(this.axios, this.basePath));
26618
- }
26619
-
26620
- /**
26621
- * Updates the details of a template. Modify the template name, description and/or`is_public` status to change the public/private visibility of the template.
26622
- * @summary Update template
26623
- * @param {number} id
26624
- * @param {UpdateTemplate} payload
26625
- * @param {*} [options] Override http request option.
26626
- * @throws {RequiredError}
26627
- * @memberof TemplateApi
26628
- */
26629
- public updateTemplate(id: number, payload: UpdateTemplate, options?: RawAxiosRequestConfig) {
26630
- return TemplateApiFp(this.configuration).updateTemplate(id, payload, options).then((request) => request(this.axios, this.basePath));
26631
- }
26632
- }
26633
-
26634
-
26635
-
26636
24980
  /**
26637
24981
  * UserApi - axios parameter creator
26638
24982
  * @export