Skip to content
Permalink
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.
  • Loading branch information
yoshi-automation committed Jun 3, 2020
1 parent ef3a106 commit 4be3740cf5fc967b7ba84a53c9d568f0d8502308
Showing with 2,159 additions and 3,073 deletions.
  1. +29 −0 google-cloud-dlp/clirr-ignored-differences.xml
  2. +88 −811 google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java
  3. +2 −2 google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/package-info.java
  4. +1 −1 google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java
  5. +6 −310 google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java
  6. +14 −21 ...-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequest.java
  7. +4 −6 ...loud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequestOrBuilder.java
  8. +21 −21 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequest.java
  9. +6 −6 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequestOrBuilder.java
  10. +14 −21 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequest.java
  11. +4 −6 ...e-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequestOrBuilder.java
  12. +21 −21 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequest.java
  13. +6 −6 ...google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequestOrBuilder.java
  14. +14 −21 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequest.java
  15. +4 −6 ...le-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequestOrBuilder.java
  16. +20 −16 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DateShiftConfig.java
  17. +5 −4 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DateShiftConfigOrBuilder.java
  18. +21 −21 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequest.java
  19. +6 −6 ...oogle-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequestOrBuilder.java
  20. +21 −14 ...-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteDeidentifyTemplateRequest.java
  21. +6 −4 ...loud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteDeidentifyTemplateRequestOrBuilder.java
  22. +21 −21 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteInspectTemplateRequest.java
  23. +6 −6 ...e-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteInspectTemplateRequestOrBuilder.java
  24. +14 −14 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteStoredInfoTypeRequest.java
  25. +4 −4 ...le-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteStoredInfoTypeRequestOrBuilder.java
  26. +846 −857 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java
  27. +14 −14 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Finding.java
  28. +4 −4 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FindingOrBuilder.java
  29. +80 −80 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FixedSizeBucketingConfig.java
  30. +20 −20 ...oogle-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FixedSizeBucketingConfigOrBuilder.java
  31. +21 −21 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetDeidentifyTemplateRequest.java
  32. +6 −6 ...e-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetDeidentifyTemplateRequestOrBuilder.java
  33. +14 −14 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetInspectTemplateRequest.java
  34. +4 −4 ...ogle-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetInspectTemplateRequestOrBuilder.java
  35. +14 −14 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetStoredInfoTypeRequest.java
  36. +4 −4 ...oogle-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetStoredInfoTypeRequestOrBuilder.java
  37. +14 −14 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectDlpJobRequest.java
  38. +4 −4 ...gle-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectDlpJobRequestOrBuilder.java
  39. +14 −14 ...o-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectJobTriggerRequest.java
  40. +4 −4 ...cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectJobTriggerRequestOrBuilder.java
  41. +2 −2 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectStatistics.java
  42. +21 −35 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequest.java
  43. +6 −10 ...o-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequestOrBuilder.java
  44. +14 −21 ...o-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java
  45. +4 −6 ...cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java
  46. +21 −21 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequest.java
  47. +6 −6 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequestOrBuilder.java
  48. +184 −14 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInfoTypesRequest.java
  49. +27 −4 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInfoTypesRequestOrBuilder.java
  50. +14 −21 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java
  51. +4 −6 ...le-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java
  52. +21 −21 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java
  53. +6 −6 ...-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java
  54. +14 −21 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java
  55. +4 −6 ...gle-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java
  56. +142 −142 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/PrivacyMetric.java
  57. +21 −28 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequest.java
  58. +6 −8 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequestOrBuilder.java
  59. +7 −14 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequest.java
  60. +2 −4 ...oogle-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequestOrBuilder.java
  61. +24 −24 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StatisticalTable.java
  62. +6 −6 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StatisticalTableOrBuilder.java
  63. +21 −14 ...-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateDeidentifyTemplateRequest.java
  64. +6 −4 ...loud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateDeidentifyTemplateRequestOrBuilder.java
  65. +14 −14 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateInspectTemplateRequest.java
  66. +4 −4 ...e-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateInspectTemplateRequestOrBuilder.java
  67. +135 −166 proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto
  68. +2 −2 synth.metadata
@@ -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.

@@ -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>
@@ -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();
}
})

0 comments on commit 4be3740

Please sign in to comment.