Skip to content
Merged
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.26
0.3.27
2 changes: 2 additions & 0 deletions src/ULB/Apis/CreateRuleRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
use UCloud\ULB\Params\CreateRuleParamRuleActionsRemoveHeaderConfig;
use UCloud\ULB\Params\CreateRuleParamRuleActionsCorsConfig;
use UCloud\ULB\Params\CreateRuleParamRuleActionsFixedResponseConfig;
use UCloud\ULB\Params\CreateRuleParamRuleActionsProxyBufferingConfig;
use UCloud\ULB\Params\CreateRuleParamRuleActionsBackendConnectionConfig;

class CreateRuleRequest extends Request
{
Expand Down
2 changes: 2 additions & 0 deletions src/ULB/Apis/DescribeListenersResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
use UCloud\ULB\Models\InsertHeaderConfigSet;
use UCloud\ULB\Models\CorsConfigSet;
use UCloud\ULB\Models\RemoveHeaderConfigSet;
use UCloud\ULB\Models\ProxyBufferingConfig;
use UCloud\ULB\Models\BackendConnectionConfig;

class DescribeListenersResponse extends Response
{
Expand Down
2 changes: 2 additions & 0 deletions src/ULB/Apis/DescribeLoadBalancersResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
use UCloud\ULB\Models\InsertHeaderConfigSet;
use UCloud\ULB\Models\CorsConfigSet;
use UCloud\ULB\Models\RemoveHeaderConfigSet;
use UCloud\ULB\Models\ProxyBufferingConfig;
use UCloud\ULB\Models\BackendConnectionConfig;
use UCloud\ULB\Models\SecGroupInfo;

class DescribeLoadBalancersResponse extends Response
Expand Down
2 changes: 2 additions & 0 deletions src/ULB/Apis/DescribeRulesResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
use UCloud\ULB\Models\InsertHeaderConfigSet;
use UCloud\ULB\Models\CorsConfigSet;
use UCloud\ULB\Models\RemoveHeaderConfigSet;
use UCloud\ULB\Models\ProxyBufferingConfig;
use UCloud\ULB\Models\BackendConnectionConfig;

class DescribeRulesResponse extends Response
{
Expand Down
2 changes: 2 additions & 0 deletions src/ULB/Apis/UpdateRuleAttributeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
use UCloud\ULB\Params\UpdateRuleAttributeParamRuleActionsRemoveHeaderConfig;
use UCloud\ULB\Params\UpdateRuleAttributeParamRuleActionsCorsConfig;
use UCloud\ULB\Params\UpdateRuleAttributeParamRuleActionsFixedResponseConfig;
use UCloud\ULB\Params\UpdateRuleAttributeParamRuleActionsProxyBufferingConfig;
use UCloud\ULB\Params\UpdateRuleAttributeParamRuleActionsBackendConnectionConfig;

class UpdateRuleAttributeRequest extends Request
{
Expand Down
44 changes: 44 additions & 0 deletions src/ULB/Models/BackendConnectionConfig.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
/**
* Copyright 2026 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\Models;

use UCloud\Core\Response\Response;

class BackendConnectionConfig extends Response
{


/**
* EnablePersistentConnection: 是否开启长连接
*
* @return boolean|null
*/
public function getEnablePersistentConnection()
{
return $this->get("EnablePersistentConnection");
}

/**
* EnablePersistentConnection: 是否开启长连接
*
* @param boolean $enablePersistentConnection
*/
public function setEnablePersistentConnection($enablePersistentConnection)
{
$this->set("EnablePersistentConnection", $enablePersistentConnection);
}
}
144 changes: 132 additions & 12 deletions src/ULB/Models/HealthCheckConfigSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class HealthCheckConfigSet extends Response


/**
* Enabled: 是否开启健康检查功能。暂时不支持关闭。 默认值为:true
* Enabled: 是否开启健康检查功能。 默认值为:true
*
* @return boolean|null
*/
Expand All @@ -33,7 +33,7 @@ public function getEnabled()
}

/**
* Enabled: 是否开启健康检查功能。暂时不支持关闭。 默认值为:true
* Enabled: 是否开启健康检查功能。 默认值为:true
*
* @param boolean $enabled
*/
Expand All @@ -43,7 +43,7 @@ public function setEnabled($enabled)
}

/**
* Type: 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查; 默认值:Port
* Type: 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查;GRPC -> GRPC检测; 默认值:Port
*
* @return string|null
*/
Expand All @@ -53,7 +53,7 @@ public function getType()
}

/**
* Type: 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查; 默认值:Port
* Type: 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查;GRPC -> GRPC检测; 默认值:Port
*
* @param string $type
*/
Expand All @@ -63,7 +63,7 @@ public function setType($type)
}

/**
* Domain: (应用型专用)HTTP检查域名。 当Type为HTTP时,此字段有意义,代表HTTP检查域名
* Domain: (应用型专用)HTTP检查域名。 当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查域名
*
* @return string|null
*/
Expand All @@ -73,7 +73,7 @@ public function getDomain()
}

/**
* Domain: (应用型专用)HTTP检查域名。 当Type为HTTP时,此字段有意义,代表HTTP检查域名
* Domain: (应用型专用)HTTP检查域名。 当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查域名
*
* @param string $domain
*/
Expand All @@ -83,7 +83,7 @@ public function setDomain($domain)
}

/**
* Path: (应用型专用)HTTP检查路径。当Type为HTTP时,此字段有意义,代表HTTP检查路径
* Path: (应用型专用)HTTP检查路径。当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查路径
*
* @return string|null
*/
Expand All @@ -93,7 +93,7 @@ public function getPath()
}

/**
* Path: (应用型专用)HTTP检查路径。当Type为HTTP时,此字段有意义,代表HTTP检查路径
* Path: (应用型专用)HTTP检查路径。当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查路径
*
* @param string $path
*/
Expand All @@ -103,7 +103,7 @@ public function setPath($path)
}

/**
* Method: (应用型专用)HTTP检查方法。当Type为HTTP时,此字段有意义,代表HTTP检查方法
* Method: (应用型专用)HTTP检查方法。当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查方法
*
* @return string|null
*/
Expand All @@ -113,7 +113,7 @@ public function getMethod()
}

/**
* Method: (应用型专用)HTTP检查方法。当Type为HTTP时,此字段有意义,代表HTTP检查方法
* Method: (应用型专用)HTTP检查方法。当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查方法
*
* @param string $method
*/
Expand All @@ -123,7 +123,7 @@ public function setMethod($method)
}

/**
* ResponseCode: (应用型专用)GRPC检查响应码。当Type为GRPC时,此字段有意义,代表GRPC检查响应码
* ResponseCode: (应用型专用)检查预期状态码。HTTP时为2xx,3xx格式(逗号分隔),GRPC时为数字码(逗号分隔)。
*
* @return string|null
*/
Expand All @@ -133,12 +133,132 @@ public function getResponseCode()
}

/**
* ResponseCode: (应用型专用)GRPC检查响应码。当Type为GRPC时,此字段有意义,代表GRPC检查响应码
* ResponseCode: (应用型专用)检查预期状态码。HTTP时为2xx,3xx格式(逗号分隔),GRPC时为数字码(逗号分隔)。
*
* @param string $responseCode
*/
public function setResponseCode($responseCode)
{
$this->set("ResponseCode", $responseCode);
}

/**
* HTTPVersion: (应用型专用)检查协议
*
* @return string|null
*/
public function getHTTPVersion()
{
return $this->get("HTTPVersion");
}

/**
* HTTPVersion: (应用型专用)检查协议
*
* @param string $httpVersion
*/
public function setHTTPVersion($httpVersion)
{
$this->set("HTTPVersion", $httpVersion);
}

/**
* Port: (应用型专用)端口
*
* @return integer|null
*/
public function getPort()
{
return $this->get("Port");
}

/**
* Port: (应用型专用)端口
*
* @param int $port
*/
public function setPort($port)
{
$this->set("Port", $port);
}

/**
* TimeOut: (应用型专用)超时时间,秒,必须小于Interval
*
* @return integer|null
*/
public function getTimeOut()
{
return $this->get("TimeOut");
}

/**
* TimeOut: (应用型专用)超时时间,秒,必须小于Interval
*
* @param int $timeOut
*/
public function setTimeOut($timeOut)
{
$this->set("TimeOut", $timeOut);
}

/**
* Interval: (应用型专用)间隔时间,秒,必须大于TimeOut
*
* @return integer|null
*/
public function getInterval()
{
return $this->get("Interval");
}

/**
* Interval: (应用型专用)间隔时间,秒,必须大于TimeOut
*
* @param int $interval
*/
public function setInterval($interval)
{
$this->set("Interval", $interval);
}

/**
* UpCounts: (应用型专用)判定成功的连续次数
*
* @return integer|null
*/
public function getUpCounts()
{
return $this->get("UpCounts");
}

/**
* UpCounts: (应用型专用)判定成功的连续次数
*
* @param int $upCounts
*/
public function setUpCounts($upCounts)
{
$this->set("UpCounts", $upCounts);
}

/**
* DownCounts: (应用型专用)判定失败的连续次数
*
* @return integer|null
*/
public function getDownCounts()
{
return $this->get("DownCounts");
}

/**
* DownCounts: (应用型专用)判定失败的连续次数
*
* @param int $downCounts
*/
public function setDownCounts($downCounts)
{
$this->set("DownCounts", $downCounts);
}
}
20 changes: 20 additions & 0 deletions src/ULB/Models/Listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,4 +417,24 @@ public function setState($state)
{
$this->set("State", $state);
}

/**
* TargetProtocol: 后端协议。应用型限定取值:“HTTP,HTTPS,GRPC",默认值“HTTP”
*
* @return string|null
*/
public function getTargetProtocol()
{
return $this->get("TargetProtocol");
}

/**
* TargetProtocol: 后端协议。应用型限定取值:“HTTP,HTTPS,GRPC",默认值“HTTP”
*
* @param string $targetProtocol
*/
public function setTargetProtocol($targetProtocol)
{
$this->set("TargetProtocol", $targetProtocol);
}
}
44 changes: 44 additions & 0 deletions src/ULB/Models/ProxyBufferingConfig.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
/**
* Copyright 2026 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\Models;

use UCloud\Core\Response\Response;

class ProxyBufferingConfig extends Response
{


/**
* CloseProxyBuffering: 关闭缓存
*
* @return boolean|null
*/
public function getCloseProxyBuffering()
{
return $this->get("CloseProxyBuffering");
}

/**
* CloseProxyBuffering: 关闭缓存
*
* @param boolean $closeProxyBuffering
*/
public function setCloseProxyBuffering($closeProxyBuffering)
{
$this->set("CloseProxyBuffering", $closeProxyBuffering);
}
}
Loading
Loading