Skip to content

Commit

Permalink
release 3.0.11-beta source code for nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaweicloud-SDK committed Aug 1, 2021
1 parent d9bb87d commit 8fa210d
Show file tree
Hide file tree
Showing 16 changed files with 78 additions and 33 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# 3.0.11-beta 2021-7-30

### HuaweiCloud SDK IMS

- _Features_
- None
- _Bug Fix_
- [Issue 40](https://github.com/huaweicloud/huaweicloud-sdk-java-v3/issues/40): Fix the issue that the type of the response parameter `__lazyloading` is incorrectly defined.
- _Change_
- None

# 3.0.10-beta 2021-07-09

### HuaweiCloud SDK Core
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# 3.0.11-beta 2021-7-30
### HuaweiCloud SDK IMS

- _新增特性_
-
- _解决问题_
- [Issue 40](https://github.com/huaweicloud/huaweicloud-sdk-java-v3/issues/40): 修复响应参数`__lazyloading`类型定义错误的问题
- _特性变更_
-

# 3.0.10-beta 2021-07-09

### HuaweiCloud SDK Core
Expand Down
10 changes: 2 additions & 8 deletions core/ClientBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,8 @@ export class ClientBuilder<T> {

if (this.credential === null || this.credential === undefined) {
this.credential = this.getCredentialFromEnvironment();
}

if (this.credential !== null && this.credential !== undefined) {
if (this.credentialType.indexOf(this.credential.constructor.name) < 0) {
throw new RequiredError('credentialType', "This client need input " + this.credentialType.toString() + " credential object");
}
}

}

const client = new DefaultHttpClient(axiosOptions);
const hcClient = new HcClient(client);
hcClient.withEndpoint(this.endpoint).withCredential(this.credential);
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": "huaweicloud-sdk-nodejs-v3",
"version": "3.0.10-beta",
"version": "3.0.11-beta",
"description": "Core code for Huaweicloud SDK for Node.js",
"main": "index.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions services/ecs/v2/EcsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ export class EcsClient {
/**
* 查询云服务器规格详情信息和规格扩展信息列表。
* @summary 查询规格详情和规格扩展信息列表
* @param {string} [availabilityZone] 可用区,需要指定可用区(AZ)的名称或者ID或者code。
* @param {string} [availabilityZone] 可用区,需要指定可用区(AZ)的名称或者ID或者code。 可通过接口 [查询可用区列表接口](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product&#x3D;ECS&amp;api&#x3D;NovaListAvailabilityZones) 获取,也可参考[地区和终端节点](https://developer.huaweicloud.com/endpoint)获取。
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
Expand Down Expand Up @@ -585,7 +585,7 @@ export class EcsClient {
* @param {string} [notTags] 查询tag字段中不包含该值的云服务器。
* @param {number} [offset] 页码。 当前页面数,默认为1。 取值大于等于0,取值为0时返回第1页。
* @param {string} [reservationId] 批量创建弹性云服务器时,指定返回的ID,用于查询本次批量创建的弹性云服务器。
* @param {string} [status] 云服务器状态。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 只有管理员可以使用“deleted”状态过滤查询已经删除的弹性云服务器。
* @param {string} [status] 云服务器状态。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 只有管理员可以使用“deleted”状态过滤查询已经删除的弹性云服务器。 弹性云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)
* @param {string} [tags] 查询tag字段中包含该值的云服务器。
* @param {*} [options] Override http request option.
* @throws {RequiredError}
Expand Down Expand Up @@ -731,7 +731,7 @@ export class EcsClient {
* @param {string} [notTags] 查询tag字段中不包含该值的云服务器,值为标签的Key。 &gt; 说明: &gt; &gt; 系统近期对标签功能进行了升级。如果之前添加的Tag为“Key.Value”的形式,则查询的时候需要使用“Key”来查询。 &gt; &gt; 例如:之前添加的tag为“a.b”,则升级后,查询时需使用“not-tags&#x3D;a”。
* @param {string} [reservationId] 批量创建弹性云服务器时,指定返回的ID,用于查询本次批量创建的弹性云服务器。
* @param {'created_at' | 'availability_zone' | 'display_name' | 'host' | 'instance_type_id' | 'key_name' | 'project_id' | 'user_id' | 'updated_at' | 'uuid' | 'vm_state'} [sortKey] 查询结果按弹性云服务器属性排序,默认排序顺序为created_at逆序。
* @param {'ACTIVE' | 'BUILD' | 'DELETED' | 'ERROR' | 'HARD_REBOOT' | 'MIGRATING' | 'REBOOT' | 'RESIZE' | 'REVERT_RESIZE' | 'SHELVED' | 'SHELVED_OFFLOADED' | 'SHUTOFF' | 'UNKNOWN' | 'VERIFY_RESIZE'} [status] 云服务器状态。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 直到2.37微版本,非上面范围的status字段将返回空列表,2.38之后的微版本,将返回400错误。
* @param {'ACTIVE' | 'BUILD' | 'DELETED' | 'ERROR' | 'HARD_REBOOT' | 'MIGRATING' | 'REBOOT' | 'RESIZE' | 'REVERT_RESIZE' | 'SHELVED' | 'SHELVED_OFFLOADED' | 'SHUTOFF' | 'UNKNOWN' | 'VERIFY_RESIZE'} [status] 云服务器状态。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 直到2.37微版本,非上面范围的status字段将返回空列表,2.38之后的微版本,将返回400错误。 云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)
* @param {string} [tags] 查询tag字段中包含该值的云服务器。
* @param {string} [openStackAPIVersion] 微版本头
* @param {*} [options] Override http request option.
Expand Down
4 changes: 2 additions & 2 deletions services/ims/v2/ImsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export class ImsClient {
* @param {'true' | 'false'} [isregistered] 镜像是否可用,取值为true,扩展接口会默认为true,普通用户只能查询取值为true的镜像。
* @param {'32' | '64'} [osBit] 操作系统位数,一般取值为32或者64。
* @param {'Linux' | 'Windows' | 'Other'} [osType] 镜像系统类型,取值为Linux,Windows,Other。
* @param {'Windows' | 'Ubuntu' | 'RedHat' | 'SUSE' | 'CentOS' | 'Debian' | 'OpenSUSE' | 'Oracle Linux' | 'Fedora' | 'Other' | 'CoreOS' | 'EuleOS'} [platform] 镜像平台分类
* @param {'Windows' | 'Ubuntu' | 'RedHat' | 'SUSE' | 'CentOS' | 'Debian' | 'OpenSUSE' | 'Oracle Linux' | 'Fedora' | 'Other' | 'CoreOS' | 'EulerOS'} [platform] 镜像平台分类
* @param {string} [supportDiskintensive] 表示该镜像支持密集存储。如果镜像支持密集存储性能,则值为true,否则无需增加该属性。
* @param {string} [supportHighperformance] 表示该镜像支持高计算性能。如果镜像支持高计算性能,则值为true,否则无需增加该属性。
* @param {string} [supportKvm] 如果镜像支持KVM,取值为true,否则无需增加该属性。
Expand Down Expand Up @@ -629,7 +629,7 @@ export class ImsClient {
* @param {boolean} [isregistered] 镜像是否是受保护,取值为true/false。一般查询公共镜像时候取值为true,查询私有镜像可以不指定。
* @param {'32' | '64'} [osBit] 操作系统位数,一般取值为32或者64
* @param {'Linux' | 'Windows' | 'Other'} [osType] 镜像系统类型,取值为Linux,Windows,Other
* @param {'Windows' | 'Ubuntu' | 'RedHat' | 'SUSE' | 'CentOS' | 'Debian' | 'OpenSUSE' | 'Oracle Linux' | 'Fedora' | 'Other' | 'CoreOS' | 'EuleOS'} [platform] 镜像平台分类,取值为Windows,Ubuntu,RedHat,SUSE,CentOS,Debian,OpenSUSE, Oracle Linux,Fedora,Other,CoreOS和EuleOS
* @param {'Windows' | 'Ubuntu' | 'RedHat' | 'SUSE' | 'CentOS' | 'Debian' | 'OpenSUSE' | 'Oracle Linux' | 'Fedora' | 'Other' | 'CoreOS' | 'EulerOS'} [platform] 镜像平台分类,取值为Windows,Ubuntu,RedHat,SUSE,CentOS,Debian,OpenSUSE, Oracle Linux,Fedora,Other,CoreOS和EulerOS
* @param {string} [supportDiskintensive] 表示该镜像支持密集存储。如果镜像支持密集存储性能,则值为true,否则无需增加该属性
* @param {string} [supportHighperformance] 表示该镜像支持高计算性能。如果镜像支持高计算性能,则值为true,否则无需增加该属性
* @param {string} [supportKvm] 如果镜像支持KVM,取值为true,否则无需增加该属性
Expand Down
2 changes: 1 addition & 1 deletion services/ims/v2/model/GlanceListImagesRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export enum GlanceListImagesRequestPlatformEnum {
FEDORA = 'Fedora',
OTHER = 'Other',
COREOS = 'CoreOS',
EULEOS = 'EuleOS'
EULEROS = 'EulerOS'
}
/**
* @export
Expand Down
6 changes: 3 additions & 3 deletions services/ims/v2/model/GlanceShowImageResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class GlanceShowImageResponse extends SdkResponse {
private 'hw_firmware_type'?: GlanceShowImageResponseHwFirmwareTypeEnum | undefined;
private '__support_arm'?: GlanceShowImageResponseSupportArmEnum | undefined;
private '__is_offshelved'?: GlanceShowImageResponseIsOffshelvedEnum | undefined;
private '__lazyloading'?: boolean | undefined;
private '__lazyloading'?: string | undefined;
private '__os_feature_list'?: string | undefined;
private '__root_origin'?: string | undefined;
private '__sequence_num'?: string | undefined;
Expand Down Expand Up @@ -468,11 +468,11 @@ export class GlanceShowImageResponse extends SdkResponse {
public get isOffshelved() {
return this['__is_offshelved'];
}
public withLazyloading(lazyloading: boolean): GlanceShowImageResponse {
public withLazyloading(lazyloading: string): GlanceShowImageResponse {
this['__lazyloading'] = lazyloading;
return this;
}
public set lazyloading(lazyloading: boolean | undefined) {
public set lazyloading(lazyloading: string | undefined) {
this['__lazyloading'] = lazyloading;
}
public get lazyloading() {
Expand Down
6 changes: 3 additions & 3 deletions services/ims/v2/model/GlanceShowImageResponseBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class GlanceShowImageResponseBody {
private 'hw_firmware_type': GlanceShowImageResponseBodyHwFirmwareTypeEnum | undefined;
private '__support_arm': GlanceShowImageResponseBodySupportArmEnum | undefined;
private '__is_offshelved': GlanceShowImageResponseBodyIsOffshelvedEnum | undefined;
private '__lazyloading': boolean | undefined;
private '__lazyloading': string | undefined;
private '__os_feature_list': string | undefined;
private '__root_origin': string | undefined;
private '__sequence_num': string | undefined;
Expand Down Expand Up @@ -525,11 +525,11 @@ export class GlanceShowImageResponseBody {
public get isOffshelved() {
return this['__is_offshelved'];
}
public withLazyloading(lazyloading: boolean): GlanceShowImageResponseBody {
public withLazyloading(lazyloading: string): GlanceShowImageResponseBody {
this['__lazyloading'] = lazyloading;
return this;
}
public set lazyloading(lazyloading: boolean | undefined) {
public set lazyloading(lazyloading: string | undefined) {
this['__lazyloading'] = lazyloading;
}
public get lazyloading() {
Expand Down
6 changes: 3 additions & 3 deletions services/ims/v2/model/GlanceUpdateImageResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class GlanceUpdateImageResponse extends SdkResponse {
private 'hw_firmware_type'?: GlanceUpdateImageResponseHwFirmwareTypeEnum | undefined;
private '__support_arm'?: GlanceUpdateImageResponseSupportArmEnum | undefined;
private '__is_offshelved'?: GlanceUpdateImageResponseIsOffshelvedEnum | undefined;
private '__lazyloading'?: boolean | undefined;
private '__lazyloading'?: string | undefined;
private '__os_feature_list'?: string | undefined;
private '__root_origin'?: string | undefined;
private '__sequence_num'?: string | undefined;
Expand Down Expand Up @@ -468,11 +468,11 @@ export class GlanceUpdateImageResponse extends SdkResponse {
public get isOffshelved() {
return this['__is_offshelved'];
}
public withLazyloading(lazyloading: boolean): GlanceUpdateImageResponse {
public withLazyloading(lazyloading: string): GlanceUpdateImageResponse {
this['__lazyloading'] = lazyloading;
return this;
}
public set lazyloading(lazyloading: boolean | undefined) {
public set lazyloading(lazyloading: string | undefined) {
this['__lazyloading'] = lazyloading;
}
public get lazyloading() {
Expand Down
6 changes: 3 additions & 3 deletions services/ims/v2/model/ImageInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class ImageInfo {
private '__account_code'?: string | undefined;
private 'hw_vif_multiqueue_enabled'?: string | undefined;
private '__is_offshelved': string | undefined;
private '__lazyloading': boolean | undefined;
private '__lazyloading': string | undefined;
private '__root_origin': string | undefined;
private '__sequence_num': string | undefined;
private 'active_at': string | undefined;
Expand Down Expand Up @@ -559,11 +559,11 @@ export class ImageInfo {
public get isOffshelved() {
return this['__is_offshelved'];
}
public withLazyloading(lazyloading: boolean): ImageInfo {
public withLazyloading(lazyloading: string): ImageInfo {
this['__lazyloading'] = lazyloading;
return this;
}
public set lazyloading(lazyloading: boolean | undefined) {
public set lazyloading(lazyloading: string | undefined) {
this['__lazyloading'] = lazyloading;
}
public get lazyloading() {
Expand Down
2 changes: 1 addition & 1 deletion services/ims/v2/model/ListImagesRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ export enum ListImagesRequestPlatformEnum {
FEDORA = 'Fedora',
OTHER = 'Other',
COREOS = 'CoreOS',
EULEOS = 'EuleOS'
EULEROS = 'EulerOS'
}
/**
* @export
Expand Down
6 changes: 3 additions & 3 deletions services/ims/v2/model/UpdateImageResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class UpdateImageResponse extends SdkResponse {
private '__account_code'?: string | undefined;
private 'hw_vif_multiqueue_enabled'?: string | undefined;
private '__is_offshelved'?: string | undefined;
private '__lazyloading'?: boolean | undefined;
private '__lazyloading'?: string | undefined;
private '__root_origin'?: string | undefined;
private '__sequence_num'?: string | undefined;
private 'active_at'?: string | undefined;
Expand Down Expand Up @@ -527,11 +527,11 @@ export class UpdateImageResponse extends SdkResponse {
public get isOffshelved() {
return this['__is_offshelved'];
}
public withLazyloading(lazyloading: boolean): UpdateImageResponse {
public withLazyloading(lazyloading: string): UpdateImageResponse {
this['__lazyloading'] = lazyloading;
return this;
}
public set lazyloading(lazyloading: boolean | undefined) {
public set lazyloading(lazyloading: string | undefined) {
this['__lazyloading'] = lazyloading;
}
public get lazyloading() {
Expand Down
14 changes: 13 additions & 1 deletion services/vpc/v2/model/NeutronFirewallRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,22 @@ export class NeutronFirewallRule {
public protocol: string;
private 'ip_version': number | undefined;
public enabled: boolean;
private 'public': boolean | undefined;
private 'destination_ip_address': string | undefined;
private 'destination_port': string | undefined;
private 'source_ip_address': string | undefined;
private 'source_port': string | undefined;
private 'tenant_id': string | undefined;
private 'project_id': string | undefined;
public constructor(id?: any, name?: any, description?: any, action?: any, protocol?: any, ipVersion?: any, enabled?: any, destinationIpAddress?: any, destinationPort?: any, sourceIpAddress?: any, sourcePort?: any, tenantId?: any, projectId?: any) {
public constructor(id?: any, name?: any, description?: any, action?: any, protocol?: any, ipVersion?: any, enabled?: any, _public?: any, destinationIpAddress?: any, destinationPort?: any, sourceIpAddress?: any, sourcePort?: any, tenantId?: any, projectId?: any) {
this['id'] = id;
this['name'] = name;
this['description'] = description;
this['action'] = action;
this['protocol'] = protocol;
this['ip_version'] = ipVersion;
this['enabled'] = enabled;
this['public'] = _public;
this['destination_ip_address'] = destinationIpAddress;
this['destination_port'] = destinationPort;
this['source_ip_address'] = sourceIpAddress;
Expand Down Expand Up @@ -63,6 +65,16 @@ export class NeutronFirewallRule {
this['enabled'] = enabled;
return this;
}
public withPublic(_public: boolean): NeutronFirewallRule {
this['public'] = _public;
return this;
}
public set _public(_public: boolean | undefined) {
this['public'] = _public;
}
public get _public() {
return this['public'];
}
public withDestinationIpAddress(destinationIpAddress: string): NeutronFirewallRule {
this['destination_ip_address'] = destinationIpAddress;
return this;
Expand Down
14 changes: 13 additions & 1 deletion services/vpc/v2/model/Port.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export class Port {
private 'instance_id': string | undefined;
private 'instance_type': string | undefined;
private 'port_security_enabled': boolean | undefined;
public constructor(id?: any, name?: any, networkId?: any, adminStateUp?: any, macAddress?: any, fixedIps?: any, deviceId?: any, deviceOwner?: any, tenantId?: any, status?: any, securityGroups?: any, allowedAddressPairs?: any, extraDhcpOpts?: any, bindingVnicType?: any, dnsAssignment?: any, dnsName?: any, bindingVifDetails?: any, bindingProfile?: any, instanceId?: any, instanceType?: any, portSecurityEnabled?: any) {
private 'zone_id': string | undefined;
public constructor(id?: any, name?: any, networkId?: any, adminStateUp?: any, macAddress?: any, fixedIps?: any, deviceId?: any, deviceOwner?: any, tenantId?: any, status?: any, securityGroups?: any, allowedAddressPairs?: any, extraDhcpOpts?: any, bindingVnicType?: any, dnsAssignment?: any, dnsName?: any, bindingVifDetails?: any, bindingProfile?: any, instanceId?: any, instanceType?: any, portSecurityEnabled?: any, zoneId?: any) {
this['id'] = id;
this['name'] = name;
this['network_id'] = networkId;
Expand All @@ -48,6 +49,7 @@ export class Port {
this['instance_id'] = instanceId;
this['instance_type'] = instanceType;
this['port_security_enabled'] = portSecurityEnabled;
this['zone_id'] = zoneId;
}
public withId(id: string): Port {
this['id'] = id;
Expand Down Expand Up @@ -241,6 +243,16 @@ export class Port {
public get portSecurityEnabled() {
return this['port_security_enabled'];
}
public withZoneId(zoneId: string): Port {
this['zone_id'] = zoneId;
return this;
}
public set zoneId(zoneId: string | undefined) {
this['zone_id'] = zoneId;
}
public get zoneId() {
return this['zone_id'];
}
}

/**
Expand Down
5 changes: 5 additions & 0 deletions services/vpc/v2/model/Subnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class Subnet {
private 'neutron_subnet_id': string | undefined;
private 'neutron_subnet_id_v6': string | undefined;
private 'extra_dhcp_opts': Array<ExtraDhcpOption> | undefined;
public scope?: string;
public constructor(id?: any, name?: any, description?: any, cidr?: any, gatewayIp?: any, ipv6Enable?: any, cidrV6?: any, gatewayIpV6?: any, dhcpEnable?: any, primaryDns?: any, secondaryDns?: any, dnsList?: any, availabilityZone?: any, vpcId?: any, status?: any, neutronNetworkId?: any, neutronSubnetId?: any, neutronSubnetIdV6?: any, extraDhcpOpts?: any) {
this['id'] = id;
this['name'] = name;
Expand Down Expand Up @@ -196,6 +197,10 @@ export class Subnet {
public get extraDhcpOpts() {
return this['extra_dhcp_opts'];
}
public withScope(scope: string): Subnet {
this['scope'] = scope;
return this;
}
}

/**
Expand Down

0 comments on commit 8fa210d

Please sign in to comment.