Class CachingApi
- java.lang.Object
- 
- com.ibm.cloud.sdk.core.service.BaseService
- 
- com.ibm.cloud.networking.caching_api.v1.CachingApi
 
 
- 
 public class CachingApi extends com.ibm.cloud.sdk.core.service.BaseServiceThis document describes CIS caching API.- Version:
- v1
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_SERVICE_NAMEstatic StringDEFAULT_SERVICE_URL
 - 
Constructor SummaryConstructors Constructor Description CachingApi(String crn, String zoneId, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `CachingApi` client.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.cloud.sdk.core.http.ServiceCall<BrowserTTLResponse>getBrowserCacheTtl()Get browser cache TTL setting.com.ibm.cloud.sdk.core.http.ServiceCall<BrowserTTLResponse>getBrowserCacheTtl(GetBrowserCacheTtlOptions getBrowserCacheTtlOptions)Get browser cache TTL setting.com.ibm.cloud.sdk.core.http.ServiceCall<CacheLevelResponse>getCacheLevel()Get cache level setting of a specific zone.com.ibm.cloud.sdk.core.http.ServiceCall<CacheLevelResponse>getCacheLevel(GetCacheLevelOptions getCacheLevelOptions)Get cache level setting of a specific zone.StringgetCrn()Gets the crn.com.ibm.cloud.sdk.core.http.ServiceCall<DeveopmentModeResponse>getDevelopmentMode()Get development mode setting.com.ibm.cloud.sdk.core.http.ServiceCall<DeveopmentModeResponse>getDevelopmentMode(GetDevelopmentModeOptions getDevelopmentModeOptions)Get development mode setting.com.ibm.cloud.sdk.core.http.ServiceCall<EnableQueryStringSortResponse>getQueryStringSort()Get Enable Query String Sort setting.com.ibm.cloud.sdk.core.http.ServiceCall<EnableQueryStringSortResponse>getQueryStringSort(GetQueryStringSortOptions getQueryStringSortOptions)Get Enable Query String Sort setting.StringgetZoneId()Gets the zoneId.static CachingApinewInstance(String crn, String zoneId)Class method which constructs an instance of the `CachingApi` client.static CachingApinewInstance(String crn, String zoneId, String serviceName)Class method which constructs an instance of the `CachingApi` client.com.ibm.cloud.sdk.core.http.ServiceCall<PurgeAllResponse>purgeAll()Purge all.com.ibm.cloud.sdk.core.http.ServiceCall<PurgeAllResponse>purgeAll(PurgeAllOptions purgeAllOptions)Purge all.com.ibm.cloud.sdk.core.http.ServiceCall<PurgeAllResponse>purgeByCacheTags()Purge Cache-Tags.com.ibm.cloud.sdk.core.http.ServiceCall<PurgeAllResponse>purgeByCacheTags(PurgeByCacheTagsOptions purgeByCacheTagsOptions)Purge Cache-Tags.com.ibm.cloud.sdk.core.http.ServiceCall<PurgeAllResponse>purgeByHosts()Purge host names.com.ibm.cloud.sdk.core.http.ServiceCall<PurgeAllResponse>purgeByHosts(PurgeByHostsOptions purgeByHostsOptions)Purge host names.com.ibm.cloud.sdk.core.http.ServiceCall<PurgeAllResponse>purgeByUrls()Purge URLs.com.ibm.cloud.sdk.core.http.ServiceCall<PurgeAllResponse>purgeByUrls(PurgeByUrlsOptions purgeByUrlsOptions)Purge URLs.voidsetCrn(String crn)Sets the crn.voidsetZoneId(String zoneId)Sets the zoneId.com.ibm.cloud.sdk.core.http.ServiceCall<BrowserTTLResponse>updateBrowserCacheTtl()Change browser cache TTL setting.com.ibm.cloud.sdk.core.http.ServiceCall<BrowserTTLResponse>updateBrowserCacheTtl(UpdateBrowserCacheTtlOptions updateBrowserCacheTtlOptions)Change browser cache TTL setting.com.ibm.cloud.sdk.core.http.ServiceCall<CacheLevelResponse>updateCacheLevel()Set cache level setting for a specific zone.com.ibm.cloud.sdk.core.http.ServiceCall<CacheLevelResponse>updateCacheLevel(UpdateCacheLevelOptions updateCacheLevelOptions)Set cache level setting for a specific zone.com.ibm.cloud.sdk.core.http.ServiceCall<DeveopmentModeResponse>updateDevelopmentMode()Change development mode setting.com.ibm.cloud.sdk.core.http.ServiceCall<DeveopmentModeResponse>updateDevelopmentMode(UpdateDevelopmentModeOptions updateDevelopmentModeOptions)Change development mode setting.com.ibm.cloud.sdk.core.http.ServiceCall<EnableQueryStringSortResponse>updateQueryStringSort()Change Enable Query String Sort setting.com.ibm.cloud.sdk.core.http.ServiceCall<EnableQueryStringSortResponse>updateQueryStringSort(UpdateQueryStringSortOptions updateQueryStringSortOptions)Change Enable Query String Sort setting.- 
Methods inherited from class com.ibm.cloud.sdk.core.service.BaseServiceconfigureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_SERVICE_NAMEpublic static final String DEFAULT_SERVICE_NAME - See Also:
- Constant Field Values
 
 - 
DEFAULT_SERVICE_URLpublic static final String DEFAULT_SERVICE_URL - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
CachingApipublic CachingApi(String crn, String zoneId, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator) Constructs an instance of the `CachingApi` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
- crn- cloud resource name.
- zoneId- zone id.
- serviceName- the service name to be used when configuring the client instance
- authenticator- the- Authenticatorinstance to be configured for this client
 
 
- 
 - 
Method Detail- 
newInstancepublic static CachingApi newInstance(String crn, String zoneId) Class method which constructs an instance of the `CachingApi` client. The default service name is used to configure the client instance.- Parameters:
- crn- cloud resource name.
- zoneId- zone id.
- Returns:
- an instance of the `CachingApi` client using external configuration
 
 - 
newInstancepublic static CachingApi newInstance(String crn, String zoneId, String serviceName) Class method which constructs an instance of the `CachingApi` client. The specified service name is used to configure the client instance.- Parameters:
- crn- cloud resource name.
- zoneId- zone id.
- serviceName- the service name to be used when configuring the client instance
- Returns:
- an instance of the `CachingApi` client using external configuration
 
 - 
getCrnpublic String getCrn() Gets the crn. cloud resource name.- Returns:
- the crn
 
 - 
setCrnpublic void setCrn(String crn) Sets the crn.- Parameters:
- crn- the new crn
 
 - 
getZoneIdpublic String getZoneId() Gets the zoneId. zone id.- Returns:
- the zoneId
 
 - 
setZoneIdpublic void setZoneId(String zoneId) Sets the zoneId.- Parameters:
- zoneId- the new zoneId
 
 - 
purgeAllpublic com.ibm.cloud.sdk.core.http.ServiceCall<PurgeAllResponse> purgeAll(PurgeAllOptions purgeAllOptions) Purge all. All resources in CDN edge servers' cache should be removed. This may have dramatic affects on your origin server load after performing this action.- Parameters:
- purgeAllOptions- the- PurgeAllOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typePurgeAllResponse
 
 - 
purgeAllpublic com.ibm.cloud.sdk.core.http.ServiceCall<PurgeAllResponse> purgeAll() Purge all. All resources in CDN edge servers' cache should be removed. This may have dramatic affects on your origin server load after performing this action.- Returns:
- a ServiceCallwith a result of typePurgeAllResponse
 
 - 
purgeByUrlspublic com.ibm.cloud.sdk.core.http.ServiceCall<PurgeAllResponse> purgeByUrls(PurgeByUrlsOptions purgeByUrlsOptions) Purge URLs. Granularly remove one or more files from CDN edge servers' cache either by specifying URLs.- Parameters:
- purgeByUrlsOptions- the- PurgeByUrlsOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typePurgeAllResponse
 
 - 
purgeByUrlspublic com.ibm.cloud.sdk.core.http.ServiceCall<PurgeAllResponse> purgeByUrls() Purge URLs. Granularly remove one or more files from CDN edge servers' cache either by specifying URLs.- Returns:
- a ServiceCallwith a result of typePurgeAllResponse
 
 - 
purgeByCacheTagspublic com.ibm.cloud.sdk.core.http.ServiceCall<PurgeAllResponse> purgeByCacheTags(PurgeByCacheTagsOptions purgeByCacheTagsOptions) Purge Cache-Tags. Granularly remove one or more files from CDN edge servers' cache either by specifying the associated Cache-Tags.- Parameters:
- purgeByCacheTagsOptions- the- PurgeByCacheTagsOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typePurgeAllResponse
 
 - 
purgeByCacheTagspublic com.ibm.cloud.sdk.core.http.ServiceCall<PurgeAllResponse> purgeByCacheTags() Purge Cache-Tags. Granularly remove one or more files from CDN edge servers' cache either by specifying the associated Cache-Tags.- Returns:
- a ServiceCallwith a result of typePurgeAllResponse
 
 - 
purgeByHostspublic com.ibm.cloud.sdk.core.http.ServiceCall<PurgeAllResponse> purgeByHosts(PurgeByHostsOptions purgeByHostsOptions) Purge host names. Granularly remove one or more files from CDN edge servers' cache either by specifying the hostnames.- Parameters:
- purgeByHostsOptions- the- PurgeByHostsOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typePurgeAllResponse
 
 - 
purgeByHostspublic com.ibm.cloud.sdk.core.http.ServiceCall<PurgeAllResponse> purgeByHosts() Purge host names. Granularly remove one or more files from CDN edge servers' cache either by specifying the hostnames.- Returns:
- a ServiceCallwith a result of typePurgeAllResponse
 
 - 
getBrowserCacheTtlpublic com.ibm.cloud.sdk.core.http.ServiceCall<BrowserTTLResponse> getBrowserCacheTtl(GetBrowserCacheTtlOptions getBrowserCacheTtlOptions) Get browser cache TTL setting. Browser Cache TTL (in seconds) specifies how long CDN edge servers cached resources will remain on your visitors' computers.- Parameters:
- getBrowserCacheTtlOptions- the- GetBrowserCacheTtlOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeBrowserTTLResponse
 
 - 
getBrowserCacheTtlpublic com.ibm.cloud.sdk.core.http.ServiceCall<BrowserTTLResponse> getBrowserCacheTtl() Get browser cache TTL setting. Browser Cache TTL (in seconds) specifies how long CDN edge servers cached resources will remain on your visitors' computers.- Returns:
- a ServiceCallwith a result of typeBrowserTTLResponse
 
 - 
updateBrowserCacheTtlpublic com.ibm.cloud.sdk.core.http.ServiceCall<BrowserTTLResponse> updateBrowserCacheTtl(UpdateBrowserCacheTtlOptions updateBrowserCacheTtlOptions) Change browser cache TTL setting. Browser Cache TTL (in seconds) specifies how long CDN edge servers cached resources will remain on your visitors' computers.- Parameters:
- updateBrowserCacheTtlOptions- the- UpdateBrowserCacheTtlOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeBrowserTTLResponse
 
 - 
updateBrowserCacheTtlpublic com.ibm.cloud.sdk.core.http.ServiceCall<BrowserTTLResponse> updateBrowserCacheTtl() Change browser cache TTL setting. Browser Cache TTL (in seconds) specifies how long CDN edge servers cached resources will remain on your visitors' computers.- Returns:
- a ServiceCallwith a result of typeBrowserTTLResponse
 
 - 
getDevelopmentModepublic com.ibm.cloud.sdk.core.http.ServiceCall<DeveopmentModeResponse> getDevelopmentMode(GetDevelopmentModeOptions getDevelopmentModeOptions) Get development mode setting. Get development mode setting.- Parameters:
- getDevelopmentModeOptions- the- GetDevelopmentModeOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeDeveopmentModeResponse
 
 - 
getDevelopmentModepublic com.ibm.cloud.sdk.core.http.ServiceCall<DeveopmentModeResponse> getDevelopmentMode() Get development mode setting. Get development mode setting.- Returns:
- a ServiceCallwith a result of typeDeveopmentModeResponse
 
 - 
updateDevelopmentModepublic com.ibm.cloud.sdk.core.http.ServiceCall<DeveopmentModeResponse> updateDevelopmentMode(UpdateDevelopmentModeOptions updateDevelopmentModeOptions) Change development mode setting. Change development mode setting.- Parameters:
- updateDevelopmentModeOptions- the- UpdateDevelopmentModeOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeDeveopmentModeResponse
 
 - 
updateDevelopmentModepublic com.ibm.cloud.sdk.core.http.ServiceCall<DeveopmentModeResponse> updateDevelopmentMode() Change development mode setting. Change development mode setting.- Returns:
- a ServiceCallwith a result of typeDeveopmentModeResponse
 
 - 
getQueryStringSortpublic com.ibm.cloud.sdk.core.http.ServiceCall<EnableQueryStringSortResponse> getQueryStringSort(GetQueryStringSortOptions getQueryStringSortOptions) Get Enable Query String Sort setting. Get Enable Query String Sort setting.- Parameters:
- getQueryStringSortOptions- the- GetQueryStringSortOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeEnableQueryStringSortResponse
 
 - 
getQueryStringSortpublic com.ibm.cloud.sdk.core.http.ServiceCall<EnableQueryStringSortResponse> getQueryStringSort() Get Enable Query String Sort setting. Get Enable Query String Sort setting.- Returns:
- a ServiceCallwith a result of typeEnableQueryStringSortResponse
 
 - 
updateQueryStringSortpublic com.ibm.cloud.sdk.core.http.ServiceCall<EnableQueryStringSortResponse> updateQueryStringSort(UpdateQueryStringSortOptions updateQueryStringSortOptions) Change Enable Query String Sort setting. Change Enable Query String Sort setting.- Parameters:
- updateQueryStringSortOptions- the- UpdateQueryStringSortOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeEnableQueryStringSortResponse
 
 - 
updateQueryStringSortpublic com.ibm.cloud.sdk.core.http.ServiceCall<EnableQueryStringSortResponse> updateQueryStringSort() Change Enable Query String Sort setting. Change Enable Query String Sort setting.- Returns:
- a ServiceCallwith a result of typeEnableQueryStringSortResponse
 
 - 
getCacheLevelpublic com.ibm.cloud.sdk.core.http.ServiceCall<CacheLevelResponse> getCacheLevel(GetCacheLevelOptions getCacheLevelOptions) Get cache level setting of a specific zone. Get cache level setting of a specific zone.- Parameters:
- getCacheLevelOptions- the- GetCacheLevelOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeCacheLevelResponse
 
 - 
getCacheLevelpublic com.ibm.cloud.sdk.core.http.ServiceCall<CacheLevelResponse> getCacheLevel() Get cache level setting of a specific zone. Get cache level setting of a specific zone.- Returns:
- a ServiceCallwith a result of typeCacheLevelResponse
 
 - 
updateCacheLevelpublic com.ibm.cloud.sdk.core.http.ServiceCall<CacheLevelResponse> updateCacheLevel(UpdateCacheLevelOptions updateCacheLevelOptions) Set cache level setting for a specific zone. The `basic` setting will cache most static resources (i.e., css, images, and JavaScript). The `simplified` setting will ignore the query string when delivering a cached resource. The `aggressive` setting will cache all static resources, including ones with a query string.- Parameters:
- updateCacheLevelOptions- the- UpdateCacheLevelOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeCacheLevelResponse
 
 - 
updateCacheLevelpublic com.ibm.cloud.sdk.core.http.ServiceCall<CacheLevelResponse> updateCacheLevel() Set cache level setting for a specific zone. The `basic` setting will cache most static resources (i.e., css, images, and JavaScript). The `simplified` setting will ignore the query string when delivering a cached resource. The `aggressive` setting will cache all static resources, including ones with a query string.- Returns:
- a ServiceCallwith a result of typeCacheLevelResponse
 
 
- 
 
-