lib/v20220901/client.rb in tencentcloud-sdk-teo-3.0.480 vs lib/v20220901/client.rb in tencentcloud-sdk-teo-3.0.481
- old
+ new
@@ -195,34 +195,10 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
- # 创建 DNS 记录
-
- # @param request: Request instance for CreateDnsRecord.
- # @type request: :class:`Tencentcloud::teo::V20220901::CreateDnsRecordRequest`
- # @rtype: :class:`Tencentcloud::teo::V20220901::CreateDnsRecordResponse`
- def CreateDnsRecord(request)
- body = send_request('CreateDnsRecord', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = CreateDnsRecordResponse.new
- model.deserialize(response['Response'])
- model
- else
- code = response['Response']['Error']['Code']
- message = response['Response']['Error']['Message']
- reqid = response['Response']['RequestId']
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
- end
- rescue TencentCloud::Common::TencentCloudSDKException => e
- raise e
- rescue StandardError => e
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
- end
-
# 创建IP黑白名单列表
# @param request: Request instance for CreateIpTableList.
# @type request: :class:`Tencentcloud::teo::V20220901::CreateIpTableListRequest`
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateIpTableListResponse`
@@ -243,34 +219,10 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
- # 创建负载均衡
-
- # @param request: Request instance for CreateLoadBalancing.
- # @type request: :class:`Tencentcloud::teo::V20220901::CreateLoadBalancingRequest`
- # @rtype: :class:`Tencentcloud::teo::V20220901::CreateLoadBalancingResponse`
- def CreateLoadBalancing(request)
- body = send_request('CreateLoadBalancing', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = CreateLoadBalancingResponse.new
- model.deserialize(response['Response'])
- model
- else
- code = response['Response']['Error']['Code']
- message = response['Response']['Error']['Message']
- reqid = response['Response']['RequestId']
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
- end
- rescue TencentCloud::Common::TencentCloudSDKException => e
- raise e
- rescue StandardError => e
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
- end
-
# 本接口(CreateClsLog)用于创建CLS日志集。
# @param request: Request instance for CreateLogSet.
# @type request: :class:`Tencentcloud::teo::V20220901::CreateLogSetRequest`
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateLogSetResponse`
@@ -603,58 +555,10 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
- # 批量删除 DNS 记录
-
- # @param request: Request instance for DeleteDnsRecords.
- # @type request: :class:`Tencentcloud::teo::V20220901::DeleteDnsRecordsRequest`
- # @rtype: :class:`Tencentcloud::teo::V20220901::DeleteDnsRecordsResponse`
- def DeleteDnsRecords(request)
- body = send_request('DeleteDnsRecords', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = DeleteDnsRecordsResponse.new
- model.deserialize(response['Response'])
- model
- else
- code = response['Response']['Error']['Code']
- message = response['Response']['Error']['Message']
- reqid = response['Response']['RequestId']
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
- end
- rescue TencentCloud::Common::TencentCloudSDKException => e
- raise e
- rescue StandardError => e
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
- end
-
- # 删除负载均衡
-
- # @param request: Request instance for DeleteLoadBalancing.
- # @type request: :class:`Tencentcloud::teo::V20220901::DeleteLoadBalancingRequest`
- # @rtype: :class:`Tencentcloud::teo::V20220901::DeleteLoadBalancingResponse`
- def DeleteLoadBalancing(request)
- body = send_request('DeleteLoadBalancing', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = DeleteLoadBalancingResponse.new
- model.deserialize(response['Response'])
- model
- else
- code = response['Response']['Error']['Code']
- message = response['Response']['Error']['Message']
- reqid = response['Response']['RequestId']
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
- end
- rescue TencentCloud::Common::TencentCloudSDKException => e
- raise e
- rescue StandardError => e
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
- end
-
# 本接口(DeleteLogTopicTask)用于删除日志推送任务。
# @param request: Request instance for DeleteLogTopicTask.
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteLogTopicTaskRequest`
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteLogTopicTaskResponse`
@@ -1299,34 +1203,10 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
- # 查询 DNS 记录列表,支持搜索、分页、排序、过滤。
-
- # @param request: Request instance for DescribeDnsRecords.
- # @type request: :class:`Tencentcloud::teo::V20220901::DescribeDnsRecordsRequest`
- # @rtype: :class:`Tencentcloud::teo::V20220901::DescribeDnsRecordsResponse`
- def DescribeDnsRecords(request)
- body = send_request('DescribeDnsRecords', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = DescribeDnsRecordsResponse.new
- model.deserialize(response['Response'])
- model
- else
- code = response['Response']['Error']['Code']
- message = response['Response']['Error']['Message']
- reqid = response['Response']['RequestId']
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
- end
- rescue TencentCloud::Common::TencentCloudSDKException => e
- raise e
- rescue StandardError => e
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
- end
-
# 用于查询 DNSSEC 相关信息
# @param request: Request instance for DescribeDnssec.
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeDnssecRequest`
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeDnssecResponse`
@@ -1395,34 +1275,10 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
- # 获取负载均衡列表
-
- # @param request: Request instance for DescribeLoadBalancing.
- # @type request: :class:`Tencentcloud::teo::V20220901::DescribeLoadBalancingRequest`
- # @rtype: :class:`Tencentcloud::teo::V20220901::DescribeLoadBalancingResponse`
- def DescribeLoadBalancing(request)
- body = send_request('DescribeLoadBalancing', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = DescribeLoadBalancingResponse.new
- model.deserialize(response['Response'])
- model
- else
- code = response['Response']['Error']['Code']
- message = response['Response']['Error']['Message']
- reqid = response['Response']['RequestId']
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
- end
- rescue TencentCloud::Common::TencentCloudSDKException => e
- raise e
- rescue StandardError => e
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
- end
-
# 本接口(DescribeLogSets)用于获取日志集列表。
# @param request: Request instance for DescribeLogSets.
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeLogSetsRequest`
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeLogSetsResponse`
@@ -2643,34 +2499,10 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
- # 修改 DNS 记录
-
- # @param request: Request instance for ModifyDnsRecord.
- # @type request: :class:`Tencentcloud::teo::V20220901::ModifyDnsRecordRequest`
- # @rtype: :class:`Tencentcloud::teo::V20220901::ModifyDnsRecordResponse`
- def ModifyDnsRecord(request)
- body = send_request('ModifyDnsRecord', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = ModifyDnsRecordResponse.new
- model.deserialize(response['Response'])
- model
- else
- code = response['Response']['Error']['Code']
- message = response['Response']['Error']['Message']
- reqid = response['Response']['RequestId']
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
- end
- rescue TencentCloud::Common::TencentCloudSDKException => e
- raise e
- rescue StandardError => e
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
- end
-
# 设置站点DNSSEC状态
# @param request: Request instance for ModifyDnssec.
# @type request: :class:`Tencentcloud::teo::V20220901::ModifyDnssecRequest`
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifyDnssecResponse`
@@ -2701,33 +2533,9 @@
def ModifyHostsCertificate(request)
body = send_request('ModifyHostsCertificate', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = ModifyHostsCertificateResponse.new
- model.deserialize(response['Response'])
- model
- else
- code = response['Response']['Error']['Code']
- message = response['Response']['Error']['Message']
- reqid = response['Response']['RequestId']
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
- end
- rescue TencentCloud::Common::TencentCloudSDKException => e
- raise e
- rescue StandardError => e
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
- end
-
- # 修改负载均衡
-
- # @param request: Request instance for ModifyLoadBalancing.
- # @type request: :class:`Tencentcloud::teo::V20220901::ModifyLoadBalancingRequest`
- # @rtype: :class:`Tencentcloud::teo::V20220901::ModifyLoadBalancingResponse`
- def ModifyLoadBalancing(request)
- body = send_request('ModifyLoadBalancing', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = ModifyLoadBalancingResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
\ No newline at end of file