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
|
@@ -79,7 +79,7 @@ class ModelNewRequest(object):
|
|
|
79
79
|
|
|
80
80
|
@property
|
|
81
81
|
def owner_slug(self):
|
|
82
|
-
"""Gets the owner_slug of this ModelNewRequest. # noqa: E501
|
|
82
|
+
"""Gets the owner_slug of this ModelNewRequest. # noqa: E501.
|
|
83
83
|
|
|
84
84
|
The owner's slug # noqa: E501
|
|
85
85
|
|
|
@@ -94,7 +94,8 @@ class ModelNewRequest(object):
|
|
|
94
94
|
|
|
95
95
|
The owner's slug # noqa: E501
|
|
96
96
|
|
|
97
|
-
:param owner_slug: The owner_slug of this ModelNewRequest.
|
|
97
|
+
:param owner_slug: The owner_slug of this ModelNewRequest. #
|
|
98
|
+
noqa: E501
|
|
98
99
|
:type: str
|
|
99
100
|
"""
|
|
100
101
|
if owner_slug is None:
|
|
@@ -104,7 +105,7 @@ class ModelNewRequest(object):
|
|
|
104
105
|
|
|
105
106
|
@property
|
|
106
107
|
def slug(self):
|
|
107
|
-
"""Gets the slug of this ModelNewRequest. # noqa: E501
|
|
108
|
+
"""Gets the slug of this ModelNewRequest. # noqa: E501.
|
|
108
109
|
|
|
109
110
|
The slug that the model should be created with # noqa: E501
|
|
110
111
|
|
|
@@ -129,7 +130,7 @@ class ModelNewRequest(object):
|
|
|
129
130
|
|
|
130
131
|
@property
|
|
131
132
|
def title(self):
|
|
132
|
-
"""Gets the title of this ModelNewRequest. # noqa: E501
|
|
133
|
+
"""Gets the title of this ModelNewRequest. # noqa: E501.
|
|
133
134
|
|
|
134
135
|
The title of the new model # noqa: E501
|
|
135
136
|
|
|
@@ -154,7 +155,7 @@ class ModelNewRequest(object):
|
|
|
154
155
|
|
|
155
156
|
@property
|
|
156
157
|
def subtitle(self):
|
|
157
|
-
"""Gets the subtitle of this ModelNewRequest. # noqa: E501
|
|
158
|
+
"""Gets the subtitle of this ModelNewRequest. # noqa: E501.
|
|
158
159
|
|
|
159
160
|
The subtitle of the new model # noqa: E501
|
|
160
161
|
|
|
@@ -169,7 +170,8 @@ class ModelNewRequest(object):
|
|
|
169
170
|
|
|
170
171
|
The subtitle of the new model # noqa: E501
|
|
171
172
|
|
|
172
|
-
:param subtitle: The subtitle of this ModelNewRequest.
|
|
173
|
+
:param subtitle: The subtitle of this ModelNewRequest. # noqa:
|
|
174
|
+
E501
|
|
173
175
|
:type: str
|
|
174
176
|
"""
|
|
175
177
|
|
|
@@ -177,7 +179,7 @@ class ModelNewRequest(object):
|
|
|
177
179
|
|
|
178
180
|
@property
|
|
179
181
|
def is_private(self):
|
|
180
|
-
"""Gets the is_private of this ModelNewRequest. # noqa: E501
|
|
182
|
+
"""Gets the is_private of this ModelNewRequest. # noqa: E501.
|
|
181
183
|
|
|
182
184
|
Whether or not the model should be private # noqa: E501
|
|
183
185
|
|
|
@@ -192,7 +194,8 @@ class ModelNewRequest(object):
|
|
|
192
194
|
|
|
193
195
|
Whether or not the model should be private # noqa: E501
|
|
194
196
|
|
|
195
|
-
:param is_private: The is_private of this ModelNewRequest.
|
|
197
|
+
:param is_private: The is_private of this ModelNewRequest. #
|
|
198
|
+
noqa: E501
|
|
196
199
|
:type: bool
|
|
197
200
|
"""
|
|
198
201
|
if is_private is None:
|
|
@@ -202,7 +205,7 @@ class ModelNewRequest(object):
|
|
|
202
205
|
|
|
203
206
|
@property
|
|
204
207
|
def description(self):
|
|
205
|
-
"""Gets the description of this ModelNewRequest. # noqa: E501
|
|
208
|
+
"""Gets the description of this ModelNewRequest. # noqa: E501.
|
|
206
209
|
|
|
207
210
|
The description to be set on the model # noqa: E501
|
|
208
211
|
|
|
@@ -217,7 +220,8 @@ class ModelNewRequest(object):
|
|
|
217
220
|
|
|
218
221
|
The description to be set on the model # noqa: E501
|
|
219
222
|
|
|
220
|
-
:param description: The description of this ModelNewRequest.
|
|
223
|
+
:param description: The description of this ModelNewRequest. #
|
|
224
|
+
noqa: E501
|
|
221
225
|
:type: str
|
|
222
226
|
"""
|
|
223
227
|
|
|
@@ -225,7 +229,7 @@ class ModelNewRequest(object):
|
|
|
225
229
|
|
|
226
230
|
@property
|
|
227
231
|
def publish_time(self):
|
|
228
|
-
"""Gets the publish_time of this ModelNewRequest. # noqa: E501
|
|
232
|
+
"""Gets the publish_time of this ModelNewRequest. # noqa: E501.
|
|
229
233
|
|
|
230
234
|
When the model was initially published # noqa: E501
|
|
231
235
|
|
|
@@ -240,7 +244,8 @@ class ModelNewRequest(object):
|
|
|
240
244
|
|
|
241
245
|
When the model was initially published # noqa: E501
|
|
242
246
|
|
|
243
|
-
:param publish_time: The publish_time of this ModelNewRequest.
|
|
247
|
+
:param publish_time: The publish_time of this ModelNewRequest. #
|
|
248
|
+
noqa: E501
|
|
244
249
|
:type: date
|
|
245
250
|
"""
|
|
246
251
|
|
|
@@ -248,11 +253,12 @@ class ModelNewRequest(object):
|
|
|
248
253
|
|
|
249
254
|
@property
|
|
250
255
|
def provenance_sources(self):
|
|
251
|
-
"""Gets the provenance_sources of this ModelNewRequest. # noqa: E501
|
|
256
|
+
"""Gets the provenance_sources of this ModelNewRequest. # noqa: E501.
|
|
252
257
|
|
|
253
258
|
The provenance sources to be set on the model # noqa: E501
|
|
254
259
|
|
|
255
|
-
:return: The provenance_sources of this ModelNewRequest.
|
|
260
|
+
:return: The provenance_sources of this ModelNewRequest. #
|
|
261
|
+
noqa: E501
|
|
256
262
|
:rtype: str
|
|
257
263
|
"""
|
|
258
264
|
return self._provenance_sources
|
|
@@ -263,14 +269,15 @@ class ModelNewRequest(object):
|
|
|
263
269
|
|
|
264
270
|
The provenance sources to be set on the model # noqa: E501
|
|
265
271
|
|
|
266
|
-
:param provenance_sources: The provenance_sources of this
|
|
272
|
+
:param provenance_sources: The provenance_sources of this
|
|
273
|
+
ModelNewRequest. # noqa: E501
|
|
267
274
|
:type: str
|
|
268
275
|
"""
|
|
269
276
|
|
|
270
277
|
self._provenance_sources = provenance_sources
|
|
271
278
|
|
|
272
279
|
def to_dict(self):
|
|
273
|
-
"""Returns the model properties as a dict"""
|
|
280
|
+
"""Returns the model properties as a dict."""
|
|
274
281
|
result = {}
|
|
275
282
|
|
|
276
283
|
for attr, _ in six.iteritems(self.project_types):
|
|
@@ -294,7 +301,7 @@ class ModelNewRequest(object):
|
|
|
294
301
|
return result
|
|
295
302
|
|
|
296
303
|
def to_str(self):
|
|
297
|
-
"""Returns the string representation of the model"""
|
|
304
|
+
"""Returns the string representation of the model."""
|
|
298
305
|
return pprint.pformat(self.to_dict())
|
|
299
306
|
|
|
300
307
|
def __repr__(self):
|
|
@@ -302,13 +309,13 @@ class ModelNewRequest(object):
|
|
|
302
309
|
return self.to_str()
|
|
303
310
|
|
|
304
311
|
def __eq__(self, other):
|
|
305
|
-
"""Returns true if both objects are equal"""
|
|
312
|
+
"""Returns true if both objects are equal."""
|
|
306
313
|
if not isinstance(other, ModelNewRequest):
|
|
307
314
|
return False
|
|
308
315
|
|
|
309
316
|
return self.__dict__ == other.__dict__
|
|
310
317
|
|
|
311
318
|
def __ne__(self, other):
|
|
312
|
-
"""Returns true if both objects are not equal"""
|
|
319
|
+
"""Returns true if both objects are not equal."""
|
|
313
320
|
return not self == other
|
|
314
321
|
|
|
@@ -78,7 +78,7 @@ class ModelUpdateRequest(object):
|
|
|
78
78
|
|
|
79
79
|
@property
|
|
80
80
|
def title(self):
|
|
81
|
-
"""Gets the title of this ModelUpdateRequest. # noqa: E501
|
|
81
|
+
"""Gets the title of this ModelUpdateRequest. # noqa: E501.
|
|
82
82
|
|
|
83
83
|
The title of the new model # noqa: E501
|
|
84
84
|
|
|
@@ -93,7 +93,7 @@ class ModelUpdateRequest(object):
|
|
|
93
93
|
|
|
94
94
|
The title of the new model # noqa: E501
|
|
95
95
|
|
|
96
|
-
:param title: The title of this ModelUpdateRequest.
|
|
96
|
+
:param title: The title of this ModelUpdateRequest. # noqa: E501
|
|
97
97
|
:type: str
|
|
98
98
|
"""
|
|
99
99
|
|
|
@@ -101,7 +101,7 @@ class ModelUpdateRequest(object):
|
|
|
101
101
|
|
|
102
102
|
@property
|
|
103
103
|
def subtitle(self):
|
|
104
|
-
"""Gets the subtitle of this ModelUpdateRequest. # noqa: E501
|
|
104
|
+
"""Gets the subtitle of this ModelUpdateRequest. # noqa: E501.
|
|
105
105
|
|
|
106
106
|
The subtitle of the new model # noqa: E501
|
|
107
107
|
|
|
@@ -116,7 +116,8 @@ class ModelUpdateRequest(object):
|
|
|
116
116
|
|
|
117
117
|
The subtitle of the new model # noqa: E501
|
|
118
118
|
|
|
119
|
-
:param subtitle: The subtitle of this ModelUpdateRequest.
|
|
119
|
+
:param subtitle: The subtitle of this ModelUpdateRequest. #
|
|
120
|
+
noqa: E501
|
|
120
121
|
:type: str
|
|
121
122
|
"""
|
|
122
123
|
|
|
@@ -124,11 +125,11 @@ class ModelUpdateRequest(object):
|
|
|
124
125
|
|
|
125
126
|
@property
|
|
126
127
|
def is_private(self):
|
|
127
|
-
"""Gets the is_private of this ModelUpdateRequest. # noqa: E501
|
|
128
|
+
"""Gets the is_private of this ModelUpdateRequest. # noqa: E501.
|
|
128
129
|
|
|
129
130
|
Whether or not the model should be private # noqa: E501
|
|
130
131
|
|
|
131
|
-
:return: The is_private of this ModelUpdateRequest.
|
|
132
|
+
:return: The is_private of this ModelUpdateRequest. # noqa: E501
|
|
132
133
|
:rtype: bool
|
|
133
134
|
"""
|
|
134
135
|
return self._is_private
|
|
@@ -139,7 +140,8 @@ class ModelUpdateRequest(object):
|
|
|
139
140
|
|
|
140
141
|
Whether or not the model should be private # noqa: E501
|
|
141
142
|
|
|
142
|
-
:param is_private: The is_private of this ModelUpdateRequest.
|
|
143
|
+
:param is_private: The is_private of this ModelUpdateRequest. #
|
|
144
|
+
noqa: E501
|
|
143
145
|
:type: bool
|
|
144
146
|
"""
|
|
145
147
|
|
|
@@ -147,11 +149,12 @@ class ModelUpdateRequest(object):
|
|
|
147
149
|
|
|
148
150
|
@property
|
|
149
151
|
def description(self):
|
|
150
|
-
"""Gets the description of this ModelUpdateRequest. # noqa: E501
|
|
152
|
+
"""Gets the description of this ModelUpdateRequest. # noqa: E501.
|
|
151
153
|
|
|
152
154
|
The description to be set on the model # noqa: E501
|
|
153
155
|
|
|
154
|
-
:return: The description of this ModelUpdateRequest.
|
|
156
|
+
:return: The description of this ModelUpdateRequest. # noqa:
|
|
157
|
+
E501
|
|
155
158
|
:rtype: str
|
|
156
159
|
"""
|
|
157
160
|
return self._description
|
|
@@ -162,7 +165,8 @@ class ModelUpdateRequest(object):
|
|
|
162
165
|
|
|
163
166
|
The description to be set on the model # noqa: E501
|
|
164
167
|
|
|
165
|
-
:param description: The description of this ModelUpdateRequest.
|
|
168
|
+
:param description: The description of this ModelUpdateRequest.
|
|
169
|
+
# noqa: E501
|
|
166
170
|
:type: str
|
|
167
171
|
"""
|
|
168
172
|
|
|
@@ -170,11 +174,12 @@ class ModelUpdateRequest(object):
|
|
|
170
174
|
|
|
171
175
|
@property
|
|
172
176
|
def publish_time(self):
|
|
173
|
-
"""Gets the publish_time of this ModelUpdateRequest. # noqa: E501
|
|
177
|
+
"""Gets the publish_time of this ModelUpdateRequest. # noqa: E501.
|
|
174
178
|
|
|
175
179
|
When the model was initially published # noqa: E501
|
|
176
180
|
|
|
177
|
-
:return: The publish_time of this ModelUpdateRequest.
|
|
181
|
+
:return: The publish_time of this ModelUpdateRequest. # noqa:
|
|
182
|
+
E501
|
|
178
183
|
:rtype: date
|
|
179
184
|
"""
|
|
180
185
|
return self._publish_time
|
|
@@ -185,7 +190,8 @@ class ModelUpdateRequest(object):
|
|
|
185
190
|
|
|
186
191
|
When the model was initially published # noqa: E501
|
|
187
192
|
|
|
188
|
-
:param publish_time: The publish_time of this
|
|
193
|
+
:param publish_time: The publish_time of this
|
|
194
|
+
ModelUpdateRequest. # noqa: E501
|
|
189
195
|
:type: date
|
|
190
196
|
"""
|
|
191
197
|
|
|
@@ -193,11 +199,13 @@ class ModelUpdateRequest(object):
|
|
|
193
199
|
|
|
194
200
|
@property
|
|
195
201
|
def provenance_sources(self):
|
|
196
|
-
"""Gets the provenance_sources of this ModelUpdateRequest. # noqa:
|
|
202
|
+
"""Gets the provenance_sources of this ModelUpdateRequest. # noqa:
|
|
203
|
+
E501.
|
|
197
204
|
|
|
198
205
|
The provenance sources to be set on the model # noqa: E501
|
|
199
206
|
|
|
200
|
-
:return: The provenance_sources of this ModelUpdateRequest.
|
|
207
|
+
:return: The provenance_sources of this ModelUpdateRequest. #
|
|
208
|
+
noqa: E501
|
|
201
209
|
:rtype: str
|
|
202
210
|
"""
|
|
203
211
|
return self._provenance_sources
|
|
@@ -208,7 +216,8 @@ class ModelUpdateRequest(object):
|
|
|
208
216
|
|
|
209
217
|
The provenance sources to be set on the model # noqa: E501
|
|
210
218
|
|
|
211
|
-
:param provenance_sources: The provenance_sources of this
|
|
219
|
+
:param provenance_sources: The provenance_sources of this
|
|
220
|
+
ModelUpdateRequest. # noqa: E501
|
|
212
221
|
:type: str
|
|
213
222
|
"""
|
|
214
223
|
|
|
@@ -216,11 +225,12 @@ class ModelUpdateRequest(object):
|
|
|
216
225
|
|
|
217
226
|
@property
|
|
218
227
|
def update_mask(self):
|
|
219
|
-
"""Gets the update_mask of this ModelUpdateRequest. # noqa: E501
|
|
228
|
+
"""Gets the update_mask of this ModelUpdateRequest. # noqa: E501.
|
|
220
229
|
|
|
221
230
|
Describes which fields to update # noqa: E501
|
|
222
231
|
|
|
223
|
-
:return: The update_mask of this ModelUpdateRequest.
|
|
232
|
+
:return: The update_mask of this ModelUpdateRequest. # noqa:
|
|
233
|
+
E501
|
|
224
234
|
:rtype: str
|
|
225
235
|
"""
|
|
226
236
|
return self._update_mask
|
|
@@ -231,14 +241,15 @@ class ModelUpdateRequest(object):
|
|
|
231
241
|
|
|
232
242
|
Describes which fields to update # noqa: E501
|
|
233
243
|
|
|
234
|
-
:param update_mask: The update_mask of this ModelUpdateRequest.
|
|
244
|
+
:param update_mask: The update_mask of this ModelUpdateRequest.
|
|
245
|
+
# noqa: E501
|
|
235
246
|
:type: str
|
|
236
247
|
"""
|
|
237
248
|
|
|
238
249
|
self._update_mask = update_mask
|
|
239
250
|
|
|
240
251
|
def to_dict(self):
|
|
241
|
-
"""Returns the model properties as a dict"""
|
|
252
|
+
"""Returns the model properties as a dict."""
|
|
242
253
|
result = {}
|
|
243
254
|
|
|
244
255
|
for attr, _ in six.iteritems(self.project_types):
|
|
@@ -262,7 +273,7 @@ class ModelUpdateRequest(object):
|
|
|
262
273
|
return result
|
|
263
274
|
|
|
264
275
|
def to_str(self):
|
|
265
|
-
"""Returns the string representation of the model"""
|
|
276
|
+
"""Returns the string representation of the model."""
|
|
266
277
|
return pprint.pformat(self.to_dict())
|
|
267
278
|
|
|
268
279
|
def __repr__(self):
|
|
@@ -270,13 +281,13 @@ class ModelUpdateRequest(object):
|
|
|
270
281
|
return self.to_str()
|
|
271
282
|
|
|
272
283
|
def __eq__(self, other):
|
|
273
|
-
"""Returns true if both objects are equal"""
|
|
284
|
+
"""Returns true if both objects are equal."""
|
|
274
285
|
if not isinstance(other, ModelUpdateRequest):
|
|
275
286
|
return False
|
|
276
287
|
|
|
277
288
|
return self.__dict__ == other.__dict__
|
|
278
289
|
|
|
279
290
|
def __ne__(self, other):
|
|
280
|
-
"""Returns true if both objects are not equal"""
|
|
291
|
+
"""Returns true if both objects are not equal."""
|
|
281
292
|
return not self == other
|
|
282
293
|
|
|
@@ -72,47 +72,49 @@ class StartBlobUploadRequest(object):
|
|
|
72
72
|
|
|
73
73
|
@property
|
|
74
74
|
def type(self):
|
|
75
|
-
"""Gets the type of this StartBlobUploadRequest. # noqa: E501
|
|
75
|
+
"""Gets the type of this StartBlobUploadRequest. # noqa: E501.
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
The type of the blob (one of \"dataset\", \"model\", \"inbox\") #
|
|
78
|
+
noqa: E501
|
|
78
79
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
:return: The type of this StartBlobUploadRequest. # noqa: E501
|
|
81
|
+
:rtype: object
|
|
82
|
+
"""
|
|
82
83
|
return self._type
|
|
83
84
|
|
|
84
85
|
@type.setter
|
|
85
86
|
def type(self, type):
|
|
86
87
|
"""Sets the type of this StartBlobUploadRequest.
|
|
87
88
|
|
|
88
|
-
|
|
89
|
+
The type of the blob (one of \"dataset\", \"model\", \"inbox\") #
|
|
90
|
+
noqa: E501
|
|
89
91
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
:param type: The type of this StartBlobUploadRequest. # noqa: E501
|
|
93
|
+
:type: object
|
|
94
|
+
"""
|
|
93
95
|
|
|
94
96
|
self._type = type
|
|
95
97
|
|
|
96
98
|
@property
|
|
97
99
|
def name(self):
|
|
98
|
-
"""Gets the name of this StartBlobUploadRequest. # noqa: E501
|
|
100
|
+
"""Gets the name of this StartBlobUploadRequest. # noqa: E501.
|
|
99
101
|
|
|
100
|
-
|
|
102
|
+
Name of the file # noqa: E501
|
|
101
103
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
:return: The name of this StartBlobUploadRequest. # noqa: E501
|
|
105
|
+
:rtype: str
|
|
106
|
+
"""
|
|
105
107
|
return self._name
|
|
106
108
|
|
|
107
109
|
@name.setter
|
|
108
110
|
def name(self, name):
|
|
109
111
|
"""Sets the name of this StartBlobUploadRequest.
|
|
110
112
|
|
|
111
|
-
|
|
113
|
+
Name of the file # noqa: E501
|
|
112
114
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
:param name: The name of this StartBlobUploadRequest. # noqa: E501
|
|
116
|
+
:type: str
|
|
117
|
+
"""
|
|
116
118
|
if name is None:
|
|
117
119
|
raise ValueError(
|
|
118
120
|
"Invalid value for `name`, must not be `None`") # noqa: E501
|
|
@@ -121,24 +123,26 @@ class StartBlobUploadRequest(object):
|
|
|
121
123
|
|
|
122
124
|
@property
|
|
123
125
|
def content_length(self):
|
|
124
|
-
"""Gets the content_length of this StartBlobUploadRequest. # noqa: E501
|
|
126
|
+
"""Gets the content_length of this StartBlobUploadRequest. # noqa: E501.
|
|
125
127
|
|
|
126
|
-
|
|
128
|
+
Content length of the file in bytes # noqa: E501
|
|
127
129
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
130
|
+
:return: The content_length of this StartBlobUploadRequest. # noqa:
|
|
131
|
+
E501
|
|
132
|
+
:rtype: int
|
|
133
|
+
"""
|
|
131
134
|
return self._content_length
|
|
132
135
|
|
|
133
136
|
@content_length.setter
|
|
134
137
|
def content_length(self, content_length):
|
|
135
138
|
"""Sets the content_length of this StartBlobUploadRequest.
|
|
136
139
|
|
|
137
|
-
|
|
140
|
+
Content length of the file in bytes # noqa: E501
|
|
138
141
|
|
|
139
|
-
|
|
140
|
-
:
|
|
141
|
-
|
|
142
|
+
:param content_length: The content_length of this
|
|
143
|
+
StartBlobUploadRequest. # noqa: E501
|
|
144
|
+
:type: int
|
|
145
|
+
"""
|
|
142
146
|
if content_length is None:
|
|
143
147
|
raise ValueError("Invalid value for `content_length`, must not be `None`"
|
|
144
148
|
) # noqa: E501
|
|
@@ -147,52 +151,59 @@ class StartBlobUploadRequest(object):
|
|
|
147
151
|
|
|
148
152
|
@property
|
|
149
153
|
def content_type(self):
|
|
150
|
-
"""Gets the content_type of this StartBlobUploadRequest. # noqa: E501
|
|
154
|
+
"""Gets the content_type of this StartBlobUploadRequest. # noqa: E501.
|
|
151
155
|
|
|
152
|
-
|
|
156
|
+
Content/MIME type (e.g. \"text/plain\") of the file # noqa: E501
|
|
153
157
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
158
|
+
:return: The content_type of this StartBlobUploadRequest. # noqa:
|
|
159
|
+
E501
|
|
160
|
+
:rtype: str
|
|
161
|
+
"""
|
|
157
162
|
return self._content_type
|
|
158
163
|
|
|
159
164
|
@content_type.setter
|
|
160
165
|
def content_type(self, content_type):
|
|
161
166
|
"""Sets the content_type of this StartBlobUploadRequest.
|
|
162
167
|
|
|
163
|
-
|
|
168
|
+
Content/MIME type (e.g. \"text/plain\") of the file # noqa: E501
|
|
164
169
|
|
|
165
|
-
|
|
166
|
-
:
|
|
167
|
-
|
|
170
|
+
:param content_type: The content_type of this
|
|
171
|
+
StartBlobUploadRequest. # noqa: E501
|
|
172
|
+
:type: str
|
|
173
|
+
"""
|
|
168
174
|
|
|
169
175
|
self._content_type = content_type
|
|
170
176
|
|
|
171
177
|
@property
|
|
172
178
|
def last_modified_epoch_seconds(self):
|
|
173
|
-
"""Gets the last_modified_epoch_seconds of this StartBlobUploadRequest. #
|
|
179
|
+
"""Gets the last_modified_epoch_seconds of this StartBlobUploadRequest. #
|
|
180
|
+
noqa: E501.
|
|
174
181
|
|
|
175
|
-
|
|
182
|
+
Last modified date of file in seconds since epoch in UTC # noqa:
|
|
183
|
+
E501
|
|
176
184
|
|
|
177
|
-
|
|
178
|
-
:
|
|
179
|
-
|
|
185
|
+
:return: The last_modified_epoch_seconds of this
|
|
186
|
+
StartBlobUploadRequest. # noqa: E501
|
|
187
|
+
:rtype: int
|
|
188
|
+
"""
|
|
180
189
|
return self._last_modified_epoch_seconds
|
|
181
190
|
|
|
182
191
|
@last_modified_epoch_seconds.setter
|
|
183
192
|
def last_modified_epoch_seconds(self, last_modified_epoch_seconds):
|
|
184
193
|
"""Sets the last_modified_epoch_seconds of this StartBlobUploadRequest.
|
|
185
194
|
|
|
186
|
-
|
|
195
|
+
Last modified date of file in seconds since epoch in UTC # noqa:
|
|
196
|
+
E501
|
|
187
197
|
|
|
188
|
-
|
|
189
|
-
:
|
|
190
|
-
|
|
198
|
+
:param last_modified_epoch_seconds: The last_modified_epoch_seconds
|
|
199
|
+
of this StartBlobUploadRequest. # noqa: E501
|
|
200
|
+
:type: int
|
|
201
|
+
"""
|
|
191
202
|
|
|
192
203
|
self._last_modified_epoch_seconds = last_modified_epoch_seconds
|
|
193
204
|
|
|
194
205
|
def to_dict(self):
|
|
195
|
-
"""Returns the model properties as a dict"""
|
|
206
|
+
"""Returns the model properties as a dict."""
|
|
196
207
|
result = {}
|
|
197
208
|
|
|
198
209
|
for attr, _ in six.iteritems(self.project_types):
|
|
@@ -213,7 +224,7 @@ class StartBlobUploadRequest(object):
|
|
|
213
224
|
return result
|
|
214
225
|
|
|
215
226
|
def to_str(self):
|
|
216
|
-
"""Returns the string representation of the model"""
|
|
227
|
+
"""Returns the string representation of the model."""
|
|
217
228
|
return pprint.pformat(self.to_dict())
|
|
218
229
|
|
|
219
230
|
def __repr__(self):
|
|
@@ -221,12 +232,12 @@ class StartBlobUploadRequest(object):
|
|
|
221
232
|
return self.to_str()
|
|
222
233
|
|
|
223
234
|
def __eq__(self, other):
|
|
224
|
-
"""Returns true if both objects are equal"""
|
|
235
|
+
"""Returns true if both objects are equal."""
|
|
225
236
|
if not isinstance(other, StartBlobUploadRequest):
|
|
226
237
|
return False
|
|
227
238
|
|
|
228
239
|
return self.__dict__ == other.__dict__
|
|
229
240
|
|
|
230
241
|
def __ne__(self, other):
|
|
231
|
-
"""Returns true if both objects are not equal"""
|
|
242
|
+
"""Returns true if both objects are not equal."""
|
|
232
243
|
return not self == other
|
|
@@ -46,24 +46,27 @@ class StartBlobUploadResponse(object):
|
|
|
46
46
|
|
|
47
47
|
@property
|
|
48
48
|
def token(self):
|
|
49
|
-
"""Gets the token of this StartBlobUploadResponse. # noqa: E501
|
|
49
|
+
"""Gets the token of this StartBlobUploadResponse. # noqa: E501.
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
Opaque string token used to reference the new blob/file. # noqa:
|
|
52
|
+
E501
|
|
52
53
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
:return: The token of this StartBlobUploadResponse. # noqa: E501
|
|
55
|
+
:rtype: str
|
|
56
|
+
"""
|
|
56
57
|
return self._token
|
|
57
58
|
|
|
58
59
|
@token.setter
|
|
59
60
|
def token(self, token):
|
|
60
61
|
"""Sets the token of this StartBlobUploadResponse.
|
|
61
62
|
|
|
62
|
-
|
|
63
|
+
Opaque string token used to reference the new blob/file. # noqa:
|
|
64
|
+
E501
|
|
63
65
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
:param token: The token of this StartBlobUploadResponse. # noqa:
|
|
67
|
+
E501
|
|
68
|
+
:type: str
|
|
69
|
+
"""
|
|
67
70
|
if token is None:
|
|
68
71
|
raise ValueError(
|
|
69
72
|
"Invalid value for `token`, must not be `None`") # noqa: E501
|
|
@@ -72,24 +75,26 @@ class StartBlobUploadResponse(object):
|
|
|
72
75
|
|
|
73
76
|
@property
|
|
74
77
|
def create_url(self):
|
|
75
|
-
"""Gets the create_url of this StartBlobUploadResponse. # noqa: E501
|
|
78
|
+
"""Gets the create_url of this StartBlobUploadResponse. # noqa: E501.
|
|
76
79
|
|
|
77
|
-
|
|
80
|
+
URL to use to start the upload. # noqa: E501
|
|
78
81
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
+
:return: The create_url of this StartBlobUploadResponse. # noqa:
|
|
83
|
+
E501
|
|
84
|
+
:rtype: str
|
|
85
|
+
"""
|
|
82
86
|
return self._create_url
|
|
83
87
|
|
|
84
88
|
@create_url.setter
|
|
85
89
|
def create_url(self, create_url):
|
|
86
90
|
"""Sets the create_url of this StartBlobUploadResponse.
|
|
87
91
|
|
|
88
|
-
|
|
92
|
+
URL to use to start the upload. # noqa: E501
|
|
89
93
|
|
|
90
|
-
|
|
91
|
-
:
|
|
92
|
-
|
|
94
|
+
:param create_url: The create_url of this StartBlobUploadResponse. #
|
|
95
|
+
noqa: E501
|
|
96
|
+
:type: str
|
|
97
|
+
"""
|
|
93
98
|
if create_url is None:
|
|
94
99
|
raise ValueError(
|
|
95
100
|
"Invalid value for `create_url`, must not be `None`") # noqa: E501
|
|
@@ -97,7 +102,7 @@ class StartBlobUploadResponse(object):
|
|
|
97
102
|
self._create_url = create_url
|
|
98
103
|
|
|
99
104
|
def to_dict(self):
|
|
100
|
-
"""Returns the model properties as a dict"""
|
|
105
|
+
"""Returns the model properties as a dict."""
|
|
101
106
|
result = {}
|
|
102
107
|
|
|
103
108
|
for attr, _ in six.iteritems(self.project_types):
|
|
@@ -118,7 +123,7 @@ class StartBlobUploadResponse(object):
|
|
|
118
123
|
return result
|
|
119
124
|
|
|
120
125
|
def to_str(self):
|
|
121
|
-
"""Returns the string representation of the model"""
|
|
126
|
+
"""Returns the string representation of the model."""
|
|
122
127
|
return pprint.pformat(self.to_dict())
|
|
123
128
|
|
|
124
129
|
def __repr__(self):
|
|
@@ -126,12 +131,12 @@ class StartBlobUploadResponse(object):
|
|
|
126
131
|
return self.to_str()
|
|
127
132
|
|
|
128
133
|
def __eq__(self, other):
|
|
129
|
-
"""Returns true if both objects are equal"""
|
|
134
|
+
"""Returns true if both objects are equal."""
|
|
130
135
|
if not isinstance(other, StartBlobUploadResponse):
|
|
131
136
|
return False
|
|
132
137
|
|
|
133
138
|
return self.__dict__ == other.__dict__
|
|
134
139
|
|
|
135
140
|
def __ne__(self, other):
|
|
136
|
-
"""Returns true if both objects are not equal"""
|
|
141
|
+
"""Returns true if both objects are not equal."""
|
|
137
142
|
return not self == other
|