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
@@ -33,27 +33,37 @@ class DatasetNewVersionRequest(object):
33
33
  attribute_map (dict): The key is attribute name
34
34
  and the value is json key in definition.
35
35
  """
36
+
36
37
  project_types = {
37
- 'version_notes': 'str',
38
- 'subtitle': 'str',
39
- 'description': 'str',
40
- 'files': 'list[UploadFile]',
41
- 'convert_to_csv': 'bool',
42
- 'category_ids': 'list[str]',
43
- 'delete_old_versions': 'bool'
38
+ "version_notes": "str",
39
+ "subtitle": "str",
40
+ "description": "str",
41
+ "files": "list[UploadFile]",
42
+ "convert_to_csv": "bool",
43
+ "category_ids": "list[str]",
44
+ "delete_old_versions": "bool",
44
45
  }
45
46
 
46
47
  attribute_map = {
47
- 'version_notes': 'versionNotes',
48
- 'subtitle': 'subtitle',
49
- 'description': 'description',
50
- 'files': 'files',
51
- 'convert_to_csv': 'convertToCsv',
52
- 'category_ids': 'categoryIds',
53
- 'delete_old_versions': 'deleteOldVersions'
48
+ "version_notes": "versionNotes",
49
+ "subtitle": "subtitle",
50
+ "description": "description",
51
+ "files": "files",
52
+ "convert_to_csv": "convertToCsv",
53
+ "category_ids": "categoryIds",
54
+ "delete_old_versions": "deleteOldVersions",
54
55
  }
55
56
 
56
- def __init__(self, version_notes=None, subtitle=None, description=None, files=None, convert_to_csv=True, category_ids=None, delete_old_versions=False): # noqa: E501
57
+ def __init__(
58
+ self,
59
+ version_notes=None,
60
+ subtitle=None,
61
+ description=None,
62
+ files=None,
63
+ convert_to_csv=True,
64
+ category_ids=None,
65
+ delete_old_versions=False,
66
+ ): # noqa: E501
57
67
 
58
68
  self._version_notes = None
59
69
  self._subtitle = None
@@ -79,11 +89,13 @@ class DatasetNewVersionRequest(object):
79
89
 
80
90
  @property
81
91
  def version_notes(self):
82
- """Gets the version_notes of this DatasetNewVersionRequest. # noqa: E501
92
+ """Gets the version_notes of this DatasetNewVersionRequest. # noqa:
93
+ E501.
83
94
 
84
95
  The version notes for the new dataset version # noqa: E501
85
96
 
86
- :return: The version_notes of this DatasetNewVersionRequest. # noqa: E501
97
+ :return: The version_notes of this DatasetNewVersionRequest. #
98
+ noqa: E501
87
99
  :rtype: str
88
100
  """
89
101
  return self._version_notes
@@ -94,7 +106,8 @@ class DatasetNewVersionRequest(object):
94
106
 
95
107
  The version notes for the new dataset version # noqa: E501
96
108
 
97
- :param version_notes: The version_notes of this DatasetNewVersionRequest. # noqa: E501
109
+ :param version_notes: The version_notes of this
110
+ DatasetNewVersionRequest. # noqa: E501
98
111
  :type: str
99
112
  """
100
113
  if version_notes is None:
@@ -104,11 +117,12 @@ class DatasetNewVersionRequest(object):
104
117
 
105
118
  @property
106
119
  def subtitle(self):
107
- """Gets the subtitle of this DatasetNewVersionRequest. # noqa: E501
120
+ """Gets the subtitle of this DatasetNewVersionRequest. # noqa: E501.
108
121
 
109
122
  The subtitle to set on the dataset # noqa: E501
110
123
 
111
- :return: The subtitle of this DatasetNewVersionRequest. # noqa: E501
124
+ :return: The subtitle of this DatasetNewVersionRequest. # noqa:
125
+ E501
112
126
  :rtype: str
113
127
  """
114
128
  return self._subtitle
@@ -119,7 +133,8 @@ class DatasetNewVersionRequest(object):
119
133
 
120
134
  The subtitle to set on the dataset # noqa: E501
121
135
 
122
- :param subtitle: The subtitle of this DatasetNewVersionRequest. # noqa: E501
136
+ :param subtitle: The subtitle of this DatasetNewVersionRequest.
137
+ # noqa: E501
123
138
  :type: str
124
139
  """
125
140
 
@@ -127,11 +142,13 @@ class DatasetNewVersionRequest(object):
127
142
 
128
143
  @property
129
144
  def description(self):
130
- """Gets the description of this DatasetNewVersionRequest. # noqa: E501
145
+ """Gets the description of this DatasetNewVersionRequest. # noqa:
146
+ E501.
131
147
 
132
148
  The description to set on the dataset # noqa: E501
133
149
 
134
- :return: The description of this DatasetNewVersionRequest. # noqa: E501
150
+ :return: The description of this DatasetNewVersionRequest. #
151
+ noqa: E501
135
152
  :rtype: str
136
153
  """
137
154
  return self._description
@@ -142,7 +159,8 @@ class DatasetNewVersionRequest(object):
142
159
 
143
160
  The description to set on the dataset # noqa: E501
144
161
 
145
- :param description: The description of this DatasetNewVersionRequest. # noqa: E501
162
+ :param description: The description of this
163
+ DatasetNewVersionRequest. # noqa: E501
146
164
  :type: str
147
165
  """
148
166
 
@@ -150,11 +168,13 @@ class DatasetNewVersionRequest(object):
150
168
 
151
169
  @property
152
170
  def files(self):
153
- """Gets the files of this DatasetNewVersionRequest. # noqa: E501
171
+ """Gets the files of this DatasetNewVersionRequest. # noqa: E501.
154
172
 
155
- A list of files that should be associated with the dataset # noqa: E501
173
+ A list of files that should be associated with the dataset #
174
+ noqa: E501
156
175
 
157
- :return: The files of this DatasetNewVersionRequest. # noqa: E501
176
+ :return: The files of this DatasetNewVersionRequest. # noqa:
177
+ E501
158
178
  :rtype: list[UploadFile]
159
179
  """
160
180
  return self._files
@@ -163,9 +183,11 @@ class DatasetNewVersionRequest(object):
163
183
  def files(self, files):
164
184
  """Sets the files of this DatasetNewVersionRequest.
165
185
 
166
- A list of files that should be associated with the dataset # noqa: E501
186
+ A list of files that should be associated with the dataset #
187
+ noqa: E501
167
188
 
168
- :param files: The files of this DatasetNewVersionRequest. # noqa: E501
189
+ :param files: The files of this DatasetNewVersionRequest. #
190
+ noqa: E501
169
191
  :type: list[UploadFile]
170
192
  """
171
193
  if files is None:
@@ -175,11 +197,14 @@ class DatasetNewVersionRequest(object):
175
197
 
176
198
  @property
177
199
  def convert_to_csv(self):
178
- """Gets the convert_to_csv of this DatasetNewVersionRequest. # noqa: E501
200
+ """Gets the convert_to_csv of this DatasetNewVersionRequest. # noqa:
201
+ E501.
179
202
 
180
- Whether or not a tabular dataset should be converted to csv # noqa: E501
203
+ Whether or not a tabular dataset should be converted to csv #
204
+ noqa: E501
181
205
 
182
- :return: The convert_to_csv of this DatasetNewVersionRequest. # noqa: E501
206
+ :return: The convert_to_csv of this DatasetNewVersionRequest. #
207
+ noqa: E501
183
208
  :rtype: bool
184
209
  """
185
210
  return self._convert_to_csv
@@ -188,9 +213,11 @@ class DatasetNewVersionRequest(object):
188
213
  def convert_to_csv(self, convert_to_csv):
189
214
  """Sets the convert_to_csv of this DatasetNewVersionRequest.
190
215
 
191
- Whether or not a tabular dataset should be converted to csv # noqa: E501
216
+ Whether or not a tabular dataset should be converted to csv #
217
+ noqa: E501
192
218
 
193
- :param convert_to_csv: The convert_to_csv of this DatasetNewVersionRequest. # noqa: E501
219
+ :param convert_to_csv: The convert_to_csv of this
220
+ DatasetNewVersionRequest. # noqa: E501
194
221
  :type: bool
195
222
  """
196
223
 
@@ -198,11 +225,13 @@ class DatasetNewVersionRequest(object):
198
225
 
199
226
  @property
200
227
  def category_ids(self):
201
- """Gets the category_ids of this DatasetNewVersionRequest. # noqa: E501
228
+ """Gets the category_ids of this DatasetNewVersionRequest. # noqa:
229
+ E501.
202
230
 
203
231
  A list of tag IDs to associated with the dataset # noqa: E501
204
232
 
205
- :return: The category_ids of this DatasetNewVersionRequest. # noqa: E501
233
+ :return: The category_ids of this DatasetNewVersionRequest. #
234
+ noqa: E501
206
235
  :rtype: list[str]
207
236
  """
208
237
  return self._category_ids
@@ -213,7 +242,8 @@ class DatasetNewVersionRequest(object):
213
242
 
214
243
  A list of tag IDs to associated with the dataset # noqa: E501
215
244
 
216
- :param category_ids: The category_ids of this DatasetNewVersionRequest. # noqa: E501
245
+ :param category_ids: The category_ids of this
246
+ DatasetNewVersionRequest. # noqa: E501
217
247
  :type: list[str]
218
248
  """
219
249
 
@@ -221,11 +251,14 @@ class DatasetNewVersionRequest(object):
221
251
 
222
252
  @property
223
253
  def delete_old_versions(self):
224
- """Gets the delete_old_versions of this DatasetNewVersionRequest. # noqa: E501
254
+ """Gets the delete_old_versions of this DatasetNewVersionRequest. #
255
+ noqa: E501.
225
256
 
226
- Whether or not all previous versions of the dataset should be deleted upon creating the new version # noqa: E501
257
+ Whether or not all previous versions of the dataset should be
258
+ deleted upon creating the new version # noqa: E501
227
259
 
228
- :return: The delete_old_versions of this DatasetNewVersionRequest. # noqa: E501
260
+ :return: The delete_old_versions of this
261
+ DatasetNewVersionRequest. # noqa: E501
229
262
  :rtype: bool
230
263
  """
231
264
  return self._delete_old_versions
@@ -234,40 +267,40 @@ class DatasetNewVersionRequest(object):
234
267
  def delete_old_versions(self, delete_old_versions):
235
268
  """Sets the delete_old_versions of this DatasetNewVersionRequest.
236
269
 
237
- Whether or not all previous versions of the dataset should be deleted upon creating the new version # noqa: E501
270
+ Whether or not all previous versions of the dataset should be
271
+ deleted upon creating the new version # noqa: E501
238
272
 
239
- :param delete_old_versions: The delete_old_versions of this DatasetNewVersionRequest. # noqa: E501
273
+ :param delete_old_versions: The delete_old_versions of this
274
+ DatasetNewVersionRequest. # noqa: E501
240
275
  :type: bool
241
276
  """
242
277
 
243
278
  self._delete_old_versions = delete_old_versions
244
279
 
245
280
  def to_dict(self):
246
- """Returns the model properties as a dict"""
281
+ """Returns the model properties as a dict."""
247
282
  result = {}
248
283
 
249
284
  for attr, _ in six.iteritems(self.project_types):
250
285
  value = getattr(self, attr)
251
286
  if isinstance(value, list):
252
- result[attr] = list(map(
253
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
254
- value
255
- ))
287
+ result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
256
288
  elif hasattr(value, "to_dict"):
257
289
  result[attr] = value.to_dict()
258
290
  elif isinstance(value, dict):
259
- result[attr] = dict(map(
260
- lambda item: (item[0], item[1].to_dict())
261
- if hasattr(item[1], "to_dict") else item,
262
- value.items()
263
- ))
291
+ result[attr] = dict(
292
+ map(
293
+ lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item,
294
+ value.items(),
295
+ )
296
+ )
264
297
  else:
265
298
  result[attr] = value
266
299
 
267
300
  return result
268
301
 
269
302
  def to_str(self):
270
- """Returns the string representation of the model"""
303
+ """Returns the string representation of the model."""
271
304
  return pprint.pformat(self.to_dict())
272
305
 
273
306
  def __repr__(self):
@@ -275,13 +308,12 @@ class DatasetNewVersionRequest(object):
275
308
  return self.to_str()
276
309
 
277
310
  def __eq__(self, other):
278
- """Returns true if both objects are equal"""
311
+ """Returns true if both objects are equal."""
279
312
  if not isinstance(other, DatasetNewVersionRequest):
280
313
  return False
281
314
 
282
315
  return self.__dict__ == other.__dict__
283
316
 
284
317
  def __ne__(self, other):
285
- """Returns true if both objects are not equal"""
318
+ """Returns true if both objects are not equal."""
286
319
  return not self == other
287
-
@@ -30,29 +30,40 @@ class DatasetUpdateSettingsRequest(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
- 'title': 'str',
35
- 'subtitle': 'str',
36
- 'description': 'str',
37
- 'is_private': 'bool',
38
- 'licenses': 'list[object]',
39
- 'keywords': 'list[str]',
40
- 'collaborators': 'list[object]',
41
- 'data': 'list[object]'
35
+ "title": "str",
36
+ "subtitle": "str",
37
+ "description": "str",
38
+ "is_private": "bool",
39
+ "licenses": "list[object]",
40
+ "keywords": "list[str]",
41
+ "collaborators": "list[object]",
42
+ "data": "list[object]",
42
43
  }
43
44
 
44
45
  attribute_map = {
45
- 'title': 'title',
46
- 'subtitle': 'subtitle',
47
- 'description': 'description',
48
- 'is_private': 'isPrivate',
49
- 'licenses': 'licenses',
50
- 'keywords': 'keywords',
51
- 'collaborators': 'collaborators',
52
- 'data': 'data'
46
+ "title": "title",
47
+ "subtitle": "subtitle",
48
+ "description": "description",
49
+ "is_private": "isPrivate",
50
+ "licenses": "licenses",
51
+ "keywords": "keywords",
52
+ "collaborators": "collaborators",
53
+ "data": "data",
53
54
  }
54
55
 
55
- def __init__(self, title=None, subtitle=None, description=None, is_private=None, licenses=None, keywords=None, collaborators=None, data=None): # noqa: E501
56
+ def __init__(
57
+ self,
58
+ title=None,
59
+ subtitle=None,
60
+ description=None,
61
+ is_private=None,
62
+ licenses=None,
63
+ keywords=None,
64
+ collaborators=None,
65
+ data=None,
66
+ ): # noqa: E501
56
67
 
57
68
  self._title = None
58
69
  self._subtitle = None
@@ -83,11 +94,12 @@ class DatasetUpdateSettingsRequest(object):
83
94
 
84
95
  @property
85
96
  def title(self):
86
- """Gets the title of this DatasetUpdateSettingsRequest. # noqa: E501
97
+ """Gets the title of this DatasetUpdateSettingsRequest. # noqa: E501.
87
98
 
88
99
  Title of the dataset # noqa: E501
89
100
 
90
- :return: The title of this DatasetUpdateSettingsRequest. # noqa: E501
101
+ :return: The title of this DatasetUpdateSettingsRequest. #
102
+ noqa: E501
91
103
  :rtype: str
92
104
  """
93
105
  return self._title
@@ -98,7 +110,8 @@ class DatasetUpdateSettingsRequest(object):
98
110
 
99
111
  Title of the dataset # noqa: E501
100
112
 
101
- :param title: The title of this DatasetUpdateSettingsRequest. # noqa: E501
113
+ :param title: The title of this DatasetUpdateSettingsRequest. #
114
+ noqa: E501
102
115
  :type: str
103
116
  """
104
117
 
@@ -106,11 +119,13 @@ class DatasetUpdateSettingsRequest(object):
106
119
 
107
120
  @property
108
121
  def subtitle(self):
109
- """Gets the subtitle of this DatasetUpdateSettingsRequest. # noqa: E501
122
+ """Gets the subtitle of this DatasetUpdateSettingsRequest. # noqa:
123
+ E501.
110
124
 
111
125
  Subtitle of the dataset # noqa: E501
112
126
 
113
- :return: The subtitle of this DatasetUpdateSettingsRequest. # noqa: E501
127
+ :return: The subtitle of this DatasetUpdateSettingsRequest. #
128
+ noqa: E501
114
129
  :rtype: str
115
130
  """
116
131
  return self._subtitle
@@ -121,7 +136,8 @@ class DatasetUpdateSettingsRequest(object):
121
136
 
122
137
  Subtitle of the dataset # noqa: E501
123
138
 
124
- :param subtitle: The subtitle of this DatasetUpdateSettingsRequest. # noqa: E501
139
+ :param subtitle: The subtitle of this
140
+ DatasetUpdateSettingsRequest. # noqa: E501
125
141
  :type: str
126
142
  """
127
143
 
@@ -129,11 +145,13 @@ class DatasetUpdateSettingsRequest(object):
129
145
 
130
146
  @property
131
147
  def description(self):
132
- """Gets the description of this DatasetUpdateSettingsRequest. # noqa: E501
148
+ """Gets the description of this DatasetUpdateSettingsRequest. # noqa:
149
+ E501.
133
150
 
134
151
  Decription of the dataset # noqa: E501
135
152
 
136
- :return: The description of this DatasetUpdateSettingsRequest. # noqa: E501
153
+ :return: The description of this DatasetUpdateSettingsRequest. #
154
+ noqa: E501
137
155
  :rtype: str
138
156
  """
139
157
  return self._description
@@ -144,7 +162,8 @@ class DatasetUpdateSettingsRequest(object):
144
162
 
145
163
  Decription of the dataset # noqa: E501
146
164
 
147
- :param description: The description of this DatasetUpdateSettingsRequest. # noqa: E501
165
+ :param description: The description of this
166
+ DatasetUpdateSettingsRequest. # noqa: E501
148
167
  :type: str
149
168
  """
150
169
 
@@ -152,11 +171,13 @@ class DatasetUpdateSettingsRequest(object):
152
171
 
153
172
  @property
154
173
  def is_private(self):
155
- """Gets the is_private of this DatasetUpdateSettingsRequest. # noqa: E501
174
+ """Gets the is_private of this DatasetUpdateSettingsRequest. # noqa:
175
+ E501.
156
176
 
157
177
  Whether or not the dataset should be private # noqa: E501
158
178
 
159
- :return: The is_private of this DatasetUpdateSettingsRequest. # noqa: E501
179
+ :return: The is_private of this DatasetUpdateSettingsRequest. #
180
+ noqa: E501
160
181
  :rtype: bool
161
182
  """
162
183
  return self._is_private
@@ -167,7 +188,8 @@ class DatasetUpdateSettingsRequest(object):
167
188
 
168
189
  Whether or not the dataset should be private # noqa: E501
169
190
 
170
- :param is_private: The is_private of this DatasetUpdateSettingsRequest. # noqa: E501
191
+ :param is_private: The is_private of this
192
+ DatasetUpdateSettingsRequest. # noqa: E501
171
193
  :type: bool
172
194
  """
173
195
 
@@ -175,11 +197,13 @@ class DatasetUpdateSettingsRequest(object):
175
197
 
176
198
  @property
177
199
  def licenses(self):
178
- """Gets the licenses of this DatasetUpdateSettingsRequest. # noqa: E501
200
+ """Gets the licenses of this DatasetUpdateSettingsRequest. # noqa:
201
+ E501.
179
202
 
180
203
  A list of licenses that apply to this dataset # noqa: E501
181
204
 
182
- :return: The licenses of this DatasetUpdateSettingsRequest. # noqa: E501
205
+ :return: The licenses of this DatasetUpdateSettingsRequest. #
206
+ noqa: E501
183
207
  :rtype: list[object]
184
208
  """
185
209
  return self._licenses
@@ -190,7 +214,8 @@ class DatasetUpdateSettingsRequest(object):
190
214
 
191
215
  A list of licenses that apply to this dataset # noqa: E501
192
216
 
193
- :param licenses: The licenses of this DatasetUpdateSettingsRequest. # noqa: E501
217
+ :param licenses: The licenses of this
218
+ DatasetUpdateSettingsRequest. # noqa: E501
194
219
  :type: list[object]
195
220
  """
196
221
 
@@ -198,11 +223,13 @@ class DatasetUpdateSettingsRequest(object):
198
223
 
199
224
  @property
200
225
  def keywords(self):
201
- """Gets the keywords of this DatasetUpdateSettingsRequest. # noqa: E501
226
+ """Gets the keywords of this DatasetUpdateSettingsRequest. # noqa:
227
+ E501.
202
228
 
203
229
  A list of keywords that apply to this dataset # noqa: E501
204
230
 
205
- :return: The keywords of this DatasetUpdateSettingsRequest. # noqa: E501
231
+ :return: The keywords of this DatasetUpdateSettingsRequest. #
232
+ noqa: E501
206
233
  :rtype: list[str]
207
234
  """
208
235
  return self._keywords
@@ -213,7 +240,8 @@ class DatasetUpdateSettingsRequest(object):
213
240
 
214
241
  A list of keywords that apply to this dataset # noqa: E501
215
242
 
216
- :param keywords: The keywords of this DatasetUpdateSettingsRequest. # noqa: E501
243
+ :param keywords: The keywords of this
244
+ DatasetUpdateSettingsRequest. # noqa: E501
217
245
  :type: list[str]
218
246
  """
219
247
 
@@ -221,11 +249,14 @@ class DatasetUpdateSettingsRequest(object):
221
249
 
222
250
  @property
223
251
  def collaborators(self):
224
- """Gets the collaborators of this DatasetUpdateSettingsRequest. # noqa: E501
252
+ """Gets the collaborators of this DatasetUpdateSettingsRequest. #
253
+ noqa: E501.
225
254
 
226
- A list of collaborators that may read or edit this dataset # noqa: E501
255
+ A list of collaborators that may read or edit this dataset #
256
+ noqa: E501
227
257
 
228
- :return: The collaborators of this DatasetUpdateSettingsRequest. # noqa: E501
258
+ :return: The collaborators of this DatasetUpdateSettingsRequest.
259
+ # noqa: E501
229
260
  :rtype: list[object]
230
261
  """
231
262
  return self._collaborators
@@ -234,9 +265,11 @@ class DatasetUpdateSettingsRequest(object):
234
265
  def collaborators(self, collaborators):
235
266
  """Sets the collaborators of this DatasetUpdateSettingsRequest.
236
267
 
237
- A list of collaborators that may read or edit this dataset # noqa: E501
268
+ A list of collaborators that may read or edit this dataset #
269
+ noqa: E501
238
270
 
239
- :param collaborators: The collaborators of this DatasetUpdateSettingsRequest. # noqa: E501
271
+ :param collaborators: The collaborators of this
272
+ DatasetUpdateSettingsRequest. # noqa: E501
240
273
  :type: list[object]
241
274
  """
242
275
 
@@ -244,11 +277,13 @@ class DatasetUpdateSettingsRequest(object):
244
277
 
245
278
  @property
246
279
  def data(self):
247
- """Gets the data of this DatasetUpdateSettingsRequest. # noqa: E501
280
+ """Gets the data of this DatasetUpdateSettingsRequest. # noqa: E501.
248
281
 
249
- A list containing metadata for each file in the dataset # noqa: E501
282
+ A list containing metadata for each file in the dataset # noqa:
283
+ E501
250
284
 
251
- :return: The data of this DatasetUpdateSettingsRequest. # noqa: E501
285
+ :return: The data of this DatasetUpdateSettingsRequest. # noqa:
286
+ E501
252
287
  :rtype: list[object]
253
288
  """
254
289
  return self._data
@@ -257,40 +292,40 @@ class DatasetUpdateSettingsRequest(object):
257
292
  def data(self, data):
258
293
  """Sets the data of this DatasetUpdateSettingsRequest.
259
294
 
260
- A list containing metadata for each file in the dataset # noqa: E501
295
+ A list containing metadata for each file in the dataset # noqa:
296
+ E501
261
297
 
262
- :param data: The data of this DatasetUpdateSettingsRequest. # noqa: E501
298
+ :param data: The data of this DatasetUpdateSettingsRequest. #
299
+ noqa: E501
263
300
  :type: list[object]
264
301
  """
265
302
 
266
303
  self._data = data
267
304
 
268
305
  def to_dict(self):
269
- """Returns the model properties as a dict"""
306
+ """Returns the model properties as a dict."""
270
307
  result = {}
271
308
 
272
309
  for attr, _ in six.iteritems(self.project_types):
273
310
  value = getattr(self, attr)
274
311
  if isinstance(value, list):
275
- result[attr] = list(map(
276
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
277
- value
278
- ))
312
+ result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
279
313
  elif hasattr(value, "to_dict"):
280
314
  result[attr] = value.to_dict()
281
315
  elif isinstance(value, dict):
282
- result[attr] = dict(map(
283
- lambda item: (item[0], item[1].to_dict())
284
- if hasattr(item[1], "to_dict") else item,
285
- value.items()
286
- ))
316
+ result[attr] = dict(
317
+ map(
318
+ lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item,
319
+ value.items(),
320
+ )
321
+ )
287
322
  else:
288
323
  result[attr] = value
289
324
 
290
325
  return result
291
326
 
292
327
  def to_str(self):
293
- """Returns the string representation of the model"""
328
+ """Returns the string representation of the model."""
294
329
  return pprint.pformat(self.to_dict())
295
330
 
296
331
  def __repr__(self):
@@ -298,13 +333,12 @@ class DatasetUpdateSettingsRequest(object):
298
333
  return self.to_str()
299
334
 
300
335
  def __eq__(self, other):
301
- """Returns true if both objects are equal"""
336
+ """Returns true if both objects are equal."""
302
337
  if not isinstance(other, DatasetUpdateSettingsRequest):
303
338
  return False
304
339
 
305
340
  return self.__dict__ == other.__dict__
306
341
 
307
342
  def __ne__(self, other):
308
- """Returns true if both objects are not equal"""
343
+ """Returns true if both objects are not equal."""
309
344
  return not self == other
310
-