byteplus-python-sdk-v2 3.0.60__py2.py3-none-any.whl → 3.0.61__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.
Files changed (22) hide show
  1. {byteplus_python_sdk_v2-3.0.60.dist-info → byteplus_python_sdk_v2-3.0.61.dist-info}/METADATA +1 -1
  2. {byteplus_python_sdk_v2-3.0.60.dist-info → byteplus_python_sdk_v2-3.0.61.dist-info}/RECORD +22 -18
  3. byteplussdkcore/api_client.py +1 -1
  4. byteplussdkcore/configuration.py +1 -1
  5. byteplussdkcr/__init__.py +4 -0
  6. byteplussdkcr/api/cr_api.py +194 -0
  7. byteplussdkcr/models/__init__.py +4 -0
  8. byteplussdkcr/models/create_namespace_request.py +55 -3
  9. byteplussdkcr/models/create_registry_response.py +29 -1
  10. byteplussdkcr/models/filter_for_list_registries_input.py +27 -1
  11. byteplussdkcr/models/get_authorization_token_request.py +27 -1
  12. byteplussdkcr/models/proxy_cache_for_list_registries_output.py +81 -3
  13. byteplussdkcr/models/update_public_endpoint_request.py +27 -1
  14. byteplussdkcr/models/update_registry_request.py +176 -0
  15. byteplussdkcr/models/update_registry_response.py +95 -0
  16. byteplussdkcr/models/update_tag_description_request.py +244 -0
  17. byteplussdkcr/models/update_tag_description_response.py +95 -0
  18. byteplussdkcr/models/vpc_for_update_vpc_endpoint_input.py +27 -1
  19. {byteplus_python_sdk_v2-3.0.60.dist-info → byteplus_python_sdk_v2-3.0.61.dist-info}/WHEEL +0 -0
  20. {byteplus_python_sdk_v2-3.0.60.dist-info → byteplus_python_sdk_v2-3.0.61.dist-info}/licenses/LICENSE.txt +0 -0
  21. {byteplus_python_sdk_v2-3.0.60.dist-info → byteplus_python_sdk_v2-3.0.61.dist-info}/licenses/NOTICE.md +0 -0
  22. {byteplus_python_sdk_v2-3.0.60.dist-info → byteplus_python_sdk_v2-3.0.61.dist-info}/top_level.txt +0 -0
@@ -33,24 +33,81 @@ class ProxyCacheForListRegistriesOutput(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  swagger_types = {
36
- 'type': 'str'
36
+ 'endpoint': 'str',
37
+ 'skip_ssl_verify': 'bool',
38
+ 'type': 'str',
39
+ 'username': 'str'
37
40
  }
38
41
 
39
42
  attribute_map = {
40
- 'type': 'Type'
43
+ 'endpoint': 'Endpoint',
44
+ 'skip_ssl_verify': 'SkipSSLVerify',
45
+ 'type': 'Type',
46
+ 'username': 'Username'
41
47
  }
42
48
 
43
- def __init__(self, type=None, _configuration=None): # noqa: E501
49
+ def __init__(self, endpoint=None, skip_ssl_verify=None, type=None, username=None, _configuration=None): # noqa: E501
44
50
  """ProxyCacheForListRegistriesOutput - a model defined in Swagger""" # noqa: E501
45
51
  if _configuration is None:
46
52
  _configuration = Configuration()
47
53
  self._configuration = _configuration
48
54
 
55
+ self._endpoint = None
56
+ self._skip_ssl_verify = None
49
57
  self._type = None
58
+ self._username = None
50
59
  self.discriminator = None
51
60
 
61
+ if endpoint is not None:
62
+ self.endpoint = endpoint
63
+ if skip_ssl_verify is not None:
64
+ self.skip_ssl_verify = skip_ssl_verify
52
65
  if type is not None:
53
66
  self.type = type
67
+ if username is not None:
68
+ self.username = username
69
+
70
+ @property
71
+ def endpoint(self):
72
+ """Gets the endpoint of this ProxyCacheForListRegistriesOutput. # noqa: E501
73
+
74
+
75
+ :return: The endpoint of this ProxyCacheForListRegistriesOutput. # noqa: E501
76
+ :rtype: str
77
+ """
78
+ return self._endpoint
79
+
80
+ @endpoint.setter
81
+ def endpoint(self, endpoint):
82
+ """Sets the endpoint of this ProxyCacheForListRegistriesOutput.
83
+
84
+
85
+ :param endpoint: The endpoint of this ProxyCacheForListRegistriesOutput. # noqa: E501
86
+ :type: str
87
+ """
88
+
89
+ self._endpoint = endpoint
90
+
91
+ @property
92
+ def skip_ssl_verify(self):
93
+ """Gets the skip_ssl_verify of this ProxyCacheForListRegistriesOutput. # noqa: E501
94
+
95
+
96
+ :return: The skip_ssl_verify of this ProxyCacheForListRegistriesOutput. # noqa: E501
97
+ :rtype: bool
98
+ """
99
+ return self._skip_ssl_verify
100
+
101
+ @skip_ssl_verify.setter
102
+ def skip_ssl_verify(self, skip_ssl_verify):
103
+ """Sets the skip_ssl_verify of this ProxyCacheForListRegistriesOutput.
104
+
105
+
106
+ :param skip_ssl_verify: The skip_ssl_verify of this ProxyCacheForListRegistriesOutput. # noqa: E501
107
+ :type: bool
108
+ """
109
+
110
+ self._skip_ssl_verify = skip_ssl_verify
54
111
 
55
112
  @property
56
113
  def type(self):
@@ -73,6 +130,27 @@ class ProxyCacheForListRegistriesOutput(object):
73
130
 
74
131
  self._type = type
75
132
 
133
+ @property
134
+ def username(self):
135
+ """Gets the username of this ProxyCacheForListRegistriesOutput. # noqa: E501
136
+
137
+
138
+ :return: The username of this ProxyCacheForListRegistriesOutput. # noqa: E501
139
+ :rtype: str
140
+ """
141
+ return self._username
142
+
143
+ @username.setter
144
+ def username(self, username):
145
+ """Sets the username of this ProxyCacheForListRegistriesOutput.
146
+
147
+
148
+ :param username: The username of this ProxyCacheForListRegistriesOutput. # noqa: E501
149
+ :type: str
150
+ """
151
+
152
+ self._username = username
153
+
76
154
  def to_dict(self):
77
155
  """Returns the model properties as a dict"""
78
156
  result = {}
@@ -33,29 +33,55 @@ class UpdatePublicEndpointRequest(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  swagger_types = {
36
+ 'client_token': 'str',
36
37
  'enabled': 'bool',
37
38
  'registry': 'str'
38
39
  }
39
40
 
40
41
  attribute_map = {
42
+ 'client_token': 'ClientToken',
41
43
  'enabled': 'Enabled',
42
44
  'registry': 'Registry'
43
45
  }
44
46
 
45
- def __init__(self, enabled=None, registry=None, _configuration=None): # noqa: E501
47
+ def __init__(self, client_token=None, enabled=None, registry=None, _configuration=None): # noqa: E501
46
48
  """UpdatePublicEndpointRequest - a model defined in Swagger""" # noqa: E501
47
49
  if _configuration is None:
48
50
  _configuration = Configuration()
49
51
  self._configuration = _configuration
50
52
 
53
+ self._client_token = None
51
54
  self._enabled = None
52
55
  self._registry = None
53
56
  self.discriminator = None
54
57
 
58
+ if client_token is not None:
59
+ self.client_token = client_token
55
60
  if enabled is not None:
56
61
  self.enabled = enabled
57
62
  self.registry = registry
58
63
 
64
+ @property
65
+ def client_token(self):
66
+ """Gets the client_token of this UpdatePublicEndpointRequest. # noqa: E501
67
+
68
+
69
+ :return: The client_token of this UpdatePublicEndpointRequest. # noqa: E501
70
+ :rtype: str
71
+ """
72
+ return self._client_token
73
+
74
+ @client_token.setter
75
+ def client_token(self, client_token):
76
+ """Sets the client_token of this UpdatePublicEndpointRequest.
77
+
78
+
79
+ :param client_token: The client_token of this UpdatePublicEndpointRequest. # noqa: E501
80
+ :type: str
81
+ """
82
+
83
+ self._client_token = client_token
84
+
59
85
  @property
60
86
  def enabled(self):
61
87
  """Gets the enabled of this UpdatePublicEndpointRequest. # noqa: E501
@@ -0,0 +1,176 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ cr
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: common-version
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+
14
+ import pprint
15
+ import re # noqa: F401
16
+
17
+ import six
18
+
19
+ from byteplussdkcore.configuration import Configuration
20
+
21
+
22
+ class UpdateRegistryRequest(object):
23
+ """NOTE: This class is auto generated by the swagger code generator program.
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ swagger_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ swagger_types = {
36
+ 'client_token': 'str',
37
+ 'name': 'str',
38
+ 'storage_encryption_enabled': 'bool'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'client_token': 'ClientToken',
43
+ 'name': 'Name',
44
+ 'storage_encryption_enabled': 'StorageEncryptionEnabled'
45
+ }
46
+
47
+ def __init__(self, client_token=None, name=None, storage_encryption_enabled=None, _configuration=None): # noqa: E501
48
+ """UpdateRegistryRequest - a model defined in Swagger""" # noqa: E501
49
+ if _configuration is None:
50
+ _configuration = Configuration()
51
+ self._configuration = _configuration
52
+
53
+ self._client_token = None
54
+ self._name = None
55
+ self._storage_encryption_enabled = None
56
+ self.discriminator = None
57
+
58
+ if client_token is not None:
59
+ self.client_token = client_token
60
+ self.name = name
61
+ if storage_encryption_enabled is not None:
62
+ self.storage_encryption_enabled = storage_encryption_enabled
63
+
64
+ @property
65
+ def client_token(self):
66
+ """Gets the client_token of this UpdateRegistryRequest. # noqa: E501
67
+
68
+
69
+ :return: The client_token of this UpdateRegistryRequest. # noqa: E501
70
+ :rtype: str
71
+ """
72
+ return self._client_token
73
+
74
+ @client_token.setter
75
+ def client_token(self, client_token):
76
+ """Sets the client_token of this UpdateRegistryRequest.
77
+
78
+
79
+ :param client_token: The client_token of this UpdateRegistryRequest. # noqa: E501
80
+ :type: str
81
+ """
82
+
83
+ self._client_token = client_token
84
+
85
+ @property
86
+ def name(self):
87
+ """Gets the name of this UpdateRegistryRequest. # noqa: E501
88
+
89
+
90
+ :return: The name of this UpdateRegistryRequest. # noqa: E501
91
+ :rtype: str
92
+ """
93
+ return self._name
94
+
95
+ @name.setter
96
+ def name(self, name):
97
+ """Sets the name of this UpdateRegistryRequest.
98
+
99
+
100
+ :param name: The name of this UpdateRegistryRequest. # noqa: E501
101
+ :type: str
102
+ """
103
+ if self._configuration.client_side_validation and name is None:
104
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
105
+
106
+ self._name = name
107
+
108
+ @property
109
+ def storage_encryption_enabled(self):
110
+ """Gets the storage_encryption_enabled of this UpdateRegistryRequest. # noqa: E501
111
+
112
+
113
+ :return: The storage_encryption_enabled of this UpdateRegistryRequest. # noqa: E501
114
+ :rtype: bool
115
+ """
116
+ return self._storage_encryption_enabled
117
+
118
+ @storage_encryption_enabled.setter
119
+ def storage_encryption_enabled(self, storage_encryption_enabled):
120
+ """Sets the storage_encryption_enabled of this UpdateRegistryRequest.
121
+
122
+
123
+ :param storage_encryption_enabled: The storage_encryption_enabled of this UpdateRegistryRequest. # noqa: E501
124
+ :type: bool
125
+ """
126
+
127
+ self._storage_encryption_enabled = storage_encryption_enabled
128
+
129
+ def to_dict(self):
130
+ """Returns the model properties as a dict"""
131
+ result = {}
132
+
133
+ for attr, _ in six.iteritems(self.swagger_types):
134
+ value = getattr(self, attr)
135
+ if isinstance(value, list):
136
+ result[attr] = list(map(
137
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
138
+ value
139
+ ))
140
+ elif hasattr(value, "to_dict"):
141
+ result[attr] = value.to_dict()
142
+ elif isinstance(value, dict):
143
+ result[attr] = dict(map(
144
+ lambda item: (item[0], item[1].to_dict())
145
+ if hasattr(item[1], "to_dict") else item,
146
+ value.items()
147
+ ))
148
+ else:
149
+ result[attr] = value
150
+ if issubclass(UpdateRegistryRequest, dict):
151
+ for key, value in self.items():
152
+ result[key] = value
153
+
154
+ return result
155
+
156
+ def to_str(self):
157
+ """Returns the string representation of the model"""
158
+ return pprint.pformat(self.to_dict())
159
+
160
+ def __repr__(self):
161
+ """For `print` and `pprint`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, UpdateRegistryRequest):
167
+ return False
168
+
169
+ return self.to_dict() == other.to_dict()
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ if not isinstance(other, UpdateRegistryRequest):
174
+ return True
175
+
176
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,95 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ cr
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: common-version
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+
14
+ import pprint
15
+ import re # noqa: F401
16
+
17
+ import six
18
+
19
+ from byteplussdkcore.configuration import Configuration
20
+
21
+
22
+ class UpdateRegistryResponse(object):
23
+ """NOTE: This class is auto generated by the swagger code generator program.
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ swagger_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ swagger_types = {
36
+ }
37
+
38
+ attribute_map = {
39
+ }
40
+
41
+ def __init__(self, _configuration=None): # noqa: E501
42
+ """UpdateRegistryResponse - a model defined in Swagger""" # noqa: E501
43
+ if _configuration is None:
44
+ _configuration = Configuration()
45
+ self._configuration = _configuration
46
+ self.discriminator = None
47
+
48
+ def to_dict(self):
49
+ """Returns the model properties as a dict"""
50
+ result = {}
51
+
52
+ for attr, _ in six.iteritems(self.swagger_types):
53
+ value = getattr(self, attr)
54
+ if isinstance(value, list):
55
+ result[attr] = list(map(
56
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
57
+ value
58
+ ))
59
+ elif hasattr(value, "to_dict"):
60
+ result[attr] = value.to_dict()
61
+ elif isinstance(value, dict):
62
+ result[attr] = dict(map(
63
+ lambda item: (item[0], item[1].to_dict())
64
+ if hasattr(item[1], "to_dict") else item,
65
+ value.items()
66
+ ))
67
+ else:
68
+ result[attr] = value
69
+ if issubclass(UpdateRegistryResponse, dict):
70
+ for key, value in self.items():
71
+ result[key] = value
72
+
73
+ return result
74
+
75
+ def to_str(self):
76
+ """Returns the string representation of the model"""
77
+ return pprint.pformat(self.to_dict())
78
+
79
+ def __repr__(self):
80
+ """For `print` and `pprint`"""
81
+ return self.to_str()
82
+
83
+ def __eq__(self, other):
84
+ """Returns true if both objects are equal"""
85
+ if not isinstance(other, UpdateRegistryResponse):
86
+ return False
87
+
88
+ return self.to_dict() == other.to_dict()
89
+
90
+ def __ne__(self, other):
91
+ """Returns true if both objects are not equal"""
92
+ if not isinstance(other, UpdateRegistryResponse):
93
+ return True
94
+
95
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,244 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ cr
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: common-version
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+
14
+ import pprint
15
+ import re # noqa: F401
16
+
17
+ import six
18
+
19
+ from byteplussdkcore.configuration import Configuration
20
+
21
+
22
+ class UpdateTagDescriptionRequest(object):
23
+ """NOTE: This class is auto generated by the swagger code generator program.
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ swagger_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ swagger_types = {
36
+ 'description': 'str',
37
+ 'name': 'str',
38
+ 'namespace': 'str',
39
+ 'registry': 'str',
40
+ 'repository': 'str'
41
+ }
42
+
43
+ attribute_map = {
44
+ 'description': 'Description',
45
+ 'name': 'Name',
46
+ 'namespace': 'Namespace',
47
+ 'registry': 'Registry',
48
+ 'repository': 'Repository'
49
+ }
50
+
51
+ def __init__(self, description=None, name=None, namespace=None, registry=None, repository=None, _configuration=None): # noqa: E501
52
+ """UpdateTagDescriptionRequest - a model defined in Swagger""" # noqa: E501
53
+ if _configuration is None:
54
+ _configuration = Configuration()
55
+ self._configuration = _configuration
56
+
57
+ self._description = None
58
+ self._name = None
59
+ self._namespace = None
60
+ self._registry = None
61
+ self._repository = None
62
+ self.discriminator = None
63
+
64
+ self.description = description
65
+ self.name = name
66
+ self.namespace = namespace
67
+ self.registry = registry
68
+ self.repository = repository
69
+
70
+ @property
71
+ def description(self):
72
+ """Gets the description of this UpdateTagDescriptionRequest. # noqa: E501
73
+
74
+
75
+ :return: The description of this UpdateTagDescriptionRequest. # noqa: E501
76
+ :rtype: str
77
+ """
78
+ return self._description
79
+
80
+ @description.setter
81
+ def description(self, description):
82
+ """Sets the description of this UpdateTagDescriptionRequest.
83
+
84
+
85
+ :param description: The description of this UpdateTagDescriptionRequest. # noqa: E501
86
+ :type: str
87
+ """
88
+ if self._configuration.client_side_validation and description is None:
89
+ raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501
90
+
91
+ self._description = description
92
+
93
+ @property
94
+ def name(self):
95
+ """Gets the name of this UpdateTagDescriptionRequest. # noqa: E501
96
+
97
+
98
+ :return: The name of this UpdateTagDescriptionRequest. # noqa: E501
99
+ :rtype: str
100
+ """
101
+ return self._name
102
+
103
+ @name.setter
104
+ def name(self, name):
105
+ """Sets the name of this UpdateTagDescriptionRequest.
106
+
107
+
108
+ :param name: The name of this UpdateTagDescriptionRequest. # noqa: E501
109
+ :type: str
110
+ """
111
+ if self._configuration.client_side_validation and name is None:
112
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
113
+
114
+ self._name = name
115
+
116
+ @property
117
+ def namespace(self):
118
+ """Gets the namespace of this UpdateTagDescriptionRequest. # noqa: E501
119
+
120
+
121
+ :return: The namespace of this UpdateTagDescriptionRequest. # noqa: E501
122
+ :rtype: str
123
+ """
124
+ return self._namespace
125
+
126
+ @namespace.setter
127
+ def namespace(self, namespace):
128
+ """Sets the namespace of this UpdateTagDescriptionRequest.
129
+
130
+
131
+ :param namespace: The namespace of this UpdateTagDescriptionRequest. # noqa: E501
132
+ :type: str
133
+ """
134
+ if self._configuration.client_side_validation and namespace is None:
135
+ raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501
136
+ if (self._configuration.client_side_validation and
137
+ namespace is not None and len(namespace) > 90):
138
+ raise ValueError("Invalid value for `namespace`, length must be less than or equal to `90`") # noqa: E501
139
+ if (self._configuration.client_side_validation and
140
+ namespace is not None and len(namespace) < 2):
141
+ raise ValueError("Invalid value for `namespace`, length must be greater than or equal to `2`") # noqa: E501
142
+
143
+ self._namespace = namespace
144
+
145
+ @property
146
+ def registry(self):
147
+ """Gets the registry of this UpdateTagDescriptionRequest. # noqa: E501
148
+
149
+
150
+ :return: The registry of this UpdateTagDescriptionRequest. # noqa: E501
151
+ :rtype: str
152
+ """
153
+ return self._registry
154
+
155
+ @registry.setter
156
+ def registry(self, registry):
157
+ """Sets the registry of this UpdateTagDescriptionRequest.
158
+
159
+
160
+ :param registry: The registry of this UpdateTagDescriptionRequest. # noqa: E501
161
+ :type: str
162
+ """
163
+ if self._configuration.client_side_validation and registry is None:
164
+ raise ValueError("Invalid value for `registry`, must not be `None`") # noqa: E501
165
+ if (self._configuration.client_side_validation and
166
+ registry is not None and len(registry) > 30):
167
+ raise ValueError("Invalid value for `registry`, length must be less than or equal to `30`") # noqa: E501
168
+ if (self._configuration.client_side_validation and
169
+ registry is not None and len(registry) < 3):
170
+ raise ValueError("Invalid value for `registry`, length must be greater than or equal to `3`") # noqa: E501
171
+
172
+ self._registry = registry
173
+
174
+ @property
175
+ def repository(self):
176
+ """Gets the repository of this UpdateTagDescriptionRequest. # noqa: E501
177
+
178
+
179
+ :return: The repository of this UpdateTagDescriptionRequest. # noqa: E501
180
+ :rtype: str
181
+ """
182
+ return self._repository
183
+
184
+ @repository.setter
185
+ def repository(self, repository):
186
+ """Sets the repository of this UpdateTagDescriptionRequest.
187
+
188
+
189
+ :param repository: The repository of this UpdateTagDescriptionRequest. # noqa: E501
190
+ :type: str
191
+ """
192
+ if self._configuration.client_side_validation and repository is None:
193
+ raise ValueError("Invalid value for `repository`, must not be `None`") # noqa: E501
194
+
195
+ self._repository = repository
196
+
197
+ def to_dict(self):
198
+ """Returns the model properties as a dict"""
199
+ result = {}
200
+
201
+ for attr, _ in six.iteritems(self.swagger_types):
202
+ value = getattr(self, attr)
203
+ if isinstance(value, list):
204
+ result[attr] = list(map(
205
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
206
+ value
207
+ ))
208
+ elif hasattr(value, "to_dict"):
209
+ result[attr] = value.to_dict()
210
+ elif isinstance(value, dict):
211
+ result[attr] = dict(map(
212
+ lambda item: (item[0], item[1].to_dict())
213
+ if hasattr(item[1], "to_dict") else item,
214
+ value.items()
215
+ ))
216
+ else:
217
+ result[attr] = value
218
+ if issubclass(UpdateTagDescriptionRequest, dict):
219
+ for key, value in self.items():
220
+ result[key] = value
221
+
222
+ return result
223
+
224
+ def to_str(self):
225
+ """Returns the string representation of the model"""
226
+ return pprint.pformat(self.to_dict())
227
+
228
+ def __repr__(self):
229
+ """For `print` and `pprint`"""
230
+ return self.to_str()
231
+
232
+ def __eq__(self, other):
233
+ """Returns true if both objects are equal"""
234
+ if not isinstance(other, UpdateTagDescriptionRequest):
235
+ return False
236
+
237
+ return self.to_dict() == other.to_dict()
238
+
239
+ def __ne__(self, other):
240
+ """Returns true if both objects are not equal"""
241
+ if not isinstance(other, UpdateTagDescriptionRequest):
242
+ return True
243
+
244
+ return self.to_dict() != other.to_dict()