Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2022-02-21 14:54:04 +00:00
parent 39bb32658f
commit e2c7c21f71
22 changed files with 1267 additions and 1267 deletions

View File

@@ -162,7 +162,17 @@ type ListResponse struct {
Objects []ListObject `json:"objects"`
}
type Object struct {
type ReadRequest struct {
// name of the object
Name string `json:"name"`
}
type ReadResponse struct {
// The object itself
Object *SpaceObject `json:"object"`
}
type SpaceObject struct {
// when was this created
Created string `json:"created"`
// the data within the object
@@ -177,16 +187,6 @@ type Object struct {
Visibility string `json:"visibility"`
}
type ReadRequest struct {
// name of the object
Name string `json:"name"`
}
type ReadResponse struct {
// The object itself
Object *Object `json:"object"`
}
type UpdateRequest struct {
// The name of the object. Use forward slash delimiter to implement a nested directory-like structure e.g. images/foo.jpg
Name string `json:"name"`