kaggle 1.7.4.5__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.
- kaggle/__init__.py +10 -6
- kaggle/api/kaggle_api.py +574 -598
- kaggle/api/kaggle_api_extended.py +5251 -4769
- kaggle/cli.py +1335 -1585
- kaggle/models/api_blob_type.py +3 -3
- kaggle/models/dataset_column.py +165 -174
- kaggle/models/dataset_new_request.py +83 -41
- kaggle/models/dataset_new_version_request.py +32 -25
- kaggle/models/dataset_update_settings_request.py +35 -27
- kaggle/models/kaggle_models_extended.py +169 -172
- kaggle/models/kernel_push_request.py +66 -49
- kaggle/models/model_instance_new_version_request.py +10 -18
- kaggle/models/model_instance_update_request.py +103 -34
- kaggle/models/model_new_instance_request.py +138 -41
- kaggle/models/model_new_request.py +35 -27
- kaggle/models/model_update_request.py +32 -25
- kaggle/models/start_blob_upload_request.py +192 -195
- kaggle/models/start_blob_upload_response.py +98 -98
- kaggle/models/upload_file.py +114 -120
- kaggle/test/test_authenticate.py +23 -23
- {kaggle-1.7.4.5.dist-info → kaggle-1.8.0.dist-info}/METADATA +11 -15
- kaggle-1.8.0.dist-info/RECORD +148 -0
- kagglesdk/__init__.py +5 -1
- kagglesdk/benchmarks/services/__init__.py +0 -0
- kagglesdk/benchmarks/services/benchmarks_api_service.py +19 -0
- kagglesdk/benchmarks/types/__init__.py +0 -0
- kagglesdk/benchmarks/types/benchmark_types.py +307 -0
- kagglesdk/benchmarks/types/benchmarks_api_service.py +243 -0
- kagglesdk/blobs/services/blob_api_service.py +1 -1
- kagglesdk/blobs/types/blob_api_service.py +2 -2
- kagglesdk/common/services/__init__.py +0 -0
- kagglesdk/common/services/operations_service.py +46 -0
- kagglesdk/common/types/file_download.py +1 -1
- kagglesdk/common/types/http_redirect.py +1 -1
- kagglesdk/common/types/operations.py +194 -0
- kagglesdk/common/types/operations_service.py +48 -0
- kagglesdk/community/__init__.py +0 -0
- kagglesdk/community/types/__init__.py +0 -0
- kagglesdk/community/types/content_enums.py +44 -0
- kagglesdk/community/types/organization.py +410 -0
- kagglesdk/competitions/services/competition_api_service.py +49 -12
- kagglesdk/competitions/types/competition.py +14 -0
- kagglesdk/competitions/types/competition_api_service.py +1639 -1275
- kagglesdk/competitions/types/search_competitions.py +28 -0
- kagglesdk/datasets/databundles/__init__.py +0 -0
- kagglesdk/datasets/databundles/types/__init__.py +0 -0
- kagglesdk/datasets/databundles/types/databundle_api_types.py +540 -0
- kagglesdk/datasets/services/dataset_api_service.py +39 -14
- kagglesdk/datasets/types/dataset_api_service.py +554 -300
- kagglesdk/datasets/types/dataset_enums.py +21 -0
- kagglesdk/datasets/types/dataset_service.py +145 -0
- kagglesdk/datasets/types/dataset_types.py +74 -74
- kagglesdk/datasets/types/search_datasets.py +6 -0
- kagglesdk/discussions/__init__.py +0 -0
- kagglesdk/discussions/types/__init__.py +0 -0
- kagglesdk/discussions/types/search_discussions.py +43 -0
- kagglesdk/discussions/types/writeup_enums.py +11 -0
- kagglesdk/education/services/education_api_service.py +1 -1
- kagglesdk/education/types/education_api_service.py +1 -1
- kagglesdk/kaggle_client.py +46 -23
- kagglesdk/kaggle_creds.py +148 -0
- kagglesdk/kaggle_env.py +89 -25
- kagglesdk/kaggle_http_client.py +216 -306
- kagglesdk/kaggle_oauth.py +200 -0
- kagglesdk/kaggle_object.py +286 -293
- kagglesdk/kernels/services/kernels_api_service.py +46 -9
- kagglesdk/kernels/types/kernels_api_service.py +635 -159
- kagglesdk/kernels/types/kernels_enums.py +6 -0
- kagglesdk/kernels/types/search_kernels.py +6 -0
- kagglesdk/licenses/__init__.py +0 -0
- kagglesdk/licenses/types/__init__.py +0 -0
- kagglesdk/licenses/types/licenses_types.py +182 -0
- kagglesdk/models/services/model_api_service.py +41 -17
- kagglesdk/models/types/model_api_service.py +987 -637
- kagglesdk/models/types/model_enums.py +8 -0
- kagglesdk/models/types/model_service.py +71 -71
- kagglesdk/models/types/model_types.py +1057 -5
- kagglesdk/models/types/search_models.py +8 -0
- kagglesdk/search/__init__.py +0 -0
- kagglesdk/search/services/__init__.py +0 -0
- kagglesdk/search/services/search_api_service.py +19 -0
- kagglesdk/search/types/__init__.py +0 -0
- kagglesdk/search/types/search_api_service.py +2435 -0
- kagglesdk/search/types/search_content_shared.py +50 -0
- kagglesdk/search/types/search_enums.py +45 -0
- kagglesdk/search/types/search_service.py +303 -0
- kagglesdk/security/services/iam_service.py +31 -0
- kagglesdk/security/services/oauth_service.py +27 -1
- kagglesdk/security/types/authentication.py +63 -63
- kagglesdk/security/types/iam_service.py +496 -0
- kagglesdk/security/types/oauth_service.py +797 -10
- kagglesdk/security/types/roles.py +8 -0
- kagglesdk/security/types/security_types.py +159 -0
- kagglesdk/test/__init__.py +0 -0
- kagglesdk/test/test_client.py +20 -22
- kagglesdk/users/services/account_service.py +13 -1
- kagglesdk/users/services/group_api_service.py +31 -0
- kagglesdk/users/types/account_service.py +169 -28
- kagglesdk/users/types/group_api_service.py +315 -0
- kagglesdk/users/types/group_types.py +165 -0
- kagglesdk/users/types/groups_enum.py +8 -0
- kagglesdk/users/types/progression_service.py +9 -0
- kagglesdk/users/types/search_users.py +23 -0
- kagglesdk/users/types/user_avatar.py +226 -0
- kaggle/configuration.py +0 -206
- kaggle-1.7.4.5.dist-info/RECORD +0 -98
- {kaggle-1.7.4.5.dist-info → kaggle-1.8.0.dist-info}/WHEEL +0 -0
- {kaggle-1.7.4.5.dist-info → kaggle-1.8.0.dist-info}/entry_points.txt +0 -0
- {kaggle-1.7.4.5.dist-info → kaggle-1.8.0.dist-info}/licenses/LICENSE.txt +0 -0
- {kaggle/test → kagglesdk/benchmarks}/__init__.py +0 -0
|
@@ -30,29 +30,40 @@ class ModelNewRequest(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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
"owner_slug": "str",
|
|
36
|
+
"slug": "str",
|
|
37
|
+
"title": "str",
|
|
38
|
+
"subtitle": "str",
|
|
39
|
+
"is_private": "bool",
|
|
40
|
+
"description": "str",
|
|
41
|
+
"publish_time": "date",
|
|
42
|
+
"provenance_sources": "str",
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
attribute_map = {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
"owner_slug": "ownerSlug",
|
|
47
|
+
"slug": "slug",
|
|
48
|
+
"title": "title",
|
|
49
|
+
"subtitle": "subtitle",
|
|
50
|
+
"is_private": "isPrivate",
|
|
51
|
+
"description": "description",
|
|
52
|
+
"publish_time": "publishTime",
|
|
53
|
+
"provenance_sources": "provenanceSources",
|
|
53
54
|
}
|
|
54
55
|
|
|
55
|
-
def __init__(
|
|
56
|
+
def __init__(
|
|
57
|
+
self,
|
|
58
|
+
owner_slug=None,
|
|
59
|
+
slug=None,
|
|
60
|
+
title=None,
|
|
61
|
+
subtitle=None,
|
|
62
|
+
is_private=True,
|
|
63
|
+
description="",
|
|
64
|
+
publish_time=None,
|
|
65
|
+
provenance_sources="",
|
|
66
|
+
): # noqa: E501
|
|
56
67
|
|
|
57
68
|
self._owner_slug = None
|
|
58
69
|
self._slug = None
|
|
@@ -283,18 +294,16 @@ class ModelNewRequest(object):
|
|
|
283
294
|
for attr, _ in six.iteritems(self.project_types):
|
|
284
295
|
value = getattr(self, attr)
|
|
285
296
|
if isinstance(value, list):
|
|
286
|
-
result[attr] = list(map(
|
|
287
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
288
|
-
value
|
|
289
|
-
))
|
|
297
|
+
result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
|
|
290
298
|
elif hasattr(value, "to_dict"):
|
|
291
299
|
result[attr] = value.to_dict()
|
|
292
300
|
elif isinstance(value, dict):
|
|
293
|
-
result[attr] = dict(
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
301
|
+
result[attr] = dict(
|
|
302
|
+
map(
|
|
303
|
+
lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item,
|
|
304
|
+
value.items(),
|
|
305
|
+
)
|
|
306
|
+
)
|
|
298
307
|
else:
|
|
299
308
|
result[attr] = value
|
|
300
309
|
|
|
@@ -318,4 +327,3 @@ class ModelNewRequest(object):
|
|
|
318
327
|
def __ne__(self, other):
|
|
319
328
|
"""Returns true if both objects are not equal."""
|
|
320
329
|
return not self == other
|
|
321
|
-
|
|
@@ -30,27 +30,37 @@ class ModelUpdateRequest(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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
"title": "str",
|
|
36
|
+
"subtitle": "str",
|
|
37
|
+
"is_private": "bool",
|
|
38
|
+
"description": "str",
|
|
39
|
+
"publish_time": "date",
|
|
40
|
+
"provenance_sources": "str",
|
|
41
|
+
"update_mask": "str",
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
attribute_map = {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
"title": "title",
|
|
46
|
+
"subtitle": "subtitle",
|
|
47
|
+
"is_private": "isPrivate",
|
|
48
|
+
"description": "description",
|
|
49
|
+
"publish_time": "publishTime",
|
|
50
|
+
"provenance_sources": "provenanceSources",
|
|
51
|
+
"update_mask": "updateMask",
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
def __init__(
|
|
54
|
+
def __init__(
|
|
55
|
+
self,
|
|
56
|
+
title=None,
|
|
57
|
+
subtitle=None,
|
|
58
|
+
is_private=True,
|
|
59
|
+
description="",
|
|
60
|
+
publish_time=None,
|
|
61
|
+
provenance_sources="",
|
|
62
|
+
update_mask=None,
|
|
63
|
+
): # noqa: E501
|
|
54
64
|
|
|
55
65
|
self._title = None
|
|
56
66
|
self._subtitle = None
|
|
@@ -255,18 +265,16 @@ class ModelUpdateRequest(object):
|
|
|
255
265
|
for attr, _ in six.iteritems(self.project_types):
|
|
256
266
|
value = getattr(self, attr)
|
|
257
267
|
if isinstance(value, list):
|
|
258
|
-
result[attr] = list(map(
|
|
259
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
260
|
-
value
|
|
261
|
-
))
|
|
268
|
+
result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
|
|
262
269
|
elif hasattr(value, "to_dict"):
|
|
263
270
|
result[attr] = value.to_dict()
|
|
264
271
|
elif isinstance(value, dict):
|
|
265
|
-
result[attr] = dict(
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
272
|
+
result[attr] = dict(
|
|
273
|
+
map(
|
|
274
|
+
lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item,
|
|
275
|
+
value.items(),
|
|
276
|
+
)
|
|
277
|
+
)
|
|
270
278
|
else:
|
|
271
279
|
result[attr] = value
|
|
272
280
|
|
|
@@ -290,4 +298,3 @@ class ModelUpdateRequest(object):
|
|
|
290
298
|
def __ne__(self, other):
|
|
291
299
|
"""Returns true if both objects are not equal."""
|
|
292
300
|
return not self == other
|
|
293
|
-
|
|
@@ -23,221 +23,218 @@ import six
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
class StartBlobUploadRequest(object):
|
|
26
|
-
|
|
26
|
+
"""
|
|
27
27
|
Attributes:
|
|
28
28
|
project_types (dict): The key is attribute name
|
|
29
29
|
and the value is attribute type.
|
|
30
30
|
attribute_map (dict): The key is attribute name
|
|
31
31
|
and the value is json key in definition.
|
|
32
32
|
"""
|
|
33
|
-
project_types = {
|
|
34
|
-
'type': 'object',
|
|
35
|
-
'name': 'str',
|
|
36
|
-
'content_length': 'int',
|
|
37
|
-
'content_type': 'str',
|
|
38
|
-
'last_modified_epoch_seconds': 'int'
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
attribute_map = {
|
|
42
|
-
'type': 'type',
|
|
43
|
-
'name': 'name',
|
|
44
|
-
'content_length': 'contentLength',
|
|
45
|
-
'content_type': 'contentType',
|
|
46
|
-
'last_modified_epoch_seconds': 'lastModifiedEpochSeconds'
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
def __init__(self,
|
|
50
|
-
type=None,
|
|
51
|
-
name=None,
|
|
52
|
-
content_length=None,
|
|
53
|
-
content_type=None,
|
|
54
|
-
last_modified_epoch_seconds=None): # noqa: E501
|
|
55
|
-
"""StartBlobUploadRequest - a model defined in Swagger""" # noqa: E501
|
|
56
|
-
|
|
57
|
-
self._type = None
|
|
58
|
-
self._name = None
|
|
59
|
-
self._content_length = None
|
|
60
|
-
self._content_type = None
|
|
61
|
-
self._last_modified_epoch_seconds = None
|
|
62
|
-
self.discriminator = None
|
|
63
|
-
|
|
64
|
-
if type is not None:
|
|
65
|
-
self.type = type
|
|
66
|
-
self.name = name
|
|
67
|
-
self.content_length = content_length
|
|
68
|
-
if content_type is not None:
|
|
69
|
-
self.content_type = content_type
|
|
70
|
-
if last_modified_epoch_seconds is not None:
|
|
71
|
-
self.last_modified_epoch_seconds = last_modified_epoch_seconds
|
|
72
|
-
|
|
73
|
-
@property
|
|
74
|
-
def type(self):
|
|
75
|
-
"""Gets the type of this StartBlobUploadRequest. # noqa: E501.
|
|
76
|
-
|
|
77
|
-
The type of the blob (one of \"dataset\", \"model\", \"inbox\") #
|
|
78
|
-
noqa: E501
|
|
79
|
-
|
|
80
|
-
:return: The type of this StartBlobUploadRequest. # noqa: E501
|
|
81
|
-
:rtype: object
|
|
82
|
-
"""
|
|
83
|
-
return self._type
|
|
84
33
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
34
|
+
project_types = {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"name": "str",
|
|
37
|
+
"content_length": "int",
|
|
38
|
+
"content_type": "str",
|
|
39
|
+
"last_modified_epoch_seconds": "int",
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
"type": "type",
|
|
44
|
+
"name": "name",
|
|
45
|
+
"content_length": "contentLength",
|
|
46
|
+
"content_type": "contentType",
|
|
47
|
+
"last_modified_epoch_seconds": "lastModifiedEpochSeconds",
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
def __init__(
|
|
51
|
+
self, type=None, name=None, content_length=None, content_type=None, last_modified_epoch_seconds=None
|
|
52
|
+
): # noqa: E501
|
|
53
|
+
"""StartBlobUploadRequest - a model defined in Swagger""" # noqa: E501
|
|
54
|
+
|
|
55
|
+
self._type = None
|
|
56
|
+
self._name = None
|
|
57
|
+
self._content_length = None
|
|
58
|
+
self._content_type = None
|
|
59
|
+
self._last_modified_epoch_seconds = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
|
|
62
|
+
if type is not None:
|
|
63
|
+
self.type = type
|
|
64
|
+
self.name = name
|
|
65
|
+
self.content_length = content_length
|
|
66
|
+
if content_type is not None:
|
|
67
|
+
self.content_type = content_type
|
|
68
|
+
if last_modified_epoch_seconds is not None:
|
|
69
|
+
self.last_modified_epoch_seconds = last_modified_epoch_seconds
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def type(self):
|
|
73
|
+
"""Gets the type of this StartBlobUploadRequest. # noqa: E501.
|
|
74
|
+
|
|
75
|
+
The type of the blob (one of \"dataset\", \"model\", \"inbox\") #
|
|
76
|
+
noqa: E501
|
|
77
|
+
|
|
78
|
+
:return: The type of this StartBlobUploadRequest. # noqa: E501
|
|
79
|
+
:rtype: object
|
|
80
|
+
"""
|
|
81
|
+
return self._type
|
|
82
|
+
|
|
83
|
+
@type.setter
|
|
84
|
+
def type(self, type):
|
|
85
|
+
"""Sets the type of this StartBlobUploadRequest.
|
|
86
|
+
|
|
87
|
+
The type of the blob (one of \"dataset\", \"model\", \"inbox\") #
|
|
88
|
+
noqa: E501
|
|
89
|
+
|
|
90
|
+
:param type: The type of this StartBlobUploadRequest. # noqa: E501
|
|
91
|
+
:type: object
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
self._type = type
|
|
95
|
+
|
|
96
|
+
@property
|
|
97
|
+
def name(self):
|
|
98
|
+
"""Gets the name of this StartBlobUploadRequest. # noqa: E501.
|
|
99
|
+
|
|
100
|
+
Name of the file # noqa: E501
|
|
101
|
+
|
|
102
|
+
:return: The name of this StartBlobUploadRequest. # noqa: E501
|
|
103
|
+
:rtype: str
|
|
104
|
+
"""
|
|
105
|
+
return self._name
|
|
106
|
+
|
|
107
|
+
@name.setter
|
|
108
|
+
def name(self, name):
|
|
109
|
+
"""Sets the name of this StartBlobUploadRequest.
|
|
110
|
+
|
|
111
|
+
Name of the file # noqa: E501
|
|
112
|
+
|
|
113
|
+
:param name: The name of this StartBlobUploadRequest. # noqa: E501
|
|
114
|
+
:type: str
|
|
115
|
+
"""
|
|
116
|
+
if name is None:
|
|
117
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
118
|
+
|
|
119
|
+
self._name = name
|
|
120
|
+
|
|
121
|
+
@property
|
|
122
|
+
def content_length(self):
|
|
123
|
+
"""Gets the content_length of this StartBlobUploadRequest. # noqa: E501.
|
|
124
|
+
|
|
125
|
+
Content length of the file in bytes # noqa: E501
|
|
126
|
+
|
|
127
|
+
:return: The content_length of this StartBlobUploadRequest. # noqa:
|
|
128
|
+
E501
|
|
129
|
+
:rtype: int
|
|
130
|
+
"""
|
|
131
|
+
return self._content_length
|
|
132
|
+
|
|
133
|
+
@content_length.setter
|
|
134
|
+
def content_length(self, content_length):
|
|
135
|
+
"""Sets the content_length of this StartBlobUploadRequest.
|
|
136
|
+
|
|
137
|
+
Content length of the file in bytes # noqa: E501
|
|
138
|
+
|
|
139
|
+
:param content_length: The content_length of this
|
|
140
|
+
StartBlobUploadRequest. # noqa: E501
|
|
141
|
+
:type: int
|
|
142
|
+
"""
|
|
143
|
+
if content_length is None:
|
|
144
|
+
raise ValueError("Invalid value for `content_length`, must not be `None`") # noqa: E501
|
|
88
145
|
|
|
89
|
-
|
|
90
|
-
noqa: E501
|
|
91
|
-
|
|
92
|
-
:param type: The type of this StartBlobUploadRequest. # noqa: E501
|
|
93
|
-
:type: object
|
|
94
|
-
"""
|
|
146
|
+
self._content_length = content_length
|
|
95
147
|
|
|
96
|
-
|
|
148
|
+
@property
|
|
149
|
+
def content_type(self):
|
|
150
|
+
"""Gets the content_type of this StartBlobUploadRequest. # noqa: E501.
|
|
97
151
|
|
|
98
|
-
|
|
99
|
-
def name(self):
|
|
100
|
-
"""Gets the name of this StartBlobUploadRequest. # noqa: E501.
|
|
101
|
-
|
|
102
|
-
Name of the file # noqa: E501
|
|
103
|
-
|
|
104
|
-
:return: The name of this StartBlobUploadRequest. # noqa: E501
|
|
105
|
-
:rtype: str
|
|
106
|
-
"""
|
|
107
|
-
return self._name
|
|
152
|
+
Content/MIME type (e.g. \"text/plain\") of the file # noqa: E501
|
|
108
153
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
154
|
+
:return: The content_type of this StartBlobUploadRequest. # noqa:
|
|
155
|
+
E501
|
|
156
|
+
:rtype: str
|
|
157
|
+
"""
|
|
158
|
+
return self._content_type
|
|
112
159
|
|
|
113
|
-
|
|
160
|
+
@content_type.setter
|
|
161
|
+
def content_type(self, content_type):
|
|
162
|
+
"""Sets the content_type of this StartBlobUploadRequest.
|
|
114
163
|
|
|
115
|
-
|
|
116
|
-
:type: str
|
|
117
|
-
"""
|
|
118
|
-
if name is None:
|
|
119
|
-
raise ValueError(
|
|
120
|
-
"Invalid value for `name`, must not be `None`") # noqa: E501
|
|
164
|
+
Content/MIME type (e.g. \"text/plain\") of the file # noqa: E501
|
|
121
165
|
|
|
122
|
-
|
|
166
|
+
:param content_type: The content_type of this
|
|
167
|
+
StartBlobUploadRequest. # noqa: E501
|
|
168
|
+
:type: str
|
|
169
|
+
"""
|
|
123
170
|
|
|
124
|
-
|
|
125
|
-
def content_length(self):
|
|
126
|
-
"""Gets the content_length of this StartBlobUploadRequest. # noqa: E501.
|
|
171
|
+
self._content_type = content_type
|
|
127
172
|
|
|
128
|
-
|
|
173
|
+
@property
|
|
174
|
+
def last_modified_epoch_seconds(self):
|
|
175
|
+
"""Gets the last_modified_epoch_seconds of this StartBlobUploadRequest. #
|
|
176
|
+
noqa: E501.
|
|
129
177
|
|
|
130
|
-
|
|
178
|
+
Last modified date of file in seconds since epoch in UTC # noqa:
|
|
131
179
|
E501
|
|
132
|
-
:rtype: int
|
|
133
|
-
"""
|
|
134
|
-
return self._content_length
|
|
135
|
-
|
|
136
|
-
@content_length.setter
|
|
137
|
-
def content_length(self, content_length):
|
|
138
|
-
"""Sets the content_length of this StartBlobUploadRequest.
|
|
139
|
-
|
|
140
|
-
Content length of the file in bytes # noqa: E501
|
|
141
|
-
|
|
142
|
-
:param content_length: The content_length of this
|
|
143
|
-
StartBlobUploadRequest. # noqa: E501
|
|
144
|
-
:type: int
|
|
145
|
-
"""
|
|
146
|
-
if content_length is None:
|
|
147
|
-
raise ValueError("Invalid value for `content_length`, must not be `None`"
|
|
148
|
-
) # noqa: E501
|
|
149
|
-
|
|
150
|
-
self._content_length = content_length
|
|
151
180
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
181
|
+
:return: The last_modified_epoch_seconds of this
|
|
182
|
+
StartBlobUploadRequest. # noqa: E501
|
|
183
|
+
:rtype: int
|
|
184
|
+
"""
|
|
185
|
+
return self._last_modified_epoch_seconds
|
|
155
186
|
|
|
156
|
-
|
|
187
|
+
@last_modified_epoch_seconds.setter
|
|
188
|
+
def last_modified_epoch_seconds(self, last_modified_epoch_seconds):
|
|
189
|
+
"""Sets the last_modified_epoch_seconds of this StartBlobUploadRequest.
|
|
157
190
|
|
|
158
|
-
|
|
191
|
+
Last modified date of file in seconds since epoch in UTC # noqa:
|
|
159
192
|
E501
|
|
160
|
-
:rtype: str
|
|
161
|
-
"""
|
|
162
|
-
return self._content_type
|
|
163
|
-
|
|
164
|
-
@content_type.setter
|
|
165
|
-
def content_type(self, content_type):
|
|
166
|
-
"""Sets the content_type of this StartBlobUploadRequest.
|
|
167
|
-
|
|
168
|
-
Content/MIME type (e.g. \"text/plain\") of the file # noqa: E501
|
|
169
|
-
|
|
170
|
-
:param content_type: The content_type of this
|
|
171
|
-
StartBlobUploadRequest. # noqa: E501
|
|
172
|
-
:type: str
|
|
173
|
-
"""
|
|
174
|
-
|
|
175
|
-
self._content_type = content_type
|
|
176
|
-
|
|
177
|
-
@property
|
|
178
|
-
def last_modified_epoch_seconds(self):
|
|
179
|
-
"""Gets the last_modified_epoch_seconds of this StartBlobUploadRequest. #
|
|
180
|
-
noqa: E501.
|
|
181
|
-
|
|
182
|
-
Last modified date of file in seconds since epoch in UTC # noqa:
|
|
183
|
-
E501
|
|
184
|
-
|
|
185
|
-
:return: The last_modified_epoch_seconds of this
|
|
186
|
-
StartBlobUploadRequest. # noqa: E501
|
|
187
|
-
:rtype: int
|
|
188
|
-
"""
|
|
189
|
-
return self._last_modified_epoch_seconds
|
|
190
|
-
|
|
191
|
-
@last_modified_epoch_seconds.setter
|
|
192
|
-
def last_modified_epoch_seconds(self, last_modified_epoch_seconds):
|
|
193
|
-
"""Sets the last_modified_epoch_seconds of this StartBlobUploadRequest.
|
|
194
|
-
|
|
195
|
-
Last modified date of file in seconds since epoch in UTC # noqa:
|
|
196
|
-
E501
|
|
197
|
-
|
|
198
|
-
:param last_modified_epoch_seconds: The last_modified_epoch_seconds
|
|
199
|
-
of this StartBlobUploadRequest. # noqa: E501
|
|
200
|
-
:type: int
|
|
201
|
-
"""
|
|
202
193
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
result
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
194
|
+
:param last_modified_epoch_seconds: The last_modified_epoch_seconds
|
|
195
|
+
of this StartBlobUploadRequest. # noqa: E501
|
|
196
|
+
:type: int
|
|
197
|
+
"""
|
|
198
|
+
|
|
199
|
+
self._last_modified_epoch_seconds = last_modified_epoch_seconds
|
|
200
|
+
|
|
201
|
+
def to_dict(self):
|
|
202
|
+
"""Returns the model properties as a dict."""
|
|
203
|
+
result = {}
|
|
204
|
+
|
|
205
|
+
for attr, _ in six.iteritems(self.project_types):
|
|
206
|
+
value = getattr(self, attr)
|
|
207
|
+
if isinstance(value, list):
|
|
208
|
+
result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
|
|
209
|
+
elif hasattr(value, "to_dict"):
|
|
210
|
+
result[attr] = value.to_dict()
|
|
211
|
+
elif isinstance(value, dict):
|
|
212
|
+
result[attr] = dict(
|
|
213
|
+
map(
|
|
214
|
+
lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item,
|
|
215
|
+
value.items(),
|
|
216
|
+
)
|
|
217
|
+
)
|
|
218
|
+
else:
|
|
219
|
+
result[attr] = value
|
|
220
|
+
|
|
221
|
+
return result
|
|
222
|
+
|
|
223
|
+
def to_str(self):
|
|
224
|
+
"""Returns the string representation of the model."""
|
|
225
|
+
return pprint.pformat(self.to_dict())
|
|
226
|
+
|
|
227
|
+
def __repr__(self):
|
|
228
|
+
"""For `print` and `pprint`"""
|
|
229
|
+
return self.to_str()
|
|
230
|
+
|
|
231
|
+
def __eq__(self, other):
|
|
232
|
+
"""Returns true if both objects are equal."""
|
|
233
|
+
if not isinstance(other, StartBlobUploadRequest):
|
|
234
|
+
return False
|
|
235
|
+
|
|
236
|
+
return self.__dict__ == other.__dict__
|
|
237
|
+
|
|
238
|
+
def __ne__(self, other):
|
|
239
|
+
"""Returns true if both objects are not equal."""
|
|
240
|
+
return not self == other
|