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,172 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateResourceShareReqBody:
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
+ 'name': 'str',
21
+ 'description': 'str',
22
+ 'allow_external_principals': 'bool'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'name': 'name',
27
+ 'description': 'description',
28
+ 'allow_external_principals': 'allow_external_principals'
29
+ }
30
+
31
+ def __init__(self, name=None, description=None, allow_external_principals=None):
32
+ r"""UpdateResourceShareReqBody
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param name: 资源共享实例的名称。
37
+ :type name: str
38
+ :param description: 资源共享实例的描述。
39
+ :type description: str
40
+ :param allow_external_principals: 资源共享实例是否支持共享给组织外账号。
41
+ :type allow_external_principals: bool
42
+ """
43
+
44
+
45
+
46
+ self._name = None
47
+ self._description = None
48
+ self._allow_external_principals = None
49
+ self.discriminator = None
50
+
51
+ self.name = name
52
+ if description is not None:
53
+ self.description = description
54
+ if allow_external_principals is not None:
55
+ self.allow_external_principals = allow_external_principals
56
+
57
+ @property
58
+ def name(self):
59
+ r"""Gets the name of this UpdateResourceShareReqBody.
60
+
61
+ 资源共享实例的名称。
62
+
63
+ :return: The name of this UpdateResourceShareReqBody.
64
+ :rtype: str
65
+ """
66
+ return self._name
67
+
68
+ @name.setter
69
+ def name(self, name):
70
+ r"""Sets the name of this UpdateResourceShareReqBody.
71
+
72
+ 资源共享实例的名称。
73
+
74
+ :param name: The name of this UpdateResourceShareReqBody.
75
+ :type name: str
76
+ """
77
+ self._name = name
78
+
79
+ @property
80
+ def description(self):
81
+ r"""Gets the description of this UpdateResourceShareReqBody.
82
+
83
+ 资源共享实例的描述。
84
+
85
+ :return: The description of this UpdateResourceShareReqBody.
86
+ :rtype: str
87
+ """
88
+ return self._description
89
+
90
+ @description.setter
91
+ def description(self, description):
92
+ r"""Sets the description of this UpdateResourceShareReqBody.
93
+
94
+ 资源共享实例的描述。
95
+
96
+ :param description: The description of this UpdateResourceShareReqBody.
97
+ :type description: str
98
+ """
99
+ self._description = description
100
+
101
+ @property
102
+ def allow_external_principals(self):
103
+ r"""Gets the allow_external_principals of this UpdateResourceShareReqBody.
104
+
105
+ 资源共享实例是否支持共享给组织外账号。
106
+
107
+ :return: The allow_external_principals of this UpdateResourceShareReqBody.
108
+ :rtype: bool
109
+ """
110
+ return self._allow_external_principals
111
+
112
+ @allow_external_principals.setter
113
+ def allow_external_principals(self, allow_external_principals):
114
+ r"""Sets the allow_external_principals of this UpdateResourceShareReqBody.
115
+
116
+ 资源共享实例是否支持共享给组织外账号。
117
+
118
+ :param allow_external_principals: The allow_external_principals of this UpdateResourceShareReqBody.
119
+ :type allow_external_principals: bool
120
+ """
121
+ self._allow_external_principals = allow_external_principals
122
+
123
+ def to_dict(self):
124
+ """Returns the model properties as a dict"""
125
+ result = {}
126
+
127
+ for attr, _ in six.iteritems(self.openapi_types):
128
+ value = getattr(self, attr)
129
+ if isinstance(value, list):
130
+ result[attr] = list(map(
131
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
132
+ value
133
+ ))
134
+ elif hasattr(value, "to_dict"):
135
+ result[attr] = value.to_dict()
136
+ elif isinstance(value, dict):
137
+ result[attr] = dict(map(
138
+ lambda item: (item[0], item[1].to_dict())
139
+ if hasattr(item[1], "to_dict") else item,
140
+ value.items()
141
+ ))
142
+ else:
143
+ if attr in self.sensitive_list:
144
+ result[attr] = "****"
145
+ else:
146
+ result[attr] = value
147
+
148
+ return result
149
+
150
+ def to_str(self):
151
+ """Returns the string representation of the model"""
152
+ import simplejson as json
153
+ if six.PY2:
154
+ import sys
155
+ reload(sys)
156
+ sys.setdefaultencoding("utf-8")
157
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
158
+
159
+ def __repr__(self):
160
+ """For `print`"""
161
+ return self.to_str()
162
+
163
+ def __eq__(self, other):
164
+ """Returns true if both objects are equal"""
165
+ if not isinstance(other, UpdateResourceShareReqBody):
166
+ return False
167
+
168
+ return self.__dict__ == other.__dict__
169
+
170
+ def __ne__(self, other):
171
+ """Returns true if both objects are not equal"""
172
+ return not self == other
@@ -0,0 +1,169 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateResourceShareRequest:
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
+ 'resource_share_id': 'str',
23
+ 'body': 'UpdateResourceShareReqBody'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'x_security_token': 'X-Security-Token',
28
+ 'resource_share_id': 'resource_share_id',
29
+ 'body': 'body'
30
+ }
31
+
32
+ def __init__(self, x_security_token=None, resource_share_id=None, body=None):
33
+ r"""UpdateResourceShareRequest
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。
38
+ :type x_security_token: str
39
+ :param resource_share_id: 资源共享实例的ID。
40
+ :type resource_share_id: str
41
+ :param body: Body of the UpdateResourceShareRequest
42
+ :type body: :class:`huaweicloudsdkram.v1.UpdateResourceShareReqBody`
43
+ """
44
+
45
+
46
+
47
+ self._x_security_token = None
48
+ self._resource_share_id = None
49
+ self._body = None
50
+ self.discriminator = None
51
+
52
+ if x_security_token is not None:
53
+ self.x_security_token = x_security_token
54
+ self.resource_share_id = resource_share_id
55
+ if body is not None:
56
+ self.body = body
57
+
58
+ @property
59
+ def x_security_token(self):
60
+ r"""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
+ r"""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
+
80
+ @property
81
+ def resource_share_id(self):
82
+ r"""Gets the resource_share_id of this UpdateResourceShareRequest.
83
+
84
+ 资源共享实例的ID。
85
+
86
+ :return: The resource_share_id of this UpdateResourceShareRequest.
87
+ :rtype: str
88
+ """
89
+ return self._resource_share_id
90
+
91
+ @resource_share_id.setter
92
+ def resource_share_id(self, resource_share_id):
93
+ r"""Sets the resource_share_id of this UpdateResourceShareRequest.
94
+
95
+ 资源共享实例的ID。
96
+
97
+ :param resource_share_id: The resource_share_id of this UpdateResourceShareRequest.
98
+ :type resource_share_id: str
99
+ """
100
+ self._resource_share_id = resource_share_id
101
+
102
+ @property
103
+ def body(self):
104
+ r"""Gets the body of this UpdateResourceShareRequest.
105
+
106
+ :return: The body of this UpdateResourceShareRequest.
107
+ :rtype: :class:`huaweicloudsdkram.v1.UpdateResourceShareReqBody`
108
+ """
109
+ return self._body
110
+
111
+ @body.setter
112
+ def body(self, body):
113
+ r"""Sets the body of this UpdateResourceShareRequest.
114
+
115
+ :param body: The body of this UpdateResourceShareRequest.
116
+ :type body: :class:`huaweicloudsdkram.v1.UpdateResourceShareReqBody`
117
+ """
118
+ self._body = body
119
+
120
+ def to_dict(self):
121
+ """Returns the model properties as a dict"""
122
+ result = {}
123
+
124
+ for attr, _ in six.iteritems(self.openapi_types):
125
+ value = getattr(self, attr)
126
+ if isinstance(value, list):
127
+ result[attr] = list(map(
128
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
129
+ value
130
+ ))
131
+ elif hasattr(value, "to_dict"):
132
+ result[attr] = value.to_dict()
133
+ elif isinstance(value, dict):
134
+ result[attr] = dict(map(
135
+ lambda item: (item[0], item[1].to_dict())
136
+ if hasattr(item[1], "to_dict") else item,
137
+ value.items()
138
+ ))
139
+ else:
140
+ if attr in self.sensitive_list:
141
+ result[attr] = "****"
142
+ else:
143
+ result[attr] = value
144
+
145
+ return result
146
+
147
+ def to_str(self):
148
+ """Returns the string representation of the model"""
149
+ import simplejson as json
150
+ if six.PY2:
151
+ import sys
152
+ reload(sys)
153
+ sys.setdefaultencoding("utf-8")
154
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
155
+
156
+ def __repr__(self):
157
+ """For `print`"""
158
+ return self.to_str()
159
+
160
+ def __eq__(self, other):
161
+ """Returns true if both objects are equal"""
162
+ if not isinstance(other, UpdateResourceShareRequest):
163
+ return False
164
+
165
+ return self.__dict__ == other.__dict__
166
+
167
+ def __ne__(self, other):
168
+ """Returns true if both objects are not equal"""
169
+ return not self == other
@@ -0,0 +1,112 @@
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 UpdateResourceShareResponse(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_share': 'ResourceShare'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'resource_share': 'resource_share'
26
+ }
27
+
28
+ def __init__(self, resource_share=None):
29
+ r"""UpdateResourceShareResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param resource_share:
34
+ :type resource_share: :class:`huaweicloudsdkram.v1.ResourceShare`
35
+ """
36
+
37
+ super(UpdateResourceShareResponse, self).__init__()
38
+
39
+ self._resource_share = None
40
+ self.discriminator = None
41
+
42
+ if resource_share is not None:
43
+ self.resource_share = resource_share
44
+
45
+ @property
46
+ def resource_share(self):
47
+ r"""Gets the resource_share of this UpdateResourceShareResponse.
48
+
49
+ :return: The resource_share of this UpdateResourceShareResponse.
50
+ :rtype: :class:`huaweicloudsdkram.v1.ResourceShare`
51
+ """
52
+ return self._resource_share
53
+
54
+ @resource_share.setter
55
+ def resource_share(self, resource_share):
56
+ r"""Sets the resource_share of this UpdateResourceShareResponse.
57
+
58
+ :param resource_share: The resource_share of this UpdateResourceShareResponse.
59
+ :type resource_share: :class:`huaweicloudsdkram.v1.ResourceShare`
60
+ """
61
+ self._resource_share = resource_share
62
+
63
+ def to_dict(self):
64
+ """Returns the model properties as a dict"""
65
+ result = {}
66
+
67
+ for attr, _ in six.iteritems(self.openapi_types):
68
+ value = getattr(self, attr)
69
+ if isinstance(value, list):
70
+ result[attr] = list(map(
71
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
72
+ value
73
+ ))
74
+ elif hasattr(value, "to_dict"):
75
+ result[attr] = value.to_dict()
76
+ elif isinstance(value, dict):
77
+ result[attr] = dict(map(
78
+ lambda item: (item[0], item[1].to_dict())
79
+ if hasattr(item[1], "to_dict") else item,
80
+ value.items()
81
+ ))
82
+ else:
83
+ if attr in self.sensitive_list:
84
+ result[attr] = "****"
85
+ else:
86
+ result[attr] = value
87
+
88
+ return result
89
+
90
+ def to_str(self):
91
+ """Returns the string representation of the model"""
92
+ import simplejson as json
93
+ if six.PY2:
94
+ import sys
95
+ reload(sys)
96
+ sys.setdefaultencoding("utf-8")
97
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
98
+
99
+ def __repr__(self):
100
+ """For `print`"""
101
+ return self.to_str()
102
+
103
+ def __eq__(self, other):
104
+ """Returns true if both objects are equal"""
105
+ if not isinstance(other, UpdateResourceShareResponse):
106
+ return False
107
+
108
+ return self.__dict__ == other.__dict__
109
+
110
+ def __ne__(self, other):
111
+ """Returns true if both objects are not equal"""
112
+ return not self == other