rename response objects
This commit is contained in:
parent
52f671cb03
commit
53f41d64a8
1 changed files with 12 additions and 9 deletions
21
response.go
21
response.go
|
@ -19,14 +19,14 @@ func (R *APIResponse) SetStatusCode(code int) {
|
||||||
R.statusCode = code
|
R.statusCode = code
|
||||||
}
|
}
|
||||||
|
|
||||||
type V1BucketsGET struct {
|
type ListBucketsResponse struct {
|
||||||
APIResponse
|
APIResponse
|
||||||
Data struct {
|
Data struct {
|
||||||
Buckets map[string]string
|
Buckets map[string]string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type V1BucketGET struct {
|
type ReadBucketResponse struct {
|
||||||
APIResponse
|
APIResponse
|
||||||
Data struct {
|
Data struct {
|
||||||
Keys []string
|
Keys []string
|
||||||
|
@ -38,7 +38,7 @@ type DataDocument struct {
|
||||||
Size int64
|
Size int64
|
||||||
}
|
}
|
||||||
|
|
||||||
type V1DocumentsPOST struct {
|
type CreateDocumentsResponse struct {
|
||||||
APIResponse
|
APIResponse
|
||||||
Data struct {
|
Data struct {
|
||||||
Bucket string
|
Bucket string
|
||||||
|
@ -46,8 +46,7 @@ type V1DocumentsPOST struct {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use V1DocumentsPOST instead
|
type CreateDocumentResponse struct {
|
||||||
type V1DocumentPOST struct {
|
|
||||||
APIResponse
|
APIResponse
|
||||||
Data struct {
|
Data struct {
|
||||||
Bucket string
|
Bucket string
|
||||||
|
@ -55,11 +54,11 @@ type V1DocumentPOST struct {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type V1DocumentDELETE struct {
|
type DeleteDocumentResponse struct {
|
||||||
APIResponse
|
APIResponse
|
||||||
}
|
}
|
||||||
|
|
||||||
type V1DocumentKeyPUT struct {
|
type UpdateDocumentKeyResponse struct {
|
||||||
APIResponse
|
APIResponse
|
||||||
Data struct {
|
Data struct {
|
||||||
Bucket string
|
Bucket string
|
||||||
|
@ -67,20 +66,21 @@ type V1DocumentKeyPUT struct {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type V1SeedPOST struct {
|
type ExecuteSeedResponse struct {
|
||||||
APIResponse
|
APIResponse
|
||||||
Data struct {
|
Data struct {
|
||||||
Buckets []string
|
Buckets []string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type V1SpecGET struct {
|
type ReadSpecResponse struct {
|
||||||
APIResponse
|
APIResponse
|
||||||
Data struct {
|
Data struct {
|
||||||
Spec string
|
Spec string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use ListBucketsResponse instead
|
||||||
type HandleAdminDocumentsUploadResponse struct {
|
type HandleAdminDocumentsUploadResponse struct {
|
||||||
APIResponse
|
APIResponse
|
||||||
Data struct {
|
Data struct {
|
||||||
|
@ -88,6 +88,7 @@ type HandleAdminDocumentsUploadResponse struct {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use ListBucketsResponse instead
|
||||||
type HandleDocumentationResponse struct {
|
type HandleDocumentationResponse struct {
|
||||||
APIResponse
|
APIResponse
|
||||||
Data struct {
|
Data struct {
|
||||||
|
@ -95,11 +96,13 @@ type HandleDocumentationResponse struct {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use CreateDocumentResponse instead
|
||||||
type UploadDocumentAPIResponse struct {
|
type UploadDocumentAPIResponse struct {
|
||||||
APIResponse
|
APIResponse
|
||||||
Data UploadDocumentResponseData
|
Data UploadDocumentResponseData
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use DataDocument instead
|
||||||
type UploadDocumentResponseData struct {
|
type UploadDocumentResponseData struct {
|
||||||
Bucket string
|
Bucket string
|
||||||
Object string
|
Object string
|
||||||
|
|
Loading…
Reference in a new issue