@huaweicloud/huaweicloud-sdk-vpc 3.1.38 → 3.1.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaweicloud/huaweicloud-sdk-vpc",
3
- "version": "3.1.38",
3
+ "version": "3.1.40",
4
4
  "description": "Huaweicloud SDK for vpc",
5
5
  "main": "huaweicloud-sdk-vpc.js",
6
6
  "typings": "huaweicloud-sdk-vpc.d.ts",
@@ -14,6 +14,6 @@
14
14
  "author": "HuaweiCloud_SDK",
15
15
  "license": "Apache-2.0",
16
16
  "dependencies": {
17
- "@huaweicloud/huaweicloud-sdk-core": "^3.1.38"
17
+ "@huaweicloud/huaweicloud-sdk-core": "^3.1.40"
18
18
  }
19
19
  }
@@ -12,6 +12,7 @@ export declare class CreateSubnetOption {
12
12
  dnsList?: Array<string>;
13
13
  private 'availability_zone'?;
14
14
  private 'extra_dhcp_opts'?;
15
+ tags?: Array<string>;
15
16
  constructor(name?: any, cidr?: any, vpcId?: any, gatewayIp?: any);
16
17
  withName(name: string): CreateSubnetOption;
17
18
  withDescription(description: string): CreateSubnetOption;
@@ -41,4 +42,5 @@ export declare class CreateSubnetOption {
41
42
  withExtraDhcpOpts(extraDhcpOpts: Array<ExtraDhcpOption>): CreateSubnetOption;
42
43
  set extraDhcpOpts(extraDhcpOpts: Array<ExtraDhcpOption> | undefined);
43
44
  get extraDhcpOpts(): Array<ExtraDhcpOption> | undefined;
45
+ withTags(tags: Array<string>): CreateSubnetOption;
44
46
  }
@@ -136,6 +136,10 @@ var CreateSubnetOption = /** @class */ (function () {
136
136
  enumerable: false,
137
137
  configurable: true
138
138
  });
139
+ CreateSubnetOption.prototype.withTags = function (tags) {
140
+ this['tags'] = tags;
141
+ return this;
142
+ };
139
143
  return CreateSubnetOption;
140
144
  }());
141
145
  exports.CreateSubnetOption = CreateSubnetOption;
@@ -3,6 +3,7 @@ export declare class CreateVpcOption {
3
3
  name?: string;
4
4
  description?: string;
5
5
  private 'enterprise_project_id'?;
6
+ tags?: Array<string>;
6
7
  constructor();
7
8
  withCidr(cidr: string): CreateVpcOption;
8
9
  withName(name: string): CreateVpcOption;
@@ -10,4 +11,5 @@ export declare class CreateVpcOption {
10
11
  withEnterpriseProjectId(enterpriseProjectId: string): CreateVpcOption;
11
12
  set enterpriseProjectId(enterpriseProjectId: string | undefined);
12
13
  get enterpriseProjectId(): string | undefined;
14
+ withTags(tags: Array<string>): CreateVpcOption;
13
15
  }
@@ -30,6 +30,10 @@ var CreateVpcOption = /** @class */ (function () {
30
30
  enumerable: false,
31
31
  configurable: true
32
32
  });
33
+ CreateVpcOption.prototype.withTags = function (tags) {
34
+ this['tags'] = tags;
35
+ return this;
36
+ };
33
37
  return CreateVpcOption;
34
38
  }());
35
39
  exports.CreateVpcOption = CreateVpcOption;
@@ -1,10 +1,12 @@
1
1
  import { VpcInfo } from './VpcInfo';
2
2
  export declare class CreateVpcPeeringOption {
3
3
  name: string;
4
+ description?: string;
4
5
  private 'request_vpc_info';
5
6
  private 'accept_vpc_info';
6
7
  constructor(name?: any, requestVpcInfo?: any, acceptVpcInfo?: any);
7
8
  withName(name: string): CreateVpcPeeringOption;
9
+ withDescription(description: string): CreateVpcPeeringOption;
8
10
  withRequestVpcInfo(requestVpcInfo: VpcInfo): CreateVpcPeeringOption;
9
11
  set requestVpcInfo(requestVpcInfo: VpcInfo | undefined);
10
12
  get requestVpcInfo(): VpcInfo | undefined;
@@ -11,6 +11,10 @@ var CreateVpcPeeringOption = /** @class */ (function () {
11
11
  this['name'] = name;
12
12
  return this;
13
13
  };
14
+ CreateVpcPeeringOption.prototype.withDescription = function (description) {
15
+ this['description'] = description;
16
+ return this;
17
+ };
14
18
  CreateVpcPeeringOption.prototype.withRequestVpcInfo = function (requestVpcInfo) {
15
19
  this['request_vpc_info'] = requestVpcInfo;
16
20
  return this;
@@ -2,15 +2,21 @@ export declare class AddressGroup {
2
2
  id: string;
3
3
  name: string;
4
4
  description: string;
5
+ private 'max_capacity';
5
6
  private 'ip_set';
6
7
  private 'ip_version';
7
8
  private 'created_at';
8
9
  private 'updated_at';
9
10
  private 'tenant_id';
10
- constructor(id?: any, name?: any, description?: any, ipSet?: any, ipVersion?: any, createdAt?: any, updatedAt?: any, tenantId?: any);
11
+ status: string;
12
+ private 'status_message';
13
+ constructor(id?: any, name?: any, description?: any, maxCapacity?: any, ipSet?: any, ipVersion?: any, createdAt?: any, updatedAt?: any, tenantId?: any, status?: any, statusMessage?: any);
11
14
  withId(id: string): AddressGroup;
12
15
  withName(name: string): AddressGroup;
13
16
  withDescription(description: string): AddressGroup;
17
+ withMaxCapacity(maxCapacity: number): AddressGroup;
18
+ set maxCapacity(maxCapacity: number | undefined);
19
+ get maxCapacity(): number | undefined;
14
20
  withIpSet(ipSet: Array<string>): AddressGroup;
15
21
  set ipSet(ipSet: Array<string> | undefined);
16
22
  get ipSet(): Array<string> | undefined;
@@ -26,4 +32,8 @@ export declare class AddressGroup {
26
32
  withTenantId(tenantId: string): AddressGroup;
27
33
  set tenantId(tenantId: string | undefined);
28
34
  get tenantId(): string | undefined;
35
+ withStatus(status: string): AddressGroup;
36
+ withStatusMessage(statusMessage: string): AddressGroup;
37
+ set statusMessage(statusMessage: string | undefined);
38
+ get statusMessage(): string | undefined;
29
39
  }
@@ -2,15 +2,18 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AddressGroup = void 0;
4
4
  var AddressGroup = /** @class */ (function () {
5
- function AddressGroup(id, name, description, ipSet, ipVersion, createdAt, updatedAt, tenantId) {
5
+ function AddressGroup(id, name, description, maxCapacity, ipSet, ipVersion, createdAt, updatedAt, tenantId, status, statusMessage) {
6
6
  this['id'] = id;
7
7
  this['name'] = name;
8
8
  this['description'] = description;
9
+ this['max_capacity'] = maxCapacity;
9
10
  this['ip_set'] = ipSet;
10
11
  this['ip_version'] = ipVersion;
11
12
  this['created_at'] = createdAt;
12
13
  this['updated_at'] = updatedAt;
13
14
  this['tenant_id'] = tenantId;
15
+ this['status'] = status;
16
+ this['status_message'] = statusMessage;
14
17
  }
15
18
  AddressGroup.prototype.withId = function (id) {
16
19
  this['id'] = id;
@@ -24,6 +27,20 @@ var AddressGroup = /** @class */ (function () {
24
27
  this['description'] = description;
25
28
  return this;
26
29
  };
30
+ AddressGroup.prototype.withMaxCapacity = function (maxCapacity) {
31
+ this['max_capacity'] = maxCapacity;
32
+ return this;
33
+ };
34
+ Object.defineProperty(AddressGroup.prototype, "maxCapacity", {
35
+ get: function () {
36
+ return this['max_capacity'];
37
+ },
38
+ set: function (maxCapacity) {
39
+ this['max_capacity'] = maxCapacity;
40
+ },
41
+ enumerable: false,
42
+ configurable: true
43
+ });
27
44
  AddressGroup.prototype.withIpSet = function (ipSet) {
28
45
  this['ip_set'] = ipSet;
29
46
  return this;
@@ -94,6 +111,24 @@ var AddressGroup = /** @class */ (function () {
94
111
  enumerable: false,
95
112
  configurable: true
96
113
  });
114
+ AddressGroup.prototype.withStatus = function (status) {
115
+ this['status'] = status;
116
+ return this;
117
+ };
118
+ AddressGroup.prototype.withStatusMessage = function (statusMessage) {
119
+ this['status_message'] = statusMessage;
120
+ return this;
121
+ };
122
+ Object.defineProperty(AddressGroup.prototype, "statusMessage", {
123
+ get: function () {
124
+ return this['status_message'];
125
+ },
126
+ set: function (statusMessage) {
127
+ this['status_message'] = statusMessage;
128
+ },
129
+ enumerable: false,
130
+ configurable: true
131
+ });
97
132
  return AddressGroup;
98
133
  }());
99
134
  exports.AddressGroup = AddressGroup;
@@ -3,6 +3,7 @@ export declare class CreateAddressGroupOption {
3
3
  description?: string;
4
4
  private 'ip_version';
5
5
  private 'ip_set'?;
6
+ private 'max_capacity'?;
6
7
  constructor(name?: any, ipVersion?: any);
7
8
  withName(name: string): CreateAddressGroupOption;
8
9
  withDescription(description: string): CreateAddressGroupOption;
@@ -12,4 +13,7 @@ export declare class CreateAddressGroupOption {
12
13
  withIpSet(ipSet: Array<string>): CreateAddressGroupOption;
13
14
  set ipSet(ipSet: Array<string> | undefined);
14
15
  get ipSet(): Array<string> | undefined;
16
+ withMaxCapacity(maxCapacity: number): CreateAddressGroupOption;
17
+ set maxCapacity(maxCapacity: number | undefined);
18
+ get maxCapacity(): number | undefined;
15
19
  }
@@ -42,6 +42,20 @@ var CreateAddressGroupOption = /** @class */ (function () {
42
42
  enumerable: false,
43
43
  configurable: true
44
44
  });
45
+ CreateAddressGroupOption.prototype.withMaxCapacity = function (maxCapacity) {
46
+ this['max_capacity'] = maxCapacity;
47
+ return this;
48
+ };
49
+ Object.defineProperty(CreateAddressGroupOption.prototype, "maxCapacity", {
50
+ get: function () {
51
+ return this['max_capacity'];
52
+ },
53
+ set: function (maxCapacity) {
54
+ this['max_capacity'] = maxCapacity;
55
+ },
56
+ enumerable: false,
57
+ configurable: true
58
+ });
45
59
  return CreateAddressGroupOption;
46
60
  }());
47
61
  exports.CreateAddressGroupOption = CreateAddressGroupOption;
@@ -2,10 +2,14 @@ export declare class UpdateAddressGroupOption {
2
2
  name?: string;
3
3
  description?: string;
4
4
  private 'ip_set'?;
5
+ private 'max_capacity'?;
5
6
  constructor();
6
7
  withName(name: string): UpdateAddressGroupOption;
7
8
  withDescription(description: string): UpdateAddressGroupOption;
8
9
  withIpSet(ipSet: Array<string>): UpdateAddressGroupOption;
9
10
  set ipSet(ipSet: Array<string> | undefined);
10
11
  get ipSet(): Array<string> | undefined;
12
+ withMaxCapacity(maxCapacity: number): UpdateAddressGroupOption;
13
+ set maxCapacity(maxCapacity: number | undefined);
14
+ get maxCapacity(): number | undefined;
11
15
  }
@@ -26,6 +26,20 @@ var UpdateAddressGroupOption = /** @class */ (function () {
26
26
  enumerable: false,
27
27
  configurable: true
28
28
  });
29
+ UpdateAddressGroupOption.prototype.withMaxCapacity = function (maxCapacity) {
30
+ this['max_capacity'] = maxCapacity;
31
+ return this;
32
+ };
33
+ Object.defineProperty(UpdateAddressGroupOption.prototype, "maxCapacity", {
34
+ get: function () {
35
+ return this['max_capacity'];
36
+ },
37
+ set: function (maxCapacity) {
38
+ this['max_capacity'] = maxCapacity;
39
+ },
40
+ enumerable: false,
41
+ configurable: true
42
+ });
29
43
  return UpdateAddressGroupOption;
30
44
  }());
31
45
  exports.UpdateAddressGroupOption = UpdateAddressGroupOption;