huaweicloudsdkram 3.1.84__py2.py3-none-any.whl → 3.1.86__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,12 @@ class PermissionSummary:
22
22
  'resource_type': 'str',
23
23
  'is_resource_type_default': 'bool',
24
24
  'created_at': 'datetime',
25
- 'updated_at': 'datetime'
25
+ 'updated_at': 'datetime',
26
+ 'permission_urn': 'str',
27
+ 'permission_type': 'str',
28
+ 'default_version': 'bool',
29
+ 'version': 'int',
30
+ 'status': 'str'
26
31
  }
27
32
 
28
33
  attribute_map = {
@@ -31,10 +36,15 @@ class PermissionSummary:
31
36
  'resource_type': 'resource_type',
32
37
  'is_resource_type_default': 'is_resource_type_default',
33
38
  'created_at': 'created_at',
34
- 'updated_at': 'updated_at'
39
+ 'updated_at': 'updated_at',
40
+ 'permission_urn': 'permission_urn',
41
+ 'permission_type': 'permission_type',
42
+ 'default_version': 'default_version',
43
+ 'version': 'version',
44
+ 'status': 'status'
35
45
  }
36
46
 
37
- def __init__(self, id=None, name=None, resource_type=None, is_resource_type_default=None, created_at=None, updated_at=None):
47
+ def __init__(self, id=None, name=None, resource_type=None, is_resource_type_default=None, created_at=None, updated_at=None, permission_urn=None, permission_type=None, default_version=None, version=None, status=None):
38
48
  """PermissionSummary
39
49
 
40
50
  The model defined in huaweicloud sdk
@@ -51,6 +61,16 @@ class PermissionSummary:
51
61
  :type created_at: datetime
52
62
  :param updated_at: 上次更新权限的时间。
53
63
  :type updated_at: datetime
64
+ :param permission_urn: 权限URN。
65
+ :type permission_urn: str
66
+ :param permission_type: 权限类型,RAM托管或者租户自定义权限。
67
+ :type permission_type: str
68
+ :param default_version: 是否是默认版本。
69
+ :type default_version: bool
70
+ :param version: 权限版本。
71
+ :type version: int
72
+ :param status: 权限的状态
73
+ :type status: str
54
74
  """
55
75
 
56
76
 
@@ -61,6 +81,11 @@ class PermissionSummary:
61
81
  self._is_resource_type_default = None
62
82
  self._created_at = None
63
83
  self._updated_at = None
84
+ self._permission_urn = None
85
+ self._permission_type = None
86
+ self._default_version = None
87
+ self._version = None
88
+ self._status = None
64
89
  self.discriminator = None
65
90
 
66
91
  self.id = id
@@ -69,6 +94,16 @@ class PermissionSummary:
69
94
  self.is_resource_type_default = is_resource_type_default
70
95
  self.created_at = created_at
71
96
  self.updated_at = updated_at
97
+ if permission_urn is not None:
98
+ self.permission_urn = permission_urn
99
+ if permission_type is not None:
100
+ self.permission_type = permission_type
101
+ if default_version is not None:
102
+ self.default_version = default_version
103
+ if version is not None:
104
+ self.version = version
105
+ if status is not None:
106
+ self.status = status
72
107
 
73
108
  @property
74
109
  def id(self):
@@ -202,6 +237,116 @@ class PermissionSummary:
202
237
  """
203
238
  self._updated_at = updated_at
204
239
 
240
+ @property
241
+ def permission_urn(self):
242
+ """Gets the permission_urn of this PermissionSummary.
243
+
244
+ 权限URN。
245
+
246
+ :return: The permission_urn of this PermissionSummary.
247
+ :rtype: str
248
+ """
249
+ return self._permission_urn
250
+
251
+ @permission_urn.setter
252
+ def permission_urn(self, permission_urn):
253
+ """Sets the permission_urn of this PermissionSummary.
254
+
255
+ 权限URN。
256
+
257
+ :param permission_urn: The permission_urn of this PermissionSummary.
258
+ :type permission_urn: str
259
+ """
260
+ self._permission_urn = permission_urn
261
+
262
+ @property
263
+ def permission_type(self):
264
+ """Gets the permission_type of this PermissionSummary.
265
+
266
+ 权限类型,RAM托管或者租户自定义权限。
267
+
268
+ :return: The permission_type of this PermissionSummary.
269
+ :rtype: str
270
+ """
271
+ return self._permission_type
272
+
273
+ @permission_type.setter
274
+ def permission_type(self, permission_type):
275
+ """Sets the permission_type of this PermissionSummary.
276
+
277
+ 权限类型,RAM托管或者租户自定义权限。
278
+
279
+ :param permission_type: The permission_type of this PermissionSummary.
280
+ :type permission_type: str
281
+ """
282
+ self._permission_type = permission_type
283
+
284
+ @property
285
+ def default_version(self):
286
+ """Gets the default_version of this PermissionSummary.
287
+
288
+ 是否是默认版本。
289
+
290
+ :return: The default_version of this PermissionSummary.
291
+ :rtype: bool
292
+ """
293
+ return self._default_version
294
+
295
+ @default_version.setter
296
+ def default_version(self, default_version):
297
+ """Sets the default_version of this PermissionSummary.
298
+
299
+ 是否是默认版本。
300
+
301
+ :param default_version: The default_version of this PermissionSummary.
302
+ :type default_version: bool
303
+ """
304
+ self._default_version = default_version
305
+
306
+ @property
307
+ def version(self):
308
+ """Gets the version of this PermissionSummary.
309
+
310
+ 权限版本。
311
+
312
+ :return: The version of this PermissionSummary.
313
+ :rtype: int
314
+ """
315
+ return self._version
316
+
317
+ @version.setter
318
+ def version(self, version):
319
+ """Sets the version of this PermissionSummary.
320
+
321
+ 权限版本。
322
+
323
+ :param version: The version of this PermissionSummary.
324
+ :type version: int
325
+ """
326
+ self._version = version
327
+
328
+ @property
329
+ def status(self):
330
+ """Gets the status of this PermissionSummary.
331
+
332
+ 权限的状态
333
+
334
+ :return: The status of this PermissionSummary.
335
+ :rtype: str
336
+ """
337
+ return self._status
338
+
339
+ @status.setter
340
+ def status(self, status):
341
+ """Sets the status of this PermissionSummary.
342
+
343
+ 权限的状态
344
+
345
+ :param status: The status of this PermissionSummary.
346
+ :type status: str
347
+ """
348
+ self._status = status
349
+
205
350
  def to_dict(self):
206
351
  """Returns the model properties as a dict"""
207
352
  result = {}
@@ -37,7 +37,7 @@ class Quotas:
37
37
 
38
38
  The model defined in huaweicloud sdk
39
39
 
40
- :param type: 配额类型。resource_share帐号创建资源共享的数量,resource_association资源共享关联的资源数量,principal_association资源共享关联的身份数量,permission_association资源共享关联的权限数量,tag_association资源共享关联的标签数量。
40
+ :param type: 配额类型。resource_share账号创建资源共享的数量,resource_association资源共享关联的资源数量,principal_association资源共享关联的身份数量,permission_association资源共享关联的权限数量,tag_association资源共享关联的标签数量。
41
41
  :type type: str
42
42
  :param quota: 总配额数量。
43
43
  :type quota: int
@@ -68,7 +68,7 @@ class Quotas:
68
68
  def type(self):
69
69
  """Gets the type of this Quotas.
70
70
 
71
- 配额类型。resource_share帐号创建资源共享的数量,resource_association资源共享关联的资源数量,principal_association资源共享关联的身份数量,permission_association资源共享关联的权限数量,tag_association资源共享关联的标签数量。
71
+ 配额类型。resource_share账号创建资源共享的数量,resource_association资源共享关联的资源数量,principal_association资源共享关联的身份数量,permission_association资源共享关联的权限数量,tag_association资源共享关联的标签数量。
72
72
 
73
73
  :return: The type of this Quotas.
74
74
  :rtype: str
@@ -79,7 +79,7 @@ class Quotas:
79
79
  def type(self, type):
80
80
  """Sets the type of this Quotas.
81
81
 
82
- 配额类型。resource_share帐号创建资源共享的数量,resource_association资源共享关联的资源数量,principal_association资源共享关联的身份数量,permission_association资源共享关联的权限数量,tag_association资源共享关联的标签数量。
82
+ 配额类型。resource_share账号创建资源共享的数量,resource_association资源共享关联的资源数量,principal_association资源共享关联的身份数量,permission_association资源共享关联的权限数量,tag_association资源共享关联的标签数量。
83
83
 
84
84
  :param type: The type of this Quotas.
85
85
  :type type: str
@@ -45,7 +45,7 @@ class ResourceShareAssociation:
45
45
 
46
46
  The model defined in huaweicloud sdk
47
47
 
48
- :param associated_entity: 绑定的实体。这可以是共享资源的URN、帐号ID、共享资源目录的URN或文件夹的URN之一。
48
+ :param associated_entity: 绑定的实体。这可以是共享资源的URN、账号ID、组织根的URN或OU的URN之一。
49
49
  :type associated_entity: str
50
50
  :param association_type: 绑定中包含的实体类型。
51
51
  :type association_type: str
@@ -94,7 +94,7 @@ class ResourceShareAssociation:
94
94
  def associated_entity(self):
95
95
  """Gets the associated_entity of this ResourceShareAssociation.
96
96
 
97
- 绑定的实体。这可以是共享资源的URN、帐号ID、共享资源目录的URN或文件夹的URN之一。
97
+ 绑定的实体。这可以是共享资源的URN、账号ID、组织根的URN或OU的URN之一。
98
98
 
99
99
  :return: The associated_entity of this ResourceShareAssociation.
100
100
  :rtype: str
@@ -105,7 +105,7 @@ class ResourceShareAssociation:
105
105
  def associated_entity(self, associated_entity):
106
106
  """Sets the associated_entity of this ResourceShareAssociation.
107
107
 
108
- 绑定的实体。这可以是共享资源的URN、帐号ID、共享资源目录的URN或文件夹的URN之一。
108
+ 绑定的实体。这可以是共享资源的URN、账号ID、组织根的URN或OU的URN之一。
109
109
 
110
110
  :param associated_entity: The associated_entity of this ResourceShareAssociation.
111
111
  :type associated_entity: str
@@ -43,7 +43,7 @@ class ResourceShareInvitation:
43
43
 
44
44
  The model defined in huaweicloud sdk
45
45
 
46
- :param receiver_account_id: 接收资源共享邀请的帐号ID。
46
+ :param receiver_account_id: 接收资源共享邀请的账号ID。
47
47
  :type receiver_account_id: str
48
48
  :param resource_share_id: 资源共享实例的ID。
49
49
  :type resource_share_id: str
@@ -51,7 +51,7 @@ class ResourceShareInvitation:
51
51
  :type resource_share_name: str
52
52
  :param resource_share_invitation_id: 资源共享邀请的ID。
53
53
  :type resource_share_invitation_id: str
54
- :param sender_account_id: 发送资源共享邀请的帐号ID。
54
+ :param sender_account_id: 发送资源共享邀请的账号ID。
55
55
  :type sender_account_id: str
56
56
  :param status: 资源共享邀请的当前状态。
57
57
  :type status: str
@@ -94,7 +94,7 @@ class ResourceShareInvitation:
94
94
  def receiver_account_id(self):
95
95
  """Gets the receiver_account_id of this ResourceShareInvitation.
96
96
 
97
- 接收资源共享邀请的帐号ID。
97
+ 接收资源共享邀请的账号ID。
98
98
 
99
99
  :return: The receiver_account_id of this ResourceShareInvitation.
100
100
  :rtype: str
@@ -105,7 +105,7 @@ class ResourceShareInvitation:
105
105
  def receiver_account_id(self, receiver_account_id):
106
106
  """Sets the receiver_account_id of this ResourceShareInvitation.
107
107
 
108
- 接收资源共享邀请的帐号ID。
108
+ 接收资源共享邀请的账号ID。
109
109
 
110
110
  :param receiver_account_id: The receiver_account_id of this ResourceShareInvitation.
111
111
  :type receiver_account_id: str
@@ -182,7 +182,7 @@ class ResourceShareInvitation:
182
182
  def sender_account_id(self):
183
183
  """Gets the sender_account_id of this ResourceShareInvitation.
184
184
 
185
- 发送资源共享邀请的帐号ID。
185
+ 发送资源共享邀请的账号ID。
186
186
 
187
187
  :return: The sender_account_id of this ResourceShareInvitation.
188
188
  :rtype: str
@@ -193,7 +193,7 @@ class ResourceShareInvitation:
193
193
  def sender_account_id(self, sender_account_id):
194
194
  """Sets the sender_account_id of this ResourceShareInvitation.
195
195
 
196
- 发送资源共享邀请的帐号ID。
196
+ 发送资源共享邀请的账号ID。
197
197
 
198
198
  :param sender_account_id: The sender_account_id of this ResourceShareInvitation.
199
199
  :type sender_account_id: str
@@ -37,7 +37,7 @@ class SharedPrincipal:
37
37
 
38
38
  :param resource_share_id: 资源使用者绑定的资源共享实例的ID。
39
39
  :type resource_share_id: str
40
- :param id: 资源使用者的帐号ID或URN。
40
+ :param id: 资源使用者的账号ID或URN。
41
41
  :type id: str
42
42
  :param created_at: 资源使用者与资源共享实例关联的时间。
43
43
  :type created_at: datetime
@@ -88,7 +88,7 @@ class SharedPrincipal:
88
88
  def id(self):
89
89
  """Gets the id of this SharedPrincipal.
90
90
 
91
- 资源使用者的帐号ID或URN。
91
+ 资源使用者的账号ID或URN。
92
92
 
93
93
  :return: The id of this SharedPrincipal.
94
94
  :rtype: str
@@ -99,7 +99,7 @@ class SharedPrincipal:
99
99
  def id(self, id):
100
100
  """Sets the id of this SharedPrincipal.
101
101
 
102
- 资源使用者的帐号ID或URN。
102
+ 资源使用者的账号ID或URN。
103
103
 
104
104
  :param id: The id of this SharedPrincipal.
105
105
  :type id: str
@@ -17,28 +17,35 @@ class ShowPermissionRequest:
17
17
  sensitive_list = []
18
18
 
19
19
  openapi_types = {
20
- 'permission_id': 'str'
20
+ 'permission_id': 'str',
21
+ 'permission_version': 'int'
21
22
  }
22
23
 
23
24
  attribute_map = {
24
- 'permission_id': 'permission_id'
25
+ 'permission_id': 'permission_id',
26
+ 'permission_version': 'permission_version'
25
27
  }
26
28
 
27
- def __init__(self, permission_id=None):
29
+ def __init__(self, permission_id=None, permission_version=None):
28
30
  """ShowPermissionRequest
29
31
 
30
32
  The model defined in huaweicloud sdk
31
33
 
32
34
  :param permission_id: 共享资源权限的ID。
33
35
  :type permission_id: str
36
+ :param permission_version: 资源权限版本。
37
+ :type permission_version: int
34
38
  """
35
39
 
36
40
 
37
41
 
38
42
  self._permission_id = None
43
+ self._permission_version = None
39
44
  self.discriminator = None
40
45
 
41
46
  self.permission_id = permission_id
47
+ if permission_version is not None:
48
+ self.permission_version = permission_version
42
49
 
43
50
  @property
44
51
  def permission_id(self):
@@ -62,6 +69,28 @@ class ShowPermissionRequest:
62
69
  """
63
70
  self._permission_id = permission_id
64
71
 
72
+ @property
73
+ def permission_version(self):
74
+ """Gets the permission_version of this ShowPermissionRequest.
75
+
76
+ 资源权限版本。
77
+
78
+ :return: The permission_version of this ShowPermissionRequest.
79
+ :rtype: int
80
+ """
81
+ return self._permission_version
82
+
83
+ @permission_version.setter
84
+ def permission_version(self, permission_version):
85
+ """Sets the permission_version of this ShowPermissionRequest.
86
+
87
+ 资源权限版本。
88
+
89
+ :param permission_version: The permission_version of this ShowPermissionRequest.
90
+ :type permission_version: int
91
+ """
92
+ self._permission_version = permission_version
93
+
65
94
  def to_dict(self):
66
95
  """Returns the model properties as a dict"""
67
96
  result = {}
@@ -240,7 +240,7 @@ class RamAsyncClient(Client):
240
240
  def list_quota_async(self, request):
241
241
  """查询资源共享的配额
242
242
 
243
- 查询当前帐号的资源共享配额信息。
243
+ 查询当前账号的资源共享配额信息。
244
244
 
245
245
  Please refer to HUAWEI cloud API Explorer for details.
246
246
 
@@ -556,6 +556,75 @@ class RamAsyncClient(Client):
556
556
 
557
557
  return http_info
558
558
 
559
+ def list_permission_versions_async(self, request):
560
+ """获取权限的所有版本
561
+
562
+ 获取权限的所有版本。
563
+
564
+ Please refer to HUAWEI cloud API Explorer for details.
565
+
566
+
567
+ :param request: Request instance for ListPermissionVersions
568
+ :type request: :class:`huaweicloudsdkram.v1.ListPermissionVersionsRequest`
569
+ :rtype: :class:`huaweicloudsdkram.v1.ListPermissionVersionsResponse`
570
+ """
571
+ http_info = self._list_permission_versions_http_info(request)
572
+ return self._call_api(**http_info)
573
+
574
+ def list_permission_versions_async_invoker(self, request):
575
+ http_info = self._list_permission_versions_http_info(request)
576
+ return AsyncInvoker(self, http_info)
577
+
578
+ def _list_permission_versions_http_info(self, request):
579
+ http_info = {
580
+ "method": "GET",
581
+ "resource_path": "/v1/permissions/{permission_id}/versions",
582
+ "request_type": request.__class__.__name__,
583
+ "response_type": "ListPermissionVersionsResponse"
584
+ }
585
+
586
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
587
+
588
+ cname = None
589
+
590
+ collection_formats = {}
591
+
592
+ path_params = {}
593
+ if 'permission_id' in local_var_params:
594
+ path_params['permission_id'] = local_var_params['permission_id']
595
+
596
+ query_params = []
597
+ if 'limit' in local_var_params:
598
+ query_params.append(('limit', local_var_params['limit']))
599
+ if 'marker' in local_var_params:
600
+ query_params.append(('marker', local_var_params['marker']))
601
+
602
+ header_params = {}
603
+
604
+ form_params = {}
605
+
606
+ body = None
607
+ if isinstance(request, SdkStreamRequest):
608
+ body = request.get_file_stream()
609
+
610
+ response_headers = []
611
+
612
+ header_params['Content-Type'] = http_utils.select_header_content_type(
613
+ ['application/json'])
614
+
615
+ auth_settings = []
616
+
617
+ http_info["cname"] = cname
618
+ http_info["collection_formats"] = collection_formats
619
+ http_info["path_params"] = path_params
620
+ http_info["query_params"] = query_params
621
+ http_info["header_params"] = header_params
622
+ http_info["post_params"] = form_params
623
+ http_info["body"] = body
624
+ http_info["response_headers"] = response_headers
625
+
626
+ return http_info
627
+
559
628
  def list_permissions_async(self, request):
560
629
  """检索共享资源权限列表
561
630
 
@@ -598,6 +667,8 @@ class RamAsyncClient(Client):
598
667
  query_params.append(('marker', local_var_params['marker']))
599
668
  if 'resource_type' in local_var_params:
600
669
  query_params.append(('resource_type', local_var_params['resource_type']))
670
+ if 'permission_type' in local_var_params:
671
+ query_params.append(('permission_type', local_var_params['permission_type']))
601
672
 
602
673
  header_params = {}
603
674
 
@@ -628,7 +699,7 @@ class RamAsyncClient(Client):
628
699
  def show_permission_async(self, request):
629
700
  """检索资源共享权限内容
630
701
 
631
- 检索指定资源类型的共享资源权限内容。
702
+ 检索指定资源类型的共享资源指定版本的权限内容,如果不指定权限版本,则返回默认版本的权限内容。
632
703
 
633
704
  Please refer to HUAWEI cloud API Explorer for details.
634
705
 
@@ -663,6 +734,8 @@ class RamAsyncClient(Client):
663
734
  path_params['permission_id'] = local_var_params['permission_id']
664
735
 
665
736
  query_params = []
737
+ if 'permission_version' in local_var_params:
738
+ query_params.append(('permission_version', local_var_params['permission_version']))
666
739
 
667
740
  header_params = {}
668
741
 
@@ -888,7 +961,7 @@ class RamAsyncClient(Client):
888
961
  def delete_resource_share_async(self, request):
889
962
  """删除资源共享实例
890
963
 
891
- 删除指定的资源共享实例。此操作不会删除实体资源,仅停止向其他帐号共享资源。
964
+ 删除指定的资源共享实例。此操作不会删除实体资源,仅停止向其他账号共享资源。
892
965
 
893
966
  Please refer to HUAWEI cloud API Explorer for details.
894
967
 
@@ -1284,7 +1357,7 @@ class RamAsyncClient(Client):
1284
1357
  def accept_resource_share_invitation_async(self, request):
1285
1358
  """接受共享邀请
1286
1359
 
1287
- 接受来自其他帐号的资源共享邀请。
1360
+ 接受来自其他账号的资源共享邀请。
1288
1361
 
1289
1362
  Please refer to HUAWEI cloud API Explorer for details.
1290
1363
 
@@ -1349,7 +1422,7 @@ class RamAsyncClient(Client):
1349
1422
  def reject_resource_share_invitation_async(self, request):
1350
1423
  """拒绝共享邀请
1351
1424
 
1352
- 拒绝来自其他帐号的资源共享邀请。
1425
+ 拒绝来自其他账号的资源共享邀请。
1353
1426
 
1354
1427
  Please refer to HUAWEI cloud API Explorer for details.
1355
1428
 
@@ -240,7 +240,7 @@ class RamClient(Client):
240
240
  def list_quota(self, request):
241
241
  """查询资源共享的配额
242
242
 
243
- 查询当前帐号的资源共享配额信息。
243
+ 查询当前账号的资源共享配额信息。
244
244
 
245
245
  Please refer to HUAWEI cloud API Explorer for details.
246
246
 
@@ -556,6 +556,75 @@ class RamClient(Client):
556
556
 
557
557
  return http_info
558
558
 
559
+ def list_permission_versions(self, request):
560
+ """获取权限的所有版本
561
+
562
+ 获取权限的所有版本。
563
+
564
+ Please refer to HUAWEI cloud API Explorer for details.
565
+
566
+ :param request: Request instance for ListPermissionVersions
567
+ :type request: :class:`huaweicloudsdkram.v1.ListPermissionVersionsRequest`
568
+ :rtype: :class:`huaweicloudsdkram.v1.ListPermissionVersionsResponse`
569
+ """
570
+ http_info = self._list_permission_versions_http_info(request)
571
+ return self._call_api(**http_info)
572
+
573
+ def list_permission_versions_invoker(self, request):
574
+ http_info = self._list_permission_versions_http_info(request)
575
+ return SyncInvoker(self, http_info)
576
+
577
+ @classmethod
578
+ def _list_permission_versions_http_info(cls, request):
579
+ http_info = {
580
+ "method": "GET",
581
+ "resource_path": "/v1/permissions/{permission_id}/versions",
582
+ "request_type": request.__class__.__name__,
583
+ "response_type": "ListPermissionVersionsResponse"
584
+ }
585
+
586
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
587
+
588
+ cname = None
589
+
590
+ collection_formats = {}
591
+
592
+ path_params = {}
593
+ if 'permission_id' in local_var_params:
594
+ path_params['permission_id'] = local_var_params['permission_id']
595
+
596
+ query_params = []
597
+ if 'limit' in local_var_params:
598
+ query_params.append(('limit', local_var_params['limit']))
599
+ if 'marker' in local_var_params:
600
+ query_params.append(('marker', local_var_params['marker']))
601
+
602
+ header_params = {}
603
+
604
+ form_params = {}
605
+
606
+ body = None
607
+ if isinstance(request, SdkStreamRequest):
608
+ body = request.get_file_stream()
609
+
610
+ response_headers = []
611
+
612
+ header_params['Content-Type'] = http_utils.select_header_content_type(
613
+ ['application/json'])
614
+
615
+ auth_settings = []
616
+
617
+ http_info["cname"] = cname
618
+ http_info["collection_formats"] = collection_formats
619
+ http_info["path_params"] = path_params
620
+ http_info["query_params"] = query_params
621
+ http_info["header_params"] = header_params
622
+ http_info["post_params"] = form_params
623
+ http_info["body"] = body
624
+ http_info["response_headers"] = response_headers
625
+
626
+ return http_info
627
+
559
628
  def list_permissions(self, request):
560
629
  """检索共享资源权限列表
561
630
 
@@ -598,6 +667,8 @@ class RamClient(Client):
598
667
  query_params.append(('marker', local_var_params['marker']))
599
668
  if 'resource_type' in local_var_params:
600
669
  query_params.append(('resource_type', local_var_params['resource_type']))
670
+ if 'permission_type' in local_var_params:
671
+ query_params.append(('permission_type', local_var_params['permission_type']))
601
672
 
602
673
  header_params = {}
603
674
 
@@ -628,7 +699,7 @@ class RamClient(Client):
628
699
  def show_permission(self, request):
629
700
  """检索资源共享权限内容
630
701
 
631
- 检索指定资源类型的共享资源权限内容。
702
+ 检索指定资源类型的共享资源指定版本的权限内容,如果不指定权限版本,则返回默认版本的权限内容。
632
703
 
633
704
  Please refer to HUAWEI cloud API Explorer for details.
634
705
 
@@ -663,6 +734,8 @@ class RamClient(Client):
663
734
  path_params['permission_id'] = local_var_params['permission_id']
664
735
 
665
736
  query_params = []
737
+ if 'permission_version' in local_var_params:
738
+ query_params.append(('permission_version', local_var_params['permission_version']))
666
739
 
667
740
  header_params = {}
668
741
 
@@ -888,7 +961,7 @@ class RamClient(Client):
888
961
  def delete_resource_share(self, request):
889
962
  """删除资源共享实例
890
963
 
891
- 删除指定的资源共享实例。此操作不会删除实体资源,仅停止向其他帐号共享资源。
964
+ 删除指定的资源共享实例。此操作不会删除实体资源,仅停止向其他账号共享资源。
892
965
 
893
966
  Please refer to HUAWEI cloud API Explorer for details.
894
967
 
@@ -1284,7 +1357,7 @@ class RamClient(Client):
1284
1357
  def accept_resource_share_invitation(self, request):
1285
1358
  """接受共享邀请
1286
1359
 
1287
- 接受来自其他帐号的资源共享邀请。
1360
+ 接受来自其他账号的资源共享邀请。
1288
1361
 
1289
1362
  Please refer to HUAWEI cloud API Explorer for details.
1290
1363
 
@@ -1349,7 +1422,7 @@ class RamClient(Client):
1349
1422
  def reject_resource_share_invitation(self, request):
1350
1423
  """拒绝共享邀请
1351
1424
 
1352
- 拒绝来自其他帐号的资源共享邀请。
1425
+ 拒绝来自其他账号的资源共享邀请。
1353
1426
 
1354
1427
  Please refer to HUAWEI cloud API Explorer for details.
1355
1428
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkram
3
- Version: 3.1.84
3
+ Version: 3.1.86
4
4
  Summary: RAM
5
5
  Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
6
6
  Author: HuaweiCloud SDK
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
22
22
  Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Requires-Dist: huaweicloudsdkcore >=3.1.84
25
+ Requires-Dist: huaweicloudsdkcore >=3.1.86
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).