All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
CreateImageBundle | Post /api/v1/customers/{cUUID}/providers/{pUUID}/image_bundle | Create a image bundle |
Delete | Delete /api/v1/customers/{cUUID}/providers/{pUUID}/image_bundle/{iBUUID} | Delete a image bundle |
EditImageBundle | Put /api/v1/customers/{cUUID}/providers/{pUUID}/image_bundle/{iBUUID} | Update a image bundle |
GetImageBundle | Get /api/v1/customers/{cUUID}/providers/{pUUID}/image_bundle/{iBUUID} | Get a image bundle |
GetListOfImageBundles | Get /api/v1/customers/{cUUID}/providers/{pUUID}/image_bundle | List image bundles |
ImageBundle CreateImageBundle(ctx, cUUID, pUUID).Body(body).Request(request).Execute()
Create a image bundle
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
pUUID := TODO // string |
body := *openapiclient.NewImageBundle() // ImageBundle | CreateImageBundleRequest
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.PreviewApi.CreateImageBundle(context.Background(), cUUID, pUUID).Body(body).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PreviewApi.CreateImageBundle``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateImageBundle`: ImageBundle
fmt.Fprintf(os.Stdout, "Response from `PreviewApi.CreateImageBundle`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string | ||
pUUID | string |
Other parameters are passed through a pointer to a apiCreateImageBundleRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | ImageBundle | CreateImageBundleRequest | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPSuccess Delete(ctx, cUUID, pUUID, iBUUID).Request(request).Execute()
Delete a image bundle
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
pUUID := TODO // string |
iBUUID := TODO // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.PreviewApi.Delete(context.Background(), cUUID, pUUID, iBUUID).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PreviewApi.Delete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Delete`: YBPSuccess
fmt.Fprintf(os.Stdout, "Response from `PreviewApi.Delete`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string | ||
pUUID | string | ||
iBUUID | string |
Other parameters are passed through a pointer to a apiDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
request | interface{} | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ImageBundle EditImageBundle(ctx, cUUID, pUUID, iBUUID).Body(body).Request(request).Execute()
Update a image bundle
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
pUUID := TODO // string |
iBUUID := TODO // string |
body := *openapiclient.NewImageBundle() // ImageBundle | EditImageBundleRequest
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.PreviewApi.EditImageBundle(context.Background(), cUUID, pUUID, iBUUID).Body(body).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PreviewApi.EditImageBundle``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditImageBundle`: ImageBundle
fmt.Fprintf(os.Stdout, "Response from `PreviewApi.EditImageBundle`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string | ||
pUUID | string | ||
iBUUID | string |
Other parameters are passed through a pointer to a apiEditImageBundleRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | ImageBundle | EditImageBundleRequest | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ImageBundle GetImageBundle(ctx, cUUID, pUUID, iBUUID).Execute()
Get a image bundle
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
pUUID := TODO // string |
iBUUID := TODO // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.PreviewApi.GetImageBundle(context.Background(), cUUID, pUUID, iBUUID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PreviewApi.GetImageBundle``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetImageBundle`: ImageBundle
fmt.Fprintf(os.Stdout, "Response from `PreviewApi.GetImageBundle`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string | ||
pUUID | string | ||
iBUUID | string |
Other parameters are passed through a pointer to a apiGetImageBundleRequest 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]
[]ImageBundle GetListOfImageBundles(ctx, cUUID, pUUID).Arch(arch).Execute()
List image bundles
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
pUUID := TODO // string |
arch := "arch_example" // string | (optional) (default to "null")
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.PreviewApi.GetListOfImageBundles(context.Background(), cUUID, pUUID).Arch(arch).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PreviewApi.GetListOfImageBundles``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetListOfImageBundles`: []ImageBundle
fmt.Fprintf(os.Stdout, "Response from `PreviewApi.GetListOfImageBundles`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string | ||
pUUID | string |
Other parameters are passed through a pointer to a apiGetListOfImageBundlesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
arch | string | | [default to "null"]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]