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.
- huaweicloudsdkram/v1/__init__.py +2 -0
- huaweicloudsdkram/v1/model/__init__.py +2 -0
- huaweicloudsdkram/v1/model/accept_resource_share_invitation_request.py +31 -1
- huaweicloudsdkram/v1/model/associate_permission_req_body.py +31 -31
- huaweicloudsdkram/v1/model/associate_resource_share_permission_request.py +31 -1
- huaweicloudsdkram/v1/model/associate_resource_share_request.py +31 -1
- huaweicloudsdkram/v1/model/batch_create_resource_share_tags_request.py +31 -1
- huaweicloudsdkram/v1/model/batch_delete_resource_share_tags_request.py +31 -1
- huaweicloudsdkram/v1/model/create_resource_share_request.py +31 -1
- huaweicloudsdkram/v1/model/delete_resource_share_request.py +31 -1
- huaweicloudsdkram/v1/model/disable_organization_share_request.py +33 -1
- huaweicloudsdkram/v1/model/disassociate_resource_share_permission_request.py +31 -1
- huaweicloudsdkram/v1/model/disassociate_resource_share_request.py +31 -1
- huaweicloudsdkram/v1/model/enable_organization_share_request.py +33 -1
- huaweicloudsdkram/v1/model/list_permission_versions_request.py +202 -0
- huaweicloudsdkram/v1/model/list_permission_versions_response.py +141 -0
- huaweicloudsdkram/v1/model/list_permissions_request.py +62 -3
- huaweicloudsdkram/v1/model/list_quota_request.py +33 -1
- huaweicloudsdkram/v1/model/list_resource_share_permissions_request.py +31 -1
- huaweicloudsdkram/v1/model/list_resource_share_tags_request.py +33 -3
- huaweicloudsdkram/v1/model/list_resource_shares_by_tags_request.py +31 -1
- huaweicloudsdkram/v1/model/list_resource_types_request.py +31 -1
- huaweicloudsdkram/v1/model/permission.py +148 -3
- huaweicloudsdkram/v1/model/permission_summary.py +148 -3
- huaweicloudsdkram/v1/model/quotas.py +3 -3
- huaweicloudsdkram/v1/model/reject_resource_share_invitation_request.py +31 -1
- huaweicloudsdkram/v1/model/resource_share_association.py +3 -3
- huaweicloudsdkram/v1/model/resource_share_invitation.py +6 -6
- huaweicloudsdkram/v1/model/search_resource_share_associations_request.py +31 -1
- huaweicloudsdkram/v1/model/search_resource_share_count_by_tags_request.py +31 -1
- huaweicloudsdkram/v1/model/search_resource_share_invitation_request.py +31 -1
- huaweicloudsdkram/v1/model/search_resource_shares_request.py +31 -1
- huaweicloudsdkram/v1/model/search_shared_principals_request.py +31 -1
- huaweicloudsdkram/v1/model/search_shared_resources_request.py +31 -1
- huaweicloudsdkram/v1/model/shared_principal.py +3 -3
- huaweicloudsdkram/v1/model/show_organization_share_request.py +33 -1
- huaweicloudsdkram/v1/model/show_permission_request.py +62 -3
- huaweicloudsdkram/v1/model/update_resource_share_request.py +31 -1
- huaweicloudsdkram/v1/ram_async_client.py +136 -7
- huaweicloudsdkram/v1/ram_client.py +136 -7
- {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/RECORD +45 -43
- {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkram-3.1.85.dist-info → huaweicloudsdkram-3.1.132.dist-info}/top_level.txt +0 -0
@@ -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.
|
@@ -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:
|
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
|
-
|
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
|
-
|
102
|
+
资源使用者的账号ID或URN。
|
103
103
|
|
104
104
|
:param id: The id of this SharedPrincipal.
|
105
105
|
:type id: str
|
@@ -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,30 +15,45 @@ 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
|
-
'permission_id': 'str'
|
21
|
+
'permission_id': 'str',
|
22
|
+
'x_security_token': 'str',
|
23
|
+
'permission_version': 'int'
|
21
24
|
}
|
22
25
|
|
23
26
|
attribute_map = {
|
24
|
-
'permission_id': 'permission_id'
|
27
|
+
'permission_id': 'permission_id',
|
28
|
+
'x_security_token': 'X-Security-Token',
|
29
|
+
'permission_version': 'permission_version'
|
25
30
|
}
|
26
31
|
|
27
|
-
def __init__(self, permission_id=None):
|
32
|
+
def __init__(self, permission_id=None, x_security_token=None, permission_version=None):
|
28
33
|
"""ShowPermissionRequest
|
29
34
|
|
30
35
|
The model defined in huaweicloud sdk
|
31
36
|
|
32
37
|
:param permission_id: 共享资源权限的ID。
|
33
38
|
:type permission_id: str
|
39
|
+
:param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
|
40
|
+
:type x_security_token: str
|
41
|
+
:param permission_version: 资源权限版本。
|
42
|
+
:type permission_version: int
|
34
43
|
"""
|
35
44
|
|
36
45
|
|
37
46
|
|
38
47
|
self._permission_id = None
|
48
|
+
self._x_security_token = None
|
49
|
+
self._permission_version = None
|
39
50
|
self.discriminator = None
|
40
51
|
|
41
52
|
self.permission_id = permission_id
|
53
|
+
if x_security_token is not None:
|
54
|
+
self.x_security_token = x_security_token
|
55
|
+
if permission_version is not None:
|
56
|
+
self.permission_version = permission_version
|
42
57
|
|
43
58
|
@property
|
44
59
|
def permission_id(self):
|
@@ -62,6 +77,50 @@ class ShowPermissionRequest:
|
|
62
77
|
"""
|
63
78
|
self._permission_id = permission_id
|
64
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
|
+
|
102
|
+
@property
|
103
|
+
def permission_version(self):
|
104
|
+
"""Gets the permission_version of this ShowPermissionRequest.
|
105
|
+
|
106
|
+
资源权限版本。
|
107
|
+
|
108
|
+
:return: The permission_version of this ShowPermissionRequest.
|
109
|
+
:rtype: int
|
110
|
+
"""
|
111
|
+
return self._permission_version
|
112
|
+
|
113
|
+
@permission_version.setter
|
114
|
+
def permission_version(self, permission_version):
|
115
|
+
"""Sets the permission_version of this ShowPermissionRequest.
|
116
|
+
|
117
|
+
资源权限版本。
|
118
|
+
|
119
|
+
:param permission_version: The permission_version of this ShowPermissionRequest.
|
120
|
+
:type permission_version: int
|
121
|
+
"""
|
122
|
+
self._permission_version = permission_version
|
123
|
+
|
65
124
|
def to_dict(self):
|
66
125
|
"""Returns the model properties as a dict"""
|
67
126
|
result = {}
|
@@ -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.
|