Class: TencentCloud::Gpm::V20200820::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Gpm::V20200820::Client
- Defined in:
- lib/v20200820/client.rb
Instance Method Summary collapse
-
#CancelMatching(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::CancelMatchingResponse`.
-
#CreateMatch(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::CreateMatchResponse`.
-
#CreateRule(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::CreateRuleResponse`.
-
#DeleteMatch(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DeleteMatchResponse`.
-
#DeleteRule(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DeleteRuleResponse`.
-
#DescribeData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DescribeDataResponse`.
-
#DescribeMatch(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DescribeMatchResponse`.
-
#DescribeMatchCodes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DescribeMatchCodesResponse`.
-
#DescribeMatches(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DescribeMatchesResponse`.
-
#DescribeMatchingProgress(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DescribeMatchingProgressResponse`.
-
#DescribeRule(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DescribeRuleResponse`.
-
#DescribeRules(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DescribeRulesResponse`.
-
#DescribeToken(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DescribeTokenResponse`.
-
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#ModifyMatch(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::ModifyMatchResponse`.
-
#ModifyRule(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::ModifyRuleResponse`.
-
#ModifyToken(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::ModifyTokenResponse`.
-
#StartMatching(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::StartMatchingResponse`.
-
#StartMatchingBackfill(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::StartMatchingBackfillResponse`.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20200820/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2020-08-20' api_endpoint = 'gpm.tencentcloudapi.com' sdk_version = 'GPM_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#CancelMatching(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::CancelMatchingResponse`
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/v20200820/client.rb', line 39 def CancelMatching(request) body = send_request('CancelMatching', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CancelMatchingResponse.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 |
#CreateMatch(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::CreateMatchResponse`
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/v20200820/client.rb', line 65 def CreateMatch(request) body = send_request('CreateMatch', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateMatchResponse.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::gpm::V20200820::CreateRuleResponse`
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/v20200820/client.rb', line 91 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 |
#DeleteMatch(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DeleteMatchResponse`
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/v20200820/client.rb', line 117 def DeleteMatch(request) body = send_request('DeleteMatch', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteMatchResponse.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::gpm::V20200820::DeleteRuleResponse`
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
# File 'lib/v20200820/client.rb', line 143 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 |
#DescribeData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DescribeDataResponse`
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 |
# File 'lib/v20200820/client.rb', line 169 def DescribeData(request) body = send_request('DescribeData', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDataResponse.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 |
#DescribeMatch(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DescribeMatchResponse`
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
# File 'lib/v20200820/client.rb', line 195 def DescribeMatch(request) body = send_request('DescribeMatch', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMatchResponse.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 |
#DescribeMatchCodes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DescribeMatchCodesResponse`
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 |
# File 'lib/v20200820/client.rb', line 221 def DescribeMatchCodes(request) body = send_request('DescribeMatchCodes', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMatchCodesResponse.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 |
#DescribeMatches(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DescribeMatchesResponse`
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 |
# File 'lib/v20200820/client.rb', line 247 def DescribeMatches(request) body = send_request('DescribeMatches', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMatchesResponse.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 |
#DescribeMatchingProgress(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DescribeMatchingProgressResponse`
273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 |
# File 'lib/v20200820/client.rb', line 273 def DescribeMatchingProgress(request) body = send_request('DescribeMatchingProgress', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMatchingProgressResponse.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 |
#DescribeRule(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DescribeRuleResponse`
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 |
# File 'lib/v20200820/client.rb', line 299 def DescribeRule(request) body = send_request('DescribeRule', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeRuleResponse.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 |
#DescribeRules(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DescribeRulesResponse`
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 |
# File 'lib/v20200820/client.rb', line 325 def DescribeRules(request) body = send_request('DescribeRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeRulesResponse.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 |
#DescribeToken(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::DescribeTokenResponse`
351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 |
# File 'lib/v20200820/client.rb', line 351 def DescribeToken(request) body = send_request('DescribeToken', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTokenResponse.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 |
#ModifyMatch(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::ModifyMatchResponse`
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 |
# File 'lib/v20200820/client.rb', line 377 def ModifyMatch(request) body = send_request('ModifyMatch', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyMatchResponse.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::gpm::V20200820::ModifyRuleResponse`
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 |
# File 'lib/v20200820/client.rb', line 403 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 |
#ModifyToken(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::ModifyTokenResponse`
429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 |
# File 'lib/v20200820/client.rb', line 429 def ModifyToken(request) body = send_request('ModifyToken', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyTokenResponse.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 |
#StartMatching(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::StartMatchingResponse`
455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 |
# File 'lib/v20200820/client.rb', line 455 def StartMatching(request) body = send_request('StartMatching', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StartMatchingResponse.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 |
#StartMatchingBackfill(request) ⇒ Object
@rtype: :class:‘Tencentcloud::gpm::V20200820::StartMatchingBackfillResponse`
481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 |
# File 'lib/v20200820/client.rb', line 481 def StartMatchingBackfill(request) body = send_request('StartMatchingBackfill', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StartMatchingBackfillResponse.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 |