huaweicloudsdkram 3.1.51__py2.py3-none-any.whl → 3.1.53__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 +0 -8
- huaweicloudsdkram/v1/model/__init__.py +0 -8
- huaweicloudsdkram/v1/ram_async_client.py +0 -114
- huaweicloudsdkram/v1/ram_client.py +0 -112
- {huaweicloudsdkram-3.1.51.dist-info → huaweicloudsdkram-3.1.53.dist-info}/METADATA +2 -2
- {huaweicloudsdkram-3.1.51.dist-info → huaweicloudsdkram-3.1.53.dist-info}/RECORD +9 -17
- {huaweicloudsdkram-3.1.51.dist-info → huaweicloudsdkram-3.1.53.dist-info}/WHEEL +1 -1
- huaweicloudsdkram/v1/model/distinct_shared_principal.py +0 -144
- huaweicloudsdkram/v1/model/distinct_shared_resource.py +0 -173
- huaweicloudsdkram/v1/model/search_distinct_principals_request.py +0 -111
- huaweicloudsdkram/v1/model/search_distinct_principals_response.py +0 -141
- huaweicloudsdkram/v1/model/search_distinct_shared_principals_req_body.py +0 -230
- huaweicloudsdkram/v1/model/search_distinct_shared_resources_req_body.py +0 -317
- huaweicloudsdkram/v1/model/search_distinct_shared_resources_request.py +0 -111
- huaweicloudsdkram/v1/model/search_distinct_shared_resources_response.py +0 -141
- {huaweicloudsdkram-3.1.51.dist-info → huaweicloudsdkram-3.1.53.dist-info}/LICENSE +0 -0
- {huaweicloudsdkram-3.1.51.dist-info → huaweicloudsdkram-3.1.53.dist-info}/top_level.txt +0 -0
@@ -1,173 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
import six
|
4
|
-
|
5
|
-
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
-
|
7
|
-
|
8
|
-
class DistinctSharedResource:
|
9
|
-
|
10
|
-
"""
|
11
|
-
Attributes:
|
12
|
-
openapi_types (dict): The key is attribute name
|
13
|
-
and the value is attribute type.
|
14
|
-
attribute_map (dict): The key is attribute name
|
15
|
-
and the value is json key in definition.
|
16
|
-
"""
|
17
|
-
sensitive_list = []
|
18
|
-
|
19
|
-
openapi_types = {
|
20
|
-
'resource_urn': 'str',
|
21
|
-
'resource_type': 'str',
|
22
|
-
'updated_at': 'datetime'
|
23
|
-
}
|
24
|
-
|
25
|
-
attribute_map = {
|
26
|
-
'resource_urn': 'resource_urn',
|
27
|
-
'resource_type': 'resource_type',
|
28
|
-
'updated_at': 'updated_at'
|
29
|
-
}
|
30
|
-
|
31
|
-
def __init__(self, resource_urn=None, resource_type=None, updated_at=None):
|
32
|
-
"""DistinctSharedResource
|
33
|
-
|
34
|
-
The model defined in huaweicloud sdk
|
35
|
-
|
36
|
-
:param resource_urn: 资源的统一资源名称。
|
37
|
-
:type resource_urn: str
|
38
|
-
:param resource_type: 资源的类型。
|
39
|
-
:type resource_type: str
|
40
|
-
:param updated_at: 最后一次更新资源共享实例的时间。
|
41
|
-
:type updated_at: datetime
|
42
|
-
"""
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
self._resource_urn = None
|
47
|
-
self._resource_type = None
|
48
|
-
self._updated_at = None
|
49
|
-
self.discriminator = None
|
50
|
-
|
51
|
-
if resource_urn is not None:
|
52
|
-
self.resource_urn = resource_urn
|
53
|
-
if resource_type is not None:
|
54
|
-
self.resource_type = resource_type
|
55
|
-
if updated_at is not None:
|
56
|
-
self.updated_at = updated_at
|
57
|
-
|
58
|
-
@property
|
59
|
-
def resource_urn(self):
|
60
|
-
"""Gets the resource_urn of this DistinctSharedResource.
|
61
|
-
|
62
|
-
资源的统一资源名称。
|
63
|
-
|
64
|
-
:return: The resource_urn of this DistinctSharedResource.
|
65
|
-
:rtype: str
|
66
|
-
"""
|
67
|
-
return self._resource_urn
|
68
|
-
|
69
|
-
@resource_urn.setter
|
70
|
-
def resource_urn(self, resource_urn):
|
71
|
-
"""Sets the resource_urn of this DistinctSharedResource.
|
72
|
-
|
73
|
-
资源的统一资源名称。
|
74
|
-
|
75
|
-
:param resource_urn: The resource_urn of this DistinctSharedResource.
|
76
|
-
:type resource_urn: str
|
77
|
-
"""
|
78
|
-
self._resource_urn = resource_urn
|
79
|
-
|
80
|
-
@property
|
81
|
-
def resource_type(self):
|
82
|
-
"""Gets the resource_type of this DistinctSharedResource.
|
83
|
-
|
84
|
-
资源的类型。
|
85
|
-
|
86
|
-
:return: The resource_type of this DistinctSharedResource.
|
87
|
-
:rtype: str
|
88
|
-
"""
|
89
|
-
return self._resource_type
|
90
|
-
|
91
|
-
@resource_type.setter
|
92
|
-
def resource_type(self, resource_type):
|
93
|
-
"""Sets the resource_type of this DistinctSharedResource.
|
94
|
-
|
95
|
-
资源的类型。
|
96
|
-
|
97
|
-
:param resource_type: The resource_type of this DistinctSharedResource.
|
98
|
-
:type resource_type: str
|
99
|
-
"""
|
100
|
-
self._resource_type = resource_type
|
101
|
-
|
102
|
-
@property
|
103
|
-
def updated_at(self):
|
104
|
-
"""Gets the updated_at of this DistinctSharedResource.
|
105
|
-
|
106
|
-
最后一次更新资源共享实例的时间。
|
107
|
-
|
108
|
-
:return: The updated_at of this DistinctSharedResource.
|
109
|
-
:rtype: datetime
|
110
|
-
"""
|
111
|
-
return self._updated_at
|
112
|
-
|
113
|
-
@updated_at.setter
|
114
|
-
def updated_at(self, updated_at):
|
115
|
-
"""Sets the updated_at of this DistinctSharedResource.
|
116
|
-
|
117
|
-
最后一次更新资源共享实例的时间。
|
118
|
-
|
119
|
-
:param updated_at: The updated_at of this DistinctSharedResource.
|
120
|
-
:type updated_at: datetime
|
121
|
-
"""
|
122
|
-
self._updated_at = updated_at
|
123
|
-
|
124
|
-
def to_dict(self):
|
125
|
-
"""Returns the model properties as a dict"""
|
126
|
-
result = {}
|
127
|
-
|
128
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
-
value = getattr(self, attr)
|
130
|
-
if isinstance(value, list):
|
131
|
-
result[attr] = list(map(
|
132
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
-
value
|
134
|
-
))
|
135
|
-
elif hasattr(value, "to_dict"):
|
136
|
-
result[attr] = value.to_dict()
|
137
|
-
elif isinstance(value, dict):
|
138
|
-
result[attr] = dict(map(
|
139
|
-
lambda item: (item[0], item[1].to_dict())
|
140
|
-
if hasattr(item[1], "to_dict") else item,
|
141
|
-
value.items()
|
142
|
-
))
|
143
|
-
else:
|
144
|
-
if attr in self.sensitive_list:
|
145
|
-
result[attr] = "****"
|
146
|
-
else:
|
147
|
-
result[attr] = value
|
148
|
-
|
149
|
-
return result
|
150
|
-
|
151
|
-
def to_str(self):
|
152
|
-
"""Returns the string representation of the model"""
|
153
|
-
import simplejson as json
|
154
|
-
if six.PY2:
|
155
|
-
import sys
|
156
|
-
reload(sys)
|
157
|
-
sys.setdefaultencoding("utf-8")
|
158
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
-
|
160
|
-
def __repr__(self):
|
161
|
-
"""For `print`"""
|
162
|
-
return self.to_str()
|
163
|
-
|
164
|
-
def __eq__(self, other):
|
165
|
-
"""Returns true if both objects are equal"""
|
166
|
-
if not isinstance(other, DistinctSharedResource):
|
167
|
-
return False
|
168
|
-
|
169
|
-
return self.__dict__ == other.__dict__
|
170
|
-
|
171
|
-
def __ne__(self, other):
|
172
|
-
"""Returns true if both objects are not equal"""
|
173
|
-
return not self == other
|
@@ -1,111 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
import six
|
4
|
-
|
5
|
-
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
-
|
7
|
-
|
8
|
-
class SearchDistinctPrincipalsRequest:
|
9
|
-
|
10
|
-
"""
|
11
|
-
Attributes:
|
12
|
-
openapi_types (dict): The key is attribute name
|
13
|
-
and the value is attribute type.
|
14
|
-
attribute_map (dict): The key is attribute name
|
15
|
-
and the value is json key in definition.
|
16
|
-
"""
|
17
|
-
sensitive_list = []
|
18
|
-
|
19
|
-
openapi_types = {
|
20
|
-
'body': 'SearchDistinctSharedPrincipalsReqBody'
|
21
|
-
}
|
22
|
-
|
23
|
-
attribute_map = {
|
24
|
-
'body': 'body'
|
25
|
-
}
|
26
|
-
|
27
|
-
def __init__(self, body=None):
|
28
|
-
"""SearchDistinctPrincipalsRequest
|
29
|
-
|
30
|
-
The model defined in huaweicloud sdk
|
31
|
-
|
32
|
-
:param body: Body of the SearchDistinctPrincipalsRequest
|
33
|
-
:type body: :class:`huaweicloudsdkram.v1.SearchDistinctSharedPrincipalsReqBody`
|
34
|
-
"""
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
self._body = None
|
39
|
-
self.discriminator = None
|
40
|
-
|
41
|
-
if body is not None:
|
42
|
-
self.body = body
|
43
|
-
|
44
|
-
@property
|
45
|
-
def body(self):
|
46
|
-
"""Gets the body of this SearchDistinctPrincipalsRequest.
|
47
|
-
|
48
|
-
:return: The body of this SearchDistinctPrincipalsRequest.
|
49
|
-
:rtype: :class:`huaweicloudsdkram.v1.SearchDistinctSharedPrincipalsReqBody`
|
50
|
-
"""
|
51
|
-
return self._body
|
52
|
-
|
53
|
-
@body.setter
|
54
|
-
def body(self, body):
|
55
|
-
"""Sets the body of this SearchDistinctPrincipalsRequest.
|
56
|
-
|
57
|
-
:param body: The body of this SearchDistinctPrincipalsRequest.
|
58
|
-
:type body: :class:`huaweicloudsdkram.v1.SearchDistinctSharedPrincipalsReqBody`
|
59
|
-
"""
|
60
|
-
self._body = body
|
61
|
-
|
62
|
-
def to_dict(self):
|
63
|
-
"""Returns the model properties as a dict"""
|
64
|
-
result = {}
|
65
|
-
|
66
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
-
value = getattr(self, attr)
|
68
|
-
if isinstance(value, list):
|
69
|
-
result[attr] = list(map(
|
70
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
-
value
|
72
|
-
))
|
73
|
-
elif hasattr(value, "to_dict"):
|
74
|
-
result[attr] = value.to_dict()
|
75
|
-
elif isinstance(value, dict):
|
76
|
-
result[attr] = dict(map(
|
77
|
-
lambda item: (item[0], item[1].to_dict())
|
78
|
-
if hasattr(item[1], "to_dict") else item,
|
79
|
-
value.items()
|
80
|
-
))
|
81
|
-
else:
|
82
|
-
if attr in self.sensitive_list:
|
83
|
-
result[attr] = "****"
|
84
|
-
else:
|
85
|
-
result[attr] = value
|
86
|
-
|
87
|
-
return result
|
88
|
-
|
89
|
-
def to_str(self):
|
90
|
-
"""Returns the string representation of the model"""
|
91
|
-
import simplejson as json
|
92
|
-
if six.PY2:
|
93
|
-
import sys
|
94
|
-
reload(sys)
|
95
|
-
sys.setdefaultencoding("utf-8")
|
96
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
-
|
98
|
-
def __repr__(self):
|
99
|
-
"""For `print`"""
|
100
|
-
return self.to_str()
|
101
|
-
|
102
|
-
def __eq__(self, other):
|
103
|
-
"""Returns true if both objects are equal"""
|
104
|
-
if not isinstance(other, SearchDistinctPrincipalsRequest):
|
105
|
-
return False
|
106
|
-
|
107
|
-
return self.__dict__ == other.__dict__
|
108
|
-
|
109
|
-
def __ne__(self, other):
|
110
|
-
"""Returns true if both objects are not equal"""
|
111
|
-
return not self == other
|
@@ -1,141 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
import six
|
4
|
-
|
5
|
-
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
-
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
-
|
8
|
-
|
9
|
-
class SearchDistinctPrincipalsResponse(SdkResponse):
|
10
|
-
|
11
|
-
"""
|
12
|
-
Attributes:
|
13
|
-
openapi_types (dict): The key is attribute name
|
14
|
-
and the value is attribute type.
|
15
|
-
attribute_map (dict): The key is attribute name
|
16
|
-
and the value is json key in definition.
|
17
|
-
"""
|
18
|
-
sensitive_list = []
|
19
|
-
|
20
|
-
openapi_types = {
|
21
|
-
'distinct_shared_principals': 'list[DistinctSharedPrincipal]',
|
22
|
-
'page_info': 'PageInfo'
|
23
|
-
}
|
24
|
-
|
25
|
-
attribute_map = {
|
26
|
-
'distinct_shared_principals': 'distinct_shared_principals',
|
27
|
-
'page_info': 'page_info'
|
28
|
-
}
|
29
|
-
|
30
|
-
def __init__(self, distinct_shared_principals=None, page_info=None):
|
31
|
-
"""SearchDistinctPrincipalsResponse
|
32
|
-
|
33
|
-
The model defined in huaweicloud sdk
|
34
|
-
|
35
|
-
:param distinct_shared_principals: 不同角色的信息列表。
|
36
|
-
:type distinct_shared_principals: list[:class:`huaweicloudsdkram.v1.DistinctSharedPrincipal`]
|
37
|
-
:param page_info:
|
38
|
-
:type page_info: :class:`huaweicloudsdkram.v1.PageInfo`
|
39
|
-
"""
|
40
|
-
|
41
|
-
super(SearchDistinctPrincipalsResponse, self).__init__()
|
42
|
-
|
43
|
-
self._distinct_shared_principals = None
|
44
|
-
self._page_info = None
|
45
|
-
self.discriminator = None
|
46
|
-
|
47
|
-
if distinct_shared_principals is not None:
|
48
|
-
self.distinct_shared_principals = distinct_shared_principals
|
49
|
-
if page_info is not None:
|
50
|
-
self.page_info = page_info
|
51
|
-
|
52
|
-
@property
|
53
|
-
def distinct_shared_principals(self):
|
54
|
-
"""Gets the distinct_shared_principals of this SearchDistinctPrincipalsResponse.
|
55
|
-
|
56
|
-
不同角色的信息列表。
|
57
|
-
|
58
|
-
:return: The distinct_shared_principals of this SearchDistinctPrincipalsResponse.
|
59
|
-
:rtype: list[:class:`huaweicloudsdkram.v1.DistinctSharedPrincipal`]
|
60
|
-
"""
|
61
|
-
return self._distinct_shared_principals
|
62
|
-
|
63
|
-
@distinct_shared_principals.setter
|
64
|
-
def distinct_shared_principals(self, distinct_shared_principals):
|
65
|
-
"""Sets the distinct_shared_principals of this SearchDistinctPrincipalsResponse.
|
66
|
-
|
67
|
-
不同角色的信息列表。
|
68
|
-
|
69
|
-
:param distinct_shared_principals: The distinct_shared_principals of this SearchDistinctPrincipalsResponse.
|
70
|
-
:type distinct_shared_principals: list[:class:`huaweicloudsdkram.v1.DistinctSharedPrincipal`]
|
71
|
-
"""
|
72
|
-
self._distinct_shared_principals = distinct_shared_principals
|
73
|
-
|
74
|
-
@property
|
75
|
-
def page_info(self):
|
76
|
-
"""Gets the page_info of this SearchDistinctPrincipalsResponse.
|
77
|
-
|
78
|
-
:return: The page_info of this SearchDistinctPrincipalsResponse.
|
79
|
-
:rtype: :class:`huaweicloudsdkram.v1.PageInfo`
|
80
|
-
"""
|
81
|
-
return self._page_info
|
82
|
-
|
83
|
-
@page_info.setter
|
84
|
-
def page_info(self, page_info):
|
85
|
-
"""Sets the page_info of this SearchDistinctPrincipalsResponse.
|
86
|
-
|
87
|
-
:param page_info: The page_info of this SearchDistinctPrincipalsResponse.
|
88
|
-
:type page_info: :class:`huaweicloudsdkram.v1.PageInfo`
|
89
|
-
"""
|
90
|
-
self._page_info = page_info
|
91
|
-
|
92
|
-
def to_dict(self):
|
93
|
-
"""Returns the model properties as a dict"""
|
94
|
-
result = {}
|
95
|
-
|
96
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
97
|
-
value = getattr(self, attr)
|
98
|
-
if isinstance(value, list):
|
99
|
-
result[attr] = list(map(
|
100
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
101
|
-
value
|
102
|
-
))
|
103
|
-
elif hasattr(value, "to_dict"):
|
104
|
-
result[attr] = value.to_dict()
|
105
|
-
elif isinstance(value, dict):
|
106
|
-
result[attr] = dict(map(
|
107
|
-
lambda item: (item[0], item[1].to_dict())
|
108
|
-
if hasattr(item[1], "to_dict") else item,
|
109
|
-
value.items()
|
110
|
-
))
|
111
|
-
else:
|
112
|
-
if attr in self.sensitive_list:
|
113
|
-
result[attr] = "****"
|
114
|
-
else:
|
115
|
-
result[attr] = value
|
116
|
-
|
117
|
-
return result
|
118
|
-
|
119
|
-
def to_str(self):
|
120
|
-
"""Returns the string representation of the model"""
|
121
|
-
import simplejson as json
|
122
|
-
if six.PY2:
|
123
|
-
import sys
|
124
|
-
reload(sys)
|
125
|
-
sys.setdefaultencoding("utf-8")
|
126
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
127
|
-
|
128
|
-
def __repr__(self):
|
129
|
-
"""For `print`"""
|
130
|
-
return self.to_str()
|
131
|
-
|
132
|
-
def __eq__(self, other):
|
133
|
-
"""Returns true if both objects are equal"""
|
134
|
-
if not isinstance(other, SearchDistinctPrincipalsResponse):
|
135
|
-
return False
|
136
|
-
|
137
|
-
return self.__dict__ == other.__dict__
|
138
|
-
|
139
|
-
def __ne__(self, other):
|
140
|
-
"""Returns true if both objects are not equal"""
|
141
|
-
return not self == other
|
@@ -1,230 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
import six
|
4
|
-
|
5
|
-
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
-
|
7
|
-
|
8
|
-
class SearchDistinctSharedPrincipalsReqBody:
|
9
|
-
|
10
|
-
"""
|
11
|
-
Attributes:
|
12
|
-
openapi_types (dict): The key is attribute name
|
13
|
-
and the value is attribute type.
|
14
|
-
attribute_map (dict): The key is attribute name
|
15
|
-
and the value is json key in definition.
|
16
|
-
"""
|
17
|
-
sensitive_list = []
|
18
|
-
|
19
|
-
openapi_types = {
|
20
|
-
'limit': 'int',
|
21
|
-
'marker': 'str',
|
22
|
-
'principals': 'list[str]',
|
23
|
-
'resource_urn': 'str',
|
24
|
-
'resource_owner': 'str'
|
25
|
-
}
|
26
|
-
|
27
|
-
attribute_map = {
|
28
|
-
'limit': 'limit',
|
29
|
-
'marker': 'marker',
|
30
|
-
'principals': 'principals',
|
31
|
-
'resource_urn': 'resource_urn',
|
32
|
-
'resource_owner': 'resource_owner'
|
33
|
-
}
|
34
|
-
|
35
|
-
def __init__(self, limit=None, marker=None, principals=None, resource_urn=None, resource_owner=None):
|
36
|
-
"""SearchDistinctSharedPrincipalsReqBody
|
37
|
-
|
38
|
-
The model defined in huaweicloud sdk
|
39
|
-
|
40
|
-
:param limit: 分页页面的最大值。
|
41
|
-
:type limit: int
|
42
|
-
:param marker: 页面标记。
|
43
|
-
:type marker: str
|
44
|
-
:param principals: 指定资源使用者列表。
|
45
|
-
:type principals: list[str]
|
46
|
-
:param resource_urn: 指定资源的URN。
|
47
|
-
:type resource_urn: str
|
48
|
-
:param resource_owner: 指定资源共享实例的所有者(self或者other-accounts)。
|
49
|
-
:type resource_owner: str
|
50
|
-
"""
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
self._limit = None
|
55
|
-
self._marker = None
|
56
|
-
self._principals = None
|
57
|
-
self._resource_urn = None
|
58
|
-
self._resource_owner = None
|
59
|
-
self.discriminator = None
|
60
|
-
|
61
|
-
if limit is not None:
|
62
|
-
self.limit = limit
|
63
|
-
if marker is not None:
|
64
|
-
self.marker = marker
|
65
|
-
if principals is not None:
|
66
|
-
self.principals = principals
|
67
|
-
if resource_urn is not None:
|
68
|
-
self.resource_urn = resource_urn
|
69
|
-
self.resource_owner = resource_owner
|
70
|
-
|
71
|
-
@property
|
72
|
-
def limit(self):
|
73
|
-
"""Gets the limit of this SearchDistinctSharedPrincipalsReqBody.
|
74
|
-
|
75
|
-
分页页面的最大值。
|
76
|
-
|
77
|
-
:return: The limit of this SearchDistinctSharedPrincipalsReqBody.
|
78
|
-
:rtype: int
|
79
|
-
"""
|
80
|
-
return self._limit
|
81
|
-
|
82
|
-
@limit.setter
|
83
|
-
def limit(self, limit):
|
84
|
-
"""Sets the limit of this SearchDistinctSharedPrincipalsReqBody.
|
85
|
-
|
86
|
-
分页页面的最大值。
|
87
|
-
|
88
|
-
:param limit: The limit of this SearchDistinctSharedPrincipalsReqBody.
|
89
|
-
:type limit: int
|
90
|
-
"""
|
91
|
-
self._limit = limit
|
92
|
-
|
93
|
-
@property
|
94
|
-
def marker(self):
|
95
|
-
"""Gets the marker of this SearchDistinctSharedPrincipalsReqBody.
|
96
|
-
|
97
|
-
页面标记。
|
98
|
-
|
99
|
-
:return: The marker of this SearchDistinctSharedPrincipalsReqBody.
|
100
|
-
:rtype: str
|
101
|
-
"""
|
102
|
-
return self._marker
|
103
|
-
|
104
|
-
@marker.setter
|
105
|
-
def marker(self, marker):
|
106
|
-
"""Sets the marker of this SearchDistinctSharedPrincipalsReqBody.
|
107
|
-
|
108
|
-
页面标记。
|
109
|
-
|
110
|
-
:param marker: The marker of this SearchDistinctSharedPrincipalsReqBody.
|
111
|
-
:type marker: str
|
112
|
-
"""
|
113
|
-
self._marker = marker
|
114
|
-
|
115
|
-
@property
|
116
|
-
def principals(self):
|
117
|
-
"""Gets the principals of this SearchDistinctSharedPrincipalsReqBody.
|
118
|
-
|
119
|
-
指定资源使用者列表。
|
120
|
-
|
121
|
-
:return: The principals of this SearchDistinctSharedPrincipalsReqBody.
|
122
|
-
:rtype: list[str]
|
123
|
-
"""
|
124
|
-
return self._principals
|
125
|
-
|
126
|
-
@principals.setter
|
127
|
-
def principals(self, principals):
|
128
|
-
"""Sets the principals of this SearchDistinctSharedPrincipalsReqBody.
|
129
|
-
|
130
|
-
指定资源使用者列表。
|
131
|
-
|
132
|
-
:param principals: The principals of this SearchDistinctSharedPrincipalsReqBody.
|
133
|
-
:type principals: list[str]
|
134
|
-
"""
|
135
|
-
self._principals = principals
|
136
|
-
|
137
|
-
@property
|
138
|
-
def resource_urn(self):
|
139
|
-
"""Gets the resource_urn of this SearchDistinctSharedPrincipalsReqBody.
|
140
|
-
|
141
|
-
指定资源的URN。
|
142
|
-
|
143
|
-
:return: The resource_urn of this SearchDistinctSharedPrincipalsReqBody.
|
144
|
-
:rtype: str
|
145
|
-
"""
|
146
|
-
return self._resource_urn
|
147
|
-
|
148
|
-
@resource_urn.setter
|
149
|
-
def resource_urn(self, resource_urn):
|
150
|
-
"""Sets the resource_urn of this SearchDistinctSharedPrincipalsReqBody.
|
151
|
-
|
152
|
-
指定资源的URN。
|
153
|
-
|
154
|
-
:param resource_urn: The resource_urn of this SearchDistinctSharedPrincipalsReqBody.
|
155
|
-
:type resource_urn: str
|
156
|
-
"""
|
157
|
-
self._resource_urn = resource_urn
|
158
|
-
|
159
|
-
@property
|
160
|
-
def resource_owner(self):
|
161
|
-
"""Gets the resource_owner of this SearchDistinctSharedPrincipalsReqBody.
|
162
|
-
|
163
|
-
指定资源共享实例的所有者(self或者other-accounts)。
|
164
|
-
|
165
|
-
:return: The resource_owner of this SearchDistinctSharedPrincipalsReqBody.
|
166
|
-
:rtype: str
|
167
|
-
"""
|
168
|
-
return self._resource_owner
|
169
|
-
|
170
|
-
@resource_owner.setter
|
171
|
-
def resource_owner(self, resource_owner):
|
172
|
-
"""Sets the resource_owner of this SearchDistinctSharedPrincipalsReqBody.
|
173
|
-
|
174
|
-
指定资源共享实例的所有者(self或者other-accounts)。
|
175
|
-
|
176
|
-
:param resource_owner: The resource_owner of this SearchDistinctSharedPrincipalsReqBody.
|
177
|
-
:type resource_owner: str
|
178
|
-
"""
|
179
|
-
self._resource_owner = resource_owner
|
180
|
-
|
181
|
-
def to_dict(self):
|
182
|
-
"""Returns the model properties as a dict"""
|
183
|
-
result = {}
|
184
|
-
|
185
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
186
|
-
value = getattr(self, attr)
|
187
|
-
if isinstance(value, list):
|
188
|
-
result[attr] = list(map(
|
189
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
190
|
-
value
|
191
|
-
))
|
192
|
-
elif hasattr(value, "to_dict"):
|
193
|
-
result[attr] = value.to_dict()
|
194
|
-
elif isinstance(value, dict):
|
195
|
-
result[attr] = dict(map(
|
196
|
-
lambda item: (item[0], item[1].to_dict())
|
197
|
-
if hasattr(item[1], "to_dict") else item,
|
198
|
-
value.items()
|
199
|
-
))
|
200
|
-
else:
|
201
|
-
if attr in self.sensitive_list:
|
202
|
-
result[attr] = "****"
|
203
|
-
else:
|
204
|
-
result[attr] = value
|
205
|
-
|
206
|
-
return result
|
207
|
-
|
208
|
-
def to_str(self):
|
209
|
-
"""Returns the string representation of the model"""
|
210
|
-
import simplejson as json
|
211
|
-
if six.PY2:
|
212
|
-
import sys
|
213
|
-
reload(sys)
|
214
|
-
sys.setdefaultencoding("utf-8")
|
215
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
216
|
-
|
217
|
-
def __repr__(self):
|
218
|
-
"""For `print`"""
|
219
|
-
return self.to_str()
|
220
|
-
|
221
|
-
def __eq__(self, other):
|
222
|
-
"""Returns true if both objects are equal"""
|
223
|
-
if not isinstance(other, SearchDistinctSharedPrincipalsReqBody):
|
224
|
-
return False
|
225
|
-
|
226
|
-
return self.__dict__ == other.__dict__
|
227
|
-
|
228
|
-
def __ne__(self, other):
|
229
|
-
"""Returns true if both objects are not equal"""
|
230
|
-
return not self == other
|