Class: TencentCloud::Ds::V20180523::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Ds::V20180523::Client
- Defined in:
- lib/v20180523/client.rb
Instance Method Summary collapse
-
#CheckVcode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::CheckVcodeResponse`.
-
#CreateContractByUpload(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::CreateContractByUploadResponse`.
-
#CreateEnterpriseAccount(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::CreateEnterpriseAccountResponse`.
-
#CreatePersonalAccount(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::CreatePersonalAccountResponse`.
-
#CreateSeal(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::CreateSealResponse`.
-
#DeleteAccount(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::DeleteAccountResponse`.
-
#DeleteSeal(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::DeleteSealResponse`.
-
#DescribeTaskStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::DescribeTaskStatusResponse`.
-
#DownloadContract(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::DownloadContractResponse`.
-
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#SendVcode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::SendVcodeResponse`.
-
#SignContractByCoordinate(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::SignContractByCoordinateResponse`.
-
#SignContractByKeyword(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::SignContractByKeywordResponse`.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20180523/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2018-05-23' api_endpoint = 'ds.tencentcloudapi.com' sdk_version = 'DS_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#CheckVcode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::CheckVcodeResponse`
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/v20180523/client.rb', line 39 def CheckVcode(request) body = send_request('CheckVcode', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CheckVcodeResponse.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 |
#CreateContractByUpload(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::CreateContractByUploadResponse`
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/v20180523/client.rb', line 63 def CreateContractByUpload(request) body = send_request('CreateContractByUpload', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateContractByUploadResponse.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 |
#CreateEnterpriseAccount(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::CreateEnterpriseAccountResponse`
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/v20180523/client.rb', line 87 def CreateEnterpriseAccount(request) body = send_request('CreateEnterpriseAccount', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateEnterpriseAccountResponse.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 |
#CreatePersonalAccount(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::CreatePersonalAccountResponse`
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/v20180523/client.rb', line 111 def CreatePersonalAccount(request) body = send_request('CreatePersonalAccount', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreatePersonalAccountResponse.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 |
#CreateSeal(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::CreateSealResponse`
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
# File 'lib/v20180523/client.rb', line 135 def CreateSeal(request) body = send_request('CreateSeal', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateSealResponse.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 |
#DeleteAccount(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::DeleteAccountResponse`
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/v20180523/client.rb', line 159 def DeleteAccount(request) body = send_request('DeleteAccount', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteAccountResponse.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 |
#DeleteSeal(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::DeleteSealResponse`
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
# File 'lib/v20180523/client.rb', line 183 def DeleteSeal(request) body = send_request('DeleteSeal', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteSealResponse.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::ds::V20180523::DescribeTaskStatusResponse`
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 |
# File 'lib/v20180523/client.rb', line 207 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 |
#DownloadContract(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::DownloadContractResponse`
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'lib/v20180523/client.rb', line 231 def DownloadContract(request) body = send_request('DownloadContract', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DownloadContractResponse.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 |
#SendVcode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::SendVcodeResponse`
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 |
# File 'lib/v20180523/client.rb', line 255 def SendVcode(request) body = send_request('SendVcode', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SendVcodeResponse.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 |
#SignContractByCoordinate(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::SignContractByCoordinateResponse`
279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 |
# File 'lib/v20180523/client.rb', line 279 def SignContractByCoordinate(request) body = send_request('SignContractByCoordinate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SignContractByCoordinateResponse.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 |
#SignContractByKeyword(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ds::V20180523::SignContractByKeywordResponse`
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 |
# File 'lib/v20180523/client.rb', line 303 def SignContractByKeyword(request) body = send_request('SignContractByKeyword', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SignContractByKeywordResponse.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 |