Skip to content

Commit bae8338

Browse files
authored
1.6.0a3 (#487)
1 parent 94423e3 commit bae8338

12 files changed

+1163
-375
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
====
33

4+
#### 1.6.0a3
5+
Release date: 7/06/23
6+
* Confirmation for deleting a model, instance or version
7+
* Merge changes from 1.5.14 and 1.5.15
8+
49
#### 1.5.15
510
Release date: 6/30/23
611
* Add missing licenses for datasets

KaggleSwagger.yaml

Lines changed: 91 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ paths:
148148
name: lastModifiedDateUtc
149149
required: true
150150
type: integer
151-
description: Last modified date of file in milliseconds since epoch in UTC
151+
description: Last modified date of file in seconds since epoch in UTC
152152
responses:
153153
200:
154154
description: Result
@@ -188,7 +188,7 @@ paths:
188188
name: lastModifiedDateUtc
189189
required: true
190190
type: integer
191-
description: Last modified date of file in milliseconds since epoch in UTC
191+
description: Last modified date of file in seconds since epoch in UTC
192192
responses:
193193
200:
194194
description: Result
@@ -553,41 +553,6 @@ paths:
553553
description: Error
554554
schema:
555555
$ref: '#/definitions/Error'
556-
/datasets/upload/file/{contentLength}/{lastModifiedDateUtc}:
557-
post:
558-
tags:
559-
- kaggle
560-
summary: Get URL and token to start uploading a data file
561-
operationId: DatasetsUploadFile
562-
produces:
563-
- application/json
564-
consumes:
565-
- multipart/form-data
566-
parameters:
567-
- in: formData
568-
name: fileName
569-
required: true
570-
type: string
571-
description: Dataset file name
572-
- in: path
573-
name: contentLength
574-
required: true
575-
type: integer
576-
description: Content length of file in bytes
577-
- in: path
578-
name: lastModifiedDateUtc
579-
required: true
580-
type: integer
581-
description: Last modified date of file in milliseconds since epoch in UTC
582-
responses:
583-
200:
584-
description: Result
585-
schema:
586-
$ref: '#/definitions/Result'
587-
default:
588-
description: Error
589-
schema:
590-
$ref: '#/definitions/Error'
591556
/datasets/create/version/{id}:
592557
post:
593558
tags:
@@ -1392,32 +1357,47 @@ paths:
13921357
description: Error
13931358
schema:
13941359
$ref: '#/definitions/Error'
1395-
/models/upload/file/{contentLength}/{lastModifiedDateUtc}:
1360+
/blobs/upload:
13961361
post:
13971362
tags:
1398-
- kaggle
1399-
summary: Get URL and token to start uploading a model file
1400-
operationId: ModelsUploadFile
1363+
- kaggle
1364+
summary: Start uploading a file
1365+
operationId: UploadFile
14011366
produces:
14021367
- application/json
14031368
consumes:
1404-
- multipart/form-data
1369+
- application/json
14051370
parameters:
1406-
- in: formData
1407-
name: fileName
1408-
required: true
1409-
type: string
1410-
description: Model file name
1411-
- in: path
1412-
name: contentLength
1371+
- in: body
1372+
name: startBlobUploadRequest
14131373
required: true
1414-
type: integer
1415-
description: Content length of file in bytes
1416-
- in: path
1417-
name: lastModifiedDateUtc
1374+
schema:
1375+
$ref: '#/definitions/StartBlobUploadRequest'
1376+
responses:
1377+
200:
1378+
description: StartBlobUploadResponse
1379+
schema:
1380+
$ref: '#/definitions/StartBlobUploadResponse'
1381+
default:
1382+
description: Error
1383+
schema:
1384+
$ref: '#/definitions/Error'
1385+
/inbox/files/create:
1386+
post:
1387+
tags:
1388+
- kaggle
1389+
summary: Creates (aka "drops") a new file into the inbox.
1390+
operationId: CreateInboxFile
1391+
produces:
1392+
- application/json
1393+
consumes:
1394+
- application/json
1395+
parameters:
1396+
- in: body
1397+
name: createInboxFileRequest
14181398
required: true
1419-
type: integer
1420-
description: Last modified date of file in milliseconds since epoch in UTC
1399+
schema:
1400+
$ref: '#/definitions/CreateInboxFileRequest'
14211401
responses:
14221402
200:
14231403
description: Result
@@ -1948,3 +1928,59 @@ definitions:
19481928
description: A list of files that should be associated with the model instance version
19491929
items:
19501930
$ref: '#/definitions/UploadFile'
1931+
StartBlobUploadRequest:
1932+
type: object
1933+
required:
1934+
- bucket
1935+
- name
1936+
- contentLength
1937+
- lastUpdateTime
1938+
properties:
1939+
type:
1940+
type: object
1941+
description: The type of the blob (one of "dataset", "model", "inbox")
1942+
schema:
1943+
$ref: '#definitions/ApiBlobType'
1944+
name:
1945+
type: string
1946+
description: Name of the file
1947+
contentLength:
1948+
type: integer
1949+
description: Content length of the file in bytes
1950+
contentType:
1951+
type: string
1952+
description: Content/MIME type (e.g. "text/plain") of the file
1953+
lastModifiedEpochSeconds:
1954+
type: integer
1955+
description: Last modified date of file in seconds since epoch in UTC
1956+
ApiBlobType:
1957+
type: string
1958+
description: To which entity this blob refers
1959+
enum:
1960+
- dataset
1961+
- model
1962+
- inbox
1963+
StartBlobUploadResponse:
1964+
type: object
1965+
required:
1966+
- token
1967+
- createUrl
1968+
properties:
1969+
token:
1970+
type: string
1971+
description: Opaque string token used to reference the new blob/file.
1972+
createUrl:
1973+
type: string
1974+
description: URL to use to start the upload.
1975+
CreateInboxFileRequest:
1976+
type: object
1977+
required:
1978+
- virtualDirectory
1979+
- blobFileToken
1980+
properties:
1981+
virtualDirectory:
1982+
type: string
1983+
description: Directory name used for tagging the uploaded file
1984+
blobFileToken:
1985+
type: string
1986+
description: Token representing the uploaded file

0 commit comments

Comments
 (0)