diff --git a/VERSION b/VERSION index 2080591..0b9c019 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.11 +0.3.12 diff --git a/src/ULB/Apis/AddSSLBindingRequest.php b/src/ULB/Apis/AddSSLBindingRequest.php index d6a2765..1f2057b 100644 --- a/src/ULB/Apis/AddSSLBindingRequest.php +++ b/src/ULB/Apis/AddSSLBindingRequest.php @@ -1,6 +1,6 @@ set("Quantity", $quantity); } + /** + * SecGroups: + * + * @return CreateLoadBalancerParamSecGroups[]|null + */ + public function getSecGroups() + { + $items = $this->get("SecGroups"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new CreateLoadBalancerParamSecGroups($item)); + } + return $result; + } + + /** + * SecGroups: + * + * @param CreateLoadBalancerParamSecGroups[] $secGroups + */ + public function setSecGroups(array $secGroups) + { + $result = []; + foreach ($secGroups as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * LabelInfos: + * + * @return CreateLoadBalancerParamLabelInfos[]|null + */ + public function getLabelInfos() + { + $items = $this->get("LabelInfos"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new CreateLoadBalancerParamLabelInfos($item)); + } + return $result; + } + + /** + * LabelInfos: + * + * @param CreateLoadBalancerParamLabelInfos[] $labelInfos + */ + public function setLabelInfos(array $labelInfos) + { + $result = []; + foreach ($labelInfos as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + /** * CouponId: 代金券code * diff --git a/src/ULB/Apis/CreateLoadBalancerResponse.php b/src/ULB/Apis/CreateLoadBalancerResponse.php index ac54618..9a5c8c4 100644 --- a/src/ULB/Apis/CreateLoadBalancerResponse.php +++ b/src/ULB/Apis/CreateLoadBalancerResponse.php @@ -1,6 +1,6 @@ set("Path", $path); } + + /** + * Method: (应用型专用)HTTP检查方法。当Type为HTTP时,此字段有意义,代表HTTP检查方法 + * + * @return string|null + */ + public function getMethod() + { + return $this->get("Method"); + } + + /** + * Method: (应用型专用)HTTP检查方法。当Type为HTTP时,此字段有意义,代表HTTP检查方法 + * + * @param string $method + */ + public function setMethod($method) + { + $this->set("Method", $method); + } + + /** + * ResponseCode: (应用型专用)GRPC检查响应码。当Type为GRPC时,此字段有意义,代表GRPC检查响应码 + * + * @return string|null + */ + public function getResponseCode() + { + return $this->get("ResponseCode"); + } + + /** + * ResponseCode: (应用型专用)GRPC检查响应码。当Type为GRPC时,此字段有意义,代表GRPC检查响应码 + * + * @param string $responseCode + */ + public function setResponseCode($responseCode) + { + $this->set("ResponseCode", $responseCode); + } } diff --git a/src/ULB/Models/HostConfigSet.php b/src/ULB/Models/HostConfigSet.php index 89bd531..cef2d62 100644 --- a/src/ULB/Models/HostConfigSet.php +++ b/src/ULB/Models/HostConfigSet.php @@ -1,6 +1,6 @@ set("AutoRenewEnabled", $autoRenewEnabled); } + + /** + * SecGroup: 安全组信息 + * + * @return SecGroupInfo[]|null + */ + public function getSecGroup() + { + $items = $this->get("SecGroup"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new SecGroupInfo($item)); + } + return $result; + } + + /** + * SecGroup: 安全组信息 + * + * @param SecGroupInfo[] $secGroup + */ + public function setSecGroup(array $secGroup) + { + $result = []; + foreach ($secGroup as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } } diff --git a/src/ULB/Models/LoggerSet.php b/src/ULB/Models/LoggerSet.php index 3bef982..d4d727e 100644 --- a/src/ULB/Models/LoggerSet.php +++ b/src/ULB/Models/LoggerSet.php @@ -1,6 +1,6 @@ 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); + } + + /** + * 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/ULB/Models/SecurityPolicy.php b/src/ULB/Models/SecurityPolicy.php index a5705f9..ec64d66 100644 --- a/src/ULB/Models/SecurityPolicy.php +++ b/src/ULB/Models/SecurityPolicy.php @@ -1,6 +1,6 @@ set("Path", $path); } + + /** + * Method: (应用型专用)HTTP检查方法。只支持GET和HEAD。 + * + * @return string|null + */ + public function getMethod() + { + return $this->get("Method"); + } + + /** + * Method: (应用型专用)HTTP检查方法。只支持GET和HEAD。 + * + * @param string $method + */ + public function setMethod($method) + { + $this->set("Method", $method); + } + + /** + * ResponseCode: (应用型专用)GRPC检查响应码 + * + * @return string|null + */ + public function getResponseCode() + { + return $this->get("ResponseCode"); + } + + /** + * ResponseCode: (应用型专用)GRPC检查响应码 + * + * @param string $responseCode + */ + public function setResponseCode($responseCode) + { + $this->set("ResponseCode", $responseCode); + } } diff --git a/src/ULB/Params/CreateListenerParamStickinessConfig.php b/src/ULB/Params/CreateListenerParamStickinessConfig.php index 94ff6a0..457e4f2 100644 --- a/src/ULB/Params/CreateListenerParamStickinessConfig.php +++ b/src/ULB/Params/CreateListenerParamStickinessConfig.php @@ -1,6 +1,6 @@ get("Key"); + } + + /** + * Key: 标签键 + * + * @param string $key + */ + public function setKey($key) + { + $this->set("Key", $key); + } + + /** + * Value: 标签值 + * + * @return string|null + */ + public function getValue() + { + return $this->get("Value"); + } + + /** + * Value: 标签值 + * + * @param string $value + */ + public function setValue($value) + { + $this->set("Value", $value); + } +} diff --git a/src/ULB/Params/CreateLoadBalancerParamSecGroups.php b/src/ULB/Params/CreateLoadBalancerParamSecGroups.php new file mode 100644 index 0000000..7d92553 --- /dev/null +++ b/src/ULB/Params/CreateLoadBalancerParamSecGroups.php @@ -0,0 +1,64 @@ +get("SecGroupId"); + } + + /** + * SecGroupId: 安全组id + * + * @param string $secGroupId + */ + public function setSecGroupId($secGroupId) + { + $this->set("SecGroupId", $secGroupId); + } + + /** + * 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/ULB/Params/CreateRuleParamRuleActions.php b/src/ULB/Params/CreateRuleParamRuleActions.php index b89aa64..b815956 100644 --- a/src/ULB/Params/CreateRuleParamRuleActions.php +++ b/src/ULB/Params/CreateRuleParamRuleActions.php @@ -1,6 +1,6 @@ set("Path", $path); } + + /** + * Method: (应用型专用)HTTP检查方法。只支持GET和HEAD。 + * + * @return string|null + */ + public function getMethod() + { + return $this->get("Method"); + } + + /** + * Method: (应用型专用)HTTP检查方法。只支持GET和HEAD。 + * + * @param string $method + */ + public function setMethod($method) + { + $this->set("Method", $method); + } + + /** + * ResponseCode: (应用型专用)GRPC检查响应码 + * + * @return string|null + */ + public function getResponseCode() + { + return $this->get("ResponseCode"); + } + + /** + * ResponseCode: (应用型专用)GRPC检查响应码 + * + * @param string $responseCode + */ + public function setResponseCode($responseCode) + { + $this->set("ResponseCode", $responseCode); + } } diff --git a/src/ULB/Params/UpdateListenerAttributeParamStickinessConfig.php b/src/ULB/Params/UpdateListenerAttributeParamStickinessConfig.php index 9b48e55..969e0c0 100644 --- a/src/ULB/Params/UpdateListenerAttributeParamStickinessConfig.php +++ b/src/ULB/Params/UpdateListenerAttributeParamStickinessConfig.php @@ -1,6 +1,6 @@ (object) [ * "Enabled" => (boolean) 是否开启健康检查功能。暂时不支持关闭。默认值为:true - * "Type" => (string) 健康检查方式。应用型限定取值:“Port”/"HTTP",默认值:“Port” + * "Type" => (string) 健康检查方式。应用型限定取值:“Port”/"HTTP/GRPC",默认值:“Port” * "Domain" => (string) (应用型专用)HTTP检查域名 * "Path" => (string) (应用型专用)HTTP检查路径 + * "Method" => (string) (应用型专用)HTTP检查方法。只支持GET和HEAD。 + * "ResponseCode" => (string) (应用型专用)GRPC检查响应码 * ] * "CompressionEnabled" => (boolean) (应用型专用)是否开启数据压缩功能。目前只支持使用gzip对特定文件类型进行压缩。默认值为:false * "HTTP2Enabled" => (boolean) (应用型专用)是否开启HTTP/2特性。仅HTTPS监听支持开启;默认值为:false @@ -343,6 +345,18 @@ public function createListener(CreateListenerRequest $request = null) * "IPVersion" => (string) 负载均衡实例的IP协议。限定枚举值:"IPv4" / "IPv6"/"DualStack",默认值为:“IPv4” * "ChargeType" => (string) 付费模式。限定枚举值:"Year" / "Month"/"Day"/"Dynamic",默认值为:“Month” * "Quantity" => (integer) 购买的时长, 默认: 1; 0-> 购买至月末(0只在月付费有效,其余付费模式传0,实际收费按一个周期计费) + * "SecGroups" => (array) [ + * [ + * "SecGroupId" => (string) 安全组id + * "Priority" => (integer) 安全组优先级 + * ] + * ] + * "LabelInfos" => (array) [ + * [ + * "Key" => (string) 标签键 + * "Value" => (string) 标签值 + * ] + * ] * "CouponId" => (string) 代金券code * ] * @@ -917,6 +931,8 @@ public function deleteVServer(DeleteVServerRequest $request = null) * "Type" => (string) 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查; 默认值:Port * "Domain" => (string) (应用型专用)HTTP检查域名。 当Type为HTTP时,此字段有意义,代表HTTP检查域名 * "Path" => (string) (应用型专用)HTTP检查路径。当Type为HTTP时,此字段有意义,代表HTTP检查路径 + * "Method" => (string) (应用型专用)HTTP检查方法。当Type为HTTP时,此字段有意义,代表HTTP检查方法 + * "ResponseCode" => (string) (应用型专用)GRPC检查响应码。当Type为GRPC时,此字段有意义,代表GRPC检查响应码 * ] * "CompressionEnabled" => (boolean) (应用型专用)是否开启数据压缩功能。目前只支持使用gzip对特定文件类型进行压缩 * "HTTP2Enabled" => (boolean) (应用型专用)是否开启HTTP/2特性。仅HTTPS监听支持开启 @@ -1088,6 +1104,8 @@ public function describeListeners(DescribeListenersRequest $request = null) * "Type" => (string) 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查; 默认值:Port * "Domain" => (string) (应用型专用)HTTP检查域名。 当Type为HTTP时,此字段有意义,代表HTTP检查域名 * "Path" => (string) (应用型专用)HTTP检查路径。当Type为HTTP时,此字段有意义,代表HTTP检查路径 + * "Method" => (string) (应用型专用)HTTP检查方法。当Type为HTTP时,此字段有意义,代表HTTP检查方法 + * "ResponseCode" => (string) (应用型专用)GRPC检查响应码。当Type为GRPC时,此字段有意义,代表GRPC检查响应码 * ] * "CompressionEnabled" => (boolean) (应用型专用)是否开启数据压缩功能。目前只支持使用gzip对特定文件类型进行压缩 * "HTTP2Enabled" => (boolean) (应用型专用)是否开启HTTP/2特性。仅HTTPS监听支持开启 @@ -1167,6 +1185,14 @@ public function describeListeners(DescribeListenersRequest $request = null) * ] * "Status" => (string) lb状态:Normal-正常;Arrears-欠费停服 * "AutoRenewEnabled" => (boolean) 是否开启自动续费 + * "SecGroup" => (array) 安全组信息[ + * [ + * "SecgroupId" => (string) 安全组id + * "Name" => (string) 安全组名称 + * "VPCId" => (string) 安全组所属vpc id + * "Priority" => (integer) 优先级 + * ] + * ] * ] * ] * ] @@ -2077,7 +2103,7 @@ public function updateBackendBatch(UpdateBackendBatchRequest $request = null) * "Scheduler" => (string) 负载均衡算法。应用型限定取值:"Roundrobin"/"Source"/"WeightRoundrobin"/" Leastconn"/"Backup" * "StickinessConfig" => (object) [ * "Enabled" => (boolean) 是否开启会话保持功能。应用型负载均衡实例基于Cookie实现,网络型负载均衡则基于源IP,保证在对应的空闲超时时间内,同一个源IP送到同一个服务节点。默认值为:false - * "Type" => (string) (应用型专用)Cookie处理方式。限定枚举值:"ServerInsert" / "UserDefined",默认值为:“ServerInsert” + * "Type" => (string) (应用型专用)Cookie处理方式。限定枚举值:"ServerInsert" / "UserDefined",不传值则不修改 * "CookieName" => (string) (应用型专用)自定义Cookie。当StickinessType取值"UserDefined"时有效;限定字符长度:[0-255] * ] * "HealthCheckConfig" => (object) [ @@ -2085,6 +2111,8 @@ public function updateBackendBatch(UpdateBackendBatchRequest $request = null) * "Type" => (string) 健康检查方式。应用型限定取值:“Port”/"HTTP";默认值:“Port” * "Domain" => (string) (应用型专用)HTTP检查域名 * "Path" => (string) (应用型专用)HTTP检查路径 + * "Method" => (string) (应用型专用)HTTP检查方法。只支持GET和HEAD。 + * "ResponseCode" => (string) (应用型专用)GRPC检查响应码 * ] * "CompressionEnabled" => (boolean) (应用型专用)是否开启数据压缩功能。目前只支持使用gzip对特定文件类型进行压缩 * "HTTP2Enabled" => (boolean) (应用型专用)是否开启HTTP/2特性。仅HTTPS监听支持开启