huaweicloudsdkram 3.1.85__py2.py3-none-any.whl → 3.1.132__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.
Files changed (45) hide show
  1. huaweicloudsdkram/v1/__init__.py +2 -0
  2. huaweicloudsdkram/v1/model/__init__.py +2 -0
  3. huaweicloudsdkram/v1/model/accept_resource_share_invitation_request.py +31 -1
  4. huaweicloudsdkram/v1/model/associate_permission_req_body.py +31 -31
  5. huaweicloudsdkram/v1/model/associate_resource_share_permission_request.py +31 -1
  6. huaweicloudsdkram/v1/model/associate_resource_share_request.py +31 -1
  7. huaweicloudsdkram/v1/model/batch_create_resource_share_tags_request.py +31 -1
  8. huaweicloudsdkram/v1/model/batch_delete_resource_share_tags_request.py +31 -1
  9. huaweicloudsdkram/v1/model/create_resource_share_request.py +31 -1
  10. huaweicloudsdkram/v1/model/delete_resource_share_request.py +31 -1
  11. huaweicloudsdkram/v1/model/disable_organization_share_request.py +33 -1
  12. huaweicloudsdkram/v1/model/disassociate_resource_share_permission_request.py +31 -1
  13. huaweicloudsdkram/v1/model/disassociate_resource_share_request.py +31 -1
  14. huaweicloudsdkram/v1/model/enable_organization_share_request.py +33 -1
  15. huaweicloudsdkram/v1/model/list_permission_versions_request.py +202 -0
  16. huaweicloudsdkram/v1/model/list_permission_versions_response.py +141 -0
  17. huaweicloudsdkram/v1/model/list_permissions_request.py +62 -3
  18. huaweicloudsdkram/v1/model/list_quota_request.py +33 -1
  19. huaweicloudsdkram/v1/model/list_resource_share_permissions_request.py +31 -1
  20. huaweicloudsdkram/v1/model/list_resource_share_tags_request.py +33 -3
  21. huaweicloudsdkram/v1/model/list_resource_shares_by_tags_request.py +31 -1
  22. huaweicloudsdkram/v1/model/list_resource_types_request.py +31 -1
  23. huaweicloudsdkram/v1/model/permission.py +148 -3
  24. huaweicloudsdkram/v1/model/permission_summary.py +148 -3
  25. huaweicloudsdkram/v1/model/quotas.py +3 -3
  26. huaweicloudsdkram/v1/model/reject_resource_share_invitation_request.py +31 -1
  27. huaweicloudsdkram/v1/model/resource_share_association.py +3 -3
  28. huaweicloudsdkram/v1/model/resource_share_invitation.py +6 -6
  29. huaweicloudsdkram/v1/model/search_resource_share_associations_request.py +31 -1
  30. huaweicloudsdkram/v1/model/search_resource_share_count_by_tags_request.py +31 -1
  31. huaweicloudsdkram/v1/model/search_resource_share_invitation_request.py +31 -1
  32. huaweicloudsdkram/v1/model/search_resource_shares_request.py +31 -1
  33. huaweicloudsdkram/v1/model/search_shared_principals_request.py +31 -1
  34. huaweicloudsdkram/v1/model/search_shared_resources_request.py +31 -1
  35. huaweicloudsdkram/v1/model/shared_principal.py +3 -3
  36. huaweicloudsdkram/v1/model/show_organization_share_request.py +33 -1
  37. huaweicloudsdkram/v1/model/show_permission_request.py +62 -3
  38. huaweicloudsdkram/v1/model/update_resource_share_request.py +31 -1
  39. huaweicloudsdkram/v1/ram_async_client.py +136 -7
  40. huaweicloudsdkram/v1/ram_client.py +136 -7
  41. {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/METADATA +2 -2
  42. {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/RECORD +45 -43
  43. {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/WHEEL +1 -1
  44. {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/LICENSE +0 -0
  45. {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/top_level.txt +0 -0
@@ -31,6 +31,8 @@ from huaweicloudsdkram.v1.model.disassociate_resource_share_request import Disas
31
31
  from huaweicloudsdkram.v1.model.disassociate_resource_share_response import DisassociateResourceShareResponse
32
32
  from huaweicloudsdkram.v1.model.enable_organization_share_request import EnableOrganizationShareRequest
33
33
  from huaweicloudsdkram.v1.model.enable_organization_share_response import EnableOrganizationShareResponse
34
+ from huaweicloudsdkram.v1.model.list_permission_versions_request import ListPermissionVersionsRequest
35
+ from huaweicloudsdkram.v1.model.list_permission_versions_response import ListPermissionVersionsResponse
34
36
  from huaweicloudsdkram.v1.model.list_permissions_request import ListPermissionsRequest
35
37
  from huaweicloudsdkram.v1.model.list_permissions_response import ListPermissionsResponse
36
38
  from huaweicloudsdkram.v1.model.list_quota_request import ListQuotaRequest
@@ -29,6 +29,8 @@ from huaweicloudsdkram.v1.model.disassociate_resource_share_request import Disas
29
29
  from huaweicloudsdkram.v1.model.disassociate_resource_share_response import DisassociateResourceShareResponse
30
30
  from huaweicloudsdkram.v1.model.enable_organization_share_request import EnableOrganizationShareRequest
31
31
  from huaweicloudsdkram.v1.model.enable_organization_share_response import EnableOrganizationShareResponse
32
+ from huaweicloudsdkram.v1.model.list_permission_versions_request import ListPermissionVersionsRequest
33
+ from huaweicloudsdkram.v1.model.list_permission_versions_response import ListPermissionVersionsResponse
32
34
  from huaweicloudsdkram.v1.model.list_permissions_request import ListPermissionsRequest
33
35
  from huaweicloudsdkram.v1.model.list_permissions_response import ListPermissionsResponse
34
36
  from huaweicloudsdkram.v1.model.list_quota_request import ListQuotaRequest
@@ -15,31 +15,61 @@ class AcceptResourceShareInvitationRequest:
15
15
  and the value is json key in definition.
16
16
  """
17
17
  sensitive_list = []
18
+ sensitive_list.append('x_security_token')
18
19
 
19
20
  openapi_types = {
21
+ 'x_security_token': 'str',
20
22
  'resource_share_invitation_id': 'str'
21
23
  }
22
24
 
23
25
  attribute_map = {
26
+ 'x_security_token': 'X-Security-Token',
24
27
  'resource_share_invitation_id': 'resource_share_invitation_id'
25
28
  }
26
29
 
27
- def __init__(self, resource_share_invitation_id=None):
30
+ def __init__(self, x_security_token=None, resource_share_invitation_id=None):
28
31
  """AcceptResourceShareInvitationRequest
29
32
 
30
33
  The model defined in huaweicloud sdk
31
34
 
35
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
36
+ :type x_security_token: str
32
37
  :param resource_share_invitation_id: 资源共享邀请的ID。
33
38
  :type resource_share_invitation_id: str
34
39
  """
35
40
 
36
41
 
37
42
 
43
+ self._x_security_token = None
38
44
  self._resource_share_invitation_id = None
39
45
  self.discriminator = None
40
46
 
47
+ if x_security_token is not None:
48
+ self.x_security_token = x_security_token
41
49
  self.resource_share_invitation_id = resource_share_invitation_id
42
50
 
51
+ @property
52
+ def x_security_token(self):
53
+ """Gets the x_security_token of this AcceptResourceShareInvitationRequest.
54
+
55
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
56
+
57
+ :return: The x_security_token of this AcceptResourceShareInvitationRequest.
58
+ :rtype: str
59
+ """
60
+ return self._x_security_token
61
+
62
+ @x_security_token.setter
63
+ def x_security_token(self, x_security_token):
64
+ """Sets the x_security_token of this AcceptResourceShareInvitationRequest.
65
+
66
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
67
+
68
+ :param x_security_token: The x_security_token of this AcceptResourceShareInvitationRequest.
69
+ :type x_security_token: str
70
+ """
71
+ self._x_security_token = x_security_token
72
+
43
73
  @property
44
74
  def resource_share_invitation_id(self):
45
75
  """Gets the resource_share_invitation_id of this AcceptResourceShareInvitationRequest.
@@ -17,57 +17,35 @@ class AssociatePermissionReqBody:
17
17
  sensitive_list = []
18
18
 
19
19
  openapi_types = {
20
- 'permission_id': 'str',
21
- 'replace': 'bool'
20
+ 'replace': 'bool',
21
+ 'permission_id': 'str'
22
22
  }
23
23
 
24
24
  attribute_map = {
25
- 'permission_id': 'permission_id',
26
- 'replace': 'replace'
25
+ 'replace': 'replace',
26
+ 'permission_id': 'permission_id'
27
27
  }
28
28
 
29
- def __init__(self, permission_id=None, replace=None):
29
+ def __init__(self, replace=None, permission_id=None):
30
30
  """AssociatePermissionReqBody
31
31
 
32
32
  The model defined in huaweicloud sdk
33
33
 
34
- :param permission_id: 共享资源权限的ID。
35
- :type permission_id: str
36
34
  :param replace: 指定特定的权限替换或绑定到与资源共享实例关联的现有资源类型。设置为\"true\"可将相同的资源类型的权限替换为当前权限。设置为\"false\"将权限绑定到当前资源类型。默认值为\"false\"。资源共享实例中的每个资源类型只能绑定一个权限。如果资源共享实例中已具有指定资源类型的权限,并且将\"replace\"设置为\"false\",则操作返回错误。这有助于防止意外覆盖权限。
37
35
  :type replace: bool
36
+ :param permission_id: 共享资源权限的ID。
37
+ :type permission_id: str
38
38
  """
39
39
 
40
40
 
41
41
 
42
- self._permission_id = None
43
42
  self._replace = None
43
+ self._permission_id = None
44
44
  self.discriminator = None
45
45
 
46
- self.permission_id = permission_id
47
46
  if replace is not None:
48
47
  self.replace = replace
49
-
50
- @property
51
- def permission_id(self):
52
- """Gets the permission_id of this AssociatePermissionReqBody.
53
-
54
- 共享资源权限的ID。
55
-
56
- :return: The permission_id of this AssociatePermissionReqBody.
57
- :rtype: str
58
- """
59
- return self._permission_id
60
-
61
- @permission_id.setter
62
- def permission_id(self, permission_id):
63
- """Sets the permission_id of this AssociatePermissionReqBody.
64
-
65
- 共享资源权限的ID。
66
-
67
- :param permission_id: The permission_id of this AssociatePermissionReqBody.
68
- :type permission_id: str
69
- """
70
- self._permission_id = permission_id
48
+ self.permission_id = permission_id
71
49
 
72
50
  @property
73
51
  def replace(self):
@@ -91,6 +69,28 @@ class AssociatePermissionReqBody:
91
69
  """
92
70
  self._replace = replace
93
71
 
72
+ @property
73
+ def permission_id(self):
74
+ """Gets the permission_id of this AssociatePermissionReqBody.
75
+
76
+ 共享资源权限的ID。
77
+
78
+ :return: The permission_id of this AssociatePermissionReqBody.
79
+ :rtype: str
80
+ """
81
+ return self._permission_id
82
+
83
+ @permission_id.setter
84
+ def permission_id(self, permission_id):
85
+ """Sets the permission_id of this AssociatePermissionReqBody.
86
+
87
+ 共享资源权限的ID。
88
+
89
+ :param permission_id: The permission_id of this AssociatePermissionReqBody.
90
+ :type permission_id: str
91
+ """
92
+ self._permission_id = permission_id
93
+
94
94
  def to_dict(self):
95
95
  """Returns the model properties as a dict"""
96
96
  result = {}
@@ -15,22 +15,27 @@ class AssociateResourceSharePermissionRequest:
15
15
  and the value is json key in definition.
16
16
  """
17
17
  sensitive_list = []
18
+ sensitive_list.append('x_security_token')
18
19
 
19
20
  openapi_types = {
21
+ 'x_security_token': 'str',
20
22
  'resource_share_id': 'str',
21
23
  'body': 'AssociatePermissionReqBody'
22
24
  }
23
25
 
24
26
  attribute_map = {
27
+ 'x_security_token': 'X-Security-Token',
25
28
  'resource_share_id': 'resource_share_id',
26
29
  'body': 'body'
27
30
  }
28
31
 
29
- def __init__(self, resource_share_id=None, body=None):
32
+ def __init__(self, x_security_token=None, resource_share_id=None, body=None):
30
33
  """AssociateResourceSharePermissionRequest
31
34
 
32
35
  The model defined in huaweicloud sdk
33
36
 
37
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
38
+ :type x_security_token: str
34
39
  :param resource_share_id: 资源共享实例的ID。
35
40
  :type resource_share_id: str
36
41
  :param body: Body of the AssociateResourceSharePermissionRequest
@@ -39,14 +44,39 @@ class AssociateResourceSharePermissionRequest:
39
44
 
40
45
 
41
46
 
47
+ self._x_security_token = None
42
48
  self._resource_share_id = None
43
49
  self._body = None
44
50
  self.discriminator = None
45
51
 
52
+ if x_security_token is not None:
53
+ self.x_security_token = x_security_token
46
54
  self.resource_share_id = resource_share_id
47
55
  if body is not None:
48
56
  self.body = body
49
57
 
58
+ @property
59
+ def x_security_token(self):
60
+ """Gets the x_security_token of this AssociateResourceSharePermissionRequest.
61
+
62
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
63
+
64
+ :return: The x_security_token of this AssociateResourceSharePermissionRequest.
65
+ :rtype: str
66
+ """
67
+ return self._x_security_token
68
+
69
+ @x_security_token.setter
70
+ def x_security_token(self, x_security_token):
71
+ """Sets the x_security_token of this AssociateResourceSharePermissionRequest.
72
+
73
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
74
+
75
+ :param x_security_token: The x_security_token of this AssociateResourceSharePermissionRequest.
76
+ :type x_security_token: str
77
+ """
78
+ self._x_security_token = x_security_token
79
+
50
80
  @property
51
81
  def resource_share_id(self):
52
82
  """Gets the resource_share_id of this AssociateResourceSharePermissionRequest.
@@ -15,22 +15,27 @@ class AssociateResourceShareRequest:
15
15
  and the value is json key in definition.
16
16
  """
17
17
  sensitive_list = []
18
+ sensitive_list.append('x_security_token')
18
19
 
19
20
  openapi_types = {
21
+ 'x_security_token': 'str',
20
22
  'resource_share_id': 'str',
21
23
  'body': 'ResourceShareAssociationReqBody'
22
24
  }
23
25
 
24
26
  attribute_map = {
27
+ 'x_security_token': 'X-Security-Token',
25
28
  'resource_share_id': 'resource_share_id',
26
29
  'body': 'body'
27
30
  }
28
31
 
29
- def __init__(self, resource_share_id=None, body=None):
32
+ def __init__(self, x_security_token=None, resource_share_id=None, body=None):
30
33
  """AssociateResourceShareRequest
31
34
 
32
35
  The model defined in huaweicloud sdk
33
36
 
37
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
38
+ :type x_security_token: str
34
39
  :param resource_share_id: 资源共享实例的ID。
35
40
  :type resource_share_id: str
36
41
  :param body: Body of the AssociateResourceShareRequest
@@ -39,14 +44,39 @@ class AssociateResourceShareRequest:
39
44
 
40
45
 
41
46
 
47
+ self._x_security_token = None
42
48
  self._resource_share_id = None
43
49
  self._body = None
44
50
  self.discriminator = None
45
51
 
52
+ if x_security_token is not None:
53
+ self.x_security_token = x_security_token
46
54
  self.resource_share_id = resource_share_id
47
55
  if body is not None:
48
56
  self.body = body
49
57
 
58
+ @property
59
+ def x_security_token(self):
60
+ """Gets the x_security_token of this AssociateResourceShareRequest.
61
+
62
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
63
+
64
+ :return: The x_security_token of this AssociateResourceShareRequest.
65
+ :rtype: str
66
+ """
67
+ return self._x_security_token
68
+
69
+ @x_security_token.setter
70
+ def x_security_token(self, x_security_token):
71
+ """Sets the x_security_token of this AssociateResourceShareRequest.
72
+
73
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
74
+
75
+ :param x_security_token: The x_security_token of this AssociateResourceShareRequest.
76
+ :type x_security_token: str
77
+ """
78
+ self._x_security_token = x_security_token
79
+
50
80
  @property
51
81
  def resource_share_id(self):
52
82
  """Gets the resource_share_id of this AssociateResourceShareRequest.
@@ -15,24 +15,29 @@ class BatchCreateResourceShareTagsRequest:
15
15
  and the value is json key in definition.
16
16
  """
17
17
  sensitive_list = []
18
+ sensitive_list.append('x_security_token')
18
19
 
19
20
  openapi_types = {
20
21
  'resource_share_id': 'str',
22
+ 'x_security_token': 'str',
21
23
  'body': 'TagResourceReqBody'
22
24
  }
23
25
 
24
26
  attribute_map = {
25
27
  'resource_share_id': 'resource_share_id',
28
+ 'x_security_token': 'X-Security-Token',
26
29
  'body': 'body'
27
30
  }
28
31
 
29
- def __init__(self, resource_share_id=None, body=None):
32
+ def __init__(self, resource_share_id=None, x_security_token=None, body=None):
30
33
  """BatchCreateResourceShareTagsRequest
31
34
 
32
35
  The model defined in huaweicloud sdk
33
36
 
34
37
  :param resource_share_id: 资源共享实例的ID。
35
38
  :type resource_share_id: str
39
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
40
+ :type x_security_token: str
36
41
  :param body: Body of the BatchCreateResourceShareTagsRequest
37
42
  :type body: :class:`huaweicloudsdkram.v1.TagResourceReqBody`
38
43
  """
@@ -40,10 +45,13 @@ class BatchCreateResourceShareTagsRequest:
40
45
 
41
46
 
42
47
  self._resource_share_id = None
48
+ self._x_security_token = None
43
49
  self._body = None
44
50
  self.discriminator = None
45
51
 
46
52
  self.resource_share_id = resource_share_id
53
+ if x_security_token is not None:
54
+ self.x_security_token = x_security_token
47
55
  if body is not None:
48
56
  self.body = body
49
57
 
@@ -69,6 +77,28 @@ class BatchCreateResourceShareTagsRequest:
69
77
  """
70
78
  self._resource_share_id = resource_share_id
71
79
 
80
+ @property
81
+ def x_security_token(self):
82
+ """Gets the x_security_token of this BatchCreateResourceShareTagsRequest.
83
+
84
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
85
+
86
+ :return: The x_security_token of this BatchCreateResourceShareTagsRequest.
87
+ :rtype: str
88
+ """
89
+ return self._x_security_token
90
+
91
+ @x_security_token.setter
92
+ def x_security_token(self, x_security_token):
93
+ """Sets the x_security_token of this BatchCreateResourceShareTagsRequest.
94
+
95
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
96
+
97
+ :param x_security_token: The x_security_token of this BatchCreateResourceShareTagsRequest.
98
+ :type x_security_token: str
99
+ """
100
+ self._x_security_token = x_security_token
101
+
72
102
  @property
73
103
  def body(self):
74
104
  """Gets the body of this BatchCreateResourceShareTagsRequest.
@@ -15,24 +15,29 @@ class BatchDeleteResourceShareTagsRequest:
15
15
  and the value is json key in definition.
16
16
  """
17
17
  sensitive_list = []
18
+ sensitive_list.append('x_security_token')
18
19
 
19
20
  openapi_types = {
20
21
  'resource_share_id': 'str',
22
+ 'x_security_token': 'str',
21
23
  'body': 'UntagResourceReqBody'
22
24
  }
23
25
 
24
26
  attribute_map = {
25
27
  'resource_share_id': 'resource_share_id',
28
+ 'x_security_token': 'X-Security-Token',
26
29
  'body': 'body'
27
30
  }
28
31
 
29
- def __init__(self, resource_share_id=None, body=None):
32
+ def __init__(self, resource_share_id=None, x_security_token=None, body=None):
30
33
  """BatchDeleteResourceShareTagsRequest
31
34
 
32
35
  The model defined in huaweicloud sdk
33
36
 
34
37
  :param resource_share_id: 资源共享实例的ID。
35
38
  :type resource_share_id: str
39
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
40
+ :type x_security_token: str
36
41
  :param body: Body of the BatchDeleteResourceShareTagsRequest
37
42
  :type body: :class:`huaweicloudsdkram.v1.UntagResourceReqBody`
38
43
  """
@@ -40,10 +45,13 @@ class BatchDeleteResourceShareTagsRequest:
40
45
 
41
46
 
42
47
  self._resource_share_id = None
48
+ self._x_security_token = None
43
49
  self._body = None
44
50
  self.discriminator = None
45
51
 
46
52
  self.resource_share_id = resource_share_id
53
+ if x_security_token is not None:
54
+ self.x_security_token = x_security_token
47
55
  if body is not None:
48
56
  self.body = body
49
57
 
@@ -69,6 +77,28 @@ class BatchDeleteResourceShareTagsRequest:
69
77
  """
70
78
  self._resource_share_id = resource_share_id
71
79
 
80
+ @property
81
+ def x_security_token(self):
82
+ """Gets the x_security_token of this BatchDeleteResourceShareTagsRequest.
83
+
84
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
85
+
86
+ :return: The x_security_token of this BatchDeleteResourceShareTagsRequest.
87
+ :rtype: str
88
+ """
89
+ return self._x_security_token
90
+
91
+ @x_security_token.setter
92
+ def x_security_token(self, x_security_token):
93
+ """Sets the x_security_token of this BatchDeleteResourceShareTagsRequest.
94
+
95
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
96
+
97
+ :param x_security_token: The x_security_token of this BatchDeleteResourceShareTagsRequest.
98
+ :type x_security_token: str
99
+ """
100
+ self._x_security_token = x_security_token
101
+
72
102
  @property
73
103
  def body(self):
74
104
  """Gets the body of this BatchDeleteResourceShareTagsRequest.
@@ -15,32 +15,62 @@ class CreateResourceShareRequest:
15
15
  and the value is json key in definition.
16
16
  """
17
17
  sensitive_list = []
18
+ sensitive_list.append('x_security_token')
18
19
 
19
20
  openapi_types = {
21
+ 'x_security_token': 'str',
20
22
  'body': 'CreateResourceShareReqBody'
21
23
  }
22
24
 
23
25
  attribute_map = {
26
+ 'x_security_token': 'X-Security-Token',
24
27
  'body': 'body'
25
28
  }
26
29
 
27
- def __init__(self, body=None):
30
+ def __init__(self, x_security_token=None, body=None):
28
31
  """CreateResourceShareRequest
29
32
 
30
33
  The model defined in huaweicloud sdk
31
34
 
35
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
36
+ :type x_security_token: str
32
37
  :param body: Body of the CreateResourceShareRequest
33
38
  :type body: :class:`huaweicloudsdkram.v1.CreateResourceShareReqBody`
34
39
  """
35
40
 
36
41
 
37
42
 
43
+ self._x_security_token = None
38
44
  self._body = None
39
45
  self.discriminator = None
40
46
 
47
+ if x_security_token is not None:
48
+ self.x_security_token = x_security_token
41
49
  if body is not None:
42
50
  self.body = body
43
51
 
52
+ @property
53
+ def x_security_token(self):
54
+ """Gets the x_security_token of this CreateResourceShareRequest.
55
+
56
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
57
+
58
+ :return: The x_security_token of this CreateResourceShareRequest.
59
+ :rtype: str
60
+ """
61
+ return self._x_security_token
62
+
63
+ @x_security_token.setter
64
+ def x_security_token(self, x_security_token):
65
+ """Sets the x_security_token of this CreateResourceShareRequest.
66
+
67
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
68
+
69
+ :param x_security_token: The x_security_token of this CreateResourceShareRequest.
70
+ :type x_security_token: str
71
+ """
72
+ self._x_security_token = x_security_token
73
+
44
74
  @property
45
75
  def body(self):
46
76
  """Gets the body of this CreateResourceShareRequest.
@@ -15,31 +15,61 @@ class DeleteResourceShareRequest:
15
15
  and the value is json key in definition.
16
16
  """
17
17
  sensitive_list = []
18
+ sensitive_list.append('x_security_token')
18
19
 
19
20
  openapi_types = {
21
+ 'x_security_token': 'str',
20
22
  'resource_share_id': 'str'
21
23
  }
22
24
 
23
25
  attribute_map = {
26
+ 'x_security_token': 'X-Security-Token',
24
27
  'resource_share_id': 'resource_share_id'
25
28
  }
26
29
 
27
- def __init__(self, resource_share_id=None):
30
+ def __init__(self, x_security_token=None, resource_share_id=None):
28
31
  """DeleteResourceShareRequest
29
32
 
30
33
  The model defined in huaweicloud sdk
31
34
 
35
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
36
+ :type x_security_token: str
32
37
  :param resource_share_id: 资源共享实例的ID。
33
38
  :type resource_share_id: str
34
39
  """
35
40
 
36
41
 
37
42
 
43
+ self._x_security_token = None
38
44
  self._resource_share_id = None
39
45
  self.discriminator = None
40
46
 
47
+ if x_security_token is not None:
48
+ self.x_security_token = x_security_token
41
49
  self.resource_share_id = resource_share_id
42
50
 
51
+ @property
52
+ def x_security_token(self):
53
+ """Gets the x_security_token of this DeleteResourceShareRequest.
54
+
55
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
56
+
57
+ :return: The x_security_token of this DeleteResourceShareRequest.
58
+ :rtype: str
59
+ """
60
+ return self._x_security_token
61
+
62
+ @x_security_token.setter
63
+ def x_security_token(self, x_security_token):
64
+ """Sets the x_security_token of this DeleteResourceShareRequest.
65
+
66
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
67
+
68
+ :param x_security_token: The x_security_token of this DeleteResourceShareRequest.
69
+ :type x_security_token: str
70
+ """
71
+ self._x_security_token = x_security_token
72
+
43
73
  @property
44
74
  def resource_share_id(self):
45
75
  """Gets the resource_share_id of this DeleteResourceShareRequest.
@@ -15,23 +15,55 @@ class DisableOrganizationShareRequest:
15
15
  and the value is json key in definition.
16
16
  """
17
17
  sensitive_list = []
18
+ sensitive_list.append('x_security_token')
18
19
 
19
20
  openapi_types = {
21
+ 'x_security_token': 'str'
20
22
  }
21
23
 
22
24
  attribute_map = {
25
+ 'x_security_token': 'X-Security-Token'
23
26
  }
24
27
 
25
- def __init__(self):
28
+ def __init__(self, x_security_token=None):
26
29
  """DisableOrganizationShareRequest
27
30
 
28
31
  The model defined in huaweicloud sdk
29
32
 
33
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
34
+ :type x_security_token: str
30
35
  """
31
36
 
32
37
 
38
+
39
+ self._x_security_token = None
33
40
  self.discriminator = None
34
41
 
42
+ if x_security_token is not None:
43
+ self.x_security_token = x_security_token
44
+
45
+ @property
46
+ def x_security_token(self):
47
+ """Gets the x_security_token of this DisableOrganizationShareRequest.
48
+
49
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
50
+
51
+ :return: The x_security_token of this DisableOrganizationShareRequest.
52
+ :rtype: str
53
+ """
54
+ return self._x_security_token
55
+
56
+ @x_security_token.setter
57
+ def x_security_token(self, x_security_token):
58
+ """Sets the x_security_token of this DisableOrganizationShareRequest.
59
+
60
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
61
+
62
+ :param x_security_token: The x_security_token of this DisableOrganizationShareRequest.
63
+ :type x_security_token: str
64
+ """
65
+ self._x_security_token = x_security_token
66
+
35
67
  def to_dict(self):
36
68
  """Returns the model properties as a dict"""
37
69
  result = {}