All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
DeleteExportApiV2TasksExportExportNameDelete | Delete /api/v2/tasks/export/{export_name} | Delete Export |
ExportContentApiV2TasksExportExportIdContentGet | Get /api/v2/tasks/export/{export_id}/content | Export Content |
NewExportApiV2TasksExportNewPost | Post /api/v2/tasks/export/new | New Export |
PatchExportApiV2TasksExportExportNamePatch | Patch /api/v2/tasks/export/{export_name} | Patch Export |
RunApiV2TasksTaskNameRunPost | Post /api/v2/tasks/{task_name}/run | Run |
SearchApiV2TasksSearchPost | Post /api/v2/tasks/search | Search |
ToggleApiV2TasksTaskNameTogglePost | Post /api/v2/tasks/{task_name}/toggle | Toggle |
interface{} DeleteExportApiV2TasksExportExportNameDelete(ctx, exportName).Execute()
Delete Export
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
exportName := "exportName_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TasksAPI.DeleteExportApiV2TasksExportExportNameDelete(context.Background(), exportName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TasksAPI.DeleteExportApiV2TasksExportExportNameDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteExportApiV2TasksExportExportNameDelete`: interface{}
fmt.Fprintf(os.Stdout, "Response from `TasksAPI.DeleteExportApiV2TasksExportExportNameDelete`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
exportName | string |
Other parameters are passed through a pointer to a apiDeleteExportApiV2TasksExportExportNameDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
interface{}
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
interface{} ExportContentApiV2TasksExportExportIdContentGet(ctx, exportId).Execute()
Export Content
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
exportId := "exportId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TasksAPI.ExportContentApiV2TasksExportExportIdContentGet(context.Background(), exportId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TasksAPI.ExportContentApiV2TasksExportExportIdContentGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ExportContentApiV2TasksExportExportIdContentGet`: interface{}
fmt.Fprintf(os.Stdout, "Response from `TasksAPI.ExportContentApiV2TasksExportExportIdContentGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
exportId | string |
Other parameters are passed through a pointer to a apiExportContentApiV2TasksExportExportIdContentGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
interface{}
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ExportTaskOutput NewExportApiV2TasksExportNewPost(ctx).NewExportRequest(newExportRequest).Execute()
New Export
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
newExportRequest := *openapiclient.NewNewExportRequest(*openapiclient.NewExportTaskInput("Name_example", "TemplateName_example")) // NewExportRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TasksAPI.NewExportApiV2TasksExportNewPost(context.Background()).NewExportRequest(newExportRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TasksAPI.NewExportApiV2TasksExportNewPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NewExportApiV2TasksExportNewPost`: ExportTaskOutput
fmt.Fprintf(os.Stdout, "Response from `TasksAPI.NewExportApiV2TasksExportNewPost`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiNewExportApiV2TasksExportNewPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
newExportRequest | NewExportRequest |
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ExportTaskOutput PatchExportApiV2TasksExportExportNamePatch(ctx, exportName).PatchExportRequest(patchExportRequest).Execute()
Patch Export
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
exportName := "exportName_example" // string |
patchExportRequest := *openapiclient.NewPatchExportRequest(*openapiclient.NewExportTaskInput("Name_example", "TemplateName_example")) // PatchExportRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TasksAPI.PatchExportApiV2TasksExportExportNamePatch(context.Background(), exportName).PatchExportRequest(patchExportRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TasksAPI.PatchExportApiV2TasksExportExportNamePatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PatchExportApiV2TasksExportExportNamePatch`: ExportTaskOutput
fmt.Fprintf(os.Stdout, "Response from `TasksAPI.PatchExportApiV2TasksExportExportNamePatch`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
exportName | string |
Other parameters are passed through a pointer to a apiPatchExportApiV2TasksExportExportNamePatchRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
patchExportRequest | PatchExportRequest | |
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} RunApiV2TasksTaskNameRunPost(ctx, taskName).TaskParams(taskParams).Execute()
Run
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
taskName := TODO // interface{} |
taskParams := *openapiclient.NewTaskParams() // TaskParams | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TasksAPI.RunApiV2TasksTaskNameRunPost(context.Background(), taskName).TaskParams(taskParams).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TasksAPI.RunApiV2TasksTaskNameRunPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RunApiV2TasksTaskNameRunPost`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `TasksAPI.RunApiV2TasksTaskNameRunPost`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
taskName | interface{} |
Other parameters are passed through a pointer to a apiRunApiV2TasksTaskNameRunPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
taskParams | TaskParams | |
map[string]interface{}
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskSearchResponse SearchApiV2TasksSearchPost(ctx).TaskSearchRequest(taskSearchRequest).Execute()
Search
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
taskSearchRequest := *openapiclient.NewTaskSearchRequest() // TaskSearchRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TasksAPI.SearchApiV2TasksSearchPost(context.Background()).TaskSearchRequest(taskSearchRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TasksAPI.SearchApiV2TasksSearchPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SearchApiV2TasksSearchPost`: TaskSearchResponse
fmt.Fprintf(os.Stdout, "Response from `TasksAPI.SearchApiV2TasksSearchPost`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSearchApiV2TasksSearchPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
taskSearchRequest | TaskSearchRequest |
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseToggleApiV2TasksTaskNameTogglePost ToggleApiV2TasksTaskNameTogglePost(ctx, taskName).Execute()
Toggle
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
taskName := TODO // interface{} |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TasksAPI.ToggleApiV2TasksTaskNameTogglePost(context.Background(), taskName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TasksAPI.ToggleApiV2TasksTaskNameTogglePost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ToggleApiV2TasksTaskNameTogglePost`: ResponseToggleApiV2TasksTaskNameTogglePost
fmt.Fprintf(os.Stdout, "Response from `TasksAPI.ToggleApiV2TasksTaskNameTogglePost`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
taskName | interface{} |
Other parameters are passed through a pointer to a apiToggleApiV2TasksTaskNameTogglePostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
ResponseToggleApiV2TasksTaskNameTogglePost
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]