kaggle 1.7.4.2__py3-none-any.whl → 1.8.0__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 (114) hide show
  1. kaggle/__init__.py +10 -6
  2. kaggle/api/kaggle_api.py +574 -585
  3. kaggle/api/kaggle_api_extended.py +5251 -4738
  4. kaggle/cli.py +1335 -1585
  5. kaggle/models/api_blob_type.py +3 -3
  6. kaggle/models/dataset_column.py +129 -129
  7. kaggle/models/dataset_new_request.py +130 -72
  8. kaggle/models/dataset_new_version_request.py +88 -56
  9. kaggle/models/dataset_update_settings_request.py +93 -59
  10. kaggle/models/kaggle_models_extended.py +169 -172
  11. kaggle/models/kernel_push_request.py +152 -100
  12. kaggle/models/model_instance_new_version_request.py +30 -30
  13. kaggle/models/model_instance_update_request.py +171 -71
  14. kaggle/models/model_new_instance_request.py +223 -88
  15. kaggle/models/model_new_request.py +61 -46
  16. kaggle/models/model_update_request.py +66 -48
  17. kaggle/models/start_blob_upload_request.py +146 -138
  18. kaggle/models/start_blob_upload_response.py +83 -78
  19. kaggle/models/upload_file.py +92 -96
  20. kaggle/test/test_authenticate.py +23 -23
  21. {kaggle-1.7.4.2.dist-info → kaggle-1.8.0.dist-info}/METADATA +11 -15
  22. kaggle-1.8.0.dist-info/RECORD +148 -0
  23. kagglesdk/__init__.py +5 -1
  24. kagglesdk/benchmarks/services/__init__.py +0 -0
  25. kagglesdk/benchmarks/services/benchmarks_api_service.py +19 -0
  26. kagglesdk/benchmarks/types/__init__.py +0 -0
  27. kagglesdk/benchmarks/types/benchmark_types.py +307 -0
  28. kagglesdk/benchmarks/types/benchmarks_api_service.py +243 -0
  29. kagglesdk/blobs/services/blob_api_service.py +1 -1
  30. kagglesdk/blobs/types/blob_api_service.py +2 -2
  31. kagglesdk/common/services/__init__.py +0 -0
  32. kagglesdk/common/services/operations_service.py +46 -0
  33. kagglesdk/common/types/file_download.py +1 -1
  34. kagglesdk/common/types/http_redirect.py +1 -1
  35. kagglesdk/common/types/operations.py +194 -0
  36. kagglesdk/common/types/operations_service.py +48 -0
  37. kagglesdk/community/__init__.py +0 -0
  38. kagglesdk/community/types/__init__.py +0 -0
  39. kagglesdk/community/types/content_enums.py +44 -0
  40. kagglesdk/community/types/organization.py +410 -0
  41. kagglesdk/competitions/services/competition_api_service.py +49 -12
  42. kagglesdk/competitions/types/competition.py +14 -0
  43. kagglesdk/competitions/types/competition_api_service.py +1639 -1275
  44. kagglesdk/competitions/types/search_competitions.py +28 -0
  45. kagglesdk/datasets/databundles/__init__.py +0 -0
  46. kagglesdk/datasets/databundles/types/__init__.py +0 -0
  47. kagglesdk/datasets/databundles/types/databundle_api_types.py +540 -0
  48. kagglesdk/datasets/services/dataset_api_service.py +39 -14
  49. kagglesdk/datasets/types/dataset_api_service.py +567 -297
  50. kagglesdk/datasets/types/dataset_enums.py +21 -0
  51. kagglesdk/datasets/types/dataset_service.py +145 -0
  52. kagglesdk/datasets/types/dataset_types.py +74 -74
  53. kagglesdk/datasets/types/search_datasets.py +6 -0
  54. kagglesdk/discussions/__init__.py +0 -0
  55. kagglesdk/discussions/types/__init__.py +0 -0
  56. kagglesdk/discussions/types/search_discussions.py +43 -0
  57. kagglesdk/discussions/types/writeup_enums.py +11 -0
  58. kagglesdk/education/services/education_api_service.py +1 -1
  59. kagglesdk/education/types/education_api_service.py +1 -1
  60. kagglesdk/kaggle_client.py +55 -20
  61. kagglesdk/kaggle_creds.py +148 -0
  62. kagglesdk/kaggle_env.py +89 -27
  63. kagglesdk/kaggle_http_client.py +235 -290
  64. kagglesdk/kaggle_oauth.py +200 -0
  65. kagglesdk/kaggle_object.py +298 -250
  66. kagglesdk/kernels/services/kernels_api_service.py +46 -9
  67. kagglesdk/kernels/types/kernels_api_service.py +658 -158
  68. kagglesdk/kernels/types/kernels_enums.py +6 -0
  69. kagglesdk/kernels/types/search_kernels.py +6 -0
  70. kagglesdk/licenses/__init__.py +0 -0
  71. kagglesdk/licenses/types/__init__.py +0 -0
  72. kagglesdk/licenses/types/licenses_types.py +182 -0
  73. kagglesdk/models/services/model_api_service.py +46 -21
  74. kagglesdk/models/types/model_api_service.py +1018 -652
  75. kagglesdk/models/types/model_enums.py +8 -0
  76. kagglesdk/models/types/model_service.py +71 -71
  77. kagglesdk/models/types/model_types.py +1057 -5
  78. kagglesdk/models/types/search_models.py +8 -0
  79. kagglesdk/search/__init__.py +0 -0
  80. kagglesdk/search/services/__init__.py +0 -0
  81. kagglesdk/search/services/search_api_service.py +19 -0
  82. kagglesdk/search/types/__init__.py +0 -0
  83. kagglesdk/search/types/search_api_service.py +2435 -0
  84. kagglesdk/search/types/search_content_shared.py +50 -0
  85. kagglesdk/search/types/search_enums.py +45 -0
  86. kagglesdk/search/types/search_service.py +303 -0
  87. kagglesdk/security/__init__.py +0 -0
  88. kagglesdk/security/services/__init__.py +0 -0
  89. kagglesdk/security/services/iam_service.py +31 -0
  90. kagglesdk/security/services/oauth_service.py +58 -0
  91. kagglesdk/security/types/__init__.py +0 -0
  92. kagglesdk/security/types/authentication.py +171 -0
  93. kagglesdk/security/types/iam_service.py +496 -0
  94. kagglesdk/security/types/oauth_service.py +1181 -0
  95. kagglesdk/security/types/roles.py +8 -0
  96. kagglesdk/security/types/security_types.py +159 -0
  97. kagglesdk/test/__init__.py +0 -0
  98. kagglesdk/test/test_client.py +20 -24
  99. kagglesdk/users/services/__init__.py +0 -0
  100. kagglesdk/users/services/account_service.py +31 -0
  101. kagglesdk/users/services/group_api_service.py +31 -0
  102. kagglesdk/users/types/account_service.py +345 -0
  103. kagglesdk/users/types/group_api_service.py +315 -0
  104. kagglesdk/users/types/group_types.py +165 -0
  105. kagglesdk/users/types/groups_enum.py +8 -0
  106. kagglesdk/users/types/progression_service.py +9 -0
  107. kagglesdk/users/types/search_users.py +23 -0
  108. kagglesdk/users/types/user_avatar.py +226 -0
  109. kaggle/configuration.py +0 -206
  110. kaggle-1.7.4.2.dist-info/RECORD +0 -89
  111. {kaggle-1.7.4.2.dist-info → kaggle-1.8.0.dist-info}/WHEEL +0 -0
  112. {kaggle-1.7.4.2.dist-info → kaggle-1.8.0.dist-info}/entry_points.txt +0 -0
  113. {kaggle-1.7.4.2.dist-info → kaggle-1.8.0.dist-info}/licenses/LICENSE.txt +0 -0
  114. {kaggle/test → kagglesdk/benchmarks}/__init__.py +0 -0
@@ -30,31 +30,43 @@ class ModelInstanceUpdateRequest(object):
30
30
  attribute_map (dict): The key is attribute name
31
31
  and the value is json key in definition.
32
32
  """
33
+
33
34
  project_types = {
34
- 'overview': 'str',
35
- 'usage': 'str',
36
- 'license_name': 'str',
37
- 'fine_tunable': 'bool',
38
- 'training_data': 'list[str]',
39
- 'model_instance_type': 'str',
40
- 'base_model_instance': 'str',
41
- 'external_base_model_url': 'int',
42
- 'update_mask': 'str'
35
+ "overview": "str",
36
+ "usage": "str",
37
+ "license_name": "str",
38
+ "fine_tunable": "bool",
39
+ "training_data": "list[str]",
40
+ "model_instance_type": "str",
41
+ "base_model_instance": "str",
42
+ "external_base_model_url": "int",
43
+ "update_mask": "str",
43
44
  }
44
45
 
45
46
  attribute_map = {
46
- 'overview': 'overview',
47
- 'usage': 'usage',
48
- 'license_name': 'licenseName',
49
- 'fine_tunable': 'fineTunable',
50
- 'training_data': 'trainingData',
51
- 'model_instance_type': 'modelInstanceType',
52
- 'base_model_instance': 'baseModelInstance',
53
- 'external_base_model_url': 'externalBaseModelUrl',
54
- 'update_mask': 'updateMask'
47
+ "overview": "overview",
48
+ "usage": "usage",
49
+ "license_name": "licenseName",
50
+ "fine_tunable": "fineTunable",
51
+ "training_data": "trainingData",
52
+ "model_instance_type": "modelInstanceType",
53
+ "base_model_instance": "baseModelInstance",
54
+ "external_base_model_url": "externalBaseModelUrl",
55
+ "update_mask": "updateMask",
55
56
  }
56
57
 
57
- def __init__(self, overview=None, usage=None, license_name='Apache 2.0', fine_tunable=True, training_data=None, model_instance_type=None, base_model_instance=None, external_base_model_url=None, update_mask=None): # noqa: E501
58
+ def __init__(
59
+ self,
60
+ overview=None,
61
+ usage=None,
62
+ license_name="Apache 2.0",
63
+ fine_tunable=True,
64
+ training_data=None,
65
+ model_instance_type=None,
66
+ base_model_instance=None,
67
+ external_base_model_url=None,
68
+ update_mask=None,
69
+ ): # noqa: E501
58
70
 
59
71
  self._overview = None
60
72
  self._usage = None
@@ -87,11 +99,12 @@ class ModelInstanceUpdateRequest(object):
87
99
 
88
100
  @property
89
101
  def overview(self):
90
- """Gets the overview of this ModelInstanceUpdateRequest. # noqa: E501
102
+ """Gets the overview of this ModelInstanceUpdateRequest. # noqa: E501.
91
103
 
92
104
  The overview of the model instance (markdown) # noqa: E501
93
105
 
94
- :return: The overview of this ModelInstanceUpdateRequest. # noqa: E501
106
+ :return: The overview of this ModelInstanceUpdateRequest. #
107
+ noqa: E501
95
108
  :rtype: str
96
109
  """
97
110
  return self._overview
@@ -102,7 +115,8 @@ class ModelInstanceUpdateRequest(object):
102
115
 
103
116
  The overview of the model instance (markdown) # noqa: E501
104
117
 
105
- :param overview: The overview of this ModelInstanceUpdateRequest. # noqa: E501
118
+ :param overview: The overview of this
119
+ ModelInstanceUpdateRequest. # noqa: E501
106
120
  :type: str
107
121
  """
108
122
 
@@ -110,11 +124,13 @@ class ModelInstanceUpdateRequest(object):
110
124
 
111
125
  @property
112
126
  def usage(self):
113
- """Gets the usage of this ModelInstanceUpdateRequest. # noqa: E501
127
+ """Gets the usage of this ModelInstanceUpdateRequest. # noqa: E501.
114
128
 
115
- The description of how to use the model instance (markdown) # noqa: E501
129
+ The description of how to use the model instance (markdown) #
130
+ noqa: E501
116
131
 
117
- :return: The usage of this ModelInstanceUpdateRequest. # noqa: E501
132
+ :return: The usage of this ModelInstanceUpdateRequest. # noqa:
133
+ E501
118
134
  :rtype: str
119
135
  """
120
136
  return self._usage
@@ -123,9 +139,11 @@ class ModelInstanceUpdateRequest(object):
123
139
  def usage(self, usage):
124
140
  """Sets the usage of this ModelInstanceUpdateRequest.
125
141
 
126
- The description of how to use the model instance (markdown) # noqa: E501
142
+ The description of how to use the model instance (markdown) #
143
+ noqa: E501
127
144
 
128
- :param usage: The usage of this ModelInstanceUpdateRequest. # noqa: E501
145
+ :param usage: The usage of this ModelInstanceUpdateRequest. #
146
+ noqa: E501
129
147
  :type: str
130
148
  """
131
149
 
@@ -133,11 +151,14 @@ class ModelInstanceUpdateRequest(object):
133
151
 
134
152
  @property
135
153
  def license_name(self):
136
- """Gets the license_name of this ModelInstanceUpdateRequest. # noqa: E501
154
+ """Gets the license_name of this ModelInstanceUpdateRequest. # noqa:
155
+ E501.
137
156
 
138
- The license that should be associated with the model instance # noqa: E501
157
+ The license that should be associated with the model instance #
158
+ noqa: E501
139
159
 
140
- :return: The license_name of this ModelInstanceUpdateRequest. # noqa: E501
160
+ :return: The license_name of this ModelInstanceUpdateRequest. #
161
+ noqa: E501
141
162
  :rtype: str
142
163
  """
143
164
  return self._license_name
@@ -146,27 +167,90 @@ class ModelInstanceUpdateRequest(object):
146
167
  def license_name(self, license_name):
147
168
  """Sets the license_name of this ModelInstanceUpdateRequest.
148
169
 
149
- The license that should be associated with the model instance # noqa: E501
170
+ The license that should be associated with the model instance #
171
+ noqa: E501
150
172
 
151
- :param license_name: The license_name of this ModelInstanceUpdateRequest. # noqa: E501
173
+ :param license_name: The license_name of this
174
+ ModelInstanceUpdateRequest. # noqa: E501
152
175
  :type: str
153
176
  """
154
- allowed_values = ["CC0 1.0", "CC BY-NC-SA 4.0", "Unknown", "CC BY-SA 4.0", "GPL 2", "CC BY-SA 3.0", "Other", "Other (specified in description)", "CC BY 4.0", "Attribution 4.0 International (CC BY 4.0)", "CC BY-NC 4.0", "Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)", "PDDL", "ODC Public Domain Dedication and Licence (PDDL)", "CC BY 3.0", "Attribution 3.0 Unported (CC BY 3.0)", "CC BY 3.0 IGO", "Attribution 3.0 IGO (CC BY 3.0 IGO)", "CC BY-NC-SA 3.0 IGO", "Attribution-NonCommercial-ShareAlike 3.0 IGO (CC BY-NC-SA 3.0 IGO)", "CDLA Permissive 1.0", "Community Data License Agreement - Permissive - Version 1.0", "CDLA Sharing 1.0", "Community Data License Agreement - Sharing - Version 1.0", "CC BY-ND 4.0", "Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0)", "CC BY-NC-ND 4.0", "Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)", "ODC-BY 1.0", "ODC Attribution License (ODC-By)", "LGPL 3.0", "GNU Lesser General Public License 3.0", "AGPL 3.0", "GNU Affero General Public License 3.0", "FDL 1.3", "GNU Free Documentation License 1.3", "apache-2.0", "Apache 2.0", "mit", "MIT", "bsd-3-clause", "BSD-3-Clause", "Llama 2", "Llama 2 Community License", "Gemma", "gpl-3", "GPL 3", "RAIL-M", "AI Pubs Open RAIL-M License", "AIPubs Research-Use RAIL-M", "AI Pubs Research-Use RAIL-M License", "BigScience OpenRAIL-M", "BigScience Open RAIL-M License", "RAIL", "RAIL (specified in description)", "Llama 3", "Llama 3 Community License"] # noqa: E501
177
+ allowed_values = [
178
+ "CC0 1.0",
179
+ "CC BY-NC-SA 4.0",
180
+ "Unknown",
181
+ "CC BY-SA 4.0",
182
+ "GPL 2",
183
+ "CC BY-SA 3.0",
184
+ "Other",
185
+ "Other (specified in description)",
186
+ "CC BY 4.0",
187
+ "Attribution 4.0 International (CC BY 4.0)",
188
+ "CC BY-NC 4.0",
189
+ "Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)",
190
+ "PDDL",
191
+ "ODC Public Domain Dedication and Licence (PDDL)",
192
+ "CC BY 3.0",
193
+ "Attribution 3.0 Unported (CC BY 3.0)",
194
+ "CC BY 3.0 IGO",
195
+ "Attribution 3.0 IGO (CC BY 3.0 IGO)",
196
+ "CC BY-NC-SA 3.0 IGO",
197
+ "Attribution-NonCommercial-ShareAlike 3.0 IGO (CC BY-NC-SA 3.0 IGO)",
198
+ "CDLA Permissive 1.0",
199
+ "Community Data License Agreement - Permissive - Version 1.0",
200
+ "CDLA Sharing 1.0",
201
+ "Community Data License Agreement - Sharing - Version 1.0",
202
+ "CC BY-ND 4.0",
203
+ "Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0)",
204
+ "CC BY-NC-ND 4.0",
205
+ "Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)",
206
+ "ODC-BY 1.0",
207
+ "ODC Attribution License (ODC-By)",
208
+ "LGPL 3.0",
209
+ "GNU Lesser General Public License 3.0",
210
+ "AGPL 3.0",
211
+ "GNU Affero General Public License 3.0",
212
+ "FDL 1.3",
213
+ "GNU Free Documentation License 1.3",
214
+ "apache-2.0",
215
+ "Apache 2.0",
216
+ "mit",
217
+ "MIT",
218
+ "bsd-3-clause",
219
+ "BSD-3-Clause",
220
+ "Llama 2",
221
+ "Llama 2 Community License",
222
+ "Gemma",
223
+ "gpl-3",
224
+ "GPL 3",
225
+ "RAIL-M",
226
+ "AI Pubs Open RAIL-M License",
227
+ "AIPubs Research-Use RAIL-M",
228
+ "AI Pubs Research-Use RAIL-M License",
229
+ "BigScience OpenRAIL-M",
230
+ "BigScience Open RAIL-M License",
231
+ "RAIL",
232
+ "RAIL (specified in description)",
233
+ "Llama 3",
234
+ "Llama 3 Community License",
235
+ ] # noqa: E501
155
236
  if license_name not in allowed_values:
156
237
  raise ValueError(
157
- "Invalid value for `license_name` ({0}), must be one of {1}" # noqa: E501
158
- .format(license_name, allowed_values)
238
+ "Invalid value for `license_name` ({0}), must be one of {1}".format( # noqa: E501
239
+ license_name, allowed_values
240
+ )
159
241
  )
160
242
 
161
243
  self._license_name = license_name
162
244
 
163
245
  @property
164
246
  def fine_tunable(self):
165
- """Gets the fine_tunable of this ModelInstanceUpdateRequest. # noqa: E501
247
+ """Gets the fine_tunable of this ModelInstanceUpdateRequest. # noqa:
248
+ E501.
166
249
 
167
250
  Whether the model instance is fine tunable # noqa: E501
168
251
 
169
- :return: The fine_tunable of this ModelInstanceUpdateRequest. # noqa: E501
252
+ :return: The fine_tunable of this ModelInstanceUpdateRequest. #
253
+ noqa: E501
170
254
  :rtype: bool
171
255
  """
172
256
  return self._fine_tunable
@@ -177,7 +261,8 @@ class ModelInstanceUpdateRequest(object):
177
261
 
178
262
  Whether the model instance is fine tunable # noqa: E501
179
263
 
180
- :param fine_tunable: The fine_tunable of this ModelInstanceUpdateRequest. # noqa: E501
264
+ :param fine_tunable: The fine_tunable of this
265
+ ModelInstanceUpdateRequest. # noqa: E501
181
266
  :type: bool
182
267
  """
183
268
 
@@ -185,11 +270,13 @@ class ModelInstanceUpdateRequest(object):
185
270
 
186
271
  @property
187
272
  def training_data(self):
188
- """Gets the training_data of this ModelInstanceUpdateRequest. # noqa: E501
273
+ """Gets the training_data of this ModelInstanceUpdateRequest. # noqa:
274
+ E501.
189
275
 
190
276
  A list of training data (urls or names) # noqa: E501
191
277
 
192
- :return: The training_data of this ModelInstanceUpdateRequest. # noqa: E501
278
+ :return: The training_data of this ModelInstanceUpdateRequest. #
279
+ noqa: E501
193
280
  :rtype: list[str]
194
281
  """
195
282
  return self._training_data
@@ -200,7 +287,8 @@ class ModelInstanceUpdateRequest(object):
200
287
 
201
288
  A list of training data (urls or names) # noqa: E501
202
289
 
203
- :param training_data: The training_data of this ModelInstanceUpdateRequest. # noqa: E501
290
+ :param training_data: The training_data of this
291
+ ModelInstanceUpdateRequest. # noqa: E501
204
292
  :type: list[str]
205
293
  """
206
294
 
@@ -208,11 +296,14 @@ class ModelInstanceUpdateRequest(object):
208
296
 
209
297
  @property
210
298
  def model_instance_type(self):
211
- """Gets the model_instance_type of this ModelInstanceUpdateRequest. # noqa: E501
299
+ """Gets the model_instance_type of this ModelInstanceUpdateRequest. #
300
+ noqa: E501.
212
301
 
213
- Whether the model instance is a base model, external variant, internal variant, or unspecified # noqa: E501
302
+ Whether the model instance is a base model, external variant,
303
+ internal variant, or unspecified # noqa: E501
214
304
 
215
- :return: The model_instance_type of this ModelInstanceUpdateRequest. # noqa: E501
305
+ :return: The model_instance_type of this
306
+ ModelInstanceUpdateRequest. # noqa: E501
216
307
  :rtype: str
217
308
  """
218
309
  return self._model_instance_type
@@ -221,23 +312,27 @@ class ModelInstanceUpdateRequest(object):
221
312
  def model_instance_type(self, model_instance_type):
222
313
  """Sets the model_instance_type of this ModelInstanceUpdateRequest.
223
314
 
224
- Whether the model instance is a base model, external variant, internal variant, or unspecified # noqa: E501
315
+ Whether the model instance is a base model, external variant,
316
+ internal variant, or unspecified # noqa: E501
225
317
 
226
- :param model_instance_type: The model_instance_type of this ModelInstanceUpdateRequest. # noqa: E501
318
+ :param model_instance_type: The model_instance_type of this
319
+ ModelInstanceUpdateRequest. # noqa: E501
227
320
  :type: str
228
321
  """
229
322
  allowed_values = ["Unspecified", "BaseModel", "KaggleVariant", "ExternalVariant"] # noqa: E501
230
323
  if model_instance_type not in allowed_values:
231
324
  raise ValueError(
232
- "Invalid value for `model_instance_type` ({0}), must be one of {1}" # noqa: E501
233
- .format(model_instance_type, allowed_values)
325
+ "Invalid value for `model_instance_type` ({0}), must be one of {1}".format( # noqa: E501
326
+ model_instance_type, allowed_values
327
+ )
234
328
  )
235
329
 
236
330
  self._model_instance_type = model_instance_type
237
331
 
238
332
  @property
239
333
  def base_model_instance(self):
240
- """Gets the base_model_instance of this ModelInstanceUpdateRequest. # noqa: E501
334
+ """Gets the base_model_instance of this ModelInstanceUpdateRequest. #
335
+ noqa: E501.
241
336
 
242
337
  If this is an internal variant, the `{owner-slug}/{model-slug}/{framework}/{instance-slug}` of the base model instance # noqa: E501
243
338
 
@@ -260,11 +355,14 @@ class ModelInstanceUpdateRequest(object):
260
355
 
261
356
  @property
262
357
  def external_base_model_url(self):
263
- """Gets the external_base_model_url of this ModelInstanceUpdateRequest. # noqa: E501
358
+ """Gets the external_base_model_url of this ModelInstanceUpdateRequest.
359
+ # noqa: E501.
264
360
 
265
- If this is an external variant, a URL to the base model # noqa: E501
361
+ If this is an external variant, a URL to the base model # noqa:
362
+ E501
266
363
 
267
- :return: The external_base_model_url of this ModelInstanceUpdateRequest. # noqa: E501
364
+ :return: The external_base_model_url of this
365
+ ModelInstanceUpdateRequest. # noqa: E501
268
366
  :rtype: int
269
367
  """
270
368
  return self._external_base_model_url
@@ -273,9 +371,11 @@ class ModelInstanceUpdateRequest(object):
273
371
  def external_base_model_url(self, external_base_model_url):
274
372
  """Sets the external_base_model_url of this ModelInstanceUpdateRequest.
275
373
 
276
- If this is an external variant, a URL to the base model # noqa: E501
374
+ If this is an external variant, a URL to the base model # noqa:
375
+ E501
277
376
 
278
- :param external_base_model_url: The external_base_model_url of this ModelInstanceUpdateRequest. # noqa: E501
377
+ :param external_base_model_url: The external_base_model_url of
378
+ this ModelInstanceUpdateRequest. # noqa: E501
279
379
  :type: int
280
380
  """
281
381
 
@@ -283,11 +383,13 @@ class ModelInstanceUpdateRequest(object):
283
383
 
284
384
  @property
285
385
  def update_mask(self):
286
- """Gets the update_mask of this ModelInstanceUpdateRequest. # noqa: E501
386
+ """Gets the update_mask of this ModelInstanceUpdateRequest. # noqa:
387
+ E501.
287
388
 
288
389
  Describes which fields to update # noqa: E501
289
390
 
290
- :return: The update_mask of this ModelInstanceUpdateRequest. # noqa: E501
391
+ :return: The update_mask of this ModelInstanceUpdateRequest. #
392
+ noqa: E501
291
393
  :rtype: str
292
394
  """
293
395
  return self._update_mask
@@ -298,7 +400,8 @@ class ModelInstanceUpdateRequest(object):
298
400
 
299
401
  Describes which fields to update # noqa: E501
300
402
 
301
- :param update_mask: The update_mask of this ModelInstanceUpdateRequest. # noqa: E501
403
+ :param update_mask: The update_mask of this
404
+ ModelInstanceUpdateRequest. # noqa: E501
302
405
  :type: str
303
406
  """
304
407
  if update_mask is None:
@@ -307,31 +410,29 @@ class ModelInstanceUpdateRequest(object):
307
410
  self._update_mask = update_mask
308
411
 
309
412
  def to_dict(self):
310
- """Returns the model properties as a dict"""
413
+ """Returns the model properties as a dict."""
311
414
  result = {}
312
415
 
313
416
  for attr, _ in six.iteritems(self.project_types):
314
417
  value = getattr(self, attr)
315
418
  if isinstance(value, list):
316
- result[attr] = list(map(
317
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
318
- value
319
- ))
419
+ result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
320
420
  elif hasattr(value, "to_dict"):
321
421
  result[attr] = value.to_dict()
322
422
  elif isinstance(value, dict):
323
- result[attr] = dict(map(
324
- lambda item: (item[0], item[1].to_dict())
325
- if hasattr(item[1], "to_dict") else item,
326
- value.items()
327
- ))
423
+ result[attr] = dict(
424
+ map(
425
+ lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item,
426
+ value.items(),
427
+ )
428
+ )
328
429
  else:
329
430
  result[attr] = value
330
431
 
331
432
  return result
332
433
 
333
434
  def to_str(self):
334
- """Returns the string representation of the model"""
435
+ """Returns the string representation of the model."""
335
436
  return pprint.pformat(self.to_dict())
336
437
 
337
438
  def __repr__(self):
@@ -339,13 +440,12 @@ class ModelInstanceUpdateRequest(object):
339
440
  return self.to_str()
340
441
 
341
442
  def __eq__(self, other):
342
- """Returns true if both objects are equal"""
443
+ """Returns true if both objects are equal."""
343
444
  if not isinstance(other, ModelInstanceUpdateRequest):
344
445
  return False
345
446
 
346
447
  return self.__dict__ == other.__dict__
347
448
 
348
449
  def __ne__(self, other):
349
- """Returns true if both objects are not equal"""
450
+ """Returns true if both objects are not equal."""
350
451
  return not self == other
351
-