All URIs are relative to /v1
Method | HTTP request | Description |
---|---|---|
CreateBookmark | Post /bookmarks | Create a bookmark at the current time. |
DeleteBookmark | Delete /bookmarks/{bookmarkId} | Delete a bookmark. |
GetBookmarkById | Get /bookmarks/{bookmarkId} | Get a bookmark by ID. |
GetBookmarks | Get /bookmarks | List all bookmarks. |
RestoreBookmark | Post /bookmarks/{bookmarkId}/restore | Restore VDBs to the bookmark creation time. |
CreateBookmarkResponse CreateBookmark(ctx).Bookmark(bookmark).Execute()
Create a bookmark at the current time.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
bookmark := *openapiclient.NewBookmark("my-bookmark-123", []string{"VdbIds_example"}) // Bookmark | The parameters to create a bookmark.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BookmarksApi.CreateBookmark(context.Background()).Bookmark(bookmark).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BookmarksApi.CreateBookmark``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateBookmark`: CreateBookmarkResponse
fmt.Fprintf(os.Stdout, "Response from `BookmarksApi.CreateBookmark`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateBookmarkRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
bookmark | Bookmark | The parameters to create a bookmark. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteBookmark(ctx, bookmarkId).Execute()
Delete a bookmark.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
bookmarkId := "bookmarkId_example" // string | The ID of the bookmark.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BookmarksApi.DeleteBookmark(context.Background(), bookmarkId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BookmarksApi.DeleteBookmark``: %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. | |
bookmarkId | string | The ID of the bookmark. |
Other parameters are passed through a pointer to a apiDeleteBookmarkRequest 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]
Bookmark GetBookmarkById(ctx, bookmarkId).Execute()
Get a bookmark by ID.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
bookmarkId := "bookmarkId_example" // string | The ID of the bookmark.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BookmarksApi.GetBookmarkById(context.Background(), bookmarkId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BookmarksApi.GetBookmarkById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetBookmarkById`: Bookmark
fmt.Fprintf(os.Stdout, "Response from `BookmarksApi.GetBookmarkById`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
bookmarkId | string | The ID of the bookmark. |
Other parameters are passed through a pointer to a apiGetBookmarkByIdRequest 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]
ListBookmarksResponse GetBookmarks(ctx).Execute()
List all bookmarks.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BookmarksApi.GetBookmarks(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BookmarksApi.GetBookmarks``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetBookmarks`: ListBookmarksResponse
fmt.Fprintf(os.Stdout, "Response from `BookmarksApi.GetBookmarks`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetBookmarksRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RestoreBookmarkResponse RestoreBookmark(ctx, bookmarkId).Execute()
Restore VDBs to the bookmark creation time.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
bookmarkId := "bookmarkId_example" // string | The ID of the bookmark.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BookmarksApi.RestoreBookmark(context.Background(), bookmarkId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BookmarksApi.RestoreBookmark``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RestoreBookmark`: RestoreBookmarkResponse
fmt.Fprintf(os.Stdout, "Response from `BookmarksApi.RestoreBookmark`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
bookmarkId | string | The ID of the bookmark. |
Other parameters are passed through a pointer to a apiRestoreBookmarkRequest 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]