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,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TagDTO:
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
+ 'key': 'str',
21
+ 'values': 'list[str]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'key': 'key',
26
+ 'values': 'values'
27
+ }
28
+
29
+ def __init__(self, key=None, values=None):
30
+ r"""TagDTO
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param key: 标签\"键\"的标识符或名称。您可以将标签的值设置为空字符串,但不能设置为null。
35
+ :type key: str
36
+ :param values: 值列表。每个值最大长度255个字符。
37
+ :type values: list[str]
38
+ """
39
+
40
+
41
+
42
+ self._key = None
43
+ self._values = None
44
+ self.discriminator = None
45
+
46
+ self.key = key
47
+ self.values = values
48
+
49
+ @property
50
+ def key(self):
51
+ r"""Gets the key of this TagDTO.
52
+
53
+ 标签\"键\"的标识符或名称。您可以将标签的值设置为空字符串,但不能设置为null。
54
+
55
+ :return: The key of this TagDTO.
56
+ :rtype: str
57
+ """
58
+ return self._key
59
+
60
+ @key.setter
61
+ def key(self, key):
62
+ r"""Sets the key of this TagDTO.
63
+
64
+ 标签\"键\"的标识符或名称。您可以将标签的值设置为空字符串,但不能设置为null。
65
+
66
+ :param key: The key of this TagDTO.
67
+ :type key: str
68
+ """
69
+ self._key = key
70
+
71
+ @property
72
+ def values(self):
73
+ r"""Gets the values of this TagDTO.
74
+
75
+ 值列表。每个值最大长度255个字符。
76
+
77
+ :return: The values of this TagDTO.
78
+ :rtype: list[str]
79
+ """
80
+ return self._values
81
+
82
+ @values.setter
83
+ def values(self, values):
84
+ r"""Sets the values of this TagDTO.
85
+
86
+ 值列表。每个值最大长度255个字符。
87
+
88
+ :param values: The values of this TagDTO.
89
+ :type values: list[str]
90
+ """
91
+ self._values = values
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, TagDTO):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other
@@ -0,0 +1,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TagFilter:
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
+ 'key': 'str',
21
+ 'values': 'list[str]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'key': 'key',
26
+ 'values': 'values'
27
+ }
28
+
29
+ def __init__(self, key=None, values=None):
30
+ r"""TagFilter
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param key: 标签\"键\"的标识符或名称。
35
+ :type key: str
36
+ :param values: 标签\"键\"对应的\"值\"列表。
37
+ :type values: list[str]
38
+ """
39
+
40
+
41
+
42
+ self._key = None
43
+ self._values = None
44
+ self.discriminator = None
45
+
46
+ self.key = key
47
+ if values is not None:
48
+ self.values = values
49
+
50
+ @property
51
+ def key(self):
52
+ r"""Gets the key of this TagFilter.
53
+
54
+ 标签\"键\"的标识符或名称。
55
+
56
+ :return: The key of this TagFilter.
57
+ :rtype: str
58
+ """
59
+ return self._key
60
+
61
+ @key.setter
62
+ def key(self, key):
63
+ r"""Sets the key of this TagFilter.
64
+
65
+ 标签\"键\"的标识符或名称。
66
+
67
+ :param key: The key of this TagFilter.
68
+ :type key: str
69
+ """
70
+ self._key = key
71
+
72
+ @property
73
+ def values(self):
74
+ r"""Gets the values of this TagFilter.
75
+
76
+ 标签\"键\"对应的\"值\"列表。
77
+
78
+ :return: The values of this TagFilter.
79
+ :rtype: list[str]
80
+ """
81
+ return self._values
82
+
83
+ @values.setter
84
+ def values(self, values):
85
+ r"""Sets the values of this TagFilter.
86
+
87
+ 标签\"键\"对应的\"值\"列表。
88
+
89
+ :param values: The values of this TagFilter.
90
+ :type values: list[str]
91
+ """
92
+ self._values = values
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, TagFilter):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TagResourceReqBody:
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
+ 'tags': 'list[Tag]'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'tags': 'tags'
25
+ }
26
+
27
+ def __init__(self, tags=None):
28
+ r"""TagResourceReqBody
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param tags: 一个或多个标签键值对的列表。标签键必须存在,而不是空字符串。标签值必须存在,但可以是空字符串。
33
+ :type tags: list[:class:`huaweicloudsdkram.v1.Tag`]
34
+ """
35
+
36
+
37
+
38
+ self._tags = None
39
+ self.discriminator = None
40
+
41
+ self.tags = tags
42
+
43
+ @property
44
+ def tags(self):
45
+ r"""Gets the tags of this TagResourceReqBody.
46
+
47
+ 一个或多个标签键值对的列表。标签键必须存在,而不是空字符串。标签值必须存在,但可以是空字符串。
48
+
49
+ :return: The tags of this TagResourceReqBody.
50
+ :rtype: list[:class:`huaweicloudsdkram.v1.Tag`]
51
+ """
52
+ return self._tags
53
+
54
+ @tags.setter
55
+ def tags(self, tags):
56
+ r"""Sets the tags of this TagResourceReqBody.
57
+
58
+ 一个或多个标签键值对的列表。标签键必须存在,而不是空字符串。标签值必须存在,但可以是空字符串。
59
+
60
+ :param tags: The tags of this TagResourceReqBody.
61
+ :type tags: list[:class:`huaweicloudsdkram.v1.Tag`]
62
+ """
63
+ self._tags = tags
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, TagResourceReqBody):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other
@@ -0,0 +1,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class Untag:
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
+ 'key': 'str',
21
+ 'value': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'key': 'key',
26
+ 'value': 'value'
27
+ }
28
+
29
+ def __init__(self, key=None, value=None):
30
+ r"""Untag
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param key: 标签\"键\"的标识符或名称。
35
+ :type key: str
36
+ :param value: 标签\"键\"对应的\"值\"。您可以将标签的值设置为空字符串,但不能设置为null。
37
+ :type value: str
38
+ """
39
+
40
+
41
+
42
+ self._key = None
43
+ self._value = None
44
+ self.discriminator = None
45
+
46
+ self.key = key
47
+ if value is not None:
48
+ self.value = value
49
+
50
+ @property
51
+ def key(self):
52
+ r"""Gets the key of this Untag.
53
+
54
+ 标签\"键\"的标识符或名称。
55
+
56
+ :return: The key of this Untag.
57
+ :rtype: str
58
+ """
59
+ return self._key
60
+
61
+ @key.setter
62
+ def key(self, key):
63
+ r"""Sets the key of this Untag.
64
+
65
+ 标签\"键\"的标识符或名称。
66
+
67
+ :param key: The key of this Untag.
68
+ :type key: str
69
+ """
70
+ self._key = key
71
+
72
+ @property
73
+ def value(self):
74
+ r"""Gets the value of this Untag.
75
+
76
+ 标签\"键\"对应的\"值\"。您可以将标签的值设置为空字符串,但不能设置为null。
77
+
78
+ :return: The value of this Untag.
79
+ :rtype: str
80
+ """
81
+ return self._value
82
+
83
+ @value.setter
84
+ def value(self, value):
85
+ r"""Sets the value of this Untag.
86
+
87
+ 标签\"键\"对应的\"值\"。您可以将标签的值设置为空字符串,但不能设置为null。
88
+
89
+ :param value: The value of this Untag.
90
+ :type value: str
91
+ """
92
+ self._value = value
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, Untag):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UntagResourceReqBody:
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
+ 'tags': 'list[Untag]'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'tags': 'tags'
25
+ }
26
+
27
+ def __init__(self, tags=None):
28
+ r"""UntagResourceReqBody
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param tags: 一个或多个标签键值对的列表。标签键必须存在,而不是空字符串。标签值必须存在,但可以是空字符串。
33
+ :type tags: list[:class:`huaweicloudsdkram.v1.Untag`]
34
+ """
35
+
36
+
37
+
38
+ self._tags = None
39
+ self.discriminator = None
40
+
41
+ self.tags = tags
42
+
43
+ @property
44
+ def tags(self):
45
+ r"""Gets the tags of this UntagResourceReqBody.
46
+
47
+ 一个或多个标签键值对的列表。标签键必须存在,而不是空字符串。标签值必须存在,但可以是空字符串。
48
+
49
+ :return: The tags of this UntagResourceReqBody.
50
+ :rtype: list[:class:`huaweicloudsdkram.v1.Untag`]
51
+ """
52
+ return self._tags
53
+
54
+ @tags.setter
55
+ def tags(self, tags):
56
+ r"""Sets the tags of this UntagResourceReqBody.
57
+
58
+ 一个或多个标签键值对的列表。标签键必须存在,而不是空字符串。标签值必须存在,但可以是空字符串。
59
+
60
+ :param tags: The tags of this UntagResourceReqBody.
61
+ :type tags: list[:class:`huaweicloudsdkram.v1.Untag`]
62
+ """
63
+ self._tags = tags
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, UntagResourceReqBody):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other