Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *
http://www.apache.org/licenses/LICENSE-2.0 + * + *
Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+import java.util.List;
+
+public class AssociateSecGroupDynamicRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 资源短 ID 数组。支持数组模式。Type 为 string 数组。 */
+ @NotEmpty
+ @UCloudParam("ResourceId")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class AssociateSecGroupDynamicResponse extends Response {}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateSecGroupRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateSecGroupRequest.java
new file mode 100644
index 00000000..2563212f
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateSecGroupRequest.java
@@ -0,0 +1,105 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+import java.util.List;
+
+public class AssociateSecGroupRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 资源短 ID,安全组参数和该字段只支持一个批量。支持 string 数组。 */
+ @NotEmpty
+ @UCloudParam("ResourceId")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class AssociateSecGroupResponse extends Response {}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupRequest.java
new file mode 100644
index 00000000..8cdc5f08
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupRequest.java
@@ -0,0 +1,76 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class CreateSecGroupRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 资源ID所属的VPC */
+ @NotEmpty
+ @UCloudParam("VPCID")
+ private String vpcid;
+
+ /** 安全组名称,最长64个字符。 */
+ @NotEmpty
+ @UCloudParam("Name")
+ private String name;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getVPCID() {
+ return vpcid;
+ }
+
+ public void setVPCID(String vpcid) {
+ this.vpcid = vpcid;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupResponse.java
new file mode 100644
index 00000000..98158c17
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupResponse.java
@@ -0,0 +1,34 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class CreateSecGroupResponse extends Response {
+
+ /** 安全组ID */
+ @SerializedName("SecGroupId")
+ private String secGroupId;
+
+ public String getSecGroupId() {
+ return secGroupId;
+ }
+
+ public void setSecGroupId(String secGroupId) {
+ this.secGroupId = secGroupId;
+ }
+}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupRuleRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupRuleRequest.java
new file mode 100644
index 00000000..f55049db
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupRuleRequest.java
@@ -0,0 +1,182 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+import java.util.List;
+
+public class CreateSecGroupRuleRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 需要添加规则的安全组资源ID。 */
+ @NotEmpty
+ @UCloudParam("SecGroupId")
+ private String secGroupId;
+
+ /** */
+ @UCloudParam("Rule")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class CreateSecGroupRuleResponse extends Response {
+
+ /** 规则 ID */
+ @SerializedName("RuleId")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+import java.util.List;
+
+public class DeleteSecGroupRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 安全组资源 Id。支持 string 数组格式。 */
+ @NotEmpty
+ @UCloudParam("SecGroupId")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class DeleteSecGroupResponse extends Response {}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecGroupRuleRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecGroupRuleRequest.java
new file mode 100644
index 00000000..a7742642
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecGroupRuleRequest.java
@@ -0,0 +1,77 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+import java.util.List;
+
+public class DeleteSecGroupRuleRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 所属安全组 ID。 */
+ @NotEmpty
+ @UCloudParam("SecGroupId")
+ private String secGroupId;
+
+ /** 安全组规则 ID。支持 string 数组格式。 */
+ @NotEmpty
+ @UCloudParam("RuleId")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class DeleteSecGroupRuleResponse extends Response {}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeResourceSecGroupRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeResourceSecGroupRequest.java
new file mode 100644
index 00000000..2fd227db
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeResourceSecGroupRequest.java
@@ -0,0 +1,111 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+import java.util.List;
+
+public class DescribeResourceSecGroupRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 资源类型,如 uhost, uni */
+ @UCloudParam("ResourceType")
+ private String resourceType;
+
+ /** 分页查询时的偏移量。传入了 ResourceId 则不分页。 */
+ @UCloudParam("Offset")
+ private Integer offset;
+
+ /** 分页查询时的最大返回资源数量。 */
+ @UCloudParam("Limit")
+ private Integer limit;
+
+ /** VPC ID。非必须,分页使用(分页时,也可不传);ResourceId 非空时,忽略 */
+ @UCloudParam("VPCId")
+ private String vpcId;
+
+ /** 资源 ID 数组,如果指定则不分页;否则分页获取该账号下的指定类型的资源。支持 string 数组格式。 */
+ @UCloudParam("ResourceId")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class DescribeResourceSecGroupResponse extends Response {
+
+ /** 资源总数量。传入 ResourceId 时,为传入资源中的有效资源数量。 */
+ @SerializedName("TotalCount")
+ private Integer totalCount;
+
+ /** 资源绑定的安全组信息 */
+ @SerializedName("DataSet")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+import java.util.List;
+
+public class DescribeSecGroupRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 分页查询数据长度。默认为20 */
+ @UCloudParam("Limit")
+ private Integer limit;
+
+ /** 分页查询起始位置偏移量。默认为0 */
+ @UCloudParam("Offset")
+ private Integer offset;
+
+ /** 资源ID所属的 VPC ID */
+ @UCloudParam("VPCId")
+ private String vpcId;
+
+ /** 安全组资源 ID 数组,传入则 Offset/Limit/BusinessId 失效。支持数组格式。Type 为 string 数组。 */
+ @UCloudParam("SecGroupId")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class DescribeSecGroupResourceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 安全组资源ID。 */
+ @UCloudParam("SecGroupId")
+ private String secGroupId;
+
+ /** 分页查询长度。默认为20 */
+ @UCloudParam("Limit")
+ private Integer limit;
+
+ /** 分页查询起始位置偏移量。默认为0 */
+ @UCloudParam("Offset")
+ private Integer offset;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getSecGroupId() {
+ return secGroupId;
+ }
+
+ public void setSecGroupId(String secGroupId) {
+ this.secGroupId = secGroupId;
+ }
+
+ public Integer getLimit() {
+ return limit;
+ }
+
+ public void setLimit(Integer limit) {
+ this.limit = limit;
+ }
+
+ public Integer getOffset() {
+ return offset;
+ }
+
+ public void setOffset(Integer offset) {
+ this.offset = offset;
+ }
+}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecGroupResourceResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecGroupResourceResponse.java
new file mode 100644
index 00000000..bbff49e8
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecGroupResourceResponse.java
@@ -0,0 +1,161 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class DescribeSecGroupResourceResponse extends Response {
+
+ /** 详见SecGroupResourceInfo */
+ @SerializedName("DataSet")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class DescribeSecGroupResponse extends Response {
+
+ /** 详见SecGroupInfo */
+ @SerializedName("DataSet")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class DisableUniEipDirectModeRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @NotEmpty
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** VPC ID */
+ @NotEmpty
+ @UCloudParam("VPCId")
+ private String vpcId;
+
+ /** 虚拟网卡ID */
+ @NotEmpty
+ @UCloudParam("InterfaceId")
+ private String interfaceId;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getVPCId() {
+ return vpcId;
+ }
+
+ public void setVPCId(String vpcId) {
+ this.vpcId = vpcId;
+ }
+
+ public String getInterfaceId() {
+ return interfaceId;
+ }
+
+ public void setInterfaceId(String interfaceId) {
+ this.interfaceId = interfaceId;
+ }
+}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DisableUniEipDirectModeResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DisableUniEipDirectModeResponse.java
new file mode 100644
index 00000000..ffa9b47d
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DisableUniEipDirectModeResponse.java
@@ -0,0 +1,20 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class DisableUniEipDirectModeResponse extends Response {}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DisassociateSecGroupRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DisassociateSecGroupRequest.java
new file mode 100644
index 00000000..a35aafa5
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DisassociateSecGroupRequest.java
@@ -0,0 +1,87 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+import java.util.List;
+
+public class DisassociateSecGroupRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 安全组ID,不传表示解绑安全组绑定的所以资源,安全组ID和资源ID至少传一个,且只能有一个批量。支持 string 数组格式。 */
+ @UCloudParam("SecGroupId")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class DisassociateSecGroupResponse extends Response {}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableUniEipDirectModeRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableUniEipDirectModeRequest.java
new file mode 100644
index 00000000..a0dc4dcf
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableUniEipDirectModeRequest.java
@@ -0,0 +1,101 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class EnableUniEipDirectModeRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @NotEmpty
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** VPC ID */
+ @NotEmpty
+ @UCloudParam("VPCId")
+ private String vpcId;
+
+ /** 虚拟网卡ID */
+ @NotEmpty
+ @UCloudParam("InterfaceId")
+ private String interfaceId;
+
+ /** 枚举值: 1-EIP网卡可见 2-EIP直通 默认为1 */
+ @UCloudParam("EipDirectVersion")
+ private Integer eipDirectVersion;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getVPCId() {
+ return vpcId;
+ }
+
+ public void setVPCId(String vpcId) {
+ this.vpcId = vpcId;
+ }
+
+ public String getInterfaceId() {
+ return interfaceId;
+ }
+
+ public void setInterfaceId(String interfaceId) {
+ this.interfaceId = interfaceId;
+ }
+
+ public Integer getEipDirectVersion() {
+ return eipDirectVersion;
+ }
+
+ public void setEipDirectVersion(Integer eipDirectVersion) {
+ this.eipDirectVersion = eipDirectVersion;
+ }
+}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableUniEipDirectModeResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableUniEipDirectModeResponse.java
new file mode 100644
index 00000000..7150a2db
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableUniEipDirectModeResponse.java
@@ -0,0 +1,20 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class EnableUniEipDirectModeResponse extends Response {}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToFirewallRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToFirewallRequest.java
new file mode 100644
index 00000000..638027c7
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToFirewallRequest.java
@@ -0,0 +1,91 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class SwitchToFirewallRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @NotEmpty
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 资源ID。资源类型为 UHost、UNI、PAAS 资源 */
+ @NotEmpty
+ @UCloudParam("ResourceId")
+ private String resourceId;
+
+ /** 防火墙 ID */
+ @UCloudParam("Firewall")
+ private String firewall;
+
+ /**
+ * map[string]string,string 到 防火墙 ID
+ * 的映射。ResourceId是uhost则Node是uni;ResourceId是uhadoop则Node是hadoophost
+ */
+ @UCloudParam("NodeToFirewall")
+ private String nodeToFirewall;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getResourceId() {
+ return resourceId;
+ }
+
+ public void setResourceId(String resourceId) {
+ this.resourceId = resourceId;
+ }
+
+ public String getFirewall() {
+ return firewall;
+ }
+
+ public void setFirewall(String firewall) {
+ this.firewall = firewall;
+ }
+
+ public String getNodeToFirewall() {
+ return nodeToFirewall;
+ }
+
+ public void setNodeToFirewall(String nodeToFirewall) {
+ this.nodeToFirewall = nodeToFirewall;
+ }
+}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToFirewallResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToFirewallResponse.java
new file mode 100644
index 00000000..1ccf7b46
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToFirewallResponse.java
@@ -0,0 +1,20 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class SwitchToFirewallResponse extends Response {}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToSecGroupRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToSecGroupRequest.java
new file mode 100644
index 00000000..aa5b4293
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToSecGroupRequest.java
@@ -0,0 +1,102 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+import java.util.List;
+
+public class SwitchToSecGroupRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @NotEmpty
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 资源ID。资源类型为 UHost、UNI、PAAS 资源 */
+ @NotEmpty
+ @UCloudParam("ResourceId")
+ private String resourceId;
+
+ /** 是否移除当前的防火墙(且绑定默认全通的防火墙) */
+ @NotEmpty
+ @UCloudParam("IsRemoveFirewall")
+ private Boolean isRemoveFirewall;
+
+ /** PrioritySecGroup类型的数组 */
+ @UCloudParam("PrioritySecGroup")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class SwitchToSecGroupResponse extends Response {}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWRequest.java
new file mode 100644
index 00000000..3cb18e1d
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWRequest.java
@@ -0,0 +1,99 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class UpdateNATGWRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** natgw id */
+ @NotEmpty
+ @UCloudParam("NATGWId")
+ private String natgwId;
+
+ /** NATGateWay 名字 */
+ @UCloudParam("NATGWName")
+ private String natgwName;
+
+ /** 业务组 */
+ @UCloudParam("Tag")
+ private String tag;
+
+ /** 备注 */
+ @UCloudParam("Remark")
+ private String remark;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getNATGWId() {
+ return natgwId;
+ }
+
+ public void setNATGWId(String natgwId) {
+ this.natgwId = natgwId;
+ }
+
+ public String getNATGWName() {
+ return natgwName;
+ }
+
+ public void setNATGWName(String natgwName) {
+ this.natgwName = natgwName;
+ }
+
+ public String getTag() {
+ return tag;
+ }
+
+ public void setTag(String tag) {
+ this.tag = tag;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWResponse.java
new file mode 100644
index 00000000..11fcf136
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWResponse.java
@@ -0,0 +1,20 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class UpdateNATGWResponse extends Response {}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSnatpoolRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSnatpoolRequest.java
new file mode 100644
index 00000000..dea703e3
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSnatpoolRequest.java
@@ -0,0 +1,76 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class UpdateNATGWSnatpoolRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** NAT网关的资源ID */
+ @NotEmpty
+ @UCloudParam("NATGWId")
+ private String natgwId;
+
+ /** 开启,"enable";关闭,"disable"; */
+ @NotEmpty
+ @UCloudParam("IsSnatpoolEnabled")
+ private String isSnatpoolEnabled;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getNATGWId() {
+ return natgwId;
+ }
+
+ public void setNATGWId(String natgwId) {
+ this.natgwId = natgwId;
+ }
+
+ public String getIsSnatpoolEnabled() {
+ return isSnatpoolEnabled;
+ }
+
+ public void setIsSnatpoolEnabled(String isSnatpoolEnabled) {
+ this.isSnatpoolEnabled = isSnatpoolEnabled;
+ }
+}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSnatpoolResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSnatpoolResponse.java
new file mode 100644
index 00000000..240a0267
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSnatpoolResponse.java
@@ -0,0 +1,20 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class UpdateNATGWSnatpoolResponse extends Response {}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkInterfaceDefaultOutputRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkInterfaceDefaultOutputRequest.java
new file mode 100644
index 00000000..a0a7e4d5
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkInterfaceDefaultOutputRequest.java
@@ -0,0 +1,88 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class UpdateNetworkInterfaceDefaultOutputRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 虚拟网卡Id */
+ @NotEmpty
+ @UCloudParam("InterfaceId")
+ private String interfaceId;
+
+ /** 出口IP */
+ @UCloudParam("Output")
+ private String output;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getInterfaceId() {
+ return interfaceId;
+ }
+
+ public void setInterfaceId(String interfaceId) {
+ this.interfaceId = interfaceId;
+ }
+
+ public String getOutput() {
+ return output;
+ }
+
+ public void setOutput(String output) {
+ this.output = output;
+ }
+}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkInterfaceDefaultOutputResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkInterfaceDefaultOutputResponse.java
new file mode 100644
index 00000000..a017dd59
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkInterfaceDefaultOutputResponse.java
@@ -0,0 +1,20 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class UpdateNetworkInterfaceDefaultOutputResponse extends Response {}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupAssociationRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupAssociationRequest.java
new file mode 100644
index 00000000..0b020e3a
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupAssociationRequest.java
@@ -0,0 +1,118 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+import java.util.List;
+
+public class UpdateSecGroupAssociationRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 资源ID */
+ @NotEmpty
+ @UCloudParam("ResourceId")
+ private String resourceId;
+
+ /** 被替换的安全组ID。支持数组格式,即为 string 数组。 */
+ @NotEmpty
+ @UCloudParam("OldSecGroupId")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class UpdateSecGroupAssociationResponse extends Response {}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupRequest.java
new file mode 100644
index 00000000..13cdae88
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupRequest.java
@@ -0,0 +1,87 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class UpdateSecGroupRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 安全组资源ID数组。不支持 .n 格式。Type 为 string 数组。 */
+ @NotEmpty
+ @UCloudParam("SecGroupId")
+ private String secGroupId;
+
+ /** 安全组名称,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 */
+ @UCloudParam("Name")
+ private String name;
+
+ /** 安全组备注,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 */
+ @UCloudParam("Remark")
+ private String remark;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getSecGroupId() {
+ return secGroupId;
+ }
+
+ public void setSecGroupId(String secGroupId) {
+ this.secGroupId = secGroupId;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupResponse.java
new file mode 100644
index 00000000..18850dbb
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupResponse.java
@@ -0,0 +1,20 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class UpdateSecGroupResponse extends Response {}
diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupRuleRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupRuleRequest.java
new file mode 100644
index 00000000..07307793
--- /dev/null
+++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupRuleRequest.java
@@ -0,0 +1,195 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+import java.util.List;
+
+public class UpdateSecGroupRuleRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 规则所属得安全组 ID。 */
+ @NotEmpty
+ @UCloudParam("SecGroupId")
+ private String secGroupId;
+
+ /** */
+ @UCloudParam("Rule")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.vpc.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class UpdateSecGroupRuleResponse extends Response {}