Skip to content

Commit

Permalink
1.6.0a3 (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
Philmod authored Jul 6, 2023
1 parent 94423e3 commit bae8338
Show file tree
Hide file tree
Showing 12 changed files with 1,163 additions and 375 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
====

#### 1.6.0a3
Release date: 7/06/23
* Confirmation for deleting a model, instance or version
* Merge changes from 1.5.14 and 1.5.15

#### 1.5.15
Release date: 6/30/23
* Add missing licenses for datasets
Expand Down
146 changes: 91 additions & 55 deletions KaggleSwagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ paths:
name: lastModifiedDateUtc
required: true
type: integer
description: Last modified date of file in milliseconds since epoch in UTC
description: Last modified date of file in seconds since epoch in UTC
responses:
200:
description: Result
Expand Down Expand Up @@ -188,7 +188,7 @@ paths:
name: lastModifiedDateUtc
required: true
type: integer
description: Last modified date of file in milliseconds since epoch in UTC
description: Last modified date of file in seconds since epoch in UTC
responses:
200:
description: Result
Expand Down Expand Up @@ -553,41 +553,6 @@ paths:
description: Error
schema:
$ref: '#/definitions/Error'
/datasets/upload/file/{contentLength}/{lastModifiedDateUtc}:
post:
tags:
- kaggle
summary: Get URL and token to start uploading a data file
operationId: DatasetsUploadFile
produces:
- application/json
consumes:
- multipart/form-data
parameters:
- in: formData
name: fileName
required: true
type: string
description: Dataset file name
- in: path
name: contentLength
required: true
type: integer
description: Content length of file in bytes
- in: path
name: lastModifiedDateUtc
required: true
type: integer
description: Last modified date of file in milliseconds since epoch in UTC
responses:
200:
description: Result
schema:
$ref: '#/definitions/Result'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/datasets/create/version/{id}:
post:
tags:
Expand Down Expand Up @@ -1392,32 +1357,47 @@ paths:
description: Error
schema:
$ref: '#/definitions/Error'
/models/upload/file/{contentLength}/{lastModifiedDateUtc}:
/blobs/upload:
post:
tags:
- kaggle
summary: Get URL and token to start uploading a model file
operationId: ModelsUploadFile
- kaggle
summary: Start uploading a file
operationId: UploadFile
produces:
- application/json
consumes:
- multipart/form-data
- application/json
parameters:
- in: formData
name: fileName
required: true
type: string
description: Model file name
- in: path
name: contentLength
- in: body
name: startBlobUploadRequest
required: true
type: integer
description: Content length of file in bytes
- in: path
name: lastModifiedDateUtc
schema:
$ref: '#/definitions/StartBlobUploadRequest'
responses:
200:
description: StartBlobUploadResponse
schema:
$ref: '#/definitions/StartBlobUploadResponse'
default:
description: Error
schema:
$ref: '#/definitions/Error'
/inbox/files/create:
post:
tags:
- kaggle
summary: Creates (aka "drops") a new file into the inbox.
operationId: CreateInboxFile
produces:
- application/json
consumes:
- application/json
parameters:
- in: body
name: createInboxFileRequest
required: true
type: integer
description: Last modified date of file in milliseconds since epoch in UTC
schema:
$ref: '#/definitions/CreateInboxFileRequest'
responses:
200:
description: Result
Expand Down Expand Up @@ -1948,3 +1928,59 @@ definitions:
description: A list of files that should be associated with the model instance version
items:
$ref: '#/definitions/UploadFile'
StartBlobUploadRequest:
type: object
required:
- bucket
- name
- contentLength
- lastUpdateTime
properties:
type:
type: object
description: The type of the blob (one of "dataset", "model", "inbox")
schema:
$ref: '#definitions/ApiBlobType'
name:
type: string
description: Name of the file
contentLength:
type: integer
description: Content length of the file in bytes
contentType:
type: string
description: Content/MIME type (e.g. "text/plain") of the file
lastModifiedEpochSeconds:
type: integer
description: Last modified date of file in seconds since epoch in UTC
ApiBlobType:
type: string
description: To which entity this blob refers
enum:
- dataset
- model
- inbox
StartBlobUploadResponse:
type: object
required:
- token
- createUrl
properties:
token:
type: string
description: Opaque string token used to reference the new blob/file.
createUrl:
type: string
description: URL to use to start the upload.
CreateInboxFileRequest:
type: object
required:
- virtualDirectory
- blobFileToken
properties:
virtualDirectory:
type: string
description: Directory name used for tagging the uploaded file
blobFileToken:
type: string
description: Token representing the uploaded file
Loading

0 comments on commit bae8338

Please sign in to comment.