All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
ImportUniverse | Post /api/v1/customers/{cUUID}/universes/import | Import a universe - deprecated |
ImportUniverseFormData ImportUniverse(ctx, cUUID).Request(request).Execute()
Import a universe - deprecated
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.UniverseActionsApi.ImportUniverse(context.Background(), cUUID).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UniverseActionsApi.ImportUniverse``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ImportUniverse`: ImportUniverseFormData
fmt.Fprintf(os.Stdout, "Response from `UniverseActionsApi.ImportUniverse`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string |
Other parameters are passed through a pointer to a apiImportUniverseRequest 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]