kaggle 1.7.4.5__py3-none-any.whl → 1.8.2__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 (110) hide show
  1. kaggle/__init__.py +10 -6
  2. kaggle/api/kaggle_api.py +574 -598
  3. kaggle/api/kaggle_api_extended.py +5251 -4769
  4. kaggle/cli.py +1335 -1585
  5. kaggle/models/api_blob_type.py +3 -3
  6. kaggle/models/dataset_column.py +165 -174
  7. kaggle/models/dataset_new_request.py +83 -41
  8. kaggle/models/dataset_new_version_request.py +32 -25
  9. kaggle/models/dataset_update_settings_request.py +35 -27
  10. kaggle/models/kaggle_models_extended.py +169 -172
  11. kaggle/models/kernel_push_request.py +66 -49
  12. kaggle/models/model_instance_new_version_request.py +10 -18
  13. kaggle/models/model_instance_update_request.py +103 -34
  14. kaggle/models/model_new_instance_request.py +138 -41
  15. kaggle/models/model_new_request.py +35 -27
  16. kaggle/models/model_update_request.py +32 -25
  17. kaggle/models/start_blob_upload_request.py +192 -195
  18. kaggle/models/start_blob_upload_response.py +98 -98
  19. kaggle/models/upload_file.py +114 -120
  20. kaggle/test/test_authenticate.py +23 -23
  21. {kaggle-1.7.4.5.dist-info → kaggle-1.8.2.dist-info}/METADATA +12 -15
  22. kaggle-1.8.2.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 +554 -300
  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 +46 -23
  61. kagglesdk/kaggle_creds.py +148 -0
  62. kagglesdk/kaggle_env.py +89 -25
  63. kagglesdk/kaggle_http_client.py +224 -306
  64. kagglesdk/kaggle_oauth.py +200 -0
  65. kagglesdk/kaggle_object.py +286 -293
  66. kagglesdk/kernels/services/kernels_api_service.py +46 -9
  67. kagglesdk/kernels/types/kernels_api_service.py +635 -159
  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 +41 -17
  74. kagglesdk/models/types/model_api_service.py +987 -637
  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/services/iam_service.py +31 -0
  88. kagglesdk/security/services/oauth_service.py +27 -1
  89. kagglesdk/security/types/authentication.py +63 -63
  90. kagglesdk/security/types/iam_service.py +496 -0
  91. kagglesdk/security/types/oauth_service.py +797 -10
  92. kagglesdk/security/types/roles.py +8 -0
  93. kagglesdk/security/types/security_types.py +159 -0
  94. kagglesdk/test/__init__.py +0 -0
  95. kagglesdk/test/test_client.py +20 -22
  96. kagglesdk/users/services/account_service.py +13 -1
  97. kagglesdk/users/services/group_api_service.py +31 -0
  98. kagglesdk/users/types/account_service.py +169 -28
  99. kagglesdk/users/types/group_api_service.py +315 -0
  100. kagglesdk/users/types/group_types.py +165 -0
  101. kagglesdk/users/types/groups_enum.py +8 -0
  102. kagglesdk/users/types/progression_service.py +9 -0
  103. kagglesdk/users/types/search_users.py +23 -0
  104. kagglesdk/users/types/user_avatar.py +226 -0
  105. kaggle/configuration.py +0 -206
  106. kaggle-1.7.4.5.dist-info/RECORD +0 -98
  107. {kaggle-1.7.4.5.dist-info → kaggle-1.8.2.dist-info}/WHEEL +0 -0
  108. {kaggle-1.7.4.5.dist-info → kaggle-1.8.2.dist-info}/entry_points.txt +0 -0
  109. {kaggle-1.7.4.5.dist-info → kaggle-1.8.2.dist-info}/licenses/LICENSE.txt +0 -0
  110. {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
- 'owner_slug': 'str',
35
- 'slug': 'str',
36
- 'title': 'str',
37
- 'subtitle': 'str',
38
- 'is_private': 'bool',
39
- 'description': 'str',
40
- 'publish_time': 'date',
41
- 'provenance_sources': 'str'
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
- 'owner_slug': 'ownerSlug',
46
- 'slug': 'slug',
47
- 'title': 'title',
48
- 'subtitle': 'subtitle',
49
- 'is_private': 'isPrivate',
50
- 'description': 'description',
51
- 'publish_time': 'publishTime',
52
- 'provenance_sources': 'provenanceSources'
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__(self, owner_slug=None, slug=None, title=None, subtitle=None, is_private=True, description='', publish_time=None, provenance_sources=''): # noqa: E501
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(map(
294
- lambda item: (item[0], item[1].to_dict())
295
- if hasattr(item[1], "to_dict") else item,
296
- value.items()
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
- 'title': 'str',
35
- 'subtitle': 'str',
36
- 'is_private': 'bool',
37
- 'description': 'str',
38
- 'publish_time': 'date',
39
- 'provenance_sources': 'str',
40
- 'update_mask': 'str'
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
- 'title': 'title',
45
- 'subtitle': 'subtitle',
46
- 'is_private': 'isPrivate',
47
- 'description': 'description',
48
- 'publish_time': 'publishTime',
49
- 'provenance_sources': 'provenanceSources',
50
- 'update_mask': 'updateMask'
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__(self, title=None, subtitle=None, is_private=True, description='', publish_time=None, provenance_sources='', update_mask=None): # noqa: E501
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(map(
266
- lambda item: (item[0], item[1].to_dict())
267
- if hasattr(item[1], "to_dict") else item,
268
- value.items()
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
- @type.setter
86
- def type(self, type):
87
- """Sets the type of this StartBlobUploadRequest.
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
- The type of the blob (one of \"dataset\", \"model\", \"inbox\") #
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
- self._type = type
148
+ @property
149
+ def content_type(self):
150
+ """Gets the content_type of this StartBlobUploadRequest. # noqa: E501.
97
151
 
98
- @property
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
- @name.setter
110
- def name(self, name):
111
- """Sets the name of this StartBlobUploadRequest.
154
+ :return: The content_type of this StartBlobUploadRequest. # noqa:
155
+ E501
156
+ :rtype: str
157
+ """
158
+ return self._content_type
112
159
 
113
- Name of the file # noqa: E501
160
+ @content_type.setter
161
+ def content_type(self, content_type):
162
+ """Sets the content_type of this StartBlobUploadRequest.
114
163
 
115
- :param name: The name of this StartBlobUploadRequest. # noqa: E501
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
- self._name = name
166
+ :param content_type: The content_type of this
167
+ StartBlobUploadRequest. # noqa: E501
168
+ :type: str
169
+ """
123
170
 
124
- @property
125
- def content_length(self):
126
- """Gets the content_length of this StartBlobUploadRequest. # noqa: E501.
171
+ self._content_type = content_type
127
172
 
128
- Content length of the file in bytes # noqa: E501
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
- :return: The content_length of this StartBlobUploadRequest. # noqa:
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
- @property
153
- def content_type(self):
154
- """Gets the content_type of this StartBlobUploadRequest. # noqa: E501.
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
- Content/MIME type (e.g. \"text/plain\") of the file # noqa: E501
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
- :return: The content_type of this StartBlobUploadRequest. # noqa:
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
- self._last_modified_epoch_seconds = last_modified_epoch_seconds
204
-
205
- def to_dict(self):
206
- """Returns the model properties as a dict."""
207
- result = {}
208
-
209
- for attr, _ in six.iteritems(self.project_types):
210
- value = getattr(self, attr)
211
- if isinstance(value, list):
212
- result[attr] = list(
213
- map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
214
- elif hasattr(value, "to_dict"):
215
- result[attr] = value.to_dict()
216
- elif isinstance(value, dict):
217
- result[attr] = dict(
218
- map(
219
- lambda item: (item[0], item[1].to_dict())
220
- if hasattr(item[1], "to_dict") else item, value.items()))
221
- else:
222
- result[attr] = value
223
-
224
- return result
225
-
226
- def to_str(self):
227
- """Returns the string representation of the model."""
228
- return pprint.pformat(self.to_dict())
229
-
230
- def __repr__(self):
231
- """For `print` and `pprint`"""
232
- return self.to_str()
233
-
234
- def __eq__(self, other):
235
- """Returns true if both objects are equal."""
236
- if not isinstance(other, StartBlobUploadRequest):
237
- return False
238
-
239
- return self.__dict__ == other.__dict__
240
-
241
- def __ne__(self, other):
242
- """Returns true if both objects are not equal."""
243
- return not self == other
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