lib/v20220901/client.rb in tencentcloud-sdk-teo-3.0.443 vs lib/v20220901/client.rb in tencentcloud-sdk-teo-3.0.444

- old
+ new

@@ -51,10 +51,34 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 创建别称域名。 + + # @param request: Request instance for CreateAliasDomain. + # @type request: :class:`Tencentcloud::teo::V20220901::CreateAliasDomainRequest` + # @rtype: :class:`Tencentcloud::teo::V20220901::CreateAliasDomainResponse` + def CreateAliasDomain(request) + body = send_request('CreateAliasDomain', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = CreateAliasDomainResponse.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 CreateApplicationProxy. # @type request: :class:`Tencentcloud::teo::V20220901::CreateApplicationProxyRequest` # @rtype: :class:`Tencentcloud::teo::V20220901::CreateApplicationProxyResponse` @@ -483,10 +507,34 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 删除别称域名。 + + # @param request: Request instance for DeleteAliasDomain. + # @type request: :class:`Tencentcloud::teo::V20220901::DeleteAliasDomainRequest` + # @rtype: :class:`Tencentcloud::teo::V20220901::DeleteAliasDomainResponse` + def DeleteAliasDomain(request) + body = send_request('DeleteAliasDomain', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DeleteAliasDomainResponse.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 DeleteApplicationProxy. # @type request: :class:`Tencentcloud::teo::V20220901::DeleteApplicationProxyRequest` # @rtype: :class:`Tencentcloud::teo::V20220901::DeleteApplicationProxyResponse` @@ -699,10 +747,34 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 查询别称域名信息列表。 + + # @param request: Request instance for DescribeAliasDomains. + # @type request: :class:`Tencentcloud::teo::V20220901::DescribeAliasDomainsRequest` + # @rtype: :class:`Tencentcloud::teo::V20220901::DescribeAliasDomainsResponse` + def DescribeAliasDomains(request) + body = send_request('DescribeAliasDomains', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeAliasDomainsResponse.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 DescribeApplicationProxies. # @type request: :class:`Tencentcloud::teo::V20220901::DescribeApplicationProxiesRequest` # @rtype: :class:`Tencentcloud::teo::V20220901::DescribeApplicationProxiesResponse` @@ -2293,9 +2365,57 @@ def ModifyAlarmDefaultThreshold(request) body = send_request('ModifyAlarmDefaultThreshold', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyAlarmDefaultThresholdResponse.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 ModifyAliasDomain. + # @type request: :class:`Tencentcloud::teo::V20220901::ModifyAliasDomainRequest` + # @rtype: :class:`Tencentcloud::teo::V20220901::ModifyAliasDomainResponse` + def ModifyAliasDomain(request) + body = send_request('ModifyAliasDomain', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = ModifyAliasDomainResponse.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 ModifyAliasDomainStatus. + # @type request: :class:`Tencentcloud::teo::V20220901::ModifyAliasDomainStatusRequest` + # @rtype: :class:`Tencentcloud::teo::V20220901::ModifyAliasDomainStatusResponse` + def ModifyAliasDomainStatus(request) + body = send_request('ModifyAliasDomainStatus', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = ModifyAliasDomainStatusResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] \ No newline at end of file