{"modulePath":"github.com/aziontech/azion-cli","version":"v0.0.0-20261203171842-67d043fbe18b","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cachesetting\n\n## Functions\n\n```go\nfunc NewCreateRequest() *sdk.CacheSettingRequest\n```\n\n## Types\n\n```go\ntype ClientV3 struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewClientV3(c *http.Client, url string, token string) *ClientV3\n```\n\n```go\nfunc (c *ClientV3) Create(ctx context.Context, req *CreateRequest, applicationId int64) (Response, error)\n```\n\n```go\nfunc (c *ClientV3) Delete(ctx context.Context, edgeApplicationID, cacheSettingsID int64) (int, error)\n```\n\n```go\nfunc (c *ClientV3) Get(ctx context.Context, edgeApplicationID, cacheSettingsID int64) (GetResponse, error)\n```\n\n```go\nfunc (c *ClientV3) List(ctx context.Context, opts *contracts.ListOptions, edgeApplicationID int64,\n) (*sdk.ApplicationCacheGetResponse, error)\n```\n\n```go\nfunc (c *ClientV3) Update(ctx context.Context, req *UpdateRequest, applicationID, cacheSettingID int64) (Response, error)\n```\n\n```go\ntype ClientV4 struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewClientV4(c *http.Client, url string, token string) *ClientV4\n```\n\n```go\nfunc (c *ClientV4) Create(ctx context.Context, req sdk.CacheSettingRequest, applicationID int64) (sdk.CacheSetting, error)\n```\n\n```go\nfunc (c *ClientV4) Delete(ctx context.Context, edgeApplicationID, cacheSettingsID int64) (int, error)\n```\n\n```go\nfunc (c *ClientV4) Get(ctx context.Context, edgeApplicationID, cacheSettingsID int64) (sdk.CacheSetting, error)\n```\n\n```go\nfunc (c *ClientV4) List(ctx context.Context, opts *contracts.ListOptions, edgeApplicationID int64,\n) (GetResponseV4, error)\n```\n\n```go\nfunc (c *ClientV4) Update(ctx context.Context, req *RequestUpdate, applicationID, cacheSettingID int64) (ResponseV4, error)\n```\n\n```go\ntype CreateRequest struct {\n\tsdkOld.ApplicationCacheCreateRequest\n}\n```\n\n```go\ntype GetResponse interface {\n\tGetId() int64\n\tGetName() string\n\tGetBrowserCacheSettings() string\n\tGetBrowserCacheSettingsMaximumTtl() int64\n\tGetCdnCacheSettingsMaximumTtl() int64\n\tGetCdnCacheSettings() string\n\tGetCacheByQueryString() string\n\tGetQueryStringFields() []string\n\tGetEnableQueryStringSort() bool\n\tGetCacheByCookies() string\n\tGetCookieNames() []*string\n\tGetEnableCachingForPost() bool\n\tGetL2CachingEnabled() bool\n\tGetAdaptiveDeliveryAction() string\n\tGetDeviceGroup() []int32\n}\n```\n\n```go\ntype GetResponseV4 interface {\n\tGetCount() int64\n\tGetResults() []sdk.CacheSetting\n}\n```\n\n```go\ntype Request struct {\n\tsdk.CacheSettingRequest\n}\n```\n\n```go\ntype RequestUpdate struct {\n\tsdk.PatchedCacheSettingRequest\n}\n```\n\n```go\ntype Response interface {\n\tGetId() int64\n\tGetName() string\n\tGetBrowserCacheSettings() string\n\tGetBrowserCacheSettingsMaximumTtl() int64\n\tGetCdnCacheSettingsMaximumTtl() int64\n\tGetCdnCacheSettings() string\n\tGetCacheByQueryString() string\n\tGetQueryStringFields() []string\n\tGetEnableQueryStringSort() bool\n\tGetCacheByCookies() string\n\tGetCookieNames() []string\n\tGetEnableCachingForPost() bool\n\tGetL2CachingEnabled() bool\n\tGetAdaptiveDeliveryAction() string\n\tGetDeviceGroup() []int32\n}\n```\n\n```go\ntype ResponseV4 interface {\n\tGetState() string\n\tGetData() sdk.CacheSetting\n}\n```\n\n```go\ntype UpdateRequest struct {\n\tsdkOld.ApplicationCachePatchRequest\n}\n```\n\n","path":"github.com/aziontech/azion-cli/pkg/api/cache_setting","name":"cachesetting","synopsis":"","isRedistributable":true}
