Class: TencentCloud::Cam::V20190116::Client

Inherits:
TencentCloud::Common::AbstractClient
  • Object
show all
Defined in:
lib/v20190116/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/v20190116/client.rb', line 24

def initialize(credential, region, profile = nil)
    api_version = '2019-01-16'
    api_endpoint = 'cam.tencentcloudapi.com'
    sdk_version = 'CAM_' + File.read(File.expand_path('../VERSION', __dir__)).strip
    super(credential, region, api_version, api_endpoint, sdk_version, profile)
end

Instance Method Details

#AddUser(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::AddUserResponse`

Parameters:

  • request:

    Request instance for AddUser.



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

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

#AddUserToGroup(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::AddUserToGroupResponse`

Parameters:

  • request:

    Request instance for AddUserToGroup.



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

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

#AttachGroupPolicy(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::AttachGroupPolicyResponse`

Parameters:

  • request:

    Request instance for AttachGroupPolicy.



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

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

#AttachRolePolicy(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::AttachRolePolicyResponse`

Parameters:

  • request:

    Request instance for AttachRolePolicy.



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

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

#AttachUserPolicy(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::AttachUserPolicyResponse`

Parameters:

  • request:

    Request instance for AttachUserPolicy.



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

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

#BuildDataFlowAuthToken(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::BuildDataFlowAuthTokenResponse`

Parameters:

  • request:

    Request instance for BuildDataFlowAuthToken.



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

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

#ConsumeCustomMFAToken(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::ConsumeCustomMFATokenResponse`

Parameters:

  • request:

    Request instance for ConsumeCustomMFAToken.



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

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

#CreateAccessKey(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::CreateAccessKeyResponse`

Parameters:

  • request:

    Request instance for CreateAccessKey.



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

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

#CreateGroup(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::CreateGroupResponse`

Parameters:

  • request:

    Request instance for CreateGroup.



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

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

#CreateMessageReceiver(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::CreateMessageReceiverResponse`

Parameters:

  • request:

    Request instance for CreateMessageReceiver.



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

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

#CreateOIDCConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::CreateOIDCConfigResponse`

Parameters:

  • request:

    Request instance for CreateOIDCConfig.



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

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

#CreatePolicy(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::CreatePolicyResponse`

Parameters:

  • request:

    Request instance for CreatePolicy.



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

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

#CreatePolicyVersion(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::CreatePolicyVersionResponse`

Parameters:

  • request:

    Request instance for CreatePolicyVersion.



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

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

#CreateRole(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::CreateRoleResponse`

Parameters:

  • request:

    Request instance for CreateRole.



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

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

#CreateSAMLProvider(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::CreateSAMLProviderResponse`

Parameters:

  • request:

    Request instance for CreateSAMLProvider.



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

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

#CreateServiceLinkedRole(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::CreateServiceLinkedRoleResponse`

Parameters:

  • request:

    Request instance for CreateServiceLinkedRole.



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

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

#CreateUserOIDCConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::CreateUserOIDCConfigResponse`

Parameters:

  • request:

    Request instance for CreateUserOIDCConfig.



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

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

#CreateUserSAMLConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::CreateUserSAMLConfigResponse`

Parameters:

  • request:

    Request instance for CreateUserSAMLConfig.



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

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

#DeleteAccessKey(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DeleteAccessKeyResponse`

Parameters:

  • request:

    Request instance for DeleteAccessKey.



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

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

#DeleteGroup(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DeleteGroupResponse`

Parameters:

  • request:

    Request instance for DeleteGroup.



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

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

#DeleteMessageReceiver(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DeleteMessageReceiverResponse`

Parameters:

  • request:

    Request instance for DeleteMessageReceiver.



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

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

#DeleteOIDCConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DeleteOIDCConfigResponse`

Parameters:

  • request:

    Request instance for DeleteOIDCConfig.



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

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

#DeletePolicy(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DeletePolicyResponse`

Parameters:

  • request:

    Request instance for DeletePolicy.



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

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

#DeletePolicyVersion(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DeletePolicyVersionResponse`

Parameters:

  • request:

    Request instance for DeletePolicyVersion.



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

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

#DeleteRole(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DeleteRoleResponse`

Parameters:

  • request:

    Request instance for DeleteRole.



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

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

#DeleteRolePermissionsBoundary(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DeleteRolePermissionsBoundaryResponse`

Parameters:

  • request:

    Request instance for DeleteRolePermissionsBoundary.



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

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

#DeleteSAMLProvider(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DeleteSAMLProviderResponse`

Parameters:

  • request:

    Request instance for DeleteSAMLProvider.



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

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

#DeleteServiceLinkedRole(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DeleteServiceLinkedRoleResponse`

Parameters:

  • request:

    Request instance for DeleteServiceLinkedRole.



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

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

#DeleteUser(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DeleteUserResponse`

Parameters:

  • request:

    Request instance for DeleteUser.



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

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

#DeleteUserPermissionsBoundary(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DeleteUserPermissionsBoundaryResponse`

Parameters:

  • request:

    Request instance for DeleteUserPermissionsBoundary.



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

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

#DescribeOIDCConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DescribeOIDCConfigResponse`

Parameters:

  • request:

    Request instance for DescribeOIDCConfig.



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

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

#DescribeRoleList(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DescribeRoleListResponse`

Parameters:

  • request:

    Request instance for DescribeRoleList.



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

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

#DescribeSafeAuthFlag(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DescribeSafeAuthFlagResponse`

Parameters:

  • request:

    Request instance for DescribeSafeAuthFlag.



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

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

#DescribeSafeAuthFlagColl(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DescribeSafeAuthFlagCollResponse`

Parameters:

  • request:

    Request instance for DescribeSafeAuthFlagColl.



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

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

#DescribeSafeAuthFlagIntl(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DescribeSafeAuthFlagIntlResponse`

Parameters:

  • request:

    Request instance for DescribeSafeAuthFlagIntl.



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

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

#DescribeSubAccounts(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DescribeSubAccountsResponse`

Parameters:

  • request:

    Request instance for DescribeSubAccounts.



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

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

#DescribeUserOIDCConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DescribeUserOIDCConfigResponse`

Parameters:

  • request:

    Request instance for DescribeUserOIDCConfig.



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

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

#DescribeUserSAMLConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DescribeUserSAMLConfigResponse`

Parameters:

  • request:

    Request instance for DescribeUserSAMLConfig.



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

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

#DetachGroupPolicy(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DetachGroupPolicyResponse`

Parameters:

  • request:

    Request instance for DetachGroupPolicy.



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

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

#DetachRolePolicy(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DetachRolePolicyResponse`

Parameters:

  • request:

    Request instance for DetachRolePolicy.



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

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

#DetachUserPolicy(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DetachUserPolicyResponse`

Parameters:

  • request:

    Request instance for DetachUserPolicy.



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

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

#DisableUserSSO(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::DisableUserSSOResponse`

Parameters:

  • request:

    Request instance for DisableUserSSO.



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

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

#GetAccountSummary(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::GetAccountSummaryResponse`

Parameters:

  • request:

    Request instance for GetAccountSummary.



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

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

#GetCustomMFATokenInfo(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::GetCustomMFATokenInfoResponse`

Parameters:

  • request:

    Request instance for GetCustomMFATokenInfo.



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

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

#GetGroup(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::GetGroupResponse`

Parameters:

  • request:

    Request instance for GetGroup.



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

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

#GetPolicy(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::GetPolicyResponse`

Parameters:

  • request:

    Request instance for GetPolicy.



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

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

#GetPolicyVersion(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::GetPolicyVersionResponse`

Parameters:

  • request:

    Request instance for GetPolicyVersion.



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

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

#GetRole(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::GetRoleResponse`

Parameters:

  • request:

    Request instance for GetRole.



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

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

#GetRolePermissionBoundary(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::GetRolePermissionBoundaryResponse`

Parameters:

  • request:

    Request instance for GetRolePermissionBoundary.



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

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

#GetSAMLProvider(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::GetSAMLProviderResponse`

Parameters:

  • request:

    Request instance for GetSAMLProvider.



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

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

#GetSecurityLastUsed(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::GetSecurityLastUsedResponse`

Parameters:

  • request:

    Request instance for GetSecurityLastUsed.



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

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

#GetServiceLinkedRoleDeletionStatus(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::GetServiceLinkedRoleDeletionStatusResponse`

Parameters:

  • request:

    Request instance for GetServiceLinkedRoleDeletionStatus.



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

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

#GetUser(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::GetUserResponse`

Parameters:

  • request:

    Request instance for GetUser.



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

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

#GetUserAppId(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::GetUserAppIdResponse`

Parameters:

  • request:

    Request instance for GetUserAppId.



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

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

#GetUserPermissionBoundary(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::GetUserPermissionBoundaryResponse`

Parameters:

  • request:

    Request instance for GetUserPermissionBoundary.



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

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

#ListAccessKeys(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::ListAccessKeysResponse`

Parameters:

  • request:

    Request instance for ListAccessKeys.



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

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

#ListAttachedGroupPolicies(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::ListAttachedGroupPoliciesResponse`

Parameters:

  • request:

    Request instance for ListAttachedGroupPolicies.



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

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

#ListAttachedRolePolicies(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::ListAttachedRolePoliciesResponse`

Parameters:

  • request:

    Request instance for ListAttachedRolePolicies.



1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
# File 'lib/v20190116/client.rb', line 1406

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

#ListAttachedUserAllPolicies(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::ListAttachedUserAllPoliciesResponse`

Parameters:

  • request:

    Request instance for ListAttachedUserAllPolicies.



1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
# File 'lib/v20190116/client.rb', line 1430

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

#ListAttachedUserPolicies(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::ListAttachedUserPoliciesResponse`

Parameters:

  • request:

    Request instance for ListAttachedUserPolicies.



1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
# File 'lib/v20190116/client.rb', line 1454

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

#ListCollaborators(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::ListCollaboratorsResponse`

Parameters:

  • request:

    Request instance for ListCollaborators.



1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
# File 'lib/v20190116/client.rb', line 1478

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

#ListEntitiesForPolicy(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::ListEntitiesForPolicyResponse`

Parameters:

  • request:

    Request instance for ListEntitiesForPolicy.



1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
# File 'lib/v20190116/client.rb', line 1502

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

#ListGroups(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::ListGroupsResponse`

Parameters:

  • request:

    Request instance for ListGroups.



1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
# File 'lib/v20190116/client.rb', line 1526

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

#ListGroupsForUser(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::ListGroupsForUserResponse`

Parameters:

  • request:

    Request instance for ListGroupsForUser.



1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
# File 'lib/v20190116/client.rb', line 1550

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

#ListPolicies(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::ListPoliciesResponse`

Parameters:

  • request:

    Request instance for ListPolicies.



1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
# File 'lib/v20190116/client.rb', line 1574

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

#ListPoliciesGrantingServiceAccess(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::ListPoliciesGrantingServiceAccessResponse`

Parameters:

  • request:

    Request instance for ListPoliciesGrantingServiceAccess.



1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
# File 'lib/v20190116/client.rb', line 1598

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

#ListPolicyVersions(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::ListPolicyVersionsResponse`

Parameters:

  • request:

    Request instance for ListPolicyVersions.



1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
# File 'lib/v20190116/client.rb', line 1622

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

#ListReceiver(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::ListReceiverResponse`

Parameters:

  • request:

    Request instance for ListReceiver.



1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
# File 'lib/v20190116/client.rb', line 1646

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

#ListSAMLProviders(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::ListSAMLProvidersResponse`

Parameters:

  • request:

    Request instance for ListSAMLProviders.



1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
# File 'lib/v20190116/client.rb', line 1670

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

#ListUsers(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::ListUsersResponse`

Parameters:

  • request:

    Request instance for ListUsers.



1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
# File 'lib/v20190116/client.rb', line 1694

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

#ListUsersForGroup(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::ListUsersForGroupResponse`

Parameters:

  • request:

    Request instance for ListUsersForGroup.



1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
# File 'lib/v20190116/client.rb', line 1718

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

#ListWeChatWorkSubAccounts(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::ListWeChatWorkSubAccountsResponse`

Parameters:

  • request:

    Request instance for ListWeChatWorkSubAccounts.



1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
# File 'lib/v20190116/client.rb', line 1742

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

#PutRolePermissionsBoundary(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::PutRolePermissionsBoundaryResponse`

Parameters:

  • request:

    Request instance for PutRolePermissionsBoundary.



1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
# File 'lib/v20190116/client.rb', line 1766

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

#PutUserPermissionsBoundary(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::PutUserPermissionsBoundaryResponse`

Parameters:

  • request:

    Request instance for PutUserPermissionsBoundary.



1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
# File 'lib/v20190116/client.rb', line 1790

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

#RemoveUserFromGroup(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::RemoveUserFromGroupResponse`

Parameters:

  • request:

    Request instance for RemoveUserFromGroup.



1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
# File 'lib/v20190116/client.rb', line 1814

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

#SetDefaultPolicyVersion(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::SetDefaultPolicyVersionResponse`

Parameters:

  • request:

    Request instance for SetDefaultPolicyVersion.



1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
# File 'lib/v20190116/client.rb', line 1838

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

#SetMfaFlag(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::SetMfaFlagResponse`

Parameters:

  • request:

    Request instance for SetMfaFlag.



1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
# File 'lib/v20190116/client.rb', line 1862

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

#TagRole(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::TagRoleResponse`

Parameters:

  • request:

    Request instance for TagRole.



1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
# File 'lib/v20190116/client.rb', line 1886

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

#UntagRole(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::UntagRoleResponse`

Parameters:

  • request:

    Request instance for UntagRole.



1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
# File 'lib/v20190116/client.rb', line 1910

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

#UpdateAccessKey(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::UpdateAccessKeyResponse`

Parameters:

  • request:

    Request instance for UpdateAccessKey.



1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
# File 'lib/v20190116/client.rb', line 1934

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

#UpdateAssumeRolePolicy(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::UpdateAssumeRolePolicyResponse`

Parameters:

  • request:

    Request instance for UpdateAssumeRolePolicy.



1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
# File 'lib/v20190116/client.rb', line 1958

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

#UpdateGroup(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::UpdateGroupResponse`

Parameters:

  • request:

    Request instance for UpdateGroup.



1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
# File 'lib/v20190116/client.rb', line 1982

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

#UpdateOIDCConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::UpdateOIDCConfigResponse`

Parameters:

  • request:

    Request instance for UpdateOIDCConfig.



2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
# File 'lib/v20190116/client.rb', line 2006

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

#UpdatePolicy(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::UpdatePolicyResponse`

Parameters:

  • request:

    Request instance for UpdatePolicy.



2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
# File 'lib/v20190116/client.rb', line 2031

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

#UpdateRoleConsoleLogin(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::UpdateRoleConsoleLoginResponse`

Parameters:

  • request:

    Request instance for UpdateRoleConsoleLogin.



2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
# File 'lib/v20190116/client.rb', line 2055

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

#UpdateRoleDescription(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::UpdateRoleDescriptionResponse`

Parameters:

  • request:

    Request instance for UpdateRoleDescription.



2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
# File 'lib/v20190116/client.rb', line 2079

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

#UpdateSAMLProvider(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::UpdateSAMLProviderResponse`

Parameters:

  • request:

    Request instance for UpdateSAMLProvider.



2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
# File 'lib/v20190116/client.rb', line 2103

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

#UpdateUser(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::UpdateUserResponse`

Parameters:

  • request:

    Request instance for UpdateUser.



2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
# File 'lib/v20190116/client.rb', line 2127

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

#UpdateUserOIDCConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::UpdateUserOIDCConfigResponse`

Parameters:

  • request:

    Request instance for UpdateUserOIDCConfig.



2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
# File 'lib/v20190116/client.rb', line 2151

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

#UpdateUserSAMLConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cam::V20190116::UpdateUserSAMLConfigResponse`

Parameters:

  • request:

    Request instance for UpdateUserSAMLConfig.



2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
# File 'lib/v20190116/client.rb', line 2175

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