Skip to content

Latest commit

 

History

History
137 lines (85 loc) · 3.41 KB

CacheSettingsApi.md

File metadata and controls

137 lines (85 loc) · 3.41 KB

\CacheSettingsApi

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

V1CacheSettingsGet

CacheSettings V1CacheSettingsGet(ctx).Execute()

Get Cache Settings

Example

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)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiV1CacheSettingsGetRequest struct via the builder pattern

Return type

CacheSettings

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

V1CacheSettingsPut

CacheSettings V1CacheSettingsPut(ctx).CacheSettings(cacheSettings).Execute()

Update Cache Settings

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiV1CacheSettingsPutRequest struct via the builder pattern

Name Type Description Notes
cacheSettings CacheSettings

Return type

CacheSettings

Authorization

Bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]