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 Summary
Fields Modifier and Type Field Description static StringDEFAULT_SERVICE_NAMEstatic StringDEFAULT_SERVICE_URL
-
Constructor Summary
Constructors 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 Summary
All 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.BaseService
configureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
-
-
-
-
Field Detail
-
DEFAULT_SERVICE_NAME
public static final String DEFAULT_SERVICE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_SERVICE_URL
public static final String DEFAULT_SERVICE_URL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CachingApi
public 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 instanceauthenticator- theAuthenticatorinstance to be configured for this client
-
-
Method Detail
-
newInstance
public 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
-
newInstance
public 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
-
getCrn
public String getCrn()
Gets the crn. cloud resource name.- Returns:
- the crn
-
setCrn
public void setCrn(String crn)
Sets the crn.- Parameters:
crn- the new crn
-
getZoneId
public String getZoneId()
Gets the zoneId. zone id.- Returns:
- the zoneId
-
setZoneId
public void setZoneId(String zoneId)
Sets the zoneId.- Parameters:
zoneId- the new zoneId
-
purgeAll
public 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- thePurgeAllOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typePurgeAllResponse
-
purgeAll
public 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
-
purgeByUrls
public 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- thePurgeByUrlsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typePurgeAllResponse
-
purgeByUrls
public 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
-
purgeByCacheTags
public 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- thePurgeByCacheTagsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typePurgeAllResponse
-
purgeByCacheTags
public 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
-
purgeByHosts
public 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- thePurgeByHostsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typePurgeAllResponse
-
purgeByHosts
public 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
-
getBrowserCacheTtl
public 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- theGetBrowserCacheTtlOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeBrowserTTLResponse
-
getBrowserCacheTtl
public 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
-
updateBrowserCacheTtl
public 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- theUpdateBrowserCacheTtlOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeBrowserTTLResponse
-
updateBrowserCacheTtl
public 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
-
getDevelopmentMode
public com.ibm.cloud.sdk.core.http.ServiceCall<DeveopmentModeResponse> getDevelopmentMode(GetDevelopmentModeOptions getDevelopmentModeOptions)
Get development mode setting. Get development mode setting.- Parameters:
getDevelopmentModeOptions- theGetDevelopmentModeOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeDeveopmentModeResponse
-
getDevelopmentMode
public com.ibm.cloud.sdk.core.http.ServiceCall<DeveopmentModeResponse> getDevelopmentMode()
Get development mode setting. Get development mode setting.- Returns:
- a
ServiceCallwith a result of typeDeveopmentModeResponse
-
updateDevelopmentMode
public com.ibm.cloud.sdk.core.http.ServiceCall<DeveopmentModeResponse> updateDevelopmentMode(UpdateDevelopmentModeOptions updateDevelopmentModeOptions)
Change development mode setting. Change development mode setting.- Parameters:
updateDevelopmentModeOptions- theUpdateDevelopmentModeOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeDeveopmentModeResponse
-
updateDevelopmentMode
public com.ibm.cloud.sdk.core.http.ServiceCall<DeveopmentModeResponse> updateDevelopmentMode()
Change development mode setting. Change development mode setting.- Returns:
- a
ServiceCallwith a result of typeDeveopmentModeResponse
-
getQueryStringSort
public 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- theGetQueryStringSortOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeEnableQueryStringSortResponse
-
getQueryStringSort
public 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
-
updateQueryStringSort
public 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- theUpdateQueryStringSortOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeEnableQueryStringSortResponse
-
updateQueryStringSort
public 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
-
getCacheLevel
public 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- theGetCacheLevelOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeCacheLevelResponse
-
getCacheLevel
public 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
-
updateCacheLevel
public 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- theUpdateCacheLevelOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeCacheLevelResponse
-
updateCacheLevel
public 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
-
-