All URIs are relative to https://api.hyperone.com/v2
Method | HTTP request | Description |
---|---|---|
StorageProjectBucketGet | Get /storage/{locationId}/project/{projectId}/bucket/{bucketId} | Get storage/bucket |
StorageProjectBucketList | Get /storage/{locationId}/project/{projectId}/bucket | List storage/bucket |
StorageProjectBucketObjectDelete | Delete /storage/{locationId}/project/{projectId}/bucket/{bucketId}/object/{objectId} | Delete storage/bucket.object |
StorageProjectBucketObjectDownload | Post /storage/{locationId}/project/{projectId}/bucket/{bucketId}/object/{objectId}/actions/download | Download storage/bucket.object |
StorageProjectBucketObjectGet | Get /storage/{locationId}/project/{projectId}/bucket/{bucketId}/object/{objectId} | Get storage/bucket.object |
StorageProjectBucketObjectList | Get /storage/{locationId}/project/{projectId}/bucket/{bucketId}/object | List storage/bucket.object |
StorageProjectBucketUpload | Post /storage/{locationId}/project/{projectId}/bucket/{bucketId}/actions/upload | Upload storage/bucket |
Bucket StorageProjectBucketGet(ctx, projectId, locationId, bucketId).Execute()
Get storage/bucket
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
bucketId := "bucketId_example" // string | Bucket Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StorageProjectBucketApi.StorageProjectBucketGet(context.Background(), projectId, locationId, bucketId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectBucketApi.StorageProjectBucketGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StorageProjectBucketGet`: Bucket
fmt.Fprintf(os.Stdout, "Response from `StorageProjectBucketApi.StorageProjectBucketGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
locationId | string | Location Id | |
bucketId | string | Bucket Id |
Other parameters are passed through a pointer to a apiStorageProjectBucketGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Bucket StorageProjectBucketList(ctx, projectId, locationId).Execute()
List storage/bucket
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StorageProjectBucketApi.StorageProjectBucketList(context.Background(), projectId, locationId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectBucketApi.StorageProjectBucketList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StorageProjectBucketList`: []Bucket
fmt.Fprintf(os.Stdout, "Response from `StorageProjectBucketApi.StorageProjectBucketList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
locationId | string | Location Id |
Other parameters are passed through a pointer to a apiStorageProjectBucketListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StorageProjectBucketObjectDelete(ctx, projectId, locationId, bucketId, objectId).Execute()
Delete storage/bucket.object
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
bucketId := "bucketId_example" // string | Bucket Id
objectId := "objectId_example" // string | objectId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StorageProjectBucketApi.StorageProjectBucketObjectDelete(context.Background(), projectId, locationId, bucketId, objectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectBucketApi.StorageProjectBucketObjectDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
locationId | string | Location Id | |
bucketId | string | Bucket Id | |
objectId | string | objectId |
Other parameters are passed through a pointer to a apiStorageProjectBucketObjectDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StorageProjectBucketObjectDownload(ctx, projectId, locationId, bucketId, objectId).Execute()
Download storage/bucket.object
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
bucketId := "bucketId_example" // string | Bucket Id
objectId := "objectId_example" // string | objectId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StorageProjectBucketApi.StorageProjectBucketObjectDownload(context.Background(), projectId, locationId, bucketId, objectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectBucketApi.StorageProjectBucketObjectDownload``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
locationId | string | Location Id | |
bucketId | string | Bucket Id | |
objectId | string | objectId |
Other parameters are passed through a pointer to a apiStorageProjectBucketObjectDownloadRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StorageObject StorageProjectBucketObjectGet(ctx, projectId, locationId, bucketId, objectId).Execute()
Get storage/bucket.object
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
bucketId := "bucketId_example" // string | Bucket Id
objectId := "objectId_example" // string | objectId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StorageProjectBucketApi.StorageProjectBucketObjectGet(context.Background(), projectId, locationId, bucketId, objectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectBucketApi.StorageProjectBucketObjectGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StorageProjectBucketObjectGet`: StorageObject
fmt.Fprintf(os.Stdout, "Response from `StorageProjectBucketApi.StorageProjectBucketObjectGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
locationId | string | Location Id | |
bucketId | string | Bucket Id | |
objectId | string | objectId |
Other parameters are passed through a pointer to a apiStorageProjectBucketObjectGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]StorageObject StorageProjectBucketObjectList(ctx, projectId, locationId, bucketId).Execute()
List storage/bucket.object
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
bucketId := "bucketId_example" // string | Bucket Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StorageProjectBucketApi.StorageProjectBucketObjectList(context.Background(), projectId, locationId, bucketId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectBucketApi.StorageProjectBucketObjectList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StorageProjectBucketObjectList`: []StorageObject
fmt.Fprintf(os.Stdout, "Response from `StorageProjectBucketApi.StorageProjectBucketObjectList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
locationId | string | Location Id | |
bucketId | string | Bucket Id |
Other parameters are passed through a pointer to a apiStorageProjectBucketObjectListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Bucket StorageProjectBucketUpload(ctx, projectId, locationId, bucketId).StorageProjectBucketUpload(storageProjectBucketUpload).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
Upload storage/bucket
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
bucketId := "bucketId_example" // string | Bucket Id
storageProjectBucketUpload := *openapiclient.NewStorageProjectBucketUpload("Name_example") // StorageProjectBucketUpload |
xIdempotencyKey := "xIdempotencyKey_example" // string | Idempotency key (optional)
xDryRun := "xDryRun_example" // string | Dry run (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StorageProjectBucketApi.StorageProjectBucketUpload(context.Background(), projectId, locationId, bucketId).StorageProjectBucketUpload(storageProjectBucketUpload).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StorageProjectBucketApi.StorageProjectBucketUpload``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StorageProjectBucketUpload`: Bucket
fmt.Fprintf(os.Stdout, "Response from `StorageProjectBucketApi.StorageProjectBucketUpload`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
locationId | string | Location Id | |
bucketId | string | Bucket Id |
Other parameters are passed through a pointer to a apiStorageProjectBucketUploadRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
storageProjectBucketUpload | StorageProjectBucketUpload | | xIdempotencyKey | string | Idempotency key | xDryRun | string | Dry run |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]