huaweicloudsdkram 3.1.86__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 (35) hide show
  1. huaweicloudsdkram/v1/model/accept_resource_share_invitation_request.py +31 -1
  2. huaweicloudsdkram/v1/model/associate_resource_share_permission_request.py +31 -1
  3. huaweicloudsdkram/v1/model/associate_resource_share_request.py +31 -1
  4. huaweicloudsdkram/v1/model/batch_create_resource_share_tags_request.py +31 -1
  5. huaweicloudsdkram/v1/model/batch_delete_resource_share_tags_request.py +31 -1
  6. huaweicloudsdkram/v1/model/create_resource_share_request.py +31 -1
  7. huaweicloudsdkram/v1/model/delete_resource_share_request.py +31 -1
  8. huaweicloudsdkram/v1/model/disable_organization_share_request.py +33 -1
  9. huaweicloudsdkram/v1/model/disassociate_resource_share_permission_request.py +31 -1
  10. huaweicloudsdkram/v1/model/disassociate_resource_share_request.py +31 -1
  11. huaweicloudsdkram/v1/model/enable_organization_share_request.py +33 -1
  12. huaweicloudsdkram/v1/model/list_permission_versions_request.py +31 -1
  13. huaweicloudsdkram/v1/model/list_permissions_request.py +31 -1
  14. huaweicloudsdkram/v1/model/list_quota_request.py +33 -1
  15. huaweicloudsdkram/v1/model/list_resource_share_permissions_request.py +31 -1
  16. huaweicloudsdkram/v1/model/list_resource_share_tags_request.py +33 -3
  17. huaweicloudsdkram/v1/model/list_resource_shares_by_tags_request.py +31 -1
  18. huaweicloudsdkram/v1/model/list_resource_types_request.py +31 -1
  19. huaweicloudsdkram/v1/model/reject_resource_share_invitation_request.py +31 -1
  20. huaweicloudsdkram/v1/model/search_resource_share_associations_request.py +31 -1
  21. huaweicloudsdkram/v1/model/search_resource_share_count_by_tags_request.py +31 -1
  22. huaweicloudsdkram/v1/model/search_resource_share_invitation_request.py +31 -1
  23. huaweicloudsdkram/v1/model/search_resource_shares_request.py +31 -1
  24. huaweicloudsdkram/v1/model/search_shared_principals_request.py +31 -1
  25. huaweicloudsdkram/v1/model/search_shared_resources_request.py +31 -1
  26. huaweicloudsdkram/v1/model/show_organization_share_request.py +33 -1
  27. huaweicloudsdkram/v1/model/show_permission_request.py +31 -1
  28. huaweicloudsdkram/v1/model/update_resource_share_request.py +31 -1
  29. huaweicloudsdkram/v1/ram_async_client.py +58 -2
  30. huaweicloudsdkram/v1/ram_client.py +58 -2
  31. {huaweicloudsdkram-3.1.86.dist-info → huaweicloudsdkram-3.1.132.dist-info}/METADATA +2 -2
  32. {huaweicloudsdkram-3.1.86.dist-info → huaweicloudsdkram-3.1.132.dist-info}/RECORD +35 -35
  33. {huaweicloudsdkram-3.1.86.dist-info → huaweicloudsdkram-3.1.132.dist-info}/WHEEL +1 -1
  34. {huaweicloudsdkram-3.1.86.dist-info → huaweicloudsdkram-3.1.132.dist-info}/LICENSE +0 -0
  35. {huaweicloudsdkram-3.1.86.dist-info → huaweicloudsdkram-3.1.132.dist-info}/top_level.txt +0 -0
@@ -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.
@@ -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 = {}
@@ -15,22 +15,27 @@ class DisassociateResourceSharePermissionRequest:
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': 'DisassociatePermissionReqBody'
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
  """DisassociateResourceSharePermissionRequest
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 DisassociateResourceSharePermissionRequest
@@ -39,14 +44,39 @@ class DisassociateResourceSharePermissionRequest:
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 DisassociateResourceSharePermissionRequest.
61
+
62
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
63
+
64
+ :return: The x_security_token of this DisassociateResourceSharePermissionRequest.
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 DisassociateResourceSharePermissionRequest.
72
+
73
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
74
+
75
+ :param x_security_token: The x_security_token of this DisassociateResourceSharePermissionRequest.
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 DisassociateResourceSharePermissionRequest.
@@ -15,22 +15,27 @@ class DisassociateResourceShareRequest:
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
  """DisassociateResourceShareRequest
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 DisassociateResourceShareRequest
@@ -39,14 +44,39 @@ class DisassociateResourceShareRequest:
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 DisassociateResourceShareRequest.
61
+
62
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
63
+
64
+ :return: The x_security_token of this DisassociateResourceShareRequest.
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 DisassociateResourceShareRequest.
72
+
73
+ 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
74
+
75
+ :param x_security_token: The x_security_token of this DisassociateResourceShareRequest.
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 DisassociateResourceShareRequest.