diff --git a/CHANGELOG.md b/CHANGELOG.md index c0e64b0e2..9e3f80ece 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,39 @@ +# 3.1.86 2024-04-01 + +### HuaweiCloud SDK BMS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListBareMetalServers** + - changes of response param + - `- servers.image.name` + - `- servers.image.__os_type` + - `- servers.image.links` + - **ListBareMetalServerDetails** + - changes of response param + - `- server.image.name` + - `- server.image.__os_type` + - `- server.image.links` + +### HuaweiCloud SDK KPS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateKeypair** + - changes of request param + - `+ keypair.key_protection.encryption.kms_key_id` + - **ImportPrivateKey** + - changes of request param + - `+ keypair.key_protection.encryption.kms_key_id` + - changes of response param + - `+ keypair.key_protection.encryption.kms_key_id` + # 3.1.85 2024-03-28 ### HuaweiCloud SDK APIG diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index c0d93e913..3661b9677 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,39 @@ +# 3.1.86 2024-04-01 + +### HuaweiCloud SDK BMS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListBareMetalServers** + - 响应参数变更 + - `- servers.image.name` + - `- servers.image.__os_type` + - `- servers.image.links` + - **ListBareMetalServerDetails** + - 响应参数变更 + - `- server.image.name` + - `- server.image.__os_type` + - `- server.image.links` + +### HuaweiCloud SDK KPS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateKeypair** + - 请求参数变更 + - `+ keypair.key_protection.encryption.kms_key_id` + - **ImportPrivateKey** + - 请求参数变更 + - `+ keypair.key_protection.encryption.kms_key_id` + - 响应参数变更 + - `+ keypair.key_protection.encryption.kms_key_id` + # 3.1.85 2024-03-28 ### HuaweiCloud SDK APIG diff --git a/VERSION b/VERSION index f00f59b3c..4a349469d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.85 +3.1.86 diff --git a/all/package.json b/all/package.json index aeccc8a32..8dfa221ed 100644 --- a/all/package.json +++ b/all/package.json @@ -1,101 +1,101 @@ { "name": "@huaweicloud/huaweicloud-sdk-all", - "version": "3.1.85", + "version": "3.1.86", "description": "Huawei Cloud SDK for Node.js includes all cloud services", "repository": { "type": "git", "url": "https://github.com/huaweicloud/huaweicloud-sdk-nodejs-v3" }, "dependencies": { - "@huaweicloud/huaweicloud-sdk-aad": "3.1.85", - "@huaweicloud/huaweicloud-sdk-antiddos": "3.1.85", - "@huaweicloud/huaweicloud-sdk-aom": "3.1.85", - "@huaweicloud/huaweicloud-sdk-aos": "3.1.85", - "@huaweicloud/huaweicloud-sdk-apig": "3.1.85", - "@huaweicloud/huaweicloud-sdk-as": "3.1.85", - "@huaweicloud/huaweicloud-sdk-bms": "3.1.85", - "@huaweicloud/huaweicloud-sdk-cbh": "3.1.85", - "@huaweicloud/huaweicloud-sdk-cbr": "3.1.85", - "@huaweicloud/huaweicloud-sdk-cc": "3.1.85", - "@huaweicloud/huaweicloud-sdk-cce": "3.1.85", - "@huaweicloud/huaweicloud-sdk-cdm": "3.1.85", - "@huaweicloud/huaweicloud-sdk-cdn": "3.1.85", - "@huaweicloud/huaweicloud-sdk-ces": "3.1.85", - "@huaweicloud/huaweicloud-sdk-cfw": "3.1.85", - "@huaweicloud/huaweicloud-sdk-cloudrtc": "3.1.85", - "@huaweicloud/huaweicloud-sdk-cloudtable": "3.1.85", - "@huaweicloud/huaweicloud-sdk-codeartsartifact": "3.1.85", - "@huaweicloud/huaweicloud-sdk-codeartsbuild": "3.1.85", - "@huaweicloud/huaweicloud-sdk-codeartsdeploy": "3.1.85", - "@huaweicloud/huaweicloud-sdk-codeartspipeline": "3.1.85", - "@huaweicloud/huaweicloud-sdk-config": "3.1.85", - "@huaweicloud/huaweicloud-sdk-cse": "3.1.85", - "@huaweicloud/huaweicloud-sdk-csms": "3.1.85", - "@huaweicloud/huaweicloud-sdk-css": "3.1.85", - "@huaweicloud/huaweicloud-sdk-cts": "3.1.85", - "@huaweicloud/huaweicloud-sdk-dataartsstudio": "3.1.85", - "@huaweicloud/huaweicloud-sdk-dbss": "3.1.85", - "@huaweicloud/huaweicloud-sdk-dc": "3.1.85", - "@huaweicloud/huaweicloud-sdk-dcs": "3.1.85", - "@huaweicloud/huaweicloud-sdk-dds": "3.1.85", - "@huaweicloud/huaweicloud-sdk-devstar": "3.1.85", - "@huaweicloud/huaweicloud-sdk-dli": "3.1.85", - "@huaweicloud/huaweicloud-sdk-dns": "3.1.85", - "@huaweicloud/huaweicloud-sdk-drs": "3.1.85", - "@huaweicloud/huaweicloud-sdk-dsc": "3.1.85", - "@huaweicloud/huaweicloud-sdk-dws": "3.1.85", - "@huaweicloud/huaweicloud-sdk-ecs": "3.1.85", - "@huaweicloud/huaweicloud-sdk-eip": "3.1.85", - "@huaweicloud/huaweicloud-sdk-elb": "3.1.85", - "@huaweicloud/huaweicloud-sdk-eps": "3.1.85", - "@huaweicloud/huaweicloud-sdk-er": "3.1.85", - "@huaweicloud/huaweicloud-sdk-evs": "3.1.85", - "@huaweicloud/huaweicloud-sdk-frs": "3.1.85", - "@huaweicloud/huaweicloud-sdk-functiongraph": "3.1.85", - "@huaweicloud/huaweicloud-sdk-ga": "3.1.85", - "@huaweicloud/huaweicloud-sdk-gaussdb": "3.1.85", - "@huaweicloud/huaweicloud-sdk-gaussdbfornosql": "3.1.85", - "@huaweicloud/huaweicloud-sdk-gaussdbforopengauss": "3.1.85", - "@huaweicloud/huaweicloud-sdk-ges": "3.1.85", - "@huaweicloud/huaweicloud-sdk-hss": "3.1.85", - "@huaweicloud/huaweicloud-sdk-iam": "3.1.85", - "@huaweicloud/huaweicloud-sdk-iamaccessanalyzer": "3.1.85", - "@huaweicloud/huaweicloud-sdk-image": "3.1.85", - "@huaweicloud/huaweicloud-sdk-ims": "3.1.85", - "@huaweicloud/huaweicloud-sdk-iotda": "3.1.85", - "@huaweicloud/huaweicloud-sdk-ivs": "3.1.85", - "@huaweicloud/huaweicloud-sdk-kafka": "3.1.85", - "@huaweicloud/huaweicloud-sdk-kms": "3.1.85", - "@huaweicloud/huaweicloud-sdk-kps": "3.1.85", - "@huaweicloud/huaweicloud-sdk-live": "3.1.85", - "@huaweicloud/huaweicloud-sdk-lts": "3.1.85", - "@huaweicloud/huaweicloud-sdk-meeting": "3.1.85", - "@huaweicloud/huaweicloud-sdk-metastudio": "3.1.85", - "@huaweicloud/huaweicloud-sdk-moderation": "3.1.85", - "@huaweicloud/huaweicloud-sdk-mpc": "3.1.85", - "@huaweicloud/huaweicloud-sdk-mrs": "3.1.85", - "@huaweicloud/huaweicloud-sdk-msgsms": "3.1.85", - "@huaweicloud/huaweicloud-sdk-nat": "3.1.85", - "@huaweicloud/huaweicloud-sdk-ocr": "3.1.85", - "@huaweicloud/huaweicloud-sdk-oms": "3.1.85", - "@huaweicloud/huaweicloud-sdk-rabbitmq": "3.1.85", - "@huaweicloud/huaweicloud-sdk-rds": "3.1.85", - "@huaweicloud/huaweicloud-sdk-rms": "3.1.85", - "@huaweicloud/huaweicloud-sdk-rocketmq": "3.1.85", - "@huaweicloud/huaweicloud-sdk-secmaster": "3.1.85", - "@huaweicloud/huaweicloud-sdk-servicestage": "3.1.85", - "@huaweicloud/huaweicloud-sdk-sfsturbo": "3.1.85", - "@huaweicloud/huaweicloud-sdk-sis": "3.1.85", - "@huaweicloud/huaweicloud-sdk-smn": "3.1.85", - "@huaweicloud/huaweicloud-sdk-sms": "3.1.85", - "@huaweicloud/huaweicloud-sdk-swr": "3.1.85", - "@huaweicloud/huaweicloud-sdk-tics": "3.1.85", - "@huaweicloud/huaweicloud-sdk-tms": "3.1.85", - "@huaweicloud/huaweicloud-sdk-vod": "3.1.85", - "@huaweicloud/huaweicloud-sdk-vpc": "3.1.85", - "@huaweicloud/huaweicloud-sdk-vpcep": "3.1.85", - "@huaweicloud/huaweicloud-sdk-vpn": "3.1.85", - "@huaweicloud/huaweicloud-sdk-waf": "3.1.85" + "@huaweicloud/huaweicloud-sdk-aad": "3.1.86", + "@huaweicloud/huaweicloud-sdk-antiddos": "3.1.86", + "@huaweicloud/huaweicloud-sdk-aom": "3.1.86", + "@huaweicloud/huaweicloud-sdk-aos": "3.1.86", + "@huaweicloud/huaweicloud-sdk-apig": "3.1.86", + "@huaweicloud/huaweicloud-sdk-as": "3.1.86", + "@huaweicloud/huaweicloud-sdk-bms": "3.1.86", + "@huaweicloud/huaweicloud-sdk-cbh": "3.1.86", + "@huaweicloud/huaweicloud-sdk-cbr": "3.1.86", + "@huaweicloud/huaweicloud-sdk-cc": "3.1.86", + "@huaweicloud/huaweicloud-sdk-cce": "3.1.86", + "@huaweicloud/huaweicloud-sdk-cdm": "3.1.86", + "@huaweicloud/huaweicloud-sdk-cdn": "3.1.86", + "@huaweicloud/huaweicloud-sdk-ces": "3.1.86", + "@huaweicloud/huaweicloud-sdk-cfw": "3.1.86", + "@huaweicloud/huaweicloud-sdk-cloudrtc": "3.1.86", + "@huaweicloud/huaweicloud-sdk-cloudtable": "3.1.86", + "@huaweicloud/huaweicloud-sdk-codeartsartifact": "3.1.86", + "@huaweicloud/huaweicloud-sdk-codeartsbuild": "3.1.86", + "@huaweicloud/huaweicloud-sdk-codeartsdeploy": "3.1.86", + "@huaweicloud/huaweicloud-sdk-codeartspipeline": "3.1.86", + "@huaweicloud/huaweicloud-sdk-config": "3.1.86", + "@huaweicloud/huaweicloud-sdk-cse": "3.1.86", + "@huaweicloud/huaweicloud-sdk-csms": "3.1.86", + "@huaweicloud/huaweicloud-sdk-css": "3.1.86", + "@huaweicloud/huaweicloud-sdk-cts": "3.1.86", + "@huaweicloud/huaweicloud-sdk-dataartsstudio": "3.1.86", + "@huaweicloud/huaweicloud-sdk-dbss": "3.1.86", + "@huaweicloud/huaweicloud-sdk-dc": "3.1.86", + "@huaweicloud/huaweicloud-sdk-dcs": "3.1.86", + "@huaweicloud/huaweicloud-sdk-dds": "3.1.86", + "@huaweicloud/huaweicloud-sdk-devstar": "3.1.86", + "@huaweicloud/huaweicloud-sdk-dli": "3.1.86", + "@huaweicloud/huaweicloud-sdk-dns": "3.1.86", + "@huaweicloud/huaweicloud-sdk-drs": "3.1.86", + "@huaweicloud/huaweicloud-sdk-dsc": "3.1.86", + "@huaweicloud/huaweicloud-sdk-dws": "3.1.86", + "@huaweicloud/huaweicloud-sdk-ecs": "3.1.86", + "@huaweicloud/huaweicloud-sdk-eip": "3.1.86", + "@huaweicloud/huaweicloud-sdk-elb": "3.1.86", + "@huaweicloud/huaweicloud-sdk-eps": "3.1.86", + "@huaweicloud/huaweicloud-sdk-er": "3.1.86", + "@huaweicloud/huaweicloud-sdk-evs": "3.1.86", + "@huaweicloud/huaweicloud-sdk-frs": "3.1.86", + "@huaweicloud/huaweicloud-sdk-functiongraph": "3.1.86", + "@huaweicloud/huaweicloud-sdk-ga": "3.1.86", + "@huaweicloud/huaweicloud-sdk-gaussdb": "3.1.86", + "@huaweicloud/huaweicloud-sdk-gaussdbfornosql": "3.1.86", + "@huaweicloud/huaweicloud-sdk-gaussdbforopengauss": "3.1.86", + "@huaweicloud/huaweicloud-sdk-ges": "3.1.86", + "@huaweicloud/huaweicloud-sdk-hss": "3.1.86", + "@huaweicloud/huaweicloud-sdk-iam": "3.1.86", + "@huaweicloud/huaweicloud-sdk-iamaccessanalyzer": "3.1.86", + "@huaweicloud/huaweicloud-sdk-image": "3.1.86", + "@huaweicloud/huaweicloud-sdk-ims": "3.1.86", + "@huaweicloud/huaweicloud-sdk-iotda": "3.1.86", + "@huaweicloud/huaweicloud-sdk-ivs": "3.1.86", + "@huaweicloud/huaweicloud-sdk-kafka": "3.1.86", + "@huaweicloud/huaweicloud-sdk-kms": "3.1.86", + "@huaweicloud/huaweicloud-sdk-kps": "3.1.86", + "@huaweicloud/huaweicloud-sdk-live": "3.1.86", + "@huaweicloud/huaweicloud-sdk-lts": "3.1.86", + "@huaweicloud/huaweicloud-sdk-meeting": "3.1.86", + "@huaweicloud/huaweicloud-sdk-metastudio": "3.1.86", + "@huaweicloud/huaweicloud-sdk-moderation": "3.1.86", + "@huaweicloud/huaweicloud-sdk-mpc": "3.1.86", + "@huaweicloud/huaweicloud-sdk-mrs": "3.1.86", + "@huaweicloud/huaweicloud-sdk-msgsms": "3.1.86", + "@huaweicloud/huaweicloud-sdk-nat": "3.1.86", + "@huaweicloud/huaweicloud-sdk-ocr": "3.1.86", + "@huaweicloud/huaweicloud-sdk-oms": "3.1.86", + "@huaweicloud/huaweicloud-sdk-rabbitmq": "3.1.86", + "@huaweicloud/huaweicloud-sdk-rds": "3.1.86", + "@huaweicloud/huaweicloud-sdk-rms": "3.1.86", + "@huaweicloud/huaweicloud-sdk-rocketmq": "3.1.86", + "@huaweicloud/huaweicloud-sdk-secmaster": "3.1.86", + "@huaweicloud/huaweicloud-sdk-servicestage": "3.1.86", + "@huaweicloud/huaweicloud-sdk-sfsturbo": "3.1.86", + "@huaweicloud/huaweicloud-sdk-sis": "3.1.86", + "@huaweicloud/huaweicloud-sdk-smn": "3.1.86", + "@huaweicloud/huaweicloud-sdk-sms": "3.1.86", + "@huaweicloud/huaweicloud-sdk-swr": "3.1.86", + "@huaweicloud/huaweicloud-sdk-tics": "3.1.86", + "@huaweicloud/huaweicloud-sdk-tms": "3.1.86", + "@huaweicloud/huaweicloud-sdk-vod": "3.1.86", + "@huaweicloud/huaweicloud-sdk-vpc": "3.1.86", + "@huaweicloud/huaweicloud-sdk-vpcep": "3.1.86", + "@huaweicloud/huaweicloud-sdk-vpn": "3.1.86", + "@huaweicloud/huaweicloud-sdk-waf": "3.1.86" }, "files": ["package.json"] } diff --git a/package.json b/package.json index cdbb89d4b..f791c7c4d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "huaweicloud-sdk-nodejs-v3", - "version": "3.1.85", + "version": "3.1.86", "description": "Core code for Huaweicloud SDK for Node.js", "main": "index.js", "scripts": { diff --git a/services/bms/v1/model/ImageInfo.ts b/services/bms/v1/model/ImageInfo.ts index d9ce0fe5e..306a29d1f 100644 --- a/services/bms/v1/model/ImageInfo.ts +++ b/services/bms/v1/model/ImageInfo.ts @@ -1,43 +1,11 @@ -import { Links } from './Links'; export class ImageInfo { public id?: string; - public name?: string; - private '__os_type'?: ImageInfoOsTypeEnum | string; - public links?: Array; public constructor() { } public withId(id: string): ImageInfo { this['id'] = id; return this; } - public withName(name: string): ImageInfo { - this['name'] = name; - return this; - } - public withOsType(osType: ImageInfoOsTypeEnum | string): ImageInfo { - this['__os_type'] = osType; - return this; - } - public set osType(osType: ImageInfoOsTypeEnum | string | undefined) { - this['__os_type'] = osType; - } - public get osType(): ImageInfoOsTypeEnum | string | undefined { - return this['__os_type']; - } - public withLinks(links: Array): ImageInfo { - this['links'] = links; - return this; - } -} - -/** - * @export - * @enum {string} - */ -export enum ImageInfoOsTypeEnum { - LINUX = 'Linux', - WINDOWS = 'Windows', - OTHER = 'Other' -} +} \ No newline at end of file diff --git a/services/dds/v3/DdsClient.ts b/services/dds/v3/DdsClient.ts index afc2db59b..59251d42a 100644 --- a/services/dds/v3/DdsClient.ts +++ b/services/dds/v3/DdsClient.ts @@ -1506,7 +1506,7 @@ export class DdsClient { * @param {string} [planSummary] 执行计划描述。取空值表示查询所有语句类型,也可指定执行计划,例如: COLLSCAN IXSCAN FETCH SORT LIMIT SKIP COUNT COUNT_SCAN TEXT PROJECTION 等 * @param {string} [type] 操作类型。取空值表示查询所有操作类型。也可指定操作类型,例如: none update insert query command getmore remove killcursors等 * @param {string} [namespace] 命名空间。取空值表示查询所有命名空间。也可根据当前业务进行指定。 - * @param {number} [costTime] 运行时间,单位为 ms。取空值表示查询所有的运行时间。也可根据当前业务需要进行配置,表示查询超出 cost_time 的会话。 + * @param {number} [costTime] 运行时间,单位为 us。取空值表示查询所有的运行时间。也可根据当前业务需要进行配置,表示查询超出 cost_time 的会话。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ diff --git a/services/dds/v3/DdsRegion.ts b/services/dds/v3/DdsRegion.ts index 32a3bc3ab..fce3edfda 100644 --- a/services/dds/v3/DdsRegion.ts +++ b/services/dds/v3/DdsRegion.ts @@ -29,6 +29,7 @@ export class DdsRegion { public static TR_WEST_1 = new Region("tr-west-1", ["https://dds.tr-west-1.myhuaweicloud.com"]); public static AP_SOUTHEAST_4 = new Region("ap-southeast-4", ["https://dds.ap-southeast-4.myhuaweicloud.com"]); public static EU_WEST_0 = new Region("eu-west-0", ["https://dds.eu-west-0.myhuaweicloud.com"]); + public static MY_KUALALUMPUR_1 = new Region("my-kualalumpur-1", ["https://dd.my-kualalumpur-1.myhuaweicloud.com"]); private static REGION_MAP: RegionMap = { @@ -54,7 +55,8 @@ export class DdsRegion { "me-east-1":DdsRegion.ME_EAST_1, "tr-west-1":DdsRegion.TR_WEST_1, "ap-southeast-4":DdsRegion.AP_SOUTHEAST_4, - "eu-west-0":DdsRegion.EU_WEST_0 + "eu-west-0":DdsRegion.EU_WEST_0, + "my-kualalumpur-1":DdsRegion.MY_KUALALUMPUR_1 }; public static valueOf(regionId: string) { diff --git a/services/dsc/v1/DscRegion.ts b/services/dsc/v1/DscRegion.ts index 37f05a80c..ce766e4ff 100644 --- a/services/dsc/v1/DscRegion.ts +++ b/services/dsc/v1/DscRegion.ts @@ -21,6 +21,7 @@ export class DscRegion { public static AF_SOUTH_1 = new Region("af-south-1", ["https://sdg.af-south-1.myhuaweicloud.com"]); public static LA_NORTH_2 = new Region("la-north-2", ["https://sdg.la-north-2.myhuaweicloud.com"]); public static TR_WEST_1 = new Region("tr-west-1", ["https://sdg.tr-west-1.myhuaweicloud.com"]); + public static EU_WEST_101 = new Region("eu-west-101", ["https://sdg.eu-west-101.myhuaweicloud.com"]); private static REGION_MAP: RegionMap = { @@ -38,7 +39,8 @@ export class DscRegion { "la-south-2":DscRegion.LA_SOUTH_2, "af-south-1":DscRegion.AF_SOUTH_1, "la-north-2":DscRegion.LA_NORTH_2, - "tr-west-1":DscRegion.TR_WEST_1 + "tr-west-1":DscRegion.TR_WEST_1, + "eu-west-101":DscRegion.EU_WEST_101 }; public static valueOf(regionId: string) { diff --git a/services/ecs/v2/EcsClient.ts b/services/ecs/v2/EcsClient.ts index 033c13554..ec07efb31 100644 --- a/services/ecs/v2/EcsClient.ts +++ b/services/ecs/v2/EcsClient.ts @@ -174,6 +174,8 @@ import { NovaListServerSecurityGroupsRequest } from './model/NovaListServerSecur import { NovaListServerSecurityGroupsResponse } from './model/NovaListServerSecurityGroupsResponse'; import { NovaListServersDetailsRequest } from './model/NovaListServersDetailsRequest'; import { NovaListServersDetailsResponse } from './model/NovaListServersDetailsResponse'; +import { NovaListVersionsRequest } from './model/NovaListVersionsRequest'; +import { NovaListVersionsResponse } from './model/NovaListVersionsResponse'; import { NovaNetwork } from './model/NovaNetwork'; import { NovaRemoveSecurityGroupOption } from './model/NovaRemoveSecurityGroupOption'; import { NovaSecurityGroup } from './model/NovaSecurityGroup'; @@ -197,7 +199,12 @@ import { NovaShowServerInterfaceRequest } from './model/NovaShowServerInterfaceR import { NovaShowServerInterfaceResponse } from './model/NovaShowServerInterfaceResponse'; import { NovaShowServerRequest } from './model/NovaShowServerRequest'; import { NovaShowServerResponse } from './model/NovaShowServerResponse'; +import { NovaShowVersionRequest } from './model/NovaShowVersionRequest'; +import { NovaShowVersionResponse } from './model/NovaShowVersionResponse'; import { NovaSimpleKeypair } from './model/NovaSimpleKeypair'; +import { NovaVersion } from './model/NovaVersion'; +import { NovaVersionDetail } from './model/NovaVersionDetail'; +import { NovaVersionMediaType } from './model/NovaVersionMediaType'; import { PageLink } from './model/PageLink'; import { PostPaidServer } from './model/PostPaidServer'; import { PostPaidServerDataVolume } from './model/PostPaidServerDataVolume'; @@ -1858,6 +1865,52 @@ export class EcsClient { return this.hcClient.sendRequest(options); } + /** + * 返回Nova当前所有可用的版本。 + * + * 为了支持功能不断扩展,Nova API支持版本号区分。Nova中有两种形式的版本号: + * + * - \"主版本号\": 具有独立的url。 + * - \"微版本号\": 通过Http请求头X-OpenStack-Nova-API-Version来使用,从2.27版本后更改为OpenStack-API-Version。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询API版本信息列表 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public novaListVersions(novaListVersionsRequest?: NovaListVersionsRequest): Promise { + const options = ParamCreater().novaListVersions(); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 返回指定版本的信息。 + * 为了支持功能不断扩展,Nova API支持版本号区分。Nova中有两种形式的版本号: + * + * - \"主版本号\": 具有独立的url。 + * - \"微版本号\": 通过Http请求头X-OpenStack-Nova-API-Version来使用,从2.27版本后更改为OpenStack-API-Version。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询指定API版本信息 + * @param {string} apiVersion API版本号。例如: v2 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public novaShowVersion(novaShowVersionRequest?: NovaShowVersionRequest): Promise { + const options = ParamCreater().novaShowVersion(novaShowVersionRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 查询Job的执行状态。 * @@ -5175,6 +5228,73 @@ export const ParamCreater = function () { return options; }, + /** + * 返回Nova当前所有可用的版本。 + * + * 为了支持功能不断扩展,Nova API支持版本号区分。Nova中有两种形式的版本号: + * + * - \"主版本号\": 具有独立的url。 + * - \"微版本号\": 通过Http请求头X-OpenStack-Nova-API-Version来使用,从2.27版本后更改为OpenStack-API-Version。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + novaListVersions() { + const options = { + method: "GET", + url: "/", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 返回指定版本的信息。 + * 为了支持功能不断扩展,Nova API支持版本号区分。Nova中有两种形式的版本号: + * + * - \"主版本号\": 具有独立的url。 + * - \"微版本号\": 通过Http请求头X-OpenStack-Nova-API-Version来使用,从2.27版本后更改为OpenStack-API-Version。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + novaShowVersion(novaShowVersionRequest?: NovaShowVersionRequest) { + const options = { + method: "GET", + url: "/{api_version}", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let apiVersion; + + if (novaShowVersionRequest !== null && novaShowVersionRequest !== undefined) { + if (novaShowVersionRequest instanceof NovaShowVersionRequest) { + apiVersion = novaShowVersionRequest.apiVersion; + } else { + apiVersion = novaShowVersionRequest['api_version']; + } + } + + + if (apiVersion === null || apiVersion === undefined) { + throw new RequiredError('apiVersion','Required parameter apiVersion was null or undefined when calling novaShowVersion.'); + } + + options.pathParams = { 'api_version': apiVersion, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 查询Job的执行状态。 * diff --git a/services/ecs/v2/model/NovaListVersionsRequest.ts b/services/ecs/v2/model/NovaListVersionsRequest.ts new file mode 100644 index 000000000..abf5845a3 --- /dev/null +++ b/services/ecs/v2/model/NovaListVersionsRequest.ts @@ -0,0 +1,6 @@ + + +export class NovaListVersionsRequest { + public constructor() { + } +} \ No newline at end of file diff --git a/services/ecs/v2/model/NovaListVersionsResponse.ts b/services/ecs/v2/model/NovaListVersionsResponse.ts new file mode 100644 index 000000000..5dde7a3ee --- /dev/null +++ b/services/ecs/v2/model/NovaListVersionsResponse.ts @@ -0,0 +1,14 @@ +import { NovaVersion } from './NovaVersion'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class NovaListVersionsResponse extends SdkResponse { + public versions?: Array; + public constructor() { + super(); + } + public withVersions(versions: Array): NovaListVersionsResponse { + this['versions'] = versions; + return this; + } +} \ No newline at end of file diff --git a/services/ecs/v2/model/NovaShowVersionRequest.ts b/services/ecs/v2/model/NovaShowVersionRequest.ts new file mode 100644 index 000000000..30724525b --- /dev/null +++ b/services/ecs/v2/model/NovaShowVersionRequest.ts @@ -0,0 +1,18 @@ + + +export class NovaShowVersionRequest { + private 'api_version'?: string; + public constructor(apiVersion?: string) { + this['api_version'] = apiVersion; + } + public withApiVersion(apiVersion: string): NovaShowVersionRequest { + this['api_version'] = apiVersion; + return this; + } + public set apiVersion(apiVersion: string | undefined) { + this['api_version'] = apiVersion; + } + public get apiVersion(): string | undefined { + return this['api_version']; + } +} \ No newline at end of file diff --git a/services/ecs/v2/model/NovaShowVersionResponse.ts b/services/ecs/v2/model/NovaShowVersionResponse.ts new file mode 100644 index 000000000..29896cf6a --- /dev/null +++ b/services/ecs/v2/model/NovaShowVersionResponse.ts @@ -0,0 +1,14 @@ +import { NovaVersionDetail } from './NovaVersionDetail'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class NovaShowVersionResponse extends SdkResponse { + public version?: NovaVersionDetail; + public constructor() { + super(); + } + public withVersion(version: NovaVersionDetail): NovaShowVersionResponse { + this['version'] = version; + return this; + } +} \ No newline at end of file diff --git a/services/ecs/v2/model/NovaVersion.ts b/services/ecs/v2/model/NovaVersion.ts new file mode 100644 index 000000000..2d4bf093e --- /dev/null +++ b/services/ecs/v2/model/NovaVersion.ts @@ -0,0 +1,59 @@ +import { NovaLink } from './NovaLink'; + + +export class NovaVersion { + public id?: string; + public links?: Array; + private 'min_version'?: string; + public status?: NovaVersionStatusEnum | string; + public version?: string; + public updated?: string; + public constructor(id?: string, links?: Array, minVersion?: string, status?: string, version?: string, updated?: string) { + this['id'] = id; + this['links'] = links; + this['min_version'] = minVersion; + this['status'] = status; + this['version'] = version; + this['updated'] = updated; + } + public withId(id: string): NovaVersion { + this['id'] = id; + return this; + } + public withLinks(links: Array): NovaVersion { + this['links'] = links; + return this; + } + public withMinVersion(minVersion: string): NovaVersion { + this['min_version'] = minVersion; + return this; + } + public set minVersion(minVersion: string | undefined) { + this['min_version'] = minVersion; + } + public get minVersion(): string | undefined { + return this['min_version']; + } + public withStatus(status: NovaVersionStatusEnum | string): NovaVersion { + this['status'] = status; + return this; + } + public withVersion(version: string): NovaVersion { + this['version'] = version; + return this; + } + public withUpdated(updated: string): NovaVersion { + this['updated'] = updated; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum NovaVersionStatusEnum { + CURRENT = 'CURRENT', + SUPPORTED = 'SUPPORTED', + DEPRECATED = 'DEPRECATED' +} diff --git a/services/ecs/v2/model/NovaVersionDetail.ts b/services/ecs/v2/model/NovaVersionDetail.ts new file mode 100644 index 000000000..7b397dbd5 --- /dev/null +++ b/services/ecs/v2/model/NovaVersionDetail.ts @@ -0,0 +1,72 @@ +import { NovaLink } from './NovaLink'; +import { NovaVersionMediaType } from './NovaVersionMediaType'; + + +export class NovaVersionDetail { + public id?: string; + public links?: Array; + private 'media-types'?: Array; + private 'min_version'?: string; + public status?: NovaVersionDetailStatusEnum | string; + public updated?: string; + public version?: string; + public constructor(id?: string, links?: Array, mediaTypes?: Array, minVersion?: string, status?: string, updated?: string, version?: string) { + this['id'] = id; + this['links'] = links; + this['media-types'] = mediaTypes; + this['min_version'] = minVersion; + this['status'] = status; + this['updated'] = updated; + this['version'] = version; + } + public withId(id: string): NovaVersionDetail { + this['id'] = id; + return this; + } + public withLinks(links: Array): NovaVersionDetail { + this['links'] = links; + return this; + } + public withMediaTypes(mediaTypes: Array): NovaVersionDetail { + this['media-types'] = mediaTypes; + return this; + } + public set mediaTypes(mediaTypes: Array | undefined) { + this['media-types'] = mediaTypes; + } + public get mediaTypes(): Array | undefined { + return this['media-types']; + } + public withMinVersion(minVersion: string): NovaVersionDetail { + this['min_version'] = minVersion; + return this; + } + public set minVersion(minVersion: string | undefined) { + this['min_version'] = minVersion; + } + public get minVersion(): string | undefined { + return this['min_version']; + } + public withStatus(status: NovaVersionDetailStatusEnum | string): NovaVersionDetail { + this['status'] = status; + return this; + } + public withUpdated(updated: string): NovaVersionDetail { + this['updated'] = updated; + return this; + } + public withVersion(version: string): NovaVersionDetail { + this['version'] = version; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum NovaVersionDetailStatusEnum { + CURRENT = 'CURRENT', + SUPPORTED = 'SUPPORTED', + DEPRECATED = 'DEPRECATED' +} diff --git a/services/ecs/v2/model/NovaVersionMediaType.ts b/services/ecs/v2/model/NovaVersionMediaType.ts new file mode 100644 index 000000000..6612f683b --- /dev/null +++ b/services/ecs/v2/model/NovaVersionMediaType.ts @@ -0,0 +1,18 @@ + + +export class NovaVersionMediaType { + public base?: string; + public type?: string; + public constructor(base?: string, type?: string) { + this['base'] = base; + this['type'] = type; + } + public withBase(base: string): NovaVersionMediaType { + this['base'] = base; + return this; + } + public withType(type: string): NovaVersionMediaType { + this['type'] = type; + return this; + } +} \ No newline at end of file diff --git a/services/ecs/v2/public-api.ts b/services/ecs/v2/public-api.ts index 0f2a90966..d31a18a43 100644 --- a/services/ecs/v2/public-api.ts +++ b/services/ecs/v2/public-api.ts @@ -172,6 +172,8 @@ export * from './model/NovaListServerSecurityGroupsRequest'; export * from './model/NovaListServerSecurityGroupsResponse'; export * from './model/NovaListServersDetailsRequest'; export * from './model/NovaListServersDetailsResponse'; +export * from './model/NovaListVersionsRequest'; +export * from './model/NovaListVersionsResponse'; export * from './model/NovaNetwork'; export * from './model/NovaRemoveSecurityGroupOption'; export * from './model/NovaSecurityGroup'; @@ -195,7 +197,12 @@ export * from './model/NovaShowServerInterfaceRequest'; export * from './model/NovaShowServerInterfaceResponse'; export * from './model/NovaShowServerRequest'; export * from './model/NovaShowServerResponse'; +export * from './model/NovaShowVersionRequest'; +export * from './model/NovaShowVersionResponse'; export * from './model/NovaSimpleKeypair'; +export * from './model/NovaVersion'; +export * from './model/NovaVersionDetail'; +export * from './model/NovaVersionMediaType'; export * from './model/PageLink'; export * from './model/PostPaidServer'; export * from './model/PostPaidServerDataVolume'; diff --git a/services/kps/v3/model/Encryption.ts b/services/kps/v3/model/Encryption.ts index b3580c952..d1fac073e 100644 --- a/services/kps/v3/model/Encryption.ts +++ b/services/kps/v3/model/Encryption.ts @@ -3,9 +3,9 @@ export class Encryption { public type?: EncryptionTypeEnum | string; private 'kms_key_name'?: string; - public constructor(type?: string, kmsKeyName?: string) { + private 'kms_key_id'?: string; + public constructor(type?: string) { this['type'] = type; - this['kms_key_name'] = kmsKeyName; } public withType(type: EncryptionTypeEnum | string): Encryption { this['type'] = type; @@ -21,6 +21,16 @@ export class Encryption { public get kmsKeyName(): string | undefined { return this['kms_key_name']; } + public withKmsKeyId(kmsKeyId: string): Encryption { + this['kms_key_id'] = kmsKeyId; + return this; + } + public set kmsKeyId(kmsKeyId: string | undefined) { + this['kms_key_id'] = kmsKeyId; + } + public get kmsKeyId(): string | undefined { + return this['kms_key_id']; + } } /**