All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
CreateDataset | Post /pool/dataset | |
DeleteDataset | Delete /pool/dataset/id/{id} | |
GetDataset | Get /pool/dataset/id/{id} | |
UpdateDataset | Put /pool/dataset/id/{id} |
Dataset CreateDataset(ctx).CreateDatasetParams(createDatasetParams).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
createDatasetParams := *openapiclient.NewCreateDatasetParams("Name_example") // CreateDatasetParams | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DatasetApi.CreateDataset(context.Background()).CreateDatasetParams(createDatasetParams).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DatasetApi.CreateDataset``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateDataset`: Dataset
fmt.Fprintf(os.Stdout, "Response from `DatasetApi.CreateDataset`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateDatasetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
createDatasetParams | CreateDatasetParams |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteDataset(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DatasetApi.DeleteDataset(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DatasetApi.DeleteDataset``: %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. | |
id | string |
Other parameters are passed through a pointer to a apiDeleteDatasetRequest 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]
Dataset GetDataset(ctx, id).Limit(limit).Offset(offset).Count(count).Sort(sort).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | ID of the dataset
limit := int32(56) // int32 | (optional)
offset := int32(56) // int32 | (optional)
count := true // bool | (optional)
sort := "sort_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DatasetApi.GetDataset(context.Background(), id).Limit(limit).Offset(offset).Count(count).Sort(sort).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DatasetApi.GetDataset``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDataset`: Dataset
fmt.Fprintf(os.Stdout, "Response from `DatasetApi.GetDataset`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | ID of the dataset |
Other parameters are passed through a pointer to a apiGetDatasetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
limit | int32 | | offset | int32 | | count | bool | | sort | string | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dataset UpdateDataset(ctx, id).UpdateDatasetParams(updateDatasetParams).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
updateDatasetParams := *openapiclient.NewUpdateDatasetParams() // UpdateDatasetParams | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DatasetApi.UpdateDataset(context.Background(), id).UpdateDatasetParams(updateDatasetParams).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DatasetApi.UpdateDataset``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateDataset`: Dataset
fmt.Fprintf(os.Stdout, "Response from `DatasetApi.UpdateDataset`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiUpdateDatasetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
updateDatasetParams | UpdateDatasetParams | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]