target.apidocs.com.google.api.services.compute.Compute.TargetPools.html Maven / Gradle / Ivy
The newest version!
Compute.TargetPools (Compute Engine API v1-rev20250320-2.0.0)
com.google.api.services.compute
Class Compute.TargetPools
- java.lang.Object
-
- com.google.api.services.compute.Compute.TargetPools
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.TargetPools.AddHealthCheck
class
Compute.TargetPools.AddInstance
class
Compute.TargetPools.AggregatedList
class
Compute.TargetPools.Delete
class
Compute.TargetPools.Get
class
Compute.TargetPools.GetHealth
class
Compute.TargetPools.Insert
class
Compute.TargetPools.List
class
Compute.TargetPools.RemoveHealthCheck
class
Compute.TargetPools.RemoveInstance
class
Compute.TargetPools.SetBackup
class
Compute.TargetPools.SetSecurityPolicy
-
Constructor Summary
Constructors
Constructor and Description
TargetPools()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.TargetPools.AddHealthCheck
addHealthCheck(String project,
String region,
String targetPool,
TargetPoolsAddHealthCheckRequest content)
Adds health check URLs to a target pool.
Compute.TargetPools.AddInstance
addInstance(String project,
String region,
String targetPool,
TargetPoolsAddInstanceRequest content)
Adds an instance to a target pool.
Compute.TargetPools.AggregatedList
aggregatedList(String project)
Retrieves an aggregated list of target pools.
Compute.TargetPools.Delete
delete(String project,
String region,
String targetPool)
Deletes the specified target pool.
Compute.TargetPools.Get
get(String project,
String region,
String targetPool)
Returns the specified target pool.
Compute.TargetPools.GetHealth
getHealth(String project,
String region,
String targetPool,
InstanceReference content)
Gets the most recent health check results for each IP for the instance that is referenced by the
given target pool.
Compute.TargetPools.Insert
insert(String project,
String region,
TargetPool content)
Creates a target pool in the specified project and region using the data included in the request.
Compute.TargetPools.List
list(String project,
String region)
Retrieves a list of target pools available to the specified project and region.
Compute.TargetPools.RemoveHealthCheck
removeHealthCheck(String project,
String region,
String targetPool,
TargetPoolsRemoveHealthCheckRequest content)
Removes health check URL from a target pool.
Compute.TargetPools.RemoveInstance
removeInstance(String project,
String region,
String targetPool,
TargetPoolsRemoveInstanceRequest content)
Removes instance URL from a target pool.
Compute.TargetPools.SetBackup
setBackup(String project,
String region,
String targetPool,
TargetReference content)
Changes a backup target pool's configurations.
Compute.TargetPools.SetSecurityPolicy
setSecurityPolicy(String project,
String region,
String targetPool,
SecurityPolicyReference content)
Sets the Google Cloud Armor security policy for the specified target pool.
-
-
Method Detail
-
addHealthCheck
public Compute.TargetPools.AddHealthCheck addHealthCheck(String project,
String region,
String targetPool,
TargetPoolsAddHealthCheckRequest content)
throws IOException
Adds health check URLs to a target pool.
Create a request for the method "targetPools.addHealthCheck".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
- Parameters:
project - Project ID for this request.
region - Name of the region scoping this request.
targetPool - Name of the target pool to add a health check to.
content - the TargetPoolsAddHealthCheckRequest
- Returns:
- the request
- Throws:
IOException
-
addInstance
public Compute.TargetPools.AddInstance addInstance(String project,
String region,
String targetPool,
TargetPoolsAddInstanceRequest content)
throws IOException
Adds an instance to a target pool.
Create a request for the method "targetPools.addInstance".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
- Parameters:
project - Project ID for this request.
region - Name of the region scoping this request.
targetPool - Name of the TargetPool resource to add instances to.
content - the TargetPoolsAddInstanceRequest
- Returns:
- the request
- Throws:
IOException
-
aggregatedList
public Compute.TargetPools.AggregatedList aggregatedList(String project)
throws IOException
Retrieves an aggregated list of target pools. To prevent failure, Google recommends that you set
the `returnPartialSuccess` parameter to `true`.
Create a request for the method "targetPools.aggregatedList".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
- Parameters:
project - Project ID for this request.
- Returns:
- the request
- Throws:
IOException
-
delete
public Compute.TargetPools.Delete delete(String project,
String region,
String targetPool)
throws IOException
Deletes the specified target pool.
Create a request for the method "targetPools.delete".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
- Parameters:
project - Project ID for this request.
region - Name of the region scoping this request.
targetPool - Name of the TargetPool resource to delete.
- Returns:
- the request
- Throws:
IOException
-
get
public Compute.TargetPools.Get get(String project,
String region,
String targetPool)
throws IOException
Returns the specified target pool.
Create a request for the method "targetPools.get".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
- Parameters:
project - Project ID for this request.
region - Name of the region scoping this request.
targetPool - Name of the TargetPool resource to return.
- Returns:
- the request
- Throws:
IOException
-
getHealth
public Compute.TargetPools.GetHealth getHealth(String project,
String region,
String targetPool,
InstanceReference content)
throws IOException
Gets the most recent health check results for each IP for the instance that is referenced by the
given target pool.
Create a request for the method "targetPools.getHealth".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
- Parameters:
project - Project ID for this request.
region - Name of the region scoping this request.
targetPool - Name of the TargetPool resource to which the queried instance belongs.
content - the InstanceReference
- Returns:
- the request
- Throws:
IOException
-
insert
public Compute.TargetPools.Insert insert(String project,
String region,
TargetPool content)
throws IOException
Creates a target pool in the specified project and region using the data included in the request.
Create a request for the method "targetPools.insert".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
- Parameters:
project - Project ID for this request.
region - Name of the region scoping this request.
content - the TargetPool
- Returns:
- the request
- Throws:
IOException
-
list
public Compute.TargetPools.List list(String project,
String region)
throws IOException
Retrieves a list of target pools available to the specified project and region.
Create a request for the method "targetPools.list".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
- Parameters:
project - Project ID for this request.
region - Name of the region scoping this request.
- Returns:
- the request
- Throws:
IOException
-
removeHealthCheck
public Compute.TargetPools.RemoveHealthCheck removeHealthCheck(String project,
String region,
String targetPool,
TargetPoolsRemoveHealthCheckRequest content)
throws IOException
Removes health check URL from a target pool.
Create a request for the method "targetPools.removeHealthCheck".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
- Parameters:
project - Project ID for this request.
region - Name of the region for this request.
targetPool - Name of the target pool to remove health checks from.
content - the TargetPoolsRemoveHealthCheckRequest
- Returns:
- the request
- Throws:
IOException
-
removeInstance
public Compute.TargetPools.RemoveInstance removeInstance(String project,
String region,
String targetPool,
TargetPoolsRemoveInstanceRequest content)
throws IOException
Removes instance URL from a target pool.
Create a request for the method "targetPools.removeInstance".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
- Parameters:
project - Project ID for this request.
region - Name of the region scoping this request.
targetPool - Name of the TargetPool resource to remove instances from.
content - the TargetPoolsRemoveInstanceRequest
- Returns:
- the request
- Throws:
IOException
-
setBackup
public Compute.TargetPools.SetBackup setBackup(String project,
String region,
String targetPool,
TargetReference content)
throws IOException
Changes a backup target pool's configurations.
Create a request for the method "targetPools.setBackup".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
- Parameters:
project - Project ID for this request.
region - Name of the region scoping this request.
targetPool - Name of the TargetPool resource to set a backup pool for.
content - the TargetReference
- Returns:
- the request
- Throws:
IOException
-
setSecurityPolicy
public Compute.TargetPools.SetSecurityPolicy setSecurityPolicy(String project,
String region,
String targetPool,
SecurityPolicyReference content)
throws IOException
Sets the Google Cloud Armor security policy for the specified target pool. For more information,
see Google Cloud Armor Overview
Create a request for the method "targetPools.setSecurityPolicy".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
- Parameters:
project - Project ID for this request.
region - Name of the region scoping this request.
targetPool - Name of the TargetPool resource to which the security policy should be set. The name should conform
to RFC1035.
content - the SecurityPolicyReference
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2025 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy