@huaweicloud/huaweicloud-sdk-vpc 3.0.19-beta → 3.0.23-beta

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.
Files changed (99) hide show
  1. package/package.json +2 -2
  2. package/v2/model/AllowedAddressPair.d.ts +2 -2
  3. package/v2/model/AllowedAddressPair.js +2 -1
  4. package/v3/VpcClient.d.ts +319 -0
  5. package/v3/VpcClient.js +727 -0
  6. package/v3/model/AddExtendCidrOption.d.ts +7 -0
  7. package/v3/model/AddExtendCidrOption.js +24 -0
  8. package/v3/model/AddVpcExtendCidrRequest.d.ts +10 -0
  9. package/v3/model/AddVpcExtendCidrRequest.js +28 -0
  10. package/v3/model/AddVpcExtendCidrRequestBody.d.ts +10 -0
  11. package/v3/model/AddVpcExtendCidrRequestBody.js +28 -0
  12. package/v3/model/AddVpcExtendCidrResponse.d.ts +11 -0
  13. package/v3/model/AddVpcExtendCidrResponse.js +45 -0
  14. package/v3/model/AddressGroup.d.ts +29 -0
  15. package/v3/model/AddressGroup.js +99 -0
  16. package/v3/model/CloudResource.d.ts +11 -0
  17. package/v3/model/CloudResource.js +39 -0
  18. package/v3/model/CreateAddressGroupOption.d.ts +15 -0
  19. package/v3/model/CreateAddressGroupOption.js +47 -0
  20. package/v3/model/CreateAddressGroupRequest.d.ts +6 -0
  21. package/v3/model/CreateAddressGroupRequest.js +13 -0
  22. package/v3/model/CreateAddressGroupRequestBody.d.ts +12 -0
  23. package/v3/model/CreateAddressGroupRequestBody.js +38 -0
  24. package/v3/model/CreateAddressGroupResponse.d.ts +13 -0
  25. package/v3/model/CreateAddressGroupResponse.js +55 -0
  26. package/v3/model/CreateVpcOption.d.ts +16 -0
  27. package/v3/model/CreateVpcOption.js +41 -0
  28. package/v3/model/CreateVpcRequest.d.ts +6 -0
  29. package/v3/model/CreateVpcRequest.js +13 -0
  30. package/v3/model/CreateVpcRequestBody.d.ts +10 -0
  31. package/v3/model/CreateVpcRequestBody.js +28 -0
  32. package/v3/model/CreateVpcResponse.d.ts +16 -0
  33. package/v3/model/CreateVpcResponse.js +69 -0
  34. package/v3/model/DeleteAddressGroupRequest.d.ts +7 -0
  35. package/v3/model/DeleteAddressGroupRequest.js +24 -0
  36. package/v3/model/DeleteAddressGroupResponse.d.ts +4 -0
  37. package/v3/model/DeleteAddressGroupResponse.js +27 -0
  38. package/v3/model/DeleteIpAddressGroupForceRequest.d.ts +7 -0
  39. package/v3/model/DeleteIpAddressGroupForceRequest.js +24 -0
  40. package/v3/model/DeleteIpAddressGroupForceResponse.d.ts +4 -0
  41. package/v3/model/DeleteIpAddressGroupForceResponse.js +27 -0
  42. package/v3/model/DeleteVpcRequest.d.ts +7 -0
  43. package/v3/model/DeleteVpcRequest.js +24 -0
  44. package/v3/model/DeleteVpcResponse.d.ts +4 -0
  45. package/v3/model/DeleteVpcResponse.js +27 -0
  46. package/v3/model/ListAddressGroupRequest.d.ts +17 -0
  47. package/v3/model/ListAddressGroupRequest.js +43 -0
  48. package/v3/model/ListAddressGroupResponse.d.ts +18 -0
  49. package/v3/model/ListAddressGroupResponse.js +69 -0
  50. package/v3/model/ListVpcsRequest.d.ts +15 -0
  51. package/v3/model/ListVpcsRequest.js +33 -0
  52. package/v3/model/ListVpcsResponse.d.ts +16 -0
  53. package/v3/model/ListVpcsResponse.js +59 -0
  54. package/v3/model/MigrateSubNetworkInterfaceOption.d.ts +17 -0
  55. package/v3/model/MigrateSubNetworkInterfaceOption.js +39 -0
  56. package/v3/model/MigrateSubNetworkInterfaceRequest.d.ts +6 -0
  57. package/v3/model/MigrateSubNetworkInterfaceRequest.js +13 -0
  58. package/v3/model/MigrateSubNetworkInterfaceRequestBody.d.ts +12 -0
  59. package/v3/model/MigrateSubNetworkInterfaceRequestBody.js +38 -0
  60. package/v3/model/MigrateSubNetworkInterfaceResponse.d.ts +13 -0
  61. package/v3/model/MigrateSubNetworkInterfaceResponse.js +55 -0
  62. package/v3/model/RemoveExtendCidrOption.d.ts +7 -0
  63. package/v3/model/RemoveExtendCidrOption.js +24 -0
  64. package/v3/model/RemoveVpcExtendCidrRequest.d.ts +10 -0
  65. package/v3/model/RemoveVpcExtendCidrRequest.js +28 -0
  66. package/v3/model/RemoveVpcExtendCidrRequestBody.d.ts +10 -0
  67. package/v3/model/RemoveVpcExtendCidrRequestBody.js +28 -0
  68. package/v3/model/RemoveVpcExtendCidrResponse.d.ts +11 -0
  69. package/v3/model/RemoveVpcExtendCidrResponse.js +45 -0
  70. package/v3/model/ShowAddressGroupRequest.d.ts +7 -0
  71. package/v3/model/ShowAddressGroupRequest.js +24 -0
  72. package/v3/model/ShowAddressGroupResponse.d.ts +13 -0
  73. package/v3/model/ShowAddressGroupResponse.js +55 -0
  74. package/v3/model/ShowVpcRequest.d.ts +7 -0
  75. package/v3/model/ShowVpcRequest.js +24 -0
  76. package/v3/model/ShowVpcResponse.d.ts +11 -0
  77. package/v3/model/ShowVpcResponse.js +45 -0
  78. package/v3/model/Tag.d.ts +7 -0
  79. package/v3/model/Tag.js +19 -0
  80. package/v3/model/UpdateAddressGroupOption.d.ts +11 -0
  81. package/v3/model/UpdateAddressGroupOption.js +31 -0
  82. package/v3/model/UpdateAddressGroupRequest.d.ts +10 -0
  83. package/v3/model/UpdateAddressGroupRequest.js +28 -0
  84. package/v3/model/UpdateAddressGroupRequestBody.d.ts +12 -0
  85. package/v3/model/UpdateAddressGroupRequestBody.js +38 -0
  86. package/v3/model/UpdateAddressGroupResponse.d.ts +13 -0
  87. package/v3/model/UpdateAddressGroupResponse.js +55 -0
  88. package/v3/model/UpdateVpcOption.d.ts +7 -0
  89. package/v3/model/UpdateVpcOption.js +17 -0
  90. package/v3/model/UpdateVpcRequest.d.ts +10 -0
  91. package/v3/model/UpdateVpcRequest.js +28 -0
  92. package/v3/model/UpdateVpcRequestBody.d.ts +10 -0
  93. package/v3/model/UpdateVpcRequestBody.js +28 -0
  94. package/v3/model/UpdateVpcResponse.d.ts +16 -0
  95. package/v3/model/UpdateVpcResponse.js +69 -0
  96. package/v3/model/Vpc.d.ts +41 -0
  97. package/v3/model/Vpc.js +129 -0
  98. package/v3/public-api.d.ts +46 -0
  99. package/v3/public-api.js +46 -0
@@ -0,0 +1,7 @@
1
+ export declare class AddExtendCidrOption {
2
+ private 'extend_cidrs';
3
+ constructor(extendCidrs?: any);
4
+ withExtendCidrs(extendCidrs: Array<string>): AddExtendCidrOption;
5
+ set extendCidrs(extendCidrs: Array<string> | undefined);
6
+ get extendCidrs(): Array<string> | undefined;
7
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddExtendCidrOption = void 0;
4
+ var AddExtendCidrOption = /** @class */ (function () {
5
+ function AddExtendCidrOption(extendCidrs) {
6
+ this['extend_cidrs'] = extendCidrs;
7
+ }
8
+ AddExtendCidrOption.prototype.withExtendCidrs = function (extendCidrs) {
9
+ this['extend_cidrs'] = extendCidrs;
10
+ return this;
11
+ };
12
+ Object.defineProperty(AddExtendCidrOption.prototype, "extendCidrs", {
13
+ get: function () {
14
+ return this['extend_cidrs'];
15
+ },
16
+ set: function (extendCidrs) {
17
+ this['extend_cidrs'] = extendCidrs;
18
+ },
19
+ enumerable: false,
20
+ configurable: true
21
+ });
22
+ return AddExtendCidrOption;
23
+ }());
24
+ exports.AddExtendCidrOption = AddExtendCidrOption;
@@ -0,0 +1,10 @@
1
+ import { AddVpcExtendCidrRequestBody } from './AddVpcExtendCidrRequestBody';
2
+ export declare class AddVpcExtendCidrRequest {
3
+ private 'vpc_id';
4
+ body?: AddVpcExtendCidrRequestBody;
5
+ constructor(vpcId?: any);
6
+ withVpcId(vpcId: string): AddVpcExtendCidrRequest;
7
+ set vpcId(vpcId: string | undefined);
8
+ get vpcId(): string | undefined;
9
+ withBody(body: AddVpcExtendCidrRequestBody): AddVpcExtendCidrRequest;
10
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddVpcExtendCidrRequest = void 0;
4
+ var AddVpcExtendCidrRequest = /** @class */ (function () {
5
+ function AddVpcExtendCidrRequest(vpcId) {
6
+ this['vpc_id'] = vpcId;
7
+ }
8
+ AddVpcExtendCidrRequest.prototype.withVpcId = function (vpcId) {
9
+ this['vpc_id'] = vpcId;
10
+ return this;
11
+ };
12
+ Object.defineProperty(AddVpcExtendCidrRequest.prototype, "vpcId", {
13
+ get: function () {
14
+ return this['vpc_id'];
15
+ },
16
+ set: function (vpcId) {
17
+ this['vpc_id'] = vpcId;
18
+ },
19
+ enumerable: false,
20
+ configurable: true
21
+ });
22
+ AddVpcExtendCidrRequest.prototype.withBody = function (body) {
23
+ this['body'] = body;
24
+ return this;
25
+ };
26
+ return AddVpcExtendCidrRequest;
27
+ }());
28
+ exports.AddVpcExtendCidrRequest = AddVpcExtendCidrRequest;
@@ -0,0 +1,10 @@
1
+ import { AddExtendCidrOption } from './AddExtendCidrOption';
2
+ export declare class AddVpcExtendCidrRequestBody {
3
+ private 'dry_run'?;
4
+ vpc: AddExtendCidrOption;
5
+ constructor(vpc?: any);
6
+ withDryRun(dryRun: boolean): AddVpcExtendCidrRequestBody;
7
+ set dryRun(dryRun: boolean | undefined);
8
+ get dryRun(): boolean | undefined;
9
+ withVpc(vpc: AddExtendCidrOption): AddVpcExtendCidrRequestBody;
10
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddVpcExtendCidrRequestBody = void 0;
4
+ var AddVpcExtendCidrRequestBody = /** @class */ (function () {
5
+ function AddVpcExtendCidrRequestBody(vpc) {
6
+ this['vpc'] = vpc;
7
+ }
8
+ AddVpcExtendCidrRequestBody.prototype.withDryRun = function (dryRun) {
9
+ this['dry_run'] = dryRun;
10
+ return this;
11
+ };
12
+ Object.defineProperty(AddVpcExtendCidrRequestBody.prototype, "dryRun", {
13
+ get: function () {
14
+ return this['dry_run'];
15
+ },
16
+ set: function (dryRun) {
17
+ this['dry_run'] = dryRun;
18
+ },
19
+ enumerable: false,
20
+ configurable: true
21
+ });
22
+ AddVpcExtendCidrRequestBody.prototype.withVpc = function (vpc) {
23
+ this['vpc'] = vpc;
24
+ return this;
25
+ };
26
+ return AddVpcExtendCidrRequestBody;
27
+ }());
28
+ exports.AddVpcExtendCidrRequestBody = AddVpcExtendCidrRequestBody;
@@ -0,0 +1,11 @@
1
+ import { Vpc } from './Vpc';
2
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
3
+ export declare class AddVpcExtendCidrResponse extends SdkResponse {
4
+ vpc?: Vpc;
5
+ private 'request_id'?;
6
+ constructor();
7
+ withVpc(vpc: Vpc): AddVpcExtendCidrResponse;
8
+ withRequestId(requestId: string): AddVpcExtendCidrResponse;
9
+ set requestId(requestId: string | undefined);
10
+ get requestId(): string | undefined;
11
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.AddVpcExtendCidrResponse = void 0;
19
+ var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
20
+ var AddVpcExtendCidrResponse = /** @class */ (function (_super) {
21
+ __extends(AddVpcExtendCidrResponse, _super);
22
+ function AddVpcExtendCidrResponse() {
23
+ return _super.call(this) || this;
24
+ }
25
+ AddVpcExtendCidrResponse.prototype.withVpc = function (vpc) {
26
+ this['vpc'] = vpc;
27
+ return this;
28
+ };
29
+ AddVpcExtendCidrResponse.prototype.withRequestId = function (requestId) {
30
+ this['request_id'] = requestId;
31
+ return this;
32
+ };
33
+ Object.defineProperty(AddVpcExtendCidrResponse.prototype, "requestId", {
34
+ get: function () {
35
+ return this['request_id'];
36
+ },
37
+ set: function (requestId) {
38
+ this['request_id'] = requestId;
39
+ },
40
+ enumerable: false,
41
+ configurable: true
42
+ });
43
+ return AddVpcExtendCidrResponse;
44
+ }(SdkResponse_1.SdkResponse));
45
+ exports.AddVpcExtendCidrResponse = AddVpcExtendCidrResponse;
@@ -0,0 +1,29 @@
1
+ export declare class AddressGroup {
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ private 'ip_set';
6
+ private 'ip_version';
7
+ private 'created_at';
8
+ private 'updated_at';
9
+ private 'tenant_id';
10
+ constructor(id?: any, name?: any, description?: any, ipSet?: any, ipVersion?: any, createdAt?: any, updatedAt?: any, tenantId?: any);
11
+ withId(id: string): AddressGroup;
12
+ withName(name: string): AddressGroup;
13
+ withDescription(description: string): AddressGroup;
14
+ withIpSet(ipSet: Array<string>): AddressGroup;
15
+ set ipSet(ipSet: Array<string> | undefined);
16
+ get ipSet(): Array<string> | undefined;
17
+ withIpVersion(ipVersion: number): AddressGroup;
18
+ set ipVersion(ipVersion: number | undefined);
19
+ get ipVersion(): number | undefined;
20
+ withCreatedAt(createdAt: Date): AddressGroup;
21
+ set createdAt(createdAt: Date | undefined);
22
+ get createdAt(): Date | undefined;
23
+ withUpdatedAt(updatedAt: Date): AddressGroup;
24
+ set updatedAt(updatedAt: Date | undefined);
25
+ get updatedAt(): Date | undefined;
26
+ withTenantId(tenantId: string): AddressGroup;
27
+ set tenantId(tenantId: string | undefined);
28
+ get tenantId(): string | undefined;
29
+ }
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddressGroup = void 0;
4
+ var AddressGroup = /** @class */ (function () {
5
+ function AddressGroup(id, name, description, ipSet, ipVersion, createdAt, updatedAt, tenantId) {
6
+ this['id'] = id;
7
+ this['name'] = name;
8
+ this['description'] = description;
9
+ this['ip_set'] = ipSet;
10
+ this['ip_version'] = ipVersion;
11
+ this['created_at'] = createdAt;
12
+ this['updated_at'] = updatedAt;
13
+ this['tenant_id'] = tenantId;
14
+ }
15
+ AddressGroup.prototype.withId = function (id) {
16
+ this['id'] = id;
17
+ return this;
18
+ };
19
+ AddressGroup.prototype.withName = function (name) {
20
+ this['name'] = name;
21
+ return this;
22
+ };
23
+ AddressGroup.prototype.withDescription = function (description) {
24
+ this['description'] = description;
25
+ return this;
26
+ };
27
+ AddressGroup.prototype.withIpSet = function (ipSet) {
28
+ this['ip_set'] = ipSet;
29
+ return this;
30
+ };
31
+ Object.defineProperty(AddressGroup.prototype, "ipSet", {
32
+ get: function () {
33
+ return this['ip_set'];
34
+ },
35
+ set: function (ipSet) {
36
+ this['ip_set'] = ipSet;
37
+ },
38
+ enumerable: false,
39
+ configurable: true
40
+ });
41
+ AddressGroup.prototype.withIpVersion = function (ipVersion) {
42
+ this['ip_version'] = ipVersion;
43
+ return this;
44
+ };
45
+ Object.defineProperty(AddressGroup.prototype, "ipVersion", {
46
+ get: function () {
47
+ return this['ip_version'];
48
+ },
49
+ set: function (ipVersion) {
50
+ this['ip_version'] = ipVersion;
51
+ },
52
+ enumerable: false,
53
+ configurable: true
54
+ });
55
+ AddressGroup.prototype.withCreatedAt = function (createdAt) {
56
+ this['created_at'] = createdAt;
57
+ return this;
58
+ };
59
+ Object.defineProperty(AddressGroup.prototype, "createdAt", {
60
+ get: function () {
61
+ return this['created_at'];
62
+ },
63
+ set: function (createdAt) {
64
+ this['created_at'] = createdAt;
65
+ },
66
+ enumerable: false,
67
+ configurable: true
68
+ });
69
+ AddressGroup.prototype.withUpdatedAt = function (updatedAt) {
70
+ this['updated_at'] = updatedAt;
71
+ return this;
72
+ };
73
+ Object.defineProperty(AddressGroup.prototype, "updatedAt", {
74
+ get: function () {
75
+ return this['updated_at'];
76
+ },
77
+ set: function (updatedAt) {
78
+ this['updated_at'] = updatedAt;
79
+ },
80
+ enumerable: false,
81
+ configurable: true
82
+ });
83
+ AddressGroup.prototype.withTenantId = function (tenantId) {
84
+ this['tenant_id'] = tenantId;
85
+ return this;
86
+ };
87
+ Object.defineProperty(AddressGroup.prototype, "tenantId", {
88
+ get: function () {
89
+ return this['tenant_id'];
90
+ },
91
+ set: function (tenantId) {
92
+ this['tenant_id'] = tenantId;
93
+ },
94
+ enumerable: false,
95
+ configurable: true
96
+ });
97
+ return AddressGroup;
98
+ }());
99
+ exports.AddressGroup = AddressGroup;
@@ -0,0 +1,11 @@
1
+ export declare class CloudResource {
2
+ private 'resource_type';
3
+ private 'resource_count';
4
+ constructor(resourceType?: any, resourceCount?: any);
5
+ withResourceType(resourceType: string): CloudResource;
6
+ set resourceType(resourceType: string | undefined);
7
+ get resourceType(): string | undefined;
8
+ withResourceCount(resourceCount: number): CloudResource;
9
+ set resourceCount(resourceCount: number | undefined);
10
+ get resourceCount(): number | undefined;
11
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CloudResource = void 0;
4
+ var CloudResource = /** @class */ (function () {
5
+ function CloudResource(resourceType, resourceCount) {
6
+ this['resource_type'] = resourceType;
7
+ this['resource_count'] = resourceCount;
8
+ }
9
+ CloudResource.prototype.withResourceType = function (resourceType) {
10
+ this['resource_type'] = resourceType;
11
+ return this;
12
+ };
13
+ Object.defineProperty(CloudResource.prototype, "resourceType", {
14
+ get: function () {
15
+ return this['resource_type'];
16
+ },
17
+ set: function (resourceType) {
18
+ this['resource_type'] = resourceType;
19
+ },
20
+ enumerable: false,
21
+ configurable: true
22
+ });
23
+ CloudResource.prototype.withResourceCount = function (resourceCount) {
24
+ this['resource_count'] = resourceCount;
25
+ return this;
26
+ };
27
+ Object.defineProperty(CloudResource.prototype, "resourceCount", {
28
+ get: function () {
29
+ return this['resource_count'];
30
+ },
31
+ set: function (resourceCount) {
32
+ this['resource_count'] = resourceCount;
33
+ },
34
+ enumerable: false,
35
+ configurable: true
36
+ });
37
+ return CloudResource;
38
+ }());
39
+ exports.CloudResource = CloudResource;
@@ -0,0 +1,15 @@
1
+ export declare class CreateAddressGroupOption {
2
+ name: string;
3
+ description?: string;
4
+ private 'ip_version';
5
+ private 'ip_set'?;
6
+ constructor(name?: any, ipVersion?: any);
7
+ withName(name: string): CreateAddressGroupOption;
8
+ withDescription(description: string): CreateAddressGroupOption;
9
+ withIpVersion(ipVersion: number): CreateAddressGroupOption;
10
+ set ipVersion(ipVersion: number | undefined);
11
+ get ipVersion(): number | undefined;
12
+ withIpSet(ipSet: Array<string>): CreateAddressGroupOption;
13
+ set ipSet(ipSet: Array<string> | undefined);
14
+ get ipSet(): Array<string> | undefined;
15
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateAddressGroupOption = void 0;
4
+ var CreateAddressGroupOption = /** @class */ (function () {
5
+ function CreateAddressGroupOption(name, ipVersion) {
6
+ this['name'] = name;
7
+ this['ip_version'] = ipVersion;
8
+ }
9
+ CreateAddressGroupOption.prototype.withName = function (name) {
10
+ this['name'] = name;
11
+ return this;
12
+ };
13
+ CreateAddressGroupOption.prototype.withDescription = function (description) {
14
+ this['description'] = description;
15
+ return this;
16
+ };
17
+ CreateAddressGroupOption.prototype.withIpVersion = function (ipVersion) {
18
+ this['ip_version'] = ipVersion;
19
+ return this;
20
+ };
21
+ Object.defineProperty(CreateAddressGroupOption.prototype, "ipVersion", {
22
+ get: function () {
23
+ return this['ip_version'];
24
+ },
25
+ set: function (ipVersion) {
26
+ this['ip_version'] = ipVersion;
27
+ },
28
+ enumerable: false,
29
+ configurable: true
30
+ });
31
+ CreateAddressGroupOption.prototype.withIpSet = function (ipSet) {
32
+ this['ip_set'] = ipSet;
33
+ return this;
34
+ };
35
+ Object.defineProperty(CreateAddressGroupOption.prototype, "ipSet", {
36
+ get: function () {
37
+ return this['ip_set'];
38
+ },
39
+ set: function (ipSet) {
40
+ this['ip_set'] = ipSet;
41
+ },
42
+ enumerable: false,
43
+ configurable: true
44
+ });
45
+ return CreateAddressGroupOption;
46
+ }());
47
+ exports.CreateAddressGroupOption = CreateAddressGroupOption;
@@ -0,0 +1,6 @@
1
+ import { CreateAddressGroupRequestBody } from './CreateAddressGroupRequestBody';
2
+ export declare class CreateAddressGroupRequest {
3
+ body?: CreateAddressGroupRequestBody;
4
+ constructor();
5
+ withBody(body: CreateAddressGroupRequestBody): CreateAddressGroupRequest;
6
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateAddressGroupRequest = void 0;
4
+ var CreateAddressGroupRequest = /** @class */ (function () {
5
+ function CreateAddressGroupRequest() {
6
+ }
7
+ CreateAddressGroupRequest.prototype.withBody = function (body) {
8
+ this['body'] = body;
9
+ return this;
10
+ };
11
+ return CreateAddressGroupRequest;
12
+ }());
13
+ exports.CreateAddressGroupRequest = CreateAddressGroupRequest;
@@ -0,0 +1,12 @@
1
+ import { CreateAddressGroupOption } from './CreateAddressGroupOption';
2
+ export declare class CreateAddressGroupRequestBody {
3
+ private 'dry_run'?;
4
+ private 'address_group';
5
+ constructor(addressGroup?: any);
6
+ withDryRun(dryRun: boolean): CreateAddressGroupRequestBody;
7
+ set dryRun(dryRun: boolean | undefined);
8
+ get dryRun(): boolean | undefined;
9
+ withAddressGroup(addressGroup: CreateAddressGroupOption): CreateAddressGroupRequestBody;
10
+ set addressGroup(addressGroup: CreateAddressGroupOption | undefined);
11
+ get addressGroup(): CreateAddressGroupOption | undefined;
12
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateAddressGroupRequestBody = void 0;
4
+ var CreateAddressGroupRequestBody = /** @class */ (function () {
5
+ function CreateAddressGroupRequestBody(addressGroup) {
6
+ this['address_group'] = addressGroup;
7
+ }
8
+ CreateAddressGroupRequestBody.prototype.withDryRun = function (dryRun) {
9
+ this['dry_run'] = dryRun;
10
+ return this;
11
+ };
12
+ Object.defineProperty(CreateAddressGroupRequestBody.prototype, "dryRun", {
13
+ get: function () {
14
+ return this['dry_run'];
15
+ },
16
+ set: function (dryRun) {
17
+ this['dry_run'] = dryRun;
18
+ },
19
+ enumerable: false,
20
+ configurable: true
21
+ });
22
+ CreateAddressGroupRequestBody.prototype.withAddressGroup = function (addressGroup) {
23
+ this['address_group'] = addressGroup;
24
+ return this;
25
+ };
26
+ Object.defineProperty(CreateAddressGroupRequestBody.prototype, "addressGroup", {
27
+ get: function () {
28
+ return this['address_group'];
29
+ },
30
+ set: function (addressGroup) {
31
+ this['address_group'] = addressGroup;
32
+ },
33
+ enumerable: false,
34
+ configurable: true
35
+ });
36
+ return CreateAddressGroupRequestBody;
37
+ }());
38
+ exports.CreateAddressGroupRequestBody = CreateAddressGroupRequestBody;
@@ -0,0 +1,13 @@
1
+ import { AddressGroup } from './AddressGroup';
2
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
3
+ export declare class CreateAddressGroupResponse extends SdkResponse {
4
+ private 'request_id'?;
5
+ private 'address_group'?;
6
+ constructor();
7
+ withRequestId(requestId: string): CreateAddressGroupResponse;
8
+ set requestId(requestId: string | undefined);
9
+ get requestId(): string | undefined;
10
+ withAddressGroup(addressGroup: AddressGroup): CreateAddressGroupResponse;
11
+ set addressGroup(addressGroup: AddressGroup | undefined);
12
+ get addressGroup(): AddressGroup | undefined;
13
+ }
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.CreateAddressGroupResponse = void 0;
19
+ var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
20
+ var CreateAddressGroupResponse = /** @class */ (function (_super) {
21
+ __extends(CreateAddressGroupResponse, _super);
22
+ function CreateAddressGroupResponse() {
23
+ return _super.call(this) || this;
24
+ }
25
+ CreateAddressGroupResponse.prototype.withRequestId = function (requestId) {
26
+ this['request_id'] = requestId;
27
+ return this;
28
+ };
29
+ Object.defineProperty(CreateAddressGroupResponse.prototype, "requestId", {
30
+ get: function () {
31
+ return this['request_id'];
32
+ },
33
+ set: function (requestId) {
34
+ this['request_id'] = requestId;
35
+ },
36
+ enumerable: false,
37
+ configurable: true
38
+ });
39
+ CreateAddressGroupResponse.prototype.withAddressGroup = function (addressGroup) {
40
+ this['address_group'] = addressGroup;
41
+ return this;
42
+ };
43
+ Object.defineProperty(CreateAddressGroupResponse.prototype, "addressGroup", {
44
+ get: function () {
45
+ return this['address_group'];
46
+ },
47
+ set: function (addressGroup) {
48
+ this['address_group'] = addressGroup;
49
+ },
50
+ enumerable: false,
51
+ configurable: true
52
+ });
53
+ return CreateAddressGroupResponse;
54
+ }(SdkResponse_1.SdkResponse));
55
+ exports.CreateAddressGroupResponse = CreateAddressGroupResponse;
@@ -0,0 +1,16 @@
1
+ import { Tag } from './Tag';
2
+ export declare class CreateVpcOption {
3
+ name: string;
4
+ description?: string;
5
+ cidr: string;
6
+ private 'enterprise_project_id'?;
7
+ tags?: Array<Tag>;
8
+ constructor(name?: any, cidr?: any);
9
+ withName(name: string): CreateVpcOption;
10
+ withDescription(description: string): CreateVpcOption;
11
+ withCidr(cidr: string): CreateVpcOption;
12
+ withEnterpriseProjectId(enterpriseProjectId: string): CreateVpcOption;
13
+ set enterpriseProjectId(enterpriseProjectId: string | undefined);
14
+ get enterpriseProjectId(): string | undefined;
15
+ withTags(tags: Array<Tag>): CreateVpcOption;
16
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateVpcOption = void 0;
4
+ var CreateVpcOption = /** @class */ (function () {
5
+ function CreateVpcOption(name, cidr) {
6
+ this['name'] = name;
7
+ this['cidr'] = cidr;
8
+ }
9
+ CreateVpcOption.prototype.withName = function (name) {
10
+ this['name'] = name;
11
+ return this;
12
+ };
13
+ CreateVpcOption.prototype.withDescription = function (description) {
14
+ this['description'] = description;
15
+ return this;
16
+ };
17
+ CreateVpcOption.prototype.withCidr = function (cidr) {
18
+ this['cidr'] = cidr;
19
+ return this;
20
+ };
21
+ CreateVpcOption.prototype.withEnterpriseProjectId = function (enterpriseProjectId) {
22
+ this['enterprise_project_id'] = enterpriseProjectId;
23
+ return this;
24
+ };
25
+ Object.defineProperty(CreateVpcOption.prototype, "enterpriseProjectId", {
26
+ get: function () {
27
+ return this['enterprise_project_id'];
28
+ },
29
+ set: function (enterpriseProjectId) {
30
+ this['enterprise_project_id'] = enterpriseProjectId;
31
+ },
32
+ enumerable: false,
33
+ configurable: true
34
+ });
35
+ CreateVpcOption.prototype.withTags = function (tags) {
36
+ this['tags'] = tags;
37
+ return this;
38
+ };
39
+ return CreateVpcOption;
40
+ }());
41
+ exports.CreateVpcOption = CreateVpcOption;
@@ -0,0 +1,6 @@
1
+ import { CreateVpcRequestBody } from './CreateVpcRequestBody';
2
+ export declare class CreateVpcRequest {
3
+ body?: CreateVpcRequestBody;
4
+ constructor();
5
+ withBody(body: CreateVpcRequestBody): CreateVpcRequest;
6
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateVpcRequest = void 0;
4
+ var CreateVpcRequest = /** @class */ (function () {
5
+ function CreateVpcRequest() {
6
+ }
7
+ CreateVpcRequest.prototype.withBody = function (body) {
8
+ this['body'] = body;
9
+ return this;
10
+ };
11
+ return CreateVpcRequest;
12
+ }());
13
+ exports.CreateVpcRequest = CreateVpcRequest;
@@ -0,0 +1,10 @@
1
+ import { CreateVpcOption } from './CreateVpcOption';
2
+ export declare class CreateVpcRequestBody {
3
+ private 'dry_run'?;
4
+ vpc: CreateVpcOption;
5
+ constructor(vpc?: any);
6
+ withDryRun(dryRun: boolean): CreateVpcRequestBody;
7
+ set dryRun(dryRun: boolean | undefined);
8
+ get dryRun(): boolean | undefined;
9
+ withVpc(vpc: CreateVpcOption): CreateVpcRequestBody;
10
+ }