Skip to content

Commit

Permalink
update to v2.19.0 schema
Browse files Browse the repository at this point in the history
  • Loading branch information
shenwen.yin authored and Sczlog committed Feb 17, 2025
1 parent 8753a8f commit 692ca31
Show file tree
Hide file tree
Showing 8 changed files with 18,305 additions and 17,324 deletions.
32 changes: 32 additions & 0 deletions RELEASENOTE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# RELEASE NOTE

## release 日期 2025-02-17

v2.19.0 release (tower version 4.5.0)

### breaking change

- [TaskApi]: [updateTask]: descripton 字段由 string 更新为 TaskDescription

### feature

- [BackupPlanApi]: 新增 getBackupRestorePointMetadata API 用于获取备份恢复点元数据;
- [NtpApi]: 新增 getNtpServiceUrl API 用于获取 Ntp 服务 URL;
- [ClusterApi]: 新增 getClusterStorageInfo API 用于获取集群存储信息;
- [ObservabilityApi]: 新增 clearSystemServiceAlertNotificationConfig API 用于清除系统服务报警信息

### optimize

- [BackupPlanApi]: [createBackupPlan]: 在 incremental_period 为 weekly 时,校验 incremental_weekdays 是否已输入;
- 为以下资源新增返回字段
- [BackupPlan]: 新增 vms, phase, last_execute_status_message, last_manual_execute_status_message, backup_restore_point_count,valid_size_of_restore_point, backup_total_size, logical_size,backup_delay_option, delete_strategy,backup_plan_executions 和 backup_restore_points 字段;
- [NestedVirtualPrivateCloudService]: 新增 internal_cidr 和 tep_ip_pools 字段;
- [VirtualPrivateCloud]: 新增 vpc_service 字段;
- [SecurityPolicy]: 新增 is_blocklist 字段;
- [ContentLibraryVmTemplate]: 新增 vm_disks, vm_nics, clock_offset, cpu, cpu_model, firmware, ha, io_policy, local_created_at, max_bandwidth, max_bandwidth_policy, max_iops, max_iops_policy, template_config, video_type, win_opt 和 zbs_storage_info 字段;
- [VirtualPrivateCloudExternalSubnets]: 新增 edge_gateway 和 exclusive 字段;
- [TaskApi]: [createTask], [updateTask]: 支持传入 started_at 和 finished_at 字段;

### bugfix

- [IscsiLunApi]: [copyIscsiLun]: 修复跨集群克隆 iscsi lun 失败;
- [ObservabilityApi]: [disassociateSystemServiceFromObsService]: 修复解除关系错误时无法正确返回错误信息。

## release 日期 2024-10-14

v2.18.0 release (tower version 4.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.18.0",
"version": "2.19.0",
"description": "cloudtower operation api",
"main": "lib/index.js",
"typings": "typings/index.d.ts",
Expand Down
27 changes: 27 additions & 0 deletions src/generated/BackupPlan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import {
ErrorBody,
GetBackupPlansConnectionRequestBody,
GetBackupPlansRequestBody,
GetBackupRestorePointMetadataRequestBody,
VmMetaData,
WithTaskBackupPlan,
WithTaskBackupPlanExecution,
WithTaskBackupRestoreExecution,
Expand Down Expand Up @@ -253,6 +255,31 @@ export class BackupPlanApi<SecurityDataType = unknown> {
format: "json",
...params,
});
/**
* No description
*
* @tags BackupPlan
* @name GetBackupRestorePointMetadata
* @request POST:/get-backup-restore-point-metadata
* @secure
* @response `200` `VmMetaData`
* @response `400` `ErrorBody` Bad request
* @response `404` `ErrorBody` Not found
* @response `500` `ErrorBody` Server error
*/
getBackupRestorePointMetadata = (
data: GetBackupRestorePointMetadataRequestBody,
params: RequestParams = {}
) =>
this.http.request<VmMetaData, ErrorBody>({
path: `/get-backup-restore-point-metadata`,
method: "POST",
body: data,
secure: true,
type: ContentType.Json,
format: "json",
...params,
});
/**
* No description
*
Expand Down
27 changes: 27 additions & 0 deletions src/generated/Cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ import {
ClusterHaUpdationParams,
ClusterLicenseUpdationParams,
ClusterNetworkSettingUpdationParams,
ClusterStorageInfo,
ClusterUpdationParams,
ClusterVirtualizationUpdationParams,
ErrorBody,
GetClustersConnectionRequestBody,
GetClustersRequestBody,
GetClusterStorageInfoRequestBody,
GetMetaLeaderRequestBody,
MetaLeader,
WithTaskCluster,
Expand Down Expand Up @@ -246,6 +248,31 @@ export class ClusterApi<SecurityDataType = unknown> {
format: "json",
...params,
});
/**
* No description
*
* @tags Cluster
* @name GetClusterStorageInfo
* @request POST:/get-cluster-storage-info
* @secure
* @response `200` `(ClusterStorageInfo)[]`
* @response `400` `ErrorBody` Bad request
* @response `404` `ErrorBody` Not found
* @response `500` `ErrorBody` Server error
*/
getClusterStorageInfo = (
data: GetClusterStorageInfoRequestBody,
params: RequestParams = {}
) =>
this.http.request<ClusterStorageInfo[], ErrorBody>({
path: `/get-cluster-storage-info`,
method: "POST",
body: data,
secure: true,
type: ContentType.Json,
format: "json",
...params,
});
/**
* No description
*
Expand Down
31 changes: 31 additions & 0 deletions src/generated/Ntp.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { ErrorBody, NtpServiceUrl } from "./data-contracts";
import { HttpClient, RequestParams } from "./http-client";

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

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

/**
* No description
*
* @tags Ntp
* @name GetNtpServiceUrl
* @request POST:/get-ntp-service-url
* @secure
* @response `200` `NtpServiceUrl`
* @response `400` `ErrorBody` Bad request
* @response `404` `ErrorBody` Not found
* @response `500` `ErrorBody` Server error
*/
getNtpServiceUrl = (params: RequestParams = {}) =>
this.http.request<NtpServiceUrl, ErrorBody>({
path: `/get-ntp-service-url`,
method: "POST",
secure: true,
format: "json",
...params,
});
}
28 changes: 28 additions & 0 deletions src/generated/Observability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,32 @@ export class ObservabilityApi<SecurityDataType = unknown> {
format: "json",
...params,
});
/**
* No description
*
* @tags Observability
* @name ClearSystemServiceAlertNotificationConfig
* @request POST:/clear-system-service-alert-notification-config
* @secure
* @response `200` `WithTaskDisassociateSystemServiceFromObsServiceResult`
* @response `400` `ErrorBody` Bad request
* @response `404` `ErrorBody` Not found
* @response `500` `ErrorBody` Server error
*/
clearSystemServiceAlertNotificationConfig = (
data: DisassociateSystemServiceFromObsServiceParams,
params: RequestParams = {}
) =>
this.http.request<
WithTaskDisassociateSystemServiceFromObsServiceResult,
ErrorBody
>({
path: `/clear-system-service-alert-notification-config`,
method: "POST",
body: data,
secure: true,
type: ContentType.Json,
format: "json",
...params,
});
}
Loading

0 comments on commit 692ca31

Please sign in to comment.