Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.9
0.3.10
134 changes: 134 additions & 0 deletions src/ULB/Apis/AddSSLBindingRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<?php
/**
* Copyright 2025 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace UCloud\ULB\Apis;

use UCloud\Core\Request\Request;

class AddSSLBindingRequest extends Request
{
public function __construct()
{
parent::__construct(["Action" => "AddSSLBinding"]);
$this->markRequired("Region");
$this->markRequired("ProjectId");
$this->markRequired("LoadBalancerId");
$this->markRequired("ListenerId");
$this->markRequired("SSLIds");
}



/**
* 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);
}

/**
* LoadBalancerId: 负载均衡实例的ID
*
* @return string|null
*/
public function getLoadBalancerId()
{
return $this->get("LoadBalancerId");
}

/**
* LoadBalancerId: 负载均衡实例的ID
*
* @param string $loadBalancerId
*/
public function setLoadBalancerId($loadBalancerId)
{
$this->set("LoadBalancerId", $loadBalancerId);
}

/**
* ListenerId: 监听器的ID
*
* @return string|null
*/
public function getListenerId()
{
return $this->get("ListenerId");
}

/**
* ListenerId: 监听器的ID
*
* @param string $listenerId
*/
public function setListenerId($listenerId)
{
$this->set("ListenerId", $listenerId);
}

/**
* SSLIds: SSLId的数组
*
* @return string[]|null
*/
public function getSSLIds()
{
return $this->get("SSLIds");
}

/**
* SSLIds: SSLId的数组
*
* @param string[] $sslIds
*/
public function setSSLIds(array $sslIds)
{
$this->set("SSLIds", $sslIds);
}
}
26 changes: 26 additions & 0 deletions src/ULB/Apis/AddSSLBindingResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Copyright 2025 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace UCloud\ULB\Apis;

use UCloud\Core\Response\Response;

class AddSSLBindingResponse extends Response
{



}
146 changes: 146 additions & 0 deletions src/ULB/Apis/AddTargetsRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
<?php
/**
* Copyright 2025 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace UCloud\ULB\Apis;

use UCloud\Core\Request\Request;
use UCloud\ULB\Params\AddTargetsParamTargets;

class AddTargetsRequest extends Request
{
public function __construct()
{
parent::__construct(["Action" => "AddTargets"]);
$this->markRequired("Region");
$this->markRequired("ProjectId");
$this->markRequired("LoadBalancerId");
$this->markRequired("ListenerId");
}



/**
* 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);
}

/**
* LoadBalancerId: 负载均衡实例的ID
*
* @return string|null
*/
public function getLoadBalancerId()
{
return $this->get("LoadBalancerId");
}

/**
* LoadBalancerId: 负载均衡实例的ID
*
* @param string $loadBalancerId
*/
public function setLoadBalancerId($loadBalancerId)
{
$this->set("LoadBalancerId", $loadBalancerId);
}

/**
* ListenerId: 监听器的ID
*
* @return string|null
*/
public function getListenerId()
{
return $this->get("ListenerId");
}

/**
* ListenerId: 监听器的ID
*
* @param string $listenerId
*/
public function setListenerId($listenerId)
{
$this->set("ListenerId", $listenerId);
}

/**
* Targets:
*
* @return AddTargetsParamTargets[]|null
*/
public function getTargets()
{
$items = $this->get("Targets");
if ($items == null) {
return [];
}
$result = [];
foreach ($items as $i => $item) {
array_push($result, new AddTargetsParamTargets($item));
}
return $result;
}

/**
* Targets:
*
* @param AddTargetsParamTargets[] $targets
*/
public function setTargets(array $targets)
{
$result = [];
foreach ($targets as $i => $item) {
array_push($result, $item->getAll());
}
return $result;
}
}
57 changes: 57 additions & 0 deletions src/ULB/Apis/AddTargetsResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?php
/**
* Copyright 2025 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace UCloud\ULB\Apis;

use UCloud\Core\Response\Response;
use UCloud\ULB\Models\TargetSet;

class AddTargetsResponse extends Response
{


/**
* Targets: 服务节点信息
*
* @return TargetSet[]|null
*/
public function getTargets()
{
$items = $this->get("Targets");
if ($items == null) {
return [];
}
$result = [];
foreach ($items as $i => $item) {
array_push($result, new TargetSet($item));
}
return $result;
}

/**
* Targets: 服务节点信息
*
* @param TargetSet[] $targets
*/
public function setTargets(array $targets)
{
$result = [];
foreach ($targets as $i => $item) {
array_push($result, $item->getAll());
}
return $result;
}
}
Loading