- 1.62.0 (latest)
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public class RegionUrlMapsClient implements BackgroundResource
Service Description: The RegionUrlMaps API.
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
String project = "project-309310695";
String region = "region-934795532";
String urlMap = "urlMap-836780691";
UrlMap response = regionUrlMapsClient.get(project, region, urlMap);
}
Note: close() needs to be called on the RegionUrlMapsClient 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:
- A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
- A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
- A "callable" method. This type of method takes no parameters and returns 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 RegionUrlMapsSettings 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
RegionUrlMapsSettings regionUrlMapsSettings =
RegionUrlMapsSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create(regionUrlMapsSettings);
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
RegionUrlMapsSettings regionUrlMapsSettings =
RegionUrlMapsSettings.newBuilder().setEndpoint(myEndpoint).build();
RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create(regionUrlMapsSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Implements
BackgroundResourceStatic Methods
create()
public static final RegionUrlMapsClient create()
Constructs an instance of RegionUrlMapsClient with default settings.
Type | Description |
RegionUrlMapsClient |
Type | Description |
IOException |
create(RegionUrlMapsSettings settings)
public static final RegionUrlMapsClient create(RegionUrlMapsSettings settings)
Constructs an instance of RegionUrlMapsClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
Name | Description |
settings | RegionUrlMapsSettings |
Type | Description |
RegionUrlMapsClient |
Type | Description |
IOException |
create(RegionUrlMapsStub stub)
public static final RegionUrlMapsClient create(RegionUrlMapsStub stub)
Constructs an instance of RegionUrlMapsClient, using the given stub for making calls. This is for advanced usage - prefer using create(RegionUrlMapsSettings).
Name | Description |
stub | RegionUrlMapsStub |
Type | Description |
RegionUrlMapsClient |
Constructors
RegionUrlMapsClient(RegionUrlMapsSettings settings)
protected RegionUrlMapsClient(RegionUrlMapsSettings settings)
Constructs an instance of RegionUrlMapsClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
Name | Description |
settings | RegionUrlMapsSettings |
RegionUrlMapsClient(RegionUrlMapsStub stub)
protected RegionUrlMapsClient(RegionUrlMapsStub stub)
Name | Description |
stub | RegionUrlMapsStub |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Name | Description |
duration | long |
unit | TimeUnit |
Type | Description |
boolean |
Type | Description |
InterruptedException |
close()
public final void close()
deleteAsync(DeleteRegionUrlMapRequest request)
public final OperationFuture<Operation,Operation> deleteAsync(DeleteRegionUrlMapRequest request)
Deletes the specified UrlMap resource.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
DeleteRegionUrlMapRequest request =
DeleteRegionUrlMapRequest.newBuilder()
.setProject("project-309310695")
.setRegion("region-934795532")
.setRequestId("requestId693933066")
.setUrlMap("urlMap-836780691")
.build();
Operation response = regionUrlMapsClient.deleteAsync(request).get();
}
Name | Description |
request | DeleteRegionUrlMapRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<Operation,Operation> |
deleteAsync(String project, String region, String urlMap)
public final OperationFuture<Operation,Operation> deleteAsync(String project, String region, String urlMap)
Deletes the specified UrlMap resource.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
String project = "project-309310695";
String region = "region-934795532";
String urlMap = "urlMap-836780691";
Operation response = regionUrlMapsClient.deleteAsync(project, region, urlMap).get();
}
Name | Description |
project | String Project ID for this request. |
region | String Name of the region scoping this request. |
urlMap | String Name of the UrlMap resource to delete. |
Type | Description |
OperationFuture<Operation,Operation> |
deleteCallable()
public final UnaryCallable<DeleteRegionUrlMapRequest,Operation> deleteCallable()
Deletes the specified UrlMap resource.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
DeleteRegionUrlMapRequest request =
DeleteRegionUrlMapRequest.newBuilder()
.setProject("project-309310695")
.setRegion("region-934795532")
.setRequestId("requestId693933066")
.setUrlMap("urlMap-836780691")
.build();
ApiFuture<Operation> future = regionUrlMapsClient.deleteCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<DeleteRegionUrlMapRequest,Operation> |
deleteOperationCallable()
public final OperationCallable<DeleteRegionUrlMapRequest,Operation,Operation> deleteOperationCallable()
Deletes the specified UrlMap resource.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
DeleteRegionUrlMapRequest request =
DeleteRegionUrlMapRequest.newBuilder()
.setProject("project-309310695")
.setRegion("region-934795532")
.setRequestId("requestId693933066")
.setUrlMap("urlMap-836780691")
.build();
OperationFuture<Operation, Operation> future =
regionUrlMapsClient.deleteOperationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
OperationCallable<DeleteRegionUrlMapRequest,Operation,Operation> |
get(GetRegionUrlMapRequest request)
public final UrlMap get(GetRegionUrlMapRequest request)
Returns the specified UrlMap resource. Gets a list of available URL maps by making a list() 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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
GetRegionUrlMapRequest request =
GetRegionUrlMapRequest.newBuilder()
.setProject("project-309310695")
.setRegion("region-934795532")
.setUrlMap("urlMap-836780691")
.build();
UrlMap response = regionUrlMapsClient.get(request);
}
Name | Description |
request | GetRegionUrlMapRequest The request object containing all of the parameters for the API call. |
Type | Description |
UrlMap |
get(String project, String region, String urlMap)
public final UrlMap get(String project, String region, String urlMap)
Returns the specified UrlMap resource. Gets a list of available URL maps by making a list() 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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
String project = "project-309310695";
String region = "region-934795532";
String urlMap = "urlMap-836780691";
UrlMap response = regionUrlMapsClient.get(project, region, urlMap);
}
Name | Description |
project | String Project ID for this request. |
region | String Name of the region scoping this request. |
urlMap | String Name of the UrlMap resource to return. |
Type | Description |
UrlMap |
getCallable()
public final UnaryCallable<GetRegionUrlMapRequest,UrlMap> getCallable()
Returns the specified UrlMap resource. Gets a list of available URL maps by making a list() 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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
GetRegionUrlMapRequest request =
GetRegionUrlMapRequest.newBuilder()
.setProject("project-309310695")
.setRegion("region-934795532")
.setUrlMap("urlMap-836780691")
.build();
ApiFuture<UrlMap> future = regionUrlMapsClient.getCallable().futureCall(request);
// Do something.
UrlMap response = future.get();
}
Type | Description |
UnaryCallable<GetRegionUrlMapRequest,UrlMap> |
getSettings()
public final RegionUrlMapsSettings getSettings()
Type | Description |
RegionUrlMapsSettings |
getStub()
public RegionUrlMapsStub getStub()
Type | Description |
RegionUrlMapsStub |
insertAsync(InsertRegionUrlMapRequest request)
public final OperationFuture<Operation,Operation> insertAsync(InsertRegionUrlMapRequest request)
Creates a UrlMap resource in the specified project using the data included in the 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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
InsertRegionUrlMapRequest request =
InsertRegionUrlMapRequest.newBuilder()
.setProject("project-309310695")
.setRegion("region-934795532")
.setRequestId("requestId693933066")
.setUrlMapResource(UrlMap.newBuilder().build())
.build();
Operation response = regionUrlMapsClient.insertAsync(request).get();
}
Name | Description |
request | InsertRegionUrlMapRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<Operation,Operation> |
insertAsync(String project, String region, UrlMap urlMapResource)
public final OperationFuture<Operation,Operation> insertAsync(String project, String region, UrlMap urlMapResource)
Creates a UrlMap resource in the specified project using the data included in the 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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
String project = "project-309310695";
String region = "region-934795532";
UrlMap urlMapResource = UrlMap.newBuilder().build();
Operation response = regionUrlMapsClient.insertAsync(project, region, urlMapResource).get();
}
Name | Description |
project | String Project ID for this request. |
region | String Name of the region scoping this request. |
urlMapResource | UrlMap The body resource for this request |
Type | Description |
OperationFuture<Operation,Operation> |
insertCallable()
public final UnaryCallable<InsertRegionUrlMapRequest,Operation> insertCallable()
Creates a UrlMap resource in the specified project using the data included in the 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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
InsertRegionUrlMapRequest request =
InsertRegionUrlMapRequest.newBuilder()
.setProject("project-309310695")
.setRegion("region-934795532")
.setRequestId("requestId693933066")
.setUrlMapResource(UrlMap.newBuilder().build())
.build();
ApiFuture<Operation> future = regionUrlMapsClient.insertCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<InsertRegionUrlMapRequest,Operation> |
insertOperationCallable()
public final OperationCallable<InsertRegionUrlMapRequest,Operation,Operation> insertOperationCallable()
Creates a UrlMap resource in the specified project using the data included in the 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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
InsertRegionUrlMapRequest request =
InsertRegionUrlMapRequest.newBuilder()
.setProject("project-309310695")
.setRegion("region-934795532")
.setRequestId("requestId693933066")
.setUrlMapResource(UrlMap.newBuilder().build())
.build();
OperationFuture<Operation, Operation> future =
regionUrlMapsClient.insertOperationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
OperationCallable<InsertRegionUrlMapRequest,Operation,Operation> |
isShutdown()
public boolean isShutdown()
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Type | Description |
boolean |
list(ListRegionUrlMapsRequest request)
public final RegionUrlMapsClient.ListPagedResponse list(ListRegionUrlMapsRequest request)
Retrieves the list of UrlMap resources available to the specified project in the specified region.
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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
ListRegionUrlMapsRequest request =
ListRegionUrlMapsRequest.newBuilder()
.setFilter("filter-1274492040")
.setMaxResults(1128457243)
.setOrderBy("orderBy-1207110587")
.setPageToken("pageToken873572522")
.setProject("project-309310695")
.setRegion("region-934795532")
.setReturnPartialSuccess(true)
.build();
for (UrlMap element : regionUrlMapsClient.list(request).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
request | ListRegionUrlMapsRequest The request object containing all of the parameters for the API call. |
Type | Description |
RegionUrlMapsClient.ListPagedResponse |
list(String project, String region)
public final RegionUrlMapsClient.ListPagedResponse list(String project, String region)
Retrieves the list of UrlMap resources available to the specified project in the specified region.
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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
String project = "project-309310695";
String region = "region-934795532";
for (UrlMap element : regionUrlMapsClient.list(project, region).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
project | String Project ID for this request. |
region | String Name of the region scoping this request. |
Type | Description |
RegionUrlMapsClient.ListPagedResponse |
listCallable()
public final UnaryCallable<ListRegionUrlMapsRequest,UrlMapList> listCallable()
Retrieves the list of UrlMap resources available to the specified project in the specified region.
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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
ListRegionUrlMapsRequest request =
ListRegionUrlMapsRequest.newBuilder()
.setFilter("filter-1274492040")
.setMaxResults(1128457243)
.setOrderBy("orderBy-1207110587")
.setPageToken("pageToken873572522")
.setProject("project-309310695")
.setRegion("region-934795532")
.setReturnPartialSuccess(true)
.build();
while (true) {
UrlMapList response = regionUrlMapsClient.listCallable().call(request);
for (UrlMap element : response.getItemsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Type | Description |
UnaryCallable<ListRegionUrlMapsRequest,UrlMapList> |
listPagedCallable()
public final UnaryCallable<ListRegionUrlMapsRequest,RegionUrlMapsClient.ListPagedResponse> listPagedCallable()
Retrieves the list of UrlMap resources available to the specified project in the specified region.
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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
ListRegionUrlMapsRequest request =
ListRegionUrlMapsRequest.newBuilder()
.setFilter("filter-1274492040")
.setMaxResults(1128457243)
.setOrderBy("orderBy-1207110587")
.setPageToken("pageToken873572522")
.setProject("project-309310695")
.setRegion("region-934795532")
.setReturnPartialSuccess(true)
.build();
ApiFuture<UrlMap> future = regionUrlMapsClient.listPagedCallable().futureCall(request);
// Do something.
for (UrlMap element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Type | Description |
UnaryCallable<ListRegionUrlMapsRequest,ListPagedResponse> |
patchAsync(PatchRegionUrlMapRequest request)
public final OperationFuture<Operation,Operation> patchAsync(PatchRegionUrlMapRequest request)
Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
PatchRegionUrlMapRequest request =
PatchRegionUrlMapRequest.newBuilder()
.setProject("project-309310695")
.setRegion("region-934795532")
.setRequestId("requestId693933066")
.setUrlMap("urlMap-836780691")
.setUrlMapResource(UrlMap.newBuilder().build())
.build();
Operation response = regionUrlMapsClient.patchAsync(request).get();
}
Name | Description |
request | PatchRegionUrlMapRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<Operation,Operation> |
patchAsync(String project, String region, String urlMap, UrlMap urlMapResource)
public final OperationFuture<Operation,Operation> patchAsync(String project, String region, String urlMap, UrlMap urlMapResource)
Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
String project = "project-309310695";
String region = "region-934795532";
String urlMap = "urlMap-836780691";
UrlMap urlMapResource = UrlMap.newBuilder().build();
Operation response =
regionUrlMapsClient.patchAsync(project, region, urlMap, urlMapResource).get();
}
Name | Description |
project | String Project ID for this request. |
region | String Name of the region scoping this request. |
urlMap | String Name of the UrlMap resource to patch. |
urlMapResource | UrlMap The body resource for this request |
Type | Description |
OperationFuture<Operation,Operation> |
patchCallable()
public final UnaryCallable<PatchRegionUrlMapRequest,Operation> patchCallable()
Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
PatchRegionUrlMapRequest request =
PatchRegionUrlMapRequest.newBuilder()
.setProject("project-309310695")
.setRegion("region-934795532")
.setRequestId("requestId693933066")
.setUrlMap("urlMap-836780691")
.setUrlMapResource(UrlMap.newBuilder().build())
.build();
ApiFuture<Operation> future = regionUrlMapsClient.patchCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<PatchRegionUrlMapRequest,Operation> |
patchOperationCallable()
public final OperationCallable<PatchRegionUrlMapRequest,Operation,Operation> patchOperationCallable()
Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
PatchRegionUrlMapRequest request =
PatchRegionUrlMapRequest.newBuilder()
.setProject("project-309310695")
.setRegion("region-934795532")
.setRequestId("requestId693933066")
.setUrlMap("urlMap-836780691")
.setUrlMapResource(UrlMap.newBuilder().build())
.build();
OperationFuture<Operation, Operation> future =
regionUrlMapsClient.patchOperationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
OperationCallable<PatchRegionUrlMapRequest,Operation,Operation> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
updateAsync(UpdateRegionUrlMapRequest request)
public final OperationFuture<Operation,Operation> updateAsync(UpdateRegionUrlMapRequest request)
Updates the specified UrlMap resource with the data included in the 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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
UpdateRegionUrlMapRequest request =
UpdateRegionUrlMapRequest.newBuilder()
.setProject("project-309310695")
.setRegion("region-934795532")
.setRequestId("requestId693933066")
.setUrlMap("urlMap-836780691")
.setUrlMapResource(UrlMap.newBuilder().build())
.build();
Operation response = regionUrlMapsClient.updateAsync(request).get();
}
Name | Description |
request | UpdateRegionUrlMapRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<Operation,Operation> |
updateAsync(String project, String region, String urlMap, UrlMap urlMapResource)
public final OperationFuture<Operation,Operation> updateAsync(String project, String region, String urlMap, UrlMap urlMapResource)
Updates the specified UrlMap resource with the data included in the 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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
String project = "project-309310695";
String region = "region-934795532";
String urlMap = "urlMap-836780691";
UrlMap urlMapResource = UrlMap.newBuilder().build();
Operation response =
regionUrlMapsClient.updateAsync(project, region, urlMap, urlMapResource).get();
}
Name | Description |
project | String Project ID for this request. |
region | String Name of the region scoping this request. |
urlMap | String Name of the UrlMap resource to update. |
urlMapResource | UrlMap The body resource for this request |
Type | Description |
OperationFuture<Operation,Operation> |
updateCallable()
public final UnaryCallable<UpdateRegionUrlMapRequest,Operation> updateCallable()
Updates the specified UrlMap resource with the data included in the 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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
UpdateRegionUrlMapRequest request =
UpdateRegionUrlMapRequest.newBuilder()
.setProject("project-309310695")
.setRegion("region-934795532")
.setRequestId("requestId693933066")
.setUrlMap("urlMap-836780691")
.setUrlMapResource(UrlMap.newBuilder().build())
.build();
ApiFuture<Operation> future = regionUrlMapsClient.updateCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<UpdateRegionUrlMapRequest,Operation> |
updateOperationCallable()
public final OperationCallable<UpdateRegionUrlMapRequest,Operation,Operation> updateOperationCallable()
Updates the specified UrlMap resource with the data included in the 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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
UpdateRegionUrlMapRequest request =
UpdateRegionUrlMapRequest.newBuilder()
.setProject("project-309310695")
.setRegion("region-934795532")
.setRequestId("requestId693933066")
.setUrlMap("urlMap-836780691")
.setUrlMapResource(UrlMap.newBuilder().build())
.build();
OperationFuture<Operation, Operation> future =
regionUrlMapsClient.updateOperationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
OperationCallable<UpdateRegionUrlMapRequest,Operation,Operation> |
validate(ValidateRegionUrlMapRequest request)
public final UrlMapsValidateResponse validate(ValidateRegionUrlMapRequest request)
Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.
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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
ValidateRegionUrlMapRequest request =
ValidateRegionUrlMapRequest.newBuilder()
.setProject("project-309310695")
.setRegion("region-934795532")
.setRegionUrlMapsValidateRequestResource(
RegionUrlMapsValidateRequest.newBuilder().build())
.setUrlMap("urlMap-836780691")
.build();
UrlMapsValidateResponse response = regionUrlMapsClient.validate(request);
}
Name | Description |
request | ValidateRegionUrlMapRequest The request object containing all of the parameters for the API call. |
Type | Description |
UrlMapsValidateResponse |
validate(String project, String region, String urlMap, RegionUrlMapsValidateRequest regionUrlMapsValidateRequestResource)
public final UrlMapsValidateResponse validate(String project, String region, String urlMap, RegionUrlMapsValidateRequest regionUrlMapsValidateRequestResource)
Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.
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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
String project = "project-309310695";
String region = "region-934795532";
String urlMap = "urlMap-836780691";
RegionUrlMapsValidateRequest regionUrlMapsValidateRequestResource =
RegionUrlMapsValidateRequest.newBuilder().build();
UrlMapsValidateResponse response =
regionUrlMapsClient.validate(
project, region, urlMap, regionUrlMapsValidateRequestResource);
}
Name | Description |
project | String Project ID for this request. |
region | String Name of the region scoping this request. |
urlMap | String Name of the UrlMap resource to be validated as. |
regionUrlMapsValidateRequestResource | RegionUrlMapsValidateRequest The body resource for this request |
Type | Description |
UrlMapsValidateResponse |
validateCallable()
public final UnaryCallable<ValidateRegionUrlMapRequest,UrlMapsValidateResponse> validateCallable()
Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.
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 (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
ValidateRegionUrlMapRequest request =
ValidateRegionUrlMapRequest.newBuilder()
.setProject("project-309310695")
.setRegion("region-934795532")
.setRegionUrlMapsValidateRequestResource(
RegionUrlMapsValidateRequest.newBuilder().build())
.setUrlMap("urlMap-836780691")
.build();
ApiFuture<UrlMapsValidateResponse> future =
regionUrlMapsClient.validateCallable().futureCall(request);
// Do something.
UrlMapsValidateResponse response = future.get();
}
Type | Description |
UnaryCallable<ValidateRegionUrlMapRequest,UrlMapsValidateResponse> |