Skip to content

Commit

Permalink
update to v2.13.1 schema
Browse files Browse the repository at this point in the history
  • Loading branch information
shenwen.yin committed Oct 10, 2024
1 parent 14a4417 commit fd8a6b1
Show file tree
Hide file tree
Showing 5 changed files with 4,140 additions and 4,002 deletions.
13 changes: 13 additions & 0 deletions RELEASENOTE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# RELEASE NOTE

## release 日期 2024-10-10

v2.13.1 release (tower version 3.4.4)

### update

- 新增 [image_utils] 工具类,支持通过 uploadTask 来获取上传后的 elfImage 与 contentLibraryImage
- [VmApi]: [createVmFromContentLibraryTemplateBatch]: 支持批量通过内容库模板创建虚拟机

### bugfix

- pick 2.14.0 ~ 2.17.0 上修复的已有 api 的 bugfix,详见 master 分支的 [release_note](https://github.com/smartxworks/cloudtower-node-sdk/blob/master/RELEASENOTE.md)

## release 日期 2023-11-07

v2.13.0 release (tower version 3.4.0)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudtower-node-sdk",
"version": "2.13.0",
"version": "2.13.1",
"description": "cloudtower operation api",
"main": "lib/index.js",
"typings": "typings/index.d.ts",
Expand Down
27 changes: 27 additions & 0 deletions src/generated/Vm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
VmAddNicParams,
VmCloneParams,
VmConnection,
VmCreateVmFromContentLibraryTemplateBatchParams,
VmCreateVmFromContentLibraryTemplateParams,
VmCreateVmFromTemplateParams,
VmCreationParams,
Expand Down Expand Up @@ -49,6 +50,7 @@ import {
VmUpdateParams,
WithTaskDeleteVm,
WithTaskVm,
WithTaskVmArray,
WithTaskVmExportFile,
} from "./data-contracts";
import { ContentType, HttpClient, RequestParams } from "./http-client";
Expand Down Expand Up @@ -132,6 +134,31 @@ export class VmApi<SecurityDataType = unknown> {
format: "json",
...params,
});
/**
* No description
*
* @tags Vm
* @name CreateVmFromContentLibraryTemplateBatch
* @request POST:/create-vm-from-content-library-template-batch
* @secure
* @response `200` `WithTaskVmArray`
* @response `400` `ErrorBody` Bad request
* @response `404` `ErrorBody` Not found
* @response `500` `ErrorBody` Server error
*/
createVmFromContentLibraryTemplateBatch = (
data: VmCreateVmFromContentLibraryTemplateBatchParams,
params: RequestParams = {}
) =>
this.http.request<WithTaskVmArray, ErrorBody>({
path: `/create-vm-from-content-library-template-batch`,
method: "POST",
body: data,
secure: true,
type: ContentType.Json,
format: "json",
...params,
});
/**
* No description
*
Expand Down
Loading

0 comments on commit fd8a6b1

Please sign in to comment.