All URIs are relative to /api
Method | HTTP request | Description |
---|---|---|
V1CacheSettingsGet | Get /v1/cache-settings | Get Cache Settings |
V1CacheSettingsPut | Put /v1/cache-settings | Update Cache Settings |
CacheSettings V1CacheSettingsGet(ctx).Execute()
Get Cache Settings
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CacheSettingsApi.V1CacheSettingsGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CacheSettingsApi.V1CacheSettingsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1CacheSettingsGet`: CacheSettings
fmt.Fprintf(os.Stdout, "Response from `CacheSettingsApi.V1CacheSettingsGet`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiV1CacheSettingsGetRequest 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]
CacheSettings V1CacheSettingsPut(ctx).CacheSettings(cacheSettings).Execute()
Update Cache Settings
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cacheSettings := *openapiclient.NewCacheSettings("ehcache", int32(120), "24864549-94ea-4cc1-bb80-d7fb392c6556", []openapiclient.MemcachedEndpoints{*openapiclient.NewMemcachedEndpoints()}) // CacheSettings |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CacheSettingsApi.V1CacheSettingsPut(context.Background()).CacheSettings(cacheSettings).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CacheSettingsApi.V1CacheSettingsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1CacheSettingsPut`: CacheSettings
fmt.Fprintf(os.Stdout, "Response from `CacheSettingsApi.V1CacheSettingsPut`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiV1CacheSettingsPutRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
cacheSettings | CacheSettings |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]