@huaweicloud/huaweicloud-sdk-vpc 3.1.44 → 3.1.45
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 +2 -2
- package/v2/VpcClient.d.ts +1 -0
- package/v2/VpcClient.js +7 -0
- package/v2/model/ListSecurityGroupRulesRequest.d.ts +4 -0
- package/v2/model/ListSecurityGroupRulesRequest.js +14 -0
- package/v3/VpcClient.d.ts +1 -0
- package/v3/VpcClient.js +7 -0
- package/v3/model/ListSecurityGroupRulesRequest.d.ts +4 -0
- package/v3/model/ListSecurityGroupRulesRequest.js +14 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huaweicloud/huaweicloud-sdk-vpc",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.45",
|
|
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.
|
|
17
|
+
"@huaweicloud/huaweicloud-sdk-core": "^3.1.45"
|
|
18
18
|
}
|
|
19
19
|
}
|
package/v2/VpcClient.d.ts
CHANGED
|
@@ -502,6 +502,7 @@ export declare class VpcClient {
|
|
|
502
502
|
* @param {string} [marker] 功能说明:分页查询起始的资源ID,为空时查询第一页
|
|
503
503
|
* @param {number} [limit] 每页返回的个数
|
|
504
504
|
* @param {string} [securityGroupId] 安全组ID
|
|
505
|
+
* @param {string} [remoteIpPrefix] 功能说明:远端IP地址 取值范围:cidr格式
|
|
505
506
|
* @param {*} [options] Override http request option.
|
|
506
507
|
* @throws {RequiredError}
|
|
507
508
|
*/
|
package/v2/VpcClient.js
CHANGED
|
@@ -552,6 +552,7 @@ var VpcClient = /** @class */ (function () {
|
|
|
552
552
|
* @param {string} [marker] 功能说明:分页查询起始的资源ID,为空时查询第一页
|
|
553
553
|
* @param {number} [limit] 每页返回的个数
|
|
554
554
|
* @param {string} [securityGroupId] 安全组ID
|
|
555
|
+
* @param {string} [remoteIpPrefix] 功能说明:远端IP地址 取值范围:cidr格式
|
|
555
556
|
* @param {*} [options] Override http request option.
|
|
556
557
|
* @throws {RequiredError}
|
|
557
558
|
*/
|
|
@@ -2732,16 +2733,19 @@ var ParamCreater = function () {
|
|
|
2732
2733
|
var marker;
|
|
2733
2734
|
var limit;
|
|
2734
2735
|
var securityGroupId;
|
|
2736
|
+
var remoteIpPrefix;
|
|
2735
2737
|
if (listSecurityGroupRulesRequest !== null && listSecurityGroupRulesRequest !== undefined) {
|
|
2736
2738
|
if (listSecurityGroupRulesRequest instanceof ListSecurityGroupRulesRequest_1.ListSecurityGroupRulesRequest) {
|
|
2737
2739
|
marker = listSecurityGroupRulesRequest.marker;
|
|
2738
2740
|
limit = listSecurityGroupRulesRequest.limit;
|
|
2739
2741
|
securityGroupId = listSecurityGroupRulesRequest.securityGroupId;
|
|
2742
|
+
remoteIpPrefix = listSecurityGroupRulesRequest.remoteIpPrefix;
|
|
2740
2743
|
}
|
|
2741
2744
|
else {
|
|
2742
2745
|
marker = listSecurityGroupRulesRequest['marker'];
|
|
2743
2746
|
limit = listSecurityGroupRulesRequest['limit'];
|
|
2744
2747
|
securityGroupId = listSecurityGroupRulesRequest['security_group_id'];
|
|
2748
|
+
remoteIpPrefix = listSecurityGroupRulesRequest['remote_ip_prefix'];
|
|
2745
2749
|
}
|
|
2746
2750
|
}
|
|
2747
2751
|
if (marker !== null && marker !== undefined) {
|
|
@@ -2753,6 +2757,9 @@ var ParamCreater = function () {
|
|
|
2753
2757
|
if (securityGroupId !== null && securityGroupId !== undefined) {
|
|
2754
2758
|
localVarQueryParameter['security_group_id'] = securityGroupId;
|
|
2755
2759
|
}
|
|
2760
|
+
if (remoteIpPrefix !== null && remoteIpPrefix !== undefined) {
|
|
2761
|
+
localVarQueryParameter['remote_ip_prefix'] = remoteIpPrefix;
|
|
2762
|
+
}
|
|
2756
2763
|
options.queryParams = localVarQueryParameter;
|
|
2757
2764
|
options.headers = localVarHeaderParameter;
|
|
2758
2765
|
return options;
|
|
@@ -2,10 +2,14 @@ export declare class ListSecurityGroupRulesRequest {
|
|
|
2
2
|
marker?: string;
|
|
3
3
|
limit?: number;
|
|
4
4
|
private 'security_group_id'?;
|
|
5
|
+
private 'remote_ip_prefix'?;
|
|
5
6
|
constructor();
|
|
6
7
|
withMarker(marker: string): ListSecurityGroupRulesRequest;
|
|
7
8
|
withLimit(limit: number): ListSecurityGroupRulesRequest;
|
|
8
9
|
withSecurityGroupId(securityGroupId: string): ListSecurityGroupRulesRequest;
|
|
9
10
|
set securityGroupId(securityGroupId: string | undefined);
|
|
10
11
|
get securityGroupId(): string | undefined;
|
|
12
|
+
withRemoteIpPrefix(remoteIpPrefix: string): ListSecurityGroupRulesRequest;
|
|
13
|
+
set remoteIpPrefix(remoteIpPrefix: string | undefined);
|
|
14
|
+
get remoteIpPrefix(): string | undefined;
|
|
11
15
|
}
|
|
@@ -26,6 +26,20 @@ var ListSecurityGroupRulesRequest = /** @class */ (function () {
|
|
|
26
26
|
enumerable: false,
|
|
27
27
|
configurable: true
|
|
28
28
|
});
|
|
29
|
+
ListSecurityGroupRulesRequest.prototype.withRemoteIpPrefix = function (remoteIpPrefix) {
|
|
30
|
+
this['remote_ip_prefix'] = remoteIpPrefix;
|
|
31
|
+
return this;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(ListSecurityGroupRulesRequest.prototype, "remoteIpPrefix", {
|
|
34
|
+
get: function () {
|
|
35
|
+
return this['remote_ip_prefix'];
|
|
36
|
+
},
|
|
37
|
+
set: function (remoteIpPrefix) {
|
|
38
|
+
this['remote_ip_prefix'] = remoteIpPrefix;
|
|
39
|
+
},
|
|
40
|
+
enumerable: false,
|
|
41
|
+
configurable: true
|
|
42
|
+
});
|
|
29
43
|
return ListSecurityGroupRulesRequest;
|
|
30
44
|
}());
|
|
31
45
|
exports.ListSecurityGroupRulesRequest = ListSecurityGroupRulesRequest;
|
package/v3/VpcClient.d.ts
CHANGED
|
@@ -156,6 +156,7 @@ export declare class VpcClient {
|
|
|
156
156
|
* @param {Array<string>} [remoteGroupId] 功能说明:远端安全组ID,支持多ID过滤
|
|
157
157
|
* @param {string} [direction] 功能说明:安全组规则方向
|
|
158
158
|
* @param {string} [action] 功能说明:安全组规则生效策略
|
|
159
|
+
* @param {string} [remoteIpPrefix] 功能说明:远端IP地址 取值范围:cidr格式
|
|
159
160
|
* @param {*} [options] Override http request option.
|
|
160
161
|
* @throws {RequiredError}
|
|
161
162
|
*/
|
package/v3/VpcClient.js
CHANGED
|
@@ -183,6 +183,7 @@ var VpcClient = /** @class */ (function () {
|
|
|
183
183
|
* @param {Array<string>} [remoteGroupId] 功能说明:远端安全组ID,支持多ID过滤
|
|
184
184
|
* @param {string} [direction] 功能说明:安全组规则方向
|
|
185
185
|
* @param {string} [action] 功能说明:安全组规则生效策略
|
|
186
|
+
* @param {string} [remoteIpPrefix] 功能说明:远端IP地址 取值范围:cidr格式
|
|
186
187
|
* @param {*} [options] Override http request option.
|
|
187
188
|
* @throws {RequiredError}
|
|
188
189
|
*/
|
|
@@ -828,6 +829,7 @@ var ParamCreater = function () {
|
|
|
828
829
|
var remoteGroupId;
|
|
829
830
|
var direction;
|
|
830
831
|
var action;
|
|
832
|
+
var remoteIpPrefix;
|
|
831
833
|
if (listSecurityGroupRulesRequest !== null && listSecurityGroupRulesRequest !== undefined) {
|
|
832
834
|
if (listSecurityGroupRulesRequest instanceof ListSecurityGroupRulesRequest_1.ListSecurityGroupRulesRequest) {
|
|
833
835
|
limit = listSecurityGroupRulesRequest.limit;
|
|
@@ -839,6 +841,7 @@ var ParamCreater = function () {
|
|
|
839
841
|
remoteGroupId = listSecurityGroupRulesRequest.remoteGroupId;
|
|
840
842
|
direction = listSecurityGroupRulesRequest.direction;
|
|
841
843
|
action = listSecurityGroupRulesRequest.action;
|
|
844
|
+
remoteIpPrefix = listSecurityGroupRulesRequest.remoteIpPrefix;
|
|
842
845
|
}
|
|
843
846
|
else {
|
|
844
847
|
limit = listSecurityGroupRulesRequest['limit'];
|
|
@@ -850,6 +853,7 @@ var ParamCreater = function () {
|
|
|
850
853
|
remoteGroupId = listSecurityGroupRulesRequest['remote_group_id'];
|
|
851
854
|
direction = listSecurityGroupRulesRequest['direction'];
|
|
852
855
|
action = listSecurityGroupRulesRequest['action'];
|
|
856
|
+
remoteIpPrefix = listSecurityGroupRulesRequest['remote_ip_prefix'];
|
|
853
857
|
}
|
|
854
858
|
}
|
|
855
859
|
if (limit !== null && limit !== undefined) {
|
|
@@ -879,6 +883,9 @@ var ParamCreater = function () {
|
|
|
879
883
|
if (action !== null && action !== undefined) {
|
|
880
884
|
localVarQueryParameter['action'] = action;
|
|
881
885
|
}
|
|
886
|
+
if (remoteIpPrefix !== null && remoteIpPrefix !== undefined) {
|
|
887
|
+
localVarQueryParameter['remote_ip_prefix'] = remoteIpPrefix;
|
|
888
|
+
}
|
|
882
889
|
options.queryParams = localVarQueryParameter;
|
|
883
890
|
options.headers = localVarHeaderParameter;
|
|
884
891
|
return options;
|
|
@@ -8,6 +8,7 @@ export declare class ListSecurityGroupRulesRequest {
|
|
|
8
8
|
private 'remote_group_id'?;
|
|
9
9
|
direction?: string;
|
|
10
10
|
action?: string;
|
|
11
|
+
private 'remote_ip_prefix'?;
|
|
11
12
|
constructor();
|
|
12
13
|
withLimit(limit: number): ListSecurityGroupRulesRequest;
|
|
13
14
|
withMarker(marker: string): ListSecurityGroupRulesRequest;
|
|
@@ -22,4 +23,7 @@ export declare class ListSecurityGroupRulesRequest {
|
|
|
22
23
|
get remoteGroupId(): Array<string> | undefined;
|
|
23
24
|
withDirection(direction: string): ListSecurityGroupRulesRequest;
|
|
24
25
|
withAction(action: string): ListSecurityGroupRulesRequest;
|
|
26
|
+
withRemoteIpPrefix(remoteIpPrefix: string): ListSecurityGroupRulesRequest;
|
|
27
|
+
set remoteIpPrefix(remoteIpPrefix: string | undefined);
|
|
28
|
+
get remoteIpPrefix(): string | undefined;
|
|
25
29
|
}
|
|
@@ -60,6 +60,20 @@ var ListSecurityGroupRulesRequest = /** @class */ (function () {
|
|
|
60
60
|
this['action'] = action;
|
|
61
61
|
return this;
|
|
62
62
|
};
|
|
63
|
+
ListSecurityGroupRulesRequest.prototype.withRemoteIpPrefix = function (remoteIpPrefix) {
|
|
64
|
+
this['remote_ip_prefix'] = remoteIpPrefix;
|
|
65
|
+
return this;
|
|
66
|
+
};
|
|
67
|
+
Object.defineProperty(ListSecurityGroupRulesRequest.prototype, "remoteIpPrefix", {
|
|
68
|
+
get: function () {
|
|
69
|
+
return this['remote_ip_prefix'];
|
|
70
|
+
},
|
|
71
|
+
set: function (remoteIpPrefix) {
|
|
72
|
+
this['remote_ip_prefix'] = remoteIpPrefix;
|
|
73
|
+
},
|
|
74
|
+
enumerable: false,
|
|
75
|
+
configurable: true
|
|
76
|
+
});
|
|
63
77
|
return ListSecurityGroupRulesRequest;
|
|
64
78
|
}());
|
|
65
79
|
exports.ListSecurityGroupRulesRequest = ListSecurityGroupRulesRequest;
|