diff --git a/VERSION b/VERSION index c54101be..2fb885a2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.47 +0.3.48 diff --git a/src/VPC/Apis/AddSnatRuleRequest.php b/src/VPC/Apis/AddSnatRuleRequest.php index 87a2d4a3..29f31597 100644 --- a/src/VPC/Apis/AddSnatRuleRequest.php +++ b/src/VPC/Apis/AddSnatRuleRequest.php @@ -1,6 +1,6 @@ "AddSubnetIPv6"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("SubnetworkId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * SubnetworkId: 子网ID + * + * @return string|null + */ + public function getSubnetworkId() + { + return $this->get("SubnetworkId"); + } + + /** + * SubnetworkId: 子网ID + * + * @param string $subnetworkId + */ + public function setSubnetworkId($subnetworkId) + { + $this->set("SubnetworkId", $subnetworkId); + } + + /** + * VPCId: 私有网络 ID + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: 私有网络 ID + * + * @param string $vpcId + */ + public function setVPCId($vpcId) + { + $this->set("VPCId", $vpcId); + } + + /** + * VPCIPv6Network: 所属VPC的IPv6网段,可选,不填默认选择一个VPC IPv6网段进行分配 + * + * @return string|null + */ + public function getVPCIPv6Network() + { + return $this->get("VPCIPv6Network"); + } + + /** + * VPCIPv6Network: 所属VPC的IPv6网段,可选,不填默认选择一个VPC IPv6网段进行分配 + * + * @param string $vpciPv6Network + */ + public function setVPCIPv6Network($vpciPv6Network) + { + $this->set("VPCIPv6Network", $vpciPv6Network); + } + + /** + * IPv6Network: 指定IPv6网段 + * + * @return string|null + */ + public function getIPv6Network() + { + return $this->get("IPv6Network"); + } + + /** + * IPv6Network: 指定IPv6网段 + * + * @param string $iPv6Network + */ + public function setIPv6Network($iPv6Network) + { + $this->set("IPv6Network", $iPv6Network); + } + + /** + * IPv6PrefixLength: 指定IPv6网段掩码 + * + * @return integer|null + */ + public function getIPv6PrefixLength() + { + return $this->get("IPv6PrefixLength"); + } + + /** + * IPv6PrefixLength: 指定IPv6网段掩码 + * + * @param int $iPv6PrefixLength + */ + public function setIPv6PrefixLength($iPv6PrefixLength) + { + $this->set("IPv6PrefixLength", $iPv6PrefixLength); + } +} diff --git a/src/VPC/Apis/AddSubnetIPv6Response.php b/src/VPC/Apis/AddSubnetIPv6Response.php new file mode 100644 index 00000000..e85d46c7 --- /dev/null +++ b/src/VPC/Apis/AddSubnetIPv6Response.php @@ -0,0 +1,44 @@ +get("IPv6Network"); + } + + /** + * IPv6Network: IPv6网段 + * + * @param string $iPv6Network + */ + public function setIPv6Network($iPv6Network) + { + $this->set("IPv6Network", $iPv6Network); + } +} diff --git a/src/VPC/Apis/AddVPCIPv6Request.php b/src/VPC/Apis/AddVPCIPv6Request.php new file mode 100644 index 00000000..f683f304 --- /dev/null +++ b/src/VPC/Apis/AddVPCIPv6Request.php @@ -0,0 +1,173 @@ + "AddVPCIPv6"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("VPCId"); + $this->markRequired("OperatorName"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * VPCId: VPC资源ID + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: VPC资源ID + * + * @param string $vpcId + */ + public function setVPCId($vpcId) + { + $this->set("VPCId", $vpcId); + } + + /** + * OperatorName: 类型 BGP | Telecom | ChinaMobile | Unicom + * + * @return string|null + */ + public function getOperatorName() + { + return $this->get("OperatorName"); + } + + /** + * OperatorName: 类型 BGP | Telecom | ChinaMobile | Unicom + * + * @param string $operatorName + */ + public function setOperatorName($operatorName) + { + $this->set("OperatorName", $operatorName); + } + + /** + * IPv6NetworkType: Default--默认网段、Custom--客户自带 + * + * @return string|null + */ + public function getIPv6NetworkType() + { + return $this->get("IPv6NetworkType"); + } + + /** + * IPv6NetworkType: Default--默认网段、Custom--客户自带 + * + * @param string $iPv6NetworkType + */ + public function setIPv6NetworkType($iPv6NetworkType) + { + $this->set("IPv6NetworkType", $iPv6NetworkType); + } + + /** + * IPv6Network: 指定IPv6网段 + * + * @return string|null + */ + public function getIPv6Network() + { + return $this->get("IPv6Network"); + } + + /** + * IPv6Network: 指定IPv6网段 + * + * @param string $iPv6Network + */ + public function setIPv6Network($iPv6Network) + { + $this->set("IPv6Network", $iPv6Network); + } +} diff --git a/src/VPC/Apis/AddVPCIPv6Response.php b/src/VPC/Apis/AddVPCIPv6Response.php new file mode 100644 index 00000000..5858c136 --- /dev/null +++ b/src/VPC/Apis/AddVPCIPv6Response.php @@ -0,0 +1,44 @@ +get("IPv6Network"); + } + + /** + * IPv6Network: IPv6网段 + * + * @param string $iPv6Network + */ + public function setIPv6Network($iPv6Network) + { + $this->set("IPv6Network", $iPv6Network); + } +} diff --git a/src/VPC/Apis/AddVPCNetworkRequest.php b/src/VPC/Apis/AddVPCNetworkRequest.php index f54d85c5..fb15c12f 100644 --- a/src/VPC/Apis/AddVPCNetworkRequest.php +++ b/src/VPC/Apis/AddVPCNetworkRequest.php @@ -1,6 +1,6 @@ "AssignIPv6"]); + $this->markRequired("Region"); + $this->markRequired("SubnetworkId"); + $this->markRequired("ObjectId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * SubnetworkId: 子网ID + * + * @return string|null + */ + public function getSubnetworkId() + { + return $this->get("SubnetworkId"); + } + + /** + * SubnetworkId: 子网ID + * + * @param string $subnetworkId + */ + public function setSubnetworkId($subnetworkId) + { + $this->set("SubnetworkId", $subnetworkId); + } + + /** + * ObjectId: 资源短ID + * + * @return string|null + */ + public function getObjectId() + { + return $this->get("ObjectId"); + } + + /** + * ObjectId: 资源短ID + * + * @param string $objectId + */ + public function setObjectId($objectId) + { + $this->set("ObjectId", $objectId); + } + + /** + * VPCId: vpc ID + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: vpc ID + * + * @param string $vpcId + */ + public function setVPCId($vpcId) + { + $this->set("VPCId", $vpcId); + } + + /** + * InstanceId: 实际资源短ID--pass产品实际ID + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 实际资源短ID--pass产品实际ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * InstanceType: 与InstanceID对应,实际资源大类ID--pass产品实际类型 + * + * @return integer|null + */ + public function getInstanceType() + { + return $this->get("InstanceType"); + } + + /** + * InstanceType: 与InstanceID对应,实际资源大类ID--pass产品实际类型 + * + * @param int $instanceType + */ + public function setInstanceType($instanceType) + { + $this->set("InstanceType", $instanceType); + } + + /** + * Mac: 选填,资源的Mac + * + * @return string|null + */ + public function getMac() + { + return $this->get("Mac"); + } + + /** + * Mac: 选填,资源的Mac + * + * @param string $mac + */ + public function setMac($mac) + { + $this->set("Mac", $mac); + } + + /** + * IPv6Addresses: 指定IP分配,与Count互斥 + * + * @return string[]|null + */ + public function getIPv6Addresses() + { + return $this->get("IPv6Addresses"); + } + + /** + * IPv6Addresses: 指定IP分配,与Count互斥 + * + * @param string[] $iPv6Addresses + */ + public function setIPv6Addresses(array $iPv6Addresses) + { + $this->set("IPv6Addresses", $iPv6Addresses); + } + + /** + * Count: 指定数量分配,与IPv6Addresses互斥 + * + * @return integer|null + */ + public function getCount() + { + return $this->get("Count"); + } + + /** + * Count: 指定数量分配,与IPv6Addresses互斥 + * + * @param int $count + */ + public function setCount($count) + { + $this->set("Count", $count); + } + + /** + * Attribute: IP属性:支持开启公网(Normal)、仅支持内网(Private),默认Normal + * + * @return string|null + */ + public function getAttribute() + { + return $this->get("Attribute"); + } + + /** + * Attribute: IP属性:支持开启公网(Normal)、仅支持内网(Private),默认Normal + * + * @param string $attribute + */ + public function setAttribute($attribute) + { + $this->set("Attribute", $attribute); + } + + /** + * Segment: 指定网段分配IP + * + * @return string|null + */ + public function getSegment() + { + return $this->get("Segment"); + } + + /** + * Segment: 指定网段分配IP + * + * @param string $segment + */ + public function setSegment($segment) + { + $this->set("Segment", $segment); + } +} diff --git a/src/VPC/Apis/AssignIPv6Response.php b/src/VPC/Apis/AssignIPv6Response.php new file mode 100644 index 00000000..78b3fffc --- /dev/null +++ b/src/VPC/Apis/AssignIPv6Response.php @@ -0,0 +1,104 @@ +get("IPv6Addresses"); + } + + /** + * IPv6Addresses: IPv6地址 + * + * @param string[] $iPv6Addresses + */ + public function setIPv6Addresses(array $iPv6Addresses) + { + $this->set("IPv6Addresses", $iPv6Addresses); + } + + /** + * OperatorName: IP类型 + * + * @return string|null + */ + public function getOperatorName() + { + return $this->get("OperatorName"); + } + + /** + * OperatorName: IP类型 + * + * @param string $operatorName + */ + public function setOperatorName($operatorName) + { + $this->set("OperatorName", $operatorName); + } + + /** + * IPv6Gateway: IPv6网关 + * + * @return string|null + */ + public function getIPv6Gateway() + { + return $this->get("IPv6Gateway"); + } + + /** + * IPv6Gateway: IPv6网关 + * + * @param string $iPv6Gateway + */ + public function setIPv6Gateway($iPv6Gateway) + { + $this->set("IPv6Gateway", $iPv6Gateway); + } + + /** + * Mask: 掩码 + * + * @return integer|null + */ + public function getMask() + { + return $this->get("Mask"); + } + + /** + * Mask: 掩码 + * + * @param int $mask + */ + public function setMask($mask) + { + $this->set("Mask", $mask); + } +} diff --git a/src/VPC/Apis/AssociateRouteTableRequest.php b/src/VPC/Apis/AssociateRouteTableRequest.php index edb19e32..c708aa10 100644 --- a/src/VPC/Apis/AssociateRouteTableRequest.php +++ b/src/VPC/Apis/AssociateRouteTableRequest.php @@ -1,6 +1,6 @@ "AssociateSecGroupDynamic"]); + $this->markRequired("Region"); + $this->markRequired("ResourceId"); + $this->markRequired("SecGroupId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ResourceId: 资源短 ID 数组。支持数组模式。Type 为 string 数组。 + * + * @return string[]|null + */ + public function getResourceId() + { + return $this->get("ResourceId"); + } + + /** + * ResourceId: 资源短 ID 数组。支持数组模式。Type 为 string 数组。 + * + * @param string[] $resourceId + */ + public function setResourceId(array $resourceId) + { + $this->set("ResourceId", $resourceId); + } + + /** + * SecGroupId: 安全组ID + * + * @return string|null + */ + public function getSecGroupId() + { + return $this->get("SecGroupId"); + } + + /** + * SecGroupId: 安全组ID + * + * @param string $secGroupId + */ + public function setSecGroupId($secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } +} diff --git a/src/VPC/Apis/AssociateSecGroupDynamicResponse.php b/src/VPC/Apis/AssociateSecGroupDynamicResponse.php new file mode 100644 index 00000000..80205879 --- /dev/null +++ b/src/VPC/Apis/AssociateSecGroupDynamicResponse.php @@ -0,0 +1,26 @@ + "AssociateSecGroup"]); + $this->markRequired("Region"); + $this->markRequired("ResourceId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ResourceId: 资源短 ID,安全组参数和该字段只支持一个批量。支持 string 数组。 + * + * @return string[]|null + */ + public function getResourceId() + { + return $this->get("ResourceId"); + } + + /** + * ResourceId: 资源短 ID,安全组参数和该字段只支持一个批量。支持 string 数组。 + * + * @param string[] $resourceId + */ + public function setResourceId(array $resourceId) + { + $this->set("ResourceId", $resourceId); + } + + /** + * PrioritySecGroup: + * + * @return AssociateSecGroupParamPrioritySecGroup[]|null + */ + public function getPrioritySecGroup() + { + $items = $this->get("PrioritySecGroup"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new AssociateSecGroupParamPrioritySecGroup($item)); + } + return $result; + } + + /** + * PrioritySecGroup: + * + * @param AssociateSecGroupParamPrioritySecGroup[] $prioritySecGroup + */ + public function setPrioritySecGroup(array $prioritySecGroup) + { + $result = []; + foreach ($prioritySecGroup as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/VPC/Apis/AssociateSecGroupResponse.php b/src/VPC/Apis/AssociateSecGroupResponse.php new file mode 100644 index 00000000..c1923612 --- /dev/null +++ b/src/VPC/Apis/AssociateSecGroupResponse.php @@ -0,0 +1,26 @@ + "AttachNetworkInterface"]); + $this->markRequired("Region"); + $this->markRequired("ProjectId"); + $this->markRequired("InterfaceId"); + $this->markRequired("InstanceId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * InterfaceId: 虚拟网卡ID + * + * @return string|null + */ + public function getInterfaceId() + { + return $this->get("InterfaceId"); + } + + /** + * InterfaceId: 虚拟网卡ID + * + * @param string $interfaceId + */ + public function setInterfaceId($interfaceId) + { + $this->set("InterfaceId", $interfaceId); + } + + /** + * InstanceId: 云主机ID(仅支持绑定开启网卡功能,且未开启网络增强的云主机) + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 云主机ID(仅支持绑定开启网卡功能,且未开启网络增强的云主机) + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } +} diff --git a/src/VPC/Apis/AttachNetworkInterfaceResponse.php b/src/VPC/Apis/AttachNetworkInterfaceResponse.php new file mode 100644 index 00000000..91ff0b1c --- /dev/null +++ b/src/VPC/Apis/AttachNetworkInterfaceResponse.php @@ -0,0 +1,26 @@ + "CopySecGroup"]); + $this->markRequired("Region"); + $this->markRequired("ProjectId"); + $this->markRequired("SecGroupId"); + $this->markRequired("DstRegion"); + $this->markRequired("DstProjectId"); + $this->markRequired("DstVPCId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * SecGroupId: 源安全组ID + * + * @return string|null + */ + public function getSecGroupId() + { + return $this->get("SecGroupId"); + } + + /** + * SecGroupId: 源安全组ID + * + * @param string $secGroupId + */ + public function setSecGroupId($secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } + + /** + * DstRegion: 目的地域 + * + * @return string|null + */ + public function getDstRegion() + { + return $this->get("DstRegion"); + } + + /** + * DstRegion: 目的地域 + * + * @param string $dstRegion + */ + public function setDstRegion($dstRegion) + { + $this->set("DstRegion", $dstRegion); + } + + /** + * DstProjectId: 目的项目ID + * + * @return string|null + */ + public function getDstProjectId() + { + return $this->get("DstProjectId"); + } + + /** + * DstProjectId: 目的项目ID + * + * @param string $dstProjectId + */ + public function setDstProjectId($dstProjectId) + { + $this->set("DstProjectId", $dstProjectId); + } + + /** + * DstVPCId: 目的VPC ID + * + * @return string|null + */ + public function getDstVPCId() + { + return $this->get("DstVPCId"); + } + + /** + * DstVPCId: 目的VPC ID + * + * @param string $dstVPCId + */ + public function setDstVPCId($dstVPCId) + { + $this->set("DstVPCId", $dstVPCId); + } + + /** + * DstName: 目的安全组名称,最长64个字符 + * + * @return string|null + */ + public function getDstName() + { + return $this->get("DstName"); + } + + /** + * DstName: 目的安全组名称,最长64个字符 + * + * @param string $dstName + */ + public function setDstName($dstName) + { + $this->set("DstName", $dstName); + } + + /** + * DstRemark: 目的安全组备注 + * + * @return string|null + */ + public function getDstRemark() + { + return $this->get("DstRemark"); + } + + /** + * DstRemark: 目的安全组备注 + * + * @param string $dstRemark + */ + public function setDstRemark($dstRemark) + { + $this->set("DstRemark", $dstRemark); + } +} diff --git a/src/VPC/Apis/CopySecGroupResponse.php b/src/VPC/Apis/CopySecGroupResponse.php new file mode 100644 index 00000000..6b800ab9 --- /dev/null +++ b/src/VPC/Apis/CopySecGroupResponse.php @@ -0,0 +1,64 @@ +get("SecGroupId"); + } + + /** + * SecGroupId: 复制得到的安全组ID + * + * @param string $secGroupId + */ + public function setSecGroupId($secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } + + /** + * RuleID: 复制得到的规则ID + * + * @return string[]|null + */ + public function getRuleID() + { + return $this->get("RuleID"); + } + + /** + * RuleID: 复制得到的规则ID + * + * @param string[] $ruleID + */ + public function setRuleID(array $ruleID) + { + $this->set("RuleID", $ruleID); + } +} diff --git a/src/VPC/Apis/CreateNATGWPolicyRequest.php b/src/VPC/Apis/CreateNATGWPolicyRequest.php index 0bdcd734..0fe45055 100644 --- a/src/VPC/Apis/CreateNATGWPolicyRequest.php +++ b/src/VPC/Apis/CreateNATGWPolicyRequest.php @@ -1,6 +1,6 @@ set("Remark", $remark); } + + /** + * SecurityMode: 指定使用 安全组还是防火墙。为 0 时绑定防火墙,为1时绑定安全组 + * + * @return integer|null + */ + public function getSecurityMode() + { + return $this->get("SecurityMode"); + } + + /** + * SecurityMode: 指定使用 安全组还是防火墙。为 0 时绑定防火墙,为1时绑定安全组 + * + * @param int $securityMode + */ + public function setSecurityMode($securityMode) + { + $this->set("SecurityMode", $securityMode); + } + + /** + * PrioritySecGroup: + * + * @return CreateNetworkInterfaceParamPrioritySecGroup[]|null + */ + public function getPrioritySecGroup() + { + $items = $this->get("PrioritySecGroup"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new CreateNetworkInterfaceParamPrioritySecGroup($item)); + } + return $result; + } + + /** + * PrioritySecGroup: + * + * @param CreateNetworkInterfaceParamPrioritySecGroup[] $prioritySecGroup + */ + public function setPrioritySecGroup(array $prioritySecGroup) + { + $result = []; + foreach ($prioritySecGroup as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * EipDirectMode: 是否开启EIP直通,默认false + * + * @return boolean|null + */ + public function getEipDirectMode() + { + return $this->get("EipDirectMode"); + } + + /** + * EipDirectMode: 是否开启EIP直通,默认false + * + * @param boolean $eipDirectMode + */ + public function setEipDirectMode($eipDirectMode) + { + $this->set("EipDirectMode", $eipDirectMode); + } + + /** + * EipDirectVersion: 枚举值1:EIP网卡可见2:EIP直通默认为1 + * + * @return integer|null + */ + public function getEipDirectVersion() + { + return $this->get("EipDirectVersion"); + } + + /** + * EipDirectVersion: 枚举值1:EIP网卡可见2:EIP直通默认为1 + * + * @param int $eipDirectVersion + */ + public function setEipDirectVersion($eipDirectVersion) + { + $this->set("EipDirectVersion", $eipDirectVersion); + } } diff --git a/src/VPC/Apis/CreateNetworkInterfaceResponse.php b/src/VPC/Apis/CreateNetworkInterfaceResponse.php index d97054ef..3daaced7 100644 --- a/src/VPC/Apis/CreateNetworkInterfaceResponse.php +++ b/src/VPC/Apis/CreateNetworkInterfaceResponse.php @@ -1,6 +1,6 @@ "CreateSecGroup"]); + $this->markRequired("Region"); + $this->markRequired("VPCID"); + $this->markRequired("Name"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * VPCID: 资源ID所属的VPC + * + * @return string|null + */ + public function getVPCID() + { + return $this->get("VPCID"); + } + + /** + * VPCID: 资源ID所属的VPC + * + * @param string $vpcid + */ + public function setVPCID($vpcid) + { + $this->set("VPCID", $vpcid); + } + + /** + * Name: 安全组名称,最长64个字符。 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 安全组名称,最长64个字符。 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } +} diff --git a/src/VPC/Apis/CreateSecGroupResponse.php b/src/VPC/Apis/CreateSecGroupResponse.php new file mode 100644 index 00000000..326a74f8 --- /dev/null +++ b/src/VPC/Apis/CreateSecGroupResponse.php @@ -0,0 +1,44 @@ +get("SecGroupId"); + } + + /** + * SecGroupId: 安全组ID + * + * @param string $secGroupId + */ + public function setSecGroupId($secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } +} diff --git a/src/VPC/Apis/CreateSecGroupRuleRequest.php b/src/VPC/Apis/CreateSecGroupRuleRequest.php new file mode 100644 index 00000000..93fe7e1a --- /dev/null +++ b/src/VPC/Apis/CreateSecGroupRuleRequest.php @@ -0,0 +1,124 @@ + "CreateSecGroupRule"]); + $this->markRequired("Region"); + $this->markRequired("SecGroupId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * SecGroupId: 需要添加规则的安全组资源ID。 + * + * @return string|null + */ + public function getSecGroupId() + { + return $this->get("SecGroupId"); + } + + /** + * SecGroupId: 需要添加规则的安全组资源ID。 + * + * @param string $secGroupId + */ + public function setSecGroupId($secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } + + /** + * Rule: + * + * @return CreateSecGroupRuleParamRule[]|null + */ + public function getRule() + { + $items = $this->get("Rule"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new CreateSecGroupRuleParamRule($item)); + } + return $result; + } + + /** + * Rule: + * + * @param CreateSecGroupRuleParamRule[] $rule + */ + public function setRule(array $rule) + { + $result = []; + foreach ($rule as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/VPC/Apis/CreateSecGroupRuleResponse.php b/src/VPC/Apis/CreateSecGroupRuleResponse.php new file mode 100644 index 00000000..aa501c4c --- /dev/null +++ b/src/VPC/Apis/CreateSecGroupRuleResponse.php @@ -0,0 +1,44 @@ +get("RuleId"); + } + + /** + * RuleId: 规则 ID + * + * @param string[] $ruleId + */ + public function setRuleId(array $ruleId) + { + $this->set("RuleId", $ruleId); + } +} diff --git a/src/VPC/Apis/CreateSnatDnatRuleRequest.php b/src/VPC/Apis/CreateSnatDnatRuleRequest.php index 5b26a884..d23256a0 100644 --- a/src/VPC/Apis/CreateSnatDnatRuleRequest.php +++ b/src/VPC/Apis/CreateSnatDnatRuleRequest.php @@ -1,6 +1,6 @@ set("Remark", $remark); } + + /** + * AssociateIPv6: 是否关联IPv6 + * + * @return boolean|null + */ + public function getAssociateIPv6() + { + return $this->get("AssociateIPv6"); + } + + /** + * AssociateIPv6: 是否关联IPv6 + * + * @param boolean $associateIPv6 + */ + public function setAssociateIPv6($associateIPv6) + { + $this->set("AssociateIPv6", $associateIPv6); + } + + /** + * VPCIPv6Network: 所属VPC的IPv6网段,可选,不填默认从VPC IPv6网段中选择一个进行分配 + * + * @return string|null + */ + public function getVPCIPv6Network() + { + return $this->get("VPCIPv6Network"); + } + + /** + * VPCIPv6Network: 所属VPC的IPv6网段,可选,不填默认从VPC IPv6网段中选择一个进行分配 + * + * @param string $vpciPv6Network + */ + public function setVPCIPv6Network($vpciPv6Network) + { + $this->set("VPCIPv6Network", $vpciPv6Network); + } + + /** + * IPv6Network: IPv6网段 + * + * @return string|null + */ + public function getIPv6Network() + { + return $this->get("IPv6Network"); + } + + /** + * IPv6Network: IPv6网段 + * + * @param string $iPv6Network + */ + public function setIPv6Network($iPv6Network) + { + $this->set("IPv6Network", $iPv6Network); + } } diff --git a/src/VPC/Apis/CreateSubnetResponse.php b/src/VPC/Apis/CreateSubnetResponse.php index f48e3273..9669b83d 100644 --- a/src/VPC/Apis/CreateSubnetResponse.php +++ b/src/VPC/Apis/CreateSubnetResponse.php @@ -1,6 +1,6 @@ set("SubnetId", $subnetId); } + + /** + * IPv6Network: IPv6网段 + * + * @return string|null + */ + public function getIPv6Network() + { + return $this->get("IPv6Network"); + } + + /** + * IPv6Network: IPv6网段 + * + * @param string $iPv6Network + */ + public function setIPv6Network($iPv6Network) + { + $this->set("IPv6Network", $iPv6Network); + } } diff --git a/src/VPC/Apis/CreateVPCIntercomRequest.php b/src/VPC/Apis/CreateVPCIntercomRequest.php index 66ee1a29..93d4f0f3 100644 --- a/src/VPC/Apis/CreateVPCIntercomRequest.php +++ b/src/VPC/Apis/CreateVPCIntercomRequest.php @@ -1,6 +1,6 @@ set("Remark", $remark); } + + /** + * AssociateIPv6: 是否关联IPv6 + * + * @return boolean|null + */ + public function getAssociateIPv6() + { + return $this->get("AssociateIPv6"); + } + + /** + * AssociateIPv6: 是否关联IPv6 + * + * @param boolean $associateIPv6 + */ + public function setAssociateIPv6($associateIPv6) + { + $this->set("AssociateIPv6", $associateIPv6); + } + + /** + * OperatorName: IPv6网段类型 + * + * @return string|null + */ + public function getOperatorName() + { + return $this->get("OperatorName"); + } + + /** + * OperatorName: IPv6网段类型 + * + * @param string $operatorName + */ + public function setOperatorName($operatorName) + { + $this->set("OperatorName", $operatorName); + } } diff --git a/src/VPC/Apis/CreateVPCResponse.php b/src/VPC/Apis/CreateVPCResponse.php index ba677568..42c16ae8 100644 --- a/src/VPC/Apis/CreateVPCResponse.php +++ b/src/VPC/Apis/CreateVPCResponse.php @@ -1,6 +1,6 @@ "DeleteNetworkInterface"]); + $this->markRequired("Region"); + $this->markRequired("ProjectId"); + $this->markRequired("InterfaceId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * InterfaceId: 虚拟网卡ID + * + * @return string|null + */ + public function getInterfaceId() + { + return $this->get("InterfaceId"); + } + + /** + * InterfaceId: 虚拟网卡ID + * + * @param string $interfaceId + */ + public function setInterfaceId($interfaceId) + { + $this->set("InterfaceId", $interfaceId); + } +} diff --git a/src/VPC/Apis/DeleteNetworkInterfaceResponse.php b/src/VPC/Apis/DeleteNetworkInterfaceResponse.php new file mode 100644 index 00000000..db084490 --- /dev/null +++ b/src/VPC/Apis/DeleteNetworkInterfaceResponse.php @@ -0,0 +1,26 @@ + "DeleteSecGroup"]); + $this->markRequired("Region"); + $this->markRequired("SecGroupId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * SecGroupId: 安全组资源 Id。支持 string 数组格式。 + * + * @return string[]|null + */ + public function getSecGroupId() + { + return $this->get("SecGroupId"); + } + + /** + * SecGroupId: 安全组资源 Id。支持 string 数组格式。 + * + * @param string[] $secGroupId + */ + public function setSecGroupId(array $secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } +} diff --git a/src/VPC/Apis/DeleteSecGroupResponse.php b/src/VPC/Apis/DeleteSecGroupResponse.php new file mode 100644 index 00000000..55b98710 --- /dev/null +++ b/src/VPC/Apis/DeleteSecGroupResponse.php @@ -0,0 +1,26 @@ + "DeleteSecGroupRule"]); + $this->markRequired("Region"); + $this->markRequired("SecGroupId"); + $this->markRequired("RuleId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * SecGroupId: 所属安全组 ID。 + * + * @return string|null + */ + public function getSecGroupId() + { + return $this->get("SecGroupId"); + } + + /** + * SecGroupId: 所属安全组 ID。 + * + * @param string $secGroupId + */ + public function setSecGroupId($secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } + + /** + * RuleId: 安全组规则 ID。支持 string 数组格式。 + * + * @return string[]|null + */ + public function getRuleId() + { + return $this->get("RuleId"); + } + + /** + * RuleId: 安全组规则 ID。支持 string 数组格式。 + * + * @param string[] $ruleId + */ + public function setRuleId(array $ruleId) + { + $this->set("RuleId", $ruleId); + } +} diff --git a/src/VPC/Apis/DeleteSecGroupRuleResponse.php b/src/VPC/Apis/DeleteSecGroupRuleResponse.php new file mode 100644 index 00000000..b95b0fde --- /dev/null +++ b/src/VPC/Apis/DeleteSecGroupRuleResponse.php @@ -0,0 +1,26 @@ + "DeleteSubnetIPv6"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("SubnetworkId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * SubnetworkId: 子网ID + * + * @return string|null + */ + public function getSubnetworkId() + { + return $this->get("SubnetworkId"); + } + + /** + * SubnetworkId: 子网ID + * + * @param string $subnetworkId + */ + public function setSubnetworkId($subnetworkId) + { + $this->set("SubnetworkId", $subnetworkId); + } +} diff --git a/src/VPC/Apis/DeleteSubnetIPv6Response.php b/src/VPC/Apis/DeleteSubnetIPv6Response.php new file mode 100644 index 00000000..09e8cc40 --- /dev/null +++ b/src/VPC/Apis/DeleteSubnetIPv6Response.php @@ -0,0 +1,26 @@ + "DeleteVPCIPv6"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("VPCId"); + $this->markRequired("IPv6Network"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * VPCId: VPC资源ID + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: VPC资源ID + * + * @param string $vpcId + */ + public function setVPCId($vpcId) + { + $this->set("VPCId", $vpcId); + } + + /** + * IPv6Network: IPv6网段 + * + * @return string|null + */ + public function getIPv6Network() + { + return $this->get("IPv6Network"); + } + + /** + * IPv6Network: IPv6网段 + * + * @param string $iPv6Network + */ + public function setIPv6Network($iPv6Network) + { + $this->set("IPv6Network", $iPv6Network); + } +} diff --git a/src/VPC/Apis/DeleteVPCIPv6Response.php b/src/VPC/Apis/DeleteVPCIPv6Response.php new file mode 100644 index 00000000..b7c441c1 --- /dev/null +++ b/src/VPC/Apis/DeleteVPCIPv6Response.php @@ -0,0 +1,26 @@ +set("Offset", $offset); } + + /** + * WithSecGroup: 是否展示安全组信息 + * + * @return boolean|null + */ + public function getWithSecGroup() + { + return $this->get("WithSecGroup"); + } + + /** + * WithSecGroup: 是否展示安全组信息 + * + * @param boolean $withSecGroup + */ + public function setWithSecGroup($withSecGroup) + { + $this->set("WithSecGroup", $withSecGroup); + } } diff --git a/src/VPC/Apis/DescribeNetworkInterfaceResponse.php b/src/VPC/Apis/DescribeNetworkInterfaceResponse.php index 257d49ec..ed130c48 100644 --- a/src/VPC/Apis/DescribeNetworkInterfaceResponse.php +++ b/src/VPC/Apis/DescribeNetworkInterfaceResponse.php @@ -1,6 +1,6 @@ "DescribeResourceSecGroup"]); + $this->markRequired("Region"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ResourceType: 资源类型,如 uhost, uni + * + * @return string|null + */ + public function getResourceType() + { + return $this->get("ResourceType"); + } + + /** + * ResourceType: 资源类型,如 uhost, uni + * + * @param string $resourceType + */ + public function setResourceType($resourceType) + { + $this->set("ResourceType", $resourceType); + } + + /** + * Offset: 分页查询时的偏移量。传入了 ResourceId 则不分页。 + * + * @return integer|null + */ + public function getOffset() + { + return $this->get("Offset"); + } + + /** + * Offset: 分页查询时的偏移量。传入了 ResourceId 则不分页。 + * + * @param int $offset + */ + public function setOffset($offset) + { + $this->set("Offset", $offset); + } + + /** + * Limit: 分页查询时的最大返回资源数量。 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 分页查询时的最大返回资源数量。 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } + + /** + * VPCId: VPC ID。非必须,分页使用(分页时,也可不传);ResourceId 非空时,忽略 + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: VPC ID。非必须,分页使用(分页时,也可不传);ResourceId 非空时,忽略 + * + * @param string $vpcId + */ + public function setVPCId($vpcId) + { + $this->set("VPCId", $vpcId); + } + + /** + * ResourceId: 资源 ID 数组,如果指定则不分页;否则分页获取该账号下的指定类型的资源。支持 string 数组格式。 + * + * @return string[]|null + */ + public function getResourceId() + { + return $this->get("ResourceId"); + } + + /** + * ResourceId: 资源 ID 数组,如果指定则不分页;否则分页获取该账号下的指定类型的资源。支持 string 数组格式。 + * + * @param string[] $resourceId + */ + public function setResourceId(array $resourceId) + { + $this->set("ResourceId", $resourceId); + } +} diff --git a/src/VPC/Apis/DescribeResourceSecGroupResponse.php b/src/VPC/Apis/DescribeResourceSecGroupResponse.php new file mode 100644 index 00000000..05b4df74 --- /dev/null +++ b/src/VPC/Apis/DescribeResourceSecGroupResponse.php @@ -0,0 +1,81 @@ +get("TotalCount"); + } + + /** + * TotalCount: 资源总数量。传入 ResourceId 时,为传入资源中的有效资源数量。 + * + * @param int $totalCount + */ + public function setTotalCount($totalCount) + { + $this->set("TotalCount", $totalCount); + } + + /** + * DataSet: 资源绑定的安全组信息 + * + * @return ResourceSecgroupInfoEx[]|null + */ + public function getDataSet() + { + $items = $this->get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ResourceSecgroupInfoEx($item)); + } + return $result; + } + + /** + * DataSet: 资源绑定的安全组信息 + * + * @param ResourceSecgroupInfoEx[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/VPC/Apis/DescribeRouteTableRequest.php b/src/VPC/Apis/DescribeRouteTableRequest.php index 0f5b850b..efbf02ce 100644 --- a/src/VPC/Apis/DescribeRouteTableRequest.php +++ b/src/VPC/Apis/DescribeRouteTableRequest.php @@ -1,6 +1,6 @@ "DescribeSecGroup"]); + $this->markRequired("Region"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * Limit: 分页查询数据长度。默认为20 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 分页查询数据长度。默认为20 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } + + /** + * Offset: 分页查询起始位置偏移量。默认为0 + * + * @return integer|null + */ + public function getOffset() + { + return $this->get("Offset"); + } + + /** + * Offset: 分页查询起始位置偏移量。默认为0 + * + * @param int $offset + */ + public function setOffset($offset) + { + $this->set("Offset", $offset); + } + + /** + * VPCId: 资源ID所属的 VPC ID + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: 资源ID所属的 VPC ID + * + * @param string $vpcId + */ + public function setVPCId($vpcId) + { + $this->set("VPCId", $vpcId); + } + + /** + * SecGroupId: 安全组资源 ID 数组,传入则 Offset/Limit/BusinessId 失效。支持数组格式。Type 为 string 数组。 + * + * @return string[]|null + */ + public function getSecGroupId() + { + return $this->get("SecGroupId"); + } + + /** + * SecGroupId: 安全组资源 ID 数组,传入则 Offset/Limit/BusinessId 失效。支持数组格式。Type 为 string 数组。 + * + * @param string[] $secGroupId + */ + public function setSecGroupId(array $secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } +} diff --git a/src/VPC/Apis/DescribeSecGroupResourceRequest.php b/src/VPC/Apis/DescribeSecGroupResourceRequest.php new file mode 100644 index 00000000..02abc394 --- /dev/null +++ b/src/VPC/Apis/DescribeSecGroupResourceRequest.php @@ -0,0 +1,130 @@ + "DescribeSecGroupResource"]); + $this->markRequired("Region"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * SecGroupId: 安全组资源ID。 + * + * @return string|null + */ + public function getSecGroupId() + { + return $this->get("SecGroupId"); + } + + /** + * SecGroupId: 安全组资源ID。 + * + * @param string $secGroupId + */ + public function setSecGroupId($secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } + + /** + * Limit: 分页查询长度。默认为20 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 分页查询长度。默认为20 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } + + /** + * Offset: 分页查询起始位置偏移量。默认为0 + * + * @return integer|null + */ + public function getOffset() + { + return $this->get("Offset"); + } + + /** + * Offset: 分页查询起始位置偏移量。默认为0 + * + * @param int $offset + */ + public function setOffset($offset) + { + $this->set("Offset", $offset); + } +} diff --git a/src/VPC/Apis/DescribeSecGroupResourceResponse.php b/src/VPC/Apis/DescribeSecGroupResourceResponse.php new file mode 100644 index 00000000..4b1bb3ff --- /dev/null +++ b/src/VPC/Apis/DescribeSecGroupResourceResponse.php @@ -0,0 +1,77 @@ +get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new SecGroupResourceInfo($item)); + } + return $result; + } + + /** + * DataSet: 详见SecGroupResourceInfo + * + * @param SecGroupResourceInfo[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * TotalCount: 安全组绑定的资源总数 + * + * @return integer|null + */ + public function getTotalCount() + { + return $this->get("TotalCount"); + } + + /** + * TotalCount: 安全组绑定的资源总数 + * + * @param int $totalCount + */ + public function setTotalCount($totalCount) + { + $this->set("TotalCount", $totalCount); + } +} diff --git a/src/VPC/Apis/DescribeSecGroupResponse.php b/src/VPC/Apis/DescribeSecGroupResponse.php new file mode 100644 index 00000000..63036b41 --- /dev/null +++ b/src/VPC/Apis/DescribeSecGroupResponse.php @@ -0,0 +1,58 @@ +get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new SecGroupInfo($item)); + } + return $result; + } + + /** + * DataSet: 详见SecGroupInfo + * + * @param SecGroupInfo[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/VPC/Apis/DescribeSecondaryIpRequest.php b/src/VPC/Apis/DescribeSecondaryIpRequest.php index 1da907d9..d1ea3ca3 100644 --- a/src/VPC/Apis/DescribeSecondaryIpRequest.php +++ b/src/VPC/Apis/DescribeSecondaryIpRequest.php @@ -1,6 +1,6 @@ set("ShowAvailableIPs", $showAvailableIPs); } + + /** + * IgnoreResource: 默认为 false针对控制台调用,可设置为true,不进行控制台非必要数据的查询 + * + * @return boolean|null + */ + public function getIgnoreResource() + { + return $this->get("IgnoreResource"); + } + + /** + * IgnoreResource: 默认为 false针对控制台调用,可设置为true,不进行控制台非必要数据的查询 + * + * @param boolean $ignoreResource + */ + public function setIgnoreResource($ignoreResource) + { + $this->set("IgnoreResource", $ignoreResource); + } } diff --git a/src/VPC/Apis/DescribeSubnetResourceRequest.php b/src/VPC/Apis/DescribeSubnetResourceRequest.php index 4939a54e..870a3007 100644 --- a/src/VPC/Apis/DescribeSubnetResourceRequest.php +++ b/src/VPC/Apis/DescribeSubnetResourceRequest.php @@ -1,6 +1,6 @@ get("TotalCount"); + } + + /** + * TotalCount: + * + * @param int $totalCount + */ + public function setTotalCount($totalCount) + { + $this->set("TotalCount", $totalCount); + } } diff --git a/src/VPC/Apis/DescribeWhiteListResourceRequest.php b/src/VPC/Apis/DescribeWhiteListResourceRequest.php index feeecf19..138ca7b2 100644 --- a/src/VPC/Apis/DescribeWhiteListResourceRequest.php +++ b/src/VPC/Apis/DescribeWhiteListResourceRequest.php @@ -1,6 +1,6 @@ set("NATGWIds", $natgwIds); } - - /** - * Offset: 数据偏移量, 默认为0 - * - * @return integer|null - */ - public function getOffset() - { - return $this->get("Offset"); - } - - /** - * Offset: 数据偏移量, 默认为0 - * - * @param int $offset - */ - public function setOffset($offset) - { - $this->set("Offset", $offset); - } - - /** - * Limit: 数据分页值, 默认为20 - * - * @return integer|null - */ - public function getLimit() - { - return $this->get("Limit"); - } - - /** - * Limit: 数据分页值, 默认为20 - * - * @param int $limit - */ - public function setLimit($limit) - { - $this->set("Limit", $limit); - } } diff --git a/src/VPC/Apis/DescribeWhiteListResourceResponse.php b/src/VPC/Apis/DescribeWhiteListResourceResponse.php index d5ed2eae..5a817d64 100644 --- a/src/VPC/Apis/DescribeWhiteListResourceResponse.php +++ b/src/VPC/Apis/DescribeWhiteListResourceResponse.php @@ -1,6 +1,6 @@ "DetachNetworkInterface"]); + $this->markRequired("Region"); + $this->markRequired("ProjectId"); + $this->markRequired("InterfaceId"); + $this->markRequired("InstanceId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * InterfaceId: 虚拟网卡ID + * + * @return string|null + */ + public function getInterfaceId() + { + return $this->get("InterfaceId"); + } + + /** + * InterfaceId: 虚拟网卡ID + * + * @param string $interfaceId + */ + public function setInterfaceId($interfaceId) + { + $this->set("InterfaceId", $interfaceId); + } + + /** + * InstanceId: 云主机ID + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 云主机ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } +} diff --git a/src/VPC/Apis/DetachNetworkInterfaceResponse.php b/src/VPC/Apis/DetachNetworkInterfaceResponse.php new file mode 100644 index 00000000..7ffe6386 --- /dev/null +++ b/src/VPC/Apis/DetachNetworkInterfaceResponse.php @@ -0,0 +1,26 @@ + "DisableUniEipDirectMode"]); + $this->markRequired("Region"); + $this->markRequired("ProjectId"); + $this->markRequired("VPCId"); + $this->markRequired("InterfaceId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * VPCId: VPC ID + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: VPC ID + * + * @param string $vpcId + */ + public function setVPCId($vpcId) + { + $this->set("VPCId", $vpcId); + } + + /** + * InterfaceId: 虚拟网卡ID + * + * @return string|null + */ + public function getInterfaceId() + { + return $this->get("InterfaceId"); + } + + /** + * InterfaceId: 虚拟网卡ID + * + * @param string $interfaceId + */ + public function setInterfaceId($interfaceId) + { + $this->set("InterfaceId", $interfaceId); + } +} diff --git a/src/VPC/Apis/DisableUniEipDirectModeResponse.php b/src/VPC/Apis/DisableUniEipDirectModeResponse.php new file mode 100644 index 00000000..5f72d785 --- /dev/null +++ b/src/VPC/Apis/DisableUniEipDirectModeResponse.php @@ -0,0 +1,26 @@ + "DisableVPCIPv6"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("VPCId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * VPCId: VPC资源ID + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: VPC资源ID + * + * @param string $vpcId + */ + public function setVPCId($vpcId) + { + $this->set("VPCId", $vpcId); + } +} diff --git a/src/VPC/Apis/DisableVPCIPv6Response.php b/src/VPC/Apis/DisableVPCIPv6Response.php new file mode 100644 index 00000000..40ddc215 --- /dev/null +++ b/src/VPC/Apis/DisableVPCIPv6Response.php @@ -0,0 +1,26 @@ + "DisassociateSecGroup"]); + $this->markRequired("Region"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * SecGroupId: 安全组ID,不传表示解绑安全组绑定的所以资源,安全组ID和资源ID至少传一个,且只能有一个批量。支持 string 数组格式。 + * + * @return string[]|null + */ + public function getSecGroupId() + { + return $this->get("SecGroupId"); + } + + /** + * SecGroupId: 安全组ID,不传表示解绑安全组绑定的所以资源,安全组ID和资源ID至少传一个,且只能有一个批量。支持 string 数组格式。 + * + * @param string[] $secGroupId + */ + public function setSecGroupId(array $secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } + + /** + * ResourceId: 资源ID,不传表示解绑资源上所有安全组,安全组ID和资源ID至少传一个,且只能有一个批量。支持 string 数组格式。 + * + * @return string[]|null + */ + public function getResourceId() + { + return $this->get("ResourceId"); + } + + /** + * ResourceId: 资源ID,不传表示解绑资源上所有安全组,安全组ID和资源ID至少传一个,且只能有一个批量。支持 string 数组格式。 + * + * @param string[] $resourceId + */ + public function setResourceId(array $resourceId) + { + $this->set("ResourceId", $resourceId); + } + + /** + * Force: 是否强制解绑。默认为 false。为 true 表示强制解绑,用于删除资源前的解绑,因为开启安全组特性的资源至少绑定一个安全组,正常情况下是不允许解绑所有安全组。 + * + * @return boolean|null + */ + public function getForce() + { + return $this->get("Force"); + } + + /** + * Force: 是否强制解绑。默认为 false。为 true 表示强制解绑,用于删除资源前的解绑,因为开启安全组特性的资源至少绑定一个安全组,正常情况下是不允许解绑所有安全组。 + * + * @param boolean $force + */ + public function setForce($force) + { + $this->set("Force", $force); + } +} diff --git a/src/VPC/Apis/DisassociateSecGroupResponse.php b/src/VPC/Apis/DisassociateSecGroupResponse.php new file mode 100644 index 00000000..c6b8d086 --- /dev/null +++ b/src/VPC/Apis/DisassociateSecGroupResponse.php @@ -0,0 +1,26 @@ + "EnableUniEipDirectMode"]); + $this->markRequired("Region"); + $this->markRequired("ProjectId"); + $this->markRequired("VPCId"); + $this->markRequired("InterfaceId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * VPCId: VPC ID + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: VPC ID + * + * @param string $vpcId + */ + public function setVPCId($vpcId) + { + $this->set("VPCId", $vpcId); + } + + /** + * InterfaceId: 虚拟网卡ID + * + * @return string|null + */ + public function getInterfaceId() + { + return $this->get("InterfaceId"); + } + + /** + * InterfaceId: 虚拟网卡ID + * + * @param string $interfaceId + */ + public function setInterfaceId($interfaceId) + { + $this->set("InterfaceId", $interfaceId); + } + + /** + * EipDirectVersion: 枚举值:1-EIP网卡可见2-EIP直通默认为1 + * + * @return integer|null + */ + public function getEipDirectVersion() + { + return $this->get("EipDirectVersion"); + } + + /** + * EipDirectVersion: 枚举值:1-EIP网卡可见2-EIP直通默认为1 + * + * @param int $eipDirectVersion + */ + public function setEipDirectVersion($eipDirectVersion) + { + $this->set("EipDirectVersion", $eipDirectVersion); + } +} diff --git a/src/VPC/Apis/EnableUniEipDirectModeResponse.php b/src/VPC/Apis/EnableUniEipDirectModeResponse.php new file mode 100644 index 00000000..70920252 --- /dev/null +++ b/src/VPC/Apis/EnableUniEipDirectModeResponse.php @@ -0,0 +1,26 @@ +get("TotalCount"); + } + + /** + * TotalCount: 可配置端口转发规则的资源总数 + * + * @param int $totalCount + */ + public function setTotalCount($totalCount) + { + $this->set("TotalCount", $totalCount); + } } diff --git a/src/VPC/Apis/GetAvailableResourceForSnatRuleRequest.php b/src/VPC/Apis/GetAvailableResourceForSnatRuleRequest.php index fb325055..51504b77 100644 --- a/src/VPC/Apis/GetAvailableResourceForSnatRuleRequest.php +++ b/src/VPC/Apis/GetAvailableResourceForSnatRuleRequest.php @@ -1,6 +1,6 @@ "SwitchToFirewall"]); + $this->markRequired("Region"); + $this->markRequired("ProjectId"); + $this->markRequired("ResourceId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ResourceId: 资源ID。资源类型为 UHost、UNI、PAAS 资源 + * + * @return string|null + */ + public function getResourceId() + { + return $this->get("ResourceId"); + } + + /** + * ResourceId: 资源ID。资源类型为 UHost、UNI、PAAS 资源 + * + * @param string $resourceId + */ + public function setResourceId($resourceId) + { + $this->set("ResourceId", $resourceId); + } + + /** + * Firewall: 防火墙 ID + * + * @return string|null + */ + public function getFirewall() + { + return $this->get("Firewall"); + } + + /** + * Firewall: 防火墙 ID + * + * @param string $firewall + */ + public function setFirewall($firewall) + { + $this->set("Firewall", $firewall); + } + + /** + * NodeToFirewall: map[string]string,string 到 防火墙 ID 的映射。ResourceId是uhost则Node是uni;ResourceId是uhadoop则Node是hadoophost + * + * @return string|null + */ + public function getNodeToFirewall() + { + return $this->get("NodeToFirewall"); + } + + /** + * NodeToFirewall: map[string]string,string 到 防火墙 ID 的映射。ResourceId是uhost则Node是uni;ResourceId是uhadoop则Node是hadoophost + * + * @param string $nodeToFirewall + */ + public function setNodeToFirewall($nodeToFirewall) + { + $this->set("NodeToFirewall", $nodeToFirewall); + } +} diff --git a/src/VPC/Apis/SwitchToFirewallResponse.php b/src/VPC/Apis/SwitchToFirewallResponse.php new file mode 100644 index 00000000..829689c2 --- /dev/null +++ b/src/VPC/Apis/SwitchToFirewallResponse.php @@ -0,0 +1,26 @@ + "SwitchToSecGroup"]); + $this->markRequired("Region"); + $this->markRequired("ProjectId"); + $this->markRequired("ResourceId"); + $this->markRequired("IsRemoveFirewall"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ResourceId: 资源ID。资源类型为 UHost、UNI、PAAS 资源 + * + * @return string|null + */ + public function getResourceId() + { + return $this->get("ResourceId"); + } + + /** + * ResourceId: 资源ID。资源类型为 UHost、UNI、PAAS 资源 + * + * @param string $resourceId + */ + public function setResourceId($resourceId) + { + $this->set("ResourceId", $resourceId); + } + + /** + * IsRemoveFirewall: 是否移除当前的防火墙(且绑定默认全通的防火墙) + * + * @return boolean|null + */ + public function getIsRemoveFirewall() + { + return $this->get("IsRemoveFirewall"); + } + + /** + * IsRemoveFirewall: 是否移除当前的防火墙(且绑定默认全通的防火墙) + * + * @param boolean $isRemoveFirewall + */ + public function setIsRemoveFirewall($isRemoveFirewall) + { + $this->set("IsRemoveFirewall", $isRemoveFirewall); + } + + /** + * PrioritySecGroup: PrioritySecGroup类型的数组 + * + * @return string[]|null + */ + public function getPrioritySecGroup() + { + return $this->get("PrioritySecGroup"); + } + + /** + * PrioritySecGroup: PrioritySecGroup类型的数组 + * + * @param string[] $prioritySecGroup + */ + public function setPrioritySecGroup(array $prioritySecGroup) + { + $this->set("PrioritySecGroup", $prioritySecGroup); + } + + /** + * UniToPrioritySecGroup: map[string][]PrioritySecGroup, string 到 PrioritySecGroup 数组的映射 + * + * @return string|null + */ + public function getUniToPrioritySecGroup() + { + return $this->get("UniToPrioritySecGroup"); + } + + /** + * UniToPrioritySecGroup: map[string][]PrioritySecGroup, string 到 PrioritySecGroup 数组的映射 + * + * @param string $uniToPrioritySecGroup + */ + public function setUniToPrioritySecGroup($uniToPrioritySecGroup) + { + $this->set("UniToPrioritySecGroup", $uniToPrioritySecGroup); + } +} diff --git a/src/VPC/Apis/SwitchToSecGroupResponse.php b/src/VPC/Apis/SwitchToSecGroupResponse.php new file mode 100644 index 00000000..d93672d5 --- /dev/null +++ b/src/VPC/Apis/SwitchToSecGroupResponse.php @@ -0,0 +1,26 @@ + "UnassignIPv6"]); + $this->markRequired("Region"); + $this->markRequired("ObjectId"); + $this->markRequired("IPv6Addresses"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ObjectId: 资源ID + * + * @return string|null + */ + public function getObjectId() + { + return $this->get("ObjectId"); + } + + /** + * ObjectId: 资源ID + * + * @param string $objectId + */ + public function setObjectId($objectId) + { + $this->set("ObjectId", $objectId); + } + + /** + * IPv6Addresses: IPv6地址 + * + * @return string[]|null + */ + public function getIPv6Addresses() + { + return $this->get("IPv6Addresses"); + } + + /** + * IPv6Addresses: IPv6地址 + * + * @param string[] $iPv6Addresses + */ + public function setIPv6Addresses(array $iPv6Addresses) + { + $this->set("IPv6Addresses", $iPv6Addresses); + } +} diff --git a/src/VPC/Apis/UnassignIPv6Response.php b/src/VPC/Apis/UnassignIPv6Response.php new file mode 100644 index 00000000..b1f527a8 --- /dev/null +++ b/src/VPC/Apis/UnassignIPv6Response.php @@ -0,0 +1,26 @@ + "UpdateNATGW"]); + $this->markRequired("Region"); + $this->markRequired("NATGWId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * NATGWId: natgw id + * + * @return string|null + */ + public function getNATGWId() + { + return $this->get("NATGWId"); + } + + /** + * NATGWId: natgw id + * + * @param string $natgwId + */ + public function setNATGWId($natgwId) + { + $this->set("NATGWId", $natgwId); + } + + /** + * NATGWName: NATGateWay 名字 + * + * @return string|null + */ + public function getNATGWName() + { + return $this->get("NATGWName"); + } + + /** + * NATGWName: NATGateWay 名字 + * + * @param string $natgwName + */ + public function setNATGWName($natgwName) + { + $this->set("NATGWName", $natgwName); + } + + /** + * Tag: 业务组 + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 业务组 + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } + + /** + * Remark: 备注 + * + * @return string|null + */ + public function getRemark() + { + return $this->get("Remark"); + } + + /** + * Remark: 备注 + * + * @param string $remark + */ + public function setRemark($remark) + { + $this->set("Remark", $remark); + } +} diff --git a/src/VPC/Apis/UpdateNATGWResponse.php b/src/VPC/Apis/UpdateNATGWResponse.php new file mode 100644 index 00000000..b0b47017 --- /dev/null +++ b/src/VPC/Apis/UpdateNATGWResponse.php @@ -0,0 +1,26 @@ + "UpdateNATGWSnatpool"]); + $this->markRequired("Region"); + $this->markRequired("NATGWId"); + $this->markRequired("IsSnatpoolEnabled"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * NATGWId: NAT网关的资源ID + * + * @return string|null + */ + public function getNATGWId() + { + return $this->get("NATGWId"); + } + + /** + * NATGWId: NAT网关的资源ID + * + * @param string $natgwId + */ + public function setNATGWId($natgwId) + { + $this->set("NATGWId", $natgwId); + } + + /** + * IsSnatpoolEnabled: 开启,"enable";关闭,"disable"; + * + * @return string|null + */ + public function getIsSnatpoolEnabled() + { + return $this->get("IsSnatpoolEnabled"); + } + + /** + * IsSnatpoolEnabled: 开启,"enable";关闭,"disable"; + * + * @param string $isSnatpoolEnabled + */ + public function setIsSnatpoolEnabled($isSnatpoolEnabled) + { + $this->set("IsSnatpoolEnabled", $isSnatpoolEnabled); + } +} diff --git a/src/VPC/Apis/UpdateNATGWSnatpoolResponse.php b/src/VPC/Apis/UpdateNATGWSnatpoolResponse.php new file mode 100644 index 00000000..bd99e5bc --- /dev/null +++ b/src/VPC/Apis/UpdateNATGWSnatpoolResponse.php @@ -0,0 +1,26 @@ + "UpdateNetworkInterfaceDefaultOutput"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("InterfaceId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * InterfaceId: 虚拟网卡Id + * + * @return string|null + */ + public function getInterfaceId() + { + return $this->get("InterfaceId"); + } + + /** + * InterfaceId: 虚拟网卡Id + * + * @param string $interfaceId + */ + public function setInterfaceId($interfaceId) + { + $this->set("InterfaceId", $interfaceId); + } + + /** + * Output: 出口IP + * + * @return string|null + */ + public function getOutput() + { + return $this->get("Output"); + } + + /** + * Output: 出口IP + * + * @param string $output + */ + public function setOutput($output) + { + $this->set("Output", $output); + } +} diff --git a/src/VPC/Apis/UpdateNetworkInterfaceDefaultOutputResponse.php b/src/VPC/Apis/UpdateNetworkInterfaceDefaultOutputResponse.php new file mode 100644 index 00000000..9722847c --- /dev/null +++ b/src/VPC/Apis/UpdateNetworkInterfaceDefaultOutputResponse.php @@ -0,0 +1,26 @@ + "UpdateSecGroupAssociation"]); + $this->markRequired("Region"); + $this->markRequired("ResourceId"); + $this->markRequired("OldSecGroupId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ResourceId: 资源ID + * + * @return string|null + */ + public function getResourceId() + { + return $this->get("ResourceId"); + } + + /** + * ResourceId: 资源ID + * + * @param string $resourceId + */ + public function setResourceId($resourceId) + { + $this->set("ResourceId", $resourceId); + } + + /** + * OldSecGroupId: 被替换的安全组ID。支持数组格式,即为 string 数组。 + * + * @return string[]|null + */ + public function getOldSecGroupId() + { + return $this->get("OldSecGroupId"); + } + + /** + * OldSecGroupId: 被替换的安全组ID。支持数组格式,即为 string 数组。 + * + * @param string[] $oldSecGroupId + */ + public function setOldSecGroupId(array $oldSecGroupId) + { + $this->set("OldSecGroupId", $oldSecGroupId); + } + + /** + * NewPrioritySecGroup: + * + * @return UpdateSecGroupAssociationParamNewPrioritySecGroup[]|null + */ + public function getNewPrioritySecGroup() + { + $items = $this->get("NewPrioritySecGroup"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UpdateSecGroupAssociationParamNewPrioritySecGroup($item)); + } + return $result; + } + + /** + * NewPrioritySecGroup: + * + * @param UpdateSecGroupAssociationParamNewPrioritySecGroup[] $newPrioritySecGroup + */ + public function setNewPrioritySecGroup(array $newPrioritySecGroup) + { + $result = []; + foreach ($newPrioritySecGroup as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/VPC/Apis/UpdateSecGroupAssociationResponse.php b/src/VPC/Apis/UpdateSecGroupAssociationResponse.php new file mode 100644 index 00000000..91738385 --- /dev/null +++ b/src/VPC/Apis/UpdateSecGroupAssociationResponse.php @@ -0,0 +1,26 @@ + "UpdateSecGroup"]); + $this->markRequired("Region"); + $this->markRequired("SecGroupId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * SecGroupId: 安全组资源ID数组。不支持 .n 格式。Type 为 string 数组。 + * + * @return string|null + */ + public function getSecGroupId() + { + return $this->get("SecGroupId"); + } + + /** + * SecGroupId: 安全组资源ID数组。不支持 .n 格式。Type 为 string 数组。 + * + * @param string $secGroupId + */ + public function setSecGroupId($secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } + + /** + * Name: 安全组名称,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 安全组名称,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Remark: 安全组备注,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 + * + * @return string|null + */ + public function getRemark() + { + return $this->get("Remark"); + } + + /** + * Remark: 安全组备注,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 + * + * @param string $remark + */ + public function setRemark($remark) + { + $this->set("Remark", $remark); + } +} diff --git a/src/VPC/Apis/UpdateSecGroupResponse.php b/src/VPC/Apis/UpdateSecGroupResponse.php new file mode 100644 index 00000000..68fb1278 --- /dev/null +++ b/src/VPC/Apis/UpdateSecGroupResponse.php @@ -0,0 +1,26 @@ + "UpdateSecGroupRule"]); + $this->markRequired("Region"); + $this->markRequired("SecGroupId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * SecGroupId: 规则所属得安全组 ID。 + * + * @return string|null + */ + public function getSecGroupId() + { + return $this->get("SecGroupId"); + } + + /** + * SecGroupId: 规则所属得安全组 ID。 + * + * @param string $secGroupId + */ + public function setSecGroupId($secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } + + /** + * Rule: + * + * @return UpdateSecGroupRuleParamRule[]|null + */ + public function getRule() + { + $items = $this->get("Rule"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UpdateSecGroupRuleParamRule($item)); + } + return $result; + } + + /** + * Rule: + * + * @param UpdateSecGroupRuleParamRule[] $rule + */ + public function setRule(array $rule) + { + $result = []; + foreach ($rule as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/VPC/Apis/UpdateSecGroupRuleResponse.php b/src/VPC/Apis/UpdateSecGroupRuleResponse.php new file mode 100644 index 00000000..d6e3b97a --- /dev/null +++ b/src/VPC/Apis/UpdateSecGroupRuleResponse.php @@ -0,0 +1,26 @@ + "UpdateVPCIPv6"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("VPCId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * VPCId: VPC资源ID + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: VPC资源ID + * + * @param string $vpcId + */ + public function setVPCId($vpcId) + { + $this->set("VPCId", $vpcId); + } + + /** + * IPv6NetworkConfig: + * + * @return UpdateVPCIPv6ParamIPv6NetworkConfig[]|null + */ + public function getIPv6NetworkConfig() + { + $items = $this->get("IPv6NetworkConfig"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UpdateVPCIPv6ParamIPv6NetworkConfig($item)); + } + return $result; + } + + /** + * IPv6NetworkConfig: + * + * @param UpdateVPCIPv6ParamIPv6NetworkConfig[] $iPv6NetworkConfig + */ + public function setIPv6NetworkConfig(array $iPv6NetworkConfig) + { + $result = []; + foreach ($iPv6NetworkConfig as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/VPC/Apis/UpdateVPCIPv6Response.php b/src/VPC/Apis/UpdateVPCIPv6Response.php new file mode 100644 index 00000000..b74e0a10 --- /dev/null +++ b/src/VPC/Apis/UpdateVPCIPv6Response.php @@ -0,0 +1,26 @@ +get("SecGroupId"); + } + + /** + * SecGroupId: 安全组 ID + * + * @param string $secGroupId + */ + public function setSecGroupId($secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } + + /** + * Name: 安全组名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 安全组名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * VPCId: 安全组所属 VPC + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: 安全组所属 VPC + * + * @param string $vpcId + */ + public function setVPCId($vpcId) + { + $this->set("VPCId", $vpcId); + } + + /** + * Priority: 该资源与该安全组绑定的优先级 + * + * @return integer|null + */ + public function getPriority() + { + return $this->get("Priority"); + } + + /** + * Priority: 该资源与该安全组绑定的优先级 + * + * @param int $priority + */ + public function setPriority($priority) + { + $this->set("Priority", $priority); + } +} diff --git a/src/VPC/Models/DescribeWhiteListResourceObjectIPInfo.php b/src/VPC/Models/DescribeWhiteListResourceObjectIPInfo.php index 12b7deb0..5eb2addf 100644 --- a/src/VPC/Models/DescribeWhiteListResourceObjectIPInfo.php +++ b/src/VPC/Models/DescribeWhiteListResourceObjectIPInfo.php @@ -1,6 +1,6 @@ get("Id"); + } + + /** + * Id: 防火墙资源 ID + * + * @param string $id + */ + public function setId($id) + { + $this->set("Id", $id); + } + + /** + * Name: 防火墙资源名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 防火墙资源名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } +} diff --git a/src/VPC/Models/GetAvailableResourceForPolicyDataSet.php b/src/VPC/Models/GetAvailableResourceForPolicyDataSet.php index 41533432..675325a1 100644 --- a/src/VPC/Models/GetAvailableResourceForPolicyDataSet.php +++ b/src/VPC/Models/GetAvailableResourceForPolicyDataSet.php @@ -1,6 +1,6 @@ get("IPv6Network"); + } + + /** + * IPv6Network: IPv6网段 + * + * @param string $iPv6Network + */ + public function setIPv6Network($iPv6Network) + { + $this->set("IPv6Network", $iPv6Network); + } + + /** + * OperatorName: 类型 + * + * @return string|null + */ + public function getOperatorName() + { + return $this->get("OperatorName"); + } + + /** + * OperatorName: 类型 + * + * @param string $operatorName + */ + public function setOperatorName($operatorName) + { + $this->set("OperatorName", $operatorName); + } + + /** + * IPv6SubnetCount: IPv6子网数量 + * + * @return integer|null + */ + public function getIPv6SubnetCount() + { + return $this->get("IPv6SubnetCount"); + } + + /** + * IPv6SubnetCount: IPv6子网数量 + * + * @param int $iPv6SubnetCount + */ + public function setIPv6SubnetCount($iPv6SubnetCount) + { + $this->set("IPv6SubnetCount", $iPv6SubnetCount); + } +} diff --git a/src/VPC/Models/InstanceNetworkInterface.php b/src/VPC/Models/InstanceNetworkInterface.php index ba8e3e28..5ac654db 100644 --- a/src/VPC/Models/InstanceNetworkInterface.php +++ b/src/VPC/Models/InstanceNetworkInterface.php @@ -1,6 +1,6 @@ get("SubnetworkId"); + return $this->get("Subnet"); } /** - * SubnetworkId: 子网id + * Subnet: 子网网段 * - * @param string $subnetworkId + * @param string $subnet */ - public function setSubnetworkId($subnetworkId) + public function setSubnet($subnet) { - $this->set("SubnetworkId", $subnetworkId); + $this->set("Subnet", $subnet); } /** - * Subnet: 子网网段 + * SubnetworkId: 子网id * * @return string|null */ - public function getSubnet() + public function getSubnetworkId() { - return $this->get("Subnet"); + return $this->get("SubnetworkId"); } /** - * Subnet: 子网网段 + * SubnetworkId: 子网id * - * @param string $subnet + * @param string $subnetworkId */ - public function setSubnet($subnet) + public function setSubnetworkId($subnetworkId) { - $this->set("Subnet", $subnet); + $this->set("SubnetworkId", $subnetworkId); } /** diff --git a/src/VPC/Models/NatgwSubnetDataSet.php b/src/VPC/Models/NatgwSubnetDataSet.php index 456c2e1c..b769bd7c 100644 --- a/src/VPC/Models/NatgwSubnetDataSet.php +++ b/src/VPC/Models/NatgwSubnetDataSet.php @@ -1,6 +1,6 @@ get("SubnetId"); - } - - /** - * SubnetId: 子网id - * - * @param string $subnetId - */ - public function setSubnetId($subnetId) - { - $this->set("SubnetId", $subnetId); - } - /** * Subnet: 子网网段 * @@ -83,42 +63,62 @@ public function setNetmask($netmask) } /** - * SubnetName: 子网名字 + * HasNATGW: 是否绑定NATGW + * + * @return boolean|null + */ + public function getHasNATGW() + { + return $this->get("HasNATGW"); + } + + /** + * HasNATGW: 是否绑定NATGW + * + * @param boolean $hasNATGW + */ + public function setHasNATGW($hasNATGW) + { + $this->set("HasNATGW", $hasNATGW); + } + + /** + * SubnetId: 子网id * * @return string|null */ - public function getSubnetName() + public function getSubnetId() { - return $this->get("SubnetName"); + return $this->get("SubnetId"); } /** - * SubnetName: 子网名字 + * SubnetId: 子网id * - * @param string $subnetName + * @param string $subnetId */ - public function setSubnetName($subnetName) + public function setSubnetId($subnetId) { - $this->set("SubnetName", $subnetName); + $this->set("SubnetId", $subnetId); } /** - * HasNATGW: 是否绑定NATGW + * SubnetName: 子网名字 * - * @return boolean|null + * @return string|null */ - public function getHasNATGW() + public function getSubnetName() { - return $this->get("HasNATGW"); + return $this->get("SubnetName"); } /** - * HasNATGW: 是否绑定NATGW + * SubnetName: 子网名字 * - * @param boolean $hasNATGW + * @param string $subnetName */ - public function setHasNATGW($hasNATGW) + public function setSubnetName($subnetName) { - $this->set("HasNATGW", $hasNATGW); + $this->set("SubnetName", $subnetName); } } diff --git a/src/VPC/Models/NetworkInterface.php b/src/VPC/Models/NetworkInterface.php index ce4c2466..de47f925 100644 --- a/src/VPC/Models/NetworkInterface.php +++ b/src/VPC/Models/NetworkInterface.php @@ -1,6 +1,6 @@ get("EIPIdSet"); + } + + /** + * EIPIdSet: EIP Id 集合 + * + * @param string[] $eipIdSet + */ + public function setEIPIdSet(array $eipIdSet) + { + $this->set("EIPIdSet", $eipIdSet); + } + + /** + * FirewallIdSet: 防火墙 ID 集合 + * + * @return string[]|null + */ + public function getFirewallIdSet() + { + return $this->get("FirewallIdSet"); + } + + /** + * FirewallIdSet: 防火墙 ID 集合 + * + * @param string[] $firewallIdSet + */ + public function setFirewallIdSet(array $firewallIdSet) + { + $this->set("FirewallIdSet", $firewallIdSet); + } + + /** + * FirewallSet: 防火墙信息 + * + * @return FwInfo[]|null + */ + public function getFirewallSet() + { + $items = $this->get("FirewallSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new FwInfo($item)); + } + return $result; + } + + /** + * FirewallSet: 防火墙信息 + * + * @param FwInfo[] $firewallSet + */ + public function setFirewallSet(array $firewallSet) + { + $result = []; + foreach ($firewallSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * EipDirectMode: EIP 直通 false:不是,true:是 + * + * @return boolean|null + */ + public function getEipDirectMode() + { + return $this->get("EipDirectMode"); + } + + /** + * EipDirectMode: EIP 直通 false:不是,true:是 + * + * @param boolean $eipDirectMode + */ + public function setEipDirectMode($eipDirectMode) + { + $this->set("EipDirectMode", $eipDirectMode); + } + + /** + * EipDirectionVersion: EIP 直通版本信息 + * + * @return integer|null + */ + public function getEipDirectionVersion() + { + return $this->get("EipDirectionVersion"); + } + + /** + * EipDirectionVersion: EIP 直通版本信息 + * + * @param int $eipDirectionVersion + */ + public function setEipDirectionVersion($eipDirectionVersion) + { + $this->set("EipDirectionVersion", $eipDirectionVersion); + } + + /** + * DefaultOutput: 默认IP 出口 + * + * @return string|null + */ + public function getDefaultOutput() + { + return $this->get("DefaultOutput"); + } + + /** + * DefaultOutput: 默认IP 出口 + * + * @param string $defaultOutput + */ + public function setDefaultOutput($defaultOutput) + { + $this->set("DefaultOutput", $defaultOutput); + } + + /** + * PrivateIp: 私有 IP 信息 * * @return UNIIpInfo[]|null */ @@ -161,7 +293,7 @@ public function getPrivateIp() } /** - * PrivateIp: 网卡的内网IP信息 + * PrivateIp: 私有 IP 信息 * * @param UNIIpInfo[] $privateIp */ @@ -174,6 +306,150 @@ public function setPrivateIp(array $privateIp) return $result; } + /** + * IPv6AddressInfo: IPv6 地址信息 + * + * @return SimpleIPv6AddressInfo[]|null + */ + public function getIPv6AddressInfo() + { + $items = $this->get("IPv6AddressInfo"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new SimpleIPv6AddressInfo($item)); + } + return $result; + } + + /** + * IPv6AddressInfo: IPv6 地址信息 + * + * @param SimpleIPv6AddressInfo[] $iPv6AddressInfo + */ + public function setIPv6AddressInfo(array $iPv6AddressInfo) + { + $result = []; + foreach ($iPv6AddressInfo as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * IPv6Gateway: IPv6 网关地址 + * + * @return string|null + */ + public function getIPv6Gateway() + { + return $this->get("IPv6Gateway"); + } + + /** + * IPv6Gateway: IPv6 网关地址 + * + * @param string $iPv6Gateway + */ + public function setIPv6Gateway($iPv6Gateway) + { + $this->set("IPv6Gateway", $iPv6Gateway); + } + + /** + * IPv6Mask: IPv6 掩码 + * + * @return integer|null + */ + public function getIPv6Mask() + { + return $this->get("IPv6Mask"); + } + + /** + * IPv6Mask: IPv6 掩码 + * + * @param int $iPv6Mask + */ + public function setIPv6Mask($iPv6Mask) + { + $this->set("IPv6Mask", $iPv6Mask); + } + + /** + * OperatorName: 运营商 + * + * @return string|null + */ + public function getOperatorName() + { + return $this->get("OperatorName"); + } + + /** + * OperatorName: 运营商 + * + * @param string $operatorName + */ + public function setOperatorName($operatorName) + { + $this->set("OperatorName", $operatorName); + } + + /** + * SecGroupCount: 关联安全组数量 + * + * @return integer|null + */ + public function getSecGroupCount() + { + return $this->get("SecGroupCount"); + } + + /** + * SecGroupCount: 关联安全组数量 + * + * @param int $secGroupCount + */ + public function setSecGroupCount($secGroupCount) + { + $this->set("SecGroupCount", $secGroupCount); + } + + /** + * SecGroup: 关联安全组信息 + * + * @return SecGroup[]|null + */ + public function getSecGroup() + { + $items = $this->get("SecGroup"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new SecGroup($item)); + } + return $result; + } + + /** + * SecGroup: 关联安全组信息 + * + * @param SecGroup[] $secGroup + */ + public function setSecGroup(array $secGroup) + { + $result = []; + foreach ($secGroup as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + /** * Name: 虚拟网卡名称 * @@ -335,62 +611,34 @@ public function setTag($tag) } /** - * EIPIdSet: 虚拟网卡绑定的EIP ID信息 - * - * @return string[]|null - */ - public function getEIPIdSet() - { - return $this->get("EIPIdSet"); - } - - /** - * EIPIdSet: 虚拟网卡绑定的EIP ID信息 - * - * @param string[] $eipIdSet - */ - public function setEIPIdSet(array $eipIdSet) - { - $this->set("EIPIdSet", $eipIdSet); - } - - /** - * FirewallIdSet: 虚拟网卡绑定的防火墙ID信息 - * - * @return string[]|null - */ - public function getFirewallIdSet() - { - return $this->get("FirewallIdSet"); - } - - /** - * FirewallIdSet: 虚拟网卡绑定的防火墙ID信息 - * - * @param string[] $firewallIdSet - */ - public function setFirewallIdSet(array $firewallIdSet) - { - $this->set("FirewallIdSet", $firewallIdSet); - } - - /** - * PrivateIpLimit: 网卡的内网IP配额信息 + * PrivateIpLimit: 私有 IP 配额 * - * @return UNIQuotaInfo|null + * @return UNIQuotaInfo[]|null */ public function getPrivateIpLimit() { - return new UNIQuotaInfo($this->get("PrivateIpLimit")); + $items = $this->get("PrivateIpLimit"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UNIQuotaInfo($item)); + } + return $result; } /** - * PrivateIpLimit: 网卡的内网IP配额信息 + * PrivateIpLimit: 私有 IP 配额 * - * @param UNIQuotaInfo $privateIpLimit + * @param UNIQuotaInfo[] $privateIpLimit */ public function setPrivateIpLimit(array $privateIpLimit) { - $this->set("PrivateIpLimit", $privateIpLimit->getAll()); + $result = []; + foreach ($privateIpLimit as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; } } diff --git a/src/VPC/Models/NetworkInterfaceInfo.php b/src/VPC/Models/NetworkInterfaceInfo.php index 73586793..5c89fba0 100644 --- a/src/VPC/Models/NetworkInterfaceInfo.php +++ b/src/VPC/Models/NetworkInterfaceInfo.php @@ -1,6 +1,6 @@ set("Tag", $tag); } + + /** + * EipDirectMode: 是否开启EIP直通模式 + * + * @return boolean|null + */ + public function getEipDirectMode() + { + return $this->get("EipDirectMode"); + } + + /** + * EipDirectMode: 是否开启EIP直通模式 + * + * @param boolean $eipDirectMode + */ + public function setEipDirectMode($eipDirectMode) + { + $this->set("EipDirectMode", $eipDirectMode); + } + + /** + * EipDirectVersion: EIP直通版本 + * + * @return integer|null + */ + public function getEipDirectVersion() + { + return $this->get("EipDirectVersion"); + } + + /** + * EipDirectVersion: EIP直通版本 + * + * @param int $eipDirectVersion + */ + public function setEipDirectVersion($eipDirectVersion) + { + $this->set("EipDirectVersion", $eipDirectVersion); + } } diff --git a/src/VPC/Models/ResourceExInfo.php b/src/VPC/Models/ResourceExInfo.php new file mode 100644 index 00000000..a44c825b --- /dev/null +++ b/src/VPC/Models/ResourceExInfo.php @@ -0,0 +1,156 @@ +get("SuperResourceId"); + } + + /** + * SuperResourceId: 父级资源ID + * + * @param string $superResourceId + */ + public function setSuperResourceId($superResourceId) + { + $this->set("SuperResourceId", $superResourceId); + } + + /** + * ResourceName: 资源名称 + * + * @return string|null + */ + public function getResourceName() + { + return $this->get("ResourceName"); + } + + /** + * ResourceName: 资源名称 + * + * @param string $resourceName + */ + public function setResourceName($resourceName) + { + $this->set("ResourceName", $resourceName); + } + + /** + * IP: 主机内网IP + * + * @return string[]|null + */ + public function getIP() + { + return $this->get("IP"); + } + + /** + * IP: 主机内网IP + * + * @param string[] $ip + */ + public function setIP(array $ip) + { + $this->set("IP", $ip); + } + + /** + * EIP: 主机外网IP + * + * @return string[]|null + */ + public function getEIP() + { + return $this->get("EIP"); + } + + /** + * EIP: 主机外网IP + * + * @param string[] $eip + */ + public function setEIP(array $eip) + { + $this->set("EIP", $eip); + } + + /** + * Uni: 弹性网卡信息 + * + * @return ResourceSecgroupInfo[]|null + */ + public function getUni() + { + $items = $this->get("Uni"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ResourceSecgroupInfo($item)); + } + return $result; + } + + /** + * Uni: 弹性网卡信息 + * + * @param ResourceSecgroupInfo[] $uni + */ + public function setUni(array $uni) + { + $result = []; + foreach ($uni as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * SuperResourceName: 父级资源名称 + * + * @return string|null + */ + public function getSuperResourceName() + { + return $this->get("SuperResourceName"); + } + + /** + * SuperResourceName: 父级资源名称 + * + * @param string $superResourceName + */ + public function setSuperResourceName($superResourceName) + { + $this->set("SuperResourceName", $superResourceName); + } +} diff --git a/src/VPC/Models/ResourceSecgroupInfo.php b/src/VPC/Models/ResourceSecgroupInfo.php new file mode 100644 index 00000000..8337ca4d --- /dev/null +++ b/src/VPC/Models/ResourceSecgroupInfo.php @@ -0,0 +1,96 @@ +get("ResourceId"); + } + + /** + * ResourceId: 资源ID + * + * @param string $resourceId + */ + public function setResourceId($resourceId) + { + $this->set("ResourceId", $resourceId); + } + + /** + * Count: 资源绑定安全组数量 + * + * @return integer|null + */ + public function getCount() + { + return $this->get("Count"); + } + + /** + * Count: 资源绑定安全组数量 + * + * @param int $count + */ + public function setCount($count) + { + $this->set("Count", $count); + } + + /** + * SecGroupInfo: 详见SecGroupSimpleInfo + * + * @return SecGroupSimpleInfo[]|null + */ + public function getSecGroupInfo() + { + $items = $this->get("SecGroupInfo"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new SecGroupSimpleInfo($item)); + } + return $result; + } + + /** + * SecGroupInfo: 详见SecGroupSimpleInfo + * + * @param SecGroupSimpleInfo[] $secGroupInfo + */ + public function setSecGroupInfo(array $secGroupInfo) + { + $result = []; + foreach ($secGroupInfo as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/VPC/Models/ResourceSecgroupInfoEx.php b/src/VPC/Models/ResourceSecgroupInfoEx.php new file mode 100644 index 00000000..ddf2b3df --- /dev/null +++ b/src/VPC/Models/ResourceSecgroupInfoEx.php @@ -0,0 +1,156 @@ +get("ResourceId"); + } + + /** + * ResourceId: 资源 ID + * + * @param string $resourceId + */ + public function setResourceId($resourceId) + { + $this->set("ResourceId", $resourceId); + } + + /** + * ResourceName: 资源名称 + * + * @return string|null + */ + public function getResourceName() + { + return $this->get("ResourceName"); + } + + /** + * ResourceName: 资源名称 + * + * @param string $resourceName + */ + public function setResourceName($resourceName) + { + $this->set("ResourceName", $resourceName); + } + + /** + * Count: 该资源绑定的安全组数量 + * + * @return integer|null + */ + public function getCount() + { + return $this->get("Count"); + } + + /** + * Count: 该资源绑定的安全组数量 + * + * @param int $count + */ + public function setCount($count) + { + $this->set("Count", $count); + } + + /** + * SecGroupInfo: 绑定安全组信息 + * + * @return BindingSecGroupInfo[]|null + */ + public function getSecGroupInfo() + { + $items = $this->get("SecGroupInfo"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new BindingSecGroupInfo($item)); + } + return $result; + } + + /** + * SecGroupInfo: 绑定安全组信息 + * + * @param BindingSecGroupInfo[] $secGroupInfo + */ + public function setSecGroupInfo(array $secGroupInfo) + { + $result = []; + foreach ($secGroupInfo as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * PermitAssociate: 表示是否允许绑定安全组 + * + * @return boolean|null + */ + public function getPermitAssociate() + { + return $this->get("PermitAssociate"); + } + + /** + * PermitAssociate: 表示是否允许绑定安全组 + * + * @param boolean $permitAssociate + */ + public function setPermitAssociate($permitAssociate) + { + $this->set("PermitAssociate", $permitAssociate); + } + + /** + * ExInfo: 资源额外信息 + * + * @return ResourceExInfo|null + */ + public function getExInfo() + { + return new ResourceExInfo($this->get("ExInfo")); + } + + /** + * ExInfo: 资源额外信息 + * + * @param ResourceExInfo $exInfo + */ + public function setExInfo(array $exInfo) + { + $this->set("ExInfo", $exInfo->getAll()); + } +} diff --git a/src/VPC/Models/RouteRuleInfo.php b/src/VPC/Models/RouteRuleInfo.php index 6dda1901..0d41a871 100644 --- a/src/VPC/Models/RouteRuleInfo.php +++ b/src/VPC/Models/RouteRuleInfo.php @@ -1,6 +1,6 @@ get("Name"); + } + + /** + * Name: 安全组名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Priority: 关联优先级 + * + * @return integer|null + */ + public function getPriority() + { + return $this->get("Priority"); + } + + /** + * Priority: 关联优先级 + * + * @param int $priority + */ + public function setPriority($priority) + { + $this->set("Priority", $priority); + } + + /** + * SecGroupId: 安全组ID + * + * @return string|null + */ + public function getSecGroupId() + { + return $this->get("SecGroupId"); + } + + /** + * SecGroupId: 安全组ID + * + * @param string $secGroupId + */ + public function setSecGroupId($secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } +} diff --git a/src/VPC/Models/SecGroupInfo.php b/src/VPC/Models/SecGroupInfo.php new file mode 100644 index 00000000..7e4e74ba --- /dev/null +++ b/src/VPC/Models/SecGroupInfo.php @@ -0,0 +1,216 @@ +get("SecGroupId"); + } + + /** + * SecGroupId: 安全组资源ID + * + * @param string $secGroupId + */ + public function setSecGroupId($secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } + + /** + * Name: 安全组名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 安全组名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * VPCId: VPC资源ID + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: VPC资源ID + * + * @param string $vpcId + */ + public function setVPCId($vpcId) + { + $this->set("VPCId", $vpcId); + } + + /** + * Account: 用户 ID + * + * @return integer|null + */ + public function getAccount() + { + return $this->get("Account"); + } + + /** + * Account: 用户 ID + * + * @param int $account + */ + public function setAccount($account) + { + $this->set("Account", $account); + } + + /** + * Tag: 业务组 + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 业务组 + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } + + /** + * Remark: 备注 + * + * @return string|null + */ + public function getRemark() + { + return $this->get("Remark"); + } + + /** + * Remark: 备注 + * + * @param string $remark + */ + public function setRemark($remark) + { + $this->set("Remark", $remark); + } + + /** + * Type: 安全组类型,枚举值为: "user defined", 自定义创建安全组; "recommend web", 使用Web模板创建的安全组; "recommend non web", 使用非Web模板创建的安全组 + * + * @return string|null + */ + public function getType() + { + return $this->get("Type"); + } + + /** + * Type: 安全组类型,枚举值为: "user defined", 自定义创建安全组; "recommend web", 使用Web模板创建的安全组; "recommend non web", 使用非Web模板创建的安全组 + * + * @param string $type + */ + public function setType($type) + { + $this->set("Type", $type); + } + + /** + * CreateTime: 创建的时间,格式为Unix Timestamp,如 1747030299 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 创建的时间,格式为Unix Timestamp,如 1747030299 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * Rule: 安全组组中的规则列表,参见 SecGroupRuleInfo + * + * @return SecGroupRuleInfo[]|null + */ + public function getRule() + { + $items = $this->get("Rule"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new SecGroupRuleInfo($item)); + } + return $result; + } + + /** + * Rule: 安全组组中的规则列表,参见 SecGroupRuleInfo + * + * @param SecGroupRuleInfo[] $rule + */ + public function setRule(array $rule) + { + $result = []; + foreach ($rule as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/VPC/Models/SecGroupResourceInfo.php b/src/VPC/Models/SecGroupResourceInfo.php new file mode 100644 index 00000000..42c91f7b --- /dev/null +++ b/src/VPC/Models/SecGroupResourceInfo.php @@ -0,0 +1,204 @@ +get("Zone"); + } + + /** + * Zone: 可用区 + * + * @param int $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * SubResourceName: 绑定的虚拟网卡的名称 + * + * @return string|null + */ + public function getSubResourceName() + { + return $this->get("SubResourceName"); + } + + /** + * SubResourceName: 绑定的虚拟网卡的名称 + * + * @param string $subResourceName + */ + public function setSubResourceName($subResourceName) + { + $this->set("SubResourceName", $subResourceName); + } + + /** + * SubResourceId: 资源绑定的虚拟网卡的ID + * + * @return string|null + */ + public function getSubResourceId() + { + return $this->get("SubResourceId"); + } + + /** + * SubResourceId: 资源绑定的虚拟网卡的ID + * + * @param string $subResourceId + */ + public function setSubResourceId($subResourceId) + { + $this->set("SubResourceId", $subResourceId); + } + + /** + * SubResourceType: 绑定的虚拟网卡的类型,“uni”,虚拟网卡 + * + * @return string|null + */ + public function getSubResourceType() + { + return $this->get("SubResourceType"); + } + + /** + * SubResourceType: 绑定的虚拟网卡的类型,“uni”,虚拟网卡 + * + * @param string $subResourceType + */ + public function setSubResourceType($subResourceType) + { + $this->set("SubResourceType", $subResourceType); + } + + /** + * Name: 名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * PrivateIp: 内网IP + * + * @return string|null + */ + public function getPrivateIp() + { + return $this->get("PrivateIp"); + } + + /** + * PrivateIp: 内网IP + * + * @param string $privateIp + */ + public function setPrivateIp($privateIp) + { + $this->set("PrivateIp", $privateIp); + } + + /** + * ResourceId: 资源ID + * + * @return string|null + */ + public function getResourceId() + { + return $this->get("ResourceId"); + } + + /** + * ResourceId: 资源ID + * + * @param string $resourceId + */ + public function setResourceId($resourceId) + { + $this->set("ResourceId", $resourceId); + } + + /** + * ResourceType: 资源类型。"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计,“uni”,虚拟网卡。 + * + * @return string|null + */ + public function getResourceType() + { + return $this->get("ResourceType"); + } + + /** + * ResourceType: 资源类型。"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计,“uni”,虚拟网卡。 + * + * @param string $resourceType + */ + public function setResourceType($resourceType) + { + $this->set("ResourceType", $resourceType); + } + + /** + * Tag: 业务组 + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 业务组 + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } +} diff --git a/src/VPC/Models/SecGroupRuleInfo.php b/src/VPC/Models/SecGroupRuleInfo.php new file mode 100644 index 00000000..2877e826 --- /dev/null +++ b/src/VPC/Models/SecGroupRuleInfo.php @@ -0,0 +1,204 @@ +get("RuleId"); + } + + /** + * RuleId: 规则ID + * + * @param string $ruleId + */ + public function setRuleId($ruleId) + { + $this->set("RuleId", $ruleId); + } + + /** + * Direction: "Ingress/Egress",入站规则/出站规则 + * + * @return string|null + */ + public function getDirection() + { + return $this->get("Direction"); + } + + /** + * Direction: "Ingress/Egress",入站规则/出站规则 + * + * @param string $direction + */ + public function setDirection($direction) + { + $this->set("Direction", $direction); + } + + /** + * IPRange: 地址 + * + * @return string|null + */ + public function getIPRange() + { + return $this->get("IPRange"); + } + + /** + * IPRange: 地址 + * + * @param string $ipRange + */ + public function setIPRange($ipRange) + { + $this->set("IPRange", $ipRange); + } + + /** + * Priority: 优先级 + * + * @return integer|null + */ + public function getPriority() + { + return $this->get("Priority"); + } + + /** + * Priority: 优先级 + * + * @param int $priority + */ + public function setPriority($priority) + { + $this->set("Priority", $priority); + } + + /** + * ProtocolType: 协议类型 + * + * @return string|null + */ + public function getProtocolType() + { + return $this->get("ProtocolType"); + } + + /** + * ProtocolType: 协议类型 + * + * @param string $protocolType + */ + public function setProtocolType($protocolType) + { + $this->set("ProtocolType", $protocolType); + } + + /** + * DstPort: 目标端口 + * + * @return string|null + */ + public function getDstPort() + { + return $this->get("DstPort"); + } + + /** + * DstPort: 目标端口 + * + * @param string $dstPort + */ + public function setDstPort($dstPort) + { + $this->set("DstPort", $dstPort); + } + + /** + * RuleAction: 匹配策略 + * + * @return string|null + */ + public function getRuleAction() + { + return $this->get("RuleAction"); + } + + /** + * RuleAction: 匹配策略 + * + * @param string $ruleAction + */ + public function setRuleAction($ruleAction) + { + $this->set("RuleAction", $ruleAction); + } + + /** + * Remark: 安全组规则备注 + * + * @return string|null + */ + public function getRemark() + { + return $this->get("Remark"); + } + + /** + * Remark: 安全组规则备注 + * + * @param string $remark + */ + public function setRemark($remark) + { + $this->set("Remark", $remark); + } + + /** + * IPVersion: IP 版本,如 "IPv4"。支持 IPv6 后废弃 + * + * @return string|null + */ + public function getIPVersion() + { + return $this->get("IPVersion"); + } + + /** + * IPVersion: IP 版本,如 "IPv4"。支持 IPv6 后废弃 + * + * @param string $ipVersion + */ + public function setIPVersion($ipVersion) + { + $this->set("IPVersion", $ipVersion); + } +} diff --git a/src/VPC/Models/SecGroupSimpleInfo.php b/src/VPC/Models/SecGroupSimpleInfo.php new file mode 100644 index 00000000..6685bbc6 --- /dev/null +++ b/src/VPC/Models/SecGroupSimpleInfo.php @@ -0,0 +1,64 @@ +get("SecGroupId"); + } + + /** + * SecGroupId: 安全组资源ID + * + * @param string $secGroupId + */ + public function setSecGroupId($secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } + + /** + * Name: 安全组名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 安全组名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } +} diff --git a/src/VPC/Models/SimpleIPv6AddressInfo.php b/src/VPC/Models/SimpleIPv6AddressInfo.php new file mode 100644 index 00000000..e4ae40d2 --- /dev/null +++ b/src/VPC/Models/SimpleIPv6AddressInfo.php @@ -0,0 +1,84 @@ +get("IPv6Address"); + } + + /** + * IPv6Address: IPv6 地址 + * + * @param string $iPv6Address + */ + public function setIPv6Address($iPv6Address) + { + $this->set("IPv6Address", $iPv6Address); + } + + /** + * IPv6Id: IPv6 资源 ID + * + * @return string|null + */ + public function getIPv6Id() + { + return $this->get("IPv6Id"); + } + + /** + * IPv6Id: IPv6 资源 ID + * + * @param string $iPv6Id + */ + public function setIPv6Id($iPv6Id) + { + $this->set("IPv6Id", $iPv6Id); + } + + /** + * Attribute: 属性 + * + * @return string|null + */ + public function getAttribute() + { + return $this->get("Attribute"); + } + + /** + * Attribute: 属性 + * + * @param string $attribute + */ + public function setAttribute($attribute) + { + $this->set("Attribute", $attribute); + } +} diff --git a/src/VPC/Models/SnatDnatRuleInfo.php b/src/VPC/Models/SnatDnatRuleInfo.php index 8fefe301..2e58cc46 100644 --- a/src/VPC/Models/SnatDnatRuleInfo.php +++ b/src/VPC/Models/SnatDnatRuleInfo.php @@ -1,6 +1,6 @@ set("AvailableIPs", $availableIPs); } + + /** + * AvailableIPv6Count: 可用IPv6数量 + * + * @return integer|null + */ + public function getAvailableIPv6Count() + { + return $this->get("AvailableIPv6Count"); + } + + /** + * AvailableIPv6Count: 可用IPv6数量 + * + * @param int $availableIPv6Count + */ + public function setAvailableIPv6Count($availableIPv6Count) + { + $this->set("AvailableIPv6Count", $availableIPv6Count); + } } diff --git a/src/VPC/Models/SubnetResource.php b/src/VPC/Models/SubnetResource.php index 12af09e0..e375bd42 100644 --- a/src/VPC/Models/SubnetResource.php +++ b/src/VPC/Models/SubnetResource.php @@ -1,6 +1,6 @@ set("ResourceType", $resourceType); } + /** + * SubResourceName: 资源绑定的虚拟网卡的实例名称 + * + * @return string|null + */ + public function getSubResourceName() + { + return $this->get("SubResourceName"); + } + + /** + * SubResourceName: 资源绑定的虚拟网卡的实例名称 + * + * @param string $subResourceName + */ + public function setSubResourceName($subResourceName) + { + $this->set("SubResourceName", $subResourceName); + } + + /** + * SubResourceId: 资源绑定的虚拟网卡的实例ID + * + * @return string|null + */ + public function getSubResourceId() + { + return $this->get("SubResourceId"); + } + + /** + * SubResourceId: 资源绑定的虚拟网卡的实例ID + * + * @param string $subResourceId + */ + public function setSubResourceId($subResourceId) + { + $this->set("SubResourceId", $subResourceId); + } + + /** + * SubResourceType: 资源绑定的虚拟网卡的类型 + * + * @return string|null + */ + public function getSubResourceType() + { + return $this->get("SubResourceType"); + } + + /** + * SubResourceType: 资源绑定的虚拟网卡的类型 + * + * @param string $subResourceType + */ + public function setSubResourceType($subResourceType) + { + $this->set("SubResourceType", $subResourceType); + } + /** * IP: 资源ip * @@ -101,4 +161,24 @@ public function setIP($ip) { $this->set("IP", $ip); } + + /** + * IPv6Address: 资源的IPv6地址 + * + * @return string|null + */ + public function getIPv6Address() + { + return $this->get("IPv6Address"); + } + + /** + * IPv6Address: 资源的IPv6地址 + * + * @param string $iPv6Address + */ + public function setIPv6Address($iPv6Address) + { + $this->set("IPv6Address", $iPv6Address); + } } diff --git a/src/VPC/Models/TargetResourceInfo.php b/src/VPC/Models/TargetResourceInfo.php index 8f2bcc0a..f8ff8306 100644 --- a/src/VPC/Models/TargetResourceInfo.php +++ b/src/VPC/Models/TargetResourceInfo.php @@ -1,6 +1,6 @@ get("VPCType"); + } + + /** + * VPCType: DefaultVPC 默认VPC,DefinedVPC,自定义VPC      + * + * @param string $vpcType + */ + public function setVPCType($vpcType) + { + $this->set("VPCType", $vpcType); + } + + /** + * VPCId: VPC资源ID * * @return string|null */ @@ -165,7 +185,7 @@ public function getVPCId() } /** - * VPCId: VPCId + * VPCId: VPC资源ID * * @param string $vpcId */ @@ -175,7 +195,7 @@ public function setVPCId($vpcId) } /** - * Network: + * Network: VPC网段 * * @return string[]|null */ @@ -185,7 +205,7 @@ public function getNetwork() } /** - * Network: + * Network: VPC网段 * * @param string[] $network */ @@ -233,4 +253,36 @@ public function setOperatorName($operatorName) { $this->set("OperatorName", $operatorName); } + + /** + * IPv6NetworkInfos: VPC关联的IPv6网段信息 + * + * @return IPv6NetworkInfo[]|null + */ + public function getIPv6NetworkInfos() + { + $items = $this->get("IPv6NetworkInfos"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new IPv6NetworkInfo($item)); + } + return $result; + } + + /** + * IPv6NetworkInfos: VPC关联的IPv6网段信息 + * + * @param IPv6NetworkInfo[] $iPv6NetworkInfos + */ + public function setIPv6NetworkInfos(array $iPv6NetworkInfos) + { + $result = []; + foreach ($iPv6NetworkInfos as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } } diff --git a/src/VPC/Models/VPCIntercomInfo.php b/src/VPC/Models/VPCIntercomInfo.php index d6cd7ca2..eeee1472 100644 --- a/src/VPC/Models/VPCIntercomInfo.php +++ b/src/VPC/Models/VPCIntercomInfo.php @@ -1,6 +1,6 @@ get("Priority"); + } + + /** + * Priority: 绑定优先级。该字段和资源 ID 只支持一个批量。支持 PrioritySecGroup 的 JSON 格式数组。 + * + * @param int $priority + */ + public function setPriority($priority) + { + $this->set("Priority", $priority); + } + + /** + * SecGroupId: 安全组 ID。该字段和资源 ID 只支持一个批量。支持 PrioritySecGroup 的 JSON 格式数组。 + * + * @return string|null + */ + public function getSecGroupId() + { + return $this->get("SecGroupId"); + } + + /** + * SecGroupId: 安全组 ID。该字段和资源 ID 只支持一个批量。支持 PrioritySecGroup 的 JSON 格式数组。 + * + * @param string $secGroupId + */ + public function setSecGroupId($secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } +} diff --git a/src/VPC/Params/CreateNetworkInterfaceParamPrioritySecGroup.php b/src/VPC/Params/CreateNetworkInterfaceParamPrioritySecGroup.php new file mode 100644 index 00000000..e61f6ca7 --- /dev/null +++ b/src/VPC/Params/CreateNetworkInterfaceParamPrioritySecGroup.php @@ -0,0 +1,64 @@ +get("Priority"); + } + + /** + * Priority: 安全组优先级 + * + * @param int $priority + */ + public function setPriority($priority) + { + $this->set("Priority", $priority); + } + + /** + * SecGroupId: 安全组 ID + * + * @return string|null + */ + public function getSecGroupId() + { + return $this->get("SecGroupId"); + } + + /** + * SecGroupId: 安全组 ID + * + * @param string $secGroupId + */ + public function setSecGroupId($secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } +} diff --git a/src/VPC/Params/CreateSecGroupRuleParamRule.php b/src/VPC/Params/CreateSecGroupRuleParamRule.php new file mode 100644 index 00000000..a924dc6d --- /dev/null +++ b/src/VPC/Params/CreateSecGroupRuleParamRule.php @@ -0,0 +1,184 @@ +get("Direction"); + } + + /** + * Direction: "Ingress/Egress",入站规则/出站规则 + * + * @param string $direction + */ + public function setDirection($direction) + { + $this->set("Direction", $direction); + } + + /** + * IPRange: IP 地址信息,逗号分隔。 + * + * @return string|null + */ + public function getIPRange() + { + return $this->get("IPRange"); + } + + /** + * IPRange: IP 地址信息,逗号分隔。 + * + * @param string $ipRange + */ + public function setIPRange($ipRange) + { + $this->set("IPRange", $ipRange); + } + + /** + * Priority: 规则优先级。范围为 1~200 + * + * @return integer|null + */ + public function getPriority() + { + return $this->get("Priority"); + } + + /** + * Priority: 规则优先级。范围为 1~200 + * + * @param int $priority + */ + public function setPriority($priority) + { + $this->set("Priority", $priority); + } + + /** + * ProtocolType: 协议类型。"TCP","UDP","ICMP","ICMPv6","ALL" + * + * @return string|null + */ + public function getProtocolType() + { + return $this->get("ProtocolType"); + } + + /** + * ProtocolType: 协议类型。"TCP","UDP","ICMP","ICMPv6","ALL" + * + * @param string $protocolType + */ + public function setProtocolType($protocolType) + { + $this->set("ProtocolType", $protocolType); + } + + /** + * DstPort: 目的端口。逗号分隔,如 "80,443"、"443,2000-10000" + * + * @return string|null + */ + public function getDstPort() + { + return $this->get("DstPort"); + } + + /** + * DstPort: 目的端口。逗号分隔,如 "80,443"、"443,2000-10000" + * + * @param string $dstPort + */ + public function setDstPort($dstPort) + { + $this->set("DstPort", $dstPort); + } + + /** + * RuleAction: 规则行为。"Accept" 或 "Drop" + * + * @return string|null + */ + public function getRuleAction() + { + return $this->get("RuleAction"); + } + + /** + * RuleAction: 规则行为。"Accept" 或 "Drop" + * + * @param string $ruleAction + */ + public function setRuleAction($ruleAction) + { + $this->set("RuleAction", $ruleAction); + } + + /** + * Remark: 规则备注 + * + * @return string|null + */ + public function getRemark() + { + return $this->get("Remark"); + } + + /** + * Remark: 规则备注 + * + * @param string $remark + */ + public function setRemark($remark) + { + $this->set("Remark", $remark); + } + + /** + * IPVersion: IP 版本,如 “IPv4”。支持 IPv6 后废弃 + * + * @return string|null + */ + public function getIPVersion() + { + return $this->get("IPVersion"); + } + + /** + * IPVersion: IP 版本,如 “IPv4”。支持 IPv6 后废弃 + * + * @param string $ipVersion + */ + public function setIPVersion($ipVersion) + { + $this->set("IPVersion", $ipVersion); + } +} diff --git a/src/VPC/Params/UpdateSecGroupAssociationParamNewPrioritySecGroup.php b/src/VPC/Params/UpdateSecGroupAssociationParamNewPrioritySecGroup.php new file mode 100644 index 00000000..d4f2aa58 --- /dev/null +++ b/src/VPC/Params/UpdateSecGroupAssociationParamNewPrioritySecGroup.php @@ -0,0 +1,64 @@ +get("Priority"); + } + + /** + * Priority: 新绑定安全组的绑定优先级。支持 NewPrioritySecGroup 为数组格式,即传对应数据的 JSON 格式数组。 + * + * @param int $priority + */ + public function setPriority($priority) + { + $this->set("Priority", $priority); + } + + /** + * SecGroupId: 需新绑定的安全组ID + * + * @return string|null + */ + public function getSecGroupId() + { + return $this->get("SecGroupId"); + } + + /** + * SecGroupId: 需新绑定的安全组ID + * + * @param string $secGroupId + */ + public function setSecGroupId($secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } +} diff --git a/src/VPC/Params/UpdateSecGroupRuleParamRule.php b/src/VPC/Params/UpdateSecGroupRuleParamRule.php new file mode 100644 index 00000000..7f064c70 --- /dev/null +++ b/src/VPC/Params/UpdateSecGroupRuleParamRule.php @@ -0,0 +1,204 @@ +get("RuleId"); + } + + /** + * RuleId: 规则 ID + * + * @param string $ruleId + */ + public function setRuleId($ruleId) + { + $this->set("RuleId", $ruleId); + } + + /** + * Direction: "Ingress/Egress",入站规则/出站规则 + * + * @return string|null + */ + public function getDirection() + { + return $this->get("Direction"); + } + + /** + * Direction: "Ingress/Egress",入站规则/出站规则 + * + * @param string $direction + */ + public function setDirection($direction) + { + $this->set("Direction", $direction); + } + + /** + * IPRange: IP 地址信息,逗号分隔。 + * + * @return string|null + */ + public function getIPRange() + { + return $this->get("IPRange"); + } + + /** + * IPRange: IP 地址信息,逗号分隔。 + * + * @param string $ipRange + */ + public function setIPRange($ipRange) + { + $this->set("IPRange", $ipRange); + } + + /** + * Priority: 规则优先级。范围为 1~200 + * + * @return integer|null + */ + public function getPriority() + { + return $this->get("Priority"); + } + + /** + * Priority: 规则优先级。范围为 1~200 + * + * @param int $priority + */ + public function setPriority($priority) + { + $this->set("Priority", $priority); + } + + /** + * ProtocolType: 协议类型。"TCP","UDP","ICMP","ICMPv6","ALL" + * + * @return string|null + */ + public function getProtocolType() + { + return $this->get("ProtocolType"); + } + + /** + * ProtocolType: 协议类型。"TCP","UDP","ICMP","ICMPv6","ALL" + * + * @param string $protocolType + */ + public function setProtocolType($protocolType) + { + $this->set("ProtocolType", $protocolType); + } + + /** + * DstPort: 目的端口。逗号分隔,如 "80,443"、"443,2000-10000" + * + * @return string|null + */ + public function getDstPort() + { + return $this->get("DstPort"); + } + + /** + * DstPort: 目的端口。逗号分隔,如 "80,443"、"443,2000-10000" + * + * @param string $dstPort + */ + public function setDstPort($dstPort) + { + $this->set("DstPort", $dstPort); + } + + /** + * RuleAction: 规则行为。"Accept" 或 "Drop" + * + * @return string|null + */ + public function getRuleAction() + { + return $this->get("RuleAction"); + } + + /** + * RuleAction: 规则行为。"Accept" 或 "Drop" + * + * @param string $ruleAction + */ + public function setRuleAction($ruleAction) + { + $this->set("RuleAction", $ruleAction); + } + + /** + * Remark: 规则备注 + * + * @return string|null + */ + public function getRemark() + { + return $this->get("Remark"); + } + + /** + * Remark: 规则备注 + * + * @param string $remark + */ + public function setRemark($remark) + { + $this->set("Remark", $remark); + } + + /** + * IPVersion: IP 版本,如 “IPv4”。支持 IPv6 后废弃 + * + * @return string|null + */ + public function getIPVersion() + { + return $this->get("IPVersion"); + } + + /** + * IPVersion: IP 版本,如 “IPv4”。支持 IPv6 后废弃 + * + * @param string $ipVersion + */ + public function setIPVersion($ipVersion) + { + $this->set("IPVersion", $ipVersion); + } +} diff --git a/src/VPC/Params/UpdateVPCIPv6ParamIPv6NetworkConfig.php b/src/VPC/Params/UpdateVPCIPv6ParamIPv6NetworkConfig.php new file mode 100644 index 00000000..3ad76d93 --- /dev/null +++ b/src/VPC/Params/UpdateVPCIPv6ParamIPv6NetworkConfig.php @@ -0,0 +1,84 @@ +get("IPv6Network"); + } + + /** + * IPv6Network: 需要保留的所有网段 + * + * @param string $iPv6Network + */ + public function setIPv6Network($iPv6Network) + { + $this->set("IPv6Network", $iPv6Network); + } + + /** + * OperatorName: 网段对应的运营商类型 + * + * @return string|null + */ + public function getOperatorName() + { + return $this->get("OperatorName"); + } + + /** + * OperatorName: 网段对应的运营商类型 + * + * @param string $operatorName + */ + public function setOperatorName($operatorName) + { + $this->set("OperatorName", $operatorName); + } + + /** + * Type: 网段分类:Default--默认网段、Custom--客户自带网段 + * + * @return string|null + */ + public function getType() + { + return $this->get("Type"); + } + + /** + * Type: 网段分类:Default--默认网段、Custom--客户自带网段 + * + * @param string $type + */ + public function setType($type) + { + $this->set("Type", $type); + } +} diff --git a/src/VPC/VPCClient.php b/src/VPC/VPCClient.php index 8cf520a8..04d33072 100644 --- a/src/VPC/VPCClient.php +++ b/src/VPC/VPCClient.php @@ -1,6 +1,6 @@ toArray(), $resp->getRequestId()); } + /** + * AddSubnetIPv6 - 子网关联IPv6 + * + * See also: https://docs.ucloud.cn/api/vpc-api/add_subnet_ip_v6 + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "SubnetworkId" => (string) 子网ID + * "VPCId" => (string) 私有网络 ID + * "VPCIPv6Network" => (string) 所属VPC的IPv6网段,可选,不填默认选择一个VPC IPv6网段进行分配 + * "IPv6Network" => (string) 指定IPv6网段 + * "IPv6PrefixLength" => (integer) 指定IPv6网段掩码 + * ] + * + * Outputs: + * + * $outputs = [ + * "IPv6Network" => (string) IPv6网段 + * ] + * + * @return AddSubnetIPv6Response + * @throws UCloudException + */ + public function addSubnetIPv6(AddSubnetIPv6Request $request = null) + { + $resp = $this->invoke($request); + return new AddSubnetIPv6Response($resp->toArray(), $resp->getRequestId()); + } + + /** + * AddVPCIPv6 - VPC关联IPv6网段 + * + * See also: https://docs.ucloud.cn/api/vpc-api/add_vpc_ip_v6 + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "VPCId" => (string) VPC资源ID + * "OperatorName" => (string) 类型 BGP | Telecom | ChinaMobile | Unicom + * "IPv6NetworkType" => (string) Default--默认网段、Custom--客户自带 + * "IPv6Network" => (string) 指定IPv6网段 + * ] + * + * Outputs: + * + * $outputs = [ + * "IPv6Network" => (string) IPv6网段 + * ] + * + * @return AddVPCIPv6Response + * @throws UCloudException + */ + public function addVPCIPv6(AddVPCIPv6Request $request = null) + { + $resp = $this->invoke($request); + return new AddVPCIPv6Response($resp->toArray(), $resp->getRequestId()); + } + /** * AddVPCNetwork - 添加VPC网段 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/add_vpc_network + * See also: https://docs.ucloud.cn/api/vpc-api/add_vpc_network * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "VPCId" => (string) 源VPC短ID * "Network" => (array) 增加网段 * ] @@ -224,13 +353,13 @@ public function addVPCNetwork(AddVPCNetworkRequest $request = null) /** * AddWhiteListResource - 添加NAT网关白名单 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/add_white_list_resource + * See also: https://docs.ucloud.cn/api/vpc-api/add_white_list_resource * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "NATGWId" => (string) NAT网关Id * "ResourceIds" => (array) 可添加白名单的资源Id * ] @@ -252,7 +381,7 @@ public function addWhiteListResource(AddWhiteListResourceRequest $request = null /** * AllocateBatchSecondaryIp - 批量申请虚拟网卡辅助IP * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/allocate_batch_secondary_ip + * See also: https://docs.ucloud.cn/api/vpc-api/allocate_batch_secondary_ip * * Arguments: * @@ -299,14 +428,14 @@ public function allocateBatchSecondaryIp(AllocateBatchSecondaryIpRequest $reques /** * AllocateSecondaryIp - 分配ip(用于uk8s使用) * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/allocate_secondary_ip + * See also: https://docs.ucloud.cn/api/vpc-api/allocate_secondary_ip * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "Zone" => (string) 可用区。参见 [可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "Mac" => (string) 节点mac * "ObjectId" => (string) 资源Id * "SubnetId" => (string) 子网Id(若未指定,则根据zone获取默认子网进行创建) @@ -339,14 +468,14 @@ public function allocateSecondaryIp(AllocateSecondaryIpRequest $request = null) /** * AllocateVIP - 根据提供信息,申请内网VIP(Virtual IP),多用于高可用程序作为漂移IP。 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/allocate_vip + * See also: https://docs.ucloud.cn/api/vpc-api/allocate_vip * * Arguments: * * $args = [ * "Region" => (string) 地域 * "Zone" => (string) 可用区 - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "VPCId" => (string) 指定vip所属的VPC * "SubnetId" => (string) 子网id * "Ip" => (string) 指定ip @@ -379,16 +508,56 @@ public function allocateVIP(AllocateVIPRequest $request = null) return new AllocateVIPResponse($resp->toArray(), $resp->getRequestId()); } + /** + * AssignIPv6 - 申请IPv6地址 + * + * See also: https://docs.ucloud.cn/api/vpc-api/assign_ip_v6 + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "SubnetworkId" => (string) 子网ID + * "ObjectId" => (string) 资源短ID + * "VPCId" => (string) vpc ID + * "InstanceId" => (string) 实际资源短ID--pass产品实际ID + * "InstanceType" => (integer) 与InstanceID对应,实际资源大类ID--pass产品实际类型 + * "Mac" => (string) 选填,资源的Mac + * "IPv6Addresses" => (array) 指定IP分配,与Count互斥 + * "Count" => (integer) 指定数量分配,与IPv6Addresses互斥 + * "Attribute" => (string) IP属性:支持开启公网(Normal)、仅支持内网(Private),默认Normal + * "Segment" => (string) 指定网段分配IP + * ] + * + * Outputs: + * + * $outputs = [ + * "IPv6Addresses" => (array) IPv6地址 + * "OperatorName" => (string) IP类型 + * "IPv6Gateway" => (string) IPv6网关 + * "Mask" => (integer) 掩码 + * ] + * + * @return AssignIPv6Response + * @throws UCloudException + */ + public function assignIPv6(AssignIPv6Request $request = null) + { + $resp = $this->invoke($request); + return new AssignIPv6Response($resp->toArray(), $resp->getRequestId()); + } + /** * AssociateRouteTable - 绑定子网的路由表 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/associate_route_table + * See also: https://docs.ucloud.cn/api/vpc-api/associate_route_table * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "SubnetId" => (string) 子网ID * "RouteTableId" => (string) 路由表资源ID * ] @@ -407,16 +576,105 @@ public function associateRouteTable(AssociateRouteTableRequest $request = null) return new AssociateRouteTableResponse($resp->toArray(), $resp->getRequestId()); } + /** + * AssociateSecGroup - 绑定资源到安全组 + * + * See also: https://docs.ucloud.cn/api/vpc-api/associate_sec_group + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "ResourceId" => (array) 资源短 ID,安全组参数和该字段只支持一个批量。支持 string 数组。 + * "PrioritySecGroup" => (array) [ + * [ + * "Priority" => (integer) 绑定优先级。该字段和资源 ID 只支持一个批量。支持 PrioritySecGroup 的 JSON 格式数组。 + * "SecGroupId" => (string) 安全组 ID。该字段和资源 ID 只支持一个批量。支持 PrioritySecGroup 的 JSON 格式数组。 + * ] + * ] + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return AssociateSecGroupResponse + * @throws UCloudException + */ + public function associateSecGroup(AssociateSecGroupRequest $request = null) + { + $resp = $this->invoke($request); + return new AssociateSecGroupResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * AssociateSecGroupDynamic - 绑定安全组,动态调整绑定优先级 + * + * See also: https://docs.ucloud.cn/api/vpc-api/associate_sec_group_dynamic + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "ResourceId" => (array) 资源短 ID 数组。支持数组模式。Type 为 string 数组。 + * "SecGroupId" => (string) 安全组ID + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return AssociateSecGroupDynamicResponse + * @throws UCloudException + */ + public function associateSecGroupDynamic(AssociateSecGroupDynamicRequest $request = null) + { + $resp = $this->invoke($request); + return new AssociateSecGroupDynamicResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * AttachNetworkInterface - 绑定网卡到云主机 + * + * See also: https://docs.ucloud.cn/api/vpc-api/attach_network_interface + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "InterfaceId" => (string) 虚拟网卡ID + * "InstanceId" => (string) 云主机ID(仅支持绑定开启网卡功能,且未开启网络增强的云主机) + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return AttachNetworkInterfaceResponse + * @throws UCloudException + */ + public function attachNetworkInterface(AttachNetworkInterfaceRequest $request = null) + { + $resp = $this->invoke($request); + return new AttachNetworkInterfaceResponse($resp->toArray(), $resp->getRequestId()); + } + /** * CloneRouteTable - 将现有的路由表复制为一张新的路由表 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/clone_route_table + * See also: https://docs.ucloud.cn/api/vpc-api/clone_route_table * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "RouteTableId" => (string) 被克隆的路由表ID * ] * @@ -435,10 +693,44 @@ public function cloneRouteTable(CloneRouteTableRequest $request = null) return new CloneRouteTableResponse($resp->toArray(), $resp->getRequestId()); } + /** + * CopySecGroup - 复制安全组 + * + * See also: https://docs.ucloud.cn/api/vpc-api/copy_sec_group + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "SecGroupId" => (string) 源安全组ID + * "DstRegion" => (string) 目的地域 + * "DstProjectId" => (string) 目的项目ID + * "DstVPCId" => (string) 目的VPC ID + * "DstName" => (string) 目的安全组名称,最长64个字符 + * "DstRemark" => (string) 目的安全组备注 + * ] + * + * Outputs: + * + * $outputs = [ + * "SecGroupId" => (string) 复制得到的安全组ID + * "RuleID" => (array) 复制得到的规则ID + * ] + * + * @return CopySecGroupResponse + * @throws UCloudException + */ + public function copySecGroup(CopySecGroupRequest $request = null) + { + $resp = $this->invoke($request); + return new CopySecGroupResponse($resp->toArray(), $resp->getRequestId()); + } + /** * CreateNATGW - 创建NAT网关 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/create_natgw + * See also: https://docs.ucloud.cn/api/vpc-api/create_natgw * * Arguments: * @@ -473,13 +765,13 @@ public function createNATGW(CreateNATGWRequest $request = null) /** * CreateNATGWPolicy - 添加NAT网关端口转发规则 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/create_natgw_policy + * See also: https://docs.ucloud.cn/api/vpc-api/create_natgw_policy * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "NATGWId" => (string) NAT网关Id * "Protocol" => (string) 协议类型。枚举值为:TCP、UDP * "SrcEIPId" => (string) 源IP。填写对应的EIP Id @@ -507,13 +799,13 @@ public function createNATGWPolicy(CreateNATGWPolicyRequest $request = null) /** * CreateNetworkAcl - 创建网络ACL * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/create_network_acl + * See also: https://docs.ucloud.cn/api/vpc-api/create_network_acl * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "VpcId" => (string) 将要创建的ACL所属VPC的ID * "AclName" => (string) ACL的名称 * "Description" => (string) ACL的描述 @@ -537,7 +829,7 @@ public function createNetworkAcl(CreateNetworkAclRequest $request = null) /** * CreateNetworkAclAssociation - 创建ACL的绑定关系 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/create_network_acl_association + * See also: https://docs.ucloud.cn/api/vpc-api/create_network_acl_association * * Arguments: * @@ -572,13 +864,13 @@ public function createNetworkAclAssociation(CreateNetworkAclAssociationRequest $ /** * CreateNetworkAclEntry - 创建ACL的规则 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/create_network_acl_entry + * See also: https://docs.ucloud.cn/api/vpc-api/create_network_acl_entry * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "AclId" => (string) ACL的ID * "Priority" => (integer) Entry的优先级,对于同样的Direction来说,不能重复 * "Direction" => (string) 出向或者入向(“Ingress”, "Egress") @@ -609,7 +901,7 @@ public function createNetworkAclEntry(CreateNetworkAclEntryRequest $request = nu /** * CreateNetworkInterface - 创建虚拟网卡 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/create_network_interface + * See also: https://docs.ucloud.cn/api/vpc-api/create_network_interface * * Arguments: * @@ -623,6 +915,15 @@ public function createNetworkAclEntry(CreateNetworkAclEntryRequest $request = nu * "SecurityGroupId" => (string) 防火墙GroupId,默认:Web推荐防火墙 可由DescribeSecurityGroupResponse中的GroupId取得 * "Tag" => (string) 业务组 * "Remark" => (string) 备注 + * "SecurityMode" => (integer) 指定使用 安全组还是防火墙。为 0 时绑定防火墙,为1时绑定安全组 + * "PrioritySecGroup" => (array) [ + * [ + * "Priority" => (integer) 安全组优先级 + * "SecGroupId" => (string) 安全组 ID + * ] + * ] + * "EipDirectMode" => (boolean) 是否开启EIP直通,默认false + * "EipDirectVersion" => (integer) 枚举值1:EIP网卡可见2:EIP直通默认为1 * ] * * Outputs: @@ -643,6 +944,8 @@ public function createNetworkAclEntry(CreateNetworkAclEntryRequest $request = nu * "CreateTime" => (integer) 创建时间 * "Remark" => (string) 备注 * "Tag" => (string) 业务组 + * "EipDirectMode" => (boolean) 是否开启EIP直通模式 + * "EipDirectVersion" => (integer) EIP直通版本 * ] * ] * @@ -658,13 +961,13 @@ public function createNetworkInterface(CreateNetworkInterfaceRequest $request = /** * CreateRouteTable - 创建路由表 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/create_route_table + * See also: https://docs.ucloud.cn/api/vpc-api/create_route_table * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "VPCId" => (string) 所属的VPC资源ID * "Name" => (string) 路由表名称。默认为RouteTable * "Tag" => (string) 路由表所属业务组 @@ -686,10 +989,79 @@ public function createRouteTable(CreateRouteTableRequest $request = null) return new CreateRouteTableResponse($resp->toArray(), $resp->getRequestId()); } + /** + * CreateSecGroup - 创建安全组 + * + * See also: https://docs.ucloud.cn/api/vpc-api/create_sec_group + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "VPCID" => (string) 资源ID所属的VPC + * "Name" => (string) 安全组名称,最长64个字符。 + * ] + * + * Outputs: + * + * $outputs = [ + * "SecGroupId" => (string) 安全组ID + * ] + * + * @return CreateSecGroupResponse + * @throws UCloudException + */ + public function createSecGroup(CreateSecGroupRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateSecGroupResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * CreateSecGroupRule - + * + * See also: https://docs.ucloud.cn/api/vpc-api/create_sec_group_rule + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "SecGroupId" => (string) 需要添加规则的安全组资源ID。 + * "Rule" => (array) [ + * [ + * "Direction" => (string) "Ingress/Egress",入站规则/出站规则 + * "IPRange" => (string) IP 地址信息,逗号分隔。 + * "Priority" => (integer) 规则优先级。范围为 1~200 + * "ProtocolType" => (string) 协议类型。"TCP","UDP","ICMP","ICMPv6","ALL" + * "DstPort" => (string) 目的端口。逗号分隔,如 "80,443"、"443,2000-10000" + * "RuleAction" => (string) 规则行为。"Accept" 或 "Drop" + * "Remark" => (string) 规则备注 + * "IPVersion" => (string) IP 版本,如 “IPv4”。支持 IPv6 后废弃 + * ] + * ] + * ] + * + * Outputs: + * + * $outputs = [ + * "RuleId" => (array) 规则 ID + * ] + * + * @return CreateSecGroupRuleResponse + * @throws UCloudException + */ + public function createSecGroupRule(CreateSecGroupRuleRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateSecGroupRuleResponse($resp->toArray(), $resp->getRequestId()); + } + /** * CreateSnatDnatRule - 调用接口后会自动创建内外网IP之间的SNAT和DNAT规则,支持TCP、UDP协议全端口 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/create_snat_dnat_rule + * See also: https://docs.ucloud.cn/api/vpc-api/create_snat_dnat_rule * * Arguments: * @@ -718,25 +1090,29 @@ public function createSnatDnatRule(CreateSnatDnatRuleRequest $request = null) /** * CreateSubnet - 创建子网 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/create_subnet + * See also: https://docs.ucloud.cn/api/vpc-api/create_subnet * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "VPCId" => (string) VPC资源ID * "Subnet" => (string) 子网网络地址,例如192.168.0.0 * "Netmask" => (integer) 子网网络号位数,默认为24 * "SubnetName" => (string) 子网名称,默认为Subnet * "Tag" => (string) 业务组名称,默认为Default * "Remark" => (string) 备注 + * "AssociateIPv6" => (boolean) 是否关联IPv6 + * "VPCIPv6Network" => (string) 所属VPC的IPv6网段,可选,不填默认从VPC IPv6网段中选择一个进行分配 + * "IPv6Network" => (string) IPv6网段 * ] * * Outputs: * * $outputs = [ * "SubnetId" => (string) 子网ID + * "IPv6Network" => (string) IPv6网段 * ] * * @return CreateSubnetResponse @@ -751,17 +1127,19 @@ public function createSubnet(CreateSubnetRequest $request = null) /** * CreateVPC - 创建VPC * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/create_vpc + * See also: https://docs.ucloud.cn/api/vpc-api/create_vpc * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "Name" => (string) VPC名称 * "Network" => (array) VPC网段 * "Tag" => (string) 业务组名称 * "Remark" => (string) 备注 + * "AssociateIPv6" => (boolean) 是否关联IPv6 + * "OperatorName" => (string) IPv6网段类型 * ] * * Outputs: @@ -782,13 +1160,13 @@ public function createVPC(CreateVPCRequest $request = null) /** * CreateVPCIntercom - 新建VPC互通关系 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/create_vpc_intercom + * See also: https://docs.ucloud.cn/api/vpc-api/create_vpc_intercom * * Arguments: * * $args = [ - * "Region" => (string) 源VPC所在地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 源VPC所在地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "VPCId" => (string) 源VPC短ID * "DstVPCId" => (string) 目的VPC短ID * "DstRegion" => (string) 目的VPC所在地域,默认与源VPC同地域。 @@ -812,7 +1190,7 @@ public function createVPCIntercom(CreateVPCIntercomRequest $request = null) /** * DeleteNATGW - 删除NAT网关 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/delete_natgw + * See also: https://docs.ucloud.cn/api/vpc-api/delete_natgw * * Arguments: * @@ -840,13 +1218,13 @@ public function deleteNATGW(DeleteNATGWRequest $request = null) /** * DeleteNATGWPolicy - 删除NAT网关端口转发规则 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/delete_natgw_policy + * See also: https://docs.ucloud.cn/api/vpc-api/delete_natgw_policy * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "NATGWId" => (string) NAT网关Id * "PolicyId" => (string) 端口转发规则Id * ] @@ -868,13 +1246,13 @@ public function deleteNATGWPolicy(DeleteNATGWPolicyRequest $request = null) /** * DeleteNetworkAcl - 删除网络ACL * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/delete_network_acl + * See also: https://docs.ucloud.cn/api/vpc-api/delete_network_acl * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "AclId" => (string) 需要删除的AclId * ] * @@ -895,13 +1273,13 @@ public function deleteNetworkAcl(DeleteNetworkAclRequest $request = null) /** * DeleteNetworkAclAssociation - 删除网络ACL绑定关系 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/delete_network_acl_association + * See also: https://docs.ucloud.cn/api/vpc-api/delete_network_acl_association * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "AclId" => (string) 需要删除的AclId * "SubnetworkId" => (string) 绑定的子网ID * ] @@ -923,13 +1301,13 @@ public function deleteNetworkAclAssociation(DeleteNetworkAclAssociationRequest $ /** * DeleteNetworkAclEntry - 删除ACL的规则 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/delete_network_acl_entry + * See also: https://docs.ucloud.cn/api/vpc-api/delete_network_acl_entry * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "AclId" => (string) Acl的ID * "EntryId" => (string) 需要删除的EntryId * ] @@ -949,16 +1327,16 @@ public function deleteNetworkAclEntry(DeleteNetworkAclEntryRequest $request = nu } /** - * DeleteRouteTable - 删除自定义路由表 + * DeleteNetworkInterface - 删除网卡 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/delete_route_table + * See also: https://docs.ucloud.cn/api/vpc-api/delete_network_interface * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) - * "RouteTableId" => (string) 路由表资源ID + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "InterfaceId" => (string) 虚拟网卡ID * ] * * Outputs: @@ -966,31 +1344,26 @@ public function deleteNetworkAclEntry(DeleteNetworkAclEntryRequest $request = nu * $outputs = [ * ] * - * @return DeleteRouteTableResponse + * @return DeleteNetworkInterfaceResponse * @throws UCloudException */ - public function deleteRouteTable(DeleteRouteTableRequest $request = null) + public function deleteNetworkInterface(DeleteNetworkInterfaceRequest $request = null) { $resp = $this->invoke($request); - return new DeleteRouteTableResponse($resp->toArray(), $resp->getRequestId()); + return new DeleteNetworkInterfaceResponse($resp->toArray(), $resp->getRequestId()); } /** - * DeleteSecondaryIp - 删除ip(用于uk8s使用) + * DeleteRouteTable - 删除自定义路由表 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/delete_secondary_ip + * See also: https://docs.ucloud.cn/api/vpc-api/delete_route_table * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "Zone" => (string) 可用区。参见 [可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) - * "Ip" => (string) ip - * "Mac" => (string) mac - * "SubnetId" => (string) 子网Id - * "VPCId" => (string) VPCId - * "ObjectId" => (string) 资源Id + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "RouteTableId" => (string) 路由表资源ID * ] * * Outputs: @@ -998,10 +1371,97 @@ public function deleteRouteTable(DeleteRouteTableRequest $request = null) * $outputs = [ * ] * - * @return DeleteSecondaryIpResponse + * @return DeleteRouteTableResponse * @throws UCloudException */ - public function deleteSecondaryIp(DeleteSecondaryIpRequest $request = null) + public function deleteRouteTable(DeleteRouteTableRequest $request = null) + { + $resp = $this->invoke($request); + return new DeleteRouteTableResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DeleteSecGroup - 删除安全组 + * + * See also: https://docs.ucloud.cn/api/vpc-api/delete_sec_group + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "SecGroupId" => (array) 安全组资源 Id。支持 string 数组格式。 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DeleteSecGroupResponse + * @throws UCloudException + */ + public function deleteSecGroup(DeleteSecGroupRequest $request = null) + { + $resp = $this->invoke($request); + return new DeleteSecGroupResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DeleteSecGroupRule - + * + * See also: https://docs.ucloud.cn/api/vpc-api/delete_sec_group_rule + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "SecGroupId" => (string) 所属安全组 ID。 + * "RuleId" => (array) 安全组规则 ID。支持 string 数组格式。 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DeleteSecGroupRuleResponse + * @throws UCloudException + */ + public function deleteSecGroupRule(DeleteSecGroupRuleRequest $request = null) + { + $resp = $this->invoke($request); + return new DeleteSecGroupRuleResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DeleteSecondaryIp - 删除ip(用于uk8s使用) + * + * See also: https://docs.ucloud.cn/api/vpc-api/delete_secondary_ip + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "Ip" => (string) ip + * "Mac" => (string) mac + * "SubnetId" => (string) 子网Id + * "VPCId" => (string) VPCId + * "ObjectId" => (string) 资源Id + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DeleteSecondaryIpResponse + * @throws UCloudException + */ + public function deleteSecondaryIp(DeleteSecondaryIpRequest $request = null) { $resp = $this->invoke($request); return new DeleteSecondaryIpResponse($resp->toArray(), $resp->getRequestId()); @@ -1010,7 +1470,7 @@ public function deleteSecondaryIp(DeleteSecondaryIpRequest $request = null) /** * DeleteSnatDnatRule - 删除NAT创建内外网IP映射规则 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/delete_snat_dnat_rule + * See also: https://docs.ucloud.cn/api/vpc-api/delete_snat_dnat_rule * * Arguments: * @@ -1039,7 +1499,7 @@ public function deleteSnatDnatRule(DeleteSnatDnatRuleRequest $request = null) /** * DeleteSnatRule - 删除指定的出口规则(SNAT规则) * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/delete_snat_rule + * See also: https://docs.ucloud.cn/api/vpc-api/delete_snat_rule * * Arguments: * @@ -1067,13 +1527,13 @@ public function deleteSnatRule(DeleteSnatRuleRequest $request = null) /** * DeleteSubnet - 删除子网 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/delete_subnet + * See also: https://docs.ucloud.cn/api/vpc-api/delete_subnet * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "SubnetId" => (string) 子网ID * ] * @@ -1091,16 +1551,44 @@ public function deleteSubnet(DeleteSubnetRequest $request = null) return new DeleteSubnetResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DeleteSubnetIPv6 - 子网取消关联IPv6 + * + * See also: https://docs.ucloud.cn/api/vpc-api/delete_subnet_ip_v6 + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "SubnetworkId" => (string) 子网ID + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DeleteSubnetIPv6Response + * @throws UCloudException + */ + public function deleteSubnetIPv6(DeleteSubnetIPv6Request $request = null) + { + $resp = $this->invoke($request); + return new DeleteSubnetIPv6Response($resp->toArray(), $resp->getRequestId()); + } + /** * DeleteVPC - 删除VPC * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/delete_vpc + * See also: https://docs.ucloud.cn/api/vpc-api/delete_vpc * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "VPCId" => (string) VPC资源Id * ] * @@ -1118,16 +1606,45 @@ public function deleteVPC(DeleteVPCRequest $request = null) return new DeleteVPCResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DeleteVPCIPv6 - VPC取消关联IPv6网段 + * + * See also: https://docs.ucloud.cn/api/vpc-api/delete_vpc_ip_v6 + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "VPCId" => (string) VPC资源ID + * "IPv6Network" => (string) IPv6网段 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DeleteVPCIPv6Response + * @throws UCloudException + */ + public function deleteVPCIPv6(DeleteVPCIPv6Request $request = null) + { + $resp = $this->invoke($request); + return new DeleteVPCIPv6Response($resp->toArray(), $resp->getRequestId()); + } + /** * DeleteVPCIntercom - 删除VPC互通关系 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/delete_vpc_intercom + * See also: https://docs.ucloud.cn/api/vpc-api/delete_vpc_intercom * * Arguments: * * $args = [ - * "Region" => (string) 源VPC所在地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 源VPC所在地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "VPCId" => (string) 源VPC短ID * "DstVPCId" => (string) 目的VPC短ID * "DstRegion" => (string) 目的VPC所在地域,默认为源VPC所在地域 @@ -1151,13 +1668,13 @@ public function deleteVPCIntercom(DeleteVPCIntercomRequest $request = null) /** * DeleteWhiteListResource - 删除NAT网关白名单列表 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/delete_white_list_resource + * See also: https://docs.ucloud.cn/api/vpc-api/delete_white_list_resource * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "NATGWId" => (string) NAT网关Id * "ResourceIds" => (array) 删除白名单的资源Id * ] @@ -1179,7 +1696,7 @@ public function deleteWhiteListResource(DeleteWhiteListResourceRequest $request /** * DescribeInstanceNetworkInterface - 展示云主机绑定的网卡信息 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_instance_network_interface + * See also: https://docs.ucloud.cn/api/vpc-api/describe_instance_network_interface * * Arguments: * @@ -1228,7 +1745,7 @@ public function describeInstanceNetworkInterface(DescribeInstanceNetworkInterfac /** * DescribeNATGW - 获取NAT网关信息 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_natgw + * See also: https://docs.ucloud.cn/api/vpc-api/describe_natgw * * Arguments: * @@ -1255,8 +1772,8 @@ public function describeInstanceNetworkInterface(DescribeInstanceNetworkInterfac * "VPCId" => (string) 所属VPC Id * "SubnetSet" => (array) 子网 Id[ * [ - * "SubnetworkId" => (string) 子网id * "Subnet" => (string) 子网网段 + * "SubnetworkId" => (string) 子网id * "SubnetName" => (string) 子网名字 * ] * ] @@ -1293,13 +1810,13 @@ public function describeNATGW(DescribeNATGWRequest $request = null) /** * DescribeNATGWPolicy - 展示NAT网关端口转发规则 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_natgw_policy + * See also: https://docs.ucloud.cn/api/vpc-api/describe_natgw_policy * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "NATGWId" => (string) NAT网关Id * "Limit" => (integer) 返回数据长度,默认为10000 * "Offset" => (integer) 列表起始位置偏移量,默认为0 @@ -1336,7 +1853,7 @@ public function describeNATGWPolicy(DescribeNATGWPolicyRequest $request = null) /** * DescribeNetworkAcl - 获取网络ACL * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_network_acl + * See also: https://docs.ucloud.cn/api/vpc-api/describe_network_acl * * Arguments: * @@ -1410,13 +1927,13 @@ public function describeNetworkAcl(DescribeNetworkAclRequest $request = null) /** * DescribeNetworkAclAssociation - 获取网络ACL的绑定关系列表 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_network_acl_association + * See also: https://docs.ucloud.cn/api/vpc-api/describe_network_acl_association * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "AclId" => (string) Acl的ID * "Offset" => (integer) 列表偏移量 * "Limit" => (string) 列表获取的个数限制 @@ -1447,13 +1964,13 @@ public function describeNetworkAclAssociation(DescribeNetworkAclAssociationReque /** * DescribeNetworkAclAssociationBySubnet - 获取子网的ACL绑定信息 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_network_acl_association_by_subnet + * See also: https://docs.ucloud.cn/api/vpc-api/describe_network_acl_association_by_subnet * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "SubnetworkId" => (string) 子网的ID * ] * @@ -1480,7 +1997,7 @@ public function describeNetworkAclAssociationBySubnet(DescribeNetworkAclAssociat /** * DescribeNetworkAclEntry - 获取ACL的规则信息 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_network_acl_entry + * See also: https://docs.ucloud.cn/api/vpc-api/describe_network_acl_entry * * Arguments: * @@ -1534,7 +2051,7 @@ public function describeNetworkAclEntry(DescribeNetworkAclEntryRequest $request /** * DescribeNetworkInterface - 展示虚拟网卡信息 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_network_interface + * See also: https://docs.ucloud.cn/api/vpc-api/describe_network_interface * * Arguments: * @@ -1549,6 +2066,7 @@ public function describeNetworkAclEntry(DescribeNetworkAclEntryRequest $request * "Tag" => (string) 业务组 * "Limit" => (integer) 默认为20 * "Offset" => (integer) 默认为0 + * "WithSecGroup" => (boolean) 是否展示安全组信息 * ] * * Outputs: @@ -1562,12 +2080,41 @@ public function describeNetworkAclEntry(DescribeNetworkAclEntryRequest $request * "PrivateIpSet" => (array) 关联内网IP。当前一个网卡仅支持绑定一个内网IP * "MacAddress" => (string) 关联Mac * "Status" => (integer) 绑定状态 - * "PrivateIp" => (array) 网卡的内网IP信息[ + * "EIPIdSet" => (array) EIP Id 集合 + * "FirewallIdSet" => (array) 防火墙 ID 集合 + * "FirewallSet" => (array) 防火墙信息[ + * [ + * "Id" => (string) 防火墙资源 ID + * "Name" => (string) 防火墙资源名称 + * ] + * ] + * "EipDirectMode" => (boolean) EIP 直通 false:不是,true:是 + * "EipDirectionVersion" => (integer) EIP 直通版本信息 + * "DefaultOutput" => (string) 默认IP 出口 + * "PrivateIp" => (array) 私有 IP 信息[ * [ * "IpType" => (string) ip类型 SecondaryIp/PrimaryIp * "IpAddr" => (array) ip 地址 * ] * ] + * "IPv6AddressInfo" => (array) IPv6 地址信息[ + * [ + * "IPv6Address" => (string) IPv6 地址 + * "IPv6Id" => (string) IPv6 资源 ID + * "Attribute" => (string) 属性 + * ] + * ] + * "IPv6Gateway" => (string) IPv6 网关地址 + * "IPv6Mask" => (integer) IPv6 掩码 + * "OperatorName" => (string) 运营商 + * "SecGroupCount" => (integer) 关联安全组数量 + * "SecGroup" => (array) 关联安全组信息[ + * [ + * "Name" => (string) 安全组名称 + * "Priority" => (integer) 关联优先级 + * "SecGroupId" => (string) 安全组ID + * ] + * ] * "Name" => (string) 虚拟网卡名称 * "Netmask" => (string) 内网IP掩码 * "Gateway" => (string) 默认网关 @@ -1576,11 +2123,11 @@ public function describeNetworkAclEntry(DescribeNetworkAclEntryRequest $request * "CreateTime" => (integer) 创建时间 * "Remark" => (string) 备注 * "Tag" => (string) 业务组 - * "EIPIdSet" => (array) 虚拟网卡绑定的EIP ID信息 - * "FirewallIdSet" => (array) 虚拟网卡绑定的防火墙ID信息 - * "PrivateIpLimit" => (object) 网卡的内网IP配额信息[ - * "PrivateIpCount" => (integer) 网卡拥有的内网IP数量 - * "PrivateIpQuota" => (integer) 网卡内网IP配额 + * "PrivateIpLimit" => (array) 私有 IP 配额[ + * [ + * "PrivateIpCount" => (integer) 网卡拥有的内网IP数量 + * "PrivateIpQuota" => (integer) 网卡内网IP配额 + * ] * ] * ] * ] @@ -1596,10 +2143,77 @@ public function describeNetworkInterface(DescribeNetworkInterfaceRequest $reques return new DescribeNetworkInterfaceResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DescribeResourceSecGroup - 查询资源绑定的安全组信息 + * + * See also: https://docs.ucloud.cn/api/vpc-api/describe_resource_sec_group + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "ResourceType" => (string) 资源类型,如 uhost, uni + * "Offset" => (integer) 分页查询时的偏移量。传入了 ResourceId 则不分页。 + * "Limit" => (integer) 分页查询时的最大返回资源数量。 + * "VPCId" => (string) VPC ID。非必须,分页使用(分页时,也可不传);ResourceId 非空时,忽略 + * "ResourceId" => (array) 资源 ID 数组,如果指定则不分页;否则分页获取该账号下的指定类型的资源。支持 string 数组格式。 + * ] + * + * Outputs: + * + * $outputs = [ + * "TotalCount" => (integer) 资源总数量。传入 ResourceId 时,为传入资源中的有效资源数量。 + * "DataSet" => (array) 资源绑定的安全组信息[ + * [ + * "ResourceId" => (string) 资源 ID + * "ResourceName" => (string) 资源名称 + * "Count" => (integer) 该资源绑定的安全组数量 + * "SecGroupInfo" => (array) 绑定安全组信息[ + * [ + * "SecGroupId" => (string) 安全组 ID + * "Name" => (string) 安全组名称 + * "VPCId" => (string) 安全组所属 VPC + * "Priority" => (integer) 该资源与该安全组绑定的优先级 + * ] + * ] + * "PermitAssociate" => (boolean) 表示是否允许绑定安全组 + * "ExInfo" => (object) 资源额外信息[ + * "SuperResourceId" => (string) 父级资源ID + * "ResourceName" => (string) 资源名称 + * "IP" => (array) 主机内网IP + * "EIP" => (array) 主机外网IP + * "Uni" => (array) 弹性网卡信息[ + * [ + * "ResourceId" => (string) 资源ID + * "Count" => (integer) 资源绑定安全组数量 + * "SecGroupInfo" => (array) 详见SecGroupSimpleInfo[ + * [ + * "SecGroupId" => (string) 安全组资源ID + * "Name" => (string) 安全组名称 + * ] + * ] + * ] + * ] + * "SuperResourceName" => (string) 父级资源名称 + * ] + * ] + * ] + * ] + * + * @return DescribeResourceSecGroupResponse + * @throws UCloudException + */ + public function describeResourceSecGroup(DescribeResourceSecGroupRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeResourceSecGroupResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DescribeRouteTable - 获取路由表详细信息(包括路由策略) * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_route_table + * See also: https://docs.ucloud.cn/api/vpc-api/describe_route_table * * Arguments: * @@ -1662,10 +2276,108 @@ public function describeRouteTable(DescribeRouteTableRequest $request = null) return new DescribeRouteTableResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DescribeSecGroup - + * + * See also: https://docs.ucloud.cn/api/vpc-api/describe_sec_group + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "Limit" => (integer) 分页查询数据长度。默认为20 + * "Offset" => (integer) 分页查询起始位置偏移量。默认为0 + * "VPCId" => (string) 资源ID所属的 VPC ID + * "SecGroupId" => (array) 安全组资源 ID 数组,传入则 Offset/Limit/BusinessId 失效。支持数组格式。Type 为 string 数组。 + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (array) 详见SecGroupInfo[ + * [ + * "SecGroupId" => (string) 安全组资源ID + * "Name" => (string) 安全组名称 + * "VPCId" => (string) VPC资源ID + * "Account" => (integer) 用户 ID + * "Tag" => (string) 业务组 + * "Remark" => (string) 备注 + * "Type" => (string) 安全组类型,枚举值为: "user defined", 自定义创建安全组; "recommend web", 使用Web模板创建的安全组; "recommend non web", 使用非Web模板创建的安全组 + * "CreateTime" => (integer) 创建的时间,格式为Unix Timestamp,如 1747030299 + * "Rule" => (array) 安全组组中的规则列表,参见 SecGroupRuleInfo[ + * [ + * "RuleId" => (string) 规则ID + * "Direction" => (string) "Ingress/Egress",入站规则/出站规则 + * "IPRange" => (string) 地址 + * "Priority" => (integer) 优先级 + * "ProtocolType" => (string) 协议类型 + * "DstPort" => (string) 目标端口 + * "RuleAction" => (string) 匹配策略 + * "Remark" => (string) 安全组规则备注 + * "IPVersion" => (string) IP 版本,如 "IPv4"。支持 IPv6 后废弃 + * ] + * ] + * ] + * ] + * ] + * + * @return DescribeSecGroupResponse + * @throws UCloudException + */ + public function describeSecGroup(DescribeSecGroupRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeSecGroupResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DescribeSecGroupResource - 获取安全组绑资源信息 + * + * See also: https://docs.ucloud.cn/api/vpc-api/describe_sec_group_resource + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "SecGroupId" => (string) 安全组资源ID。 + * "Limit" => (integer) 分页查询长度。默认为20 + * "Offset" => (integer) 分页查询起始位置偏移量。默认为0 + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (array) 详见SecGroupResourceInfo[ + * [ + * "Zone" => (integer) 可用区 + * "SubResourceName" => (string) 绑定的虚拟网卡的名称 + * "SubResourceId" => (string) 资源绑定的虚拟网卡的ID + * "SubResourceType" => (string) 绑定的虚拟网卡的类型,“uni”,虚拟网卡 + * "Name" => (string) 名称 + * "PrivateIp" => (string) 内网IP + * "ResourceId" => (string) 资源ID + * "ResourceType" => (string) 资源类型。"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计,“uni”,虚拟网卡。 + * "Tag" => (string) 业务组 + * ] + * ] + * "TotalCount" => (integer) 安全组绑定的资源总数 + * ] + * + * @return DescribeSecGroupResourceResponse + * @throws UCloudException + */ + public function describeSecGroupResource(DescribeSecGroupResourceRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeSecGroupResourceResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DescribeSecondaryIp - 查询SecondaryIp(uk8s使用) * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_secondary_ip + * See also: https://docs.ucloud.cn/api/vpc-api/describe_secondary_ip * * Arguments: * @@ -1705,7 +2417,7 @@ public function describeSecondaryIp(DescribeSecondaryIpRequest $request = null) /** * DescribeSnatDnatRule - 获取基于NAT创建的内外网IP映射规则信息 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_snat_dnat_rule + * See also: https://docs.ucloud.cn/api/vpc-api/describe_snat_dnat_rule * * Arguments: * @@ -1740,7 +2452,7 @@ public function describeSnatDnatRule(DescribeSnatDnatRuleRequest $request = null /** * DescribeSnatRule - 获取Nat网关的出口规则(SNAT规则) * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_snat_rule + * See also: https://docs.ucloud.cn/api/vpc-api/describe_snat_rule * * Arguments: * @@ -1780,13 +2492,13 @@ public function describeSnatRule(DescribeSnatRuleRequest $request = null) /** * DescribeSubnet - 获取子网信息 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_subnet + * See also: https://docs.ucloud.cn/api/vpc-api/describe_subnet * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "SubnetIds" => (array) 子网id数组,适用于一次查询多个子网信息 * "SubnetId" => (string) 子网id,适用于一次查询一个子网信息 * "RouteTableId" => (string) 路由表Id @@ -1795,6 +2507,7 @@ public function describeSnatRule(DescribeSnatRuleRequest $request = null) * "Offset" => (integer) 偏移量,默认为0 * "Limit" => (integer) 列表长度,默认为20 * "ShowAvailableIPs" => (boolean) 是否返回子网的可用IP数,true为是,false为否,默认不返回 + * "IgnoreResource" => (boolean) 默认为 false针对控制台调用,可设置为true,不进行控制台非必要数据的查询 * ] * * Outputs: @@ -1804,7 +2517,7 @@ public function describeSnatRule(DescribeSnatRuleRequest $request = null) * "DataSet" => (array) 子网信息数组,具体资源见下方SubnetInfo[ * [ * "Zone" => (string) 可用区名称 - * "IPv6Network" => (string) 子网关联的IPv6网段 + * "IPv6Network" => (string) IPv6网段 * "VPCId" => (string) VPCId * "VPCName" => (string) VPC名称 * "SubnetId" => (string) 子网Id @@ -1819,6 +2532,7 @@ public function describeSnatRule(DescribeSnatRuleRequest $request = null) * "HasNATGW" => (boolean) 是否有natgw * "RouteTableId" => (string) 路由表Id * "AvailableIPs" => (integer) 可用IP数量 + * "AvailableIPv6Count" => (integer) 可用IPv6数量 * ] * ] * ] @@ -1835,13 +2549,13 @@ public function describeSubnet(DescribeSubnetRequest $request = null) /** * DescribeSubnetResource - 展示子网资源 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_subnet_resource + * See also: https://docs.ucloud.cn/api/vpc-api/describe_subnet_resource * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "SubnetId" => (string) 子网id * "ResourceType" => (string) 资源类型,默认为全部资源类型。枚举值为:UHOST,云主机;PHOST,物理云主机;ULB,负载均衡;UHADOOP_HOST,hadoop节点;UFORTRESS_HOST,堡垒机;UNATGW,NAT网关;UKAFKA,Kafka消息队列;UMEM,内存存储;DOCKER,容器集群;UDB,数据库;UDW,数据仓库;VIP,内网VIP. * "Offset" => (integer) 列表起始位置偏移量,默认为0 @@ -1854,10 +2568,14 @@ public function describeSubnet(DescribeSubnetRequest $request = null) * "TotalCount" => (integer) 总数 * "DataSet" => (array) 返回数据集,请见SubnetResource[ * [ - * "Name" => (string) 名称 + * "Name" => (string) 资源名称 * "ResourceId" => (string) 资源Id - * "ResourceType" => (string) 资源类型。对应的资源类型:UHOST,云主机;PHOST,物理云主机;ULB,负载均衡;UHADOOP_HOST,hadoop节点;UFORTRESS_HOST,堡垒机;UNATGW,NAT网关;UKAFKA,分布式消息系统;UMEM,内存存储;DOCKER,容器集群;UDB,数据库;UDW,数据仓库;VIP,内网VIP. + * "ResourceType" => (string) 资源类型。对应的资源类型:UHOST,云主机;PHOST,物理云主机;ULB,负载均衡;UHADOOP_HOST,hadoop节点;UFORTRESS_HOST,堡垒机;UNATGW,NAT网关;UKAFKA,Kafka消息队列;UMEM,内存存储;DOCKER,容器集群;UDB,数据库;UDW,数据仓库;VIP,内网VIP. + * "SubResourceName" => (string) 资源绑定的虚拟网卡的实例名称 + * "SubResourceId" => (string) 资源绑定的虚拟网卡的实例ID + * "SubResourceType" => (string) 资源绑定的虚拟网卡的类型 * "IP" => (string) 资源ip + * "IPv6Address" => (string) 资源的IPv6地址 * ] * ] * ] @@ -1874,14 +2592,14 @@ public function describeSubnetResource(DescribeSubnetResourceRequest $request = /** * DescribeVIP - 获取内网VIP详细信息 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_vip + * See also: https://docs.ucloud.cn/api/vpc-api/describe_vip * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "Zone" => (string) 可用区。参见 [可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "VPCId" => (string) vpc的id,指定SubnetId时必填 * "SubnetId" => (string) 子网id,不指定则获取VPCId下的所有vip * "VIPId" => (string) VIP ID @@ -1922,17 +2640,17 @@ public function describeVIP(DescribeVIPRequest $request = null) /** * DescribeVPC - 获取VPC信息 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_vpc + * See also: https://docs.ucloud.cn/api/vpc-api/describe_vpc * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "VPCIds" => (array) VPCId * "Tag" => (string) 业务组名称 - * "Offset" => (integer) - * "Limit" => (integer) + * "Offset" => (integer) 数据偏移量,默认为0 + * "Limit" => (integer) 数据分页值 * ] * * Outputs: @@ -1940,23 +2658,32 @@ public function describeVIP(DescribeVIPRequest $request = null) * $outputs = [ * "DataSet" => (array) vpc信息,具体结构见下方VPCInfo[ * [ - * "NetworkInfo" => (array) [ + * "NetworkInfo" => (array) vpc地址空间信息,详见VPCNetworkInfo[ * [ * "Network" => (string) vpc地址空间 * "SubnetCount" => (integer) 地址空间中子网数量 * ] * ] - * "SubnetCount" => (integer) - * "CreateTime" => (integer) - * "UpdateTime" => (integer) - * "Tag" => (string) - * "Name" => (string) - * "VPCId" => (string) VPCId - * "Network" => (array) + * "SubnetCount" => (integer) 子网数 + * "CreateTime" => (integer) 创建时间 + * "UpdateTime" => (integer) 更新时间 + * "Tag" => (string) 业务组 + * "Name" => (string) VPC名称 + * "VPCType" => (string) DefaultVPC 默认VPC,DefinedVPC,自定义VPC      + * "VPCId" => (string) VPC资源ID + * "Network" => (array) VPC网段 * "IPv6Network" => (string) VPC关联的IPv6网段 * "OperatorName" => (string) VPC关联的IPv6网段所属运营商 + * "IPv6NetworkInfos" => (array) VPC关联的IPv6网段信息[ + * [ + * "IPv6Network" => (string) IPv6网段 + * "OperatorName" => (string) 类型 + * "IPv6SubnetCount" => (integer) IPv6子网数量 + * ] + * ] * ] * ] + * "TotalCount" => (integer) * ] * * @return DescribeVPCResponse @@ -1971,7 +2698,7 @@ public function describeVPC(DescribeVPCRequest $request = null) /** * DescribeVPCIntercom - 获取VPC互通信息 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_vpc_intercom + * See also: https://docs.ucloud.cn/api/vpc-api/describe_vpc_intercom * * Arguments: * @@ -2012,7 +2739,7 @@ public function describeVPCIntercom(DescribeVPCIntercomRequest $request = null) /** * DescribeWhiteListResource - 展示NAT网关白名单资源列表 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_white_list_resource + * See also: https://docs.ucloud.cn/api/vpc-api/describe_white_list_resource * * Arguments: * @@ -2020,8 +2747,6 @@ public function describeVPCIntercom(DescribeVPCIntercomRequest $request = null) * "ProjectId" => (string) 项目id * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * "NATGWIds" => (array) NAT网关的Id - * "Offset" => (integer) 数据偏移量, 默认为0 - * "Limit" => (integer) 数据分页值, 默认为20 * ] * * Outputs: @@ -2058,16 +2783,160 @@ public function describeWhiteListResource(DescribeWhiteListResourceRequest $requ return new DescribeWhiteListResourceResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DetachNetworkInterface - 解绑云主机关联网卡 + * + * See also: https://docs.ucloud.cn/api/vpc-api/detach_network_interface + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "InterfaceId" => (string) 虚拟网卡ID + * "InstanceId" => (string) 云主机ID + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DetachNetworkInterfaceResponse + * @throws UCloudException + */ + public function detachNetworkInterface(DetachNetworkInterfaceRequest $request = null) + { + $resp = $this->invoke($request); + return new DetachNetworkInterfaceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DisableUniEipDirectMode - 关闭虚拟网卡EIP直通功能 + * + * See also: https://docs.ucloud.cn/api/vpc-api/disable_uni_eip_direct_mode + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "VPCId" => (string) VPC ID + * "InterfaceId" => (string) 虚拟网卡ID + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DisableUniEipDirectModeResponse + * @throws UCloudException + */ + public function disableUniEipDirectMode(DisableUniEipDirectModeRequest $request = null) + { + $resp = $this->invoke($request); + return new DisableUniEipDirectModeResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DisableVPCIPv6 - VPC关闭IPv6 + * + * See also: https://docs.ucloud.cn/api/vpc-api/disable_vpc_ip_v6 + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "VPCId" => (string) VPC资源ID + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DisableVPCIPv6Response + * @throws UCloudException + */ + public function disableVPCIPv6(DisableVPCIPv6Request $request = null) + { + $resp = $this->invoke($request); + return new DisableVPCIPv6Response($resp->toArray(), $resp->getRequestId()); + } + + /** + * DisassociateSecGroup - 解绑安全组和资源绑定关系 + * + * See also: https://docs.ucloud.cn/api/vpc-api/disassociate_sec_group + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "SecGroupId" => (array) 安全组ID,不传表示解绑安全组绑定的所以资源,安全组ID和资源ID至少传一个,且只能有一个批量。支持 string 数组格式。 + * "ResourceId" => (array) 资源ID,不传表示解绑资源上所有安全组,安全组ID和资源ID至少传一个,且只能有一个批量。支持 string 数组格式。 + * "Force" => (boolean) 是否强制解绑。默认为 false。为 true 表示强制解绑,用于删除资源前的解绑,因为开启安全组特性的资源至少绑定一个安全组,正常情况下是不允许解绑所有安全组。 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DisassociateSecGroupResponse + * @throws UCloudException + */ + public function disassociateSecGroup(DisassociateSecGroupRequest $request = null) + { + $resp = $this->invoke($request); + return new DisassociateSecGroupResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * EnableUniEipDirectMode - 开启虚拟网卡EIP直通功能 + * + * See also: https://docs.ucloud.cn/api/vpc-api/enable_uni_eip_direct_mode + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "VPCId" => (string) VPC ID + * "InterfaceId" => (string) 虚拟网卡ID + * "EipDirectVersion" => (integer) 枚举值:1-EIP网卡可见2-EIP直通默认为1 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return EnableUniEipDirectModeResponse + * @throws UCloudException + */ + public function enableUniEipDirectMode(EnableUniEipDirectModeRequest $request = null) + { + $resp = $this->invoke($request); + return new EnableUniEipDirectModeResponse($resp->toArray(), $resp->getRequestId()); + } + /** * EnableWhiteList - 修改NAT网关白名单开关 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/enable_white_list + * See also: https://docs.ucloud.cn/api/vpc-api/enable_white_list * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "NATGWId" => (string) NAT网关Id * "IfOpen" => (integer) 白名单开关标记。0:关闭;1:开启。默认为0 * ] @@ -2089,7 +2958,7 @@ public function enableWhiteList(EnableWhiteListRequest $request = null) /** * GetAvailableResourceForPolicy - 获取NAT网关可配置端口转发规则的资源信息 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/get_available_resource_for_policy + * See also: https://docs.ucloud.cn/api/vpc-api/get_available_resource_for_policy * * Arguments: * @@ -2111,6 +2980,7 @@ public function enableWhiteList(EnableWhiteListRequest $request = null) * "ResourceType" => (string) 资源类型。"uhost":云主机; "upm",物理云主机; "hadoophost":hadoop节点; "fortresshost":堡垒机: "udockhost",容器 * ] * ] + * "TotalCount" => (integer) 可配置端口转发规则的资源总数 * ] * * @return GetAvailableResourceForPolicyResponse @@ -2125,7 +2995,7 @@ public function getAvailableResourceForPolicy(GetAvailableResourceForPolicyReque /** * GetAvailableResourceForSnatRule - 获取可用于添加snat规则(出口规则)的资源列表 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/get_available_resource_for_snat_rule + * See also: https://docs.ucloud.cn/api/vpc-api/get_available_resource_for_snat_rule * * Arguments: * @@ -2165,7 +3035,7 @@ public function getAvailableResourceForSnatRule(GetAvailableResourceForSnatRuleR /** * GetAvailableResourceForWhiteList - 获取NAT网关可添加白名单的资源 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/get_available_resource_for_white_list + * See also: https://docs.ucloud.cn/api/vpc-api/get_available_resource_for_white_list * * Arguments: * @@ -2208,7 +3078,7 @@ public function getAvailableResourceForWhiteList(GetAvailableResourceForWhiteLis /** * GetNetworkAclTargetResource - 获取ACL规则应用目标列表 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/get_network_acl_target_resource + * See also: https://docs.ucloud.cn/api/vpc-api/get_network_acl_target_resource * * Arguments: * @@ -2248,13 +3118,13 @@ public function getNetworkAclTargetResource(GetNetworkAclTargetResourceRequest $ /** * ListSubnetForNATGW - 展示NAT网关可绑定的子网列表 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/list_subnet_for_natgw + * See also: https://docs.ucloud.cn/api/vpc-api/list_subnet_for_natgw * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "VPCId" => (string) NAT网关所属VPC Id。默认值为Default VPC Id * ] * @@ -2263,11 +3133,11 @@ public function getNetworkAclTargetResource(GetNetworkAclTargetResourceRequest $ * $outputs = [ * "DataSet" => (array) 具体参数请见NatgwSubnetDataSet[ * [ - * "SubnetId" => (string) 子网id * "Subnet" => (string) 子网网段 * "Netmask" => (string) 掩码 - * "SubnetName" => (string) 子网名字 * "HasNATGW" => (boolean) 是否绑定NATGW + * "SubnetId" => (string) 子网id + * "SubnetName" => (string) 子网名字 * ] * ] * ] @@ -2284,13 +3154,13 @@ public function listSubnetForNATGW(ListSubnetForNATGWRequest $request = null) /** * ModifyRouteRule - 路由策略增、删、改 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/modify_route_rule + * See also: https://docs.ucloud.cn/api/vpc-api/modify_route_rule * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "RouteTableId" => (string) 通过DescribeRouteTable拿到 * "RouteRule" => (array) 格式: RouteRuleId | 目的网段 | 下一跳类型(支持INSTANCE、VIP) | 下一跳 |优先级(保留字段,填写0即可)| 备注 | 增、删、改标志(add/delete/update) 。"添加"示例: test_id | 10.8.0.0/16 | instance | uhost-xd8ja | 0 | Default Route Rule| add (添加的RouteRuleId填任意非空字符串) 。"删除"示例: routerule-xk3jxa | 10.8.0.0/16 | instance | uhost-xd8ja | 0 | Default Route Rule| delete (RouteRuleId来自DescribeRouteTable中) 。“修改”示例: routerule-xk3jxa | 10.8.0.0/16 | instance | uhost-cjksa2 | 0 | Default Route Rule| update (RouteRuleId来自DescribeRouteTable中) * ] @@ -2312,7 +3182,7 @@ public function modifyRouteRule(ModifyRouteRuleRequest $request = null) /** * MoveSecondaryIPMac - 把 Secondary IP 从旧 MAC 迁移到新 MAC * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/move_secondary_ip_mac + * See also: https://docs.ucloud.cn/api/vpc-api/move_secondary_ip_mac * * Arguments: * @@ -2342,7 +3212,7 @@ public function moveSecondaryIPMac(MoveSecondaryIPMacRequest $request = null) /** * ReleaseVIP - 释放VIP资源 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/release_vip + * See also: https://docs.ucloud.cn/api/vpc-api/release_vip * * Arguments: * @@ -2370,13 +3240,13 @@ public function releaseVIP(ReleaseVIPRequest $request = null) /** * SetGwDefaultExport - 设置NAT网关的默认出口 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/set_gw_default_export + * See also: https://docs.ucloud.cn/api/vpc-api/set_gw_default_export * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "NATGWId" => (string) NAT网关Id * "ExportIp" => (string) NAT网关绑定的EIP。ExportIp和ExportEipId必填一个 * "ExportEipId" => (string) NAT网关绑定的EIP Id。ExportIp和ExportEipId必填一个 @@ -2396,10 +3266,127 @@ public function setGwDefaultExport(SetGwDefaultExportRequest $request = null) return new SetGwDefaultExportResponse($resp->toArray(), $resp->getRequestId()); } + /** + * SwitchToFirewall - 切换至防火墙模式 + * + * See also: https://docs.ucloud.cn/api/vpc-api/switch_to_firewall + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "ResourceId" => (string) 资源ID。资源类型为 UHost、UNI、PAAS 资源 + * "Firewall" => (string) 防火墙 ID + * "NodeToFirewall" => (string) map[string]string,string 到 防火墙 ID 的映射。ResourceId是uhost则Node是uni;ResourceId是uhadoop则Node是hadoophost + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return SwitchToFirewallResponse + * @throws UCloudException + */ + public function switchToFirewall(SwitchToFirewallRequest $request = null) + { + $resp = $this->invoke($request); + return new SwitchToFirewallResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * SwitchToSecGroup - 切换至安全组模式 + * + * See also: https://docs.ucloud.cn/api/vpc-api/switch_to_sec_group + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "ResourceId" => (string) 资源ID。资源类型为 UHost、UNI、PAAS 资源 + * "IsRemoveFirewall" => (boolean) 是否移除当前的防火墙(且绑定默认全通的防火墙) + * "PrioritySecGroup" => (array) PrioritySecGroup类型的数组 + * "UniToPrioritySecGroup" => (string) map[string][]PrioritySecGroup, string 到 PrioritySecGroup 数组的映射 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return SwitchToSecGroupResponse + * @throws UCloudException + */ + public function switchToSecGroup(SwitchToSecGroupRequest $request = null) + { + $resp = $this->invoke($request); + return new SwitchToSecGroupResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * UnassignIPv6 - 释放IPv6地址 + * + * See also: https://docs.ucloud.cn/api/vpc-api/unassign_ip_v6 + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "ObjectId" => (string) 资源ID + * "IPv6Addresses" => (array) IPv6地址 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UnassignIPv6Response + * @throws UCloudException + */ + public function unassignIPv6(UnassignIPv6Request $request = null) + { + $resp = $this->invoke($request); + return new UnassignIPv6Response($resp->toArray(), $resp->getRequestId()); + } + + /** + * UpdateNATGW - 更新nat网关基本信息 + * + * See also: https://docs.ucloud.cn/api/vpc-api/update_natgw + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "NATGWId" => (string) natgw id + * "NATGWName" => (string) NATGateWay 名字 + * "Tag" => (string) 业务组 + * "Remark" => (string) 备注 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpdateNATGWResponse + * @throws UCloudException + */ + public function updateNATGW(UpdateNATGWRequest $request = null) + { + $resp = $this->invoke($request); + return new UpdateNATGWResponse($resp->toArray(), $resp->getRequestId()); + } + /** * UpdateNATGWPolicy - 更新NAT网关端口转发规则 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/update_natgw_policy + * See also: https://docs.ucloud.cn/api/vpc-api/update_natgw_policy * * Arguments: * @@ -2430,10 +3417,38 @@ public function updateNATGWPolicy(UpdateNATGWPolicyRequest $request = null) return new UpdateNATGWPolicyResponse($resp->toArray(), $resp->getRequestId()); } + /** + * UpdateNATGWSnatpool - NAT网关默认出口规则是否开启Snatpool,若开启,对应控制台上的负载均衡流量出口方式。 + * + * See also: https://docs.ucloud.cn/api/vpc-api/update_natgw_snatpool + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "NATGWId" => (string) NAT网关的资源ID + * "IsSnatpoolEnabled" => (string) 开启,"enable";关闭,"disable"; + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpdateNATGWSnatpoolResponse + * @throws UCloudException + */ + public function updateNATGWSnatpool(UpdateNATGWSnatpoolRequest $request = null) + { + $resp = $this->invoke($request); + return new UpdateNATGWSnatpoolResponse($resp->toArray(), $resp->getRequestId()); + } + /** * UpdateNATGWSubnet - 更新NAT网关绑定的子网 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/update_natgw_subnet + * See also: https://docs.ucloud.cn/api/vpc-api/update_natgw_subnet * * Arguments: * @@ -2461,13 +3476,13 @@ public function updateNATGWSubnet(UpdateNATGWSubnetRequest $request = null) /** * UpdateNetworkAcl - 更改ACL * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/update_network_acl + * See also: https://docs.ucloud.cn/api/vpc-api/update_network_acl * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "AclName" => (string) Acl的名称 * "AclId" => (string) 需要更改的ACL ID * "Description" => (string) 描述 @@ -2490,13 +3505,13 @@ public function updateNetworkAcl(UpdateNetworkAclRequest $request = null) /** * UpdateNetworkAclEntry - 更新ACL的规则 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/update_network_acl_entry + * See also: https://docs.ucloud.cn/api/vpc-api/update_network_acl_entry * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "AclId" => (string) ACL的ID * "EntryId" => (string) 需要更新的Entry Id * "Priority" => (integer) Entry的优先级,对于同样的Direction来说,不能重复 @@ -2524,16 +3539,45 @@ public function updateNetworkAclEntry(UpdateNetworkAclEntryRequest $request = nu return new UpdateNetworkAclEntryResponse($resp->toArray(), $resp->getRequestId()); } + /** + * UpdateNetworkInterfaceDefaultOutput - 更新虚拟网卡默认出口(仅用于开启EIP网卡可见模式的虚拟网卡) + * + * See also: https://docs.ucloud.cn/api/vpc-api/update_network_interface_default_output + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "InterfaceId" => (string) 虚拟网卡Id + * "Output" => (string) 出口IP + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpdateNetworkInterfaceDefaultOutputResponse + * @throws UCloudException + */ + public function updateNetworkInterfaceDefaultOutput(UpdateNetworkInterfaceDefaultOutputRequest $request = null) + { + $resp = $this->invoke($request); + return new UpdateNetworkInterfaceDefaultOutputResponse($resp->toArray(), $resp->getRequestId()); + } + /** * UpdateRouteTableAttribute - 更新路由表基本信息 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/update_route_table_attribute + * See also: https://docs.ucloud.cn/api/vpc-api/update_route_table_attribute * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "RouteTableId" => (string) 路由表ID * "Name" => (string) 名称 * "Remark" => (string) 备注 @@ -2554,10 +3598,113 @@ public function updateRouteTableAttribute(UpdateRouteTableAttributeRequest $requ return new UpdateRouteTableAttributeResponse($resp->toArray(), $resp->getRequestId()); } + /** + * UpdateSecGroup - 更新安全组基本信息 + * + * See also: https://docs.ucloud.cn/api/vpc-api/update_sec_group + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "SecGroupId" => (string) 安全组资源ID数组。不支持 .n 格式。Type 为 string 数组。 + * "Name" => (string) 安全组名称,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 + * "Remark" => (string) 安全组备注,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpdateSecGroupResponse + * @throws UCloudException + */ + public function updateSecGroup(UpdateSecGroupRequest $request = null) + { + $resp = $this->invoke($request); + return new UpdateSecGroupResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * UpdateSecGroupAssociation - 仅对操作的安全组ID生效,其他已有的绑定关系不受影响。 + * + * See also: https://docs.ucloud.cn/api/vpc-api/update_sec_group_association + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "ResourceId" => (string) 资源ID + * "OldSecGroupId" => (array) 被替换的安全组ID。支持数组格式,即为 string 数组。 + * "NewPrioritySecGroup" => (array) [ + * [ + * "Priority" => (integer) 新绑定安全组的绑定优先级。支持 NewPrioritySecGroup 为数组格式,即传对应数据的 JSON 格式数组。 + * "SecGroupId" => (string) 需新绑定的安全组ID + * ] + * ] + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpdateSecGroupAssociationResponse + * @throws UCloudException + */ + public function updateSecGroupAssociation(UpdateSecGroupAssociationRequest $request = null) + { + $resp = $this->invoke($request); + return new UpdateSecGroupAssociationResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * UpdateSecGroupRule - + * + * See also: https://docs.ucloud.cn/api/vpc-api/update_sec_group_rule + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "SecGroupId" => (string) 规则所属得安全组 ID。 + * "Rule" => (array) [ + * [ + * "RuleId" => (string) 规则 ID + * "Direction" => (string) "Ingress/Egress",入站规则/出站规则 + * "IPRange" => (string) IP 地址信息,逗号分隔。 + * "Priority" => (integer) 规则优先级。范围为 1~200 + * "ProtocolType" => (string) 协议类型。"TCP","UDP","ICMP","ICMPv6","ALL" + * "DstPort" => (string) 目的端口。逗号分隔,如 "80,443"、"443,2000-10000" + * "RuleAction" => (string) 规则行为。"Accept" 或 "Drop" + * "Remark" => (string) 规则备注 + * "IPVersion" => (string) IP 版本,如 “IPv4”。支持 IPv6 后废弃 + * ] + * ] + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpdateSecGroupRuleResponse + * @throws UCloudException + */ + public function updateSecGroupRule(UpdateSecGroupRuleRequest $request = null) + { + $resp = $this->invoke($request); + return new UpdateSecGroupRuleResponse($resp->toArray(), $resp->getRequestId()); + } + /** * UpdateSnatRule - 更新指定的出口规则(SNAT规则) * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/update_snat_rule + * See also: https://docs.ucloud.cn/api/vpc-api/update_snat_rule * * Arguments: * @@ -2587,13 +3734,13 @@ public function updateSnatRule(UpdateSnatRuleRequest $request = null) /** * UpdateSubnetAttribute - 更新子网信息 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/update_subnet_attribute + * See also: https://docs.ucloud.cn/api/vpc-api/update_subnet_attribute * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "SubnetId" => (string) 子网ID * "Name" => (string) 子网名称(如果Name不填写,Tag必须填写) * "Tag" => (string) 业务组名称(如果Tag不填写,Name必须填写) @@ -2616,13 +3763,13 @@ public function updateSubnetAttribute(UpdateSubnetAttributeRequest $request = nu /** * UpdateVIPAttribute - 更新VIP信息 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/update_vip_attribute + * See also: https://docs.ucloud.cn/api/vpc-api/update_vip_attribute * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "VIPId" => (string) 内网VIP的资源Id * "Remark" => (string) 内网VIP的备注 * "Name" => (string) 内网VIP的名称 @@ -2643,16 +3790,51 @@ public function updateVIPAttribute(UpdateVIPAttributeRequest $request = null) return new UpdateVIPAttributeResponse($resp->toArray(), $resp->getRequestId()); } + /** + * UpdateVPCIPv6 - 更新VPC IPv6网段 + * + * See also: https://docs.ucloud.cn/api/vpc-api/update_vpc_ip_v6 + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "VPCId" => (string) VPC资源ID + * "IPv6NetworkConfig" => (array) [ + * [ + * "IPv6Network" => (string) 需要保留的所有网段 + * "OperatorName" => (string) 网段对应的运营商类型 + * "Type" => (string) 网段分类:Default--默认网段、Custom--客户自带网段 + * ] + * ] + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpdateVPCIPv6Response + * @throws UCloudException + */ + public function updateVPCIPv6(UpdateVPCIPv6Request $request = null) + { + $resp = $this->invoke($request); + return new UpdateVPCIPv6Response($resp->toArray(), $resp->getRequestId()); + } + /** * UpdateVPCNetwork - 更新VPC网段 * - * See also: https://docs.ucloud.cn/api/vpc2.0-api/update_vpc_network + * See also: https://docs.ucloud.cn/api/vpc-api/update_vpc_network * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "VPCId" => (string) VPC的ID * "Network" => (array) 需要保留的VPC网段。当前仅支持删除VPC网段,添加网段请参考[AddVPCNetwork](https://docs.ucloud.cn/api/vpc2.0-api/add_vpc_network) * ]