kaggle 1.8.3__py3-none-any.whl → 1.8.4__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/__init__.py +1 -1
- kaggle/api/kaggle_api_extended.py +183 -74
- kaggle/cli.py +36 -28
- kaggle/models/upload_file.py +4 -4
- {kaggle-1.8.3.dist-info → kaggle-1.8.4.dist-info}/METADATA +65 -74
- kaggle-1.8.4.dist-info/RECORD +15 -0
- kaggle/models/api_blob_type.py +0 -4
- kaggle/models/dataset_column.py +0 -228
- kaggle/models/dataset_new_request.py +0 -443
- kaggle/models/dataset_new_version_request.py +0 -319
- kaggle/models/dataset_update_settings_request.py +0 -344
- kaggle/models/kernel_push_request.py +0 -608
- kaggle/models/model_instance_new_version_request.py +0 -145
- kaggle/models/model_instance_update_request.py +0 -451
- kaggle/models/model_new_instance_request.py +0 -552
- kaggle/models/model_new_request.py +0 -329
- kaggle/models/model_update_request.py +0 -300
- kaggle/models/start_blob_upload_request.py +0 -240
- kaggle/models/start_blob_upload_response.py +0 -142
- kaggle-1.8.3.dist-info/RECORD +0 -28
- {kaggle-1.8.3.dist-info → kaggle-1.8.4.dist-info}/WHEEL +0 -0
- {kaggle-1.8.3.dist-info → kaggle-1.8.4.dist-info}/entry_points.txt +0 -0
- {kaggle-1.8.3.dist-info → kaggle-1.8.4.dist-info}/licenses/LICENSE.txt +0 -0
|
@@ -1,319 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/python
|
|
2
|
-
#
|
|
3
|
-
# Copyright 2024 Kaggle Inc
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
|
|
17
|
-
# coding: utf-8
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import pprint
|
|
21
|
-
import re # noqa: F401
|
|
22
|
-
|
|
23
|
-
import six
|
|
24
|
-
|
|
25
|
-
from kaggle.models.upload_file import UploadFile # noqa: F401,E501
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class DatasetNewVersionRequest(object):
|
|
29
|
-
"""
|
|
30
|
-
Attributes:
|
|
31
|
-
project_types (dict): The key is attribute name
|
|
32
|
-
and the value is attribute type.
|
|
33
|
-
attribute_map (dict): The key is attribute name
|
|
34
|
-
and the value is json key in definition.
|
|
35
|
-
"""
|
|
36
|
-
|
|
37
|
-
project_types = {
|
|
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",
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
attribute_map = {
|
|
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",
|
|
55
|
-
}
|
|
56
|
-
|
|
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
|
|
67
|
-
|
|
68
|
-
self._version_notes = None
|
|
69
|
-
self._subtitle = None
|
|
70
|
-
self._description = None
|
|
71
|
-
self._files = None
|
|
72
|
-
self._convert_to_csv = None
|
|
73
|
-
self._category_ids = None
|
|
74
|
-
self._delete_old_versions = None
|
|
75
|
-
self.discriminator = None
|
|
76
|
-
|
|
77
|
-
self.version_notes = version_notes
|
|
78
|
-
if subtitle is not None:
|
|
79
|
-
self.subtitle = subtitle
|
|
80
|
-
if description is not None:
|
|
81
|
-
self.description = description
|
|
82
|
-
self.files = files
|
|
83
|
-
if convert_to_csv is not None:
|
|
84
|
-
self.convert_to_csv = convert_to_csv
|
|
85
|
-
if category_ids is not None:
|
|
86
|
-
self.category_ids = category_ids
|
|
87
|
-
if delete_old_versions is not None:
|
|
88
|
-
self.delete_old_versions = delete_old_versions
|
|
89
|
-
|
|
90
|
-
@property
|
|
91
|
-
def version_notes(self):
|
|
92
|
-
"""Gets the version_notes of this DatasetNewVersionRequest. # noqa:
|
|
93
|
-
E501.
|
|
94
|
-
|
|
95
|
-
The version notes for the new dataset version # noqa: E501
|
|
96
|
-
|
|
97
|
-
:return: The version_notes of this DatasetNewVersionRequest. #
|
|
98
|
-
noqa: E501
|
|
99
|
-
:rtype: str
|
|
100
|
-
"""
|
|
101
|
-
return self._version_notes
|
|
102
|
-
|
|
103
|
-
@version_notes.setter
|
|
104
|
-
def version_notes(self, version_notes):
|
|
105
|
-
"""Sets the version_notes of this DatasetNewVersionRequest.
|
|
106
|
-
|
|
107
|
-
The version notes for the new dataset version # noqa: E501
|
|
108
|
-
|
|
109
|
-
:param version_notes: The version_notes of this
|
|
110
|
-
DatasetNewVersionRequest. # noqa: E501
|
|
111
|
-
:type: str
|
|
112
|
-
"""
|
|
113
|
-
if version_notes is None:
|
|
114
|
-
raise ValueError("Invalid value for `version_notes`, must not be `None`") # noqa: E501
|
|
115
|
-
|
|
116
|
-
self._version_notes = version_notes
|
|
117
|
-
|
|
118
|
-
@property
|
|
119
|
-
def subtitle(self):
|
|
120
|
-
"""Gets the subtitle of this DatasetNewVersionRequest. # noqa: E501.
|
|
121
|
-
|
|
122
|
-
The subtitle to set on the dataset # noqa: E501
|
|
123
|
-
|
|
124
|
-
:return: The subtitle of this DatasetNewVersionRequest. # noqa:
|
|
125
|
-
E501
|
|
126
|
-
:rtype: str
|
|
127
|
-
"""
|
|
128
|
-
return self._subtitle
|
|
129
|
-
|
|
130
|
-
@subtitle.setter
|
|
131
|
-
def subtitle(self, subtitle):
|
|
132
|
-
"""Sets the subtitle of this DatasetNewVersionRequest.
|
|
133
|
-
|
|
134
|
-
The subtitle to set on the dataset # noqa: E501
|
|
135
|
-
|
|
136
|
-
:param subtitle: The subtitle of this DatasetNewVersionRequest.
|
|
137
|
-
# noqa: E501
|
|
138
|
-
:type: str
|
|
139
|
-
"""
|
|
140
|
-
|
|
141
|
-
self._subtitle = subtitle
|
|
142
|
-
|
|
143
|
-
@property
|
|
144
|
-
def description(self):
|
|
145
|
-
"""Gets the description of this DatasetNewVersionRequest. # noqa:
|
|
146
|
-
E501.
|
|
147
|
-
|
|
148
|
-
The description to set on the dataset # noqa: E501
|
|
149
|
-
|
|
150
|
-
:return: The description of this DatasetNewVersionRequest. #
|
|
151
|
-
noqa: E501
|
|
152
|
-
:rtype: str
|
|
153
|
-
"""
|
|
154
|
-
return self._description
|
|
155
|
-
|
|
156
|
-
@description.setter
|
|
157
|
-
def description(self, description):
|
|
158
|
-
"""Sets the description of this DatasetNewVersionRequest.
|
|
159
|
-
|
|
160
|
-
The description to set on the dataset # noqa: E501
|
|
161
|
-
|
|
162
|
-
:param description: The description of this
|
|
163
|
-
DatasetNewVersionRequest. # noqa: E501
|
|
164
|
-
:type: str
|
|
165
|
-
"""
|
|
166
|
-
|
|
167
|
-
self._description = description
|
|
168
|
-
|
|
169
|
-
@property
|
|
170
|
-
def files(self):
|
|
171
|
-
"""Gets the files of this DatasetNewVersionRequest. # noqa: E501.
|
|
172
|
-
|
|
173
|
-
A list of files that should be associated with the dataset #
|
|
174
|
-
noqa: E501
|
|
175
|
-
|
|
176
|
-
:return: The files of this DatasetNewVersionRequest. # noqa:
|
|
177
|
-
E501
|
|
178
|
-
:rtype: list[UploadFile]
|
|
179
|
-
"""
|
|
180
|
-
return self._files
|
|
181
|
-
|
|
182
|
-
@files.setter
|
|
183
|
-
def files(self, files):
|
|
184
|
-
"""Sets the files of this DatasetNewVersionRequest.
|
|
185
|
-
|
|
186
|
-
A list of files that should be associated with the dataset #
|
|
187
|
-
noqa: E501
|
|
188
|
-
|
|
189
|
-
:param files: The files of this DatasetNewVersionRequest. #
|
|
190
|
-
noqa: E501
|
|
191
|
-
:type: list[UploadFile]
|
|
192
|
-
"""
|
|
193
|
-
if files is None:
|
|
194
|
-
raise ValueError("Invalid value for `files`, must not be `None`") # noqa: E501
|
|
195
|
-
|
|
196
|
-
self._files = files
|
|
197
|
-
|
|
198
|
-
@property
|
|
199
|
-
def convert_to_csv(self):
|
|
200
|
-
"""Gets the convert_to_csv of this DatasetNewVersionRequest. # noqa:
|
|
201
|
-
E501.
|
|
202
|
-
|
|
203
|
-
Whether or not a tabular dataset should be converted to csv #
|
|
204
|
-
noqa: E501
|
|
205
|
-
|
|
206
|
-
:return: The convert_to_csv of this DatasetNewVersionRequest. #
|
|
207
|
-
noqa: E501
|
|
208
|
-
:rtype: bool
|
|
209
|
-
"""
|
|
210
|
-
return self._convert_to_csv
|
|
211
|
-
|
|
212
|
-
@convert_to_csv.setter
|
|
213
|
-
def convert_to_csv(self, convert_to_csv):
|
|
214
|
-
"""Sets the convert_to_csv of this DatasetNewVersionRequest.
|
|
215
|
-
|
|
216
|
-
Whether or not a tabular dataset should be converted to csv #
|
|
217
|
-
noqa: E501
|
|
218
|
-
|
|
219
|
-
:param convert_to_csv: The convert_to_csv of this
|
|
220
|
-
DatasetNewVersionRequest. # noqa: E501
|
|
221
|
-
:type: bool
|
|
222
|
-
"""
|
|
223
|
-
|
|
224
|
-
self._convert_to_csv = convert_to_csv
|
|
225
|
-
|
|
226
|
-
@property
|
|
227
|
-
def category_ids(self):
|
|
228
|
-
"""Gets the category_ids of this DatasetNewVersionRequest. # noqa:
|
|
229
|
-
E501.
|
|
230
|
-
|
|
231
|
-
A list of tag IDs to associated with the dataset # noqa: E501
|
|
232
|
-
|
|
233
|
-
:return: The category_ids of this DatasetNewVersionRequest. #
|
|
234
|
-
noqa: E501
|
|
235
|
-
:rtype: list[str]
|
|
236
|
-
"""
|
|
237
|
-
return self._category_ids
|
|
238
|
-
|
|
239
|
-
@category_ids.setter
|
|
240
|
-
def category_ids(self, category_ids):
|
|
241
|
-
"""Sets the category_ids of this DatasetNewVersionRequest.
|
|
242
|
-
|
|
243
|
-
A list of tag IDs to associated with the dataset # noqa: E501
|
|
244
|
-
|
|
245
|
-
:param category_ids: The category_ids of this
|
|
246
|
-
DatasetNewVersionRequest. # noqa: E501
|
|
247
|
-
:type: list[str]
|
|
248
|
-
"""
|
|
249
|
-
|
|
250
|
-
self._category_ids = category_ids
|
|
251
|
-
|
|
252
|
-
@property
|
|
253
|
-
def delete_old_versions(self):
|
|
254
|
-
"""Gets the delete_old_versions of this DatasetNewVersionRequest. #
|
|
255
|
-
noqa: E501.
|
|
256
|
-
|
|
257
|
-
Whether or not all previous versions of the dataset should be
|
|
258
|
-
deleted upon creating the new version # noqa: E501
|
|
259
|
-
|
|
260
|
-
:return: The delete_old_versions of this
|
|
261
|
-
DatasetNewVersionRequest. # noqa: E501
|
|
262
|
-
:rtype: bool
|
|
263
|
-
"""
|
|
264
|
-
return self._delete_old_versions
|
|
265
|
-
|
|
266
|
-
@delete_old_versions.setter
|
|
267
|
-
def delete_old_versions(self, delete_old_versions):
|
|
268
|
-
"""Sets the delete_old_versions of this DatasetNewVersionRequest.
|
|
269
|
-
|
|
270
|
-
Whether or not all previous versions of the dataset should be
|
|
271
|
-
deleted upon creating the new version # noqa: E501
|
|
272
|
-
|
|
273
|
-
:param delete_old_versions: The delete_old_versions of this
|
|
274
|
-
DatasetNewVersionRequest. # noqa: E501
|
|
275
|
-
:type: bool
|
|
276
|
-
"""
|
|
277
|
-
|
|
278
|
-
self._delete_old_versions = delete_old_versions
|
|
279
|
-
|
|
280
|
-
def to_dict(self):
|
|
281
|
-
"""Returns the model properties as a dict."""
|
|
282
|
-
result = {}
|
|
283
|
-
|
|
284
|
-
for attr, _ in six.iteritems(self.project_types):
|
|
285
|
-
value = getattr(self, attr)
|
|
286
|
-
if isinstance(value, list):
|
|
287
|
-
result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
|
|
288
|
-
elif hasattr(value, "to_dict"):
|
|
289
|
-
result[attr] = value.to_dict()
|
|
290
|
-
elif isinstance(value, dict):
|
|
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
|
-
)
|
|
297
|
-
else:
|
|
298
|
-
result[attr] = value
|
|
299
|
-
|
|
300
|
-
return result
|
|
301
|
-
|
|
302
|
-
def to_str(self):
|
|
303
|
-
"""Returns the string representation of the model."""
|
|
304
|
-
return pprint.pformat(self.to_dict())
|
|
305
|
-
|
|
306
|
-
def __repr__(self):
|
|
307
|
-
"""For `print` and `pprint`"""
|
|
308
|
-
return self.to_str()
|
|
309
|
-
|
|
310
|
-
def __eq__(self, other):
|
|
311
|
-
"""Returns true if both objects are equal."""
|
|
312
|
-
if not isinstance(other, DatasetNewVersionRequest):
|
|
313
|
-
return False
|
|
314
|
-
|
|
315
|
-
return self.__dict__ == other.__dict__
|
|
316
|
-
|
|
317
|
-
def __ne__(self, other):
|
|
318
|
-
"""Returns true if both objects are not equal."""
|
|
319
|
-
return not self == other
|
|
@@ -1,344 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/python
|
|
2
|
-
#
|
|
3
|
-
# Copyright 2024 Kaggle Inc
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
|
|
17
|
-
# coding: utf-8
|
|
18
|
-
|
|
19
|
-
import pprint
|
|
20
|
-
import re # noqa: F401
|
|
21
|
-
|
|
22
|
-
import six
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class DatasetUpdateSettingsRequest(object):
|
|
26
|
-
"""
|
|
27
|
-
Attributes:
|
|
28
|
-
project_types (dict): The key is attribute name
|
|
29
|
-
and the value is attribute type.
|
|
30
|
-
attribute_map (dict): The key is attribute name
|
|
31
|
-
and the value is json key in definition.
|
|
32
|
-
"""
|
|
33
|
-
|
|
34
|
-
project_types = {
|
|
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]",
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
attribute_map = {
|
|
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",
|
|
54
|
-
}
|
|
55
|
-
|
|
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
|
|
67
|
-
|
|
68
|
-
self._title = None
|
|
69
|
-
self._subtitle = None
|
|
70
|
-
self._description = None
|
|
71
|
-
self._is_private = None
|
|
72
|
-
self._licenses = None
|
|
73
|
-
self._keywords = None
|
|
74
|
-
self._collaborators = None
|
|
75
|
-
self._data = None
|
|
76
|
-
self.discriminator = None
|
|
77
|
-
|
|
78
|
-
if title is not None:
|
|
79
|
-
self.title = title
|
|
80
|
-
if subtitle is not None:
|
|
81
|
-
self.subtitle = subtitle
|
|
82
|
-
if description is not None:
|
|
83
|
-
self.description = description
|
|
84
|
-
if is_private is not None:
|
|
85
|
-
self.is_private = is_private
|
|
86
|
-
if licenses is not None:
|
|
87
|
-
self.licenses = licenses
|
|
88
|
-
if keywords is not None:
|
|
89
|
-
self.keywords = keywords
|
|
90
|
-
if collaborators is not None:
|
|
91
|
-
self.collaborators = collaborators
|
|
92
|
-
if data is not None:
|
|
93
|
-
self.data = data
|
|
94
|
-
|
|
95
|
-
@property
|
|
96
|
-
def title(self):
|
|
97
|
-
"""Gets the title of this DatasetUpdateSettingsRequest. # noqa: E501.
|
|
98
|
-
|
|
99
|
-
Title of the dataset # noqa: E501
|
|
100
|
-
|
|
101
|
-
:return: The title of this DatasetUpdateSettingsRequest. #
|
|
102
|
-
noqa: E501
|
|
103
|
-
:rtype: str
|
|
104
|
-
"""
|
|
105
|
-
return self._title
|
|
106
|
-
|
|
107
|
-
@title.setter
|
|
108
|
-
def title(self, title):
|
|
109
|
-
"""Sets the title of this DatasetUpdateSettingsRequest.
|
|
110
|
-
|
|
111
|
-
Title of the dataset # noqa: E501
|
|
112
|
-
|
|
113
|
-
:param title: The title of this DatasetUpdateSettingsRequest. #
|
|
114
|
-
noqa: E501
|
|
115
|
-
:type: str
|
|
116
|
-
"""
|
|
117
|
-
|
|
118
|
-
self._title = title
|
|
119
|
-
|
|
120
|
-
@property
|
|
121
|
-
def subtitle(self):
|
|
122
|
-
"""Gets the subtitle of this DatasetUpdateSettingsRequest. # noqa:
|
|
123
|
-
E501.
|
|
124
|
-
|
|
125
|
-
Subtitle of the dataset # noqa: E501
|
|
126
|
-
|
|
127
|
-
:return: The subtitle of this DatasetUpdateSettingsRequest. #
|
|
128
|
-
noqa: E501
|
|
129
|
-
:rtype: str
|
|
130
|
-
"""
|
|
131
|
-
return self._subtitle
|
|
132
|
-
|
|
133
|
-
@subtitle.setter
|
|
134
|
-
def subtitle(self, subtitle):
|
|
135
|
-
"""Sets the subtitle of this DatasetUpdateSettingsRequest.
|
|
136
|
-
|
|
137
|
-
Subtitle of the dataset # noqa: E501
|
|
138
|
-
|
|
139
|
-
:param subtitle: The subtitle of this
|
|
140
|
-
DatasetUpdateSettingsRequest. # noqa: E501
|
|
141
|
-
:type: str
|
|
142
|
-
"""
|
|
143
|
-
|
|
144
|
-
self._subtitle = subtitle
|
|
145
|
-
|
|
146
|
-
@property
|
|
147
|
-
def description(self):
|
|
148
|
-
"""Gets the description of this DatasetUpdateSettingsRequest. # noqa:
|
|
149
|
-
E501.
|
|
150
|
-
|
|
151
|
-
Decription of the dataset # noqa: E501
|
|
152
|
-
|
|
153
|
-
:return: The description of this DatasetUpdateSettingsRequest. #
|
|
154
|
-
noqa: E501
|
|
155
|
-
:rtype: str
|
|
156
|
-
"""
|
|
157
|
-
return self._description
|
|
158
|
-
|
|
159
|
-
@description.setter
|
|
160
|
-
def description(self, description):
|
|
161
|
-
"""Sets the description of this DatasetUpdateSettingsRequest.
|
|
162
|
-
|
|
163
|
-
Decription of the dataset # noqa: E501
|
|
164
|
-
|
|
165
|
-
:param description: The description of this
|
|
166
|
-
DatasetUpdateSettingsRequest. # noqa: E501
|
|
167
|
-
:type: str
|
|
168
|
-
"""
|
|
169
|
-
|
|
170
|
-
self._description = description
|
|
171
|
-
|
|
172
|
-
@property
|
|
173
|
-
def is_private(self):
|
|
174
|
-
"""Gets the is_private of this DatasetUpdateSettingsRequest. # noqa:
|
|
175
|
-
E501.
|
|
176
|
-
|
|
177
|
-
Whether or not the dataset should be private # noqa: E501
|
|
178
|
-
|
|
179
|
-
:return: The is_private of this DatasetUpdateSettingsRequest. #
|
|
180
|
-
noqa: E501
|
|
181
|
-
:rtype: bool
|
|
182
|
-
"""
|
|
183
|
-
return self._is_private
|
|
184
|
-
|
|
185
|
-
@is_private.setter
|
|
186
|
-
def is_private(self, is_private):
|
|
187
|
-
"""Sets the is_private of this DatasetUpdateSettingsRequest.
|
|
188
|
-
|
|
189
|
-
Whether or not the dataset should be private # noqa: E501
|
|
190
|
-
|
|
191
|
-
:param is_private: The is_private of this
|
|
192
|
-
DatasetUpdateSettingsRequest. # noqa: E501
|
|
193
|
-
:type: bool
|
|
194
|
-
"""
|
|
195
|
-
|
|
196
|
-
self._is_private = is_private
|
|
197
|
-
|
|
198
|
-
@property
|
|
199
|
-
def licenses(self):
|
|
200
|
-
"""Gets the licenses of this DatasetUpdateSettingsRequest. # noqa:
|
|
201
|
-
E501.
|
|
202
|
-
|
|
203
|
-
A list of licenses that apply to this dataset # noqa: E501
|
|
204
|
-
|
|
205
|
-
:return: The licenses of this DatasetUpdateSettingsRequest. #
|
|
206
|
-
noqa: E501
|
|
207
|
-
:rtype: list[object]
|
|
208
|
-
"""
|
|
209
|
-
return self._licenses
|
|
210
|
-
|
|
211
|
-
@licenses.setter
|
|
212
|
-
def licenses(self, licenses):
|
|
213
|
-
"""Sets the licenses of this DatasetUpdateSettingsRequest.
|
|
214
|
-
|
|
215
|
-
A list of licenses that apply to this dataset # noqa: E501
|
|
216
|
-
|
|
217
|
-
:param licenses: The licenses of this
|
|
218
|
-
DatasetUpdateSettingsRequest. # noqa: E501
|
|
219
|
-
:type: list[object]
|
|
220
|
-
"""
|
|
221
|
-
|
|
222
|
-
self._licenses = licenses
|
|
223
|
-
|
|
224
|
-
@property
|
|
225
|
-
def keywords(self):
|
|
226
|
-
"""Gets the keywords of this DatasetUpdateSettingsRequest. # noqa:
|
|
227
|
-
E501.
|
|
228
|
-
|
|
229
|
-
A list of keywords that apply to this dataset # noqa: E501
|
|
230
|
-
|
|
231
|
-
:return: The keywords of this DatasetUpdateSettingsRequest. #
|
|
232
|
-
noqa: E501
|
|
233
|
-
:rtype: list[str]
|
|
234
|
-
"""
|
|
235
|
-
return self._keywords
|
|
236
|
-
|
|
237
|
-
@keywords.setter
|
|
238
|
-
def keywords(self, keywords):
|
|
239
|
-
"""Sets the keywords of this DatasetUpdateSettingsRequest.
|
|
240
|
-
|
|
241
|
-
A list of keywords that apply to this dataset # noqa: E501
|
|
242
|
-
|
|
243
|
-
:param keywords: The keywords of this
|
|
244
|
-
DatasetUpdateSettingsRequest. # noqa: E501
|
|
245
|
-
:type: list[str]
|
|
246
|
-
"""
|
|
247
|
-
|
|
248
|
-
self._keywords = keywords
|
|
249
|
-
|
|
250
|
-
@property
|
|
251
|
-
def collaborators(self):
|
|
252
|
-
"""Gets the collaborators of this DatasetUpdateSettingsRequest. #
|
|
253
|
-
noqa: E501.
|
|
254
|
-
|
|
255
|
-
A list of collaborators that may read or edit this dataset #
|
|
256
|
-
noqa: E501
|
|
257
|
-
|
|
258
|
-
:return: The collaborators of this DatasetUpdateSettingsRequest.
|
|
259
|
-
# noqa: E501
|
|
260
|
-
:rtype: list[object]
|
|
261
|
-
"""
|
|
262
|
-
return self._collaborators
|
|
263
|
-
|
|
264
|
-
@collaborators.setter
|
|
265
|
-
def collaborators(self, collaborators):
|
|
266
|
-
"""Sets the collaborators of this DatasetUpdateSettingsRequest.
|
|
267
|
-
|
|
268
|
-
A list of collaborators that may read or edit this dataset #
|
|
269
|
-
noqa: E501
|
|
270
|
-
|
|
271
|
-
:param collaborators: The collaborators of this
|
|
272
|
-
DatasetUpdateSettingsRequest. # noqa: E501
|
|
273
|
-
:type: list[object]
|
|
274
|
-
"""
|
|
275
|
-
|
|
276
|
-
self._collaborators = collaborators
|
|
277
|
-
|
|
278
|
-
@property
|
|
279
|
-
def data(self):
|
|
280
|
-
"""Gets the data of this DatasetUpdateSettingsRequest. # noqa: E501.
|
|
281
|
-
|
|
282
|
-
A list containing metadata for each file in the dataset # noqa:
|
|
283
|
-
E501
|
|
284
|
-
|
|
285
|
-
:return: The data of this DatasetUpdateSettingsRequest. # noqa:
|
|
286
|
-
E501
|
|
287
|
-
:rtype: list[object]
|
|
288
|
-
"""
|
|
289
|
-
return self._data
|
|
290
|
-
|
|
291
|
-
@data.setter
|
|
292
|
-
def data(self, data):
|
|
293
|
-
"""Sets the data of this DatasetUpdateSettingsRequest.
|
|
294
|
-
|
|
295
|
-
A list containing metadata for each file in the dataset # noqa:
|
|
296
|
-
E501
|
|
297
|
-
|
|
298
|
-
:param data: The data of this DatasetUpdateSettingsRequest. #
|
|
299
|
-
noqa: E501
|
|
300
|
-
:type: list[object]
|
|
301
|
-
"""
|
|
302
|
-
|
|
303
|
-
self._data = data
|
|
304
|
-
|
|
305
|
-
def to_dict(self):
|
|
306
|
-
"""Returns the model properties as a dict."""
|
|
307
|
-
result = {}
|
|
308
|
-
|
|
309
|
-
for attr, _ in six.iteritems(self.project_types):
|
|
310
|
-
value = getattr(self, attr)
|
|
311
|
-
if isinstance(value, list):
|
|
312
|
-
result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
|
|
313
|
-
elif hasattr(value, "to_dict"):
|
|
314
|
-
result[attr] = value.to_dict()
|
|
315
|
-
elif isinstance(value, dict):
|
|
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
|
-
)
|
|
322
|
-
else:
|
|
323
|
-
result[attr] = value
|
|
324
|
-
|
|
325
|
-
return result
|
|
326
|
-
|
|
327
|
-
def to_str(self):
|
|
328
|
-
"""Returns the string representation of the model."""
|
|
329
|
-
return pprint.pformat(self.to_dict())
|
|
330
|
-
|
|
331
|
-
def __repr__(self):
|
|
332
|
-
"""For `print` and `pprint`"""
|
|
333
|
-
return self.to_str()
|
|
334
|
-
|
|
335
|
-
def __eq__(self, other):
|
|
336
|
-
"""Returns true if both objects are equal."""
|
|
337
|
-
if not isinstance(other, DatasetUpdateSettingsRequest):
|
|
338
|
-
return False
|
|
339
|
-
|
|
340
|
-
return self.__dict__ == other.__dict__
|
|
341
|
-
|
|
342
|
-
def __ne__(self, other):
|
|
343
|
-
"""Returns true if both objects are not equal."""
|
|
344
|
-
return not self == other
|