huaweicloudsdkgeip 3.1.86__py2.py3-none-any.whl → 3.1.88__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.

Potentially problematic release.


This version of huaweicloudsdkgeip might be problematic. Click here for more details.

Files changed (120) hide show
  1. huaweicloudsdkgeip/v3/__init__.py +0 -4
  2. huaweicloudsdkgeip/v3/geip_async_client.py +6 -6
  3. huaweicloudsdkgeip/v3/geip_client.py +6 -6
  4. huaweicloudsdkgeip/v3/model/__init__.py +0 -4
  5. huaweicloudsdkgeip/v3/model/add_geip_segment_tags_request.py +1 -5
  6. huaweicloudsdkgeip/v3/model/add_global_eip_tags_request.py +1 -5
  7. huaweicloudsdkgeip/v3/model/add_internet_bandwidth_tags_request.py +1 -5
  8. huaweicloudsdkgeip/v3/model/associate_geip_segment_instance_request.py +1 -5
  9. huaweicloudsdkgeip/v3/model/associate_instance_global_eip_request_body_global_eip_associate_instance_info.py +5 -1
  10. huaweicloudsdkgeip/v3/model/associate_instance_global_eip_request_body_global_eip_gc_bandwidth_info.py +31 -19
  11. huaweicloudsdkgeip/v3/model/associate_instance_global_eip_segment_request_body_global_eip_segment.py +3 -3
  12. huaweicloudsdkgeip/v3/model/associate_instance_request.py +1 -5
  13. huaweicloudsdkgeip/v3/model/attach_internet_bandwidth.py +5 -1
  14. huaweicloudsdkgeip/v3/model/attach_internet_bandwidth_global_eip.py +21 -21
  15. huaweicloudsdkgeip/v3/model/attach_internet_bandwidth_request.py +1 -5
  16. huaweicloudsdkgeip/v3/model/batch_create_geip_segment_tags_request.py +1 -5
  17. huaweicloudsdkgeip/v3/model/batch_create_geip_segment_tags_response.py +1 -1
  18. huaweicloudsdkgeip/v3/model/batch_create_global_eip.py +21 -21
  19. huaweicloudsdkgeip/v3/model/batch_create_global_eip_request_body_global_eip.py +9 -9
  20. huaweicloudsdkgeip/v3/model/batch_create_global_eip_request_body_global_eip_internet_bandwidth_info.py +10 -10
  21. huaweicloudsdkgeip/v3/model/batch_create_global_eip_tags_request.py +1 -5
  22. huaweicloudsdkgeip/v3/model/batch_create_global_eip_tags_response.py +1 -1
  23. huaweicloudsdkgeip/v3/model/batch_create_internet_bandwidth.py +18 -18
  24. huaweicloudsdkgeip/v3/model/batch_create_internet_bandwidth_request_body_internet_bandwidth.py +12 -12
  25. huaweicloudsdkgeip/v3/model/batch_create_internet_bandwidth_tags_request.py +1 -5
  26. huaweicloudsdkgeip/v3/model/batch_create_internet_bandwidth_tags_response.py +1 -1
  27. huaweicloudsdkgeip/v3/model/batch_create_v2_request_body.py +8 -8
  28. huaweicloudsdkgeip/v3/model/batch_delete_geip_segment_tags_request.py +1 -5
  29. huaweicloudsdkgeip/v3/model/batch_delete_geip_segment_tags_response.py +1 -1
  30. huaweicloudsdkgeip/v3/model/batch_delete_global_eip_tags_request.py +1 -5
  31. huaweicloudsdkgeip/v3/model/batch_delete_global_eip_tags_response.py +1 -1
  32. huaweicloudsdkgeip/v3/model/batch_delete_internet_bandwidth_tags_request.py +1 -5
  33. huaweicloudsdkgeip/v3/model/batch_delete_internet_bandwidth_tags_response.py +1 -1
  34. huaweicloudsdkgeip/v3/model/batch_delete_v2_request_body.py +4 -4
  35. huaweicloudsdkgeip/v3/model/batch_delete_v2_request_body_tags.py +6 -6
  36. huaweicloudsdkgeip/v3/model/count_global_eip_segment_request.py +22 -110
  37. huaweicloudsdkgeip/v3/model/count_global_eips.py +3 -3
  38. huaweicloudsdkgeip/v3/model/count_global_eips_request.py +23 -115
  39. huaweicloudsdkgeip/v3/model/count_internet_bandwidth_request.py +8 -40
  40. huaweicloudsdkgeip/v3/model/create_global_eip.py +6 -6
  41. huaweicloudsdkgeip/v3/model/create_global_eip_request_body_global_eip.py +9 -9
  42. huaweicloudsdkgeip/v3/model/create_global_eip_request_body_global_eip_tags.py +6 -6
  43. huaweicloudsdkgeip/v3/model/create_global_eip_segment_request_body_global_eip_segment.py +9 -9
  44. huaweicloudsdkgeip/v3/model/create_global_eip_segment_request_body_global_eip_segment_internet_bandwidth.py +7 -7
  45. huaweicloudsdkgeip/v3/model/create_internet_bandwidth.py +18 -18
  46. huaweicloudsdkgeip/v3/model/create_internet_bandwidth_request_body_internet_bandwidth.py +12 -12
  47. huaweicloudsdkgeip/v3/model/create_tag.py +6 -6
  48. huaweicloudsdkgeip/v3/model/create_user_disclaimer_record.py +3 -3
  49. huaweicloudsdkgeip/v3/model/create_v2_tag_request_body_tag.py +6 -6
  50. huaweicloudsdkgeip/v3/model/delete_geip_segment_tag_request.py +2 -10
  51. huaweicloudsdkgeip/v3/model/delete_global_eip_request.py +1 -5
  52. huaweicloudsdkgeip/v3/model/delete_global_eip_segment_request.py +1 -5
  53. huaweicloudsdkgeip/v3/model/delete_global_eip_tag_request.py +2 -10
  54. huaweicloudsdkgeip/v3/model/delete_internet_bandwidth_request.py +1 -5
  55. huaweicloudsdkgeip/v3/model/delete_internet_bandwidth_tag_request.py +2 -10
  56. huaweicloudsdkgeip/v3/model/detach_internet_bandwidth_global_eips.py +25 -25
  57. huaweicloudsdkgeip/v3/model/detach_internet_bandwidth_request.py +2 -10
  58. huaweicloudsdkgeip/v3/model/disassociate_geip_segment_instance_request.py +1 -5
  59. huaweicloudsdkgeip/v3/model/disassociate_instance_request.py +1 -5
  60. huaweicloudsdkgeip/v3/model/geip_tags.py +6 -6
  61. huaweicloudsdkgeip/v3/model/get_account_tags_v2.py +6 -6
  62. huaweicloudsdkgeip/v3/model/global_connection_bandwidth_info.py +12 -12
  63. huaweicloudsdkgeip/v3/model/instance_info.py +6 -6
  64. huaweicloudsdkgeip/v3/model/internet_bandwidth_info.py +3 -3
  65. huaweicloudsdkgeip/v3/model/list_access_sites.py +6 -6
  66. huaweicloudsdkgeip/v3/model/list_access_sites_request.py +5 -25
  67. huaweicloudsdkgeip/v3/model/list_geip_pools.py +17 -13
  68. huaweicloudsdkgeip/v3/model/list_geip_pools_request.py +8 -40
  69. huaweicloudsdkgeip/v3/model/list_geip_resource_quotas_request.py +2 -10
  70. huaweicloudsdkgeip/v3/model/list_global_eip_filter_tags_request.py +2 -10
  71. huaweicloudsdkgeip/v3/model/list_global_eip_segments.py +21 -21
  72. huaweicloudsdkgeip/v3/model/list_global_eip_segments_request.py +24 -120
  73. huaweicloudsdkgeip/v3/model/list_global_eips.py +21 -21
  74. huaweicloudsdkgeip/v3/model/list_global_eips_request.py +26 -130
  75. huaweicloudsdkgeip/v3/model/list_internet_bandwidth_filter_tags_request.py +2 -10
  76. huaweicloudsdkgeip/v3/model/list_internet_bandwidth_limits.py +3 -3
  77. huaweicloudsdkgeip/v3/model/list_internet_bandwidth_limits_request.py +3 -15
  78. huaweicloudsdkgeip/v3/model/list_internet_bandwidths.py +18 -18
  79. huaweicloudsdkgeip/v3/model/list_internet_bandwidths_request.py +11 -55
  80. huaweicloudsdkgeip/v3/model/list_jobs.py +3 -3
  81. huaweicloudsdkgeip/v3/model/list_jobs_request.py +4 -20
  82. huaweicloudsdkgeip/v3/model/list_support_instances_support_regions.py +6 -6
  83. huaweicloudsdkgeip/v3/model/list_support_masks.py +6 -6
  84. huaweicloudsdkgeip/v3/model/list_support_masks_request.py +4 -20
  85. huaweicloudsdkgeip/v3/model/list_support_regions.py +6 -6
  86. huaweicloudsdkgeip/v3/model/list_support_regions_request.py +8 -40
  87. huaweicloudsdkgeip/v3/model/list_tenant_geip_support_instances_request.py +2 -10
  88. huaweicloudsdkgeip/v3/model/short_global_eip_segment.py +6 -6
  89. huaweicloudsdkgeip/v3/model/show_geip_segment_tags_request.py +1 -5
  90. huaweicloudsdkgeip/v3/model/show_global_eip.py +21 -21
  91. huaweicloudsdkgeip/v3/model/show_global_eip_request.py +2 -10
  92. huaweicloudsdkgeip/v3/model/show_global_eip_segment.py +21 -21
  93. huaweicloudsdkgeip/v3/model/show_global_eip_segment_request.py +2 -10
  94. huaweicloudsdkgeip/v3/model/show_global_eip_tags_request.py +1 -5
  95. huaweicloudsdkgeip/v3/model/show_internet_bandwidth.py +18 -18
  96. huaweicloudsdkgeip/v3/model/show_internet_bandwidth_request.py +2 -10
  97. huaweicloudsdkgeip/v3/model/show_internet_bandwidth_tags_request.py +1 -5
  98. huaweicloudsdkgeip/v3/model/show_job.py +3 -3
  99. huaweicloudsdkgeip/v3/model/show_jobs_request.py +1 -5
  100. huaweicloudsdkgeip/v3/model/show_user_disclaimer_record.py +3 -3
  101. huaweicloudsdkgeip/v3/model/show_user_disclaimer_request.py +1 -5
  102. huaweicloudsdkgeip/v3/model/sys_tag.py +6 -6
  103. huaweicloudsdkgeip/v3/model/tag.py +6 -6
  104. huaweicloudsdkgeip/v3/model/update_global_eip.py +6 -6
  105. huaweicloudsdkgeip/v3/model/update_global_eip_request.py +1 -5
  106. huaweicloudsdkgeip/v3/model/update_global_eip_request_body_global_eip.py +6 -6
  107. huaweicloudsdkgeip/v3/model/update_global_eip_segment_request.py +1 -5
  108. huaweicloudsdkgeip/v3/model/update_global_eip_segment_request_body_global_eip_segment.py +6 -6
  109. huaweicloudsdkgeip/v3/model/update_internet_bandwidth.py +18 -18
  110. huaweicloudsdkgeip/v3/model/update_internet_bandwidth_request.py +1 -5
  111. huaweicloudsdkgeip/v3/model/update_internet_bandwidth_request_body_internet_bandwidth.py +6 -6
  112. {huaweicloudsdkgeip-3.1.86.dist-info → huaweicloudsdkgeip-3.1.88.dist-info}/METADATA +2 -2
  113. {huaweicloudsdkgeip-3.1.86.dist-info → huaweicloudsdkgeip-3.1.88.dist-info}/RECORD +116 -120
  114. huaweicloudsdkgeip/v3/model/associate_instance_global_eip_request_body_global_eip_gc_bandwidth_info_tags.py +0 -134
  115. huaweicloudsdkgeip/v3/model/batch_create_v2_request_body_sys_tags.py +0 -142
  116. huaweicloudsdkgeip/v3/model/batch_create_v2_request_body_tags.py +0 -142
  117. huaweicloudsdkgeip/v3/model/batch_delete_v2_request_body_sys_tags.py +0 -143
  118. {huaweicloudsdkgeip-3.1.86.dist-info → huaweicloudsdkgeip-3.1.88.dist-info}/LICENSE +0 -0
  119. {huaweicloudsdkgeip-3.1.86.dist-info → huaweicloudsdkgeip-3.1.88.dist-info}/WHEEL +0 -0
  120. {huaweicloudsdkgeip-3.1.86.dist-info → huaweicloudsdkgeip-3.1.88.dist-info}/top_level.txt +0 -0
@@ -1,142 +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 BatchCreateV2RequestBodySysTags:
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
- """BatchCreateV2RequestBodySysTags
31
-
32
- The model defined in huaweicloud sdk
33
-
34
- :param key: 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。
35
- :type key: str
36
- :param value: 标签值,最大长度255个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,点“.”,中文。
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
- self.value = value
48
-
49
- @property
50
- def key(self):
51
- """Gets the key of this BatchCreateV2RequestBodySysTags.
52
-
53
- 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。
54
-
55
- :return: The key of this BatchCreateV2RequestBodySysTags.
56
- :rtype: str
57
- """
58
- return self._key
59
-
60
- @key.setter
61
- def key(self, key):
62
- """Sets the key of this BatchCreateV2RequestBodySysTags.
63
-
64
- 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。
65
-
66
- :param key: The key of this BatchCreateV2RequestBodySysTags.
67
- :type key: str
68
- """
69
- self._key = key
70
-
71
- @property
72
- def value(self):
73
- """Gets the value of this BatchCreateV2RequestBodySysTags.
74
-
75
- 标签值,最大长度255个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,点“.”,中文。
76
-
77
- :return: The value of this BatchCreateV2RequestBodySysTags.
78
- :rtype: str
79
- """
80
- return self._value
81
-
82
- @value.setter
83
- def value(self, value):
84
- """Sets the value of this BatchCreateV2RequestBodySysTags.
85
-
86
- 标签值,最大长度255个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,点“.”,中文。
87
-
88
- :param value: The value of this BatchCreateV2RequestBodySysTags.
89
- :type value: str
90
- """
91
- self._value = value
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, BatchCreateV2RequestBodySysTags):
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
@@ -1,142 +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 BatchCreateV2RequestBodyTags:
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
- """BatchCreateV2RequestBodyTags
31
-
32
- The model defined in huaweicloud sdk
33
-
34
- :param key: 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。
35
- :type key: str
36
- :param value: 标签值,最大长度255个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,点“.”,中文。
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
- self.value = value
48
-
49
- @property
50
- def key(self):
51
- """Gets the key of this BatchCreateV2RequestBodyTags.
52
-
53
- 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。
54
-
55
- :return: The key of this BatchCreateV2RequestBodyTags.
56
- :rtype: str
57
- """
58
- return self._key
59
-
60
- @key.setter
61
- def key(self, key):
62
- """Sets the key of this BatchCreateV2RequestBodyTags.
63
-
64
- 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。
65
-
66
- :param key: The key of this BatchCreateV2RequestBodyTags.
67
- :type key: str
68
- """
69
- self._key = key
70
-
71
- @property
72
- def value(self):
73
- """Gets the value of this BatchCreateV2RequestBodyTags.
74
-
75
- 标签值,最大长度255个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,点“.”,中文。
76
-
77
- :return: The value of this BatchCreateV2RequestBodyTags.
78
- :rtype: str
79
- """
80
- return self._value
81
-
82
- @value.setter
83
- def value(self, value):
84
- """Sets the value of this BatchCreateV2RequestBodyTags.
85
-
86
- 标签值,最大长度255个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,点“.”,中文。
87
-
88
- :param value: The value of this BatchCreateV2RequestBodyTags.
89
- :type value: str
90
- """
91
- self._value = value
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, BatchCreateV2RequestBodyTags):
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
@@ -1,143 +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 BatchDeleteV2RequestBodySysTags:
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
- """BatchDeleteV2RequestBodySysTags
31
-
32
- The model defined in huaweicloud sdk
33
-
34
- :param key: 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。
35
- :type key: str
36
- :param value: 标签值,最大长度255个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,点“.”,中文。
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
- """Gets the key of this BatchDeleteV2RequestBodySysTags.
53
-
54
- 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。
55
-
56
- :return: The key of this BatchDeleteV2RequestBodySysTags.
57
- :rtype: str
58
- """
59
- return self._key
60
-
61
- @key.setter
62
- def key(self, key):
63
- """Sets the key of this BatchDeleteV2RequestBodySysTags.
64
-
65
- 标签键,最大长度128个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。
66
-
67
- :param key: The key of this BatchDeleteV2RequestBodySysTags.
68
- :type key: str
69
- """
70
- self._key = key
71
-
72
- @property
73
- def value(self):
74
- """Gets the value of this BatchDeleteV2RequestBodySysTags.
75
-
76
- 标签值,最大长度255个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,点“.”,中文。
77
-
78
- :return: The value of this BatchDeleteV2RequestBodySysTags.
79
- :rtype: str
80
- """
81
- return self._value
82
-
83
- @value.setter
84
- def value(self, value):
85
- """Sets the value of this BatchDeleteV2RequestBodySysTags.
86
-
87
- 标签值,最大长度255个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,点“.”,中文。
88
-
89
- :param value: The value of this BatchDeleteV2RequestBodySysTags.
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, BatchDeleteV2RequestBodySysTags):
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