public interface TargetPoolApi
| Modifier and Type | Interface and Description |
|---|---|
static class |
TargetPoolApi.TargetPoolPages |
| Modifier and Type | Method and Description |
|---|---|
Operation |
addHealthCheck(String targetPool,
List<URI> healthChecks)
Adds health check URL to targetPool.
|
Operation |
addInstance(String targetPool,
List<URI> instances)
Adds instance to the targetPool.
|
Operation |
create(TargetPoolCreationOptions options)
Creates a TargetPool resource in the specified project and region using the data included in the request.
|
Operation |
delete(String targetPool)
Deletes a target pool by name and returns the operation in progress, or null if not found.
|
TargetPool |
get(String targetPool)
Returns a target pool by name or null if not found.
|
HealthStatus |
getHealth(String targetPool,
URI instance)
Gets the HealthStatus of an instance in a targetPool.
|
Iterator<ListPage<TargetPool>> |
list() |
Iterator<ListPage<TargetPool>> |
list(ListOptions options) |
ListPage<TargetPool> |
listPage(String pageToken,
ListOptions listOptions)
Retrieves the list of target pool resources available to the specified project.
|
Operation |
removeHealthCheck(String targetPool,
List<URI> healthChecks)
Removes health check URL from targetPool.
|
Operation |
removeInstance(String targetPool,
List<URI> instances)
Removes instance URL from targetPool.
|
Operation |
setBackup(String targetPool,
Float failoverRatio,
URI target)
Changes backup pool configurations.
|
Operation |
setBackup(String targetPool,
URI target)
Changes backup pool configurations.
|
@Named(value="TargetPools:get") @Nullable TargetPool get(String targetPool)
@Named(value="TargetPools:insert") Operation create(TargetPoolCreationOptions options)
name - the name of the targetPool.options - options of the TargetPool to create.@Named(value="TargetPools:delete") @Nullable Operation delete(String targetPool)
@Named(value="TargetPools:addInstance") Operation addInstance(String targetPool, List<URI> instances)
targetPool - the name of the target pool.instances - the self-links of the instances to be added to targetPool.@Named(value="TargetPools:removeInstance") Operation removeInstance(String targetPool, List<URI> instances)
targetPool - the name of the target pool.instances - the self-links of the instances to be removed from the targetPool.@Named(value="TargetPools:addHealthCheck") Operation addHealthCheck(String targetPool, List<URI> healthChecks)
targetPool - the name of the target pool.healthChecks - the self-links of the health checks to be added to targetPool.@Named(value="TargetPools:removeHealthCheck") Operation removeHealthCheck(String targetPool, List<URI> healthChecks)
targetPool - the name of the target pool.healthChecks - the self-links of the health checks to be removed from the targetPool.@Named(value="TargetPools:getHealth") HealthStatus getHealth(String targetPool, URI instance)
targetPool - the name of the target pool.healthChecks - the self-links of the health checks to be removed from the targetPool.@Named(value="TargetPools:setBackup") @Nullable Operation setBackup(String targetPool, URI target)
targetPool - the name of the target pool.target - the URL of target pool for which you want to use as backup.
WARNING: failoverRatio and BackupPool must either both be set or not set. This method
is only for updating the backup pool on a Target Pool that already has a
failoverRatio.@Named(value="TargetPools:setBackup") @Nullable Operation setBackup(String targetPool, Float failoverRatio, URI target)
targetPool - the name of the target pool.target - the URL of target pool for which you want to use as backup.@Named(value="TargetPools:list") ListPage<TargetPool> listPage(@Nullable String pageToken, ListOptions listOptions)
pageToken - marks the beginning of the next list pagelistOptions - listing options@Named(value="TargetPools:list") Iterator<ListPage<TargetPool>> list()
listPage(String, ListOptions)@Named(value="TargetPools:list") Iterator<ListPage<TargetPool>> list(ListOptions options)
listPage(String, ListOptions)Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.