kaggle 1.7.4.1__py3-none-any.whl → 1.7.4.5__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.
- kaggle/api/kaggle_api.py +92 -79
- kaggle/api/kaggle_api_extended.py +909 -878
- kaggle/configuration.py +3 -3
- kaggle/models/dataset_column.py +58 -49
- kaggle/models/dataset_new_request.py +47 -31
- kaggle/models/dataset_new_version_request.py +56 -31
- kaggle/models/dataset_update_settings_request.py +58 -32
- kaggle/models/kernel_push_request.py +86 -51
- kaggle/models/model_instance_new_version_request.py +20 -12
- kaggle/models/model_instance_update_request.py +68 -37
- kaggle/models/model_new_instance_request.py +85 -47
- kaggle/models/model_new_request.py +26 -19
- kaggle/models/model_update_request.py +34 -23
- kaggle/models/start_blob_upload_request.py +60 -49
- kaggle/models/start_blob_upload_response.py +27 -22
- kaggle/models/upload_file.py +33 -31
- {kaggle-1.7.4.1.dist-info → kaggle-1.7.4.5.dist-info}/METADATA +1 -1
- {kaggle-1.7.4.1.dist-info → kaggle-1.7.4.5.dist-info}/RECORD +40 -31
- kagglesdk/__init__.py +1 -1
- kagglesdk/datasets/types/dataset_api_service.py +16 -0
- kagglesdk/kaggle_client.py +12 -0
- kagglesdk/kaggle_env.py +9 -11
- kagglesdk/kaggle_http_client.py +91 -56
- kagglesdk/kaggle_object.py +97 -42
- kagglesdk/kernels/types/kernels_api_service.py +24 -0
- kagglesdk/models/services/model_api_service.py +7 -6
- kagglesdk/models/types/model_api_service.py +31 -15
- kagglesdk/security/__init__.py +0 -0
- kagglesdk/security/services/__init__.py +0 -0
- kagglesdk/security/services/oauth_service.py +32 -0
- kagglesdk/security/types/__init__.py +0 -0
- kagglesdk/security/types/authentication.py +171 -0
- kagglesdk/security/types/oauth_service.py +394 -0
- kagglesdk/test/test_client.py +4 -6
- kagglesdk/users/services/__init__.py +0 -0
- kagglesdk/users/services/account_service.py +19 -0
- kagglesdk/users/types/account_service.py +204 -0
- {kaggle-1.7.4.1.dist-info → kaggle-1.7.4.5.dist-info}/WHEEL +0 -0
- {kaggle-1.7.4.1.dist-info → kaggle-1.7.4.5.dist-info}/entry_points.txt +0 -0
- {kaggle-1.7.4.1.dist-info → kaggle-1.7.4.5.dist-info}/licenses/LICENSE.txt +0 -0
|
@@ -121,7 +121,7 @@ class KernelPushRequest(object):
|
|
|
121
121
|
|
|
122
122
|
@property
|
|
123
123
|
def id(self):
|
|
124
|
-
"""Gets the id of this KernelPushRequest. # noqa: E501
|
|
124
|
+
"""Gets the id of this KernelPushRequest. # noqa: E501.
|
|
125
125
|
|
|
126
126
|
The kernel's ID number. One of `id` and `slug` are required. If both are specified, `id` will be preferred # noqa: E501
|
|
127
127
|
|
|
@@ -144,7 +144,7 @@ class KernelPushRequest(object):
|
|
|
144
144
|
|
|
145
145
|
@property
|
|
146
146
|
def slug(self):
|
|
147
|
-
"""Gets the slug of this KernelPushRequest. # noqa: E501
|
|
147
|
+
"""Gets the slug of this KernelPushRequest. # noqa: E501.
|
|
148
148
|
|
|
149
149
|
The full slug of the kernel to push to, in the format `USERNAME/KERNEL-SLUG`. The kernel slug must be the title lowercased with dashes (`-`) replacing spaces. One of `id` and `slug` are required. If both are specified, `id` will be preferred # noqa: E501
|
|
150
150
|
|
|
@@ -167,7 +167,7 @@ class KernelPushRequest(object):
|
|
|
167
167
|
|
|
168
168
|
@property
|
|
169
169
|
def new_title(self):
|
|
170
|
-
"""Gets the new_title of this KernelPushRequest. # noqa: E501
|
|
170
|
+
"""Gets the new_title of this KernelPushRequest. # noqa: E501.
|
|
171
171
|
|
|
172
172
|
The title to be set on the kernel # noqa: E501
|
|
173
173
|
|
|
@@ -182,7 +182,8 @@ class KernelPushRequest(object):
|
|
|
182
182
|
|
|
183
183
|
The title to be set on the kernel # noqa: E501
|
|
184
184
|
|
|
185
|
-
:param new_title: The new_title of this KernelPushRequest.
|
|
185
|
+
:param new_title: The new_title of this KernelPushRequest. #
|
|
186
|
+
noqa: E501
|
|
186
187
|
:type: str
|
|
187
188
|
"""
|
|
188
189
|
|
|
@@ -190,7 +191,7 @@ class KernelPushRequest(object):
|
|
|
190
191
|
|
|
191
192
|
@property
|
|
192
193
|
def text(self):
|
|
193
|
-
"""Gets the text of this KernelPushRequest. # noqa: E501
|
|
194
|
+
"""Gets the text of this KernelPushRequest. # noqa: E501.
|
|
194
195
|
|
|
195
196
|
The kernel's source code # noqa: E501
|
|
196
197
|
|
|
@@ -215,7 +216,7 @@ class KernelPushRequest(object):
|
|
|
215
216
|
|
|
216
217
|
@property
|
|
217
218
|
def language(self):
|
|
218
|
-
"""Gets the language of this KernelPushRequest. # noqa: E501
|
|
219
|
+
"""Gets the language of this KernelPushRequest. # noqa: E501.
|
|
219
220
|
|
|
220
221
|
The language that the kernel is written in # noqa: E501
|
|
221
222
|
|
|
@@ -230,7 +231,8 @@ class KernelPushRequest(object):
|
|
|
230
231
|
|
|
231
232
|
The language that the kernel is written in # noqa: E501
|
|
232
233
|
|
|
233
|
-
:param language: The language of this KernelPushRequest.
|
|
234
|
+
:param language: The language of this KernelPushRequest. #
|
|
235
|
+
noqa: E501
|
|
234
236
|
:type: str
|
|
235
237
|
"""
|
|
236
238
|
if language is None:
|
|
@@ -246,11 +248,12 @@ class KernelPushRequest(object):
|
|
|
246
248
|
|
|
247
249
|
@property
|
|
248
250
|
def kernel_type(self):
|
|
249
|
-
"""Gets the kernel_type of this KernelPushRequest. # noqa: E501
|
|
251
|
+
"""Gets the kernel_type of this KernelPushRequest. # noqa: E501.
|
|
250
252
|
|
|
251
|
-
The type of kernel. Cannot be changed once the kernel has been
|
|
253
|
+
The type of kernel. Cannot be changed once the kernel has been
|
|
254
|
+
created # noqa: E501
|
|
252
255
|
|
|
253
|
-
:return: The kernel_type of this KernelPushRequest.
|
|
256
|
+
:return: The kernel_type of this KernelPushRequest. # noqa: E501
|
|
254
257
|
:rtype: str
|
|
255
258
|
"""
|
|
256
259
|
return self._kernel_type
|
|
@@ -259,9 +262,11 @@ class KernelPushRequest(object):
|
|
|
259
262
|
def kernel_type(self, kernel_type):
|
|
260
263
|
"""Sets the kernel_type of this KernelPushRequest.
|
|
261
264
|
|
|
262
|
-
The type of kernel. Cannot be changed once the kernel has been
|
|
265
|
+
The type of kernel. Cannot be changed once the kernel has been
|
|
266
|
+
created # noqa: E501
|
|
263
267
|
|
|
264
|
-
:param kernel_type: The kernel_type of this KernelPushRequest.
|
|
268
|
+
:param kernel_type: The kernel_type of this KernelPushRequest. #
|
|
269
|
+
noqa: E501
|
|
265
270
|
:type: str
|
|
266
271
|
"""
|
|
267
272
|
if kernel_type is None:
|
|
@@ -277,7 +282,7 @@ class KernelPushRequest(object):
|
|
|
277
282
|
|
|
278
283
|
@property
|
|
279
284
|
def is_private(self):
|
|
280
|
-
"""Gets the is_private of this KernelPushRequest. # noqa: E501
|
|
285
|
+
"""Gets the is_private of this KernelPushRequest. # noqa: E501.
|
|
281
286
|
|
|
282
287
|
Whether or not the kernel should be private # noqa: E501
|
|
283
288
|
|
|
@@ -292,7 +297,8 @@ class KernelPushRequest(object):
|
|
|
292
297
|
|
|
293
298
|
Whether or not the kernel should be private # noqa: E501
|
|
294
299
|
|
|
295
|
-
:param is_private: The is_private of this KernelPushRequest.
|
|
300
|
+
:param is_private: The is_private of this KernelPushRequest. #
|
|
301
|
+
noqa: E501
|
|
296
302
|
:type: bool
|
|
297
303
|
"""
|
|
298
304
|
|
|
@@ -300,7 +306,7 @@ class KernelPushRequest(object):
|
|
|
300
306
|
|
|
301
307
|
@property
|
|
302
308
|
def enable_gpu(self):
|
|
303
|
-
"""Gets the enable_gpu of this KernelPushRequest. # noqa: E501
|
|
309
|
+
"""Gets the enable_gpu of this KernelPushRequest. # noqa: E501.
|
|
304
310
|
|
|
305
311
|
Whether or not the kernel should run on a GPU # noqa: E501
|
|
306
312
|
|
|
@@ -315,7 +321,8 @@ class KernelPushRequest(object):
|
|
|
315
321
|
|
|
316
322
|
Whether or not the kernel should run on a GPU # noqa: E501
|
|
317
323
|
|
|
318
|
-
:param enable_gpu: The enable_gpu of this KernelPushRequest.
|
|
324
|
+
:param enable_gpu: The enable_gpu of this KernelPushRequest. #
|
|
325
|
+
noqa: E501
|
|
319
326
|
:type: bool
|
|
320
327
|
"""
|
|
321
328
|
|
|
@@ -323,7 +330,7 @@ class KernelPushRequest(object):
|
|
|
323
330
|
|
|
324
331
|
@property
|
|
325
332
|
def enable_tpu(self):
|
|
326
|
-
"""Gets the enable_tpu of this KernelPushRequest. # noqa: E501
|
|
333
|
+
"""Gets the enable_tpu of this KernelPushRequest. # noqa: E501.
|
|
327
334
|
|
|
328
335
|
Whether or not the kernel should run on a TPU # noqa: E501
|
|
329
336
|
|
|
@@ -338,7 +345,8 @@ class KernelPushRequest(object):
|
|
|
338
345
|
|
|
339
346
|
Whether or not the kernel should run on a TPU # noqa: E501
|
|
340
347
|
|
|
341
|
-
:param enable_tpu: The enable_tpu of this KernelPushRequest.
|
|
348
|
+
:param enable_tpu: The enable_tpu of this KernelPushRequest. #
|
|
349
|
+
noqa: E501
|
|
342
350
|
:type: bool
|
|
343
351
|
"""
|
|
344
352
|
|
|
@@ -346,11 +354,13 @@ class KernelPushRequest(object):
|
|
|
346
354
|
|
|
347
355
|
@property
|
|
348
356
|
def enable_internet(self):
|
|
349
|
-
"""Gets the enable_internet of this KernelPushRequest. # noqa: E501
|
|
357
|
+
"""Gets the enable_internet of this KernelPushRequest. # noqa: E501.
|
|
350
358
|
|
|
351
|
-
Whether or not the kernel should be able to access the internet
|
|
359
|
+
Whether or not the kernel should be able to access the internet
|
|
360
|
+
# noqa: E501
|
|
352
361
|
|
|
353
|
-
:return: The enable_internet of this KernelPushRequest.
|
|
362
|
+
:return: The enable_internet of this KernelPushRequest. # noqa:
|
|
363
|
+
E501
|
|
354
364
|
:rtype: bool
|
|
355
365
|
"""
|
|
356
366
|
return self._enable_internet
|
|
@@ -359,9 +369,11 @@ class KernelPushRequest(object):
|
|
|
359
369
|
def enable_internet(self, enable_internet):
|
|
360
370
|
"""Sets the enable_internet of this KernelPushRequest.
|
|
361
371
|
|
|
362
|
-
Whether or not the kernel should be able to access the internet
|
|
372
|
+
Whether or not the kernel should be able to access the internet
|
|
373
|
+
# noqa: E501
|
|
363
374
|
|
|
364
|
-
:param enable_internet: The enable_internet of this
|
|
375
|
+
:param enable_internet: The enable_internet of this
|
|
376
|
+
KernelPushRequest. # noqa: E501
|
|
365
377
|
:type: bool
|
|
366
378
|
"""
|
|
367
379
|
|
|
@@ -369,11 +381,14 @@ class KernelPushRequest(object):
|
|
|
369
381
|
|
|
370
382
|
@property
|
|
371
383
|
def dataset_data_sources(self):
|
|
372
|
-
"""Gets the dataset_data_sources of this KernelPushRequest. # noqa:
|
|
384
|
+
"""Gets the dataset_data_sources of this KernelPushRequest. # noqa:
|
|
385
|
+
E501.
|
|
373
386
|
|
|
374
|
-
A list of dataset data sources that the kernel should use. Each
|
|
387
|
+
A list of dataset data sources that the kernel should use. Each
|
|
388
|
+
dataset is specified as `USERNAME/DATASET-SLUG` # noqa: E501
|
|
375
389
|
|
|
376
|
-
:return: The dataset_data_sources of this KernelPushRequest.
|
|
390
|
+
:return: The dataset_data_sources of this KernelPushRequest. #
|
|
391
|
+
noqa: E501
|
|
377
392
|
:rtype: list[str]
|
|
378
393
|
"""
|
|
379
394
|
return self._dataset_data_sources
|
|
@@ -382,9 +397,11 @@ class KernelPushRequest(object):
|
|
|
382
397
|
def dataset_data_sources(self, dataset_data_sources):
|
|
383
398
|
"""Sets the dataset_data_sources of this KernelPushRequest.
|
|
384
399
|
|
|
385
|
-
A list of dataset data sources that the kernel should use. Each
|
|
400
|
+
A list of dataset data sources that the kernel should use. Each
|
|
401
|
+
dataset is specified as `USERNAME/DATASET-SLUG` # noqa: E501
|
|
386
402
|
|
|
387
|
-
:param dataset_data_sources: The dataset_data_sources of this
|
|
403
|
+
:param dataset_data_sources: The dataset_data_sources of this
|
|
404
|
+
KernelPushRequest. # noqa: E501
|
|
388
405
|
:type: list[str]
|
|
389
406
|
"""
|
|
390
407
|
|
|
@@ -392,11 +409,14 @@ class KernelPushRequest(object):
|
|
|
392
409
|
|
|
393
410
|
@property
|
|
394
411
|
def competition_data_sources(self):
|
|
395
|
-
"""Gets the competition_data_sources of this KernelPushRequest. #
|
|
412
|
+
"""Gets the competition_data_sources of this KernelPushRequest. #
|
|
413
|
+
noqa: E501.
|
|
396
414
|
|
|
397
|
-
A list of competition data sources that the kernel should use #
|
|
415
|
+
A list of competition data sources that the kernel should use #
|
|
416
|
+
noqa: E501
|
|
398
417
|
|
|
399
|
-
:return: The competition_data_sources of this KernelPushRequest.
|
|
418
|
+
:return: The competition_data_sources of this KernelPushRequest.
|
|
419
|
+
# noqa: E501
|
|
400
420
|
:rtype: list[str]
|
|
401
421
|
"""
|
|
402
422
|
return self._competition_data_sources
|
|
@@ -405,9 +425,11 @@ class KernelPushRequest(object):
|
|
|
405
425
|
def competition_data_sources(self, competition_data_sources):
|
|
406
426
|
"""Sets the competition_data_sources of this KernelPushRequest.
|
|
407
427
|
|
|
408
|
-
A list of competition data sources that the kernel should use #
|
|
428
|
+
A list of competition data sources that the kernel should use #
|
|
429
|
+
noqa: E501
|
|
409
430
|
|
|
410
|
-
:param competition_data_sources: The competition_data_sources of
|
|
431
|
+
:param competition_data_sources: The competition_data_sources of
|
|
432
|
+
this KernelPushRequest. # noqa: E501
|
|
411
433
|
:type: list[str]
|
|
412
434
|
"""
|
|
413
435
|
|
|
@@ -415,11 +437,14 @@ class KernelPushRequest(object):
|
|
|
415
437
|
|
|
416
438
|
@property
|
|
417
439
|
def kernel_data_sources(self):
|
|
418
|
-
"""Gets the kernel_data_sources of this KernelPushRequest. # noqa:
|
|
440
|
+
"""Gets the kernel_data_sources of this KernelPushRequest. # noqa:
|
|
441
|
+
E501.
|
|
419
442
|
|
|
420
|
-
A list of kernel data sources that the kernel should use. Each
|
|
443
|
+
A list of kernel data sources that the kernel should use. Each
|
|
444
|
+
dataset is specified as `USERNAME/KERNEL-SLUG` # noqa: E501
|
|
421
445
|
|
|
422
|
-
:return: The kernel_data_sources of this KernelPushRequest.
|
|
446
|
+
:return: The kernel_data_sources of this KernelPushRequest. #
|
|
447
|
+
noqa: E501
|
|
423
448
|
:rtype: list[str]
|
|
424
449
|
"""
|
|
425
450
|
return self._kernel_data_sources
|
|
@@ -428,9 +453,11 @@ class KernelPushRequest(object):
|
|
|
428
453
|
def kernel_data_sources(self, kernel_data_sources):
|
|
429
454
|
"""Sets the kernel_data_sources of this KernelPushRequest.
|
|
430
455
|
|
|
431
|
-
A list of kernel data sources that the kernel should use. Each
|
|
456
|
+
A list of kernel data sources that the kernel should use. Each
|
|
457
|
+
dataset is specified as `USERNAME/KERNEL-SLUG` # noqa: E501
|
|
432
458
|
|
|
433
|
-
:param kernel_data_sources: The kernel_data_sources of this
|
|
459
|
+
:param kernel_data_sources: The kernel_data_sources of this
|
|
460
|
+
KernelPushRequest. # noqa: E501
|
|
434
461
|
:type: list[str]
|
|
435
462
|
"""
|
|
436
463
|
|
|
@@ -438,7 +465,8 @@ class KernelPushRequest(object):
|
|
|
438
465
|
|
|
439
466
|
@property
|
|
440
467
|
def model_data_sources(self):
|
|
441
|
-
"""Gets the model_data_sources of this KernelPushRequest. # noqa:
|
|
468
|
+
"""Gets the model_data_sources of this KernelPushRequest. # noqa:
|
|
469
|
+
E501.
|
|
442
470
|
|
|
443
471
|
A list of model data sources that the kernel should use. Each model is specified as `USERNAME/MODEL-SLUG/FRAMEWORK/VARIATION-SLUG/VERSION-NUMBER` # noqa: E501
|
|
444
472
|
|
|
@@ -461,11 +489,12 @@ class KernelPushRequest(object):
|
|
|
461
489
|
|
|
462
490
|
@property
|
|
463
491
|
def category_ids(self):
|
|
464
|
-
"""Gets the category_ids of this KernelPushRequest. # noqa: E501
|
|
492
|
+
"""Gets the category_ids of this KernelPushRequest. # noqa: E501.
|
|
465
493
|
|
|
466
494
|
A list of tag IDs to associated with the kernel # noqa: E501
|
|
467
495
|
|
|
468
|
-
:return: The category_ids of this KernelPushRequest.
|
|
496
|
+
:return: The category_ids of this KernelPushRequest. # noqa:
|
|
497
|
+
E501
|
|
469
498
|
:rtype: list[str]
|
|
470
499
|
"""
|
|
471
500
|
return self._category_ids
|
|
@@ -476,7 +505,8 @@ class KernelPushRequest(object):
|
|
|
476
505
|
|
|
477
506
|
A list of tag IDs to associated with the kernel # noqa: E501
|
|
478
507
|
|
|
479
|
-
:param category_ids: The category_ids of this KernelPushRequest.
|
|
508
|
+
:param category_ids: The category_ids of this KernelPushRequest.
|
|
509
|
+
# noqa: E501
|
|
480
510
|
:type: list[str]
|
|
481
511
|
"""
|
|
482
512
|
|
|
@@ -484,11 +514,14 @@ class KernelPushRequest(object):
|
|
|
484
514
|
|
|
485
515
|
@property
|
|
486
516
|
def docker_image_pinning_type(self):
|
|
487
|
-
"""Gets the docker_image_pinning_type of this KernelPushRequest. #
|
|
517
|
+
"""Gets the docker_image_pinning_type of this KernelPushRequest. #
|
|
518
|
+
noqa: E501.
|
|
488
519
|
|
|
489
|
-
Which docker image to use for executing new versions going
|
|
520
|
+
Which docker image to use for executing new versions going
|
|
521
|
+
forward. # noqa: E501
|
|
490
522
|
|
|
491
|
-
:return: The docker_image_pinning_type of this
|
|
523
|
+
:return: The docker_image_pinning_type of this
|
|
524
|
+
KernelPushRequest. # noqa: E501
|
|
492
525
|
:rtype: str
|
|
493
526
|
"""
|
|
494
527
|
return self._docker_image_pinning_type
|
|
@@ -497,9 +530,11 @@ class KernelPushRequest(object):
|
|
|
497
530
|
def docker_image_pinning_type(self, docker_image_pinning_type):
|
|
498
531
|
"""Sets the docker_image_pinning_type of this KernelPushRequest.
|
|
499
532
|
|
|
500
|
-
Which docker image to use for executing new versions going
|
|
533
|
+
Which docker image to use for executing new versions going
|
|
534
|
+
forward. # noqa: E501
|
|
501
535
|
|
|
502
|
-
:param docker_image_pinning_type: The docker_image_pinning_type
|
|
536
|
+
:param docker_image_pinning_type: The docker_image_pinning_type
|
|
537
|
+
of this KernelPushRequest. # noqa: E501
|
|
503
538
|
:type: str
|
|
504
539
|
"""
|
|
505
540
|
allowed_values = ["original", "latest"] # noqa: E501
|
|
@@ -512,7 +547,7 @@ class KernelPushRequest(object):
|
|
|
512
547
|
self._docker_image_pinning_type = docker_image_pinning_type
|
|
513
548
|
|
|
514
549
|
def to_dict(self):
|
|
515
|
-
"""Returns the model properties as a dict"""
|
|
550
|
+
"""Returns the model properties as a dict."""
|
|
516
551
|
result = {}
|
|
517
552
|
|
|
518
553
|
for attr, _ in six.iteritems(self.project_types):
|
|
@@ -536,7 +571,7 @@ class KernelPushRequest(object):
|
|
|
536
571
|
return result
|
|
537
572
|
|
|
538
573
|
def to_str(self):
|
|
539
|
-
"""Returns the string representation of the model"""
|
|
574
|
+
"""Returns the string representation of the model."""
|
|
540
575
|
return pprint.pformat(self.to_dict())
|
|
541
576
|
|
|
542
577
|
def __repr__(self):
|
|
@@ -544,13 +579,13 @@ class KernelPushRequest(object):
|
|
|
544
579
|
return self.to_str()
|
|
545
580
|
|
|
546
581
|
def __eq__(self, other):
|
|
547
|
-
"""Returns true if both objects are equal"""
|
|
582
|
+
"""Returns true if both objects are equal."""
|
|
548
583
|
if not isinstance(other, KernelPushRequest):
|
|
549
584
|
return False
|
|
550
585
|
|
|
551
586
|
return self.__dict__ == other.__dict__
|
|
552
587
|
|
|
553
588
|
def __ne__(self, other):
|
|
554
|
-
"""Returns true if both objects are not equal"""
|
|
589
|
+
"""Returns true if both objects are not equal."""
|
|
555
590
|
return not self == other
|
|
556
591
|
|
|
@@ -54,11 +54,13 @@ class ModelInstanceNewVersionRequest(object):
|
|
|
54
54
|
|
|
55
55
|
@property
|
|
56
56
|
def version_notes(self):
|
|
57
|
-
"""Gets the version_notes of this ModelInstanceNewVersionRequest. #
|
|
57
|
+
"""Gets the version_notes of this ModelInstanceNewVersionRequest. #
|
|
58
|
+
noqa: E501.
|
|
58
59
|
|
|
59
60
|
The version notes for the model instance version # noqa: E501
|
|
60
61
|
|
|
61
|
-
:return: The version_notes of this
|
|
62
|
+
:return: The version_notes of this
|
|
63
|
+
ModelInstanceNewVersionRequest. # noqa: E501
|
|
62
64
|
:rtype: str
|
|
63
65
|
"""
|
|
64
66
|
return self._version_notes
|
|
@@ -69,7 +71,8 @@ class ModelInstanceNewVersionRequest(object):
|
|
|
69
71
|
|
|
70
72
|
The version notes for the model instance version # noqa: E501
|
|
71
73
|
|
|
72
|
-
:param version_notes: The version_notes of this
|
|
74
|
+
:param version_notes: The version_notes of this
|
|
75
|
+
ModelInstanceNewVersionRequest. # noqa: E501
|
|
73
76
|
:type: str
|
|
74
77
|
"""
|
|
75
78
|
|
|
@@ -77,11 +80,14 @@ class ModelInstanceNewVersionRequest(object):
|
|
|
77
80
|
|
|
78
81
|
@property
|
|
79
82
|
def files(self):
|
|
80
|
-
"""Gets the files of this ModelInstanceNewVersionRequest. # noqa:
|
|
83
|
+
"""Gets the files of this ModelInstanceNewVersionRequest. # noqa:
|
|
84
|
+
E501.
|
|
81
85
|
|
|
82
|
-
A list of files that should be associated with the model
|
|
86
|
+
A list of files that should be associated with the model
|
|
87
|
+
instance version # noqa: E501
|
|
83
88
|
|
|
84
|
-
:return: The files of this ModelInstanceNewVersionRequest.
|
|
89
|
+
:return: The files of this ModelInstanceNewVersionRequest. #
|
|
90
|
+
noqa: E501
|
|
85
91
|
:rtype: list[UploadFile]
|
|
86
92
|
"""
|
|
87
93
|
return self._files
|
|
@@ -90,9 +96,11 @@ class ModelInstanceNewVersionRequest(object):
|
|
|
90
96
|
def files(self, files):
|
|
91
97
|
"""Sets the files of this ModelInstanceNewVersionRequest.
|
|
92
98
|
|
|
93
|
-
A list of files that should be associated with the model
|
|
99
|
+
A list of files that should be associated with the model
|
|
100
|
+
instance version # noqa: E501
|
|
94
101
|
|
|
95
|
-
:param files: The files of this ModelInstanceNewVersionRequest.
|
|
102
|
+
:param files: The files of this ModelInstanceNewVersionRequest.
|
|
103
|
+
# noqa: E501
|
|
96
104
|
:type: list[UploadFile]
|
|
97
105
|
"""
|
|
98
106
|
if files is None:
|
|
@@ -101,7 +109,7 @@ class ModelInstanceNewVersionRequest(object):
|
|
|
101
109
|
self._files = files
|
|
102
110
|
|
|
103
111
|
def to_dict(self):
|
|
104
|
-
"""Returns the model properties as a dict"""
|
|
112
|
+
"""Returns the model properties as a dict."""
|
|
105
113
|
result = {}
|
|
106
114
|
|
|
107
115
|
for attr, _ in six.iteritems(self.project_types):
|
|
@@ -125,7 +133,7 @@ class ModelInstanceNewVersionRequest(object):
|
|
|
125
133
|
return result
|
|
126
134
|
|
|
127
135
|
def to_str(self):
|
|
128
|
-
"""Returns the string representation of the model"""
|
|
136
|
+
"""Returns the string representation of the model."""
|
|
129
137
|
return pprint.pformat(self.to_dict())
|
|
130
138
|
|
|
131
139
|
def __repr__(self):
|
|
@@ -133,13 +141,13 @@ class ModelInstanceNewVersionRequest(object):
|
|
|
133
141
|
return self.to_str()
|
|
134
142
|
|
|
135
143
|
def __eq__(self, other):
|
|
136
|
-
"""Returns true if both objects are equal"""
|
|
144
|
+
"""Returns true if both objects are equal."""
|
|
137
145
|
if not isinstance(other, ModelInstanceNewVersionRequest):
|
|
138
146
|
return False
|
|
139
147
|
|
|
140
148
|
return self.__dict__ == other.__dict__
|
|
141
149
|
|
|
142
150
|
def __ne__(self, other):
|
|
143
|
-
"""Returns true if both objects are not equal"""
|
|
151
|
+
"""Returns true if both objects are not equal."""
|
|
144
152
|
return not self == other
|
|
145
153
|
|