huaweicloudsdkram 3.1.160__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 (100) hide show
  1. huaweicloudsdkram/__init__.py +0 -0
  2. huaweicloudsdkram/v1/__init__.py +96 -0
  3. huaweicloudsdkram/v1/model/__init__.py +93 -0
  4. huaweicloudsdkram/v1/model/accept_resource_share_invitation_request.py +144 -0
  5. huaweicloudsdkram/v1/model/accept_resource_share_invitation_response.py +112 -0
  6. huaweicloudsdkram/v1/model/associate_permission_req_body.py +143 -0
  7. huaweicloudsdkram/v1/model/associate_resource_share_permission_request.py +169 -0
  8. huaweicloudsdkram/v1/model/associate_resource_share_permission_response.py +85 -0
  9. huaweicloudsdkram/v1/model/associate_resource_share_request.py +169 -0
  10. huaweicloudsdkram/v1/model/associate_resource_share_response.py +112 -0
  11. huaweicloudsdkram/v1/model/associated_permission.py +260 -0
  12. huaweicloudsdkram/v1/model/batch_create_resource_share_tags_request.py +169 -0
  13. huaweicloudsdkram/v1/model/batch_create_resource_share_tags_response.py +85 -0
  14. huaweicloudsdkram/v1/model/batch_delete_resource_share_tags_request.py +169 -0
  15. huaweicloudsdkram/v1/model/batch_delete_resource_share_tags_response.py +85 -0
  16. huaweicloudsdkram/v1/model/create_resource_share_req_body.py +288 -0
  17. huaweicloudsdkram/v1/model/create_resource_share_request.py +141 -0
  18. huaweicloudsdkram/v1/model/create_resource_share_response.py +112 -0
  19. huaweicloudsdkram/v1/model/delete_resource_share_request.py +144 -0
  20. huaweicloudsdkram/v1/model/delete_resource_share_response.py +85 -0
  21. huaweicloudsdkram/v1/model/disable_organization_share_request.py +116 -0
  22. huaweicloudsdkram/v1/model/disable_organization_share_response.py +85 -0
  23. huaweicloudsdkram/v1/model/disassociate_permission_req_body.py +114 -0
  24. huaweicloudsdkram/v1/model/disassociate_resource_share_permission_request.py +169 -0
  25. huaweicloudsdkram/v1/model/disassociate_resource_share_permission_response.py +85 -0
  26. huaweicloudsdkram/v1/model/disassociate_resource_share_request.py +169 -0
  27. huaweicloudsdkram/v1/model/disassociate_resource_share_response.py +112 -0
  28. huaweicloudsdkram/v1/model/enable_organization_share_request.py +116 -0
  29. huaweicloudsdkram/v1/model/enable_organization_share_response.py +85 -0
  30. huaweicloudsdkram/v1/model/list_permission_versions_request.py +202 -0
  31. huaweicloudsdkram/v1/model/list_permission_versions_response.py +141 -0
  32. huaweicloudsdkram/v1/model/list_permissions_request.py +232 -0
  33. huaweicloudsdkram/v1/model/list_permissions_response.py +141 -0
  34. huaweicloudsdkram/v1/model/list_quota_request.py +116 -0
  35. huaweicloudsdkram/v1/model/list_quota_response.py +112 -0
  36. huaweicloudsdkram/v1/model/list_resource_share_permissions_request.py +231 -0
  37. huaweicloudsdkram/v1/model/list_resource_share_permissions_response.py +141 -0
  38. huaweicloudsdkram/v1/model/list_resource_share_tags_request.py +174 -0
  39. huaweicloudsdkram/v1/model/list_resource_share_tags_response.py +141 -0
  40. huaweicloudsdkram/v1/model/list_resource_shares_by_tags_request.py +199 -0
  41. huaweicloudsdkram/v1/model/list_resource_shares_by_tags_response.py +145 -0
  42. huaweicloudsdkram/v1/model/list_resource_types_request.py +174 -0
  43. huaweicloudsdkram/v1/model/list_resource_types_response.py +141 -0
  44. huaweicloudsdkram/v1/model/match.py +142 -0
  45. huaweicloudsdkram/v1/model/page_info.py +173 -0
  46. huaweicloudsdkram/v1/model/page_info_marker_by_key.py +173 -0
  47. huaweicloudsdkram/v1/model/permission.py +427 -0
  48. huaweicloudsdkram/v1/model/permission_summary.py +399 -0
  49. huaweicloudsdkram/v1/model/quota_resources_dto.py +114 -0
  50. huaweicloudsdkram/v1/model/quotas.py +226 -0
  51. huaweicloudsdkram/v1/model/reject_resource_share_invitation_request.py +144 -0
  52. huaweicloudsdkram/v1/model/reject_resource_share_invitation_response.py +112 -0
  53. huaweicloudsdkram/v1/model/resource_dto.py +198 -0
  54. huaweicloudsdkram/v1/model/resource_share.py +340 -0
  55. huaweicloudsdkram/v1/model/resource_share_association.py +340 -0
  56. huaweicloudsdkram/v1/model/resource_share_association_req_body.py +144 -0
  57. huaweicloudsdkram/v1/model/resource_share_invitation.py +318 -0
  58. huaweicloudsdkram/v1/model/resource_shares_by_tags_req_body.py +173 -0
  59. huaweicloudsdkram/v1/model/resource_types_summary.py +142 -0
  60. huaweicloudsdkram/v1/model/search_resource_share_associations_req_body.py +317 -0
  61. huaweicloudsdkram/v1/model/search_resource_share_associations_request.py +141 -0
  62. huaweicloudsdkram/v1/model/search_resource_share_associations_response.py +141 -0
  63. huaweicloudsdkram/v1/model/search_resource_share_count_by_tags_request.py +141 -0
  64. huaweicloudsdkram/v1/model/search_resource_share_count_by_tags_response.py +116 -0
  65. huaweicloudsdkram/v1/model/search_resource_share_invitation_req_body.py +231 -0
  66. huaweicloudsdkram/v1/model/search_resource_share_invitation_request.py +141 -0
  67. huaweicloudsdkram/v1/model/search_resource_share_invitation_response.py +137 -0
  68. huaweicloudsdkram/v1/model/search_resource_shares_req_body.py +317 -0
  69. huaweicloudsdkram/v1/model/search_resource_shares_request.py +141 -0
  70. huaweicloudsdkram/v1/model/search_resource_shares_response.py +141 -0
  71. huaweicloudsdkram/v1/model/search_shared_principals_req_body.py +259 -0
  72. huaweicloudsdkram/v1/model/search_shared_principals_request.py +141 -0
  73. huaweicloudsdkram/v1/model/search_shared_principals_response.py +141 -0
  74. huaweicloudsdkram/v1/model/search_shared_resources_req_body.py +346 -0
  75. huaweicloudsdkram/v1/model/search_shared_resources_request.py +141 -0
  76. huaweicloudsdkram/v1/model/search_shared_resources_response.py +141 -0
  77. huaweicloudsdkram/v1/model/shared_principal.py +202 -0
  78. huaweicloudsdkram/v1/model/shared_resource.py +260 -0
  79. huaweicloudsdkram/v1/model/show_organization_share_request.py +116 -0
  80. huaweicloudsdkram/v1/model/show_organization_share_response.py +116 -0
  81. huaweicloudsdkram/v1/model/show_permission_request.py +173 -0
  82. huaweicloudsdkram/v1/model/show_permission_response.py +112 -0
  83. huaweicloudsdkram/v1/model/tag.py +142 -0
  84. huaweicloudsdkram/v1/model/tag_dto.py +142 -0
  85. huaweicloudsdkram/v1/model/tag_filter.py +143 -0
  86. huaweicloudsdkram/v1/model/tag_resource_req_body.py +114 -0
  87. huaweicloudsdkram/v1/model/untag.py +143 -0
  88. huaweicloudsdkram/v1/model/untag_resource_req_body.py +114 -0
  89. huaweicloudsdkram/v1/model/update_resource_share_req_body.py +172 -0
  90. huaweicloudsdkram/v1/model/update_resource_share_request.py +169 -0
  91. huaweicloudsdkram/v1/model/update_resource_share_response.py +112 -0
  92. huaweicloudsdkram/v1/ram_async_client.py +1991 -0
  93. huaweicloudsdkram/v1/ram_client.py +1988 -0
  94. huaweicloudsdkram/v1/region/__init__.py +0 -0
  95. huaweicloudsdkram/v1/region/ram_region.py +31 -0
  96. huaweicloudsdkram-3.1.160.dist-info/LICENSE +13 -0
  97. huaweicloudsdkram-3.1.160.dist-info/METADATA +26 -0
  98. huaweicloudsdkram-3.1.160.dist-info/RECORD +100 -0
  99. huaweicloudsdkram-3.1.160.dist-info/WHEEL +5 -0
  100. huaweicloudsdkram-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,141 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SearchResourceSharesRequest:
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
+ sensitive_list.append('x_security_token')
19
+
20
+ openapi_types = {
21
+ 'x_security_token': 'str',
22
+ 'body': 'SearchResourceSharesReqBody'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'x_security_token': 'X-Security-Token',
27
+ 'body': 'body'
28
+ }
29
+
30
+ def __init__(self, x_security_token=None, body=None):
31
+ r"""SearchResourceSharesRequest
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
36
+ :type x_security_token: str
37
+ :param body: Body of the SearchResourceSharesRequest
38
+ :type body: :class:`huaweicloudsdkram.v1.SearchResourceSharesReqBody`
39
+ """
40
+
41
+
42
+
43
+ self._x_security_token = None
44
+ self._body = None
45
+ self.discriminator = None
46
+
47
+ if x_security_token is not None:
48
+ self.x_security_token = x_security_token
49
+ if body is not None:
50
+ self.body = body
51
+
52
+ @property
53
+ def x_security_token(self):
54
+ r"""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
+ r"""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
+
74
+ @property
75
+ def body(self):
76
+ r"""Gets the body of this SearchResourceSharesRequest.
77
+
78
+ :return: The body of this SearchResourceSharesRequest.
79
+ :rtype: :class:`huaweicloudsdkram.v1.SearchResourceSharesReqBody`
80
+ """
81
+ return self._body
82
+
83
+ @body.setter
84
+ def body(self, body):
85
+ r"""Sets the body of this SearchResourceSharesRequest.
86
+
87
+ :param body: The body of this SearchResourceSharesRequest.
88
+ :type body: :class:`huaweicloudsdkram.v1.SearchResourceSharesReqBody`
89
+ """
90
+ self._body = body
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, SearchResourceSharesRequest):
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
@@ -0,0 +1,141 @@
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 SearchResourceSharesResponse(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
+ 'resource_shares': 'list[ResourceShare]',
22
+ 'page_info': 'PageInfo'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'resource_shares': 'resource_shares',
27
+ 'page_info': 'page_info'
28
+ }
29
+
30
+ def __init__(self, resource_shares=None, page_info=None):
31
+ r"""SearchResourceSharesResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param resource_shares: 资源共享实例的详细信息列表。
36
+ :type resource_shares: list[:class:`huaweicloudsdkram.v1.ResourceShare`]
37
+ :param page_info:
38
+ :type page_info: :class:`huaweicloudsdkram.v1.PageInfo`
39
+ """
40
+
41
+ super(SearchResourceSharesResponse, self).__init__()
42
+
43
+ self._resource_shares = None
44
+ self._page_info = None
45
+ self.discriminator = None
46
+
47
+ if resource_shares is not None:
48
+ self.resource_shares = resource_shares
49
+ if page_info is not None:
50
+ self.page_info = page_info
51
+
52
+ @property
53
+ def resource_shares(self):
54
+ r"""Gets the resource_shares of this SearchResourceSharesResponse.
55
+
56
+ 资源共享实例的详细信息列表。
57
+
58
+ :return: The resource_shares of this SearchResourceSharesResponse.
59
+ :rtype: list[:class:`huaweicloudsdkram.v1.ResourceShare`]
60
+ """
61
+ return self._resource_shares
62
+
63
+ @resource_shares.setter
64
+ def resource_shares(self, resource_shares):
65
+ r"""Sets the resource_shares of this SearchResourceSharesResponse.
66
+
67
+ 资源共享实例的详细信息列表。
68
+
69
+ :param resource_shares: The resource_shares of this SearchResourceSharesResponse.
70
+ :type resource_shares: list[:class:`huaweicloudsdkram.v1.ResourceShare`]
71
+ """
72
+ self._resource_shares = resource_shares
73
+
74
+ @property
75
+ def page_info(self):
76
+ r"""Gets the page_info of this SearchResourceSharesResponse.
77
+
78
+ :return: The page_info of this SearchResourceSharesResponse.
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
+ r"""Sets the page_info of this SearchResourceSharesResponse.
86
+
87
+ :param page_info: The page_info of this SearchResourceSharesResponse.
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, SearchResourceSharesResponse):
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
@@ -0,0 +1,259 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SearchSharedPrincipalsReqBody:
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
+ 'resource_share_ids': 'list[str]'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'limit': 'limit',
30
+ 'marker': 'marker',
31
+ 'principals': 'principals',
32
+ 'resource_urn': 'resource_urn',
33
+ 'resource_owner': 'resource_owner',
34
+ 'resource_share_ids': 'resource_share_ids'
35
+ }
36
+
37
+ def __init__(self, limit=None, marker=None, principals=None, resource_urn=None, resource_owner=None, resource_share_ids=None):
38
+ r"""SearchSharedPrincipalsReqBody
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param limit: 分页页面的最大值。
43
+ :type limit: int
44
+ :param marker: 页面标记。
45
+ :type marker: str
46
+ :param principals: 指定资源使用者。
47
+ :type principals: list[str]
48
+ :param resource_urn: 指定资源的URN。
49
+ :type resource_urn: str
50
+ :param resource_owner: 指定资源共享实例的所有者(self或者other-accounts)。
51
+ :type resource_owner: str
52
+ :param resource_share_ids: 指定资源共享实例的ID列表。
53
+ :type resource_share_ids: list[str]
54
+ """
55
+
56
+
57
+
58
+ self._limit = None
59
+ self._marker = None
60
+ self._principals = None
61
+ self._resource_urn = None
62
+ self._resource_owner = None
63
+ self._resource_share_ids = None
64
+ self.discriminator = None
65
+
66
+ if limit is not None:
67
+ self.limit = limit
68
+ if marker is not None:
69
+ self.marker = marker
70
+ if principals is not None:
71
+ self.principals = principals
72
+ if resource_urn is not None:
73
+ self.resource_urn = resource_urn
74
+ self.resource_owner = resource_owner
75
+ if resource_share_ids is not None:
76
+ self.resource_share_ids = resource_share_ids
77
+
78
+ @property
79
+ def limit(self):
80
+ r"""Gets the limit of this SearchSharedPrincipalsReqBody.
81
+
82
+ 分页页面的最大值。
83
+
84
+ :return: The limit of this SearchSharedPrincipalsReqBody.
85
+ :rtype: int
86
+ """
87
+ return self._limit
88
+
89
+ @limit.setter
90
+ def limit(self, limit):
91
+ r"""Sets the limit of this SearchSharedPrincipalsReqBody.
92
+
93
+ 分页页面的最大值。
94
+
95
+ :param limit: The limit of this SearchSharedPrincipalsReqBody.
96
+ :type limit: int
97
+ """
98
+ self._limit = limit
99
+
100
+ @property
101
+ def marker(self):
102
+ r"""Gets the marker of this SearchSharedPrincipalsReqBody.
103
+
104
+ 页面标记。
105
+
106
+ :return: The marker of this SearchSharedPrincipalsReqBody.
107
+ :rtype: str
108
+ """
109
+ return self._marker
110
+
111
+ @marker.setter
112
+ def marker(self, marker):
113
+ r"""Sets the marker of this SearchSharedPrincipalsReqBody.
114
+
115
+ 页面标记。
116
+
117
+ :param marker: The marker of this SearchSharedPrincipalsReqBody.
118
+ :type marker: str
119
+ """
120
+ self._marker = marker
121
+
122
+ @property
123
+ def principals(self):
124
+ r"""Gets the principals of this SearchSharedPrincipalsReqBody.
125
+
126
+ 指定资源使用者。
127
+
128
+ :return: The principals of this SearchSharedPrincipalsReqBody.
129
+ :rtype: list[str]
130
+ """
131
+ return self._principals
132
+
133
+ @principals.setter
134
+ def principals(self, principals):
135
+ r"""Sets the principals of this SearchSharedPrincipalsReqBody.
136
+
137
+ 指定资源使用者。
138
+
139
+ :param principals: The principals of this SearchSharedPrincipalsReqBody.
140
+ :type principals: list[str]
141
+ """
142
+ self._principals = principals
143
+
144
+ @property
145
+ def resource_urn(self):
146
+ r"""Gets the resource_urn of this SearchSharedPrincipalsReqBody.
147
+
148
+ 指定资源的URN。
149
+
150
+ :return: The resource_urn of this SearchSharedPrincipalsReqBody.
151
+ :rtype: str
152
+ """
153
+ return self._resource_urn
154
+
155
+ @resource_urn.setter
156
+ def resource_urn(self, resource_urn):
157
+ r"""Sets the resource_urn of this SearchSharedPrincipalsReqBody.
158
+
159
+ 指定资源的URN。
160
+
161
+ :param resource_urn: The resource_urn of this SearchSharedPrincipalsReqBody.
162
+ :type resource_urn: str
163
+ """
164
+ self._resource_urn = resource_urn
165
+
166
+ @property
167
+ def resource_owner(self):
168
+ r"""Gets the resource_owner of this SearchSharedPrincipalsReqBody.
169
+
170
+ 指定资源共享实例的所有者(self或者other-accounts)。
171
+
172
+ :return: The resource_owner of this SearchSharedPrincipalsReqBody.
173
+ :rtype: str
174
+ """
175
+ return self._resource_owner
176
+
177
+ @resource_owner.setter
178
+ def resource_owner(self, resource_owner):
179
+ r"""Sets the resource_owner of this SearchSharedPrincipalsReqBody.
180
+
181
+ 指定资源共享实例的所有者(self或者other-accounts)。
182
+
183
+ :param resource_owner: The resource_owner of this SearchSharedPrincipalsReqBody.
184
+ :type resource_owner: str
185
+ """
186
+ self._resource_owner = resource_owner
187
+
188
+ @property
189
+ def resource_share_ids(self):
190
+ r"""Gets the resource_share_ids of this SearchSharedPrincipalsReqBody.
191
+
192
+ 指定资源共享实例的ID列表。
193
+
194
+ :return: The resource_share_ids of this SearchSharedPrincipalsReqBody.
195
+ :rtype: list[str]
196
+ """
197
+ return self._resource_share_ids
198
+
199
+ @resource_share_ids.setter
200
+ def resource_share_ids(self, resource_share_ids):
201
+ r"""Sets the resource_share_ids of this SearchSharedPrincipalsReqBody.
202
+
203
+ 指定资源共享实例的ID列表。
204
+
205
+ :param resource_share_ids: The resource_share_ids of this SearchSharedPrincipalsReqBody.
206
+ :type resource_share_ids: list[str]
207
+ """
208
+ self._resource_share_ids = resource_share_ids
209
+
210
+ def to_dict(self):
211
+ """Returns the model properties as a dict"""
212
+ result = {}
213
+
214
+ for attr, _ in six.iteritems(self.openapi_types):
215
+ value = getattr(self, attr)
216
+ if isinstance(value, list):
217
+ result[attr] = list(map(
218
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
219
+ value
220
+ ))
221
+ elif hasattr(value, "to_dict"):
222
+ result[attr] = value.to_dict()
223
+ elif isinstance(value, dict):
224
+ result[attr] = dict(map(
225
+ lambda item: (item[0], item[1].to_dict())
226
+ if hasattr(item[1], "to_dict") else item,
227
+ value.items()
228
+ ))
229
+ else:
230
+ if attr in self.sensitive_list:
231
+ result[attr] = "****"
232
+ else:
233
+ result[attr] = value
234
+
235
+ return result
236
+
237
+ def to_str(self):
238
+ """Returns the string representation of the model"""
239
+ import simplejson as json
240
+ if six.PY2:
241
+ import sys
242
+ reload(sys)
243
+ sys.setdefaultencoding("utf-8")
244
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
245
+
246
+ def __repr__(self):
247
+ """For `print`"""
248
+ return self.to_str()
249
+
250
+ def __eq__(self, other):
251
+ """Returns true if both objects are equal"""
252
+ if not isinstance(other, SearchSharedPrincipalsReqBody):
253
+ return False
254
+
255
+ return self.__dict__ == other.__dict__
256
+
257
+ def __ne__(self, other):
258
+ """Returns true if both objects are not equal"""
259
+ return not self == other
@@ -0,0 +1,141 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SearchSharedPrincipalsRequest:
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
+ sensitive_list.append('x_security_token')
19
+
20
+ openapi_types = {
21
+ 'x_security_token': 'str',
22
+ 'body': 'SearchSharedPrincipalsReqBody'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'x_security_token': 'X-Security-Token',
27
+ 'body': 'body'
28
+ }
29
+
30
+ def __init__(self, x_security_token=None, body=None):
31
+ r"""SearchSharedPrincipalsRequest
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
36
+ :type x_security_token: str
37
+ :param body: Body of the SearchSharedPrincipalsRequest
38
+ :type body: :class:`huaweicloudsdkram.v1.SearchSharedPrincipalsReqBody`
39
+ """
40
+
41
+
42
+
43
+ self._x_security_token = None
44
+ self._body = None
45
+ self.discriminator = None
46
+
47
+ if x_security_token is not None:
48
+ self.x_security_token = x_security_token
49
+ if body is not None:
50
+ self.body = body
51
+
52
+ @property
53
+ def x_security_token(self):
54
+ r"""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
+ r"""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
+
74
+ @property
75
+ def body(self):
76
+ r"""Gets the body of this SearchSharedPrincipalsRequest.
77
+
78
+ :return: The body of this SearchSharedPrincipalsRequest.
79
+ :rtype: :class:`huaweicloudsdkram.v1.SearchSharedPrincipalsReqBody`
80
+ """
81
+ return self._body
82
+
83
+ @body.setter
84
+ def body(self, body):
85
+ r"""Sets the body of this SearchSharedPrincipalsRequest.
86
+
87
+ :param body: The body of this SearchSharedPrincipalsRequest.
88
+ :type body: :class:`huaweicloudsdkram.v1.SearchSharedPrincipalsReqBody`
89
+ """
90
+ self._body = body
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, SearchSharedPrincipalsRequest):
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