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.
- huaweicloudsdkram/v1/model/accept_resource_share_invitation_request.py +31 -1
- 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 +31 -1
- huaweicloudsdkram/v1/model/list_permissions_request.py +31 -1
- 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/reject_resource_share_invitation_request.py +31 -1
- 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/show_organization_share_request.py +33 -1
- huaweicloudsdkram/v1/model/show_permission_request.py +31 -1
- huaweicloudsdkram/v1/model/update_resource_share_request.py +31 -1
- huaweicloudsdkram/v1/ram_async_client.py +58 -2
- huaweicloudsdkram/v1/ram_client.py +58 -2
- {huaweicloudsdkram-3.1.86.dist-info → huaweicloudsdkram-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkram-3.1.86.dist-info → huaweicloudsdkram-3.1.132.dist-info}/RECORD +35 -35
- {huaweicloudsdkram-3.1.86.dist-info → huaweicloudsdkram-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkram-3.1.86.dist-info → huaweicloudsdkram-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkram-3.1.86.dist-info → huaweicloudsdkram-3.1.132.dist-info}/top_level.txt +0 -0
@@ -15,32 +15,62 @@ class SearchResourceShareAssociationsRequest:
|
|
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': 'SearchResourceShareAssociationsReqBody'
|
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
|
"""SearchResourceShareAssociationsRequest
|
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 SearchResourceShareAssociationsRequest
|
33
38
|
:type body: :class:`huaweicloudsdkram.v1.SearchResourceShareAssociationsReqBody`
|
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 SearchResourceShareAssociationsRequest.
|
55
|
+
|
56
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
57
|
+
|
58
|
+
:return: The x_security_token of this SearchResourceShareAssociationsRequest.
|
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 SearchResourceShareAssociationsRequest.
|
66
|
+
|
67
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
68
|
+
|
69
|
+
:param x_security_token: The x_security_token of this SearchResourceShareAssociationsRequest.
|
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 SearchResourceShareAssociationsRequest.
|
@@ -15,32 +15,62 @@ class SearchResourceShareCountByTagsRequest:
|
|
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': 'ResourceSharesByTagsReqBody'
|
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
|
"""SearchResourceShareCountByTagsRequest
|
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 SearchResourceShareCountByTagsRequest
|
33
38
|
:type body: :class:`huaweicloudsdkram.v1.ResourceSharesByTagsReqBody`
|
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 SearchResourceShareCountByTagsRequest.
|
55
|
+
|
56
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
57
|
+
|
58
|
+
:return: The x_security_token of this SearchResourceShareCountByTagsRequest.
|
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 SearchResourceShareCountByTagsRequest.
|
66
|
+
|
67
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
68
|
+
|
69
|
+
:param x_security_token: The x_security_token of this SearchResourceShareCountByTagsRequest.
|
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 SearchResourceShareCountByTagsRequest.
|
@@ -15,32 +15,62 @@ class SearchResourceShareInvitationRequest:
|
|
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': 'SearchResourceShareInvitationReqBody'
|
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
|
"""SearchResourceShareInvitationRequest
|
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 SearchResourceShareInvitationRequest
|
33
38
|
:type body: :class:`huaweicloudsdkram.v1.SearchResourceShareInvitationReqBody`
|
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 SearchResourceShareInvitationRequest.
|
55
|
+
|
56
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
57
|
+
|
58
|
+
:return: The x_security_token of this SearchResourceShareInvitationRequest.
|
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 SearchResourceShareInvitationRequest.
|
66
|
+
|
67
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
68
|
+
|
69
|
+
:param x_security_token: The x_security_token of this SearchResourceShareInvitationRequest.
|
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 SearchResourceShareInvitationRequest.
|
@@ -15,32 +15,62 @@ class SearchResourceSharesRequest:
|
|
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': 'SearchResourceSharesReqBody'
|
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
|
"""SearchResourceSharesRequest
|
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 SearchResourceSharesRequest
|
33
38
|
:type body: :class:`huaweicloudsdkram.v1.SearchResourceSharesReqBody`
|
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 SearchResourceSharesRequest.
|
55
|
+
|
56
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
57
|
+
|
58
|
+
:return: The x_security_token of this SearchResourceSharesRequest.
|
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 SearchResourceSharesRequest.
|
66
|
+
|
67
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
68
|
+
|
69
|
+
:param x_security_token: The x_security_token of this SearchResourceSharesRequest.
|
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 SearchResourceSharesRequest.
|
@@ -15,32 +15,62 @@ class SearchSharedPrincipalsRequest:
|
|
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': 'SearchSharedPrincipalsReqBody'
|
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
|
"""SearchSharedPrincipalsRequest
|
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 SearchSharedPrincipalsRequest
|
33
38
|
:type body: :class:`huaweicloudsdkram.v1.SearchSharedPrincipalsReqBody`
|
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 SearchSharedPrincipalsRequest.
|
55
|
+
|
56
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
57
|
+
|
58
|
+
:return: The x_security_token of this SearchSharedPrincipalsRequest.
|
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 SearchSharedPrincipalsRequest.
|
66
|
+
|
67
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
68
|
+
|
69
|
+
:param x_security_token: The x_security_token of this SearchSharedPrincipalsRequest.
|
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 SearchSharedPrincipalsRequest.
|
@@ -15,32 +15,62 @@ class SearchSharedResourcesRequest:
|
|
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': 'SearchSharedResourcesReqBody'
|
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
|
"""SearchSharedResourcesRequest
|
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 SearchSharedResourcesRequest
|
33
38
|
:type body: :class:`huaweicloudsdkram.v1.SearchSharedResourcesReqBody`
|
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 SearchSharedResourcesRequest.
|
55
|
+
|
56
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
57
|
+
|
58
|
+
:return: The x_security_token of this SearchSharedResourcesRequest.
|
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 SearchSharedResourcesRequest.
|
66
|
+
|
67
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
68
|
+
|
69
|
+
:param x_security_token: The x_security_token of this SearchSharedResourcesRequest.
|
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 SearchSharedResourcesRequest.
|
@@ -15,23 +15,55 @@ class ShowOrganizationShareRequest:
|
|
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
|
"""ShowOrganizationShareRequest
|
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 ShowOrganizationShareRequest.
|
48
|
+
|
49
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
50
|
+
|
51
|
+
:return: The x_security_token of this ShowOrganizationShareRequest.
|
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 ShowOrganizationShareRequest.
|
59
|
+
|
60
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
61
|
+
|
62
|
+
:param x_security_token: The x_security_token of this ShowOrganizationShareRequest.
|
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,24 +15,29 @@ class ShowPermissionRequest:
|
|
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
|
'permission_id': 'str',
|
22
|
+
'x_security_token': 'str',
|
21
23
|
'permission_version': 'int'
|
22
24
|
}
|
23
25
|
|
24
26
|
attribute_map = {
|
25
27
|
'permission_id': 'permission_id',
|
28
|
+
'x_security_token': 'X-Security-Token',
|
26
29
|
'permission_version': 'permission_version'
|
27
30
|
}
|
28
31
|
|
29
|
-
def __init__(self, permission_id=None, permission_version=None):
|
32
|
+
def __init__(self, permission_id=None, x_security_token=None, permission_version=None):
|
30
33
|
"""ShowPermissionRequest
|
31
34
|
|
32
35
|
The model defined in huaweicloud sdk
|
33
36
|
|
34
37
|
:param permission_id: 共享资源权限的ID。
|
35
38
|
:type permission_id: str
|
39
|
+
:param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
40
|
+
:type x_security_token: str
|
36
41
|
:param permission_version: 资源权限版本。
|
37
42
|
:type permission_version: int
|
38
43
|
"""
|
@@ -40,10 +45,13 @@ class ShowPermissionRequest:
|
|
40
45
|
|
41
46
|
|
42
47
|
self._permission_id = None
|
48
|
+
self._x_security_token = None
|
43
49
|
self._permission_version = None
|
44
50
|
self.discriminator = None
|
45
51
|
|
46
52
|
self.permission_id = permission_id
|
53
|
+
if x_security_token is not None:
|
54
|
+
self.x_security_token = x_security_token
|
47
55
|
if permission_version is not None:
|
48
56
|
self.permission_version = permission_version
|
49
57
|
|
@@ -69,6 +77,28 @@ class ShowPermissionRequest:
|
|
69
77
|
"""
|
70
78
|
self._permission_id = permission_id
|
71
79
|
|
80
|
+
@property
|
81
|
+
def x_security_token(self):
|
82
|
+
"""Gets the x_security_token of this ShowPermissionRequest.
|
83
|
+
|
84
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
85
|
+
|
86
|
+
:return: The x_security_token of this ShowPermissionRequest.
|
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 ShowPermissionRequest.
|
94
|
+
|
95
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
96
|
+
|
97
|
+
:param x_security_token: The x_security_token of this ShowPermissionRequest.
|
98
|
+
:type x_security_token: str
|
99
|
+
"""
|
100
|
+
self._x_security_token = x_security_token
|
101
|
+
|
72
102
|
@property
|
73
103
|
def permission_version(self):
|
74
104
|
"""Gets the permission_version of this ShowPermissionRequest.
|
@@ -15,22 +15,27 @@ class UpdateResourceShareRequest:
|
|
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': 'UpdateResourceShareReqBody'
|
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
|
"""UpdateResourceShareRequest
|
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 UpdateResourceShareRequest
|
@@ -39,14 +44,39 @@ class UpdateResourceShareRequest:
|
|
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 UpdateResourceShareRequest.
|
61
|
+
|
62
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
63
|
+
|
64
|
+
:return: The x_security_token of this UpdateResourceShareRequest.
|
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 UpdateResourceShareRequest.
|
72
|
+
|
73
|
+
如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
74
|
+
|
75
|
+
:param x_security_token: The x_security_token of this UpdateResourceShareRequest.
|
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 UpdateResourceShareRequest.
|