Class: TencentCloud::Goosefs::V20220519::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Goosefs::V20220519::Client
- Defined in:
- lib/v20220519/client.rb
Instance Method Summary collapse
-
#AddCrossVpcSubnetSupportForClientNode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::AddCrossVpcSubnetSupportForClientNodeResponse`.
-
#AttachFileSystemBucket(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::AttachFileSystemBucketResponse`.
-
#BatchAddClientNodes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::BatchAddClientNodesResponse`.
-
#BatchDeleteClientNodes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::BatchDeleteClientNodesResponse`.
-
#BuildClientNodeMountCommand(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::BuildClientNodeMountCommandResponse`.
-
#CreateDataRepositoryTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::CreateDataRepositoryTaskResponse`.
-
#CreateFileset(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::CreateFilesetResponse`.
-
#CreateFileSystem(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::CreateFileSystemResponse`.
-
#DeleteCrossVpcSubnetSupportForClientNode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DeleteCrossVpcSubnetSupportForClientNodeResponse`.
-
#DeleteFileset(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DeleteFilesetResponse`.
-
#DeleteFileSystem(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DeleteFileSystemResponse`.
-
#DescribeClientNodes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DescribeClientNodesResponse`.
-
#DescribeClusterClientToken(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DescribeClusterClientTokenResponse`.
-
#DescribeClusterRoles(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DescribeClusterRolesResponse`.
-
#DescribeClusterRoleToken(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DescribeClusterRoleTokenResponse`.
-
#DescribeDataRepositoryTaskStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DescribeDataRepositoryTaskStatusResponse`.
-
#DescribeFilesetGeneralConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DescribeFilesetGeneralConfigResponse`.
-
#DescribeFilesets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DescribeFilesetsResponse`.
-
#DescribeFileSystemBuckets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DescribeFileSystemBucketsResponse`.
-
#DescribeFileSystems(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DescribeFileSystemsResponse`.
-
#DetachFileSystemBucket(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DetachFileSystemBucketResponse`.
-
#ExpandCapacity(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::ExpandCapacityResponse`.
-
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#ModifyDataRepositoryBandwidth(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::ModifyDataRepositoryBandwidthResponse`.
-
#QueryCrossVpcSubnetSupportForClientNode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::QueryCrossVpcSubnetSupportForClientNodeResponse`.
-
#QueryDataRepositoryBandwidth(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::QueryDataRepositoryBandwidthResponse`.
-
#UpdateFileset(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::UpdateFilesetResponse`.
-
#UpdateFilesetGeneralConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::UpdateFilesetGeneralConfigResponse`.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20220519/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2022-05-19' api_endpoint = 'goosefs.tencentcloudapi.com' sdk_version = 'GOOSEFS_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#AddCrossVpcSubnetSupportForClientNode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::AddCrossVpcSubnetSupportForClientNodeResponse`
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/v20220519/client.rb', line 37 def AddCrossVpcSubnetSupportForClientNode(request) body = send_request('AddCrossVpcSubnetSupportForClientNode', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AddCrossVpcSubnetSupportForClientNodeResponse.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 |
#AttachFileSystemBucket(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::AttachFileSystemBucketResponse`
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/v20220519/client.rb', line 61 def AttachFileSystemBucket(request) body = send_request('AttachFileSystemBucket', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AttachFileSystemBucketResponse.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 |
#BatchAddClientNodes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::BatchAddClientNodesResponse`
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/v20220519/client.rb', line 85 def BatchAddClientNodes(request) body = send_request('BatchAddClientNodes', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BatchAddClientNodesResponse.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 |
#BatchDeleteClientNodes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::BatchDeleteClientNodesResponse`
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/v20220519/client.rb', line 109 def BatchDeleteClientNodes(request) body = send_request('BatchDeleteClientNodes', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BatchDeleteClientNodesResponse.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 |
#BuildClientNodeMountCommand(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::BuildClientNodeMountCommandResponse`
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/v20220519/client.rb', line 133 def BuildClientNodeMountCommand(request) body = send_request('BuildClientNodeMountCommand', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BuildClientNodeMountCommandResponse.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 |
#CreateDataRepositoryTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::CreateDataRepositoryTaskResponse`
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/v20220519/client.rb', line 157 def CreateDataRepositoryTask(request) body = send_request('CreateDataRepositoryTask', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateDataRepositoryTaskResponse.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 |
#CreateFileset(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::CreateFilesetResponse`
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/v20220519/client.rb', line 205 def CreateFileset(request) body = send_request('CreateFileset', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateFilesetResponse.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 |
#CreateFileSystem(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::CreateFileSystemResponse`
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/v20220519/client.rb', line 181 def CreateFileSystem(request) body = send_request('CreateFileSystem', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateFileSystemResponse.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 |
#DeleteCrossVpcSubnetSupportForClientNode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DeleteCrossVpcSubnetSupportForClientNodeResponse`
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 |
# File 'lib/v20220519/client.rb', line 229 def DeleteCrossVpcSubnetSupportForClientNode(request) body = send_request('DeleteCrossVpcSubnetSupportForClientNode', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteCrossVpcSubnetSupportForClientNodeResponse.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 |
#DeleteFileset(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DeleteFilesetResponse`
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 |
# File 'lib/v20220519/client.rb', line 277 def DeleteFileset(request) body = send_request('DeleteFileset', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteFilesetResponse.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 |
#DeleteFileSystem(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DeleteFileSystemResponse`
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
# File 'lib/v20220519/client.rb', line 253 def DeleteFileSystem(request) body = send_request('DeleteFileSystem', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteFileSystemResponse.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 |
#DescribeClientNodes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DescribeClientNodesResponse`
301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 |
# File 'lib/v20220519/client.rb', line 301 def DescribeClientNodes(request) body = send_request('DescribeClientNodes', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeClientNodesResponse.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 |
#DescribeClusterClientToken(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DescribeClusterClientTokenResponse`
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 |
# File 'lib/v20220519/client.rb', line 325 def DescribeClusterClientToken(request) body = send_request('DescribeClusterClientToken', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeClusterClientTokenResponse.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 |
#DescribeClusterRoles(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DescribeClusterRolesResponse`
375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 |
# File 'lib/v20220519/client.rb', line 375 def DescribeClusterRoles(request) body = send_request('DescribeClusterRoles', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeClusterRolesResponse.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 |
#DescribeClusterRoleToken(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DescribeClusterRoleTokenResponse`
349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 |
# File 'lib/v20220519/client.rb', line 349 def DescribeClusterRoleToken(request) body = send_request('DescribeClusterRoleToken', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeClusterRoleTokenResponse.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 |
#DescribeDataRepositoryTaskStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DescribeDataRepositoryTaskStatusResponse`
399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 |
# File 'lib/v20220519/client.rb', line 399 def DescribeDataRepositoryTaskStatus(request) body = send_request('DescribeDataRepositoryTaskStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDataRepositoryTaskStatusResponse.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 |
#DescribeFilesetGeneralConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DescribeFilesetGeneralConfigResponse`
471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'lib/v20220519/client.rb', line 471 def DescribeFilesetGeneralConfig(request) body = send_request('DescribeFilesetGeneralConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeFilesetGeneralConfigResponse.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 |
#DescribeFilesets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DescribeFilesetsResponse`
495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 |
# File 'lib/v20220519/client.rb', line 495 def DescribeFilesets(request) body = send_request('DescribeFilesets', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeFilesetsResponse.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 |
#DescribeFileSystemBuckets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DescribeFileSystemBucketsResponse`
423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 |
# File 'lib/v20220519/client.rb', line 423 def DescribeFileSystemBuckets(request) body = send_request('DescribeFileSystemBuckets', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeFileSystemBucketsResponse.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 |
#DescribeFileSystems(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DescribeFileSystemsResponse`
447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 |
# File 'lib/v20220519/client.rb', line 447 def DescribeFileSystems(request) body = send_request('DescribeFileSystems', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeFileSystemsResponse.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 |
#DetachFileSystemBucket(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::DetachFileSystemBucketResponse`
519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File 'lib/v20220519/client.rb', line 519 def DetachFileSystemBucket(request) body = send_request('DetachFileSystemBucket', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DetachFileSystemBucketResponse.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 |
#ExpandCapacity(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::ExpandCapacityResponse`
543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 |
# File 'lib/v20220519/client.rb', line 543 def ExpandCapacity(request) body = send_request('ExpandCapacity', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExpandCapacityResponse.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 |
#ModifyDataRepositoryBandwidth(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::ModifyDataRepositoryBandwidthResponse`
567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 |
# File 'lib/v20220519/client.rb', line 567 def ModifyDataRepositoryBandwidth(request) body = send_request('ModifyDataRepositoryBandwidth', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyDataRepositoryBandwidthResponse.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 |
#QueryCrossVpcSubnetSupportForClientNode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::QueryCrossVpcSubnetSupportForClientNodeResponse`
591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 |
# File 'lib/v20220519/client.rb', line 591 def QueryCrossVpcSubnetSupportForClientNode(request) body = send_request('QueryCrossVpcSubnetSupportForClientNode', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = QueryCrossVpcSubnetSupportForClientNodeResponse.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 |
#QueryDataRepositoryBandwidth(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::QueryDataRepositoryBandwidthResponse`
615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 |
# File 'lib/v20220519/client.rb', line 615 def QueryDataRepositoryBandwidth(request) body = send_request('QueryDataRepositoryBandwidth', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = QueryDataRepositoryBandwidthResponse.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 |
#UpdateFileset(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::UpdateFilesetResponse`
639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 |
# File 'lib/v20220519/client.rb', line 639 def UpdateFileset(request) body = send_request('UpdateFileset', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateFilesetResponse.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 |
#UpdateFilesetGeneralConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::goosefs::V20220519::UpdateFilesetGeneralConfigResponse`
663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 |
# File 'lib/v20220519/client.rb', line 663 def UpdateFilesetGeneralConfig(request) body = send_request('UpdateFilesetGeneralConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateFilesetGeneralConfigResponse.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 |