lib/v20201016/client.rb in tencentcloud-sdk-cls-1.0.275 vs lib/v20201016/client.rb in tencentcloud-sdk-cls-1.0.276

- old
+ new

@@ -123,10 +123,34 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 本接口用于创建特殊采集配置任务 + + # @param request: Request instance for CreateConfigExtra. + # @type request: :class:`Tencentcloud::cls::V20201016::CreateConfigExtraRequest` + # @rtype: :class:`Tencentcloud::cls::V20201016::CreateConfigExtraResponse` + def CreateConfigExtra(request) + body = send_request('CreateConfigExtra', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = CreateConfigExtraResponse.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 CreateConsumer. # @type request: :class:`Tencentcloud::cls::V20201016::CreateConsumerRequest` # @rtype: :class:`Tencentcloud::cls::V20201016::CreateConsumerResponse` @@ -363,10 +387,34 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 本接口用于删除特殊采集规则配置 + + # @param request: Request instance for DeleteConfigExtra. + # @type request: :class:`Tencentcloud::cls::V20201016::DeleteConfigExtraRequest` + # @rtype: :class:`Tencentcloud::cls::V20201016::DeleteConfigExtraResponse` + def DeleteConfigExtra(request) + body = send_request('DeleteConfigExtra', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DeleteConfigExtraResponse.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 DeleteConfigFromMachineGroup. # @type request: :class:`Tencentcloud::cls::V20201016::DeleteConfigFromMachineGroupRequest` # @rtype: :class:`Tencentcloud::cls::V20201016::DeleteConfigFromMachineGroupResponse` @@ -603,10 +651,34 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 本接口用于获取特殊采集配置 + + # @param request: Request instance for DescribeConfigExtras. + # @type request: :class:`Tencentcloud::cls::V20201016::DescribeConfigExtrasRequest` + # @rtype: :class:`Tencentcloud::cls::V20201016::DescribeConfigExtrasResponse` + def DescribeConfigExtras(request) + body = send_request('DescribeConfigExtras', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeConfigExtrasResponse.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 DescribeConfigMachineGroups. # @type request: :class:`Tencentcloud::cls::V20201016::DescribeConfigMachineGroupsRequest` # @rtype: :class:`Tencentcloud::cls::V20201016::DescribeConfigMachineGroupsResponse` @@ -1045,9 +1117,33 @@ def ModifyConfig(request) body = send_request('ModifyConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyConfigResponse.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 ModifyConfigExtra. + # @type request: :class:`Tencentcloud::cls::V20201016::ModifyConfigExtraRequest` + # @rtype: :class:`Tencentcloud::cls::V20201016::ModifyConfigExtraResponse` + def ModifyConfigExtra(request) + body = send_request('ModifyConfigExtra', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = ModifyConfigExtraResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] \ No newline at end of file