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

Commit 4be3740

Browse files
fix!: change routing to remove location parameter in preparation for 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.
1 parent ef3a106 commit 4be3740

File tree

68 files changed

+2159
-3073
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+2159
-3073
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- see http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html -->
3+
<differences>
4+
<difference>
5+
<differenceType>7002</differenceType>
6+
<className>com/google/cloud/dlp/v2/DlpServiceClient</className>
7+
<method>* createDeidentifyTemplate(*)</method>
8+
</difference>
9+
<difference>
10+
<differenceType>7002</differenceType>
11+
<className>com/google/cloud/dlp/v2/DlpServiceClient</className>
12+
<method>* createDlpJob(*)</method>
13+
</difference>
14+
<difference>
15+
<differenceType>7002</differenceType>
16+
<className>com/google/cloud/dlp/v2/DlpServiceClient</className>
17+
<method>* createInspectTemplate(*)</method>
18+
</difference>
19+
<difference>
20+
<differenceType>7002</differenceType>
21+
<className>com/google/cloud/dlp/v2/DlpServiceClient</className>
22+
<method>* createJobTrigger(*)</method>
23+
</difference>
24+
<difference>
25+
<differenceType>7002</differenceType>
26+
<className>com/google/cloud/dlp/v2/DlpServiceClient</className>
27+
<method>* createStoredInfoType(*)</method>
28+
</difference>
29+
</differences>

google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java

Lines changed: 88 additions & 811 deletions
Large diffs are not rendered by default.

google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/package-info.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
* <pre>
3535
* <code>
3636
* try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
37-
* String locationId = "";
38-
* ListInfoTypesResponse response = dlpServiceClient.listInfoTypes(locationId);
37+
* String parent = "";
38+
* ListInfoTypesResponse response = dlpServiceClient.listInfoTypes(parent);
3939
* }
4040
* </code>
4141
* </pre>

google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ public Map<String, String> extract(ReidentifyContentRequest request) {
562562
@Override
563563
public Map<String, String> extract(ListInfoTypesRequest request) {
564564
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
565-
params.put("location_id", String.valueOf(request.getLocationId()));
565+
params.put("parent", String.valueOf(request.getParent()));
566566
return params.build();
567567
}
568568
})

0 commit comments

Comments
 (0)