Skip to content

Commit

Permalink
update to v2.17.0 schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Sczlog committed Aug 21, 2024
1 parent 78a930b commit 1cdb3c5
Show file tree
Hide file tree
Showing 19 changed files with 12,675 additions and 11,185 deletions.
37 changes: 34 additions & 3 deletions RELEASENOTE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# RELEASE NOTE

## release 日期 2024-08-21

v2.17.0 release (tower version 4.3.0)

### feature

- 新增 VPC 相关 API
- [VirtualPrivateCloudApi] VPC 服务管理
- [VirtualPrivateCloudClusterBindingApi] VPC 服务与集群关联关系
- [VirtualPrivateCloudExternalSubnetApi] VPC 网络外部子网
- [VirtualPrivateCloudFloatingIpApi] VPC 网络浮动 IP 管理
- [VirtualPrivateCloudNatGatewayApi] VPC 网络 NAT 网关管理
- [VirtualPrivateCloudRouterGatewayApi] VPC 网络路由网关管理
- [VirtualPrivateCloudRouteTableApi] VPC 网络路由表管理
- [VirtualPrivateCloudSecurityGroupApi] VPC 网络安全组管理
- [VirtualPrivateCloudSecurityPolicyApi] VPC 网络安全策略管理
- [VirtualPrivateCloudSubnetApi] VPC 子网管理
- [VmApi]: [updateVmNicVpc]: 更新虚拟机的 VPC 网卡

### update

- [ContentLibraryImage]: 新增 iscsi_luns 字段,用于记录分发至存算分离节点中的镜像的 lun 。
- [ContentLibraryImageApi]: []支持使用 iscsi_luns 进行搜索
- [VmApi]:
- [createVm], [createVmFromContentLibraryTemplate], [createVmFromTemplate], [cloneVm], [rebuildVmFromSnapshot] 支持配置虚拟机的 VPC 网卡
- [addVmNic], [updateVmNic] 支持配置 VPC 网卡

### bugfix

- [VmApi]: [updateVmDisk], [addVmDisk], [expandVmDisk], [removeVmDisk], [addVmCdRom], [removeVmCdRom], [ejectIsoFromVmCdRom], [toggleVmCdRomDisable]: 修复被修改虚拟机的虚拟盘会丢失限速设置以及 cdrom 的禁用的问题
- [vmApi]: [createVmFromContentLibraryTemplate]: 修复当内容库模板仅分发在存算分离的集群时,无法创建虚拟机的问题。

## release 日期 2024-07-16

v2.16.0 release (tower version 4.2.0)
Expand All @@ -11,9 +43,9 @@ v2.16.0 release (tower version 4.2.0)
### update

- [HostApi]:
- [create_host]: 新增 `vdses` 字段适配网络融合,新增 `zbsSpec` 字段适配 zbs 560 以上版本集群的添加
- [createHost]: 新增 `vdses` 字段适配网络融合,新增 `zbsSpec` 字段适配 zbs 560 以上版本集群的添加
- [VmApi]:
- [get_vms]: 新增 `bios_uuid` 字段
- [getVms]: 新增 `bios_uuid` 字段

## release 日期 2024-05-11

Expand Down Expand Up @@ -75,7 +107,6 @@ v2.14.0 release (tower version 4.0.0)
- [vmApi]:
- [createVmFromContentLibraryTemplate]\: 修复模板卷存储策略包含三副本时,非完全克隆虚拟机失败,提示非完全克隆无法修改存储策略的问题


## 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.16.0",
"version": "2.17.0",
"description": "cloudtower operation api",
"main": "lib/index.js",
"typings": "typings/index.d.ts",
Expand Down
8 changes: 8 additions & 0 deletions src/generated/AlertNotifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export class AlertNotifierApi<SecurityDataType = unknown> {
* @tags AlertNotifier
* @name CreateAlertNotifier
* @request POST:/create-alert-notifier
* @secure
* @response `200` `(WithTaskAlertNotifier)[]`
* @response `400` `ErrorBody` Bad request
* @response `404` `ErrorBody` Not found
Expand All @@ -89,6 +90,7 @@ export class AlertNotifierApi<SecurityDataType = unknown> {
path: `/create-alert-notifier`,
method: "POST",
body: data,
secure: true,
type: ContentType.Json,
format: "json",
...params,
Expand All @@ -99,6 +101,7 @@ export class AlertNotifierApi<SecurityDataType = unknown> {
* @tags AlertNotifier
* @name UpdateAlertNotifier
* @request POST:/update-alert-notifier
* @secure
* @response `200` `WithTaskAlertNotifier`
* @response `400` `ErrorBody` Bad request
* @response `404` `ErrorBody` Not found
Expand All @@ -112,6 +115,7 @@ export class AlertNotifierApi<SecurityDataType = unknown> {
path: `/update-alert-notifier`,
method: "POST",
body: data,
secure: true,
type: ContentType.Json,
format: "json",
...params,
Expand All @@ -122,6 +126,7 @@ export class AlertNotifierApi<SecurityDataType = unknown> {
* @tags AlertNotifier
* @name UpdateManyAlertNotifiers
* @request POST:/update-many-alert-notifiers
* @secure
* @response `200` `(WithTaskAlertNotifier)[]`
* @response `400` `ErrorBody` Bad request
* @response `404` `ErrorBody` Not found
Expand All @@ -135,6 +140,7 @@ export class AlertNotifierApi<SecurityDataType = unknown> {
path: `/update-many-alert-notifiers`,
method: "POST",
body: data,
secure: true,
type: ContentType.Json,
format: "json",
...params,
Expand All @@ -145,6 +151,7 @@ export class AlertNotifierApi<SecurityDataType = unknown> {
* @tags AlertNotifier
* @name DeleteAlertNotifier
* @request POST:/delete-alert-notifier
* @secure
* @response `200` `(WithTaskDeleteAlertNotifier)[]`
* @response `400` `ErrorBody` Bad request
* @response `404` `ErrorBody` Not found
Expand All @@ -158,6 +165,7 @@ export class AlertNotifierApi<SecurityDataType = unknown> {
path: `/delete-alert-notifier`,
method: "POST",
body: data,
secure: true,
type: ContentType.Json,
format: "json",
...params,
Expand Down
6 changes: 6 additions & 0 deletions src/generated/LogCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class LogCollectionApi<SecurityDataType = unknown> {
* @tags LogCollection
* @name CreateLogCollection
* @request POST:/create-log-collection
* @secure
* @response `200` `(WithTaskLogCollection)[]`
* @response `400` `ErrorBody` Bad request
* @response `404` `ErrorBody` Not found
Expand All @@ -38,6 +39,7 @@ export class LogCollectionApi<SecurityDataType = unknown> {
path: `/create-log-collection`,
method: "POST",
body: data,
secure: true,
type: ContentType.Json,
format: "json",
...params,
Expand All @@ -48,6 +50,7 @@ export class LogCollectionApi<SecurityDataType = unknown> {
* @tags LogCollection
* @name ForceStopLogCollection
* @request POST:/force-stop-log-collection
* @secure
* @response `200` `(WithTaskLogCollection)[]`
* @response `400` `ErrorBody` Bad request
* @response `404` `ErrorBody` Not found
Expand All @@ -61,6 +64,7 @@ export class LogCollectionApi<SecurityDataType = unknown> {
path: `/force-stop-log-collection`,
method: "POST",
body: data,
secure: true,
type: ContentType.Json,
format: "json",
...params,
Expand All @@ -71,6 +75,7 @@ export class LogCollectionApi<SecurityDataType = unknown> {
* @tags LogCollection
* @name DeleteLogCollection
* @request POST:/delete-log-collection
* @secure
* @response `200` `(WithTaskDeleteLogCollection)[]`
* @response `400` `ErrorBody` Bad request
* @response `404` `ErrorBody` Not found
Expand All @@ -84,6 +89,7 @@ export class LogCollectionApi<SecurityDataType = unknown> {
path: `/delete-log-collection`,
method: "POST",
body: data,
secure: true,
type: ContentType.Json,
format: "json",
...params,
Expand Down
2 changes: 2 additions & 0 deletions src/generated/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export class UserApi<SecurityDataType = unknown> {
* @tags User
* @name GetMyInfo
* @request POST:/get-my-info
* @secure
* @response `200` `User`
* @response `400` `ErrorBody` Bad request
* @response `404` `ErrorBody` Not found
Expand All @@ -143,6 +144,7 @@ export class UserApi<SecurityDataType = unknown> {
this.http.request<User, ErrorBody>({
path: `/get-my-info`,
method: "POST",
secure: true,
format: "json",
...params,
});
Expand Down
67 changes: 67 additions & 0 deletions src/generated/V2EverouteLicense.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import {
ErrorBody,
GetV2EverouteLicensesConnectionRequestBody,
GetV2EverouteLicensesRequestBody,
V2EverouteLicense,
V2EverouteLicenseConnection,
} from "./data-contracts";
import { ContentType, HttpClient, RequestParams } from "./http-client";

export class V2EverouteLicenseApi<SecurityDataType = unknown> {
http: HttpClient<SecurityDataType>;

constructor(http: HttpClient<SecurityDataType>) {
this.http = http;
}

/**
* No description
*
* @tags V2EverouteLicense
* @name GetV2EverouteLicenses
* @request POST:/get-v2-everoute-licenses
* @secure
* @response `200` `(V2EverouteLicense)[]`
* @response `400` `ErrorBody` Bad request
* @response `404` `ErrorBody` Not found
* @response `500` `ErrorBody` Server error
*/
getV2EverouteLicenses = (
data: GetV2EverouteLicensesRequestBody,
params: RequestParams = {}
) =>
this.http.request<V2EverouteLicense[], ErrorBody>({
path: `/get-v2-everoute-licenses`,
method: "POST",
body: data,
secure: true,
type: ContentType.Json,
format: "json",
...params,
});
/**
* No description
*
* @tags V2EverouteLicense
* @name GetV2EverouteLicensesConnection
* @request POST:/get-v-2-everoute-licenses-connection
* @secure
* @response `200` `V2EverouteLicenseConnection`
* @response `400` `ErrorBody` Bad request
* @response `404` `ErrorBody` Not found
* @response `500` `ErrorBody` Server error
*/
getV2EverouteLicensesConnection = (
data: GetV2EverouteLicensesConnectionRequestBody,
params: RequestParams = {}
) =>
this.http.request<V2EverouteLicenseConnection, ErrorBody>({
path: `/get-v-2-everoute-licenses-connection`,
method: "POST",
body: data,
secure: true,
type: ContentType.Json,
format: "json",
...params,
});
}
Loading

0 comments on commit 1cdb3c5

Please sign in to comment.