huaweicloudsdkram 3.1.85__py2.py3-none-any.whl → 3.1.132__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- huaweicloudsdkram/v1/__init__.py +2 -0
- huaweicloudsdkram/v1/model/__init__.py +2 -0
- huaweicloudsdkram/v1/model/accept_resource_share_invitation_request.py +31 -1
- huaweicloudsdkram/v1/model/associate_permission_req_body.py +31 -31
- huaweicloudsdkram/v1/model/associate_resource_share_permission_request.py +31 -1
- huaweicloudsdkram/v1/model/associate_resource_share_request.py +31 -1
- huaweicloudsdkram/v1/model/batch_create_resource_share_tags_request.py +31 -1
- huaweicloudsdkram/v1/model/batch_delete_resource_share_tags_request.py +31 -1
- huaweicloudsdkram/v1/model/create_resource_share_request.py +31 -1
- huaweicloudsdkram/v1/model/delete_resource_share_request.py +31 -1
- huaweicloudsdkram/v1/model/disable_organization_share_request.py +33 -1
- huaweicloudsdkram/v1/model/disassociate_resource_share_permission_request.py +31 -1
- huaweicloudsdkram/v1/model/disassociate_resource_share_request.py +31 -1
- huaweicloudsdkram/v1/model/enable_organization_share_request.py +33 -1
- huaweicloudsdkram/v1/model/list_permission_versions_request.py +202 -0
- huaweicloudsdkram/v1/model/list_permission_versions_response.py +141 -0
- huaweicloudsdkram/v1/model/list_permissions_request.py +62 -3
- huaweicloudsdkram/v1/model/list_quota_request.py +33 -1
- huaweicloudsdkram/v1/model/list_resource_share_permissions_request.py +31 -1
- huaweicloudsdkram/v1/model/list_resource_share_tags_request.py +33 -3
- huaweicloudsdkram/v1/model/list_resource_shares_by_tags_request.py +31 -1
- huaweicloudsdkram/v1/model/list_resource_types_request.py +31 -1
- huaweicloudsdkram/v1/model/permission.py +148 -3
- huaweicloudsdkram/v1/model/permission_summary.py +148 -3
- huaweicloudsdkram/v1/model/quotas.py +3 -3
- huaweicloudsdkram/v1/model/reject_resource_share_invitation_request.py +31 -1
- huaweicloudsdkram/v1/model/resource_share_association.py +3 -3
- huaweicloudsdkram/v1/model/resource_share_invitation.py +6 -6
- huaweicloudsdkram/v1/model/search_resource_share_associations_request.py +31 -1
- huaweicloudsdkram/v1/model/search_resource_share_count_by_tags_request.py +31 -1
- huaweicloudsdkram/v1/model/search_resource_share_invitation_request.py +31 -1
- huaweicloudsdkram/v1/model/search_resource_shares_request.py +31 -1
- huaweicloudsdkram/v1/model/search_shared_principals_request.py +31 -1
- huaweicloudsdkram/v1/model/search_shared_resources_request.py +31 -1
- huaweicloudsdkram/v1/model/shared_principal.py +3 -3
- huaweicloudsdkram/v1/model/show_organization_share_request.py +33 -1
- huaweicloudsdkram/v1/model/show_permission_request.py +62 -3
- huaweicloudsdkram/v1/model/update_resource_share_request.py +31 -1
- huaweicloudsdkram/v1/ram_async_client.py +136 -7
- huaweicloudsdkram/v1/ram_client.py +136 -7
- {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/RECORD +45 -43
- {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/top_level.txt +0 -0
@@ -72,6 +72,8 @@ class RamAsyncClient(Client):
|
|
72
72
|
query_params = []
|
73
73
|
|
74
74
|
header_params = {}
|
75
|
+
if 'x_security_token' in local_var_params:
|
76
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
75
77
|
|
76
78
|
form_params = {}
|
77
79
|
|
@@ -139,6 +141,8 @@ class RamAsyncClient(Client):
|
|
139
141
|
query_params = []
|
140
142
|
|
141
143
|
header_params = {}
|
144
|
+
if 'x_security_token' in local_var_params:
|
145
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
142
146
|
|
143
147
|
form_params = {}
|
144
148
|
|
@@ -212,6 +216,8 @@ class RamAsyncClient(Client):
|
|
212
216
|
query_params.append(('marker', local_var_params['marker']))
|
213
217
|
|
214
218
|
header_params = {}
|
219
|
+
if 'x_security_token' in local_var_params:
|
220
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
215
221
|
|
216
222
|
form_params = {}
|
217
223
|
|
@@ -240,7 +246,7 @@ class RamAsyncClient(Client):
|
|
240
246
|
def list_quota_async(self, request):
|
241
247
|
"""查询资源共享的配额
|
242
248
|
|
243
|
-
|
249
|
+
查询当前账号的资源共享配额信息。
|
244
250
|
|
245
251
|
Please refer to HUAWEI cloud API Explorer for details.
|
246
252
|
|
@@ -275,6 +281,8 @@ class RamAsyncClient(Client):
|
|
275
281
|
query_params = []
|
276
282
|
|
277
283
|
header_params = {}
|
284
|
+
if 'x_security_token' in local_var_params:
|
285
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
278
286
|
|
279
287
|
form_params = {}
|
280
288
|
|
@@ -342,6 +350,8 @@ class RamAsyncClient(Client):
|
|
342
350
|
query_params.append(('marker', local_var_params['marker']))
|
343
351
|
|
344
352
|
header_params = {}
|
353
|
+
if 'x_security_token' in local_var_params:
|
354
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
345
355
|
|
346
356
|
form_params = {}
|
347
357
|
|
@@ -405,6 +415,8 @@ class RamAsyncClient(Client):
|
|
405
415
|
query_params = []
|
406
416
|
|
407
417
|
header_params = {}
|
418
|
+
if 'x_security_token' in local_var_params:
|
419
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
408
420
|
|
409
421
|
form_params = {}
|
410
422
|
|
@@ -468,6 +480,8 @@ class RamAsyncClient(Client):
|
|
468
480
|
query_params = []
|
469
481
|
|
470
482
|
header_params = {}
|
483
|
+
if 'x_security_token' in local_var_params:
|
484
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
471
485
|
|
472
486
|
form_params = {}
|
473
487
|
|
@@ -531,6 +545,8 @@ class RamAsyncClient(Client):
|
|
531
545
|
query_params = []
|
532
546
|
|
533
547
|
header_params = {}
|
548
|
+
if 'x_security_token' in local_var_params:
|
549
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
534
550
|
|
535
551
|
form_params = {}
|
536
552
|
|
@@ -556,6 +572,77 @@ class RamAsyncClient(Client):
|
|
556
572
|
|
557
573
|
return http_info
|
558
574
|
|
575
|
+
def list_permission_versions_async(self, request):
|
576
|
+
"""获取权限的所有版本
|
577
|
+
|
578
|
+
获取权限的所有版本。
|
579
|
+
|
580
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
581
|
+
|
582
|
+
|
583
|
+
:param request: Request instance for ListPermissionVersions
|
584
|
+
:type request: :class:`huaweicloudsdkram.v1.ListPermissionVersionsRequest`
|
585
|
+
:rtype: :class:`huaweicloudsdkram.v1.ListPermissionVersionsResponse`
|
586
|
+
"""
|
587
|
+
http_info = self._list_permission_versions_http_info(request)
|
588
|
+
return self._call_api(**http_info)
|
589
|
+
|
590
|
+
def list_permission_versions_async_invoker(self, request):
|
591
|
+
http_info = self._list_permission_versions_http_info(request)
|
592
|
+
return AsyncInvoker(self, http_info)
|
593
|
+
|
594
|
+
def _list_permission_versions_http_info(self, request):
|
595
|
+
http_info = {
|
596
|
+
"method": "GET",
|
597
|
+
"resource_path": "/v1/permissions/{permission_id}/versions",
|
598
|
+
"request_type": request.__class__.__name__,
|
599
|
+
"response_type": "ListPermissionVersionsResponse"
|
600
|
+
}
|
601
|
+
|
602
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
603
|
+
|
604
|
+
cname = None
|
605
|
+
|
606
|
+
collection_formats = {}
|
607
|
+
|
608
|
+
path_params = {}
|
609
|
+
if 'permission_id' in local_var_params:
|
610
|
+
path_params['permission_id'] = local_var_params['permission_id']
|
611
|
+
|
612
|
+
query_params = []
|
613
|
+
if 'limit' in local_var_params:
|
614
|
+
query_params.append(('limit', local_var_params['limit']))
|
615
|
+
if 'marker' in local_var_params:
|
616
|
+
query_params.append(('marker', local_var_params['marker']))
|
617
|
+
|
618
|
+
header_params = {}
|
619
|
+
if 'x_security_token' in local_var_params:
|
620
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
621
|
+
|
622
|
+
form_params = {}
|
623
|
+
|
624
|
+
body = None
|
625
|
+
if isinstance(request, SdkStreamRequest):
|
626
|
+
body = request.get_file_stream()
|
627
|
+
|
628
|
+
response_headers = []
|
629
|
+
|
630
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
631
|
+
['application/json'])
|
632
|
+
|
633
|
+
auth_settings = []
|
634
|
+
|
635
|
+
http_info["cname"] = cname
|
636
|
+
http_info["collection_formats"] = collection_formats
|
637
|
+
http_info["path_params"] = path_params
|
638
|
+
http_info["query_params"] = query_params
|
639
|
+
http_info["header_params"] = header_params
|
640
|
+
http_info["post_params"] = form_params
|
641
|
+
http_info["body"] = body
|
642
|
+
http_info["response_headers"] = response_headers
|
643
|
+
|
644
|
+
return http_info
|
645
|
+
|
559
646
|
def list_permissions_async(self, request):
|
560
647
|
"""检索共享资源权限列表
|
561
648
|
|
@@ -598,8 +685,12 @@ class RamAsyncClient(Client):
|
|
598
685
|
query_params.append(('marker', local_var_params['marker']))
|
599
686
|
if 'resource_type' in local_var_params:
|
600
687
|
query_params.append(('resource_type', local_var_params['resource_type']))
|
688
|
+
if 'permission_type' in local_var_params:
|
689
|
+
query_params.append(('permission_type', local_var_params['permission_type']))
|
601
690
|
|
602
691
|
header_params = {}
|
692
|
+
if 'x_security_token' in local_var_params:
|
693
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
603
694
|
|
604
695
|
form_params = {}
|
605
696
|
|
@@ -628,7 +719,7 @@ class RamAsyncClient(Client):
|
|
628
719
|
def show_permission_async(self, request):
|
629
720
|
"""检索资源共享权限内容
|
630
721
|
|
631
|
-
|
722
|
+
检索指定资源类型的共享资源指定版本的权限内容,如果不指定权限版本,则返回默认版本的权限内容。
|
632
723
|
|
633
724
|
Please refer to HUAWEI cloud API Explorer for details.
|
634
725
|
|
@@ -663,8 +754,12 @@ class RamAsyncClient(Client):
|
|
663
754
|
path_params['permission_id'] = local_var_params['permission_id']
|
664
755
|
|
665
756
|
query_params = []
|
757
|
+
if 'permission_version' in local_var_params:
|
758
|
+
query_params.append(('permission_version', local_var_params['permission_version']))
|
666
759
|
|
667
760
|
header_params = {}
|
761
|
+
if 'x_security_token' in local_var_params:
|
762
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
668
763
|
|
669
764
|
form_params = {}
|
670
765
|
|
@@ -728,6 +823,8 @@ class RamAsyncClient(Client):
|
|
728
823
|
query_params = []
|
729
824
|
|
730
825
|
header_params = {}
|
826
|
+
if 'x_security_token' in local_var_params:
|
827
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
731
828
|
|
732
829
|
form_params = {}
|
733
830
|
|
@@ -793,6 +890,8 @@ class RamAsyncClient(Client):
|
|
793
890
|
query_params = []
|
794
891
|
|
795
892
|
header_params = {}
|
893
|
+
if 'x_security_token' in local_var_params:
|
894
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
796
895
|
|
797
896
|
form_params = {}
|
798
897
|
|
@@ -858,6 +957,8 @@ class RamAsyncClient(Client):
|
|
858
957
|
query_params = []
|
859
958
|
|
860
959
|
header_params = {}
|
960
|
+
if 'x_security_token' in local_var_params:
|
961
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
861
962
|
|
862
963
|
form_params = {}
|
863
964
|
|
@@ -888,7 +989,7 @@ class RamAsyncClient(Client):
|
|
888
989
|
def delete_resource_share_async(self, request):
|
889
990
|
"""删除资源共享实例
|
890
991
|
|
891
|
-
|
992
|
+
删除指定的资源共享实例。此操作不会删除实体资源,仅停止向其他账号共享资源。
|
892
993
|
|
893
994
|
Please refer to HUAWEI cloud API Explorer for details.
|
894
995
|
|
@@ -925,6 +1026,8 @@ class RamAsyncClient(Client):
|
|
925
1026
|
query_params = []
|
926
1027
|
|
927
1028
|
header_params = {}
|
1029
|
+
if 'x_security_token' in local_var_params:
|
1030
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
928
1031
|
|
929
1032
|
form_params = {}
|
930
1033
|
|
@@ -988,6 +1091,8 @@ class RamAsyncClient(Client):
|
|
988
1091
|
query_params = []
|
989
1092
|
|
990
1093
|
header_params = {}
|
1094
|
+
if 'x_security_token' in local_var_params:
|
1095
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
991
1096
|
|
992
1097
|
form_params = {}
|
993
1098
|
|
@@ -1055,6 +1160,8 @@ class RamAsyncClient(Client):
|
|
1055
1160
|
query_params = []
|
1056
1161
|
|
1057
1162
|
header_params = {}
|
1163
|
+
if 'x_security_token' in local_var_params:
|
1164
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
1058
1165
|
|
1059
1166
|
form_params = {}
|
1060
1167
|
|
@@ -1122,6 +1229,8 @@ class RamAsyncClient(Client):
|
|
1122
1229
|
query_params = []
|
1123
1230
|
|
1124
1231
|
header_params = {}
|
1232
|
+
if 'x_security_token' in local_var_params:
|
1233
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
1125
1234
|
|
1126
1235
|
form_params = {}
|
1127
1236
|
|
@@ -1150,9 +1259,9 @@ class RamAsyncClient(Client):
|
|
1150
1259
|
return http_info
|
1151
1260
|
|
1152
1261
|
def disassociate_resource_share_async(self, request):
|
1153
|
-
"""
|
1262
|
+
"""移除资源使用者或共享资源
|
1154
1263
|
|
1155
|
-
|
1264
|
+
将指定的资源使用者或共享资源从指定的资源共享实例中移除。资源使用者也可以从指定的资源共享实例中主动退出。
|
1156
1265
|
|
1157
1266
|
Please refer to HUAWEI cloud API Explorer for details.
|
1158
1267
|
|
@@ -1189,6 +1298,8 @@ class RamAsyncClient(Client):
|
|
1189
1298
|
query_params = []
|
1190
1299
|
|
1191
1300
|
header_params = {}
|
1301
|
+
if 'x_security_token' in local_var_params:
|
1302
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
1192
1303
|
|
1193
1304
|
form_params = {}
|
1194
1305
|
|
@@ -1254,6 +1365,8 @@ class RamAsyncClient(Client):
|
|
1254
1365
|
query_params = []
|
1255
1366
|
|
1256
1367
|
header_params = {}
|
1368
|
+
if 'x_security_token' in local_var_params:
|
1369
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
1257
1370
|
|
1258
1371
|
form_params = {}
|
1259
1372
|
|
@@ -1284,7 +1397,7 @@ class RamAsyncClient(Client):
|
|
1284
1397
|
def accept_resource_share_invitation_async(self, request):
|
1285
1398
|
"""接受共享邀请
|
1286
1399
|
|
1287
|
-
|
1400
|
+
接受来自其他账号的资源共享邀请。
|
1288
1401
|
|
1289
1402
|
Please refer to HUAWEI cloud API Explorer for details.
|
1290
1403
|
|
@@ -1321,6 +1434,8 @@ class RamAsyncClient(Client):
|
|
1321
1434
|
query_params = []
|
1322
1435
|
|
1323
1436
|
header_params = {}
|
1437
|
+
if 'x_security_token' in local_var_params:
|
1438
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
1324
1439
|
|
1325
1440
|
form_params = {}
|
1326
1441
|
|
@@ -1349,7 +1464,7 @@ class RamAsyncClient(Client):
|
|
1349
1464
|
def reject_resource_share_invitation_async(self, request):
|
1350
1465
|
"""拒绝共享邀请
|
1351
1466
|
|
1352
|
-
|
1467
|
+
拒绝来自其他账号的资源共享邀请。
|
1353
1468
|
|
1354
1469
|
Please refer to HUAWEI cloud API Explorer for details.
|
1355
1470
|
|
@@ -1386,6 +1501,8 @@ class RamAsyncClient(Client):
|
|
1386
1501
|
query_params = []
|
1387
1502
|
|
1388
1503
|
header_params = {}
|
1504
|
+
if 'x_security_token' in local_var_params:
|
1505
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
1389
1506
|
|
1390
1507
|
form_params = {}
|
1391
1508
|
|
@@ -1449,6 +1566,8 @@ class RamAsyncClient(Client):
|
|
1449
1566
|
query_params = []
|
1450
1567
|
|
1451
1568
|
header_params = {}
|
1569
|
+
if 'x_security_token' in local_var_params:
|
1570
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
1452
1571
|
|
1453
1572
|
form_params = {}
|
1454
1573
|
|
@@ -1516,6 +1635,8 @@ class RamAsyncClient(Client):
|
|
1516
1635
|
query_params = []
|
1517
1636
|
|
1518
1637
|
header_params = {}
|
1638
|
+
if 'x_security_token' in local_var_params:
|
1639
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
1519
1640
|
|
1520
1641
|
form_params = {}
|
1521
1642
|
|
@@ -1583,6 +1704,8 @@ class RamAsyncClient(Client):
|
|
1583
1704
|
query_params = []
|
1584
1705
|
|
1585
1706
|
header_params = {}
|
1707
|
+
if 'x_security_token' in local_var_params:
|
1708
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
1586
1709
|
|
1587
1710
|
form_params = {}
|
1588
1711
|
|
@@ -1652,6 +1775,8 @@ class RamAsyncClient(Client):
|
|
1652
1775
|
query_params.append(('marker', local_var_params['marker']))
|
1653
1776
|
|
1654
1777
|
header_params = {}
|
1778
|
+
if 'x_security_token' in local_var_params:
|
1779
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
1655
1780
|
|
1656
1781
|
form_params = {}
|
1657
1782
|
|
@@ -1719,6 +1844,8 @@ class RamAsyncClient(Client):
|
|
1719
1844
|
query_params.append(('offset', local_var_params['offset']))
|
1720
1845
|
|
1721
1846
|
header_params = {}
|
1847
|
+
if 'x_security_token' in local_var_params:
|
1848
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
1722
1849
|
|
1723
1850
|
form_params = {}
|
1724
1851
|
|
@@ -1784,6 +1911,8 @@ class RamAsyncClient(Client):
|
|
1784
1911
|
query_params = []
|
1785
1912
|
|
1786
1913
|
header_params = {}
|
1914
|
+
if 'x_security_token' in local_var_params:
|
1915
|
+
header_params['X-Security-Token'] = local_var_params['x_security_token']
|
1787
1916
|
|
1788
1917
|
form_params = {}
|
1789
1918
|
|