@Generated(value="by gapic-generator") @BetaApi public class TargetHttpsProxyClient extends Object implements 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:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
Operation response = targetHttpsProxyClient.deleteTargetHttpsProxy(targetHttpsProxy);
}
Note: close() needs to be called on the targetHttpsProxyClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
The surface of this class includes several types of Java methods for each of the API's methods:
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 TargetHttpsProxySettings to create(). For example:
To customize credentials:
TargetHttpsProxySettings targetHttpsProxySettings =
TargetHttpsProxySettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
TargetHttpsProxyClient targetHttpsProxyClient =
TargetHttpsProxyClient.create(targetHttpsProxySettings);
To customize the endpoint:
TargetHttpsProxySettings targetHttpsProxySettings =
TargetHttpsProxySettings.newBuilder().setEndpoint(myEndpoint).build();
TargetHttpsProxyClient targetHttpsProxyClient =
TargetHttpsProxyClient.create(targetHttpsProxySettings);
Modifier and Type | Class and Description |
---|---|
static class |
TargetHttpsProxyClient.ListTargetHttpsProxiesFixedSizeCollection |
static class |
TargetHttpsProxyClient.ListTargetHttpsProxiesPage |
static class |
TargetHttpsProxyClient.ListTargetHttpsProxiesPagedResponse |
Modifier | Constructor and Description |
---|---|
protected |
TargetHttpsProxyClient(TargetHttpsProxySettings settings)
Constructs an instance of TargetHttpsProxyClient, using the given settings.
|
protected |
TargetHttpsProxyClient(TargetHttpsProxyStub stub) |
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static TargetHttpsProxyClient |
create()
Constructs an instance of TargetHttpsProxyClient with default settings.
|
static TargetHttpsProxyClient |
create(TargetHttpsProxySettings settings)
Constructs an instance of TargetHttpsProxyClient, using the given settings.
|
static TargetHttpsProxyClient |
create(TargetHttpsProxyStub stub)
Constructs an instance of TargetHttpsProxyClient, using the given stub for making calls.
|
Operation |
deleteTargetHttpsProxy(DeleteTargetHttpsProxyHttpRequest request)
Deletes the specified TargetHttpsProxy resource.
|
Operation |
deleteTargetHttpsProxy(ProjectGlobalTargetHttpsProxyName targetHttpsProxy)
Deletes the specified TargetHttpsProxy resource.
|
Operation |
deleteTargetHttpsProxy(String targetHttpsProxy)
Deletes the specified TargetHttpsProxy resource.
|
UnaryCallable<DeleteTargetHttpsProxyHttpRequest,Operation> |
deleteTargetHttpsProxyCallable()
Deletes the specified TargetHttpsProxy resource.
|
TargetHttpsProxySettings |
getSettings() |
TargetHttpsProxyStub |
getStub() |
TargetHttpsProxy |
getTargetHttpsProxy(GetTargetHttpsProxyHttpRequest request)
Returns the specified TargetHttpsProxy resource.
|
TargetHttpsProxy |
getTargetHttpsProxy(ProjectGlobalTargetHttpsProxyName targetHttpsProxy)
Returns the specified TargetHttpsProxy resource.
|
TargetHttpsProxy |
getTargetHttpsProxy(String targetHttpsProxy)
Returns the specified TargetHttpsProxy resource.
|
UnaryCallable<GetTargetHttpsProxyHttpRequest,TargetHttpsProxy> |
getTargetHttpsProxyCallable()
Returns the specified TargetHttpsProxy resource.
|
Operation |
insertTargetHttpsProxy(InsertTargetHttpsProxyHttpRequest request)
Creates a TargetHttpsProxy resource in the specified project using the data included in the
request.
|
Operation |
insertTargetHttpsProxy(ProjectName project,
TargetHttpsProxy targetHttpsProxyResource)
Creates a TargetHttpsProxy resource in the specified project using the data included in the
request.
|
Operation |
insertTargetHttpsProxy(String project,
TargetHttpsProxy targetHttpsProxyResource)
Creates a TargetHttpsProxy resource in the specified project using the data included in the
request.
|
UnaryCallable<InsertTargetHttpsProxyHttpRequest,Operation> |
insertTargetHttpsProxyCallable()
Creates a TargetHttpsProxy resource in the specified project using the data included in the
request.
|
boolean |
isShutdown() |
boolean |
isTerminated() |
TargetHttpsProxyClient.ListTargetHttpsProxiesPagedResponse |
listTargetHttpsProxies(ListTargetHttpsProxiesHttpRequest request)
Retrieves the list of TargetHttpsProxy resources available to the specified project.
|
TargetHttpsProxyClient.ListTargetHttpsProxiesPagedResponse |
listTargetHttpsProxies(ProjectName project)
Retrieves the list of TargetHttpsProxy resources available to the specified project.
|
TargetHttpsProxyClient.ListTargetHttpsProxiesPagedResponse |
listTargetHttpsProxies(String project)
Retrieves the list of TargetHttpsProxy resources available to the specified project.
|
UnaryCallable<ListTargetHttpsProxiesHttpRequest,TargetHttpsProxyList> |
listTargetHttpsProxiesCallable()
Retrieves the list of TargetHttpsProxy resources available to the specified project.
|
UnaryCallable<ListTargetHttpsProxiesHttpRequest,TargetHttpsProxyClient.ListTargetHttpsProxiesPagedResponse> |
listTargetHttpsProxiesPagedCallable()
Retrieves the list of TargetHttpsProxy resources available to the specified project.
|
Operation |
setQuicOverrideTargetHttpsProxy(ProjectGlobalTargetHttpsProxyName targetHttpsProxy,
TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource)
Sets the QUIC override policy for TargetHttpsProxy.
|
Operation |
setQuicOverrideTargetHttpsProxy(SetQuicOverrideTargetHttpsProxyHttpRequest request)
Sets the QUIC override policy for TargetHttpsProxy.
|
Operation |
setQuicOverrideTargetHttpsProxy(String targetHttpsProxy,
TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource)
Sets the QUIC override policy for TargetHttpsProxy.
|
UnaryCallable<SetQuicOverrideTargetHttpsProxyHttpRequest,Operation> |
setQuicOverrideTargetHttpsProxyCallable()
Sets the QUIC override policy for TargetHttpsProxy.
|
Operation |
setSslCertificatesTargetHttpsProxy(ProjectTargetHttpsProxyName targetHttpsProxy,
TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource)
Replaces SslCertificates for TargetHttpsProxy.
|
Operation |
setSslCertificatesTargetHttpsProxy(SetSslCertificatesTargetHttpsProxyHttpRequest request)
Replaces SslCertificates for TargetHttpsProxy.
|
Operation |
setSslCertificatesTargetHttpsProxy(String targetHttpsProxy,
TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource)
Replaces SslCertificates for TargetHttpsProxy.
|
UnaryCallable<SetSslCertificatesTargetHttpsProxyHttpRequest,Operation> |
setSslCertificatesTargetHttpsProxyCallable()
Replaces SslCertificates for TargetHttpsProxy.
|
Operation |
setSslPolicyTargetHttpsProxy(ProjectGlobalTargetHttpsProxyName targetHttpsProxy,
SslPolicyReference sslPolicyReferenceResource)
Sets the SSL policy for TargetHttpsProxy.
|
Operation |
setSslPolicyTargetHttpsProxy(SetSslPolicyTargetHttpsProxyHttpRequest request)
Sets the SSL policy for TargetHttpsProxy.
|
Operation |
setSslPolicyTargetHttpsProxy(String targetHttpsProxy,
SslPolicyReference sslPolicyReferenceResource)
Sets the SSL policy for TargetHttpsProxy.
|
UnaryCallable<SetSslPolicyTargetHttpsProxyHttpRequest,Operation> |
setSslPolicyTargetHttpsProxyCallable()
Sets the SSL policy for TargetHttpsProxy.
|
Operation |
setUrlMapTargetHttpsProxy(ProjectTargetHttpsProxyName targetHttpsProxy,
UrlMapReference urlMapReferenceResource)
Changes the URL map for TargetHttpsProxy.
|
Operation |
setUrlMapTargetHttpsProxy(SetUrlMapTargetHttpsProxyHttpRequest request)
Changes the URL map for TargetHttpsProxy.
|
Operation |
setUrlMapTargetHttpsProxy(String targetHttpsProxy,
UrlMapReference urlMapReferenceResource)
Changes the URL map for TargetHttpsProxy.
|
UnaryCallable<SetUrlMapTargetHttpsProxyHttpRequest,Operation> |
setUrlMapTargetHttpsProxyCallable()
Changes the URL map for TargetHttpsProxy.
|
void |
shutdown() |
void |
shutdownNow() |
protected TargetHttpsProxyClient(TargetHttpsProxySettings settings) throws IOException
IOException
@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") protected TargetHttpsProxyClient(TargetHttpsProxyStub stub)
public static final TargetHttpsProxyClient create() throws IOException
IOException
public static final TargetHttpsProxyClient create(TargetHttpsProxySettings settings) throws IOException
IOException
@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public static final TargetHttpsProxyClient create(TargetHttpsProxyStub stub)
public final TargetHttpsProxySettings getSettings()
@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public TargetHttpsProxyStub getStub()
@BetaApi public final Operation deleteTargetHttpsProxy(ProjectGlobalTargetHttpsProxyName targetHttpsProxy)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
Operation response = targetHttpsProxyClient.deleteTargetHttpsProxy(targetHttpsProxy);
}
targetHttpsProxy
- Name of the TargetHttpsProxy resource to delete.ApiException
- if the remote call fails@BetaApi public final Operation deleteTargetHttpsProxy(String targetHttpsProxy)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
Operation response = targetHttpsProxyClient.deleteTargetHttpsProxy(targetHttpsProxy.toString());
}
targetHttpsProxy
- Name of the TargetHttpsProxy resource to delete.ApiException
- if the remote call fails@BetaApi public final Operation deleteTargetHttpsProxy(DeleteTargetHttpsProxyHttpRequest request)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
String formattedTargetHttpsProxy = ProjectGlobalTargetHttpsProxyName.format("[PROJECT]", "[TARGET_HTTPS_PROXY]");
DeleteTargetHttpsProxyHttpRequest request = DeleteTargetHttpsProxyHttpRequest.newBuilder()
.setTargetHttpsProxy(formattedTargetHttpsProxy)
.build();
Operation response = targetHttpsProxyClient.deleteTargetHttpsProxy(request);
}
request
- The request object containing all of the parameters for the API call.ApiException
- if the remote call fails@BetaApi public final UnaryCallable<DeleteTargetHttpsProxyHttpRequest,Operation> deleteTargetHttpsProxyCallable()
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
String formattedTargetHttpsProxy = ProjectGlobalTargetHttpsProxyName.format("[PROJECT]", "[TARGET_HTTPS_PROXY]");
DeleteTargetHttpsProxyHttpRequest request = DeleteTargetHttpsProxyHttpRequest.newBuilder()
.setTargetHttpsProxy(formattedTargetHttpsProxy)
.build();
ApiFuture<Operation> future = targetHttpsProxyClient.deleteTargetHttpsProxyCallable().futureCall(request);
// Do something
Operation response = future.get();
}
@BetaApi public final TargetHttpsProxy getTargetHttpsProxy(ProjectGlobalTargetHttpsProxyName targetHttpsProxy)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
TargetHttpsProxy response = targetHttpsProxyClient.getTargetHttpsProxy(targetHttpsProxy);
}
targetHttpsProxy
- Name of the TargetHttpsProxy resource to return.ApiException
- if the remote call fails@BetaApi public final TargetHttpsProxy getTargetHttpsProxy(String targetHttpsProxy)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
TargetHttpsProxy response = targetHttpsProxyClient.getTargetHttpsProxy(targetHttpsProxy.toString());
}
targetHttpsProxy
- Name of the TargetHttpsProxy resource to return.ApiException
- if the remote call fails@BetaApi public final TargetHttpsProxy getTargetHttpsProxy(GetTargetHttpsProxyHttpRequest request)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
String formattedTargetHttpsProxy = ProjectGlobalTargetHttpsProxyName.format("[PROJECT]", "[TARGET_HTTPS_PROXY]");
GetTargetHttpsProxyHttpRequest request = GetTargetHttpsProxyHttpRequest.newBuilder()
.setTargetHttpsProxy(formattedTargetHttpsProxy)
.build();
TargetHttpsProxy response = targetHttpsProxyClient.getTargetHttpsProxy(request);
}
request
- The request object containing all of the parameters for the API call.ApiException
- if the remote call fails@BetaApi public final UnaryCallable<GetTargetHttpsProxyHttpRequest,TargetHttpsProxy> getTargetHttpsProxyCallable()
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
String formattedTargetHttpsProxy = ProjectGlobalTargetHttpsProxyName.format("[PROJECT]", "[TARGET_HTTPS_PROXY]");
GetTargetHttpsProxyHttpRequest request = GetTargetHttpsProxyHttpRequest.newBuilder()
.setTargetHttpsProxy(formattedTargetHttpsProxy)
.build();
ApiFuture<TargetHttpsProxy> future = targetHttpsProxyClient.getTargetHttpsProxyCallable().futureCall(request);
// Do something
TargetHttpsProxy response = future.get();
}
@BetaApi public final Operation insertTargetHttpsProxy(ProjectName project, TargetHttpsProxy targetHttpsProxyResource)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
ProjectName project = ProjectName.of("[PROJECT]");
TargetHttpsProxy targetHttpsProxyResource = TargetHttpsProxy.newBuilder().build();
Operation response = targetHttpsProxyClient.insertTargetHttpsProxy(project, targetHttpsProxyResource);
}
project
- Project ID for this request.targetHttpsProxyResource
- A TargetHttpsProxy resource. This resource defines an HTTPS
proxy. (== resource_for beta.targetHttpsProxies ==) (== resource_for v1.targetHttpsProxies
==)ApiException
- if the remote call fails@BetaApi public final Operation insertTargetHttpsProxy(String project, TargetHttpsProxy targetHttpsProxyResource)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
ProjectName project = ProjectName.of("[PROJECT]");
TargetHttpsProxy targetHttpsProxyResource = TargetHttpsProxy.newBuilder().build();
Operation response = targetHttpsProxyClient.insertTargetHttpsProxy(project.toString(), targetHttpsProxyResource);
}
project
- Project ID for this request.targetHttpsProxyResource
- A TargetHttpsProxy resource. This resource defines an HTTPS
proxy. (== resource_for beta.targetHttpsProxies ==) (== resource_for v1.targetHttpsProxies
==)ApiException
- if the remote call fails@BetaApi public final Operation insertTargetHttpsProxy(InsertTargetHttpsProxyHttpRequest request)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
String formattedProject = ProjectName.format("[PROJECT]");
TargetHttpsProxy targetHttpsProxyResource = TargetHttpsProxy.newBuilder().build();
InsertTargetHttpsProxyHttpRequest request = InsertTargetHttpsProxyHttpRequest.newBuilder()
.setProject(formattedProject)
.setTargetHttpsProxyResource(targetHttpsProxyResource)
.build();
Operation response = targetHttpsProxyClient.insertTargetHttpsProxy(request);
}
request
- The request object containing all of the parameters for the API call.ApiException
- if the remote call fails@BetaApi public final UnaryCallable<InsertTargetHttpsProxyHttpRequest,Operation> insertTargetHttpsProxyCallable()
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
String formattedProject = ProjectName.format("[PROJECT]");
TargetHttpsProxy targetHttpsProxyResource = TargetHttpsProxy.newBuilder().build();
InsertTargetHttpsProxyHttpRequest request = InsertTargetHttpsProxyHttpRequest.newBuilder()
.setProject(formattedProject)
.setTargetHttpsProxyResource(targetHttpsProxyResource)
.build();
ApiFuture<Operation> future = targetHttpsProxyClient.insertTargetHttpsProxyCallable().futureCall(request);
// Do something
Operation response = future.get();
}
@BetaApi public final TargetHttpsProxyClient.ListTargetHttpsProxiesPagedResponse listTargetHttpsProxies(ProjectName project)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
ProjectName project = ProjectName.of("[PROJECT]");
for (TargetHttpsProxy element : targetHttpsProxyClient.listTargetHttpsProxies(project).iterateAll()) {
// doThingsWith(element);
}
}
project
- Project ID for this request.ApiException
- if the remote call fails@BetaApi public final TargetHttpsProxyClient.ListTargetHttpsProxiesPagedResponse listTargetHttpsProxies(String project)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
ProjectName project = ProjectName.of("[PROJECT]");
for (TargetHttpsProxy element : targetHttpsProxyClient.listTargetHttpsProxies(project.toString()).iterateAll()) {
// doThingsWith(element);
}
}
project
- Project ID for this request.ApiException
- if the remote call fails@BetaApi public final TargetHttpsProxyClient.ListTargetHttpsProxiesPagedResponse listTargetHttpsProxies(ListTargetHttpsProxiesHttpRequest request)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
String formattedProject = ProjectName.format("[PROJECT]");
ListTargetHttpsProxiesHttpRequest request = ListTargetHttpsProxiesHttpRequest.newBuilder()
.setProject(formattedProject)
.build();
for (TargetHttpsProxy element : targetHttpsProxyClient.listTargetHttpsProxies(request).iterateAll()) {
// doThingsWith(element);
}
}
request
- The request object containing all of the parameters for the API call.ApiException
- if the remote call fails@BetaApi public final UnaryCallable<ListTargetHttpsProxiesHttpRequest,TargetHttpsProxyClient.ListTargetHttpsProxiesPagedResponse> listTargetHttpsProxiesPagedCallable()
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
String formattedProject = ProjectName.format("[PROJECT]");
ListTargetHttpsProxiesHttpRequest request = ListTargetHttpsProxiesHttpRequest.newBuilder()
.setProject(formattedProject)
.build();
ApiFuture<ListTargetHttpsProxiesPagedResponse> future = targetHttpsProxyClient.listTargetHttpsProxiesPagedCallable().futureCall(request);
// Do something
for (TargetHttpsProxy element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
@BetaApi public final UnaryCallable<ListTargetHttpsProxiesHttpRequest,TargetHttpsProxyList> listTargetHttpsProxiesCallable()
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
String formattedProject = ProjectName.format("[PROJECT]");
ListTargetHttpsProxiesHttpRequest request = ListTargetHttpsProxiesHttpRequest.newBuilder()
.setProject(formattedProject)
.build();
while (true) {
TargetHttpsProxyList response = targetHttpsProxyClient.listTargetHttpsProxiesCallable().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;
}
}
}
@BetaApi public final Operation setQuicOverrideTargetHttpsProxy(ProjectGlobalTargetHttpsProxyName targetHttpsProxy, TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource = TargetHttpsProxiesSetQuicOverrideRequest.newBuilder().build();
Operation response = targetHttpsProxyClient.setQuicOverrideTargetHttpsProxy(targetHttpsProxy, targetHttpsProxiesSetQuicOverrideRequestResource);
}
targetHttpsProxy
- Name of the TargetHttpsProxy resource to set the QUIC override policy
for. The name should conform to RFC1035.targetHttpsProxiesSetQuicOverrideRequestResource
- ApiException
- if the remote call fails@BetaApi public final Operation setQuicOverrideTargetHttpsProxy(String targetHttpsProxy, TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource = TargetHttpsProxiesSetQuicOverrideRequest.newBuilder().build();
Operation response = targetHttpsProxyClient.setQuicOverrideTargetHttpsProxy(targetHttpsProxy.toString(), targetHttpsProxiesSetQuicOverrideRequestResource);
}
targetHttpsProxy
- Name of the TargetHttpsProxy resource to set the QUIC override policy
for. The name should conform to RFC1035.targetHttpsProxiesSetQuicOverrideRequestResource
- ApiException
- if the remote call fails@BetaApi public final Operation setQuicOverrideTargetHttpsProxy(SetQuicOverrideTargetHttpsProxyHttpRequest request)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
String formattedTargetHttpsProxy = ProjectGlobalTargetHttpsProxyName.format("[PROJECT]", "[TARGET_HTTPS_PROXY]");
TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource = TargetHttpsProxiesSetQuicOverrideRequest.newBuilder().build();
SetQuicOverrideTargetHttpsProxyHttpRequest request = SetQuicOverrideTargetHttpsProxyHttpRequest.newBuilder()
.setTargetHttpsProxy(formattedTargetHttpsProxy)
.setTargetHttpsProxiesSetQuicOverrideRequestResource(targetHttpsProxiesSetQuicOverrideRequestResource)
.build();
Operation response = targetHttpsProxyClient.setQuicOverrideTargetHttpsProxy(request);
}
request
- The request object containing all of the parameters for the API call.ApiException
- if the remote call fails@BetaApi public final UnaryCallable<SetQuicOverrideTargetHttpsProxyHttpRequest,Operation> setQuicOverrideTargetHttpsProxyCallable()
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
String formattedTargetHttpsProxy = ProjectGlobalTargetHttpsProxyName.format("[PROJECT]", "[TARGET_HTTPS_PROXY]");
TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource = TargetHttpsProxiesSetQuicOverrideRequest.newBuilder().build();
SetQuicOverrideTargetHttpsProxyHttpRequest request = SetQuicOverrideTargetHttpsProxyHttpRequest.newBuilder()
.setTargetHttpsProxy(formattedTargetHttpsProxy)
.setTargetHttpsProxiesSetQuicOverrideRequestResource(targetHttpsProxiesSetQuicOverrideRequestResource)
.build();
ApiFuture<Operation> future = targetHttpsProxyClient.setQuicOverrideTargetHttpsProxyCallable().futureCall(request);
// Do something
Operation response = future.get();
}
@BetaApi public final Operation setSslCertificatesTargetHttpsProxy(ProjectTargetHttpsProxyName targetHttpsProxy, TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
ProjectTargetHttpsProxyName targetHttpsProxy = ProjectTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource = TargetHttpsProxiesSetSslCertificatesRequest.newBuilder().build();
Operation response = targetHttpsProxyClient.setSslCertificatesTargetHttpsProxy(targetHttpsProxy, targetHttpsProxiesSetSslCertificatesRequestResource);
}
targetHttpsProxy
- Name of the TargetHttpsProxy resource to set an SslCertificates
resource for.targetHttpsProxiesSetSslCertificatesRequestResource
- ApiException
- if the remote call fails@BetaApi public final Operation setSslCertificatesTargetHttpsProxy(String targetHttpsProxy, TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
ProjectTargetHttpsProxyName targetHttpsProxy = ProjectTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource = TargetHttpsProxiesSetSslCertificatesRequest.newBuilder().build();
Operation response = targetHttpsProxyClient.setSslCertificatesTargetHttpsProxy(targetHttpsProxy.toString(), targetHttpsProxiesSetSslCertificatesRequestResource);
}
targetHttpsProxy
- Name of the TargetHttpsProxy resource to set an SslCertificates
resource for.targetHttpsProxiesSetSslCertificatesRequestResource
- ApiException
- if the remote call fails@BetaApi public final Operation setSslCertificatesTargetHttpsProxy(SetSslCertificatesTargetHttpsProxyHttpRequest request)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
String formattedTargetHttpsProxy = ProjectTargetHttpsProxyName.format("[PROJECT]", "[TARGET_HTTPS_PROXY]");
TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource = TargetHttpsProxiesSetSslCertificatesRequest.newBuilder().build();
SetSslCertificatesTargetHttpsProxyHttpRequest request = SetSslCertificatesTargetHttpsProxyHttpRequest.newBuilder()
.setTargetHttpsProxy(formattedTargetHttpsProxy)
.setTargetHttpsProxiesSetSslCertificatesRequestResource(targetHttpsProxiesSetSslCertificatesRequestResource)
.build();
Operation response = targetHttpsProxyClient.setSslCertificatesTargetHttpsProxy(request);
}
request
- The request object containing all of the parameters for the API call.ApiException
- if the remote call fails@BetaApi public final UnaryCallable<SetSslCertificatesTargetHttpsProxyHttpRequest,Operation> setSslCertificatesTargetHttpsProxyCallable()
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
String formattedTargetHttpsProxy = ProjectTargetHttpsProxyName.format("[PROJECT]", "[TARGET_HTTPS_PROXY]");
TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource = TargetHttpsProxiesSetSslCertificatesRequest.newBuilder().build();
SetSslCertificatesTargetHttpsProxyHttpRequest request = SetSslCertificatesTargetHttpsProxyHttpRequest.newBuilder()
.setTargetHttpsProxy(formattedTargetHttpsProxy)
.setTargetHttpsProxiesSetSslCertificatesRequestResource(targetHttpsProxiesSetSslCertificatesRequestResource)
.build();
ApiFuture<Operation> future = targetHttpsProxyClient.setSslCertificatesTargetHttpsProxyCallable().futureCall(request);
// Do something
Operation response = future.get();
}
@BetaApi public final Operation setSslPolicyTargetHttpsProxy(ProjectGlobalTargetHttpsProxyName targetHttpsProxy, SslPolicyReference sslPolicyReferenceResource)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
SslPolicyReference sslPolicyReferenceResource = SslPolicyReference.newBuilder().build();
Operation response = targetHttpsProxyClient.setSslPolicyTargetHttpsProxy(targetHttpsProxy, sslPolicyReferenceResource);
}
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
- ApiException
- if the remote call fails@BetaApi public final Operation setSslPolicyTargetHttpsProxy(String targetHttpsProxy, SslPolicyReference sslPolicyReferenceResource)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
SslPolicyReference sslPolicyReferenceResource = SslPolicyReference.newBuilder().build();
Operation response = targetHttpsProxyClient.setSslPolicyTargetHttpsProxy(targetHttpsProxy.toString(), sslPolicyReferenceResource);
}
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
- ApiException
- if the remote call fails@BetaApi public final Operation setSslPolicyTargetHttpsProxy(SetSslPolicyTargetHttpsProxyHttpRequest request)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
String formattedTargetHttpsProxy = ProjectGlobalTargetHttpsProxyName.format("[PROJECT]", "[TARGET_HTTPS_PROXY]");
SslPolicyReference sslPolicyReferenceResource = SslPolicyReference.newBuilder().build();
SetSslPolicyTargetHttpsProxyHttpRequest request = SetSslPolicyTargetHttpsProxyHttpRequest.newBuilder()
.setTargetHttpsProxy(formattedTargetHttpsProxy)
.setSslPolicyReferenceResource(sslPolicyReferenceResource)
.build();
Operation response = targetHttpsProxyClient.setSslPolicyTargetHttpsProxy(request);
}
request
- The request object containing all of the parameters for the API call.ApiException
- if the remote call fails@BetaApi public final UnaryCallable<SetSslPolicyTargetHttpsProxyHttpRequest,Operation> setSslPolicyTargetHttpsProxyCallable()
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
String formattedTargetHttpsProxy = ProjectGlobalTargetHttpsProxyName.format("[PROJECT]", "[TARGET_HTTPS_PROXY]");
SslPolicyReference sslPolicyReferenceResource = SslPolicyReference.newBuilder().build();
SetSslPolicyTargetHttpsProxyHttpRequest request = SetSslPolicyTargetHttpsProxyHttpRequest.newBuilder()
.setTargetHttpsProxy(formattedTargetHttpsProxy)
.setSslPolicyReferenceResource(sslPolicyReferenceResource)
.build();
ApiFuture<Operation> future = targetHttpsProxyClient.setSslPolicyTargetHttpsProxyCallable().futureCall(request);
// Do something
Operation response = future.get();
}
@BetaApi public final Operation setUrlMapTargetHttpsProxy(ProjectTargetHttpsProxyName targetHttpsProxy, UrlMapReference urlMapReferenceResource)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
ProjectTargetHttpsProxyName targetHttpsProxy = ProjectTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
UrlMapReference urlMapReferenceResource = UrlMapReference.newBuilder().build();
Operation response = targetHttpsProxyClient.setUrlMapTargetHttpsProxy(targetHttpsProxy, urlMapReferenceResource);
}
targetHttpsProxy
- Name of the TargetHttpsProxy resource whose URL map is to be set.urlMapReferenceResource
- ApiException
- if the remote call fails@BetaApi public final Operation setUrlMapTargetHttpsProxy(String targetHttpsProxy, UrlMapReference urlMapReferenceResource)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
ProjectTargetHttpsProxyName targetHttpsProxy = ProjectTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
UrlMapReference urlMapReferenceResource = UrlMapReference.newBuilder().build();
Operation response = targetHttpsProxyClient.setUrlMapTargetHttpsProxy(targetHttpsProxy.toString(), urlMapReferenceResource);
}
targetHttpsProxy
- Name of the TargetHttpsProxy resource whose URL map is to be set.urlMapReferenceResource
- ApiException
- if the remote call fails@BetaApi public final Operation setUrlMapTargetHttpsProxy(SetUrlMapTargetHttpsProxyHttpRequest request)
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
String formattedTargetHttpsProxy = ProjectTargetHttpsProxyName.format("[PROJECT]", "[TARGET_HTTPS_PROXY]");
UrlMapReference urlMapReferenceResource = UrlMapReference.newBuilder().build();
SetUrlMapTargetHttpsProxyHttpRequest request = SetUrlMapTargetHttpsProxyHttpRequest.newBuilder()
.setTargetHttpsProxy(formattedTargetHttpsProxy)
.setUrlMapReferenceResource(urlMapReferenceResource)
.build();
Operation response = targetHttpsProxyClient.setUrlMapTargetHttpsProxy(request);
}
request
- The request object containing all of the parameters for the API call.ApiException
- if the remote call fails@BetaApi public final UnaryCallable<SetUrlMapTargetHttpsProxyHttpRequest,Operation> setUrlMapTargetHttpsProxyCallable()
Sample code:
try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
String formattedTargetHttpsProxy = ProjectTargetHttpsProxyName.format("[PROJECT]", "[TARGET_HTTPS_PROXY]");
UrlMapReference urlMapReferenceResource = UrlMapReference.newBuilder().build();
SetUrlMapTargetHttpsProxyHttpRequest request = SetUrlMapTargetHttpsProxyHttpRequest.newBuilder()
.setTargetHttpsProxy(formattedTargetHttpsProxy)
.setUrlMapReferenceResource(urlMapReferenceResource)
.build();
ApiFuture<Operation> future = targetHttpsProxyClient.setUrlMapTargetHttpsProxyCallable().futureCall(request);
// Do something
Operation response = future.get();
}
public final void close()
close
in interface AutoCloseable
public void shutdown()
shutdown
in interface BackgroundResource
public boolean isShutdown()
isShutdown
in interface BackgroundResource
public boolean isTerminated()
isTerminated
in interface BackgroundResource
public void shutdownNow()
shutdownNow
in interface BackgroundResource
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
awaitTermination
in interface BackgroundResource
InterruptedException
Copyright © 2019 Google LLC. All rights reserved.