Class: TencentCloud::Cfs::V20190719::Client

Inherits:
TencentCloud::Common::AbstractClient
  • Object
show all
Defined in:
lib/v20190719/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(credential, region, profile = nil) ⇒ Client

Returns a new instance of Client.



24
25
26
27
28
29
# File 'lib/v20190719/client.rb', line 24

def initialize(credential, region, profile = nil)
    api_version = '2019-07-19'
    api_endpoint = 'cfs.tencentcloudapi.com'
    sdk_version = 'CFS_' + File.read(File.expand_path('../VERSION', __dir__)).strip
    super(credential, region, api_version, api_endpoint, sdk_version, profile)
end

Instance Method Details

#ApplyPathLifecyclePolicy(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::ApplyPathLifecyclePolicyResponse

Parameters:

  • request:

    Request instance for ApplyPathLifecyclePolicy.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/v20190719/client.rb', line 37

def ApplyPathLifecyclePolicy(request)
  body = send_request('ApplyPathLifecyclePolicy', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ApplyPathLifecyclePolicyResponse.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

#BindAutoSnapshotPolicy(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::BindAutoSnapshotPolicyResponse

Parameters:

  • request:

    Request instance for BindAutoSnapshotPolicy.



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/v20190719/client.rb', line 61

def BindAutoSnapshotPolicy(request)
  body = send_request('BindAutoSnapshotPolicy', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = BindAutoSnapshotPolicyResponse.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

#CreateAccessCert(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::CreateAccessCertResponse

Parameters:

  • request:

    Request instance for CreateAccessCert.



85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# File 'lib/v20190719/client.rb', line 85

def CreateAccessCert(request)
  body = send_request('CreateAccessCert', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateAccessCertResponse.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

#CreateAutoSnapshotPolicy(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::CreateAutoSnapshotPolicyResponse

Parameters:

  • request:

    Request instance for CreateAutoSnapshotPolicy.



109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# File 'lib/v20190719/client.rb', line 109

def CreateAutoSnapshotPolicy(request)
  body = send_request('CreateAutoSnapshotPolicy', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateAutoSnapshotPolicyResponse.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

#CreateCfsFileSystem(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::CreateCfsFileSystemResponse

Parameters:

  • request:

    Request instance for CreateCfsFileSystem.



133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# File 'lib/v20190719/client.rb', line 133

def CreateCfsFileSystem(request)
  body = send_request('CreateCfsFileSystem', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateCfsFileSystemResponse.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

#CreateCfsPGroup(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::CreateCfsPGroupResponse

Parameters:

  • request:

    Request instance for CreateCfsPGroup.



157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# File 'lib/v20190719/client.rb', line 157

def CreateCfsPGroup(request)
  body = send_request('CreateCfsPGroup', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateCfsPGroupResponse.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

#CreateCfsRule(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::CreateCfsRuleResponse

Parameters:

  • request:

    Request instance for CreateCfsRule.



181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# File 'lib/v20190719/client.rb', line 181

def CreateCfsRule(request)
  body = send_request('CreateCfsRule', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateCfsRuleResponse.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

#CreateCfsSnapshot(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::CreateCfsSnapshotResponse

Parameters:

  • request:

    Request instance for CreateCfsSnapshot.



205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
# File 'lib/v20190719/client.rb', line 205

def CreateCfsSnapshot(request)
  body = send_request('CreateCfsSnapshot', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateCfsSnapshotResponse.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

#CreateDataFlow(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::CreateDataFlowResponse

Parameters:

  • request:

    Request instance for CreateDataFlow.



229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
# File 'lib/v20190719/client.rb', line 229

def CreateDataFlow(request)
  body = send_request('CreateDataFlow', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateDataFlowResponse.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

#CreateLifecycleDataTask(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::CreateLifecycleDataTaskResponse

Parameters:

  • request:

    Request instance for CreateLifecycleDataTask.



253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
# File 'lib/v20190719/client.rb', line 253

def CreateLifecycleDataTask(request)
  body = send_request('CreateLifecycleDataTask', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateLifecycleDataTaskResponse.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

#CreateLifecyclePolicy(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::CreateLifecyclePolicyResponse

Parameters:

  • request:

    Request instance for CreateLifecyclePolicy.



277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
# File 'lib/v20190719/client.rb', line 277

def CreateLifecyclePolicy(request)
  body = send_request('CreateLifecyclePolicy', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateLifecyclePolicyResponse.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

#CreateLifecyclePolicyDownloadTask(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::CreateLifecyclePolicyDownloadTaskResponse

Parameters:

  • request:

    Request instance for CreateLifecyclePolicyDownloadTask.



301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
# File 'lib/v20190719/client.rb', line 301

def CreateLifecyclePolicyDownloadTask(request)
  body = send_request('CreateLifecyclePolicyDownloadTask', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateLifecyclePolicyDownloadTaskResponse.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

#CreateMigrationTask(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::CreateMigrationTaskResponse

Parameters:

  • request:

    Request instance for CreateMigrationTask.



325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
# File 'lib/v20190719/client.rb', line 325

def CreateMigrationTask(request)
  body = send_request('CreateMigrationTask', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateMigrationTaskResponse.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

#DeleteAutoSnapshotPolicy(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DeleteAutoSnapshotPolicyResponse

Parameters:

  • request:

    Request instance for DeleteAutoSnapshotPolicy.



349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
# File 'lib/v20190719/client.rb', line 349

def DeleteAutoSnapshotPolicy(request)
  body = send_request('DeleteAutoSnapshotPolicy', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteAutoSnapshotPolicyResponse.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

#DeleteCfsFileSystem(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DeleteCfsFileSystemResponse

Parameters:

  • request:

    Request instance for DeleteCfsFileSystem.



373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
# File 'lib/v20190719/client.rb', line 373

def DeleteCfsFileSystem(request)
  body = send_request('DeleteCfsFileSystem', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteCfsFileSystemResponse.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

#DeleteCfsPGroup(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DeleteCfsPGroupResponse

Parameters:

  • request:

    Request instance for DeleteCfsPGroup.



397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
# File 'lib/v20190719/client.rb', line 397

def DeleteCfsPGroup(request)
  body = send_request('DeleteCfsPGroup', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteCfsPGroupResponse.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

#DeleteCfsRule(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DeleteCfsRuleResponse

Parameters:

  • request:

    Request instance for DeleteCfsRule.



421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
# File 'lib/v20190719/client.rb', line 421

def DeleteCfsRule(request)
  body = send_request('DeleteCfsRule', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteCfsRuleResponse.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

#DeleteCfsSnapshot(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DeleteCfsSnapshotResponse

Parameters:

  • request:

    Request instance for DeleteCfsSnapshot.



445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
# File 'lib/v20190719/client.rb', line 445

def DeleteCfsSnapshot(request)
  body = send_request('DeleteCfsSnapshot', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteCfsSnapshotResponse.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

#DeleteDataFlow(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DeleteDataFlowResponse

Parameters:

  • request:

    Request instance for DeleteDataFlow.



469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
# File 'lib/v20190719/client.rb', line 469

def DeleteDataFlow(request)
  body = send_request('DeleteDataFlow', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteDataFlowResponse.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

#DeleteLifecyclePolicy(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DeleteLifecyclePolicyResponse

Parameters:

  • request:

    Request instance for DeleteLifecyclePolicy.



493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
# File 'lib/v20190719/client.rb', line 493

def DeleteLifecyclePolicy(request)
  body = send_request('DeleteLifecyclePolicy', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteLifecyclePolicyResponse.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

#DeleteMigrationTask(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DeleteMigrationTaskResponse

Parameters:

  • request:

    Request instance for DeleteMigrationTask.



517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
# File 'lib/v20190719/client.rb', line 517

def DeleteMigrationTask(request)
  body = send_request('DeleteMigrationTask', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteMigrationTaskResponse.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

#DeleteUserQuota(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DeleteUserQuotaResponse

Parameters:

  • request:

    Request instance for DeleteUserQuota.



541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
# File 'lib/v20190719/client.rb', line 541

def DeleteUserQuota(request)
  body = send_request('DeleteUserQuota', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteUserQuotaResponse.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

#DescribeAutoSnapshotPolicies(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DescribeAutoSnapshotPoliciesResponse

Parameters:

  • request:

    Request instance for DescribeAutoSnapshotPolicies.



565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
# File 'lib/v20190719/client.rb', line 565

def DescribeAutoSnapshotPolicies(request)
  body = send_request('DescribeAutoSnapshotPolicies', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeAutoSnapshotPoliciesResponse.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

#DescribeAvailableZoneInfo(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DescribeAvailableZoneInfoResponse

Parameters:

  • request:

    Request instance for DescribeAvailableZoneInfo.



589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
# File 'lib/v20190719/client.rb', line 589

def DescribeAvailableZoneInfo(request)
  body = send_request('DescribeAvailableZoneInfo', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeAvailableZoneInfoResponse.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

#DescribeBucketList(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DescribeBucketListResponse

Parameters:

  • request:

    Request instance for DescribeBucketList.



613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
# File 'lib/v20190719/client.rb', line 613

def DescribeBucketList(request)
  body = send_request('DescribeBucketList', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeBucketListResponse.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

#DescribeCfsFileSystemClients(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DescribeCfsFileSystemClientsResponse

Parameters:

  • request:

    Request instance for DescribeCfsFileSystemClients.



637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
# File 'lib/v20190719/client.rb', line 637

def DescribeCfsFileSystemClients(request)
  body = send_request('DescribeCfsFileSystemClients', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeCfsFileSystemClientsResponse.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

#DescribeCfsFileSystems(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DescribeCfsFileSystemsResponse

Parameters:

  • request:

    Request instance for DescribeCfsFileSystems.



661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
# File 'lib/v20190719/client.rb', line 661

def DescribeCfsFileSystems(request)
  body = send_request('DescribeCfsFileSystems', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeCfsFileSystemsResponse.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

#DescribeCfsPGroups(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DescribeCfsPGroupsResponse

Parameters:

  • request:

    Request instance for DescribeCfsPGroups.



685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
# File 'lib/v20190719/client.rb', line 685

def DescribeCfsPGroups(request)
  body = send_request('DescribeCfsPGroups', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeCfsPGroupsResponse.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

#DescribeCfsRules(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DescribeCfsRulesResponse

Parameters:

  • request:

    Request instance for DescribeCfsRules.



709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
# File 'lib/v20190719/client.rb', line 709

def DescribeCfsRules(request)
  body = send_request('DescribeCfsRules', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeCfsRulesResponse.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

#DescribeCfsServiceStatus(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DescribeCfsServiceStatusResponse

Parameters:

  • request:

    Request instance for DescribeCfsServiceStatus.



733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
# File 'lib/v20190719/client.rb', line 733

def DescribeCfsServiceStatus(request)
  body = send_request('DescribeCfsServiceStatus', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeCfsServiceStatusResponse.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

#DescribeCfsSnapshotOverview(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DescribeCfsSnapshotOverviewResponse

Parameters:

  • request:

    Request instance for DescribeCfsSnapshotOverview.



757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
# File 'lib/v20190719/client.rb', line 757

def DescribeCfsSnapshotOverview(request)
  body = send_request('DescribeCfsSnapshotOverview', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeCfsSnapshotOverviewResponse.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

#DescribeCfsSnapshots(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DescribeCfsSnapshotsResponse

Parameters:

  • request:

    Request instance for DescribeCfsSnapshots.



781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
# File 'lib/v20190719/client.rb', line 781

def DescribeCfsSnapshots(request)
  body = send_request('DescribeCfsSnapshots', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeCfsSnapshotsResponse.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

#DescribeDataFlow(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DescribeDataFlowResponse

Parameters:

  • request:

    Request instance for DescribeDataFlow.



805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
# File 'lib/v20190719/client.rb', line 805

def DescribeDataFlow(request)
  body = send_request('DescribeDataFlow', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeDataFlowResponse.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

#DescribeLifecycleDataTask(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DescribeLifecycleDataTaskResponse

Parameters:

  • request:

    Request instance for DescribeLifecycleDataTask.



829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
# File 'lib/v20190719/client.rb', line 829

def DescribeLifecycleDataTask(request)
  body = send_request('DescribeLifecycleDataTask', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeLifecycleDataTaskResponse.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

#DescribeLifecyclePolicies(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DescribeLifecyclePoliciesResponse

Parameters:

  • request:

    Request instance for DescribeLifecyclePolicies.



853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
# File 'lib/v20190719/client.rb', line 853

def DescribeLifecyclePolicies(request)
  body = send_request('DescribeLifecyclePolicies', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeLifecyclePoliciesResponse.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

#DescribeMigrationTasks(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DescribeMigrationTasksResponse

Parameters:

  • request:

    Request instance for DescribeMigrationTasks.



878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
# File 'lib/v20190719/client.rb', line 878

def DescribeMigrationTasks(request)
  body = send_request('DescribeMigrationTasks', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeMigrationTasksResponse.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

#DescribeMountTargets(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DescribeMountTargetsResponse

Parameters:

  • request:

    Request instance for DescribeMountTargets.



902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
# File 'lib/v20190719/client.rb', line 902

def DescribeMountTargets(request)
  body = send_request('DescribeMountTargets', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeMountTargetsResponse.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

#DescribeSnapshotOperationLogs(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DescribeSnapshotOperationLogsResponse

Parameters:

  • request:

    Request instance for DescribeSnapshotOperationLogs.



926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
# File 'lib/v20190719/client.rb', line 926

def DescribeSnapshotOperationLogs(request)
  body = send_request('DescribeSnapshotOperationLogs', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeSnapshotOperationLogsResponse.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

#DescribeUserQuota(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DescribeUserQuotaResponse

Parameters:

  • request:

    Request instance for DescribeUserQuota.



950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
# File 'lib/v20190719/client.rb', line 950

def DescribeUserQuota(request)
  body = send_request('DescribeUserQuota', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeUserQuotaResponse.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

#DoDirectoryOperation(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::DoDirectoryOperationResponse

Parameters:

  • request:

    Request instance for DoDirectoryOperation.



974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
# File 'lib/v20190719/client.rb', line 974

def DoDirectoryOperation(request)
  body = send_request('DoDirectoryOperation', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DoDirectoryOperationResponse.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

#ModifyDataFlow(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::ModifyDataFlowResponse

Parameters:

  • request:

    Request instance for ModifyDataFlow.



998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
# File 'lib/v20190719/client.rb', line 998

def ModifyDataFlow(request)
  body = send_request('ModifyDataFlow', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyDataFlowResponse.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

#ModifyFileSystemAutoScaleUpRule(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::ModifyFileSystemAutoScaleUpRuleResponse

Parameters:

  • request:

    Request instance for ModifyFileSystemAutoScaleUpRule.



1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
# File 'lib/v20190719/client.rb', line 1022

def ModifyFileSystemAutoScaleUpRule(request)
  body = send_request('ModifyFileSystemAutoScaleUpRule', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyFileSystemAutoScaleUpRuleResponse.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

#ModifyLifecyclePolicy(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::ModifyLifecyclePolicyResponse

Parameters:

  • request:

    Request instance for ModifyLifecyclePolicy.



1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
# File 'lib/v20190719/client.rb', line 1046

def ModifyLifecyclePolicy(request)
  body = send_request('ModifyLifecyclePolicy', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyLifecyclePolicyResponse.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

#ScaleUpFileSystem(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::ScaleUpFileSystemResponse

Parameters:

  • request:

    Request instance for ScaleUpFileSystem.



1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
# File 'lib/v20190719/client.rb', line 1070

def ScaleUpFileSystem(request)
  body = send_request('ScaleUpFileSystem', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ScaleUpFileSystemResponse.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

#SetUserQuota(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::SetUserQuotaResponse

Parameters:

  • request:

    Request instance for SetUserQuota.



1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
# File 'lib/v20190719/client.rb', line 1094

def SetUserQuota(request)
  body = send_request('SetUserQuota', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = SetUserQuotaResponse.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

#SignUpCfsService(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::SignUpCfsServiceResponse

Parameters:

  • request:

    Request instance for SignUpCfsService.



1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
# File 'lib/v20190719/client.rb', line 1118

def SignUpCfsService(request)
  body = send_request('SignUpCfsService', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = SignUpCfsServiceResponse.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

#StopLifecycleDataTask(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::StopLifecycleDataTaskResponse

Parameters:

  • request:

    Request instance for StopLifecycleDataTask.



1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
# File 'lib/v20190719/client.rb', line 1142

def StopLifecycleDataTask(request)
  body = send_request('StopLifecycleDataTask', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = StopLifecycleDataTaskResponse.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

#StopMigrationTask(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::StopMigrationTaskResponse

Parameters:

  • request:

    Request instance for StopMigrationTask.



1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
# File 'lib/v20190719/client.rb', line 1166

def StopMigrationTask(request)
  body = send_request('StopMigrationTask', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = StopMigrationTaskResponse.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

#UnbindAutoSnapshotPolicy(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::UnbindAutoSnapshotPolicyResponse

Parameters:

  • request:

    Request instance for UnbindAutoSnapshotPolicy.



1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
# File 'lib/v20190719/client.rb', line 1190

def UnbindAutoSnapshotPolicy(request)
  body = send_request('UnbindAutoSnapshotPolicy', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UnbindAutoSnapshotPolicyResponse.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

#UpdateAutoSnapshotPolicy(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::UpdateAutoSnapshotPolicyResponse

Parameters:

  • request:

    Request instance for UpdateAutoSnapshotPolicy.



1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
# File 'lib/v20190719/client.rb', line 1214

def UpdateAutoSnapshotPolicy(request)
  body = send_request('UpdateAutoSnapshotPolicy', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UpdateAutoSnapshotPolicyResponse.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

#UpdateCfsFileSystemName(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::UpdateCfsFileSystemNameResponse

Parameters:

  • request:

    Request instance for UpdateCfsFileSystemName.



1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
# File 'lib/v20190719/client.rb', line 1238

def UpdateCfsFileSystemName(request)
  body = send_request('UpdateCfsFileSystemName', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UpdateCfsFileSystemNameResponse.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

#UpdateCfsFileSystemPGroup(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::UpdateCfsFileSystemPGroupResponse

Parameters:

  • request:

    Request instance for UpdateCfsFileSystemPGroup.



1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
# File 'lib/v20190719/client.rb', line 1262

def UpdateCfsFileSystemPGroup(request)
  body = send_request('UpdateCfsFileSystemPGroup', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UpdateCfsFileSystemPGroupResponse.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

#UpdateCfsFileSystemSizeLimit(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::UpdateCfsFileSystemSizeLimitResponse

Parameters:

  • request:

    Request instance for UpdateCfsFileSystemSizeLimit.



1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
# File 'lib/v20190719/client.rb', line 1286

def UpdateCfsFileSystemSizeLimit(request)
  body = send_request('UpdateCfsFileSystemSizeLimit', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UpdateCfsFileSystemSizeLimitResponse.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

#UpdateCfsPGroup(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::UpdateCfsPGroupResponse

Parameters:

  • request:

    Request instance for UpdateCfsPGroup.



1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
# File 'lib/v20190719/client.rb', line 1310

def UpdateCfsPGroup(request)
  body = send_request('UpdateCfsPGroup', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UpdateCfsPGroupResponse.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

#UpdateCfsRule(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::UpdateCfsRuleResponse

Parameters:

  • request:

    Request instance for UpdateCfsRule.



1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
# File 'lib/v20190719/client.rb', line 1334

def UpdateCfsRule(request)
  body = send_request('UpdateCfsRule', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UpdateCfsRuleResponse.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

#UpdateCfsSnapshotAttribute(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::UpdateCfsSnapshotAttributeResponse

Parameters:

  • request:

    Request instance for UpdateCfsSnapshotAttribute.



1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
# File 'lib/v20190719/client.rb', line 1358

def UpdateCfsSnapshotAttribute(request)
  body = send_request('UpdateCfsSnapshotAttribute', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UpdateCfsSnapshotAttributeResponse.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

#UpdateFileSystemBandwidthLimit(request) ⇒ Object

@rtype: :class:Tencentcloud::cfs::V20190719::UpdateFileSystemBandwidthLimitResponse

Parameters:

  • request:

    Request instance for UpdateFileSystemBandwidthLimit.



1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
# File 'lib/v20190719/client.rb', line 1383

def UpdateFileSystemBandwidthLimit(request)
  body = send_request('UpdateFileSystemBandwidthLimit', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UpdateFileSystemBandwidthLimitResponse.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