- 1.91.0 (latest)
- 1.90.0
- 1.88.0
- 1.86.0
- 1.85.0
- 1.84.0
- 1.83.0
- 1.82.0
- 1.80.0
- 1.78.0
- 1.77.0
- 1.74.0
- 1.73.0
- 1.72.0
- 1.70.0
- 1.69.0
- 1.68.0
- 1.67.0
- 1.66.0
- 1.65.0
- 1.64.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
| GitHub Repository | Product Reference |
Service Description: The TargetHttpsProxies API.
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
String project = "project-309310695";
String targetHttpsProxy = "targetHttpsProxy833943732";
TargetHttpsProxy response = targetHttpsProxiesClient.get(project, targetHttpsProxy);
}
Note: close() needs to be called on the TargetHttpsProxiesClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
| Method | Description | Method Variants |
|---|---|---|
AggregatedList |
Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
Delete |
Deletes the specified TargetHttpsProxy resource. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
Get |
Returns the specified TargetHttpsProxy resource. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
Insert |
Creates a TargetHttpsProxy resource in the specified project using the data included in the request. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
List |
Retrieves the list of TargetHttpsProxy resources available to the specified project. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
Patch |
Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
SetCertificateMap |
Changes the Certificate Map for TargetHttpsProxy. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
SetQuicOverride |
Sets the QUIC override policy for TargetHttpsProxy. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
SetSslCertificates |
Replaces SslCertificates for TargetHttpsProxy. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
SetSslPolicy |
Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the HTTPS proxy load balancer. They do not affect the connection between the load balancer and the backends. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
SetUrlMap |
Changes the URL map for TargetHttpsProxy. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of TargetHttpsProxiesSettings to create(). For example:
To customize credentials:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
TargetHttpsProxiesSettings targetHttpsProxiesSettings =
TargetHttpsProxiesSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
TargetHttpsProxiesClient targetHttpsProxiesClient =
TargetHttpsProxiesClient.create(targetHttpsProxiesSettings);
To customize the endpoint:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
TargetHttpsProxiesSettings targetHttpsProxiesSettings =
TargetHttpsProxiesSettings.newBuilder().setEndpoint(myEndpoint).build();
TargetHttpsProxiesClient targetHttpsProxiesClient =
TargetHttpsProxiesClient.create(targetHttpsProxiesSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Static Methods
create()
public static final TargetHttpsProxiesClient create()Constructs an instance of TargetHttpsProxiesClient with default settings.
| Returns | |
|---|---|
| Type | Description |
TargetHttpsProxiesClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(TargetHttpsProxiesSettings settings)
public static final TargetHttpsProxiesClient create(TargetHttpsProxiesSettings settings)Constructs an instance of TargetHttpsProxiesClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
| Parameter | |
|---|---|
| Name | Description |
settings |
TargetHttpsProxiesSettings |
| Returns | |
|---|---|
| Type | Description |
TargetHttpsProxiesClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(TargetHttpsProxiesStub stub)
public static final TargetHttpsProxiesClient create(TargetHttpsProxiesStub stub)Constructs an instance of TargetHttpsProxiesClient, using the given stub for making calls. This is for advanced usage - prefer using create(TargetHttpsProxiesSettings).
| Parameter | |
|---|---|
| Name | Description |
stub |
TargetHttpsProxiesStub |
| Returns | |
|---|---|
| Type | Description |
TargetHttpsProxiesClient |
|
Constructors
TargetHttpsProxiesClient(TargetHttpsProxiesSettings settings)
protected TargetHttpsProxiesClient(TargetHttpsProxiesSettings settings)Constructs an instance of TargetHttpsProxiesClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
| Parameter | |
|---|---|
| Name | Description |
settings |
TargetHttpsProxiesSettings |
TargetHttpsProxiesClient(TargetHttpsProxiesStub stub)
protected TargetHttpsProxiesClient(TargetHttpsProxiesStub stub)| Parameter | |
|---|---|
| Name | Description |
stub |
TargetHttpsProxiesStub |
Methods
aggregatedList(AggregatedListTargetHttpsProxiesRequest request)
public final TargetHttpsProxiesClient.AggregatedListPagedResponse aggregatedList(AggregatedListTargetHttpsProxiesRequest request)Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project.
To prevent failure, Google recommends that you set the returnPartialSuccess parameter to
true.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
AggregatedListTargetHttpsProxiesRequest request =
AggregatedListTargetHttpsProxiesRequest.newBuilder()
.setFilter("filter-1274492040")
.setIncludeAllScopes(true)
.setMaxResults(1128457243)
.setOrderBy("orderBy-1207110587")
.setPageToken("pageToken873572522")
.setProject("project-309310695")
.setReturnPartialSuccess(true)
.setServiceProjectNumber(-1293855239)
.build();
for (Map.Entry<String, TargetHttpsProxiesScopedList> element :
targetHttpsProxiesClient.aggregatedList(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
AggregatedListTargetHttpsProxiesRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
TargetHttpsProxiesClient.AggregatedListPagedResponse |
|
aggregatedList(String project)
public final TargetHttpsProxiesClient.AggregatedListPagedResponse aggregatedList(String project)Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project.
To prevent failure, Google recommends that you set the returnPartialSuccess parameter to
true.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
String project = "project-309310695";
for (Map.Entry<String, TargetHttpsProxiesScopedList> element :
targetHttpsProxiesClient.aggregatedList(project).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
project |
StringName of the project scoping this request. |
| Returns | |
|---|---|
| Type | Description |
TargetHttpsProxiesClient.AggregatedListPagedResponse |
|
aggregatedListCallable()
public final UnaryCallable<AggregatedListTargetHttpsProxiesRequest,TargetHttpsProxyAggregatedList> aggregatedListCallable()Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project.
To prevent failure, Google recommends that you set the returnPartialSuccess parameter to
true.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
AggregatedListTargetHttpsProxiesRequest request =
AggregatedListTargetHttpsProxiesRequest.newBuilder()
.setFilter("filter-1274492040")
.setIncludeAllScopes(true)
.setMaxResults(1128457243)
.setOrderBy("orderBy-1207110587")
.setPageToken("pageToken873572522")
.setProject("project-309310695")
.setReturnPartialSuccess(true)
.setServiceProjectNumber(-1293855239)
.build();
while (true) {
TargetHttpsProxyAggregatedList response =
targetHttpsProxiesClient.aggregatedListCallable().call(request);
for (Map.Entry<String, TargetHttpsProxiesScopedList> element : response.getItemsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<AggregatedListTargetHttpsProxiesRequest,TargetHttpsProxyAggregatedList> |
|
aggregatedListPagedCallable()
public final UnaryCallable<AggregatedListTargetHttpsProxiesRequest,TargetHttpsProxiesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project.
To prevent failure, Google recommends that you set the returnPartialSuccess parameter to
true.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
AggregatedListTargetHttpsProxiesRequest request =
AggregatedListTargetHttpsProxiesRequest.newBuilder()
.setFilter("filter-1274492040")
.setIncludeAllScopes(true)
.setMaxResults(1128457243)
.setOrderBy("orderBy-1207110587")
.setPageToken("pageToken873572522")
.setProject("project-309310695")
.setReturnPartialSuccess(true)
.setServiceProjectNumber(-1293855239)
.build();
ApiFuture<Map.Entry<String, TargetHttpsProxiesScopedList>> future =
targetHttpsProxiesClient.aggregatedListPagedCallable().futureCall(request);
// Do something.
for (Map.Entry<String, TargetHttpsProxiesScopedList> element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<AggregatedListTargetHttpsProxiesRequest,AggregatedListPagedResponse> |
|
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)| Parameters | |
|---|---|
| Name | Description |
duration |
long |
unit |
TimeUnit |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
| Exceptions | |
|---|---|
| Type | Description |
InterruptedException |
|
close()
public final void close()deleteAsync(DeleteTargetHttpsProxyRequest request)
public final OperationFuture<Operation,Operation> deleteAsync(DeleteTargetHttpsProxyRequest request)Deletes the specified TargetHttpsProxy resource.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
DeleteTargetHttpsProxyRequest request =
DeleteTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxy("targetHttpsProxy833943732")
.build();
Operation response = targetHttpsProxiesClient.deleteAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteTargetHttpsProxyRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Operation,Operation> |
|