Class: TencentCloud::Clb::V20180317::Client
- Inherits:
-
TencentCloud::Common::AbstractClient
- Object
- TencentCloud::Common::AbstractClient
- TencentCloud::Clb::V20180317::Client
- Defined in:
- lib/v20180317/client.rb
Instance Method Summary collapse
-
#AddCustomizedConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::AddCustomizedConfigResponse`.
-
#AssociateCustomizedConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::AssociateCustomizedConfigResponse`.
-
#AssociateTargetGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::AssociateTargetGroupsResponse`.
-
#AutoRewrite(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::AutoRewriteResponse`.
-
#BatchDeregisterTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::BatchDeregisterTargetsResponse`.
-
#BatchModifyTargetTag(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::BatchModifyTargetTagResponse`.
-
#BatchModifyTargetWeight(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::BatchModifyTargetWeightResponse`.
-
#BatchRegisterTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::BatchRegisterTargetsResponse`.
-
#CloneLoadBalancer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::CloneLoadBalancerResponse`.
-
#CreateClsLogSet(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::CreateClsLogSetResponse`.
-
#CreateListener(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::CreateListenerResponse`.
-
#CreateLoadBalancer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::CreateLoadBalancerResponse`.
-
#CreateLoadBalancerSnatIps(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::CreateLoadBalancerSnatIpsResponse`.
-
#CreateRule(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::CreateRuleResponse`.
-
#CreateTargetGroup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::CreateTargetGroupResponse`.
-
#CreateTopic(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::CreateTopicResponse`.
-
#DeleteCustomizedConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteCustomizedConfigResponse`.
-
#DeleteListener(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteListenerResponse`.
-
#DeleteLoadBalancer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteLoadBalancerResponse`.
-
#DeleteLoadBalancerListeners(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteLoadBalancerListenersResponse`.
-
#DeleteLoadBalancerSnatIps(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteLoadBalancerSnatIpsResponse`.
-
#DeleteRewrite(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteRewriteResponse`.
-
#DeleteRule(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteRuleResponse`.
-
#DeleteTargetGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteTargetGroupsResponse`.
-
#DeregisterFunctionTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeregisterFunctionTargetsResponse`.
-
#DeregisterTargetGroupInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeregisterTargetGroupInstancesResponse`.
-
#DeregisterTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeregisterTargetsResponse`.
-
#DeregisterTargetsFromClassicalLB(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeregisterTargetsFromClassicalLBResponse`.
-
#DescribeBlockIPList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeBlockIPListResponse`.
-
#DescribeBlockIPTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeBlockIPTaskResponse`.
-
#DescribeClassicalLBByInstanceId(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeClassicalLBByInstanceIdResponse`.
-
#DescribeClassicalLBHealthStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeClassicalLBHealthStatusResponse`.
-
#DescribeClassicalLBListeners(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeClassicalLBListenersResponse`.
-
#DescribeClassicalLBTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeClassicalLBTargetsResponse`.
-
#DescribeClsLogSet(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeClsLogSetResponse`.
-
#DescribeClusterResources(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeClusterResourcesResponse`.
-
#DescribeCrossTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeCrossTargetsResponse`.
-
#DescribeCustomizedConfigAssociateList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeCustomizedConfigAssociateListResponse`.
-
#DescribeCustomizedConfigList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeCustomizedConfigListResponse`.
-
#DescribeExclusiveClusters(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeExclusiveClustersResponse`.
-
#DescribeIdleLoadBalancers(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeIdleLoadBalancersResponse`.
-
#DescribeLBListeners(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLBListenersResponse`.
-
#DescribeLBOperateProtect(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLBOperateProtectResponse`.
-
#DescribeListeners(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeListenersResponse`.
-
#DescribeLoadBalancerListByCertId(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLoadBalancerListByCertIdResponse`.
-
#DescribeLoadBalancerOverview(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLoadBalancerOverviewResponse`.
-
#DescribeLoadBalancers(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLoadBalancersResponse`.
-
#DescribeLoadBalancersDetail(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLoadBalancersDetailResponse`.
-
#DescribeLoadBalancerTraffic(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLoadBalancerTrafficResponse`.
-
#DescribeQuota(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeQuotaResponse`.
-
#DescribeResources(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeResourcesResponse`.
-
#DescribeRewrite(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeRewriteResponse`.
-
#DescribeTargetGroupInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeTargetGroupInstancesResponse`.
-
#DescribeTargetGroupList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeTargetGroupListResponse`.
-
#DescribeTargetGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeTargetGroupsResponse`.
-
#DescribeTargetHealth(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeTargetHealthResponse`.
-
#DescribeTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeTargetsResponse`.
-
#DescribeTaskStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeTaskStatusResponse`.
-
#DisassociateCustomizedConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DisassociateCustomizedConfigResponse`.
-
#DisassociateTargetGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DisassociateTargetGroupsResponse`.
-
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#InquiryPriceCreateLoadBalancer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::InquiryPriceCreateLoadBalancerResponse`.
-
#InquiryPriceModifyLoadBalancer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::InquiryPriceModifyLoadBalancerResponse`.
-
#InquiryPriceRefundLoadBalancer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::InquiryPriceRefundLoadBalancerResponse`.
-
#InquiryPriceRenewLoadBalancer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::InquiryPriceRenewLoadBalancerResponse`.
-
#ManualRewrite(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ManualRewriteResponse`.
-
#MigrateClassicalLoadBalancers(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::MigrateClassicalLoadBalancersResponse`.
-
#ModifyBlockIPList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyBlockIPListResponse`.
-
#ModifyCustomizedConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyCustomizedConfigResponse`.
-
#ModifyDomain(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyDomainResponse`.
-
#ModifyDomainAttributes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyDomainAttributesResponse`.
-
#ModifyFunctionTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyFunctionTargetsResponse`.
-
#ModifyListener(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyListenerResponse`.
-
#ModifyLoadBalancerAttributes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyLoadBalancerAttributesResponse`.
-
#ModifyLoadBalancerMixIpTarget(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyLoadBalancerMixIpTargetResponse`.
-
#ModifyLoadBalancerSla(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyLoadBalancerSlaResponse`.
-
#ModifyLoadBalancersProject(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyLoadBalancersProjectResponse`.
-
#ModifyRule(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyRuleResponse`.
-
#ModifyTargetGroupAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyTargetGroupAttributeResponse`.
-
#ModifyTargetGroupInstancesPort(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyTargetGroupInstancesPortResponse`.
-
#ModifyTargetGroupInstancesWeight(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyTargetGroupInstancesWeightResponse`.
-
#ModifyTargetPort(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyTargetPortResponse`.
-
#ModifyTargetWeight(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyTargetWeightResponse`.
-
#RegisterFunctionTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::RegisterFunctionTargetsResponse`.
-
#RegisterTargetGroupInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::RegisterTargetGroupInstancesResponse`.
-
#RegisterTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::RegisterTargetsResponse`.
-
#RegisterTargetsWithClassicalLB(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::RegisterTargetsWithClassicalLBResponse`.
-
#ReplaceCertForLoadBalancers(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ReplaceCertForLoadBalancersResponse`.
-
#SetCustomizedConfigForLoadBalancer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::SetCustomizedConfigForLoadBalancerResponse`.
-
#SetLoadBalancerClsLog(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::SetLoadBalancerClsLogResponse`.
-
#SetLoadBalancerSecurityGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::SetLoadBalancerSecurityGroupsResponse`.
-
#SetLoadBalancerStartStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::SetLoadBalancerStartStatusResponse`.
-
#SetSecurityGroupForLoadbalancers(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::SetSecurityGroupForLoadbalancersResponse`.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20180317/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2018-03-17' api_endpoint = 'clb.tencentcloudapi.com' sdk_version = 'CLB_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#AddCustomizedConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::AddCustomizedConfigResponse`
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/v20180317/client.rb', line 37 def AddCustomizedConfig(request) body = send_request('AddCustomizedConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AddCustomizedConfigResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#AssociateCustomizedConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::AssociateCustomizedConfigResponse`
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/v20180317/client.rb', line 61 def AssociateCustomizedConfig(request) body = send_request('AssociateCustomizedConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AssociateCustomizedConfigResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#AssociateTargetGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::AssociateTargetGroupsResponse`
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/v20180317/client.rb', line 90 def AssociateTargetGroups(request) body = send_request('AssociateTargetGroups', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AssociateTargetGroupsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#AutoRewrite(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::AutoRewriteResponse`
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/v20180317/client.rb', line 115 def AutoRewrite(request) body = send_request('AutoRewrite', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AutoRewriteResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#BatchDeregisterTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::BatchDeregisterTargetsResponse`
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'lib/v20180317/client.rb', line 139 def BatchDeregisterTargets(request) body = send_request('BatchDeregisterTargets', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BatchDeregisterTargetsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#BatchModifyTargetTag(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::BatchModifyTargetTagResponse`
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 |
# File 'lib/v20180317/client.rb', line 163 def BatchModifyTargetTag(request) body = send_request('BatchModifyTargetTag', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BatchModifyTargetTagResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#BatchModifyTargetWeight(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::BatchModifyTargetWeightResponse`
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 |
# File 'lib/v20180317/client.rb', line 187 def BatchModifyTargetWeight(request) body = send_request('BatchModifyTargetWeight', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BatchModifyTargetWeightResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#BatchRegisterTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::BatchRegisterTargetsResponse`
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 |
# File 'lib/v20180317/client.rb', line 211 def BatchRegisterTargets(request) body = send_request('BatchRegisterTargets', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BatchRegisterTargetsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CloneLoadBalancer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::CloneLoadBalancerResponse`
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 |
# File 'lib/v20180317/client.rb', line 255 def CloneLoadBalancer(request) body = send_request('CloneLoadBalancer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CloneLoadBalancerResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateClsLogSet(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::CreateClsLogSetResponse`
279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 |
# File 'lib/v20180317/client.rb', line 279 def CreateClsLogSet(request) body = send_request('CreateClsLogSet', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateClsLogSetResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateListener(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::CreateListenerResponse`
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 |
# File 'lib/v20180317/client.rb', line 304 def CreateListener(request) body = send_request('CreateListener', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateListenerResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateLoadBalancer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::CreateLoadBalancerResponse`
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 |
# File 'lib/v20180317/client.rb', line 330 def CreateLoadBalancer(request) body = send_request('CreateLoadBalancer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateLoadBalancerResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateLoadBalancerSnatIps(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::CreateLoadBalancerSnatIpsResponse`
355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 |
# File 'lib/v20180317/client.rb', line 355 def CreateLoadBalancerSnatIps(request) body = send_request('CreateLoadBalancerSnatIps', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateLoadBalancerSnatIpsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateRule(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::CreateRuleResponse`
380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 |
# File 'lib/v20180317/client.rb', line 380 def CreateRule(request) body = send_request('CreateRule', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateRuleResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateTargetGroup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::CreateTargetGroupResponse`
404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 |
# File 'lib/v20180317/client.rb', line 404 def CreateTargetGroup(request) body = send_request('CreateTargetGroup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateTargetGroupResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateTopic(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::CreateTopicResponse`
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 |
# File 'lib/v20180317/client.rb', line 428 def CreateTopic(request) body = send_request('CreateTopic', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateTopicResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteCustomizedConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteCustomizedConfigResponse`
452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 |
# File 'lib/v20180317/client.rb', line 452 def DeleteCustomizedConfig(request) body = send_request('DeleteCustomizedConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteCustomizedConfigResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteListener(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteListenerResponse`
477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 |
# File 'lib/v20180317/client.rb', line 477 def DeleteListener(request) body = send_request('DeleteListener', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteListenerResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteLoadBalancer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteLoadBalancerResponse`
502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 |
# File 'lib/v20180317/client.rb', line 502 def DeleteLoadBalancer(request) body = send_request('DeleteLoadBalancer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteLoadBalancerResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteLoadBalancerListeners(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteLoadBalancerListenersResponse`
527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 |
# File 'lib/v20180317/client.rb', line 527 def DeleteLoadBalancerListeners(request) body = send_request('DeleteLoadBalancerListeners', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteLoadBalancerListenersResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteLoadBalancerSnatIps(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteLoadBalancerSnatIpsResponse`
552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 |
# File 'lib/v20180317/client.rb', line 552 def DeleteLoadBalancerSnatIps(request) body = send_request('DeleteLoadBalancerSnatIps', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteLoadBalancerSnatIpsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteRewrite(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteRewriteResponse`
577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 |
# File 'lib/v20180317/client.rb', line 577 def DeleteRewrite(request) body = send_request('DeleteRewrite', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteRewriteResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteRule(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteRuleResponse`
602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 |
# File 'lib/v20180317/client.rb', line 602 def DeleteRule(request) body = send_request('DeleteRule', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteRuleResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteTargetGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteTargetGroupsResponse`
626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 |
# File 'lib/v20180317/client.rb', line 626 def DeleteTargetGroups(request) body = send_request('DeleteTargetGroups', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteTargetGroupsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeregisterFunctionTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeregisterFunctionTargetsResponse`
661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 |
# File 'lib/v20180317/client.rb', line 661 def DeregisterFunctionTargets(request) body = send_request('DeregisterFunctionTargets', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeregisterFunctionTargetsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeregisterTargetGroupInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeregisterTargetGroupInstancesResponse`
686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 |
# File 'lib/v20180317/client.rb', line 686 def DeregisterTargetGroupInstances(request) body = send_request('DeregisterTargetGroupInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeregisterTargetGroupInstancesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeregisterTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeregisterTargetsResponse`
711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 |
# File 'lib/v20180317/client.rb', line 711 def DeregisterTargets(request) body = send_request('DeregisterTargets', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeregisterTargetsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeregisterTargetsFromClassicalLB(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DeregisterTargetsFromClassicalLBResponse`
735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 |
# File 'lib/v20180317/client.rb', line 735 def DeregisterTargetsFromClassicalLB(request) body = send_request('DeregisterTargetsFromClassicalLB', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeregisterTargetsFromClassicalLBResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeBlockIPList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeBlockIPListResponse`
759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 |
# File 'lib/v20180317/client.rb', line 759 def DescribeBlockIPList(request) body = send_request('DescribeBlockIPList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBlockIPListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeBlockIPTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeBlockIPTaskResponse`
783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 |
# File 'lib/v20180317/client.rb', line 783 def DescribeBlockIPTask(request) body = send_request('DescribeBlockIPTask', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBlockIPTaskResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeClassicalLBByInstanceId(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeClassicalLBByInstanceIdResponse`
807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 |
# File 'lib/v20180317/client.rb', line 807 def DescribeClassicalLBByInstanceId(request) body = send_request('DescribeClassicalLBByInstanceId', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeClassicalLBByInstanceIdResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeClassicalLBHealthStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeClassicalLBHealthStatusResponse`
831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 |
# File 'lib/v20180317/client.rb', line 831 def DescribeClassicalLBHealthStatus(request) body = send_request('DescribeClassicalLBHealthStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeClassicalLBHealthStatusResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeClassicalLBListeners(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeClassicalLBListenersResponse`
855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 |
# File 'lib/v20180317/client.rb', line 855 def DescribeClassicalLBListeners(request) body = send_request('DescribeClassicalLBListeners', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeClassicalLBListenersResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeClassicalLBTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeClassicalLBTargetsResponse`
879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 |
# File 'lib/v20180317/client.rb', line 879 def DescribeClassicalLBTargets(request) body = send_request('DescribeClassicalLBTargets', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeClassicalLBTargetsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeClsLogSet(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeClsLogSetResponse`
903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 |
# File 'lib/v20180317/client.rb', line 903 def DescribeClsLogSet(request) body = send_request('DescribeClsLogSet', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeClsLogSetResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeClusterResources(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeClusterResourcesResponse`
927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 |
# File 'lib/v20180317/client.rb', line 927 def DescribeClusterResources(request) body = send_request('DescribeClusterResources', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeClusterResourcesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeCrossTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeCrossTargetsResponse`
951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 |
# File 'lib/v20180317/client.rb', line 951 def DescribeCrossTargets(request) body = send_request('DescribeCrossTargets', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCrossTargetsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeCustomizedConfigAssociateList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeCustomizedConfigAssociateListResponse`
975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 |
# File 'lib/v20180317/client.rb', line 975 def DescribeCustomizedConfigAssociateList(request) body = send_request('DescribeCustomizedConfigAssociateList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCustomizedConfigAssociateListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeCustomizedConfigList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeCustomizedConfigListResponse`
999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 |
# File 'lib/v20180317/client.rb', line 999 def DescribeCustomizedConfigList(request) body = send_request('DescribeCustomizedConfigList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCustomizedConfigListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeExclusiveClusters(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeExclusiveClustersResponse`
1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 |
# File 'lib/v20180317/client.rb', line 1023 def DescribeExclusiveClusters(request) body = send_request('DescribeExclusiveClusters', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeExclusiveClustersResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeIdleLoadBalancers(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeIdleLoadBalancersResponse`
1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 |
# File 'lib/v20180317/client.rb', line 1047 def DescribeIdleLoadBalancers(request) body = send_request('DescribeIdleLoadBalancers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeIdleLoadBalancersResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeLBListeners(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLBListenersResponse`
1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 |
# File 'lib/v20180317/client.rb', line 1071 def DescribeLBListeners(request) body = send_request('DescribeLBListeners', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLBListenersResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeLBOperateProtect(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLBOperateProtectResponse`
1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 |
# File 'lib/v20180317/client.rb', line 1095 def DescribeLBOperateProtect(request) body = send_request('DescribeLBOperateProtect', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLBOperateProtectResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeListeners(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeListenersResponse`
1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 |
# File 'lib/v20180317/client.rb', line 1119 def DescribeListeners(request) body = send_request('DescribeListeners', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeListenersResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeLoadBalancerListByCertId(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLoadBalancerListByCertIdResponse`
1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 |
# File 'lib/v20180317/client.rb', line 1143 def DescribeLoadBalancerListByCertId(request) body = send_request('DescribeLoadBalancerListByCertId', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLoadBalancerListByCertIdResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeLoadBalancerOverview(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLoadBalancerOverviewResponse`
1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 |
# File 'lib/v20180317/client.rb', line 1167 def DescribeLoadBalancerOverview(request) body = send_request('DescribeLoadBalancerOverview', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLoadBalancerOverviewResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeLoadBalancers(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLoadBalancersResponse`
1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 |
# File 'lib/v20180317/client.rb', line 1215 def DescribeLoadBalancers(request) body = send_request('DescribeLoadBalancers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLoadBalancersResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeLoadBalancersDetail(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLoadBalancersDetailResponse`
1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 |
# File 'lib/v20180317/client.rb', line 1239 def DescribeLoadBalancersDetail(request) body = send_request('DescribeLoadBalancersDetail', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLoadBalancersDetailResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeLoadBalancerTraffic(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLoadBalancerTrafficResponse`
1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 |
# File 'lib/v20180317/client.rb', line 1191 def DescribeLoadBalancerTraffic(request) body = send_request('DescribeLoadBalancerTraffic', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLoadBalancerTrafficResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeQuota(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeQuotaResponse`
1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 |
# File 'lib/v20180317/client.rb', line 1263 def DescribeQuota(request) body = send_request('DescribeQuota', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeQuotaResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeResources(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeResourcesResponse`
1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 |
# File 'lib/v20180317/client.rb', line 1287 def DescribeResources(request) body = send_request('DescribeResources', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeResourcesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeRewrite(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeRewriteResponse`
1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 |
# File 'lib/v20180317/client.rb', line 1311 def DescribeRewrite(request) body = send_request('DescribeRewrite', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeRewriteResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeTargetGroupInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeTargetGroupInstancesResponse`
1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 |
# File 'lib/v20180317/client.rb', line 1335 def DescribeTargetGroupInstances(request) body = send_request('DescribeTargetGroupInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTargetGroupInstancesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeTargetGroupList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeTargetGroupListResponse`
1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 |
# File 'lib/v20180317/client.rb', line 1359 def DescribeTargetGroupList(request) body = send_request('DescribeTargetGroupList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTargetGroupListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeTargetGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeTargetGroupsResponse`
1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 |
# File 'lib/v20180317/client.rb', line 1383 def DescribeTargetGroups(request) body = send_request('DescribeTargetGroups', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTargetGroupsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeTargetHealth(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeTargetHealthResponse`
1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 |
# File 'lib/v20180317/client.rb', line 1407 def DescribeTargetHealth(request) body = send_request('DescribeTargetHealth', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTargetHealthResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeTargetsResponse`
1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 |
# File 'lib/v20180317/client.rb', line 1431 def DescribeTargets(request) body = send_request('DescribeTargets', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTargetsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeTaskStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeTaskStatusResponse`
1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 |
# File 'lib/v20180317/client.rb', line 1455 def DescribeTaskStatus(request) body = send_request('DescribeTaskStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTaskStatusResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DisassociateCustomizedConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DisassociateCustomizedConfigResponse`
1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 |
# File 'lib/v20180317/client.rb', line 1479 def DisassociateCustomizedConfig(request) body = send_request('DisassociateCustomizedConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DisassociateCustomizedConfigResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DisassociateTargetGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::DisassociateTargetGroupsResponse`
1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 |
# File 'lib/v20180317/client.rb', line 1505 def DisassociateTargetGroups(request) body = send_request('DisassociateTargetGroups', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DisassociateTargetGroupsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InquiryPriceCreateLoadBalancer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::InquiryPriceCreateLoadBalancerResponse`
1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 |
# File 'lib/v20180317/client.rb', line 1529 def InquiryPriceCreateLoadBalancer(request) body = send_request('InquiryPriceCreateLoadBalancer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquiryPriceCreateLoadBalancerResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InquiryPriceModifyLoadBalancer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::InquiryPriceModifyLoadBalancerResponse`
1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 |
# File 'lib/v20180317/client.rb', line 1553 def InquiryPriceModifyLoadBalancer(request) body = send_request('InquiryPriceModifyLoadBalancer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquiryPriceModifyLoadBalancerResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InquiryPriceRefundLoadBalancer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::InquiryPriceRefundLoadBalancerResponse`
1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 |
# File 'lib/v20180317/client.rb', line 1577 def InquiryPriceRefundLoadBalancer(request) body = send_request('InquiryPriceRefundLoadBalancer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquiryPriceRefundLoadBalancerResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InquiryPriceRenewLoadBalancer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::InquiryPriceRenewLoadBalancerResponse`
1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 |
# File 'lib/v20180317/client.rb', line 1601 def InquiryPriceRenewLoadBalancer(request) body = send_request('InquiryPriceRenewLoadBalancer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquiryPriceRenewLoadBalancerResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ManualRewrite(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ManualRewriteResponse`
1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 |
# File 'lib/v20180317/client.rb', line 1626 def ManualRewrite(request) body = send_request('ManualRewrite', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ManualRewriteResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#MigrateClassicalLoadBalancers(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::MigrateClassicalLoadBalancersResponse`
1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 |
# File 'lib/v20180317/client.rb', line 1651 def MigrateClassicalLoadBalancers(request) body = send_request('MigrateClassicalLoadBalancers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = MigrateClassicalLoadBalancersResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyBlockIPList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyBlockIPListResponse`
1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 |
# File 'lib/v20180317/client.rb', line 1676 def ModifyBlockIPList(request) body = send_request('ModifyBlockIPList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyBlockIPListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyCustomizedConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyCustomizedConfigResponse`
1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 |
# File 'lib/v20180317/client.rb', line 1700 def ModifyCustomizedConfig(request) body = send_request('ModifyCustomizedConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyCustomizedConfigResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyDomain(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyDomainResponse`
1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 |
# File 'lib/v20180317/client.rb', line 1725 def ModifyDomain(request) body = send_request('ModifyDomain', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyDomainResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyDomainAttributes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyDomainAttributesResponse`
1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 |
# File 'lib/v20180317/client.rb', line 1750 def ModifyDomainAttributes(request) body = send_request('ModifyDomainAttributes', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyDomainAttributesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyFunctionTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyFunctionTargetsResponse`
1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 |
# File 'lib/v20180317/client.rb', line 1776 def ModifyFunctionTargets(request) body = send_request('ModifyFunctionTargets', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyFunctionTargetsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyListener(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyListenerResponse`
1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 |
# File 'lib/v20180317/client.rb', line 1801 def ModifyListener(request) body = send_request('ModifyListener', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyListenerResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyLoadBalancerAttributes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyLoadBalancerAttributesResponse`
1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 |
# File 'lib/v20180317/client.rb', line 1827 def ModifyLoadBalancerAttributes(request) body = send_request('ModifyLoadBalancerAttributes', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyLoadBalancerAttributesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyLoadBalancerMixIpTarget(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyLoadBalancerMixIpTargetResponse`
1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 |
# File 'lib/v20180317/client.rb', line 1851 def ModifyLoadBalancerMixIpTarget(request) body = send_request('ModifyLoadBalancerMixIpTarget', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyLoadBalancerMixIpTargetResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyLoadBalancerSla(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyLoadBalancerSlaResponse`
1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 |
# File 'lib/v20180317/client.rb', line 1879 def ModifyLoadBalancerSla(request) body = send_request('ModifyLoadBalancerSla', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyLoadBalancerSlaResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyLoadBalancersProject(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyLoadBalancersProjectResponse`
1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 |
# File 'lib/v20180317/client.rb', line 1903 def ModifyLoadBalancersProject(request) body = send_request('ModifyLoadBalancersProject', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyLoadBalancersProjectResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyRule(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyRuleResponse`
1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 |
# File 'lib/v20180317/client.rb', line 1928 def ModifyRule(request) body = send_request('ModifyRule', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyRuleResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyTargetGroupAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyTargetGroupAttributeResponse`
1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 |
# File 'lib/v20180317/client.rb', line 1952 def ModifyTargetGroupAttribute(request) body = send_request('ModifyTargetGroupAttribute', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyTargetGroupAttributeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyTargetGroupInstancesPort(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyTargetGroupInstancesPortResponse`
1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 |
# File 'lib/v20180317/client.rb', line 1977 def ModifyTargetGroupInstancesPort(request) body = send_request('ModifyTargetGroupInstancesPort', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyTargetGroupInstancesPortResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyTargetGroupInstancesWeight(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyTargetGroupInstancesWeightResponse`
2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 |
# File 'lib/v20180317/client.rb', line 2002 def ModifyTargetGroupInstancesWeight(request) body = send_request('ModifyTargetGroupInstancesWeight', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyTargetGroupInstancesWeightResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyTargetPort(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyTargetPortResponse`
2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 |
# File 'lib/v20180317/client.rb', line 2027 def ModifyTargetPort(request) body = send_request('ModifyTargetPort', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyTargetPortResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyTargetWeight(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyTargetWeightResponse`
2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 |
# File 'lib/v20180317/client.rb', line 2052 def ModifyTargetWeight(request) body = send_request('ModifyTargetWeight', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyTargetWeightResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RegisterFunctionTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::RegisterFunctionTargetsResponse`
2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 |
# File 'lib/v20180317/client.rb', line 2087 def RegisterFunctionTargets(request) body = send_request('RegisterFunctionTargets', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RegisterFunctionTargetsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RegisterTargetGroupInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::RegisterTargetGroupInstancesResponse`
2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 |
# File 'lib/v20180317/client.rb', line 2112 def RegisterTargetGroupInstances(request) body = send_request('RegisterTargetGroupInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RegisterTargetGroupInstancesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RegisterTargets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::RegisterTargetsResponse`
2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 |
# File 'lib/v20180317/client.rb', line 2137 def RegisterTargets(request) body = send_request('RegisterTargets', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RegisterTargetsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RegisterTargetsWithClassicalLB(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::RegisterTargetsWithClassicalLBResponse`
2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 |
# File 'lib/v20180317/client.rb', line 2161 def RegisterTargetsWithClassicalLB(request) body = send_request('RegisterTargetsWithClassicalLB', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RegisterTargetsWithClassicalLBResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ReplaceCertForLoadBalancers(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::ReplaceCertForLoadBalancersResponse`
2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 |
# File 'lib/v20180317/client.rb', line 2188 def ReplaceCertForLoadBalancers(request) body = send_request('ReplaceCertForLoadBalancers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ReplaceCertForLoadBalancersResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#SetCustomizedConfigForLoadBalancer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::SetCustomizedConfigForLoadBalancerResponse`
2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 |
# File 'lib/v20180317/client.rb', line 2212 def SetCustomizedConfigForLoadBalancer(request) body = send_request('SetCustomizedConfigForLoadBalancer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SetCustomizedConfigForLoadBalancerResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#SetLoadBalancerClsLog(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::SetLoadBalancerClsLogResponse`
2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 |
# File 'lib/v20180317/client.rb', line 2236 def SetLoadBalancerClsLog(request) body = send_request('SetLoadBalancerClsLog', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SetLoadBalancerClsLogResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#SetLoadBalancerSecurityGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::SetLoadBalancerSecurityGroupsResponse`
2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 |
# File 'lib/v20180317/client.rb', line 2262 def SetLoadBalancerSecurityGroups(request) body = send_request('SetLoadBalancerSecurityGroups', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SetLoadBalancerSecurityGroupsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#SetLoadBalancerStartStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::SetLoadBalancerStartStatusResponse`
2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 |
# File 'lib/v20180317/client.rb', line 2288 def SetLoadBalancerStartStatus(request) body = send_request('SetLoadBalancerStartStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SetLoadBalancerStartStatusResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#SetSecurityGroupForLoadbalancers(request) ⇒ Object
@rtype: :class:‘Tencentcloud::clb::V20180317::SetSecurityGroupForLoadbalancersResponse`
2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 |
# File 'lib/v20180317/client.rb', line 2312 def SetSecurityGroupForLoadbalancers(request) body = send_request('SetSecurityGroupForLoadbalancers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SetSecurityGroupForLoadbalancersResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |