Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
fix!: change routing to remove location parameter in preparation for …
Browse files Browse the repository at this point in the history
…the addition of regional support (#178)

This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/0ba8d2f8-7f35-417b-8c9a-d829ca01eac0/targets

PiperOrigin-RevId: 311164352
Source-Link: googleapis/googleapis@1b8b77d

BREAKING CHANGE: Location name helpers have been removed in preparation for regionalization support. Please use a parent string directly instead.
  • Loading branch information
yoshi-automation committed Jun 3, 2020
1 parent ef3a106 commit 4be3740
Show file tree
Hide file tree
Showing 68 changed files with 2,159 additions and 3,073 deletions.
29 changes: 29 additions & 0 deletions google-cloud-dlp/clirr-ignored-differences.xml
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- see http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html -->
<differences>
<difference>
<differenceType>7002</differenceType>
<className>com/google/cloud/dlp/v2/DlpServiceClient</className>
<method>* createDeidentifyTemplate(*)</method>
</difference>
<difference>
<differenceType>7002</differenceType>
<className>com/google/cloud/dlp/v2/DlpServiceClient</className>
<method>* createDlpJob(*)</method>
</difference>
<difference>
<differenceType>7002</differenceType>
<className>com/google/cloud/dlp/v2/DlpServiceClient</className>
<method>* createInspectTemplate(*)</method>
</difference>
<difference>
<differenceType>7002</differenceType>
<className>com/google/cloud/dlp/v2/DlpServiceClient</className>
<method>* createJobTrigger(*)</method>
</difference>
<difference>
<differenceType>7002</differenceType>
<className>com/google/cloud/dlp/v2/DlpServiceClient</className>
<method>* createStoredInfoType(*)</method>
</difference>
</differences>

Large diffs are not rendered by default.

Expand Up @@ -34,8 +34,8 @@
* <pre>
* <code>
* try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
* String locationId = "";
* ListInfoTypesResponse response = dlpServiceClient.listInfoTypes(locationId);
* String parent = "";
* ListInfoTypesResponse response = dlpServiceClient.listInfoTypes(parent);
* }
* </code>
* </pre>
Expand Down
Expand Up @@ -562,7 +562,7 @@ public Map<String, String> extract(ReidentifyContentRequest request) {
@Override
public Map<String, String> extract(ListInfoTypesRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("location_id", String.valueOf(request.getLocationId()));
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
Expand Down

0 comments on commit 4be3740

Please sign in to comment.