All URIs are relative to https://pipes.turbot.com/api/v0
Method | HTTP request | Description |
---|---|---|
Get | Get /org/{org_handle}/workspace/{workspace_handle}/mod/{mod_alias} | Get organization workspace installed mod |
Install | Post /org/{org_handle}/workspace/{workspace_handle}/mod | Install a mod to an organization workspace |
List | Get /org/{org_handle}/workspace/{workspace_handle}/mod | List organization workspace installed mods |
Uninstall | Delete /org/{org_handle}/workspace/{workspace_handle}/mod/{mod_alias} | Uninstall mod from organization workspace. |
Update | Patch /org/{org_handle}/workspace/{workspace_handle}/mod/{mod_alias} | Update a mod in an organization workspace |
WorkspaceMod Get(ctx, orgHandle, workspaceHandle, modAlias).Execute()
Get organization workspace installed mod
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
orgHandle := "orgHandle_example" // string | The handle of an organization that owns the workspace.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace where mod was installed.
modAlias := "modAlias_example" // string | The mod alias or mod ID
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.OrgWorkspaceMods.Get(context.Background(), orgHandle, workspaceHandle, modAlias).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrgWorkspaceMods.Get``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Get`: WorkspaceMod
fmt.Fprintf(os.Stdout, "Response from `OrgWorkspaceMods.Get`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
orgHandle | string | The handle of an organization that owns the workspace. | |
workspaceHandle | string | The handle of the workspace where mod was installed. | |
modAlias | string | The mod alias or mod ID |
Other parameters are passed through a pointer to a apiGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspaceMod Install(ctx, orgHandle, workspaceHandle).Request(request).Execute()
Install a mod to an organization workspace
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
orgHandle := "orgHandle_example" // string | The handle of an organization that owns the workspace.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace where the mod will be installed.
request := *openapiclient.NewCreateWorkspaceModRequest("Path_example") // CreateWorkspaceModRequest | The request body to install a mod in the mentioned workspace for this organization.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.OrgWorkspaceMods.Install(context.Background(), orgHandle, workspaceHandle).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrgWorkspaceMods.Install``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Install`: WorkspaceMod
fmt.Fprintf(os.Stdout, "Response from `OrgWorkspaceMods.Install`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
orgHandle | string | The handle of an organization that owns the workspace. | |
workspaceHandle | string | The handle of the workspace where the mod will be installed. |
Other parameters are passed through a pointer to a apiInstallRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
request | CreateWorkspaceModRequest | The request body to install a mod in the mentioned workspace for this organization. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListWorkspaceModsResponse List(ctx, orgHandle, workspaceHandle).Limit(limit).NextToken(nextToken).Execute()
List organization workspace installed mods
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
orgHandle := "orgHandle_example" // string | The handle of an organization that owns the workspace.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace where mods were installed
limit := int32(56) // int32 | The max number of items to fetch per page of data, subject to a min and max of 1 and 100 respectively. If not specified will default to 25. (optional) (default to 25)
nextToken := "nextToken_example" // string | When list results are truncated, next_token will be returned, which is a cursor to fetch the next page of data. Pass next_token to the subsequent list request to fetch the next page of data. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.OrgWorkspaceMods.List(context.Background(), orgHandle, workspaceHandle).Limit(limit).NextToken(nextToken).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrgWorkspaceMods.List``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `List`: ListWorkspaceModsResponse
fmt.Fprintf(os.Stdout, "Response from `OrgWorkspaceMods.List`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
orgHandle | string | The handle of an organization that owns the workspace. | |
workspaceHandle | string | The handle of the workspace where mods were installed |
Other parameters are passed through a pointer to a apiListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
limit | int32 | The max number of items to fetch per page of data, subject to a min and max of 1 and 100 respectively. If not specified will default to 25. | [default to 25] nextToken | string | When list results are truncated, next_token will be returned, which is a cursor to fetch the next page of data. Pass next_token to the subsequent list request to fetch the next page of data. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspaceMod Uninstall(ctx, orgHandle, workspaceHandle, modAlias).Execute()
Uninstall mod from organization workspace.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
orgHandle := "orgHandle_example" // string | The handle of an organization that owns the workspace.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace where the mod was installed.
modAlias := "modAlias_example" // string | The mod alias or mod ID to delete.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.OrgWorkspaceMods.Uninstall(context.Background(), orgHandle, workspaceHandle, modAlias).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrgWorkspaceMods.Uninstall``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Uninstall`: WorkspaceMod
fmt.Fprintf(os.Stdout, "Response from `OrgWorkspaceMods.Uninstall`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
orgHandle | string | The handle of an organization that owns the workspace. | |
workspaceHandle | string | The handle of the workspace where the mod was installed. | |
modAlias | string | The mod alias or mod ID to delete. |
Other parameters are passed through a pointer to a apiUninstallRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspaceMod Update(ctx, orgHandle, workspaceHandle, modAlias).Request(request).Execute()
Update a mod in an organization workspace
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
orgHandle := "orgHandle_example" // string | The handle of an organization that owns the workspace.
workspaceHandle := "workspaceHandle_example" // string | The handle of the workspace where the mod will be updated.
modAlias := "modAlias_example" // string | The mod alias or mod ID to update.
request := *openapiclient.NewUpdateWorkspaceModRequest() // UpdateWorkspaceModRequest | The request body to update a mod for this workspace.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.OrgWorkspaceMods.Update(context.Background(), orgHandle, workspaceHandle, modAlias).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrgWorkspaceMods.Update``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Update`: WorkspaceMod
fmt.Fprintf(os.Stdout, "Response from `OrgWorkspaceMods.Update`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
orgHandle | string | The handle of an organization that owns the workspace. | |
workspaceHandle | string | The handle of the workspace where the mod will be updated. | |
modAlias | string | The mod alias or mod ID to update. |
Other parameters are passed through a pointer to a apiUpdateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
request | UpdateWorkspaceModRequest | The request body to update a mod for this workspace. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]