@huaweicloud/huaweicloud-sdk-vpc 3.1.42 → 3.1.44

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.42",
3
+ "version": "3.1.44",
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.42"
17
+ "@huaweicloud/huaweicloud-sdk-core": "^3.1.44"
18
18
  }
19
19
  }
@@ -1,3 +1,4 @@
1
+ import { ResourceTag } from './ResourceTag';
1
2
  export declare class AddressGroup {
2
3
  id: string;
3
4
  name: string;
@@ -9,9 +10,10 @@ export declare class AddressGroup {
9
10
  private 'updated_at';
10
11
  private 'tenant_id';
11
12
  private 'enterprise_project_id';
13
+ tags: Array<ResourceTag>;
12
14
  status: string;
13
15
  private 'status_message';
14
- constructor(id?: any, name?: any, description?: any, maxCapacity?: any, ipSet?: any, ipVersion?: any, createdAt?: any, updatedAt?: any, tenantId?: any, enterpriseProjectId?: any, status?: any, statusMessage?: any);
16
+ constructor(id?: any, name?: any, description?: any, maxCapacity?: any, ipSet?: any, ipVersion?: any, createdAt?: any, updatedAt?: any, tenantId?: any, enterpriseProjectId?: any, tags?: any, status?: any, statusMessage?: any);
15
17
  withId(id: string): AddressGroup;
16
18
  withName(name: string): AddressGroup;
17
19
  withDescription(description: string): AddressGroup;
@@ -36,6 +38,7 @@ export declare class AddressGroup {
36
38
  withEnterpriseProjectId(enterpriseProjectId: string): AddressGroup;
37
39
  set enterpriseProjectId(enterpriseProjectId: string | undefined);
38
40
  get enterpriseProjectId(): string | undefined;
41
+ withTags(tags: Array<ResourceTag>): AddressGroup;
39
42
  withStatus(status: string): AddressGroup;
40
43
  withStatusMessage(statusMessage: string): AddressGroup;
41
44
  set statusMessage(statusMessage: string | undefined);
@@ -2,7 +2,7 @@
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, maxCapacity, ipSet, ipVersion, createdAt, updatedAt, tenantId, enterpriseProjectId, status, statusMessage) {
5
+ function AddressGroup(id, name, description, maxCapacity, ipSet, ipVersion, createdAt, updatedAt, tenantId, enterpriseProjectId, tags, status, statusMessage) {
6
6
  this['id'] = id;
7
7
  this['name'] = name;
8
8
  this['description'] = description;
@@ -13,6 +13,7 @@ var AddressGroup = /** @class */ (function () {
13
13
  this['updated_at'] = updatedAt;
14
14
  this['tenant_id'] = tenantId;
15
15
  this['enterprise_project_id'] = enterpriseProjectId;
16
+ this['tags'] = tags;
16
17
  this['status'] = status;
17
18
  this['status_message'] = statusMessage;
18
19
  }
@@ -126,6 +127,10 @@ var AddressGroup = /** @class */ (function () {
126
127
  enumerable: false,
127
128
  configurable: true
128
129
  });
130
+ AddressGroup.prototype.withTags = function (tags) {
131
+ this['tags'] = tags;
132
+ return this;
133
+ };
129
134
  AddressGroup.prototype.withStatus = function (status) {
130
135
  this['status'] = status;
131
136
  return this;
@@ -0,0 +1,7 @@
1
+ export declare class ResourceTag {
2
+ key: string;
3
+ value: string;
4
+ constructor(key?: any, value?: any);
5
+ withKey(key: string): ResourceTag;
6
+ withValue(value: string): ResourceTag;
7
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResourceTag = void 0;
4
+ var ResourceTag = /** @class */ (function () {
5
+ function ResourceTag(key, value) {
6
+ this['key'] = key;
7
+ this['value'] = value;
8
+ }
9
+ ResourceTag.prototype.withKey = function (key) {
10
+ this['key'] = key;
11
+ return this;
12
+ };
13
+ ResourceTag.prototype.withValue = function (value) {
14
+ this['value'] = value;
15
+ return this;
16
+ };
17
+ return ResourceTag;
18
+ }());
19
+ exports.ResourceTag = ResourceTag;
@@ -60,6 +60,7 @@ export * from './model/RemoveExtendCidrOption';
60
60
  export * from './model/RemoveVpcExtendCidrRequest';
61
61
  export * from './model/RemoveVpcExtendCidrRequestBody';
62
62
  export * from './model/RemoveVpcExtendCidrResponse';
63
+ export * from './model/ResourceTag';
63
64
  export * from './model/SecurityGroup';
64
65
  export * from './model/SecurityGroupInfo';
65
66
  export * from './model/SecurityGroupRule';
package/v3/public-api.js CHANGED
@@ -76,6 +76,7 @@ __exportStar(require("./model/RemoveExtendCidrOption"), exports);
76
76
  __exportStar(require("./model/RemoveVpcExtendCidrRequest"), exports);
77
77
  __exportStar(require("./model/RemoveVpcExtendCidrRequestBody"), exports);
78
78
  __exportStar(require("./model/RemoveVpcExtendCidrResponse"), exports);
79
+ __exportStar(require("./model/ResourceTag"), exports);
79
80
  __exportStar(require("./model/SecurityGroup"), exports);
80
81
  __exportStar(require("./model/SecurityGroupInfo"), exports);
81
82
  __exportStar(require("./model/SecurityGroupRule"), exports);