@Generated(value="by gapic-generator-java") public class TargetHttpsProxiesClient extends Object implements com.google.api.gax.core.BackgroundResource
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 `returnPartialSuccess` parameter to `true`. |
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 `OperationFuture`, which is used to track polling of the service.
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 `OperationFuture`, which is used to track polling of the service.
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 uses JSON 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 `OperationFuture`, which is used to track polling of the service.
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 `OperationFuture`, which is used to track polling of the service.
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 `OperationFuture`, which is used to track polling of the service.
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 `OperationFuture`, which is used to track polling of the service.
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 `OperationFuture`, which is used to track polling of the service.
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 `OperationFuture`, which is used to track polling of the service.
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
TargetHttpsProxiesClient.AggregatedListFixedSizeCollection |
static class |
TargetHttpsProxiesClient.AggregatedListPage |
static class |
TargetHttpsProxiesClient.AggregatedListPagedResponse |
static class |
TargetHttpsProxiesClient.ListFixedSizeCollection |
static class |
TargetHttpsProxiesClient.ListPage |
static class |
TargetHttpsProxiesClient.ListPagedResponse |
| Modifier | Constructor and Description |
|---|---|
protected |
TargetHttpsProxiesClient(TargetHttpsProxiesSettings settings)
Constructs an instance of TargetHttpsProxiesClient, using the given settings.
|
protected |
TargetHttpsProxiesClient(TargetHttpsProxiesStub stub) |
| Modifier and Type | Method and Description |
|---|---|
TargetHttpsProxiesClient.AggregatedListPagedResponse |
aggregatedList(AggregatedListTargetHttpsProxiesRequest request)
Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the
specified project.
|
TargetHttpsProxiesClient.AggregatedListPagedResponse |
aggregatedList(String project)
Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the
specified project.
|
com.google.api.gax.rpc.UnaryCallable<AggregatedListTargetHttpsProxiesRequest,TargetHttpsProxyAggregatedList> |
aggregatedListCallable()
Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the
specified project.
|
com.google.api.gax.rpc.UnaryCallable<AggregatedListTargetHttpsProxiesRequest,TargetHttpsProxiesClient.AggregatedListPagedResponse> |
aggregatedListPagedCallable()
Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the
specified project.
|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static TargetHttpsProxiesClient |
create()
Constructs an instance of TargetHttpsProxiesClient with default settings.
|
static TargetHttpsProxiesClient |
create(TargetHttpsProxiesSettings settings)
Constructs an instance of TargetHttpsProxiesClient, using the given settings.
|
static TargetHttpsProxiesClient |
create(TargetHttpsProxiesStub stub)
Constructs an instance of TargetHttpsProxiesClient, using the given stub for making calls.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
deleteAsync(DeleteTargetHttpsProxyRequest request)
Deletes the specified TargetHttpsProxy resource.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
deleteAsync(String project,
String targetHttpsProxy)
Deletes the specified TargetHttpsProxy resource.
|
com.google.api.gax.rpc.UnaryCallable<DeleteTargetHttpsProxyRequest,Operation> |
deleteCallable()
Deletes the specified TargetHttpsProxy resource.
|
com.google.api.gax.rpc.OperationCallable<DeleteTargetHttpsProxyRequest,Operation,Operation> |
deleteOperationCallable()
Deletes the specified TargetHttpsProxy resource.
|
TargetHttpsProxy |
get(GetTargetHttpsProxyRequest request)
Returns the specified TargetHttpsProxy resource.
|
TargetHttpsProxy |
get(String project,
String targetHttpsProxy)
Returns the specified TargetHttpsProxy resource.
|
com.google.api.gax.rpc.UnaryCallable<GetTargetHttpsProxyRequest,TargetHttpsProxy> |
getCallable()
Returns the specified TargetHttpsProxy resource.
|
TargetHttpsProxiesSettings |
getSettings() |
TargetHttpsProxiesStub |
getStub() |
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
insertAsync(InsertTargetHttpsProxyRequest request)
Creates a TargetHttpsProxy resource in the specified project using the data included in the
request.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
insertAsync(String project,
TargetHttpsProxy targetHttpsProxyResource)
Creates a TargetHttpsProxy resource in the specified project using the data included in the
request.
|
com.google.api.gax.rpc.UnaryCallable<InsertTargetHttpsProxyRequest,Operation> |
insertCallable()
Creates a TargetHttpsProxy resource in the specified project using the data included in the
request.
|
com.google.api.gax.rpc.OperationCallable<InsertTargetHttpsProxyRequest,Operation,Operation> |
insertOperationCallable()
Creates a TargetHttpsProxy resource in the specified project using the data included in the
request.
|
boolean |
isShutdown() |
boolean |
isTerminated() |
TargetHttpsProxiesClient.ListPagedResponse |
list(ListTargetHttpsProxiesRequest request)
Retrieves the list of TargetHttpsProxy resources available to the specified project.
|
TargetHttpsProxiesClient.ListPagedResponse |
list(String project)
Retrieves the list of TargetHttpsProxy resources available to the specified project.
|
com.google.api.gax.rpc.UnaryCallable<ListTargetHttpsProxiesRequest,TargetHttpsProxyList> |
listCallable()
Retrieves the list of TargetHttpsProxy resources available to the specified project.
|
com.google.api.gax.rpc.UnaryCallable<ListTargetHttpsProxiesRequest,TargetHttpsProxiesClient.ListPagedResponse> |
listPagedCallable()
Retrieves the list of TargetHttpsProxy resources available to the specified project.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
patchAsync(PatchTargetHttpsProxyRequest request)
Patches the specified TargetHttpsProxy resource with the data included in the request.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
patchAsync(String project,
String targetHttpsProxy,
TargetHttpsProxy targetHttpsProxyResource)
Patches the specified TargetHttpsProxy resource with the data included in the request.
|
com.google.api.gax.rpc.UnaryCallable<PatchTargetHttpsProxyRequest,Operation> |
patchCallable()
Patches the specified TargetHttpsProxy resource with the data included in the request.
|
com.google.api.gax.rpc.OperationCallable<PatchTargetHttpsProxyRequest,Operation,Operation> |
patchOperationCallable()
Patches the specified TargetHttpsProxy resource with the data included in the request.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
setCertificateMapAsync(SetCertificateMapTargetHttpsProxyRequest request)
Changes the Certificate Map for TargetHttpsProxy.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
setCertificateMapAsync(String project,
String targetHttpsProxy,
TargetHttpsProxiesSetCertificateMapRequest targetHttpsProxiesSetCertificateMapRequestResource)
Changes the Certificate Map for TargetHttpsProxy.
|
com.google.api.gax.rpc.UnaryCallable<SetCertificateMapTargetHttpsProxyRequest,Operation> |
setCertificateMapCallable()
Changes the Certificate Map for TargetHttpsProxy.
|
com.google.api.gax.rpc.OperationCallable<SetCertificateMapTargetHttpsProxyRequest,Operation,Operation> |
setCertificateMapOperationCallable()
Changes the Certificate Map for TargetHttpsProxy.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
setQuicOverrideAsync(SetQuicOverrideTargetHttpsProxyRequest request)
Sets the QUIC override policy for TargetHttpsProxy.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
setQuicOverrideAsync(String project,
String targetHttpsProxy,
TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource)
Sets the QUIC override policy for TargetHttpsProxy.
|
com.google.api.gax.rpc.UnaryCallable<SetQuicOverrideTargetHttpsProxyRequest,Operation> |
setQuicOverrideCallable()
Sets the QUIC override policy for TargetHttpsProxy.
|
com.google.api.gax.rpc.OperationCallable<SetQuicOverrideTargetHttpsProxyRequest,Operation,Operation> |
setQuicOverrideOperationCallable()
Sets the QUIC override policy for TargetHttpsProxy.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
setSslCertificatesAsync(SetSslCertificatesTargetHttpsProxyRequest request)
Replaces SslCertificates for TargetHttpsProxy.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
setSslCertificatesAsync(String project,
String targetHttpsProxy,
TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource)
Replaces SslCertificates for TargetHttpsProxy.
|
com.google.api.gax.rpc.UnaryCallable<SetSslCertificatesTargetHttpsProxyRequest,Operation> |
setSslCertificatesCallable()
Replaces SslCertificates for TargetHttpsProxy.
|
com.google.api.gax.rpc.OperationCallable<SetSslCertificatesTargetHttpsProxyRequest,Operation,Operation> |
setSslCertificatesOperationCallable()
Replaces SslCertificates for TargetHttpsProxy.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
setSslPolicyAsync(SetSslPolicyTargetHttpsProxyRequest request)
Sets the SSL policy for TargetHttpsProxy.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
setSslPolicyAsync(String project,
String targetHttpsProxy,
SslPolicyReference sslPolicyReferenceResource)
Sets the SSL policy for TargetHttpsProxy.
|
com.google.api.gax.rpc.UnaryCallable<SetSslPolicyTargetHttpsProxyRequest,Operation> |
setSslPolicyCallable()
Sets the SSL policy for TargetHttpsProxy.
|
com.google.api.gax.rpc.OperationCallable<SetSslPolicyTargetHttpsProxyRequest,Operation,Operation> |
setSslPolicyOperationCallable()
Sets the SSL policy for TargetHttpsProxy.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
setUrlMapAsync(SetUrlMapTargetHttpsProxyRequest request)
Changes the URL map for TargetHttpsProxy.
|
com.google.api.gax.longrunning.OperationFuture<Operation,Operation> |
setUrlMapAsync(String project,
String targetHttpsProxy,
UrlMapReference urlMapReferenceResource)
Changes the URL map for TargetHttpsProxy.
|
com.google.api.gax.rpc.UnaryCallable<SetUrlMapTargetHttpsProxyRequest,Operation> |
setUrlMapCallable()
Changes the URL map for TargetHttpsProxy.
|
com.google.api.gax.rpc.OperationCallable<SetUrlMapTargetHttpsProxyRequest,Operation,Operation> |
setUrlMapOperationCallable()
Changes the URL map for TargetHttpsProxy.
|
void |
shutdown() |
void |
shutdownNow() |
protected TargetHttpsProxiesClient(TargetHttpsProxiesSettings settings) throws IOException
IOExceptionprotected TargetHttpsProxiesClient(TargetHttpsProxiesStub stub)
public static final TargetHttpsProxiesClient create() throws IOException
IOExceptionpublic static final TargetHttpsProxiesClient create(TargetHttpsProxiesSettings settings) throws IOException
IOExceptionpublic static final TargetHttpsProxiesClient create(TargetHttpsProxiesStub stub)
public final TargetHttpsProxiesSettings getSettings()
public TargetHttpsProxiesStub getStub()
public final TargetHttpsProxiesClient.AggregatedListPagedResponse aggregatedList(String project)
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);
}
}
project - Name of the project scoping this request.com.google.api.gax.rpc.ApiException - if the remote call failspublic final TargetHttpsProxiesClient.AggregatedListPagedResponse aggregatedList(AggregatedListTargetHttpsProxiesRequest request)
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);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<AggregatedListTargetHttpsProxiesRequest,TargetHttpsProxiesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
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);
}
}
public final com.google.api.gax.rpc.UnaryCallable<AggregatedListTargetHttpsProxiesRequest,TargetHttpsProxyAggregatedList> aggregatedListCallable()
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;
}
}
}
public final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> deleteAsync(String project, String targetHttpsProxy)
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";
String targetHttpsProxy = "targetHttpsProxy833943732";
Operation response = targetHttpsProxiesClient.deleteAsync(project, targetHttpsProxy).get();
}
project - Project ID for this request.targetHttpsProxy - Name of the TargetHttpsProxy resource to delete.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> deleteAsync(DeleteTargetHttpsProxyRequest request)
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();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteTargetHttpsProxyRequest,Operation,Operation> deleteOperationCallable()
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();
OperationFuture<Operation, Operation> future =
targetHttpsProxiesClient.deleteOperationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteTargetHttpsProxyRequest,Operation> deleteCallable()
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();
ApiFuture<Operation> future = targetHttpsProxiesClient.deleteCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final TargetHttpsProxy get(String project, String targetHttpsProxy)
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";
String targetHttpsProxy = "targetHttpsProxy833943732";
TargetHttpsProxy response = targetHttpsProxiesClient.get(project, targetHttpsProxy);
}
project - Project ID for this request.targetHttpsProxy - Name of the TargetHttpsProxy resource to return.com.google.api.gax.rpc.ApiException - if the remote call failspublic final TargetHttpsProxy get(GetTargetHttpsProxyRequest request)
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()) {
GetTargetHttpsProxyRequest request =
GetTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setTargetHttpsProxy("targetHttpsProxy833943732")
.build();
TargetHttpsProxy response = targetHttpsProxiesClient.get(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetTargetHttpsProxyRequest,TargetHttpsProxy> getCallable()
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()) {
GetTargetHttpsProxyRequest request =
GetTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setTargetHttpsProxy("targetHttpsProxy833943732")
.build();
ApiFuture<TargetHttpsProxy> future =
targetHttpsProxiesClient.getCallable().futureCall(request);
// Do something.
TargetHttpsProxy response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> insertAsync(String project, TargetHttpsProxy targetHttpsProxyResource)
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";
TargetHttpsProxy targetHttpsProxyResource = TargetHttpsProxy.newBuilder().build();
Operation response =
targetHttpsProxiesClient.insertAsync(project, targetHttpsProxyResource).get();
}
project - Project ID for this request.targetHttpsProxyResource - The body resource for this requestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> insertAsync(InsertTargetHttpsProxyRequest request)
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()) {
InsertTargetHttpsProxyRequest request =
InsertTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxyResource(TargetHttpsProxy.newBuilder().build())
.build();
Operation response = targetHttpsProxiesClient.insertAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<InsertTargetHttpsProxyRequest,Operation,Operation> insertOperationCallable()
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()) {
InsertTargetHttpsProxyRequest request =
InsertTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxyResource(TargetHttpsProxy.newBuilder().build())
.build();
OperationFuture<Operation, Operation> future =
targetHttpsProxiesClient.insertOperationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<InsertTargetHttpsProxyRequest,Operation> insertCallable()
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()) {
InsertTargetHttpsProxyRequest request =
InsertTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxyResource(TargetHttpsProxy.newBuilder().build())
.build();
ApiFuture<Operation> future = targetHttpsProxiesClient.insertCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final TargetHttpsProxiesClient.ListPagedResponse list(String project)
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 (TargetHttpsProxy element : targetHttpsProxiesClient.list(project).iterateAll()) {
// doThingsWith(element);
}
}
project - Project ID for this request.com.google.api.gax.rpc.ApiException - if the remote call failspublic final TargetHttpsProxiesClient.ListPagedResponse list(ListTargetHttpsProxiesRequest request)
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()) {
ListTargetHttpsProxiesRequest request =
ListTargetHttpsProxiesRequest.newBuilder()
.setFilter("filter-1274492040")
.setMaxResults(1128457243)
.setOrderBy("orderBy-1207110587")
.setPageToken("pageToken873572522")
.setProject("project-309310695")
.setReturnPartialSuccess(true)
.build();
for (TargetHttpsProxy element : targetHttpsProxiesClient.list(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListTargetHttpsProxiesRequest,TargetHttpsProxiesClient.ListPagedResponse> listPagedCallable()
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()) {
ListTargetHttpsProxiesRequest request =
ListTargetHttpsProxiesRequest.newBuilder()
.setFilter("filter-1274492040")
.setMaxResults(1128457243)
.setOrderBy("orderBy-1207110587")
.setPageToken("pageToken873572522")
.setProject("project-309310695")
.setReturnPartialSuccess(true)
.build();
ApiFuture<TargetHttpsProxy> future =
targetHttpsProxiesClient.listPagedCallable().futureCall(request);
// Do something.
for (TargetHttpsProxy element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListTargetHttpsProxiesRequest,TargetHttpsProxyList> listCallable()
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()) {
ListTargetHttpsProxiesRequest request =
ListTargetHttpsProxiesRequest.newBuilder()
.setFilter("filter-1274492040")
.setMaxResults(1128457243)
.setOrderBy("orderBy-1207110587")
.setPageToken("pageToken873572522")
.setProject("project-309310695")
.setReturnPartialSuccess(true)
.build();
while (true) {
TargetHttpsProxyList response = targetHttpsProxiesClient.listCallable().call(request);
for (TargetHttpsProxy element : response.getItemsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> patchAsync(String project, String targetHttpsProxy, TargetHttpsProxy targetHttpsProxyResource)
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";
String targetHttpsProxy = "targetHttpsProxy833943732";
TargetHttpsProxy targetHttpsProxyResource = TargetHttpsProxy.newBuilder().build();
Operation response =
targetHttpsProxiesClient
.patchAsync(project, targetHttpsProxy, targetHttpsProxyResource)
.get();
}
project - Project ID for this request.targetHttpsProxy - Name of the TargetHttpsProxy resource to patch.targetHttpsProxyResource - The body resource for this requestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> patchAsync(PatchTargetHttpsProxyRequest request)
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()) {
PatchTargetHttpsProxyRequest request =
PatchTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxy("targetHttpsProxy833943732")
.setTargetHttpsProxyResource(TargetHttpsProxy.newBuilder().build())
.build();
Operation response = targetHttpsProxiesClient.patchAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<PatchTargetHttpsProxyRequest,Operation,Operation> patchOperationCallable()
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()) {
PatchTargetHttpsProxyRequest request =
PatchTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxy("targetHttpsProxy833943732")
.setTargetHttpsProxyResource(TargetHttpsProxy.newBuilder().build())
.build();
OperationFuture<Operation, Operation> future =
targetHttpsProxiesClient.patchOperationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<PatchTargetHttpsProxyRequest,Operation> patchCallable()
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()) {
PatchTargetHttpsProxyRequest request =
PatchTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxy("targetHttpsProxy833943732")
.setTargetHttpsProxyResource(TargetHttpsProxy.newBuilder().build())
.build();
ApiFuture<Operation> future = targetHttpsProxiesClient.patchCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> setCertificateMapAsync(String project, String targetHttpsProxy, TargetHttpsProxiesSetCertificateMapRequest targetHttpsProxiesSetCertificateMapRequestResource)
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";
String targetHttpsProxy = "targetHttpsProxy833943732";
TargetHttpsProxiesSetCertificateMapRequest
targetHttpsProxiesSetCertificateMapRequestResource =
TargetHttpsProxiesSetCertificateMapRequest.newBuilder().build();
Operation response =
targetHttpsProxiesClient
.setCertificateMapAsync(
project, targetHttpsProxy, targetHttpsProxiesSetCertificateMapRequestResource)
.get();
}
project - Project ID for this request.targetHttpsProxy - Name of the TargetHttpsProxy resource whose CertificateMap is to be
set. The name must be 1-63 characters long, and comply with RFC1035.targetHttpsProxiesSetCertificateMapRequestResource - The body resource for this requestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> setCertificateMapAsync(SetCertificateMapTargetHttpsProxyRequest request)
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()) {
SetCertificateMapTargetHttpsProxyRequest request =
SetCertificateMapTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxiesSetCertificateMapRequestResource(
TargetHttpsProxiesSetCertificateMapRequest.newBuilder().build())
.setTargetHttpsProxy("targetHttpsProxy833943732")
.build();
Operation response = targetHttpsProxiesClient.setCertificateMapAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<SetCertificateMapTargetHttpsProxyRequest,Operation,Operation> setCertificateMapOperationCallable()
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()) {
SetCertificateMapTargetHttpsProxyRequest request =
SetCertificateMapTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxiesSetCertificateMapRequestResource(
TargetHttpsProxiesSetCertificateMapRequest.newBuilder().build())
.setTargetHttpsProxy("targetHttpsProxy833943732")
.build();
OperationFuture<Operation, Operation> future =
targetHttpsProxiesClient.setCertificateMapOperationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<SetCertificateMapTargetHttpsProxyRequest,Operation> setCertificateMapCallable()
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()) {
SetCertificateMapTargetHttpsProxyRequest request =
SetCertificateMapTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxiesSetCertificateMapRequestResource(
TargetHttpsProxiesSetCertificateMapRequest.newBuilder().build())
.setTargetHttpsProxy("targetHttpsProxy833943732")
.build();
ApiFuture<Operation> future =
targetHttpsProxiesClient.setCertificateMapCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> setQuicOverrideAsync(String project, String targetHttpsProxy, TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource)
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";
String targetHttpsProxy = "targetHttpsProxy833943732";
TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource =
TargetHttpsProxiesSetQuicOverrideRequest.newBuilder().build();
Operation response =
targetHttpsProxiesClient
.setQuicOverrideAsync(
project, targetHttpsProxy, targetHttpsProxiesSetQuicOverrideRequestResource)
.get();
}
project - Project ID for this request.targetHttpsProxy - Name of the TargetHttpsProxy resource to set the QUIC override policy
for. The name should conform to RFC1035.targetHttpsProxiesSetQuicOverrideRequestResource - The body resource for this requestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> setQuicOverrideAsync(SetQuicOverrideTargetHttpsProxyRequest request)
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()) {
SetQuicOverrideTargetHttpsProxyRequest request =
SetQuicOverrideTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxiesSetQuicOverrideRequestResource(
TargetHttpsProxiesSetQuicOverrideRequest.newBuilder().build())
.setTargetHttpsProxy("targetHttpsProxy833943732")
.build();
Operation response = targetHttpsProxiesClient.setQuicOverrideAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<SetQuicOverrideTargetHttpsProxyRequest,Operation,Operation> setQuicOverrideOperationCallable()
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()) {
SetQuicOverrideTargetHttpsProxyRequest request =
SetQuicOverrideTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxiesSetQuicOverrideRequestResource(
TargetHttpsProxiesSetQuicOverrideRequest.newBuilder().build())
.setTargetHttpsProxy("targetHttpsProxy833943732")
.build();
OperationFuture<Operation, Operation> future =
targetHttpsProxiesClient.setQuicOverrideOperationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<SetQuicOverrideTargetHttpsProxyRequest,Operation> setQuicOverrideCallable()
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()) {
SetQuicOverrideTargetHttpsProxyRequest request =
SetQuicOverrideTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxiesSetQuicOverrideRequestResource(
TargetHttpsProxiesSetQuicOverrideRequest.newBuilder().build())
.setTargetHttpsProxy("targetHttpsProxy833943732")
.build();
ApiFuture<Operation> future =
targetHttpsProxiesClient.setQuicOverrideCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> setSslCertificatesAsync(String project, String targetHttpsProxy, TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource)
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";
String targetHttpsProxy = "targetHttpsProxy833943732";
TargetHttpsProxiesSetSslCertificatesRequest
targetHttpsProxiesSetSslCertificatesRequestResource =
TargetHttpsProxiesSetSslCertificatesRequest.newBuilder().build();
Operation response =
targetHttpsProxiesClient
.setSslCertificatesAsync(
project, targetHttpsProxy, targetHttpsProxiesSetSslCertificatesRequestResource)
.get();
}
project - Project ID for this request.targetHttpsProxy - Name of the TargetHttpsProxy resource to set an SslCertificates
resource for.targetHttpsProxiesSetSslCertificatesRequestResource - The body resource for this requestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> setSslCertificatesAsync(SetSslCertificatesTargetHttpsProxyRequest request)
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()) {
SetSslCertificatesTargetHttpsProxyRequest request =
SetSslCertificatesTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxiesSetSslCertificatesRequestResource(
TargetHttpsProxiesSetSslCertificatesRequest.newBuilder().build())
.setTargetHttpsProxy("targetHttpsProxy833943732")
.build();
Operation response = targetHttpsProxiesClient.setSslCertificatesAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<SetSslCertificatesTargetHttpsProxyRequest,Operation,Operation> setSslCertificatesOperationCallable()
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()) {
SetSslCertificatesTargetHttpsProxyRequest request =
SetSslCertificatesTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxiesSetSslCertificatesRequestResource(
TargetHttpsProxiesSetSslCertificatesRequest.newBuilder().build())
.setTargetHttpsProxy("targetHttpsProxy833943732")
.build();
OperationFuture<Operation, Operation> future =
targetHttpsProxiesClient.setSslCertificatesOperationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<SetSslCertificatesTargetHttpsProxyRequest,Operation> setSslCertificatesCallable()
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()) {
SetSslCertificatesTargetHttpsProxyRequest request =
SetSslCertificatesTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxiesSetSslCertificatesRequestResource(
TargetHttpsProxiesSetSslCertificatesRequest.newBuilder().build())
.setTargetHttpsProxy("targetHttpsProxy833943732")
.build();
ApiFuture<Operation> future =
targetHttpsProxiesClient.setSslCertificatesCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> setSslPolicyAsync(String project, String targetHttpsProxy, SslPolicyReference sslPolicyReferenceResource)
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";
String targetHttpsProxy = "targetHttpsProxy833943732";
SslPolicyReference sslPolicyReferenceResource = SslPolicyReference.newBuilder().build();
Operation response =
targetHttpsProxiesClient
.setSslPolicyAsync(project, targetHttpsProxy, sslPolicyReferenceResource)
.get();
}
project - Project ID for this request.targetHttpsProxy - Name of the TargetHttpsProxy resource whose SSL policy is to be set.
The name must be 1-63 characters long, and comply with RFC1035.sslPolicyReferenceResource - The body resource for this requestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> setSslPolicyAsync(SetSslPolicyTargetHttpsProxyRequest request)
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()) {
SetSslPolicyTargetHttpsProxyRequest request =
SetSslPolicyTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setSslPolicyReferenceResource(SslPolicyReference.newBuilder().build())
.setTargetHttpsProxy("targetHttpsProxy833943732")
.build();
Operation response = targetHttpsProxiesClient.setSslPolicyAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<SetSslPolicyTargetHttpsProxyRequest,Operation,Operation> setSslPolicyOperationCallable()
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()) {
SetSslPolicyTargetHttpsProxyRequest request =
SetSslPolicyTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setSslPolicyReferenceResource(SslPolicyReference.newBuilder().build())
.setTargetHttpsProxy("targetHttpsProxy833943732")
.build();
OperationFuture<Operation, Operation> future =
targetHttpsProxiesClient.setSslPolicyOperationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<SetSslPolicyTargetHttpsProxyRequest,Operation> setSslPolicyCallable()
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()) {
SetSslPolicyTargetHttpsProxyRequest request =
SetSslPolicyTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setSslPolicyReferenceResource(SslPolicyReference.newBuilder().build())
.setTargetHttpsProxy("targetHttpsProxy833943732")
.build();
ApiFuture<Operation> future =
targetHttpsProxiesClient.setSslPolicyCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> setUrlMapAsync(String project, String targetHttpsProxy, UrlMapReference urlMapReferenceResource)
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";
String targetHttpsProxy = "targetHttpsProxy833943732";
UrlMapReference urlMapReferenceResource = UrlMapReference.newBuilder().build();
Operation response =
targetHttpsProxiesClient
.setUrlMapAsync(project, targetHttpsProxy, urlMapReferenceResource)
.get();
}
project - Project ID for this request.targetHttpsProxy - Name of the TargetHttpsProxy resource whose URL map is to be set.urlMapReferenceResource - The body resource for this requestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Operation,Operation> setUrlMapAsync(SetUrlMapTargetHttpsProxyRequest request)
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()) {
SetUrlMapTargetHttpsProxyRequest request =
SetUrlMapTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxy("targetHttpsProxy833943732")
.setUrlMapReferenceResource(UrlMapReference.newBuilder().build())
.build();
Operation response = targetHttpsProxiesClient.setUrlMapAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<SetUrlMapTargetHttpsProxyRequest,Operation,Operation> setUrlMapOperationCallable()
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()) {
SetUrlMapTargetHttpsProxyRequest request =
SetUrlMapTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxy("targetHttpsProxy833943732")
.setUrlMapReferenceResource(UrlMapReference.newBuilder().build())
.build();
OperationFuture<Operation, Operation> future =
targetHttpsProxiesClient.setUrlMapOperationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<SetUrlMapTargetHttpsProxyRequest,Operation> setUrlMapCallable()
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()) {
SetUrlMapTargetHttpsProxyRequest request =
SetUrlMapTargetHttpsProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetHttpsProxy("targetHttpsProxy833943732")
.setUrlMapReferenceResource(UrlMapReference.newBuilder().build())
.build();
ApiFuture<Operation> future =
targetHttpsProxiesClient.setUrlMapCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final void close()
close in interface AutoCloseablepublic void shutdown()
shutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isShutdown()
isShutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isTerminated()
isTerminated in interface com.google.api.gax.core.BackgroundResourcepublic void shutdownNow()
shutdownNow in interface com.google.api.gax.core.BackgroundResourcepublic boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface com.google.api.gax.core.BackgroundResourceInterruptedExceptionCopyright © 2024 Google LLC. All rights reserved.