Skip to content

Commit c9af95e

Browse files
release 3.0.93
1 parent 7116495 commit c9af95e

File tree

73 files changed

+3488
-169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+3488
-169
lines changed

src/TencentCloud/Clb/V20180317/ClbClient.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@
2323

2424
/**
2525
* @method Models\AutoRewriteResponse AutoRewrite(Models\AutoRewriteRequest $req) 用户需要先创建出一个HTTPS:443监听器,并在其下创建转发规则。通过调用本接口,系统会自动创建出一个HTTP:80监听器(如果之前不存在),并在其下创建转发规则,与HTTPS:443监听器下的Domains(在入参中指定)对应。创建成功后可以通过HTTP:80地址自动跳转为HTTPS:443地址进行访问。
26+
* @method Models\BatchDeregisterTargetsResponse BatchDeregisterTargets(Models\BatchDeregisterTargetsRequest $req) 批量解绑四七层后端服务。
2627
* @method Models\BatchModifyTargetWeightResponse BatchModifyTargetWeight(Models\BatchModifyTargetWeightRequest $req) BatchModifyTargetWeight接口用于批量修改负载均衡监听器绑定的后端机器的转发权重,暂时只支持HTTP/HTTPS监听器。不支持传统型负载均衡。
2728
本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
29+
* @method Models\BatchRegisterTargetsResponse BatchRegisterTargets(Models\BatchRegisterTargetsRequest $req) 批量绑定虚拟主机或弹性网卡,支持跨域绑定,只支持四层(TCP、UDP)协议绑定。
2830
* @method Models\CreateListenerResponse CreateListener(Models\CreateListenerRequest $req) 在一个负载均衡实例下创建监听器。
2931
本接口为异步接口,接口返回成功后,需以返回的 RequestId 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
30-
* @method Models\CreateLoadBalancerResponse CreateLoadBalancer(Models\CreateLoadBalancerRequest $req) CreateLoadBalancer 接口用来创建负载均衡实例。为了使用负载均衡服务,您必须购买一个或多个负载均衡实例。成功调用该接口后,会返回负载均衡实例的唯一 ID。负载均衡实例的类型分为:公网、内网。详情可参考产品说明中的产品类型。
32+
* @method Models\CreateLoadBalancerResponse CreateLoadBalancer(Models\CreateLoadBalancerRequest $req) CreateLoadBalancer 接口用来创建负载均衡实例(本接口只支持购买按量计费的负载均衡,包年包月的负载均衡请通过控制台购买)。为了使用负载均衡服务,您必须购买一个或多个负载均衡实例。成功调用该接口后,会返回负载均衡实例的唯一 ID。负载均衡实例的类型分为:公网、内网。详情可参考产品说明中的产品类型。
3133
注意:(1)指定可用区申请负载均衡、跨zone容灾【如需使用,请提交工单( https://console.cloud.tencent.com/workorder/category )申请】;(2)目前只有北京、上海、广州支持IPv6;
3234
本接口为异步接口,接口成功返回后,可使用 DescribeLoadBalancers 接口查询负载均衡实例的状态(如创建中、正常),以确定是否创建成功。
3335
* @method Models\CreateRuleResponse CreateRule(Models\CreateRuleRequest $req) CreateRule 接口用于在一个已存在的负载均衡七层监听器下创建转发规则,七层监听器中,后端服务必须绑定到规则上而非监听器上。
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<?php
2+
/*
3+
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
namespace TencentCloud\Clb\V20180317\Models;
18+
use TencentCloud\Common\AbstractModel;
19+
20+
/**
21+
* @method string getLoadBalancerId() 获取负载均衡ID
22+
* @method void setLoadBalancerId(string $LoadBalancerId) 设置负载均衡ID
23+
* @method array getTargets() 获取解绑目标
24+
* @method void setTargets(array $Targets) 设置解绑目标
25+
*/
26+
27+
/**
28+
*BatchDeregisterTargets请求参数结构体
29+
*/
30+
class BatchDeregisterTargetsRequest extends AbstractModel
31+
{
32+
/**
33+
* @var string 负载均衡ID
34+
*/
35+
public $LoadBalancerId;
36+
37+
/**
38+
* @var array 解绑目标
39+
*/
40+
public $Targets;
41+
/**
42+
* @param string $LoadBalancerId 负载均衡ID
43+
* @param array $Targets 解绑目标
44+
*/
45+
function __construct()
46+
{
47+
48+
}
49+
/**
50+
* 内部实现,用户禁止调用
51+
*/
52+
public function deserialize($param)
53+
{
54+
if ($param === null) {
55+
return;
56+
}
57+
if (array_key_exists("LoadBalancerId",$param) and $param["LoadBalancerId"] !== null) {
58+
$this->LoadBalancerId = $param["LoadBalancerId"];
59+
}
60+
61+
if (array_key_exists("Targets",$param) and $param["Targets"] !== null) {
62+
$this->Targets = [];
63+
foreach ($param["Targets"] as $key => $value){
64+
$obj = new BatchTarget();
65+
$obj->deserialize($value);
66+
array_push($this->Targets, $obj);
67+
}
68+
}
69+
}
70+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<?php
2+
/*
3+
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
namespace TencentCloud\Clb\V20180317\Models;
18+
use TencentCloud\Common\AbstractModel;
19+
20+
/**
21+
* @method array getFailListenerIdSet() 获取解绑失败的监听器ID
22+
* @method void setFailListenerIdSet(array $FailListenerIdSet) 设置解绑失败的监听器ID
23+
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
24+
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
25+
*/
26+
27+
/**
28+
*BatchDeregisterTargets返回参数结构体
29+
*/
30+
class BatchDeregisterTargetsResponse extends AbstractModel
31+
{
32+
/**
33+
* @var array 解绑失败的监听器ID
34+
*/
35+
public $FailListenerIdSet;
36+
37+
/**
38+
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
39+
*/
40+
public $RequestId;
41+
/**
42+
* @param array $FailListenerIdSet 解绑失败的监听器ID
43+
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
44+
*/
45+
function __construct()
46+
{
47+
48+
}
49+
/**
50+
* 内部实现,用户禁止调用
51+
*/
52+
public function deserialize($param)
53+
{
54+
if ($param === null) {
55+
return;
56+
}
57+
if (array_key_exists("FailListenerIdSet",$param) and $param["FailListenerIdSet"] !== null) {
58+
$this->FailListenerIdSet = $param["FailListenerIdSet"];
59+
}
60+
61+
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
62+
$this->RequestId = $param["RequestId"];
63+
}
64+
}
65+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<?php
2+
/*
3+
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
namespace TencentCloud\Clb\V20180317\Models;
18+
use TencentCloud\Common\AbstractModel;
19+
20+
/**
21+
* @method string getLoadBalancerId() 获取负载均衡ID
22+
* @method void setLoadBalancerId(string $LoadBalancerId) 设置负载均衡ID
23+
* @method array getTargets() 获取绑定目标
24+
* @method void setTargets(array $Targets) 设置绑定目标
25+
*/
26+
27+
/**
28+
*BatchRegisterTargets请求参数结构体
29+
*/
30+
class BatchRegisterTargetsRequest extends AbstractModel
31+
{
32+
/**
33+
* @var string 负载均衡ID
34+
*/
35+
public $LoadBalancerId;
36+
37+
/**
38+
* @var array 绑定目标
39+
*/
40+
public $Targets;
41+
/**
42+
* @param string $LoadBalancerId 负载均衡ID
43+
* @param array $Targets 绑定目标
44+
*/
45+
function __construct()
46+
{
47+
48+
}
49+
/**
50+
* 内部实现,用户禁止调用
51+
*/
52+
public function deserialize($param)
53+
{
54+
if ($param === null) {
55+
return;
56+
}
57+
if (array_key_exists("LoadBalancerId",$param) and $param["LoadBalancerId"] !== null) {
58+
$this->LoadBalancerId = $param["LoadBalancerId"];
59+
}
60+
61+
if (array_key_exists("Targets",$param) and $param["Targets"] !== null) {
62+
$this->Targets = [];
63+
foreach ($param["Targets"] as $key => $value){
64+
$obj = new BatchTarget();
65+
$obj->deserialize($value);
66+
array_push($this->Targets, $obj);
67+
}
68+
}
69+
}
70+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<?php
2+
/*
3+
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
namespace TencentCloud\Clb\V20180317\Models;
18+
use TencentCloud\Common\AbstractModel;
19+
20+
/**
21+
* @method array getFailListenerIdSet() 获取绑定失败的监听器ID,如为空表示全部绑定成功。
22+
注意:此字段可能返回 null,表示取不到有效值。
23+
* @method void setFailListenerIdSet(array $FailListenerIdSet) 设置绑定失败的监听器ID,如为空表示全部绑定成功。
24+
注意:此字段可能返回 null,表示取不到有效值。
25+
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
26+
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
27+
*/
28+
29+
/**
30+
*BatchRegisterTargets返回参数结构体
31+
*/
32+
class BatchRegisterTargetsResponse extends AbstractModel
33+
{
34+
/**
35+
* @var array 绑定失败的监听器ID,如为空表示全部绑定成功。
36+
注意:此字段可能返回 null,表示取不到有效值。
37+
*/
38+
public $FailListenerIdSet;
39+
40+
/**
41+
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
42+
*/
43+
public $RequestId;
44+
/**
45+
* @param array $FailListenerIdSet 绑定失败的监听器ID,如为空表示全部绑定成功。
46+
注意:此字段可能返回 null,表示取不到有效值。
47+
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
48+
*/
49+
function __construct()
50+
{
51+
52+
}
53+
/**
54+
* 内部实现,用户禁止调用
55+
*/
56+
public function deserialize($param)
57+
{
58+
if ($param === null) {
59+
return;
60+
}
61+
if (array_key_exists("FailListenerIdSet",$param) and $param["FailListenerIdSet"] !== null) {
62+
$this->FailListenerIdSet = $param["FailListenerIdSet"];
63+
}
64+
65+
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
66+
$this->RequestId = $param["RequestId"];
67+
}
68+
}
69+
}

0 commit comments

Comments
 (0)