@nexgencloud/hyperstack-sdk-typescript 1.55.10-alpha → 1.56.1-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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @nexgencloud/hyperstack-sdk-typescript@v1.55.10-alpha
1
+ ## @nexgencloud/hyperstack-sdk-typescript@v1.56.1-alpha
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @nexgencloud/hyperstack-sdk-typescript@v1.55.10-alpha --save
39
+ npm install @nexgencloud/hyperstack-sdk-typescript@v1.56.1-alpha --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -1124,6 +1124,12 @@ export interface ClusterFields {
1124
1124
  * @memberof ClusterFields
1125
1125
  */
1126
1126
  'environment_name'?: string;
1127
+ /**
1128
+ *
1129
+ * @type {boolean}
1130
+ * @memberof ClusterFields
1131
+ */
1132
+ 'has_persistent_storage'?: boolean;
1127
1133
  /**
1128
1134
  *
1129
1135
  * @type {number}
@@ -1640,6 +1646,56 @@ export interface ClusterResponse {
1640
1646
  */
1641
1647
  'status'?: boolean;
1642
1648
  }
1649
+ /**
1650
+ *
1651
+ * @export
1652
+ * @interface ClusterRestoreFailedNode
1653
+ */
1654
+ export interface ClusterRestoreFailedNode {
1655
+ /**
1656
+ *
1657
+ * @type {string}
1658
+ * @memberof ClusterRestoreFailedNode
1659
+ */
1660
+ 'error'?: string;
1661
+ /**
1662
+ *
1663
+ * @type {number}
1664
+ * @memberof ClusterRestoreFailedNode
1665
+ */
1666
+ 'id'?: number;
1667
+ }
1668
+ /**
1669
+ *
1670
+ * @export
1671
+ * @interface ClusterRestoreResponse
1672
+ */
1673
+ export interface ClusterRestoreResponse {
1674
+ /**
1675
+ *
1676
+ * @type {Array<ClusterRestoreFailedNode>}
1677
+ * @memberof ClusterRestoreResponse
1678
+ */
1679
+ 'failed_nodes'?: Array<ClusterRestoreFailedNode>;
1680
+ /**
1681
+ *
1682
+ * @type {string}
1683
+ * @memberof ClusterRestoreResponse
1684
+ */
1685
+ 'message'?: string;
1686
+ /**
1687
+ *
1688
+ * @type {Array<number>}
1689
+ * @memberof ClusterRestoreResponse
1690
+ */
1691
+ 'restoring_nodes'?: Array<number>;
1692
+ /**
1693
+ *
1694
+ * @type {boolean}
1695
+ * @memberof ClusterRestoreResponse
1696
+ */
1697
+ 'status'?: boolean;
1698
+ }
1643
1699
  /**
1644
1700
  *
1645
1701
  * @export
@@ -6073,6 +6129,19 @@ export interface ObjectStorageAccessKeyResponse {
6073
6129
  }
6074
6130
 
6075
6131
 
6132
+ /**
6133
+ *
6134
+ * @export
6135
+ * @interface ObjectStorageAccessKeyUpdateRequest
6136
+ */
6137
+ export interface ObjectStorageAccessKeyUpdateRequest {
6138
+ /**
6139
+ *
6140
+ * @type {string}
6141
+ * @memberof ObjectStorageAccessKeyUpdateRequest
6142
+ */
6143
+ 'description': string;
6144
+ }
6076
6145
  /**
6077
6146
  *
6078
6147
  * @export
@@ -10679,6 +10748,31 @@ export interface WorkloadBillingHistoryResponse {
10679
10748
  */
10680
10749
  'success'?: boolean;
10681
10750
  }
10751
+ /**
10752
+ *
10753
+ * @export
10754
+ * @interface ZendeskMessagingToken
10755
+ */
10756
+ export interface ZendeskMessagingToken {
10757
+ /**
10758
+ *
10759
+ * @type {string}
10760
+ * @memberof ZendeskMessagingToken
10761
+ */
10762
+ 'message'?: string;
10763
+ /**
10764
+ *
10765
+ * @type {boolean}
10766
+ * @memberof ZendeskMessagingToken
10767
+ */
10768
+ 'status'?: boolean;
10769
+ /**
10770
+ * Signed HS256 JWT to pass to the Zendesk Web Widget loginUser API
10771
+ * @type {string}
10772
+ * @memberof ZendeskMessagingToken
10773
+ */
10774
+ 'token'?: string;
10775
+ }
10682
10776
 
10683
10777
  /**
10684
10778
  * AccessKeysApi - axios parameter creator
@@ -10803,6 +10897,47 @@ export const AccessKeysApiAxiosParamCreator = function (configuration?: Configur
10803
10897
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10804
10898
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10805
10899
 
10900
+ return {
10901
+ url: toPathString(localVarUrlObj),
10902
+ options: localVarRequestOptions,
10903
+ };
10904
+ },
10905
+ /**
10906
+ *
10907
+ * @summary Rename an existing access key
10908
+ * @param {string} accessKeyId
10909
+ * @param {ObjectStorageAccessKeyUpdateRequest} [body]
10910
+ * @param {*} [options] Override http request option.
10911
+ * @throws {RequiredError}
10912
+ */
10913
+ updateAccessKeyEndpoint: async (accessKeyId: string, body?: ObjectStorageAccessKeyUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10914
+ // verify required parameter 'accessKeyId' is not null or undefined
10915
+ assertParamExists('updateAccessKeyEndpoint', 'accessKeyId', accessKeyId)
10916
+ const localVarPath = `/object-storage/access-keys/{access_key_id}`
10917
+ .replace(`{${"access_key_id"}}`, encodeURIComponent(String(accessKeyId)));
10918
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10919
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10920
+ let baseOptions;
10921
+ if (configuration) {
10922
+ baseOptions = configuration.baseOptions;
10923
+ }
10924
+
10925
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
10926
+ const localVarHeaderParameter = {} as any;
10927
+ const localVarQueryParameter = {} as any;
10928
+
10929
+ // authentication apiKey required
10930
+ await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
10931
+
10932
+
10933
+
10934
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10935
+
10936
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10937
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10938
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10939
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
10940
+
10806
10941
  return {
10807
10942
  url: toPathString(localVarUrlObj),
10808
10943
  options: localVarRequestOptions,
@@ -10859,6 +10994,20 @@ export const AccessKeysApiFp = function(configuration?: Configuration) {
10859
10994
  const localVarOperationServerBasePath = operationServerMap['AccessKeysApi.listAccessKeysEndpoint']?.[localVarOperationServerIndex]?.url;
10860
10995
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10861
10996
  },
10997
+ /**
10998
+ *
10999
+ * @summary Rename an existing access key
11000
+ * @param {string} accessKeyId
11001
+ * @param {ObjectStorageAccessKeyUpdateRequest} [body]
11002
+ * @param {*} [options] Override http request option.
11003
+ * @throws {RequiredError}
11004
+ */
11005
+ async updateAccessKeyEndpoint(accessKeyId: string, body?: ObjectStorageAccessKeyUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectStorageAccessKeyResponse>> {
11006
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateAccessKeyEndpoint(accessKeyId, body, options);
11007
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11008
+ const localVarOperationServerBasePath = operationServerMap['AccessKeysApi.updateAccessKeyEndpoint']?.[localVarOperationServerIndex]?.url;
11009
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11010
+ },
10862
11011
  }
10863
11012
  };
10864
11013
 
@@ -10901,6 +11050,17 @@ export const AccessKeysApiFactory = function (configuration?: Configuration, bas
10901
11050
  listAccessKeysEndpoint(search?: string, page?: string, pageSize?: string, options?: RawAxiosRequestConfig): AxiosPromise<ObjectStorageAccessKeyListResponse> {
10902
11051
  return localVarFp.listAccessKeysEndpoint(search, page, pageSize, options).then((request) => request(axios, basePath));
10903
11052
  },
11053
+ /**
11054
+ *
11055
+ * @summary Rename an existing access key
11056
+ * @param {string} accessKeyId
11057
+ * @param {ObjectStorageAccessKeyUpdateRequest} [body]
11058
+ * @param {*} [options] Override http request option.
11059
+ * @throws {RequiredError}
11060
+ */
11061
+ updateAccessKeyEndpoint(accessKeyId: string, body?: ObjectStorageAccessKeyUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectStorageAccessKeyResponse> {
11062
+ return localVarFp.updateAccessKeyEndpoint(accessKeyId, body, options).then((request) => request(axios, basePath));
11063
+ },
10904
11064
  };
10905
11065
  };
10906
11066
 
@@ -10948,6 +11108,19 @@ export class AccessKeysApi extends BaseAPI {
10948
11108
  public listAccessKeysEndpoint(search?: string, page?: string, pageSize?: string, options?: RawAxiosRequestConfig) {
10949
11109
  return AccessKeysApiFp(this.configuration).listAccessKeysEndpoint(search, page, pageSize, options).then((request) => request(this.axios, this.basePath));
10950
11110
  }
11111
+
11112
+ /**
11113
+ *
11114
+ * @summary Rename an existing access key
11115
+ * @param {string} accessKeyId
11116
+ * @param {ObjectStorageAccessKeyUpdateRequest} [body]
11117
+ * @param {*} [options] Override http request option.
11118
+ * @throws {RequiredError}
11119
+ * @memberof AccessKeysApi
11120
+ */
11121
+ public updateAccessKeyEndpoint(accessKeyId: string, body?: ObjectStorageAccessKeyUpdateRequest, options?: RawAxiosRequestConfig) {
11122
+ return AccessKeysApiFp(this.configuration).updateAccessKeyEndpoint(accessKeyId, body, options).then((request) => request(this.axios, this.basePath));
11123
+ }
10951
11124
  }
10952
11125
 
10953
11126
 
@@ -17875,6 +18048,43 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
17875
18048
 
17876
18049
 
17877
18050
 
18051
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18052
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18053
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18054
+
18055
+ return {
18056
+ url: toPathString(localVarUrlObj),
18057
+ options: localVarRequestOptions,
18058
+ };
18059
+ },
18060
+ /**
18061
+ *
18062
+ * @summary Restore a hibernated cluster\'s nodes and reconcile the cluster
18063
+ * @param {number} clusterId
18064
+ * @param {*} [options] Override http request option.
18065
+ * @throws {RequiredError}
18066
+ */
18067
+ restoreAHibernatedCluster: async (clusterId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18068
+ // verify required parameter 'clusterId' is not null or undefined
18069
+ assertParamExists('restoreAHibernatedCluster', 'clusterId', clusterId)
18070
+ const localVarPath = `/core/clusters/{cluster_id}/restore`
18071
+ .replace(`{${"cluster_id"}}`, encodeURIComponent(String(clusterId)));
18072
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18073
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18074
+ let baseOptions;
18075
+ if (configuration) {
18076
+ baseOptions = configuration.baseOptions;
18077
+ }
18078
+
18079
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18080
+ const localVarHeaderParameter = {} as any;
18081
+ const localVarQueryParameter = {} as any;
18082
+
18083
+ // authentication apiKey required
18084
+ await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
18085
+
18086
+
18087
+
17878
18088
  setSearchParams(localVarUrlObj, localVarQueryParameter);
17879
18089
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17880
18090
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -18157,6 +18367,19 @@ export const ClustersApiFp = function(configuration?: Configuration) {
18157
18367
  const localVarOperationServerBasePath = operationServerMap['ClustersApi.reconcileCluster']?.[localVarOperationServerIndex]?.url;
18158
18368
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18159
18369
  },
18370
+ /**
18371
+ *
18372
+ * @summary Restore a hibernated cluster\'s nodes and reconcile the cluster
18373
+ * @param {number} clusterId
18374
+ * @param {*} [options] Override http request option.
18375
+ * @throws {RequiredError}
18376
+ */
18377
+ async restoreAHibernatedCluster(clusterId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterRestoreResponse>> {
18378
+ const localVarAxiosArgs = await localVarAxiosParamCreator.restoreAHibernatedCluster(clusterId, options);
18379
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18380
+ const localVarOperationServerBasePath = operationServerMap['ClustersApi.restoreAHibernatedCluster']?.[localVarOperationServerIndex]?.url;
18381
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18382
+ },
18160
18383
  /**
18161
18384
  *
18162
18385
  * @summary Update a node group in a cluster
@@ -18350,6 +18573,16 @@ export const ClustersApiFactory = function (configuration?: Configuration, baseP
18350
18573
  reconcileCluster(clusterId: number, options?: RawAxiosRequestConfig): AxiosPromise<ManualReconciliationModel> {
18351
18574
  return localVarFp.reconcileCluster(clusterId, options).then((request) => request(axios, basePath));
18352
18575
  },
18576
+ /**
18577
+ *
18578
+ * @summary Restore a hibernated cluster\'s nodes and reconcile the cluster
18579
+ * @param {number} clusterId
18580
+ * @param {*} [options] Override http request option.
18581
+ * @throws {RequiredError}
18582
+ */
18583
+ restoreAHibernatedCluster(clusterId: number, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRestoreResponse> {
18584
+ return localVarFp.restoreAHibernatedCluster(clusterId, options).then((request) => request(axios, basePath));
18585
+ },
18353
18586
  /**
18354
18587
  *
18355
18588
  * @summary Update a node group in a cluster
@@ -18572,6 +18805,18 @@ export class ClustersApi extends BaseAPI {
18572
18805
  return ClustersApiFp(this.configuration).reconcileCluster(clusterId, options).then((request) => request(this.axios, this.basePath));
18573
18806
  }
18574
18807
 
18808
+ /**
18809
+ *
18810
+ * @summary Restore a hibernated cluster\'s nodes and reconcile the cluster
18811
+ * @param {number} clusterId
18812
+ * @param {*} [options] Override http request option.
18813
+ * @throws {RequiredError}
18814
+ * @memberof ClustersApi
18815
+ */
18816
+ public restoreAHibernatedCluster(clusterId: number, options?: RawAxiosRequestConfig) {
18817
+ return ClustersApiFp(this.configuration).restoreAHibernatedCluster(clusterId, options).then((request) => request(this.axios, this.basePath));
18818
+ }
18819
+
18575
18820
  /**
18576
18821
  *
18577
18822
  * @summary Update a node group in a cluster
@@ -29120,3 +29365,107 @@ export class VouchersApi extends BaseAPI {
29120
29365
 
29121
29366
 
29122
29367
 
29368
+ /**
29369
+ * ZendeskApi - axios parameter creator
29370
+ * @export
29371
+ */
29372
+ export const ZendeskApiAxiosParamCreator = function (configuration?: Configuration) {
29373
+ return {
29374
+ /**
29375
+ * Returns a short-lived signed JWT for the currently authenticated user, to be passed to the Zendesk Web Widget\'s loginUser API so chat tickets are attributed to the real user instead of an anonymous \'Web User\'.
29376
+ * @summary Retrieve a Zendesk messaging JWT for the current user
29377
+ * @param {*} [options] Override http request option.
29378
+ * @throws {RequiredError}
29379
+ */
29380
+ getZendeskMessagingToken: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29381
+ const localVarPath = `/auth/zendesk/messaging-token`;
29382
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29383
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29384
+ let baseOptions;
29385
+ if (configuration) {
29386
+ baseOptions = configuration.baseOptions;
29387
+ }
29388
+
29389
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29390
+ const localVarHeaderParameter = {} as any;
29391
+ const localVarQueryParameter = {} as any;
29392
+
29393
+ // authentication apiKey required
29394
+ await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
29395
+
29396
+
29397
+
29398
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29399
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29400
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29401
+
29402
+ return {
29403
+ url: toPathString(localVarUrlObj),
29404
+ options: localVarRequestOptions,
29405
+ };
29406
+ },
29407
+ }
29408
+ };
29409
+
29410
+ /**
29411
+ * ZendeskApi - functional programming interface
29412
+ * @export
29413
+ */
29414
+ export const ZendeskApiFp = function(configuration?: Configuration) {
29415
+ const localVarAxiosParamCreator = ZendeskApiAxiosParamCreator(configuration)
29416
+ return {
29417
+ /**
29418
+ * Returns a short-lived signed JWT for the currently authenticated user, to be passed to the Zendesk Web Widget\'s loginUser API so chat tickets are attributed to the real user instead of an anonymous \'Web User\'.
29419
+ * @summary Retrieve a Zendesk messaging JWT for the current user
29420
+ * @param {*} [options] Override http request option.
29421
+ * @throws {RequiredError}
29422
+ */
29423
+ async getZendeskMessagingToken(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ZendeskMessagingToken>> {
29424
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getZendeskMessagingToken(options);
29425
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
29426
+ const localVarOperationServerBasePath = operationServerMap['ZendeskApi.getZendeskMessagingToken']?.[localVarOperationServerIndex]?.url;
29427
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29428
+ },
29429
+ }
29430
+ };
29431
+
29432
+ /**
29433
+ * ZendeskApi - factory interface
29434
+ * @export
29435
+ */
29436
+ export const ZendeskApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
29437
+ const localVarFp = ZendeskApiFp(configuration)
29438
+ return {
29439
+ /**
29440
+ * Returns a short-lived signed JWT for the currently authenticated user, to be passed to the Zendesk Web Widget\'s loginUser API so chat tickets are attributed to the real user instead of an anonymous \'Web User\'.
29441
+ * @summary Retrieve a Zendesk messaging JWT for the current user
29442
+ * @param {*} [options] Override http request option.
29443
+ * @throws {RequiredError}
29444
+ */
29445
+ getZendeskMessagingToken(options?: RawAxiosRequestConfig): AxiosPromise<ZendeskMessagingToken> {
29446
+ return localVarFp.getZendeskMessagingToken(options).then((request) => request(axios, basePath));
29447
+ },
29448
+ };
29449
+ };
29450
+
29451
+ /**
29452
+ * ZendeskApi - object-oriented interface
29453
+ * @export
29454
+ * @class ZendeskApi
29455
+ * @extends {BaseAPI}
29456
+ */
29457
+ export class ZendeskApi extends BaseAPI {
29458
+ /**
29459
+ * Returns a short-lived signed JWT for the currently authenticated user, to be passed to the Zendesk Web Widget\'s loginUser API so chat tickets are attributed to the real user instead of an anonymous \'Web User\'.
29460
+ * @summary Retrieve a Zendesk messaging JWT for the current user
29461
+ * @param {*} [options] Override http request option.
29462
+ * @throws {RequiredError}
29463
+ * @memberof ZendeskApi
29464
+ */
29465
+ public getZendeskMessagingToken(options?: RawAxiosRequestConfig) {
29466
+ return ZendeskApiFp(this.configuration).getZendeskMessagingToken(options).then((request) => request(this.axios, this.basePath));
29467
+ }
29468
+ }
29469
+
29470
+
29471
+