All URIs are relative to http://localhost:5516
Method | HTTP request | Description |
---|---|---|
CreateEnvironment | Post /api/v1/environments | |
DeleteEnvironment | Delete /api/v1/environments/{environmentId} | |
GetDeployableApplicationsForEnvironment | Get /api/v1/environments/{environmentId}/applications | |
GetEnvironment | Get /api/v1/environments/{environmentId} | |
GetReservationsForEnvironment | Get /api/v1/environments/{environmentId}/reservations | |
SearchEnvironments | Post /api/v1/environments/search | |
UpdateEnvironment | Put /api/v1/environments/{environmentId} |
EnvironmentView CreateEnvironment(ctx).EnvironmentForm(environmentForm).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
environmentForm := *openapiclient.NewEnvironmentForm() // EnvironmentForm | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentApi.CreateEnvironment(context.Background()).EnvironmentForm(environmentForm).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentApi.CreateEnvironment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateEnvironment`: EnvironmentView
fmt.Fprintf(os.Stdout, "Response from `EnvironmentApi.CreateEnvironment`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateEnvironmentRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
environmentForm | EnvironmentForm |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteEnvironment(ctx, environmentId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
environmentId := "environmentId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.EnvironmentApi.DeleteEnvironment(context.Background(), environmentId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentApi.DeleteEnvironment``: %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. | |
environmentId | string |
Other parameters are passed through a pointer to a apiDeleteEnvironmentRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]BaseApplicationView GetDeployableApplicationsForEnvironment(ctx, environmentId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
environmentId := "environmentId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentApi.GetDeployableApplicationsForEnvironment(context.Background(), environmentId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentApi.GetDeployableApplicationsForEnvironment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDeployableApplicationsForEnvironment`: []BaseApplicationView
fmt.Fprintf(os.Stdout, "Response from `EnvironmentApi.GetDeployableApplicationsForEnvironment`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
environmentId | string |
Other parameters are passed through a pointer to a apiGetDeployableApplicationsForEnvironmentRequest 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]
EnvironmentView GetEnvironment(ctx, environmentId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
environmentId := "environmentId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentApi.GetEnvironment(context.Background(), environmentId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentApi.GetEnvironment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEnvironment`: EnvironmentView
fmt.Fprintf(os.Stdout, "Response from `EnvironmentApi.GetEnvironment`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
environmentId | string |
Other parameters are passed through a pointer to a apiGetEnvironmentRequest 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]
[]EnvironmentReservationView GetReservationsForEnvironment(ctx, environmentId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
environmentId := "environmentId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentApi.GetReservationsForEnvironment(context.Background(), environmentId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentApi.GetReservationsForEnvironment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetReservationsForEnvironment`: []EnvironmentReservationView
fmt.Fprintf(os.Stdout, "Response from `EnvironmentApi.GetReservationsForEnvironment`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
environmentId | string |
Other parameters are passed through a pointer to a apiGetReservationsForEnvironmentRequest 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]
[]EnvironmentView SearchEnvironments(ctx).EnvironmentFilters(environmentFilters).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
environmentFilters := *openapiclient.NewEnvironmentFilters() // EnvironmentFilters | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentApi.SearchEnvironments(context.Background()).EnvironmentFilters(environmentFilters).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentApi.SearchEnvironments``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SearchEnvironments`: []EnvironmentView
fmt.Fprintf(os.Stdout, "Response from `EnvironmentApi.SearchEnvironments`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSearchEnvironmentsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
environmentFilters | EnvironmentFilters |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EnvironmentView UpdateEnvironment(ctx, environmentId).EnvironmentForm(environmentForm).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
environmentId := "environmentId_example" // string |
environmentForm := *openapiclient.NewEnvironmentForm() // EnvironmentForm | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnvironmentApi.UpdateEnvironment(context.Background(), environmentId).EnvironmentForm(environmentForm).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentApi.UpdateEnvironment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateEnvironment`: EnvironmentView
fmt.Fprintf(os.Stdout, "Response from `EnvironmentApi.UpdateEnvironment`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
environmentId | string |
Other parameters are passed through a pointer to a apiUpdateEnvironmentRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
environmentForm | EnvironmentForm | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]