@nexgencloud/hyperstack-sdk-typescript 1.55.1-alpha → 1.55.6-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
@@ -1786,150 +1786,39 @@ export interface CompatibleFlavor {
1786
1786
  /**
1787
1787
  *
1788
1788
  * @export
1789
- * @interface ComplianceFields
1789
+ * @interface CompatibleImage
1790
1790
  */
1791
- export interface ComplianceFields {
1791
+ export interface CompatibleImage {
1792
1792
  /**
1793
- *
1794
- * @type {Array<number>}
1795
- * @memberof ComplianceFields
1796
- */
1797
- 'cpu'?: Array<number>;
1798
- /**
1799
- *
1800
- * @type {string}
1801
- * @memberof ComplianceFields
1802
- */
1803
- 'gpu_model'?: string;
1804
- /**
1805
- *
1806
- * @type {Array<number>}
1807
- * @memberof ComplianceFields
1808
- */
1809
- 'hdd'?: Array<number>;
1810
- /**
1811
- *
1812
- * @type {Array<number>}
1813
- * @memberof ComplianceFields
1814
- */
1815
- 'ram'?: Array<number>;
1816
- }
1817
- /**
1818
- *
1819
- * @export
1820
- * @interface ComplianceModelFields
1821
- */
1822
- export interface ComplianceModelFields {
1823
- /**
1824
- *
1825
- * @type {number}
1826
- * @memberof ComplianceModelFields
1827
- */
1828
- 'base_value'?: number;
1829
- /**
1830
- *
1831
- * @type {string}
1832
- * @memberof ComplianceModelFields
1833
- */
1834
- 'gpu_model'?: string;
1835
- /**
1836
- *
1837
- * @type {number}
1838
- * @memberof ComplianceModelFields
1839
- */
1840
- 'id'?: number;
1841
- /**
1842
- *
1843
- * @type {string}
1844
- * @memberof ComplianceModelFields
1845
- */
1846
- 'resource_type'?: string;
1847
- /**
1848
- *
1849
- * @type {number}
1850
- * @memberof ComplianceModelFields
1851
- */
1852
- 'variation_max'?: number;
1853
- /**
1854
- *
1855
- * @type {number}
1856
- * @memberof ComplianceModelFields
1857
- */
1858
- 'variation_min'?: number;
1859
- /**
1860
- *
1861
- * @type {number}
1862
- * @memberof ComplianceModelFields
1793
+ * JSON constraints object
1794
+ * @type {object}
1795
+ * @memberof CompatibleImage
1863
1796
  */
1864
- 'variation_unit'?: number;
1865
- }
1866
- /**
1867
- *
1868
- * @export
1869
- * @interface CompliancePayload
1870
- */
1871
- export interface CompliancePayload {
1797
+ 'constraints'?: object;
1872
1798
  /**
1873
1799
  *
1874
1800
  * @type {number}
1875
- * @memberof CompliancePayload
1801
+ * @memberof CompatibleImage
1876
1802
  */
1877
- 'base_value': number;
1803
+ 'image_id'?: number;
1878
1804
  /**
1879
1805
  *
1880
1806
  * @type {string}
1881
- * @memberof CompliancePayload
1807
+ * @memberof CompatibleImage
1882
1808
  */
1883
- 'gpu_model': string;
1809
+ 'image_name'?: string;
1884
1810
  /**
1885
- *
1811
+ * Either \'hard\' or \'soft\'
1886
1812
  * @type {string}
1887
- * @memberof CompliancePayload
1888
- */
1889
- 'resource_type': string;
1890
- /**
1891
- *
1892
- * @type {number}
1893
- * @memberof CompliancePayload
1894
- */
1895
- 'variation_max': number;
1896
- /**
1897
- *
1898
- * @type {number}
1899
- * @memberof CompliancePayload
1900
- */
1901
- 'variation_min': number;
1902
- /**
1903
- *
1904
- * @type {number}
1905
- * @memberof CompliancePayload
1906
- */
1907
- 'variation_unit': number;
1908
- }
1909
- /**
1910
- *
1911
- * @export
1912
- * @interface ComplianceResponse
1913
- */
1914
- export interface ComplianceResponse {
1915
- /**
1916
- *
1917
- * @type {ComplianceFields}
1918
- * @memberof ComplianceResponse
1813
+ * @memberof CompatibleImage
1919
1814
  */
1920
- 'compliance'?: ComplianceFields;
1815
+ 'link_type'?: string;
1921
1816
  /**
1922
1817
  *
1923
1818
  * @type {string}
1924
- * @memberof ComplianceResponse
1925
- */
1926
- 'message'?: string;
1927
- /**
1928
- *
1929
- * @type {boolean}
1930
- * @memberof ComplianceResponse
1819
+ * @memberof CompatibleImage
1931
1820
  */
1932
- 'status'?: boolean;
1821
+ 'reason'?: string;
1933
1822
  }
1934
1823
  /**
1935
1824
  *
@@ -2031,43 +1920,6 @@ export interface ConsentTemplatesResponse {
2031
1920
  */
2032
1921
  'templates'?: object;
2033
1922
  }
2034
- /**
2035
- *
2036
- * @export
2037
- * @interface ContainerOverviewFields
2038
- */
2039
- export interface ContainerOverviewFields {
2040
- /**
2041
- *
2042
- * @type {number}
2043
- * @memberof ContainerOverviewFields
2044
- */
2045
- 'cost_per_hour'?: number;
2046
- /**
2047
- *
2048
- * @type {number}
2049
- * @memberof ContainerOverviewFields
2050
- */
2051
- 'count'?: number;
2052
- /**
2053
- *
2054
- * @type {number}
2055
- * @memberof ContainerOverviewFields
2056
- */
2057
- 'gpus'?: number;
2058
- /**
2059
- *
2060
- * @type {number}
2061
- * @memberof ContainerOverviewFields
2062
- */
2063
- 'ram'?: number;
2064
- /**
2065
- *
2066
- * @type {number}
2067
- * @memberof ContainerOverviewFields
2068
- */
2069
- 'vcpus'?: number;
2070
- }
2071
1923
  /**
2072
1924
  *
2073
1925
  * @export
@@ -2969,31 +2821,6 @@ export interface CreateSnapshotResponse {
2969
2821
  */
2970
2822
  'status'?: boolean;
2971
2823
  }
2972
- /**
2973
- *
2974
- * @export
2975
- * @interface CreateUpdateComplianceResponse
2976
- */
2977
- export interface CreateUpdateComplianceResponse {
2978
- /**
2979
- *
2980
- * @type {ComplianceModelFields}
2981
- * @memberof CreateUpdateComplianceResponse
2982
- */
2983
- 'compliance'?: ComplianceModelFields;
2984
- /**
2985
- *
2986
- * @type {string}
2987
- * @memberof CreateUpdateComplianceResponse
2988
- */
2989
- 'message'?: string;
2990
- /**
2991
- *
2992
- * @type {boolean}
2993
- * @memberof CreateUpdateComplianceResponse
2994
- */
2995
- 'status'?: boolean;
2996
- }
2997
2824
  /**
2998
2825
  *
2999
2826
  * @export
@@ -3223,123 +3050,6 @@ export interface DeleteClusterNodesFields {
3223
3050
  */
3224
3051
  'ids'?: Array<number>;
3225
3052
  }
3226
- /**
3227
- *
3228
- * @export
3229
- * @interface DeploymentFields
3230
- */
3231
- export interface DeploymentFields {
3232
- /**
3233
- *
3234
- * @type {string}
3235
- * @memberof DeploymentFields
3236
- */
3237
- 'created_at'?: string;
3238
- /**
3239
- *
3240
- * @type {string}
3241
- * @memberof DeploymentFields
3242
- */
3243
- 'description'?: string;
3244
- /**
3245
- *
3246
- * @type {number}
3247
- * @memberof DeploymentFields
3248
- */
3249
- 'id'?: number;
3250
- /**
3251
- *
3252
- * @type {string}
3253
- * @memberof DeploymentFields
3254
- */
3255
- 'name'?: string;
3256
- /**
3257
- *
3258
- * @type {string}
3259
- * @memberof DeploymentFields
3260
- */
3261
- 'status'?: string;
3262
- /**
3263
- *
3264
- * @type {string}
3265
- * @memberof DeploymentFields
3266
- */
3267
- 'template'?: string;
3268
- }
3269
- /**
3270
- *
3271
- * @export
3272
- * @interface DeploymentFieldsForStartDeployments
3273
- */
3274
- export interface DeploymentFieldsForStartDeployments {
3275
- /**
3276
- *
3277
- * @type {string}
3278
- * @memberof DeploymentFieldsForStartDeployments
3279
- */
3280
- 'created_at'?: string;
3281
- /**
3282
- *
3283
- * @type {string}
3284
- * @memberof DeploymentFieldsForStartDeployments
3285
- */
3286
- 'description'?: string;
3287
- /**
3288
- *
3289
- * @type {number}
3290
- * @memberof DeploymentFieldsForStartDeployments
3291
- */
3292
- 'id'?: number;
3293
- /**
3294
- *
3295
- * @type {string}
3296
- * @memberof DeploymentFieldsForStartDeployments
3297
- */
3298
- 'name'?: string;
3299
- /**
3300
- *
3301
- * @type {string}
3302
- * @memberof DeploymentFieldsForStartDeployments
3303
- */
3304
- 'status'?: string;
3305
- /**
3306
- *
3307
- * @type {string}
3308
- * @memberof DeploymentFieldsForStartDeployments
3309
- */
3310
- 'template'?: string;
3311
- /**
3312
- *
3313
- * @type {string}
3314
- * @memberof DeploymentFieldsForStartDeployments
3315
- */
3316
- 'variables'?: string;
3317
- }
3318
- /**
3319
- *
3320
- * @export
3321
- * @interface Deployments
3322
- */
3323
- export interface Deployments {
3324
- /**
3325
- *
3326
- * @type {Array<DeploymentFields>}
3327
- * @memberof Deployments
3328
- */
3329
- 'deployments'?: Array<DeploymentFields>;
3330
- /**
3331
- *
3332
- * @type {string}
3333
- * @memberof Deployments
3334
- */
3335
- 'message'?: string;
3336
- /**
3337
- *
3338
- * @type {boolean}
3339
- * @memberof Deployments
3340
- */
3341
- 'status'?: boolean;
3342
- }
3343
3053
  /**
3344
3054
  *
3345
3055
  * @export
@@ -4097,6 +3807,12 @@ export interface FlavorFields {
4097
3807
  * @memberof FlavorFields
4098
3808
  */
4099
3809
  'id'?: number;
3810
+ /**
3811
+ * Image compatibility restrictions for this flavor (flavor → image links)
3812
+ * @type {ImageRestrictions}
3813
+ * @memberof FlavorFields
3814
+ */
3815
+ 'image_restrictions'?: ImageRestrictions;
4100
3816
  /**
4101
3817
  *
4102
3818
  * @type {Array<LableResonse>}
@@ -4845,6 +4561,31 @@ export interface ImageGetResponse {
4845
4561
  */
4846
4562
  'type'?: string;
4847
4563
  }
4564
+ /**
4565
+ *
4566
+ * @export
4567
+ * @interface ImageRestrictions
4568
+ */
4569
+ export interface ImageRestrictions {
4570
+ /**
4571
+ * List of images this flavor is allowed to launch, with link metadata
4572
+ * @type {Array<CompatibleImage>}
4573
+ * @memberof ImageRestrictions
4574
+ */
4575
+ 'compatible_images'?: Array<CompatibleImage>;
4576
+ /**
4577
+ * Whether the flavor is restricted to a set of images
4578
+ * @type {boolean}
4579
+ * @memberof ImageRestrictions
4580
+ */
4581
+ 'has_image_restrictions'?: boolean;
4582
+ /**
4583
+ * Either \'hard\', \'soft\', or null if no restrictions
4584
+ * @type {string}
4585
+ * @memberof ImageRestrictions
4586
+ */
4587
+ 'restriction_type'?: string;
4588
+ }
4848
4589
  /**
4849
4590
  *
4850
4591
  * @export
@@ -5142,6 +4883,12 @@ export interface InstanceFields {
5142
4883
  * @memberof InstanceFields
5143
4884
  */
5144
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;
5145
4892
  /**
5146
4893
  *
5147
4894
  * @type {number}
@@ -5154,6 +4901,12 @@ export interface InstanceFields {
5154
4901
  * @memberof InstanceFields
5155
4902
  */
5156
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;
5157
4910
  /**
5158
4911
  *
5159
4912
  * @type {InstanceEnhancedMetricsFields}
@@ -6853,16 +6606,10 @@ export interface OrganizationUserResponseModel {
6853
6606
  export interface OverviewInfo {
6854
6607
  /**
6855
6608
  *
6856
- * @type {ContainerOverviewFields}
6609
+ * @type {InstanceOverviewFields}
6857
6610
  * @memberof OverviewInfo
6858
6611
  */
6859
- 'container'?: ContainerOverviewFields;
6860
- /**
6861
- *
6862
- * @type {InstanceOverviewFields}
6863
- * @memberof OverviewInfo
6864
- */
6865
- 'instance'?: InstanceOverviewFields;
6612
+ 'instance'?: InstanceOverviewFields;
6866
6613
  /**
6867
6614
  *
6868
6615
  * @type {VolumeOverviewFields}
@@ -7117,11 +6864,11 @@ export interface PaymentInitiateFields {
7117
6864
  */
7118
6865
  export interface PaymentInitiatePayload {
7119
6866
  /**
7120
- *
6867
+ * The amount to pay, in dollars. Must be at least $5.00.
7121
6868
  * @type {number}
7122
6869
  * @memberof PaymentInitiatePayload
7123
6870
  */
7124
- 'amount'?: number;
6871
+ 'amount': number;
7125
6872
  }
7126
6873
  /**
7127
6874
  *
@@ -9331,62 +9078,6 @@ export interface Snapshots {
9331
9078
  */
9332
9079
  'status'?: boolean;
9333
9080
  }
9334
- /**
9335
- *
9336
- * @export
9337
- * @interface StartDeployment
9338
- */
9339
- export interface StartDeployment {
9340
- /**
9341
- *
9342
- * @type {DeploymentFieldsForStartDeployments}
9343
- * @memberof StartDeployment
9344
- */
9345
- 'deployment'?: DeploymentFieldsForStartDeployments;
9346
- /**
9347
- *
9348
- * @type {string}
9349
- * @memberof StartDeployment
9350
- */
9351
- 'message'?: string;
9352
- /**
9353
- *
9354
- * @type {boolean}
9355
- * @memberof StartDeployment
9356
- */
9357
- 'status'?: boolean;
9358
- }
9359
- /**
9360
- *
9361
- * @export
9362
- * @interface StartDeploymentPayload
9363
- */
9364
- export interface StartDeploymentPayload {
9365
- /**
9366
- *
9367
- * @type {string}
9368
- * @memberof StartDeploymentPayload
9369
- */
9370
- 'description': string;
9371
- /**
9372
- *
9373
- * @type {string}
9374
- * @memberof StartDeploymentPayload
9375
- */
9376
- 'name': string;
9377
- /**
9378
- *
9379
- * @type {number}
9380
- * @memberof StartDeploymentPayload
9381
- */
9382
- 'template_id': number;
9383
- /**
9384
- *
9385
- * @type {{ [key: string]: string; }}
9386
- * @memberof StartDeploymentPayload
9387
- */
9388
- 'variables'?: { [key: string]: string; };
9389
- }
9390
9081
  /**
9391
9082
  *
9392
9083
  * @export
@@ -9579,99 +9270,6 @@ export interface SupportedKeypairPublicKeyTypesResponse {
9579
9270
  */
9580
9271
  'supported_key_types'?: Array<string>;
9581
9272
  }
9582
- /**
9583
- *
9584
- * @export
9585
- * @interface Template
9586
- */
9587
- export interface Template {
9588
- /**
9589
- *
9590
- * @type {string}
9591
- * @memberof Template
9592
- */
9593
- 'message'?: string;
9594
- /**
9595
- *
9596
- * @type {boolean}
9597
- * @memberof Template
9598
- */
9599
- 'status'?: boolean;
9600
- /**
9601
- *
9602
- * @type {TemplateFields}
9603
- * @memberof Template
9604
- */
9605
- 'template'?: TemplateFields;
9606
- }
9607
- /**
9608
- *
9609
- * @export
9610
- * @interface TemplateFields
9611
- */
9612
- export interface TemplateFields {
9613
- /**
9614
- *
9615
- * @type {string}
9616
- * @memberof TemplateFields
9617
- */
9618
- 'content'?: string;
9619
- /**
9620
- *
9621
- * @type {string}
9622
- * @memberof TemplateFields
9623
- */
9624
- 'created_at'?: string;
9625
- /**
9626
- *
9627
- * @type {string}
9628
- * @memberof TemplateFields
9629
- */
9630
- 'description'?: string;
9631
- /**
9632
- *
9633
- * @type {number}
9634
- * @memberof TemplateFields
9635
- */
9636
- 'id'?: number;
9637
- /**
9638
- *
9639
- * @type {boolean}
9640
- * @memberof TemplateFields
9641
- */
9642
- 'is_public'?: boolean;
9643
- /**
9644
- *
9645
- * @type {string}
9646
- * @memberof TemplateFields
9647
- */
9648
- 'name'?: string;
9649
- }
9650
- /**
9651
- *
9652
- * @export
9653
- * @interface Templates
9654
- */
9655
- export interface Templates {
9656
- /**
9657
- *
9658
- * @type {string}
9659
- * @memberof Templates
9660
- */
9661
- 'message'?: string;
9662
- /**
9663
- *
9664
- * @type {boolean}
9665
- * @memberof Templates
9666
- */
9667
- 'status'?: boolean;
9668
- /**
9669
- *
9670
- * @type {Array<TemplateFields>}
9671
- * @memberof Templates
9672
- */
9673
- 'templates'?: Array<TemplateFields>;
9674
- }
9675
9273
  /**
9676
9274
  *
9677
9275
  * @export
@@ -9970,31 +9568,6 @@ export interface UpdateOrganizationResponseModel {
9970
9568
  */
9971
9569
  'status'?: boolean;
9972
9570
  }
9973
- /**
9974
- *
9975
- * @export
9976
- * @interface UpdateTemplate
9977
- */
9978
- export interface UpdateTemplate {
9979
- /**
9980
- *
9981
- * @type {string}
9982
- * @memberof UpdateTemplate
9983
- */
9984
- 'description'?: string;
9985
- /**
9986
- *
9987
- * @type {boolean}
9988
- * @memberof UpdateTemplate
9989
- */
9990
- 'is_public'?: boolean;
9991
- /**
9992
- *
9993
- * @type {string}
9994
- * @memberof UpdateTemplate
9995
- */
9996
- 'name'?: string;
9997
- }
9998
9571
  /**
9999
9572
  *
10000
9573
  * @export
@@ -12075,38 +11648,6 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
12075
11648
 
12076
11649
 
12077
11650
 
12078
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12079
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12080
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12081
-
12082
- return {
12083
- url: toPathString(localVarUrlObj),
12084
- options: localVarRequestOptions,
12085
- };
12086
- },
12087
- /**
12088
- * Disable Multi-Factor Authentication (MFA) for the currently authenticated user. This endpoint is used to turn off MFA.
12089
- * @param {*} [options] Override http request option.
12090
- * @throws {RequiredError}
12091
- */
12092
- disableMFA: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12093
- const localVarPath = `/auth/me/mfa/disable`;
12094
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12095
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12096
- let baseOptions;
12097
- if (configuration) {
12098
- baseOptions = configuration.baseOptions;
12099
- }
12100
-
12101
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12102
- const localVarHeaderParameter = {} as any;
12103
- const localVarQueryParameter = {} as any;
12104
-
12105
- // authentication apiKey required
12106
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
12107
-
12108
-
12109
-
12110
11651
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12111
11652
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12112
11653
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -12237,17 +11778,6 @@ export const AuthApiFp = function(configuration?: Configuration) {
12237
11778
  const localVarOperationServerBasePath = operationServerMap['AuthApi.changeOrganizationForToken']?.[localVarOperationServerIndex]?.url;
12238
11779
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12239
11780
  },
12240
- /**
12241
- * Disable Multi-Factor Authentication (MFA) for the currently authenticated user. This endpoint is used to turn off MFA.
12242
- * @param {*} [options] Override http request option.
12243
- * @throws {RequiredError}
12244
- */
12245
- async disableMFA(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonResponseModel>> {
12246
- const localVarAxiosArgs = await localVarAxiosParamCreator.disableMFA(options);
12247
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12248
- const localVarOperationServerBasePath = operationServerMap['AuthApi.disableMFA']?.[localVarOperationServerIndex]?.url;
12249
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12250
- },
12251
11781
  /**
12252
11782
  * Retrieve the Multi-Factor Authentication (MFA) status for the currentlyauthenticated user. Includes whether MFA is enabled.
12253
11783
  * @summary Get MFA status for authenticated user
@@ -12303,14 +11833,6 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
12303
11833
  changeOrganizationForToken(orgId: number, options?: RawAxiosRequestConfig): AxiosPromise<AuthGetTokenResponseModel> {
12304
11834
  return localVarFp.changeOrganizationForToken(orgId, options).then((request) => request(axios, basePath));
12305
11835
  },
12306
- /**
12307
- * Disable Multi-Factor Authentication (MFA) for the currently authenticated user. This endpoint is used to turn off MFA.
12308
- * @param {*} [options] Override http request option.
12309
- * @throws {RequiredError}
12310
- */
12311
- disableMFA(options?: RawAxiosRequestConfig): AxiosPromise<CommonResponseModel> {
12312
- return localVarFp.disableMFA(options).then((request) => request(axios, basePath));
12313
- },
12314
11836
  /**
12315
11837
  * Retrieve the Multi-Factor Authentication (MFA) status for the currentlyauthenticated user. Includes whether MFA is enabled.
12316
11838
  * @summary Get MFA status for authenticated user
@@ -12359,16 +11881,6 @@ export class AuthApi extends BaseAPI {
12359
11881
  return AuthApiFp(this.configuration).changeOrganizationForToken(orgId, options).then((request) => request(this.axios, this.basePath));
12360
11882
  }
12361
11883
 
12362
- /**
12363
- * Disable Multi-Factor Authentication (MFA) for the currently authenticated user. This endpoint is used to turn off MFA.
12364
- * @param {*} [options] Override http request option.
12365
- * @throws {RequiredError}
12366
- * @memberof AuthApi
12367
- */
12368
- public disableMFA(options?: RawAxiosRequestConfig) {
12369
- return AuthApiFp(this.configuration).disableMFA(options).then((request) => request(this.axios, this.basePath));
12370
- }
12371
-
12372
11884
  /**
12373
11885
  * Retrieve the Multi-Factor Authentication (MFA) status for the currentlyauthenticated user. Includes whether MFA is enabled.
12374
11886
  * @summary Get MFA status for authenticated user
@@ -19053,22 +18565,19 @@ export class ClustersApi extends BaseAPI {
19053
18565
 
19054
18566
 
19055
18567
  /**
19056
- * ComplianceApi - axios parameter creator
18568
+ * CreditApi - axios parameter creator
19057
18569
  * @export
19058
18570
  */
19059
- export const ComplianceApiAxiosParamCreator = function (configuration?: Configuration) {
18571
+ export const CreditApiAxiosParamCreator = function (configuration?: Configuration) {
19060
18572
  return {
19061
18573
  /**
19062
- *
19063
- * @summary Create compliance
19064
- * @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
19065
18576
  * @param {*} [options] Override http request option.
19066
18577
  * @throws {RequiredError}
19067
18578
  */
19068
- createCompliance: async (payload: CompliancePayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19069
- // verify required parameter 'payload' is not null or undefined
19070
- assertParamExists('createCompliance', 'payload', payload)
19071
- const localVarPath = `/core/compliance`;
18579
+ getUserCredit: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18580
+ const localVarPath = `/billing/user-credit/credit`;
19072
18581
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19073
18582
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19074
18583
  let baseOptions;
@@ -19076,7 +18585,7 @@ export const ComplianceApiAxiosParamCreator = function (configuration?: Configur
19076
18585
  baseOptions = configuration.baseOptions;
19077
18586
  }
19078
18587
 
19079
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18588
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19080
18589
  const localVarHeaderParameter = {} as any;
19081
18590
  const localVarQueryParameter = {} as any;
19082
18591
 
@@ -19085,379 +18594,50 @@ export const ComplianceApiAxiosParamCreator = function (configuration?: Configur
19085
18594
 
19086
18595
 
19087
18596
 
19088
- localVarHeaderParameter['Content-Type'] = 'application/json';
19089
-
19090
18597
  setSearchParams(localVarUrlObj, localVarQueryParameter);
19091
18598
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19092
18599
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19093
- localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
19094
18600
 
19095
18601
  return {
19096
18602
  url: toPathString(localVarUrlObj),
19097
18603
  options: localVarRequestOptions,
19098
18604
  };
19099
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 {
19100
18616
  /**
19101
- *
19102
- * @summary Delete a compliance
19103
- * @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
19104
18619
  * @param {*} [options] Override http request option.
19105
18620
  * @throws {RequiredError}
19106
18621
  */
19107
- deleteCompliance: async (gpuModel: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19108
- // verify required parameter 'gpuModel' is not null or undefined
19109
- assertParamExists('deleteCompliance', 'gpuModel', gpuModel)
19110
- const localVarPath = `/core/compliance/{gpu_model}`
19111
- .replace(`{${"gpu_model"}}`, encodeURIComponent(String(gpuModel)));
19112
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
19113
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19114
- let baseOptions;
19115
- if (configuration) {
19116
- baseOptions = configuration.baseOptions;
19117
- }
19118
-
19119
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
19120
- const localVarHeaderParameter = {} as any;
19121
- const localVarQueryParameter = {} as any;
19122
-
19123
- // authentication apiKey required
19124
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
19125
-
19126
-
19127
-
19128
- setSearchParams(localVarUrlObj, localVarQueryParameter);
19129
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19130
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19131
-
19132
- return {
19133
- url: toPathString(localVarUrlObj),
19134
- options: localVarRequestOptions,
19135
- };
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);
19136
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 {
19137
18638
  /**
19138
- * 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).
19139
- * @summary Retrieve GPU compliance
19140
- * @param {string} [gpu] This is for gpu model
19141
- * @param {*} [options] Override http request option.
19142
- * @throws {RequiredError}
19143
- */
19144
- getCompliance: async (gpu?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19145
- const localVarPath = `/core/compliance`;
19146
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
19147
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19148
- let baseOptions;
19149
- if (configuration) {
19150
- baseOptions = configuration.baseOptions;
19151
- }
19152
-
19153
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19154
- const localVarHeaderParameter = {} as any;
19155
- const localVarQueryParameter = {} as any;
19156
-
19157
- // authentication apiKey required
19158
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
19159
-
19160
- if (gpu !== undefined) {
19161
- localVarQueryParameter['gpu'] = gpu;
19162
- }
19163
-
19164
-
19165
-
19166
- setSearchParams(localVarUrlObj, localVarQueryParameter);
19167
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19168
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19169
-
19170
- return {
19171
- url: toPathString(localVarUrlObj),
19172
- options: localVarRequestOptions,
19173
- };
19174
- },
19175
- /**
19176
- *
19177
- * @summary Update a compliance
19178
- * @param {CompliancePayload} payload
19179
- * @param {*} [options] Override http request option.
19180
- * @throws {RequiredError}
19181
- */
19182
- updateCompliance: async (payload: CompliancePayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19183
- // verify required parameter 'payload' is not null or undefined
19184
- assertParamExists('updateCompliance', 'payload', payload)
19185
- const localVarPath = `/core/compliance`;
19186
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
19187
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19188
- let baseOptions;
19189
- if (configuration) {
19190
- baseOptions = configuration.baseOptions;
19191
- }
19192
-
19193
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
19194
- const localVarHeaderParameter = {} as any;
19195
- const localVarQueryParameter = {} as any;
19196
-
19197
- // authentication apiKey required
19198
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
19199
-
19200
-
19201
-
19202
- localVarHeaderParameter['Content-Type'] = 'application/json';
19203
-
19204
- setSearchParams(localVarUrlObj, localVarQueryParameter);
19205
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19206
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19207
- localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
19208
-
19209
- return {
19210
- url: toPathString(localVarUrlObj),
19211
- options: localVarRequestOptions,
19212
- };
19213
- },
19214
- }
19215
- };
19216
-
19217
- /**
19218
- * ComplianceApi - functional programming interface
19219
- * @export
19220
- */
19221
- export const ComplianceApiFp = function(configuration?: Configuration) {
19222
- const localVarAxiosParamCreator = ComplianceApiAxiosParamCreator(configuration)
19223
- return {
19224
- /**
19225
- *
19226
- * @summary Create compliance
19227
- * @param {CompliancePayload} payload
19228
- * @param {*} [options] Override http request option.
19229
- * @throws {RequiredError}
19230
- */
19231
- async createCompliance(payload: CompliancePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateUpdateComplianceResponse>> {
19232
- const localVarAxiosArgs = await localVarAxiosParamCreator.createCompliance(payload, options);
19233
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19234
- const localVarOperationServerBasePath = operationServerMap['ComplianceApi.createCompliance']?.[localVarOperationServerIndex]?.url;
19235
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19236
- },
19237
- /**
19238
- *
19239
- * @summary Delete a compliance
19240
- * @param {string} gpuModel
19241
- * @param {*} [options] Override http request option.
19242
- * @throws {RequiredError}
19243
- */
19244
- async deleteCompliance(gpuModel: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseModel>> {
19245
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCompliance(gpuModel, options);
19246
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19247
- const localVarOperationServerBasePath = operationServerMap['ComplianceApi.deleteCompliance']?.[localVarOperationServerIndex]?.url;
19248
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19249
- },
19250
- /**
19251
- * 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).
19252
- * @summary Retrieve GPU compliance
19253
- * @param {string} [gpu] This is for gpu model
19254
- * @param {*} [options] Override http request option.
19255
- * @throws {RequiredError}
19256
- */
19257
- async getCompliance(gpu?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ComplianceResponse>> {
19258
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCompliance(gpu, options);
19259
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19260
- const localVarOperationServerBasePath = operationServerMap['ComplianceApi.getCompliance']?.[localVarOperationServerIndex]?.url;
19261
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19262
- },
19263
- /**
19264
- *
19265
- * @summary Update a compliance
19266
- * @param {CompliancePayload} payload
19267
- * @param {*} [options] Override http request option.
19268
- * @throws {RequiredError}
19269
- */
19270
- async updateCompliance(payload: CompliancePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateUpdateComplianceResponse>> {
19271
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompliance(payload, options);
19272
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19273
- const localVarOperationServerBasePath = operationServerMap['ComplianceApi.updateCompliance']?.[localVarOperationServerIndex]?.url;
19274
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19275
- },
19276
- }
19277
- };
19278
-
19279
- /**
19280
- * ComplianceApi - factory interface
19281
- * @export
19282
- */
19283
- export const ComplianceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
19284
- const localVarFp = ComplianceApiFp(configuration)
19285
- return {
19286
- /**
19287
- *
19288
- * @summary Create compliance
19289
- * @param {CompliancePayload} payload
19290
- * @param {*} [options] Override http request option.
19291
- * @throws {RequiredError}
19292
- */
19293
- createCompliance(payload: CompliancePayload, options?: RawAxiosRequestConfig): AxiosPromise<CreateUpdateComplianceResponse> {
19294
- return localVarFp.createCompliance(payload, options).then((request) => request(axios, basePath));
19295
- },
19296
- /**
19297
- *
19298
- * @summary Delete a compliance
19299
- * @param {string} gpuModel
19300
- * @param {*} [options] Override http request option.
19301
- * @throws {RequiredError}
19302
- */
19303
- deleteCompliance(gpuModel: string, options?: RawAxiosRequestConfig): AxiosPromise<ResponseModel> {
19304
- return localVarFp.deleteCompliance(gpuModel, options).then((request) => request(axios, basePath));
19305
- },
19306
- /**
19307
- * 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).
19308
- * @summary Retrieve GPU compliance
19309
- * @param {string} [gpu] This is for gpu model
19310
- * @param {*} [options] Override http request option.
19311
- * @throws {RequiredError}
19312
- */
19313
- getCompliance(gpu?: string, options?: RawAxiosRequestConfig): AxiosPromise<ComplianceResponse> {
19314
- return localVarFp.getCompliance(gpu, options).then((request) => request(axios, basePath));
19315
- },
19316
- /**
19317
- *
19318
- * @summary Update a compliance
19319
- * @param {CompliancePayload} payload
19320
- * @param {*} [options] Override http request option.
19321
- * @throws {RequiredError}
19322
- */
19323
- updateCompliance(payload: CompliancePayload, options?: RawAxiosRequestConfig): AxiosPromise<CreateUpdateComplianceResponse> {
19324
- return localVarFp.updateCompliance(payload, options).then((request) => request(axios, basePath));
19325
- },
19326
- };
19327
- };
19328
-
19329
- /**
19330
- * ComplianceApi - object-oriented interface
19331
- * @export
19332
- * @class ComplianceApi
19333
- * @extends {BaseAPI}
19334
- */
19335
- export class ComplianceApi extends BaseAPI {
19336
- /**
19337
- *
19338
- * @summary Create compliance
19339
- * @param {CompliancePayload} payload
19340
- * @param {*} [options] Override http request option.
19341
- * @throws {RequiredError}
19342
- * @memberof ComplianceApi
19343
- */
19344
- public createCompliance(payload: CompliancePayload, options?: RawAxiosRequestConfig) {
19345
- return ComplianceApiFp(this.configuration).createCompliance(payload, options).then((request) => request(this.axios, this.basePath));
19346
- }
19347
-
19348
- /**
19349
- *
19350
- * @summary Delete a compliance
19351
- * @param {string} gpuModel
19352
- * @param {*} [options] Override http request option.
19353
- * @throws {RequiredError}
19354
- * @memberof ComplianceApi
19355
- */
19356
- public deleteCompliance(gpuModel: string, options?: RawAxiosRequestConfig) {
19357
- return ComplianceApiFp(this.configuration).deleteCompliance(gpuModel, options).then((request) => request(this.axios, this.basePath));
19358
- }
19359
-
19360
- /**
19361
- * 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).
19362
- * @summary Retrieve GPU compliance
19363
- * @param {string} [gpu] This is for gpu model
19364
- * @param {*} [options] Override http request option.
19365
- * @throws {RequiredError}
19366
- * @memberof ComplianceApi
19367
- */
19368
- public getCompliance(gpu?: string, options?: RawAxiosRequestConfig) {
19369
- return ComplianceApiFp(this.configuration).getCompliance(gpu, options).then((request) => request(this.axios, this.basePath));
19370
- }
19371
-
19372
- /**
19373
- *
19374
- * @summary Update a compliance
19375
- * @param {CompliancePayload} payload
19376
- * @param {*} [options] Override http request option.
19377
- * @throws {RequiredError}
19378
- * @memberof ComplianceApi
19379
- */
19380
- public updateCompliance(payload: CompliancePayload, options?: RawAxiosRequestConfig) {
19381
- return ComplianceApiFp(this.configuration).updateCompliance(payload, options).then((request) => request(this.axios, this.basePath));
19382
- }
19383
- }
19384
-
19385
-
19386
-
19387
- /**
19388
- * CreditApi - axios parameter creator
19389
- * @export
19390
- */
19391
- export const CreditApiAxiosParamCreator = function (configuration?: Configuration) {
19392
- return {
19393
- /**
19394
- * 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/).
19395
- * @summary GET: View credit and threshold
19396
- * @param {*} [options] Override http request option.
19397
- * @throws {RequiredError}
19398
- */
19399
- getUserCredit: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19400
- const localVarPath = `/billing/user-credit/credit`;
19401
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
19402
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19403
- let baseOptions;
19404
- if (configuration) {
19405
- baseOptions = configuration.baseOptions;
19406
- }
19407
-
19408
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19409
- const localVarHeaderParameter = {} as any;
19410
- const localVarQueryParameter = {} as any;
19411
-
19412
- // authentication apiKey required
19413
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
19414
-
19415
-
19416
-
19417
- setSearchParams(localVarUrlObj, localVarQueryParameter);
19418
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19419
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19420
-
19421
- return {
19422
- url: toPathString(localVarUrlObj),
19423
- options: localVarRequestOptions,
19424
- };
19425
- },
19426
- }
19427
- };
19428
-
19429
- /**
19430
- * CreditApi - functional programming interface
19431
- * @export
19432
- */
19433
- export const CreditApiFp = function(configuration?: Configuration) {
19434
- const localVarAxiosParamCreator = CreditApiAxiosParamCreator(configuration)
19435
- return {
19436
- /**
19437
- * 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/).
19438
- * @summary GET: View credit and threshold
19439
- * @param {*} [options] Override http request option.
19440
- * @throws {RequiredError}
19441
- */
19442
- async getUserCredit(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCreditAndThresholdInfoInResponse>> {
19443
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUserCredit(options);
19444
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19445
- const localVarOperationServerBasePath = operationServerMap['CreditApi.getUserCredit']?.[localVarOperationServerIndex]?.url;
19446
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19447
- },
19448
- }
19449
- };
19450
-
19451
- /**
19452
- * CreditApi - factory interface
19453
- * @export
19454
- */
19455
- export const CreditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
19456
- const localVarFp = CreditApiFp(configuration)
19457
- return {
19458
- /**
19459
- * 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/).
19460
- * @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
19461
18641
  * @param {*} [options] Override http request option.
19462
18642
  * @throws {RequiredError}
19463
18643
  */
@@ -19775,7 +18955,7 @@ export class CustomerContractApi extends BaseAPI {
19775
18955
  export const DashboardApiAxiosParamCreator = function (configuration?: Configuration) {
19776
18956
  return {
19777
18957
  /**
19778
- * 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/).
19779
18959
  * @summary Retrieve Dashboard
19780
18960
  * @param {*} [options] Override http request option.
19781
18961
  * @throws {RequiredError}
@@ -19818,7 +18998,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
19818
18998
  const localVarAxiosParamCreator = DashboardApiAxiosParamCreator(configuration)
19819
18999
  return {
19820
19000
  /**
19821
- * 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/).
19822
19002
  * @summary Retrieve Dashboard
19823
19003
  * @param {*} [options] Override http request option.
19824
19004
  * @throws {RequiredError}
@@ -19840,7 +19020,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
19840
19020
  const localVarFp = DashboardApiFp(configuration)
19841
19021
  return {
19842
19022
  /**
19843
- * 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/).
19844
19024
  * @summary Retrieve Dashboard
19845
19025
  * @param {*} [options] Override http request option.
19846
19026
  * @throws {RequiredError}
@@ -19859,7 +19039,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
19859
19039
  */
19860
19040
  export class DashboardApi extends BaseAPI {
19861
19041
  /**
19862
- * 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/).
19863
19043
  * @summary Retrieve Dashboard
19864
19044
  * @param {*} [options] Override http request option.
19865
19045
  * @throws {RequiredError}
@@ -19873,23 +19053,19 @@ export class DashboardApi extends BaseAPI {
19873
19053
 
19874
19054
 
19875
19055
  /**
19876
- * DeploymentApi - axios parameter creator
19056
+ * EmailOptInOutApi - axios parameter creator
19877
19057
  * @export
19878
19058
  */
19879
- export const DeploymentApiAxiosParamCreator = function (configuration?: Configuration) {
19059
+ export const EmailOptInOutApiAxiosParamCreator = function (configuration?: Configuration) {
19880
19060
  return {
19881
19061
  /**
19882
- *
19883
- * @summary Delete Deployment
19884
- * @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
19885
19064
  * @param {*} [options] Override http request option.
19886
19065
  * @throws {RequiredError}
19887
19066
  */
19888
- deleteDeployment: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19889
- // verify required parameter 'id' is not null or undefined
19890
- assertParamExists('deleteDeployment', 'id', id)
19891
- const localVarPath = `/core/marketplace/deployments/{id}`
19892
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
19067
+ getEmailPreferencesForAUser: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19068
+ const localVarPath = `/auth/email/opt-out`;
19893
19069
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19894
19070
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19895
19071
  let baseOptions;
@@ -19897,325 +19073,7 @@ export const DeploymentApiAxiosParamCreator = function (configuration?: Configur
19897
19073
  baseOptions = configuration.baseOptions;
19898
19074
  }
19899
19075
 
19900
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
19901
- const localVarHeaderParameter = {} as any;
19902
- const localVarQueryParameter = {} as any;
19903
-
19904
- // authentication apiKey required
19905
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
19906
-
19907
-
19908
-
19909
- setSearchParams(localVarUrlObj, localVarQueryParameter);
19910
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19911
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19912
-
19913
- return {
19914
- url: toPathString(localVarUrlObj),
19915
- options: localVarRequestOptions,
19916
- };
19917
- },
19918
- /**
19919
- *
19920
- * @summary Details of Deployment by ID
19921
- * @param {number} id
19922
- * @param {*} [options] Override http request option.
19923
- * @throws {RequiredError}
19924
- */
19925
- getDeployment: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19926
- // verify required parameter 'id' is not null or undefined
19927
- assertParamExists('getDeployment', 'id', id)
19928
- const localVarPath = `/core/marketplace/deployments/{id}`
19929
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
19930
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
19931
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19932
- let baseOptions;
19933
- if (configuration) {
19934
- baseOptions = configuration.baseOptions;
19935
- }
19936
-
19937
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19938
- const localVarHeaderParameter = {} as any;
19939
- const localVarQueryParameter = {} as any;
19940
-
19941
- // authentication apiKey required
19942
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
19943
-
19944
-
19945
-
19946
- setSearchParams(localVarUrlObj, localVarQueryParameter);
19947
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19948
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19949
-
19950
- return {
19951
- url: toPathString(localVarUrlObj),
19952
- options: localVarRequestOptions,
19953
- };
19954
- },
19955
- /**
19956
- *
19957
- * @summary List Deployments
19958
- * @param {*} [options] Override http request option.
19959
- * @throws {RequiredError}
19960
- */
19961
- listDeployments: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19962
- const localVarPath = `/core/marketplace/deployments`;
19963
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
19964
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19965
- let baseOptions;
19966
- if (configuration) {
19967
- baseOptions = configuration.baseOptions;
19968
- }
19969
-
19970
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19971
- const localVarHeaderParameter = {} as any;
19972
- const localVarQueryParameter = {} as any;
19973
-
19974
- // authentication apiKey required
19975
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
19976
-
19977
-
19978
-
19979
- setSearchParams(localVarUrlObj, localVarQueryParameter);
19980
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19981
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19982
-
19983
- return {
19984
- url: toPathString(localVarUrlObj),
19985
- options: localVarRequestOptions,
19986
- };
19987
- },
19988
- /**
19989
- *
19990
- * @summary Start Deployment
19991
- * @param {StartDeploymentPayload} payload
19992
- * @param {*} [options] Override http request option.
19993
- * @throws {RequiredError}
19994
- */
19995
- startDeployment: async (payload: StartDeploymentPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19996
- // verify required parameter 'payload' is not null or undefined
19997
- assertParamExists('startDeployment', 'payload', payload)
19998
- const localVarPath = `/core/marketplace/deployments`;
19999
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
20000
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20001
- let baseOptions;
20002
- if (configuration) {
20003
- baseOptions = configuration.baseOptions;
20004
- }
20005
-
20006
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
20007
- const localVarHeaderParameter = {} as any;
20008
- const localVarQueryParameter = {} as any;
20009
-
20010
- // authentication apiKey required
20011
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
20012
-
20013
-
20014
-
20015
- localVarHeaderParameter['Content-Type'] = 'application/json';
20016
-
20017
- setSearchParams(localVarUrlObj, localVarQueryParameter);
20018
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20019
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20020
- localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
20021
-
20022
- return {
20023
- url: toPathString(localVarUrlObj),
20024
- options: localVarRequestOptions,
20025
- };
20026
- },
20027
- }
20028
- };
20029
-
20030
- /**
20031
- * DeploymentApi - functional programming interface
20032
- * @export
20033
- */
20034
- export const DeploymentApiFp = function(configuration?: Configuration) {
20035
- const localVarAxiosParamCreator = DeploymentApiAxiosParamCreator(configuration)
20036
- return {
20037
- /**
20038
- *
20039
- * @summary Delete Deployment
20040
- * @param {number} id
20041
- * @param {*} [options] Override http request option.
20042
- * @throws {RequiredError}
20043
- */
20044
- async deleteDeployment(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseModel>> {
20045
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeployment(id, options);
20046
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20047
- const localVarOperationServerBasePath = operationServerMap['DeploymentApi.deleteDeployment']?.[localVarOperationServerIndex]?.url;
20048
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20049
- },
20050
- /**
20051
- *
20052
- * @summary Details of Deployment by ID
20053
- * @param {number} id
20054
- * @param {*} [options] Override http request option.
20055
- * @throws {RequiredError}
20056
- */
20057
- async getDeployment(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StartDeployment>> {
20058
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDeployment(id, options);
20059
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20060
- const localVarOperationServerBasePath = operationServerMap['DeploymentApi.getDeployment']?.[localVarOperationServerIndex]?.url;
20061
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20062
- },
20063
- /**
20064
- *
20065
- * @summary List Deployments
20066
- * @param {*} [options] Override http request option.
20067
- * @throws {RequiredError}
20068
- */
20069
- async listDeployments(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Deployments>> {
20070
- const localVarAxiosArgs = await localVarAxiosParamCreator.listDeployments(options);
20071
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20072
- const localVarOperationServerBasePath = operationServerMap['DeploymentApi.listDeployments']?.[localVarOperationServerIndex]?.url;
20073
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20074
- },
20075
- /**
20076
- *
20077
- * @summary Start Deployment
20078
- * @param {StartDeploymentPayload} payload
20079
- * @param {*} [options] Override http request option.
20080
- * @throws {RequiredError}
20081
- */
20082
- async startDeployment(payload: StartDeploymentPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StartDeployment>> {
20083
- const localVarAxiosArgs = await localVarAxiosParamCreator.startDeployment(payload, options);
20084
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20085
- const localVarOperationServerBasePath = operationServerMap['DeploymentApi.startDeployment']?.[localVarOperationServerIndex]?.url;
20086
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20087
- },
20088
- }
20089
- };
20090
-
20091
- /**
20092
- * DeploymentApi - factory interface
20093
- * @export
20094
- */
20095
- export const DeploymentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
20096
- const localVarFp = DeploymentApiFp(configuration)
20097
- return {
20098
- /**
20099
- *
20100
- * @summary Delete Deployment
20101
- * @param {number} id
20102
- * @param {*} [options] Override http request option.
20103
- * @throws {RequiredError}
20104
- */
20105
- deleteDeployment(id: number, options?: RawAxiosRequestConfig): AxiosPromise<ResponseModel> {
20106
- return localVarFp.deleteDeployment(id, options).then((request) => request(axios, basePath));
20107
- },
20108
- /**
20109
- *
20110
- * @summary Details of Deployment by ID
20111
- * @param {number} id
20112
- * @param {*} [options] Override http request option.
20113
- * @throws {RequiredError}
20114
- */
20115
- getDeployment(id: number, options?: RawAxiosRequestConfig): AxiosPromise<StartDeployment> {
20116
- return localVarFp.getDeployment(id, options).then((request) => request(axios, basePath));
20117
- },
20118
- /**
20119
- *
20120
- * @summary List Deployments
20121
- * @param {*} [options] Override http request option.
20122
- * @throws {RequiredError}
20123
- */
20124
- listDeployments(options?: RawAxiosRequestConfig): AxiosPromise<Deployments> {
20125
- return localVarFp.listDeployments(options).then((request) => request(axios, basePath));
20126
- },
20127
- /**
20128
- *
20129
- * @summary Start Deployment
20130
- * @param {StartDeploymentPayload} payload
20131
- * @param {*} [options] Override http request option.
20132
- * @throws {RequiredError}
20133
- */
20134
- startDeployment(payload: StartDeploymentPayload, options?: RawAxiosRequestConfig): AxiosPromise<StartDeployment> {
20135
- return localVarFp.startDeployment(payload, options).then((request) => request(axios, basePath));
20136
- },
20137
- };
20138
- };
20139
-
20140
- /**
20141
- * DeploymentApi - object-oriented interface
20142
- * @export
20143
- * @class DeploymentApi
20144
- * @extends {BaseAPI}
20145
- */
20146
- export class DeploymentApi extends BaseAPI {
20147
- /**
20148
- *
20149
- * @summary Delete Deployment
20150
- * @param {number} id
20151
- * @param {*} [options] Override http request option.
20152
- * @throws {RequiredError}
20153
- * @memberof DeploymentApi
20154
- */
20155
- public deleteDeployment(id: number, options?: RawAxiosRequestConfig) {
20156
- return DeploymentApiFp(this.configuration).deleteDeployment(id, options).then((request) => request(this.axios, this.basePath));
20157
- }
20158
-
20159
- /**
20160
- *
20161
- * @summary Details of Deployment by ID
20162
- * @param {number} id
20163
- * @param {*} [options] Override http request option.
20164
- * @throws {RequiredError}
20165
- * @memberof DeploymentApi
20166
- */
20167
- public getDeployment(id: number, options?: RawAxiosRequestConfig) {
20168
- return DeploymentApiFp(this.configuration).getDeployment(id, options).then((request) => request(this.axios, this.basePath));
20169
- }
20170
-
20171
- /**
20172
- *
20173
- * @summary List Deployments
20174
- * @param {*} [options] Override http request option.
20175
- * @throws {RequiredError}
20176
- * @memberof DeploymentApi
20177
- */
20178
- public listDeployments(options?: RawAxiosRequestConfig) {
20179
- return DeploymentApiFp(this.configuration).listDeployments(options).then((request) => request(this.axios, this.basePath));
20180
- }
20181
-
20182
- /**
20183
- *
20184
- * @summary Start Deployment
20185
- * @param {StartDeploymentPayload} payload
20186
- * @param {*} [options] Override http request option.
20187
- * @throws {RequiredError}
20188
- * @memberof DeploymentApi
20189
- */
20190
- public startDeployment(payload: StartDeploymentPayload, options?: RawAxiosRequestConfig) {
20191
- return DeploymentApiFp(this.configuration).startDeployment(payload, options).then((request) => request(this.axios, this.basePath));
20192
- }
20193
- }
20194
-
20195
-
20196
-
20197
- /**
20198
- * EmailOptInOutApi - axios parameter creator
20199
- * @export
20200
- */
20201
- export const EmailOptInOutApiAxiosParamCreator = function (configuration?: Configuration) {
20202
- return {
20203
- /**
20204
- * Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
20205
- * @summary Get all email preferences for the authenticated user
20206
- * @param {*} [options] Override http request option.
20207
- * @throws {RequiredError}
20208
- */
20209
- getEmailPreferencesForAUser: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20210
- const localVarPath = `/auth/email/opt-out`;
20211
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
20212
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20213
- let baseOptions;
20214
- if (configuration) {
20215
- baseOptions = configuration.baseOptions;
20216
- }
20217
-
20218
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19076
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20219
19077
  const localVarHeaderParameter = {} as any;
20220
19078
  const localVarQueryParameter = {} as any;
20221
19079
 
@@ -26119,452 +24977,6 @@ export class StockApi extends BaseAPI {
26119
24977
 
26120
24978
 
26121
24979
 
26122
- /**
26123
- * TemplateApi - axios parameter creator
26124
- * @export
26125
- */
26126
- export const TemplateApiAxiosParamCreator = function (configuration?: Configuration) {
26127
- return {
26128
- /**
26129
- * Creates a resource template for deployment.
26130
- * @summary Create template
26131
- * @param {File} content YAML file is required
26132
- * @param {string} description description is required
26133
- * @param {string} isPublic is_public is required
26134
- * @param {string} name name is required
26135
- * @param {*} [options] Override http request option.
26136
- * @throws {RequiredError}
26137
- */
26138
- createTemplate: async (content: File, description: string, isPublic: string, name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26139
- // verify required parameter 'content' is not null or undefined
26140
- assertParamExists('createTemplate', 'content', content)
26141
- // verify required parameter 'description' is not null or undefined
26142
- assertParamExists('createTemplate', 'description', description)
26143
- // verify required parameter 'isPublic' is not null or undefined
26144
- assertParamExists('createTemplate', 'isPublic', isPublic)
26145
- // verify required parameter 'name' is not null or undefined
26146
- assertParamExists('createTemplate', 'name', name)
26147
- const localVarPath = `/core/marketplace/templates`;
26148
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
26149
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26150
- let baseOptions;
26151
- if (configuration) {
26152
- baseOptions = configuration.baseOptions;
26153
- }
26154
-
26155
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
26156
- const localVarHeaderParameter = {} as any;
26157
- const localVarQueryParameter = {} as any;
26158
- const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
26159
-
26160
- // authentication apiKey required
26161
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
26162
-
26163
-
26164
- if (content !== undefined) {
26165
- localVarFormParams.append('content', content as any);
26166
- }
26167
-
26168
- if (description !== undefined) {
26169
- localVarFormParams.append('description', description as any);
26170
- }
26171
-
26172
- if (isPublic !== undefined) {
26173
- localVarFormParams.append('is_public', isPublic as any);
26174
- }
26175
-
26176
- if (name !== undefined) {
26177
- localVarFormParams.append('name', name as any);
26178
- }
26179
-
26180
-
26181
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
26182
-
26183
- setSearchParams(localVarUrlObj, localVarQueryParameter);
26184
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26185
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26186
- localVarRequestOptions.data = localVarFormParams;
26187
-
26188
- return {
26189
- url: toPathString(localVarUrlObj),
26190
- options: localVarRequestOptions,
26191
- };
26192
- },
26193
- /**
26194
- * Permanently deletes a template. Supply the template ID in the path to delete the specified template.
26195
- * @summary Delete template
26196
- * @param {number} id
26197
- * @param {*} [options] Override http request option.
26198
- * @throws {RequiredError}
26199
- */
26200
- deleteTemplate: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26201
- // verify required parameter 'id' is not null or undefined
26202
- assertParamExists('deleteTemplate', 'id', id)
26203
- const localVarPath = `/core/marketplace/templates/{id}`
26204
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
26205
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
26206
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26207
- let baseOptions;
26208
- if (configuration) {
26209
- baseOptions = configuration.baseOptions;
26210
- }
26211
-
26212
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
26213
- const localVarHeaderParameter = {} as any;
26214
- const localVarQueryParameter = {} as any;
26215
-
26216
- // authentication apiKey required
26217
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
26218
-
26219
-
26220
-
26221
- setSearchParams(localVarUrlObj, localVarQueryParameter);
26222
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26223
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26224
-
26225
- return {
26226
- url: toPathString(localVarUrlObj),
26227
- options: localVarRequestOptions,
26228
- };
26229
- },
26230
- /**
26231
- * 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/).
26232
- * @summary Retrieve template details
26233
- * @param {number} id
26234
- * @param {*} [options] Override http request option.
26235
- * @throws {RequiredError}
26236
- */
26237
- getTemplate: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26238
- // verify required parameter 'id' is not null or undefined
26239
- assertParamExists('getTemplate', 'id', id)
26240
- const localVarPath = `/core/marketplace/templates/{id}`
26241
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
26242
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
26243
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26244
- let baseOptions;
26245
- if (configuration) {
26246
- baseOptions = configuration.baseOptions;
26247
- }
26248
-
26249
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26250
- const localVarHeaderParameter = {} as any;
26251
- const localVarQueryParameter = {} as any;
26252
-
26253
- // authentication apiKey required
26254
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
26255
-
26256
-
26257
-
26258
- setSearchParams(localVarUrlObj, localVarQueryParameter);
26259
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26260
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26261
-
26262
- return {
26263
- url: toPathString(localVarUrlObj),
26264
- options: localVarRequestOptions,
26265
- };
26266
- },
26267
- /**
26268
- * 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).
26269
- * @summary List templates
26270
- * @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.
26271
- * @param {*} [options] Override http request option.
26272
- * @throws {RequiredError}
26273
- */
26274
- listTemplates: async (visibility?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26275
- const localVarPath = `/core/marketplace/templates`;
26276
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
26277
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26278
- let baseOptions;
26279
- if (configuration) {
26280
- baseOptions = configuration.baseOptions;
26281
- }
26282
-
26283
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26284
- const localVarHeaderParameter = {} as any;
26285
- const localVarQueryParameter = {} as any;
26286
-
26287
- // authentication apiKey required
26288
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
26289
-
26290
- if (visibility !== undefined) {
26291
- localVarQueryParameter['visibility'] = visibility;
26292
- }
26293
-
26294
-
26295
-
26296
- setSearchParams(localVarUrlObj, localVarQueryParameter);
26297
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26298
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26299
-
26300
- return {
26301
- url: toPathString(localVarUrlObj),
26302
- options: localVarRequestOptions,
26303
- };
26304
- },
26305
- /**
26306
- * 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.
26307
- * @summary Update template
26308
- * @param {number} id
26309
- * @param {UpdateTemplate} payload
26310
- * @param {*} [options] Override http request option.
26311
- * @throws {RequiredError}
26312
- */
26313
- updateTemplate: async (id: number, payload: UpdateTemplate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26314
- // verify required parameter 'id' is not null or undefined
26315
- assertParamExists('updateTemplate', 'id', id)
26316
- // verify required parameter 'payload' is not null or undefined
26317
- assertParamExists('updateTemplate', 'payload', payload)
26318
- const localVarPath = `/core/marketplace/templates/{id}`
26319
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
26320
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
26321
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26322
- let baseOptions;
26323
- if (configuration) {
26324
- baseOptions = configuration.baseOptions;
26325
- }
26326
-
26327
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
26328
- const localVarHeaderParameter = {} as any;
26329
- const localVarQueryParameter = {} as any;
26330
-
26331
- // authentication apiKey required
26332
- await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
26333
-
26334
-
26335
-
26336
- localVarHeaderParameter['Content-Type'] = 'application/json';
26337
-
26338
- setSearchParams(localVarUrlObj, localVarQueryParameter);
26339
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26340
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26341
- localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
26342
-
26343
- return {
26344
- url: toPathString(localVarUrlObj),
26345
- options: localVarRequestOptions,
26346
- };
26347
- },
26348
- }
26349
- };
26350
-
26351
- /**
26352
- * TemplateApi - functional programming interface
26353
- * @export
26354
- */
26355
- export const TemplateApiFp = function(configuration?: Configuration) {
26356
- const localVarAxiosParamCreator = TemplateApiAxiosParamCreator(configuration)
26357
- return {
26358
- /**
26359
- * Creates a resource template for deployment.
26360
- * @summary Create template
26361
- * @param {File} content YAML file is required
26362
- * @param {string} description description is required
26363
- * @param {string} isPublic is_public is required
26364
- * @param {string} name name is required
26365
- * @param {*} [options] Override http request option.
26366
- * @throws {RequiredError}
26367
- */
26368
- async createTemplate(content: File, description: string, isPublic: string, name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Template>> {
26369
- const localVarAxiosArgs = await localVarAxiosParamCreator.createTemplate(content, description, isPublic, name, options);
26370
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26371
- const localVarOperationServerBasePath = operationServerMap['TemplateApi.createTemplate']?.[localVarOperationServerIndex]?.url;
26372
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26373
- },
26374
- /**
26375
- * Permanently deletes a template. Supply the template ID in the path to delete the specified template.
26376
- * @summary Delete template
26377
- * @param {number} id
26378
- * @param {*} [options] Override http request option.
26379
- * @throws {RequiredError}
26380
- */
26381
- async deleteTemplate(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseModel>> {
26382
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTemplate(id, options);
26383
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26384
- const localVarOperationServerBasePath = operationServerMap['TemplateApi.deleteTemplate']?.[localVarOperationServerIndex]?.url;
26385
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26386
- },
26387
- /**
26388
- * 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/).
26389
- * @summary Retrieve template details
26390
- * @param {number} id
26391
- * @param {*} [options] Override http request option.
26392
- * @throws {RequiredError}
26393
- */
26394
- async getTemplate(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Template>> {
26395
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplate(id, options);
26396
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26397
- const localVarOperationServerBasePath = operationServerMap['TemplateApi.getTemplate']?.[localVarOperationServerIndex]?.url;
26398
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26399
- },
26400
- /**
26401
- * 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).
26402
- * @summary List templates
26403
- * @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.
26404
- * @param {*} [options] Override http request option.
26405
- * @throws {RequiredError}
26406
- */
26407
- async listTemplates(visibility?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Templates>> {
26408
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTemplates(visibility, options);
26409
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26410
- const localVarOperationServerBasePath = operationServerMap['TemplateApi.listTemplates']?.[localVarOperationServerIndex]?.url;
26411
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26412
- },
26413
- /**
26414
- * 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.
26415
- * @summary Update template
26416
- * @param {number} id
26417
- * @param {UpdateTemplate} payload
26418
- * @param {*} [options] Override http request option.
26419
- * @throws {RequiredError}
26420
- */
26421
- async updateTemplate(id: number, payload: UpdateTemplate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Template>> {
26422
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateTemplate(id, payload, options);
26423
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26424
- const localVarOperationServerBasePath = operationServerMap['TemplateApi.updateTemplate']?.[localVarOperationServerIndex]?.url;
26425
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26426
- },
26427
- }
26428
- };
26429
-
26430
- /**
26431
- * TemplateApi - factory interface
26432
- * @export
26433
- */
26434
- export const TemplateApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
26435
- const localVarFp = TemplateApiFp(configuration)
26436
- return {
26437
- /**
26438
- * Creates a resource template for deployment.
26439
- * @summary Create template
26440
- * @param {File} content YAML file is required
26441
- * @param {string} description description is required
26442
- * @param {string} isPublic is_public is required
26443
- * @param {string} name name is required
26444
- * @param {*} [options] Override http request option.
26445
- * @throws {RequiredError}
26446
- */
26447
- createTemplate(content: File, description: string, isPublic: string, name: string, options?: RawAxiosRequestConfig): AxiosPromise<Template> {
26448
- return localVarFp.createTemplate(content, description, isPublic, name, options).then((request) => request(axios, basePath));
26449
- },
26450
- /**
26451
- * Permanently deletes a template. Supply the template ID in the path to delete the specified template.
26452
- * @summary Delete template
26453
- * @param {number} id
26454
- * @param {*} [options] Override http request option.
26455
- * @throws {RequiredError}
26456
- */
26457
- deleteTemplate(id: number, options?: RawAxiosRequestConfig): AxiosPromise<ResponseModel> {
26458
- return localVarFp.deleteTemplate(id, options).then((request) => request(axios, basePath));
26459
- },
26460
- /**
26461
- * 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/).
26462
- * @summary Retrieve template details
26463
- * @param {number} id
26464
- * @param {*} [options] Override http request option.
26465
- * @throws {RequiredError}
26466
- */
26467
- getTemplate(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Template> {
26468
- return localVarFp.getTemplate(id, options).then((request) => request(axios, basePath));
26469
- },
26470
- /**
26471
- * 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).
26472
- * @summary List templates
26473
- * @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.
26474
- * @param {*} [options] Override http request option.
26475
- * @throws {RequiredError}
26476
- */
26477
- listTemplates(visibility?: string, options?: RawAxiosRequestConfig): AxiosPromise<Templates> {
26478
- return localVarFp.listTemplates(visibility, options).then((request) => request(axios, basePath));
26479
- },
26480
- /**
26481
- * 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.
26482
- * @summary Update template
26483
- * @param {number} id
26484
- * @param {UpdateTemplate} payload
26485
- * @param {*} [options] Override http request option.
26486
- * @throws {RequiredError}
26487
- */
26488
- updateTemplate(id: number, payload: UpdateTemplate, options?: RawAxiosRequestConfig): AxiosPromise<Template> {
26489
- return localVarFp.updateTemplate(id, payload, options).then((request) => request(axios, basePath));
26490
- },
26491
- };
26492
- };
26493
-
26494
- /**
26495
- * TemplateApi - object-oriented interface
26496
- * @export
26497
- * @class TemplateApi
26498
- * @extends {BaseAPI}
26499
- */
26500
- export class TemplateApi extends BaseAPI {
26501
- /**
26502
- * Creates a resource template for deployment.
26503
- * @summary Create template
26504
- * @param {File} content YAML file is required
26505
- * @param {string} description description is required
26506
- * @param {string} isPublic is_public is required
26507
- * @param {string} name name is required
26508
- * @param {*} [options] Override http request option.
26509
- * @throws {RequiredError}
26510
- * @memberof TemplateApi
26511
- */
26512
- public createTemplate(content: File, description: string, isPublic: string, name: string, options?: RawAxiosRequestConfig) {
26513
- return TemplateApiFp(this.configuration).createTemplate(content, description, isPublic, name, options).then((request) => request(this.axios, this.basePath));
26514
- }
26515
-
26516
- /**
26517
- * Permanently deletes a template. Supply the template ID in the path to delete the specified template.
26518
- * @summary Delete template
26519
- * @param {number} id
26520
- * @param {*} [options] Override http request option.
26521
- * @throws {RequiredError}
26522
- * @memberof TemplateApi
26523
- */
26524
- public deleteTemplate(id: number, options?: RawAxiosRequestConfig) {
26525
- return TemplateApiFp(this.configuration).deleteTemplate(id, options).then((request) => request(this.axios, this.basePath));
26526
- }
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
- * @memberof TemplateApi
26535
- */
26536
- public getTemplate(id: number, options?: RawAxiosRequestConfig) {
26537
- return TemplateApiFp(this.configuration).getTemplate(id, options).then((request) => request(this.axios, this.basePath));
26538
- }
26539
-
26540
- /**
26541
- * 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).
26542
- * @summary List templates
26543
- * @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.
26544
- * @param {*} [options] Override http request option.
26545
- * @throws {RequiredError}
26546
- * @memberof TemplateApi
26547
- */
26548
- public listTemplates(visibility?: string, options?: RawAxiosRequestConfig) {
26549
- return TemplateApiFp(this.configuration).listTemplates(visibility, options).then((request) => request(this.axios, this.basePath));
26550
- }
26551
-
26552
- /**
26553
- * 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.
26554
- * @summary Update template
26555
- * @param {number} id
26556
- * @param {UpdateTemplate} payload
26557
- * @param {*} [options] Override http request option.
26558
- * @throws {RequiredError}
26559
- * @memberof TemplateApi
26560
- */
26561
- public updateTemplate(id: number, payload: UpdateTemplate, options?: RawAxiosRequestConfig) {
26562
- return TemplateApiFp(this.configuration).updateTemplate(id, payload, options).then((request) => request(this.axios, this.basePath));
26563
- }
26564
- }
26565
-
26566
-
26567
-
26568
24980
  /**
26569
24981
  * UserApi - axios parameter creator
26570
24982
  * @export