Class Zones
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.BaseService
-
- com.ibm.cloud.networking.zones.v1.Zones
-
public class Zones extends com.ibm.cloud.sdk.core.service.BaseServiceCIS Zones.- Version:
- v1
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_SERVICE_NAMEstatic StringDEFAULT_SERVICE_URL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.cloud.sdk.core.http.ServiceCall<ZoneResp>createZone()Create zone.com.ibm.cloud.sdk.core.http.ServiceCall<ZoneResp>createZone(CreateZoneOptions createZoneOptions)Create zone.com.ibm.cloud.sdk.core.http.ServiceCall<DeleteZoneResp>deleteZone(DeleteZoneOptions deleteZoneOptions)Delete zone.StringgetCrn()Gets the crn.com.ibm.cloud.sdk.core.http.ServiceCall<ZoneResp>getZone(GetZoneOptions getZoneOptions)Get zone.com.ibm.cloud.sdk.core.http.ServiceCall<ListZonesResp>listZones()List all zones.com.ibm.cloud.sdk.core.http.ServiceCall<ListZonesResp>listZones(ListZonesOptions listZonesOptions)List all zones.static ZonesnewInstance(String crn)Class method which constructs an instance of the `Zones` client.static ZonesnewInstance(String crn, String serviceName)Class method which constructs an instance of the `Zones` client.voidsetCrn(String crn)Sets the crn.com.ibm.cloud.sdk.core.http.ServiceCall<ZoneResp>updateZone(UpdateZoneOptions updateZoneOptions)Update zone.com.ibm.cloud.sdk.core.http.ServiceCall<ZoneActivationcheckResp>zoneActivationCheck(ZoneActivationCheckOptions zoneActivationCheckOptions)Check zone.-
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
-
Zones
public Zones(String crn, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs an instance of the `Zones` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
crn- Full url-encoded CRN of the service instance.serviceName- the service name to be used when configuring the client instanceauthenticator- theAuthenticatorinstance to be configured for this client
-
-
Method Detail
-
newInstance
public static Zones newInstance(String crn)
Class method which constructs an instance of the `Zones` client. The default service name is used to configure the client instance.- Parameters:
crn- Full url-encoded CRN of the service instance.- Returns:
- an instance of the `Zones` client using external configuration
-
newInstance
public static Zones newInstance(String crn, String serviceName)
Class method which constructs an instance of the `Zones` client. The specified service name is used to configure the client instance.- Parameters:
crn- Full url-encoded CRN of the service instance.serviceName- the service name to be used when configuring the client instance- Returns:
- an instance of the `Zones` client using external configuration
-
getCrn
public String getCrn()
Gets the crn. Full url-encoded CRN of the service instance.- Returns:
- the crn
-
setCrn
public void setCrn(String crn)
Sets the crn.- Parameters:
crn- the new crn
-
listZones
public com.ibm.cloud.sdk.core.http.ServiceCall<ListZonesResp> listZones(ListZonesOptions listZonesOptions)
List all zones. List all zones for a service instance.- Parameters:
listZonesOptions- theListZonesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeListZonesResp
-
listZones
public com.ibm.cloud.sdk.core.http.ServiceCall<ListZonesResp> listZones()
List all zones. List all zones for a service instance.- Returns:
- a
ServiceCallwith a result of typeListZonesResp
-
createZone
public com.ibm.cloud.sdk.core.http.ServiceCall<ZoneResp> createZone(CreateZoneOptions createZoneOptions)
Create zone. Add a new zone for a given service instance.- Parameters:
createZoneOptions- theCreateZoneOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeZoneResp
-
createZone
public com.ibm.cloud.sdk.core.http.ServiceCall<ZoneResp> createZone()
Create zone. Add a new zone for a given service instance.- Returns:
- a
ServiceCallwith a result of typeZoneResp
-
deleteZone
public com.ibm.cloud.sdk.core.http.ServiceCall<DeleteZoneResp> deleteZone(DeleteZoneOptions deleteZoneOptions)
Delete zone. Delete a zone given its id.- Parameters:
deleteZoneOptions- theDeleteZoneOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeDeleteZoneResp
-
getZone
public com.ibm.cloud.sdk.core.http.ServiceCall<ZoneResp> getZone(GetZoneOptions getZoneOptions)
Get zone. Get the details of a zone for a given service instance and given zone id.- Parameters:
getZoneOptions- theGetZoneOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeZoneResp
-
updateZone
public com.ibm.cloud.sdk.core.http.ServiceCall<ZoneResp> updateZone(UpdateZoneOptions updateZoneOptions)
Update zone. Update the paused field of the zone.- Parameters:
updateZoneOptions- theUpdateZoneOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeZoneResp
-
zoneActivationCheck
public com.ibm.cloud.sdk.core.http.ServiceCall<ZoneActivationcheckResp> zoneActivationCheck(ZoneActivationCheckOptions zoneActivationCheckOptions)
Check zone. Perform activation check on zone for status.- Parameters:
zoneActivationCheckOptions- theZoneActivationCheckOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeZoneActivationcheckResp
-
-