diff --git a/VERSION b/VERSION index 478f799a..b8da8ef5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.63 +0.3.64 diff --git a/src/UDNS/Apis/DeleteUDNSZoneRequest.php b/src/UDNS/Apis/DeleteUDNSZoneRequest.php new file mode 100644 index 00000000..531396c9 --- /dev/null +++ b/src/UDNS/Apis/DeleteUDNSZoneRequest.php @@ -0,0 +1,91 @@ + "DeleteUDNSZone"]); + $this->markRequired("Region"); + $this->markRequired("DNSZoneId"); + } + + + + /** + * 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); + } + + /** + * DNSZoneId: 域名资源ID + * + * @return string|null + */ + public function getDNSZoneId() + { + return $this->get("DNSZoneId"); + } + + /** + * DNSZoneId: 域名资源ID + * + * @param string $dnsZoneId + */ + public function setDNSZoneId($dnsZoneId) + { + $this->set("DNSZoneId", $dnsZoneId); + } +} diff --git a/src/UDNS/Apis/DeleteUDNSZoneResponse.php b/src/UDNS/Apis/DeleteUDNSZoneResponse.php new file mode 100644 index 00000000..5f93c185 --- /dev/null +++ b/src/UDNS/Apis/DeleteUDNSZoneResponse.php @@ -0,0 +1,26 @@ + "DescribeUDNSZoneByVPC"]); + $this->markRequired("VPCId"); + } + + + + /** + * 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/UDNS/Apis/DescribeUDNSZoneByVPCResponse.php b/src/UDNS/Apis/DescribeUDNSZoneByVPCResponse.php new file mode 100644 index 00000000..72deb532 --- /dev/null +++ b/src/UDNS/Apis/DescribeUDNSZoneByVPCResponse.php @@ -0,0 +1,26 @@ + "DescribeUDNSZoneForward"]); + $this->markRequired("DNSZoneId"); + } + + + + /** + * 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); + } + + /** + * DNSZoneId: 域名ID + * + * @return string|null + */ + public function getDNSZoneId() + { + return $this->get("DNSZoneId"); + } + + /** + * DNSZoneId: 域名ID + * + * @param string $dnsZoneId + */ + public function setDNSZoneId($dnsZoneId) + { + $this->set("DNSZoneId", $dnsZoneId); + } +} diff --git a/src/UDNS/Apis/DescribeUDNSZoneForwardResponse.php b/src/UDNS/Apis/DescribeUDNSZoneForwardResponse.php new file mode 100644 index 00000000..5306a9a8 --- /dev/null +++ b/src/UDNS/Apis/DescribeUDNSZoneForwardResponse.php @@ -0,0 +1,104 @@ +get("VPCProjectId"); + } + + /** + * VPCProjectId: 转发目标VPC所属VPC + * + * @param string $vpcProjectId + */ + public function setVPCProjectId($vpcProjectId) + { + $this->set("VPCProjectId", $vpcProjectId); + } + + /** + * VPCRegion: 转发目标VPC所属地域 + * + * @return string|null + */ + public function getVPCRegion() + { + return $this->get("VPCRegion"); + } + + /** + * VPCRegion: 转发目标VPC所属地域 + * + * @param string $vpcRegion + */ + public function setVPCRegion($vpcRegion) + { + $this->set("VPCRegion", $vpcRegion); + } + + /** + * 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); + } + + /** + * Servers: 转发目标DNS 服务器地址 + * + * @return string[]|null + */ + public function getServers() + { + return $this->get("Servers"); + } + + /** + * Servers: 转发目标DNS 服务器地址 + * + * @param string[] $servers + */ + public function setServers(array $servers) + { + $this->set("Servers", $servers); + } +} diff --git a/src/UDNS/Apis/ModifyUDNSZoneRequest.php b/src/UDNS/Apis/ModifyUDNSZoneRequest.php index 1ddaa7a5..b988001f 100644 --- a/src/UDNS/Apis/ModifyUDNSZoneRequest.php +++ b/src/UDNS/Apis/ModifyUDNSZoneRequest.php @@ -110,7 +110,7 @@ public function setRemark($remark) } /** - * IsRecursionEnabled: 是否支持迭代。枚举值,"enable",支持迭代; "disable",不支持迭代 + * IsRecursionEnabled: 是否支持递归。枚举值,"enable",支持; "disable",不支持 * * @return string|null */ @@ -120,7 +120,7 @@ public function getIsRecursionEnabled() } /** - * IsRecursionEnabled: 是否支持迭代。枚举值,"enable",支持迭代; "disable",不支持迭代 + * IsRecursionEnabled: 是否支持递归。枚举值,"enable",支持; "disable",不支持 * * @param string $isRecursionEnabled */ diff --git a/src/UDNS/UDNSClient.php b/src/UDNS/UDNSClient.php index e3e81848..77266b5e 100644 --- a/src/UDNS/UDNSClient.php +++ b/src/UDNS/UDNSClient.php @@ -26,12 +26,18 @@ use UCloud\UDNS\Apis\CreateUDNSZoneResponse; use UCloud\UDNS\Apis\DeleteUDNSRecordRequest; use UCloud\UDNS\Apis\DeleteUDNSRecordResponse; +use UCloud\UDNS\Apis\DeleteUDNSZoneRequest; +use UCloud\UDNS\Apis\DeleteUDNSZoneResponse; use UCloud\UDNS\Apis\DescribeUDNSDomainRequest; use UCloud\UDNS\Apis\DescribeUDNSDomainResponse; use UCloud\UDNS\Apis\DescribeUDNSRecordRequest; use UCloud\UDNS\Apis\DescribeUDNSRecordResponse; use UCloud\UDNS\Apis\DescribeUDNSZoneRequest; use UCloud\UDNS\Apis\DescribeUDNSZoneResponse; +use UCloud\UDNS\Apis\DescribeUDNSZoneByVPCRequest; +use UCloud\UDNS\Apis\DescribeUDNSZoneByVPCResponse; +use UCloud\UDNS\Apis\DescribeUDNSZoneForwardRequest; +use UCloud\UDNS\Apis\DescribeUDNSZoneForwardResponse; use UCloud\UDNS\Apis\DisassociateUDNSZoneVPCRequest; use UCloud\UDNS\Apis\DisassociateUDNSZoneVPCResponse; use UCloud\UDNS\Apis\ModifyUDNSRecordRequest; @@ -171,6 +177,33 @@ public function deleteUDNSRecord(DeleteUDNSRecordRequest $request = null) return new DeleteUDNSRecordResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DeleteUDNSZone - 删除域名 + * + * See also: https://docs.ucloud.cn/api/udns-api/delete_udns_zone + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "DNSZoneId" => (string) 域名资源ID + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DeleteUDNSZoneResponse + * @throws UCloudException + */ + public function deleteUDNSZone(DeleteUDNSZoneRequest $request = null) + { + $resp = $this->invoke($request); + return new DeleteUDNSZoneResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DescribeUDNSDomain - zone下所有域名的rr记录 * @@ -323,6 +356,61 @@ public function describeUDNSZone(DescribeUDNSZoneRequest $request = null) return new DescribeUDNSZoneResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DescribeUDNSZoneByVPC - 根据VPC id 查询绑定的UDNSZone + * + * See also: https://docs.ucloud.cn/api/udns-api/describe_udns_zone_by_vpc + * + * Arguments: + * + * $args = [ + * "VPCId" => (string) VPC id + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DescribeUDNSZoneByVPCResponse + * @throws UCloudException + */ + public function describeUDNSZoneByVPC(DescribeUDNSZoneByVPCRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeUDNSZoneByVPCResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DescribeUDNSZoneForward - 获取域名转发配置 + * + * See also: https://docs.ucloud.cn/api/udns-api/describe_udns_zone_forward + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "DNSZoneId" => (string) 域名ID + * ] + * + * Outputs: + * + * $outputs = [ + * "VPCProjectId" => (string) 转发目标VPC所属VPC + * "VPCRegion" => (string) 转发目标VPC所属地域 + * "VPCId" => (string) 转发目标VPC的ID + * "Servers" => (array) 转发目标DNS 服务器地址 + * ] + * + * @return DescribeUDNSZoneForwardResponse + * @throws UCloudException + */ + public function describeUDNSZoneForward(DescribeUDNSZoneForwardRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeUDNSZoneForwardResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DisassociateUDNSZoneVPC - 解绑域名和VPC * @@ -397,7 +485,7 @@ public function modifyUDNSRecord(ModifyUDNSRecordRequest $request = null) * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "DNSZoneId" => (string) 域名资源ID * "Remark" => (string) 备注 - * "IsRecursionEnabled" => (string) 是否支持迭代。枚举值,"enable",支持迭代; "disable",不支持迭代 + * "IsRecursionEnabled" => (string) 是否支持递归。枚举值,"enable",支持; "disable",不支持 * ] * * Outputs: