@Path(value="/targetPools")
@Consumes(value="application/json")
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")
@GET
@Path(value="/{targetPool}")
@Nullable
TargetPool get(@PathParam(value="targetPool")
String targetPool)
@Named(value="TargetPools:insert") @POST @Produces(value="application/json") Operation create(TargetPoolCreationOptions options)
name - the name of the targetPool.options - options of the TargetPool to create.@Named(value="TargetPools:delete")
@DELETE
@Path(value="/{targetPool}")
@Nullable
Operation delete(@PathParam(value="targetPool")
String targetPool)
@Named(value="TargetPools:addInstance")
@POST
@Path(value="/{targetPool}/addInstance")
Operation addInstance(@PathParam(value="targetPool")
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")
@POST
@Path(value="/{targetPool}/removeInstance")
Operation removeInstance(@PathParam(value="targetPool")
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")
@POST
@Path(value="/{targetPool}/addHealthCheck")
Operation addHealthCheck(@PathParam(value="targetPool")
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")
@POST
@Path(value="/{targetPool}/removeHealthCheck")
Operation removeHealthCheck(@PathParam(value="targetPool")
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")
@POST
@Path(value="/{targetPool}/getHealth")
HealthStatus getHealth(@PathParam(value="targetPool")
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")
@POST
@Path(value="/{targetPool}/setBackup")
@Nullable
Operation setBackup(@PathParam(value="targetPool")
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")
@POST
@Path(value="/{targetPool}/setBackup")
@Nullable
Operation setBackup(@PathParam(value="targetPool")
String targetPool,
@QueryParam(value="failoverRatio")
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") @GET ListPage<TargetPool> listPage(@Nullable@QueryParam(value="pageToken") String pageToken, ListOptions listOptions)
pageToken - marks the beginning of the next list pagelistOptions - listing options@Named(value="TargetPools:list") @GET Iterator<ListPage<TargetPool>> list()
listPage(String, ListOptions)@Named(value="TargetPools:list") @GET Iterator<ListPage<TargetPool>> list(ListOptions options)
listPage(String, ListOptions)Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.