Skip to content

Commit 5ab90a0

Browse files
committed
SDK Release v1.46.4-alpha
1 parent eccd536 commit 5ab90a0

765 files changed

Lines changed: 7006 additions & 728 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ To contribute, please raise an issue with a bug report, feature request, feedbac
99
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
1010

1111
- API version: 1.0
12-
- Package version: v1.46.2-alpha
12+
- Package version: v1.46.4-alpha
1313
- Generator version: 7.10.0
1414
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
1515

@@ -112,9 +112,12 @@ apiKey.apiKey = "YOUR API KEY"
112112
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
113113
//apiKey.apiKeyPrefix['api_key'] = "Token"
114114

115-
var api = new HyperstackApi.AliveApi()
116-
api.getAlive().then(function() {
117-
console.log('API called successfully.');
115+
var api = new HyperstackApi.AccessKeysApi()
116+
var opts = {
117+
'body': new HyperstackApi.ObjectStorageAccessKeyCreateRequest() // {ObjectStorageAccessKeyCreateRequest}
118+
};
119+
api.createAccessKeyEndpoint(opts).then(function(data) {
120+
console.log('API called successfully. Returned data: ' + data);
118121
}, function(error) {
119122
console.error(error);
120123
});
@@ -128,6 +131,9 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
128131

129132
Class | Method | HTTP request | Description
130133
------------ | ------------- | ------------- | -------------
134+
*HyperstackApi.AccessKeysApi* | [**createAccessKeyEndpoint**](docs/AccessKeysApi.md#createAccessKeyEndpoint) | **POST** /object-storage/access-keys | Generate a new access key
135+
*HyperstackApi.AccessKeysApi* | [**deleteAccessKeyEndpoint**](docs/AccessKeysApi.md#deleteAccessKeyEndpoint) | **DELETE** /object-storage/access-keys/{access_key_id} | Remove an existing access key
136+
*HyperstackApi.AccessKeysApi* | [**listAccessKeysEndpoint**](docs/AccessKeysApi.md#listAccessKeysEndpoint) | **GET** /object-storage/access-keys | List access keys
131137
*HyperstackApi.AliveApi* | [**getAlive**](docs/AliveApi.md#getAlive) | **GET** /billing/alive | GET: Alive
132138
*HyperstackApi.AliveApi* | [**getAliveDoc**](docs/AliveApi.md#getAliveDoc) | **GET** /billing/alive/doc |
133139
*HyperstackApi.ApiKeyApi* | [**deleteAPIKey**](docs/ApiKeyApi.md#deleteAPIKey) | **DELETE** /api-key/{api_key_id} | Delete API Key
@@ -181,6 +187,9 @@ Class | Method | HTTP request | Description
181187
*HyperstackApi.BillingApi* | [**listOrgNotificationThresholds**](docs/BillingApi.md#listOrgNotificationThresholds) | **GET** /billing/billing/threshold | GET: All Thresholds for Organization
182188
*HyperstackApi.BillingApi* | [**listServerlessInferenceBillingHistory**](docs/BillingApi.md#listServerlessInferenceBillingHistory) | **GET** /billing/billing/history/serverless_inference | Retrieve Billing History of serverless inference for a specific Billing Cycle
183189
*HyperstackApi.BillingApi* | [**listSnapshotBillingHistory**](docs/BillingApi.md#listSnapshotBillingHistory) | **GET** /billing/billing/history/snapshot | Retrieve Billing History of Snapshot for a specific Billing Cycle
190+
*HyperstackApi.BucketsApi* | [**deleteBucketEndpoint**](docs/BucketsApi.md#deleteBucketEndpoint) | **DELETE** /object-storage/buckets/{bucket_name} | Delete a bucket
191+
*HyperstackApi.BucketsApi* | [**listBucketsEndpoint**](docs/BucketsApi.md#listBucketsEndpoint) | **GET** /object-storage/buckets | List buckets
192+
*HyperstackApi.BucketsApi* | [**retrieveBucketEndpoint**](docs/BucketsApi.md#retrieveBucketEndpoint) | **GET** /object-storage/buckets/{bucket_name} | Retrieve a bucket
184193
*HyperstackApi.CalculateApi* | [**calculateResourceBillingRate**](docs/CalculateApi.md#calculateResourceBillingRate) | **GET** /pricebook/calculate/resource/{resource_type}/{id} | Retrieve Billing Rate for Resource
185194
*HyperstackApi.CallbacksApi* | [**attachCallbackToVM**](docs/CallbacksApi.md#attachCallbackToVM) | **POST** /core/virtual-machines/{vm_id}/attach-callback | Attach callback to virtual machine
186195
*HyperstackApi.CallbacksApi* | [**attachCallbackToVolume**](docs/CallbacksApi.md#attachCallbackToVolume) | **POST** /core/volumes/{volume_id}/attach-callback | Attach callback to volume
@@ -237,6 +246,7 @@ Class | Method | HTTP request | Description
237246
*HyperstackApi.FloatingIpApi* | [**attachPublicIPToVM**](docs/FloatingIpApi.md#attachPublicIPToVM) | **POST** /core/virtual-machines/{vm_id}/attach-floatingip | Attach public IP to virtual machine
238247
*HyperstackApi.FloatingIpApi* | [**detachPublicIPFromVM**](docs/FloatingIpApi.md#detachPublicIPFromVM) | **POST** /core/virtual-machines/{vm_id}/detach-floatingip | Detach public IP from virtual machine
239248
*HyperstackApi.GpuApi* | [**listGPUs**](docs/GpuApi.md#listGPUs) | **GET** /core/gpus | List GPUs
249+
*HyperstackApi.HealthApi* | [**healthzEndpoint**](docs/HealthApi.md#healthzEndpoint) | **GET** /object-storage/healthz | Healthcheck
240250
*HyperstackApi.ImageApi* | [**deleteImage**](docs/ImageApi.md#deleteImage) | **DELETE** /core/images/{id} | Delete an image
241251
*HyperstackApi.ImageApi* | [**fetchImageNameAvailability**](docs/ImageApi.md#fetchImageNameAvailability) | **GET** /core/image/name-availability/{name} | Fetch name availability for Images
242252
*HyperstackApi.ImageApi* | [**getImage**](docs/ImageApi.md#getImage) | **GET** /core/images/{id} | Get Private Image Details
@@ -270,6 +280,7 @@ Class | Method | HTTP request | Description
270280
*HyperstackApi.RbacRoleApi* | [**retrieveRBACRoleDetails**](docs/RbacRoleApi.md#retrieveRBACRoleDetails) | **GET** /auth/roles/{id} | Retrieve RBAC Role Details
271281
*HyperstackApi.RbacRoleApi* | [**updateRBACRole**](docs/RbacRoleApi.md#updateRBACRole) | **PUT** /auth/roles/{id} | Update RBAC Role
272282
*HyperstackApi.RegionApi* | [**listRegions**](docs/RegionApi.md#listRegions) | **GET** /core/regions | List Regions
283+
*HyperstackApi.RegionsApi* | [**listRegionsEndpoint**](docs/RegionsApi.md#listRegionsEndpoint) | **GET** /object-storage/regions | Get a list of supported regions
273284
*HyperstackApi.SecurityRulesApi* | [**listFirewallRuleProtocols**](docs/SecurityRulesApi.md#listFirewallRuleProtocols) | **GET** /core/sg-rules-protocols | List firewall rule protocols
274285
*HyperstackApi.SnapshotEventsApi* | [**listSnapshotEvents**](docs/SnapshotEventsApi.md#listSnapshotEvents) | **GET** /core/snapshots/{snapshot_id}/events | Fetch all events for a snapshot
275286
*HyperstackApi.SnapshotsApi* | [**createCustomImage**](docs/SnapshotsApi.md#createCustomImage) | **POST** /core/snapshots/{snapshot_id}/image | Create an image from a snapshot
@@ -492,6 +503,19 @@ Class | Method | HTTP request | Description
492503
- [HyperstackApi.NewModelResponse](docs/NewModelResponse.md)
493504
- [HyperstackApi.NewStockResponse](docs/NewStockResponse.md)
494505
- [HyperstackApi.NewStockRetriveResponse](docs/NewStockRetriveResponse.md)
506+
- [HyperstackApi.ObjectStorageAccessKeyCreateRequest](docs/ObjectStorageAccessKeyCreateRequest.md)
507+
- [HyperstackApi.ObjectStorageAccessKeyCreateResponse](docs/ObjectStorageAccessKeyCreateResponse.md)
508+
- [HyperstackApi.ObjectStorageAccessKeyListResponse](docs/ObjectStorageAccessKeyListResponse.md)
509+
- [HyperstackApi.ObjectStorageAccessKeyResponse](docs/ObjectStorageAccessKeyResponse.md)
510+
- [HyperstackApi.ObjectStorageBucketListResponse](docs/ObjectStorageBucketListResponse.md)
511+
- [HyperstackApi.ObjectStorageBucketResponse](docs/ObjectStorageBucketResponse.md)
512+
- [HyperstackApi.ObjectStorageDeleteResponse](docs/ObjectStorageDeleteResponse.md)
513+
- [HyperstackApi.ObjectStorageErrorResponse](docs/ObjectStorageErrorResponse.md)
514+
- [HyperstackApi.ObjectStorageHealthResponse](docs/ObjectStorageHealthResponse.md)
515+
- [HyperstackApi.ObjectStoragePaginationMeta](docs/ObjectStoragePaginationMeta.md)
516+
- [HyperstackApi.ObjectStorageRegionListResponse](docs/ObjectStorageRegionListResponse.md)
517+
- [HyperstackApi.ObjectStorageRegionResponse](docs/ObjectStorageRegionResponse.md)
518+
- [HyperstackApi.ObjectStorageRegionsEnum](docs/ObjectStorageRegionsEnum.md)
495519
- [HyperstackApi.OrganizationFields](docs/OrganizationFields.md)
496520
- [HyperstackApi.OrganizationLevelBillingHistory](docs/OrganizationLevelBillingHistory.md)
497521
- [HyperstackApi.OrganizationLevelBillingHistoryResources](docs/OrganizationLevelBillingHistoryResources.md)

dist/ApiClient.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
2525
*/
2626
/**
2727
* @module ApiClient
28-
* @version v1.46.2-alpha
28+
* @version v1.46.4-alpha
2929
*/
3030
/**
3131
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -68,7 +68,7 @@ var ApiClient = /*#__PURE__*/function () {
6868
* @default {}
6969
*/
7070
this.defaultHeaders = {
71-
'User-Agent': 'OpenAPI-Generator/v1.46.2-alpha/Javascript'
71+
'User-Agent': 'OpenAPI-Generator/v1.46.4-alpha/Javascript'
7272
};
7373

7474
/**

dist/api/AccessKeysApi.js

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
"use strict";
2+
3+
Object.defineProperty(exports, "__esModule", {
4+
value: true
5+
});
6+
exports["default"] = void 0;
7+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8+
var _ObjectStorageAccessKeyCreateRequest = _interopRequireDefault(require("../model/ObjectStorageAccessKeyCreateRequest"));
9+
var _ObjectStorageAccessKeyCreateResponse = _interopRequireDefault(require("../model/ObjectStorageAccessKeyCreateResponse"));
10+
var _ObjectStorageAccessKeyListResponse = _interopRequireDefault(require("../model/ObjectStorageAccessKeyListResponse"));
11+
var _ObjectStorageDeleteResponse = _interopRequireDefault(require("../model/ObjectStorageDeleteResponse"));
12+
var _ObjectStorageErrorResponse = _interopRequireDefault(require("../model/ObjectStorageErrorResponse"));
13+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
15+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
16+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
17+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
18+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
20+
* Infrahub-API
21+
* Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
22+
*
23+
* The version of the OpenAPI document: 1.0
24+
*
25+
*
26+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
27+
* https://openapi-generator.tech
28+
* Do not edit the class manually.
29+
*
30+
*/
31+
/**
32+
* AccessKeys service.
33+
* @module api/AccessKeysApi
34+
* @version v1.46.4-alpha
35+
*/
36+
var AccessKeysApi = exports["default"] = /*#__PURE__*/function () {
37+
/**
38+
* Constructs a new AccessKeysApi.
39+
* @alias module:api/AccessKeysApi
40+
* @class
41+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
42+
* default to {@link module:ApiClient#instance} if unspecified.
43+
*/
44+
function AccessKeysApi(apiClient) {
45+
_classCallCheck(this, AccessKeysApi);
46+
this.apiClient = apiClient || _ApiClient["default"].instance;
47+
}
48+
49+
/**
50+
* Generate a new access key
51+
* @param {Object} opts Optional parameters
52+
* @param {module:model/ObjectStorageAccessKeyCreateRequest} [body]
53+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ObjectStorageAccessKeyCreateResponse} and HTTP response
54+
*/
55+
return _createClass(AccessKeysApi, [{
56+
key: "createAccessKeyEndpointWithHttpInfo",
57+
value: function createAccessKeyEndpointWithHttpInfo(opts) {
58+
opts = opts || {};
59+
var postBody = opts['body'];
60+
var pathParams = {};
61+
var queryParams = {};
62+
var headerParams = {};
63+
var formParams = {};
64+
var authNames = ['apiKey'];
65+
var contentTypes = ['application/json'];
66+
var accepts = ['application/json'];
67+
var returnType = _ObjectStorageAccessKeyCreateResponse["default"];
68+
return this.apiClient.callApi('/object-storage/access-keys', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
69+
}
70+
71+
/**
72+
* Generate a new access key
73+
* @param {Object} opts Optional parameters
74+
* @param {module:model/ObjectStorageAccessKeyCreateRequest} opts.body
75+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ObjectStorageAccessKeyCreateResponse}
76+
*/
77+
}, {
78+
key: "createAccessKeyEndpoint",
79+
value: function createAccessKeyEndpoint(opts) {
80+
return this.createAccessKeyEndpointWithHttpInfo(opts).then(function (response_and_data) {
81+
return response_and_data.data;
82+
});
83+
}
84+
85+
/**
86+
* Remove an existing access key
87+
* @param {String} accessKeyId
88+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ObjectStorageDeleteResponse} and HTTP response
89+
*/
90+
}, {
91+
key: "deleteAccessKeyEndpointWithHttpInfo",
92+
value: function deleteAccessKeyEndpointWithHttpInfo(accessKeyId) {
93+
var postBody = null;
94+
// verify the required parameter 'accessKeyId' is set
95+
if (accessKeyId === undefined || accessKeyId === null) {
96+
throw new Error("Missing the required parameter 'accessKeyId' when calling deleteAccessKeyEndpoint");
97+
}
98+
var pathParams = {
99+
'access_key_id': accessKeyId
100+
};
101+
var queryParams = {};
102+
var headerParams = {};
103+
var formParams = {};
104+
var authNames = ['apiKey'];
105+
var contentTypes = [];
106+
var accepts = ['application/json'];
107+
var returnType = _ObjectStorageDeleteResponse["default"];
108+
return this.apiClient.callApi('/object-storage/access-keys/{access_key_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
109+
}
110+
111+
/**
112+
* Remove an existing access key
113+
* @param {String} accessKeyId
114+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ObjectStorageDeleteResponse}
115+
*/
116+
}, {
117+
key: "deleteAccessKeyEndpoint",
118+
value: function deleteAccessKeyEndpoint(accessKeyId) {
119+
return this.deleteAccessKeyEndpointWithHttpInfo(accessKeyId).then(function (response_and_data) {
120+
return response_and_data.data;
121+
});
122+
}
123+
124+
/**
125+
* List access keys
126+
* @param {Object} opts Optional parameters
127+
* @param {String} [search]
128+
* @param {String} [page]
129+
* @param {String} [pageSize]
130+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ObjectStorageAccessKeyListResponse} and HTTP response
131+
*/
132+
}, {
133+
key: "listAccessKeysEndpointWithHttpInfo",
134+
value: function listAccessKeysEndpointWithHttpInfo(opts) {
135+
opts = opts || {};
136+
var postBody = null;
137+
var pathParams = {};
138+
var queryParams = {
139+
'search': opts['search'],
140+
'page': opts['page'],
141+
'page_size': opts['pageSize']
142+
};
143+
var headerParams = {};
144+
var formParams = {};
145+
var authNames = ['apiKey'];
146+
var contentTypes = [];
147+
var accepts = ['application/json'];
148+
var returnType = _ObjectStorageAccessKeyListResponse["default"];
149+
return this.apiClient.callApi('/object-storage/access-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
150+
}
151+
152+
/**
153+
* List access keys
154+
* @param {Object} opts Optional parameters
155+
* @param {String} opts.search
156+
* @param {String} opts.page
157+
* @param {String} opts.pageSize
158+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ObjectStorageAccessKeyListResponse}
159+
*/
160+
}, {
161+
key: "listAccessKeysEndpoint",
162+
value: function listAccessKeysEndpoint(opts) {
163+
return this.listAccessKeysEndpointWithHttpInfo(opts).then(function (response_and_data) {
164+
return response_and_data.data;
165+
});
166+
}
167+
}]);
168+
}();

dist/api/AliveApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
2626
/**
2727
* Alive service.
2828
* @module api/AliveApi
29-
* @version v1.46.2-alpha
29+
* @version v1.46.4-alpha
3030
*/
3131
var AliveApi = exports["default"] = /*#__PURE__*/function () {
3232
/**

dist/api/ApiKeyApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
3131
/**
3232
* ApiKey service.
3333
* @module api/ApiKeyApi
34-
* @version v1.46.2-alpha
34+
* @version v1.46.4-alpha
3535
*/
3636
var ApiKeyApi = exports["default"] = /*#__PURE__*/function () {
3737
/**
@@ -105,7 +105,7 @@ var ApiKeyApi = exports["default"] = /*#__PURE__*/function () {
105105
var queryParams = {};
106106
var headerParams = {};
107107
var formParams = {};
108-
var authNames = [];
108+
var authNames = ['apiKey'];
109109
var contentTypes = ['application/json'];
110110
var accepts = ['application/json'];
111111
var returnType = _GenerateUpdateApiKeyResponseModel["default"];

dist/api/AssigningMemberRoleApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
3030
/**
3131
* AssigningMemberRole service.
3232
* @module api/AssigningMemberRoleApi
33-
* @version v1.46.2-alpha
33+
* @version v1.46.4-alpha
3434
*/
3535
var AssigningMemberRoleApi = exports["default"] = /*#__PURE__*/function () {
3636
/**

dist/api/AuthApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
3232
/**
3333
* Auth service.
3434
* @module api/AuthApi
35-
* @version v1.46.2-alpha
35+
* @version v1.46.4-alpha
3636
*/
3737
var AuthApi = exports["default"] = /*#__PURE__*/function () {
3838
/**

dist/api/BetaAccessApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
3030
/**
3131
* BetaAccess service.
3232
* @module api/BetaAccessApi
33-
* @version v1.46.2-alpha
33+
* @version v1.46.4-alpha
3434
*/
3535
var BetaAccessApi = exports["default"] = /*#__PURE__*/function () {
3636
/**

dist/api/BillingApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
5353
/**
5454
* Billing service.
5555
* @module api/BillingApi
56-
* @version v1.46.2-alpha
56+
* @version v1.46.4-alpha
5757
*/
5858
var BillingApi = exports["default"] = /*#__PURE__*/function () {
5959
/**

0 commit comments

Comments
 (0)