All URIs are relative to https://dashboard.quantcdn.io
| Method | HTTP request | Description |
|---|---|---|
| ProjectsCreate | Post /api/v2/organizations/{organization}/projects | Create a new project |
| ProjectsDelete | Delete /api/v2/organizations/{organization}/projects/{project} | Delete a project |
| ProjectsList | Get /api/v2/organizations/{organization}/projects | Retrieve all projects for an organization |
| ProjectsRead | Get /api/v2/organizations/{organization}/projects/{project} | Get details of a single project |
| ProjectsUpdate | Patch /api/v2/organizations/{organization}/projects/{project} | Update a project |
V2Project ProjectsCreate(ctx, organization).V2ProjectRequest(v2ProjectRequest).Execute()
Create a new project
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organization := "test-org" // string | Organization identifier
v2ProjectRequest := *openapiclient.NewV2ProjectRequest() // V2ProjectRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ProjectsAPI.ProjectsCreate(context.Background(), organization).V2ProjectRequest(v2ProjectRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ProjectsAPI.ProjectsCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ProjectsCreate`: V2Project
fmt.Fprintf(os.Stdout, "Response from `ProjectsAPI.ProjectsCreate`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string | Organization identifier |
Other parameters are passed through a pointer to a apiProjectsCreateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
v2ProjectRequest | V2ProjectRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProjectsDelete(ctx, organization, project).Execute()
Delete a project
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organization := "test-org" // string | Organization identifier
project := "test-project" // string | Project identifier
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ProjectsAPI.ProjectsDelete(context.Background(), organization, project).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ProjectsAPI.ProjectsDelete``: %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. | |
| organization | string | Organization identifier | |
| project | string | Project identifier |
Other parameters are passed through a pointer to a apiProjectsDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]V2Project ProjectsList(ctx, organization).Execute()
Retrieve all projects for an organization
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organization := "test-org" // string | Organization identifier
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ProjectsAPI.ProjectsList(context.Background(), organization).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ProjectsAPI.ProjectsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ProjectsList`: []V2Project
fmt.Fprintf(os.Stdout, "Response from `ProjectsAPI.ProjectsList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string | Organization identifier |
Other parameters are passed through a pointer to a apiProjectsListRequest 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]
V2Project ProjectsRead(ctx, organization, project).WithToken(withToken).Execute()
Get details of a single project
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organization := "test-org" // string | Organization identifier
project := "test-project" // string | Project identifier
withToken := true // bool | (default to false)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ProjectsAPI.ProjectsRead(context.Background(), organization, project).WithToken(withToken).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ProjectsAPI.ProjectsRead``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ProjectsRead`: V2Project
fmt.Fprintf(os.Stdout, "Response from `ProjectsAPI.ProjectsRead`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string | Organization identifier | |
| project | string | Project identifier |
Other parameters are passed through a pointer to a apiProjectsReadRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
withToken | bool | | [default to false]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V2Project ProjectsUpdate(ctx, organization, project).V2ProjectRequest(v2ProjectRequest).Execute()
Update a project
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organization := "test-org" // string | Organization identifier
project := "test-project" // string | Project identifier
v2ProjectRequest := *openapiclient.NewV2ProjectRequest() // V2ProjectRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ProjectsAPI.ProjectsUpdate(context.Background(), organization, project).V2ProjectRequest(v2ProjectRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ProjectsAPI.ProjectsUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ProjectsUpdate`: V2Project
fmt.Fprintf(os.Stdout, "Response from `ProjectsAPI.ProjectsUpdate`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string | Organization identifier | |
| project | string | Project identifier |
Other parameters are passed through a pointer to a apiProjectsUpdateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
v2ProjectRequest | V2ProjectRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]