Skip to content
Permalink
Browse files
feat(v1beta1)!: regenerate with Gapic V2 pagination settings (#196)
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/129bf4ce-2255-4b88-83a1-1b40d560e3d3/targets

Source-Link: googleapis/synthtool@8b65daa
PiperOrigin-RevId: 313460921
Source-Link: googleapis/googleapis@c4e3701
PiperOrigin-RevId: 310415142
Source-Link: googleapis/googleapis@684dfea
PiperOrigin-RevId: 309824146
Source-Link: googleapis/googleapis@e0f9d9e

BREAKING CHANGE: return types for list methods now return paginated responses
  • Loading branch information
yoshi-automation committed Jun 4, 2020
1 parent a666443 commit 9f27e23393e6f30959e39bae9502c937d276f8d9
Showing with 6,465 additions and 2,532 deletions.
  1. +8 −0 .github/CODEOWNERS
  2. +1 −1 README.md
  3. +60 −0 google-cloud-datacatalog/clirr-ignored-differences.xml
  4. +139 −0 google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java
  5. +1,815 −1,150 google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java
  6. +106 −100 google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogSettings.java
  7. +779 −34 ...-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java
  8. +24 −5 ...talog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClient.java
  9. +14 −4 ...loud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSettings.java
  10. +9 −7 google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/package-info.java
  11. +47 −36 ...le-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStub.java
  12. +334 −215 ...-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java
  13. +278 −257 ...loud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogStub.java
  14. +23 −0 ...datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerStub.java
  15. +13 −0 ...oud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStub.java
  16. +138 −10 ...catalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStubSettings.java
  17. +4 −15 google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientTest.java
  18. +602 −374 ...e-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientTest.java
  19. +135 −64 ...ud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClientTest.java
  20. +24 −4 ...g/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClientTest.java
  21. +6 −0 ...e-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpec.java
  22. +17 −0 ...-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryTableSpec.java
  23. +13 −0 proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ColumnSchema.java
  24. +7 −0 ...e-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryGroupRequest.java
  25. +7 −0 ...google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryRequest.java
  26. +19 −14 ...o-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagRequest.java
  27. +4 −4 ...cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagRequestOrBuilder.java
  28. +7 −0 ...d-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateFieldRequest.java
  29. +7 −0 ...-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateRequest.java
  30. +28 −28 proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Datacatalog.java
  31. +4 −0 ...e-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryGroupRequest.java
  32. +2 −0 ...google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryRequest.java
  33. +2 −0 ...o-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagRequest.java
  34. +4 −0 ...d-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateFieldRequest.java
  35. +4 −0 ...-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateRequest.java
  36. +54 −14 proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Entry.java
  37. +33 −12 proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroup.java
  38. +6 −3 ...oogle-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupOrBuilder.java
  39. +4 −4 proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOrBuilder.java
  40. +4 −0 proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryType.java
  41. +19 −0 proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FieldType.java
  42. +7 −0 proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFileSpec.java
  43. +5 −0 proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpec.java
  44. +5 −0 ...ogle-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryGroupRequest.java
  45. +2 −0 proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryRequest.java
  46. +2 −0 ...gle-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTagTemplateRequest.java
  47. +4 −0 ...o-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/IntegratedSystem.java
  48. +9 −0 ...google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesRequest.java
  49. +7 −0 ...oogle-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesResponse.java
  50. +42 −36 ...le-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsRequest.java
  51. +10 −10 ...datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsRequestOrBuilder.java
  52. +7 −0 ...e-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsResponse.java
  53. +20 −14 proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsRequest.java
  54. +4 −4 ...-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsRequestOrBuilder.java
  55. +7 −0 ...o-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsResponse.java
  56. +4 −0 ...google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookupEntryRequest.java
  57. +18 −7 ...d-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequest.java
  58. +4 −2 ...alog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequestOrBuilder.java
  59. +5 −0 proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Schema.java
  60. +41 −21 ...ogle-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequest.java
  61. +8 −6 ...d-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequestOrBuilder.java
  62. +7 −0 ...gle-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResponse.java
  63. +15 −0 ...oogle-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResult.java
  64. +4 −0 ...o-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchResultType.java
  65. +9 −0 ...o-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SystemTimestamps.java
  66. +4 −0 proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSourceType.java
  67. +2 −0 proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpec.java
  68. +18 −0 proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tag.java
  69. +22 −0 proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagField.java
  70. +14 −0 proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplate.java
  71. +11 −0 ...o-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateField.java
  72. +6 −0 ...e-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryGroupRequest.java
  73. +6 −0 ...google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryRequest.java
  74. +6 −0 ...o-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagRequest.java
  75. +8 −0 ...d-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateFieldRequest.java
  76. +6 −0 ...-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequest.java
  77. +2 −0 proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ViewSpec.java
  78. +65 −42 proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/datacatalog.proto
  79. +6 −0 ...tacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpec.java
  80. +17 −0 ...oud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpec.java
  81. +13 −0 ...le-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchema.java
  82. +7 −0 ...tacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequest.java
  83. +7 −0 ...ud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequest.java
  84. +5 −0 ...atacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequest.java
  85. +5 −0 ...loud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequest.java
  86. +7 −0 ...log-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequest.java
  87. +7 −0 ...acatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequest.java
  88. +5 −0 ...datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequest.java
  89. +30 −29 ...gle-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Datacatalog.java
  90. +4 −0 ...tacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequest.java
  91. +2 −0 ...ud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequest.java
  92. +2 −0 ...atacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequest.java
  93. +2 −0 ...loud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequest.java
  94. +4 −0 ...log-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequest.java
  95. +4 −0 ...acatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequest.java
  96. +2 −0 ...datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequest.java
  97. +40 −0 proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Entry.java
  98. +9 −0 ...ogle-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroup.java
  99. +4 −0 ...oogle-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryType.java
  100. +3 −0 ...tacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequest.java
  101. +5 −0 ...acatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponse.java
  102. +19 −0 ...oogle-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldType.java
  103. +7 −0 ...gle-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpec.java
  104. +5 −0 ...-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpec.java
  105. +5 −0 ...-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequest.java
  106. +2 −0 ...cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequest.java
  107. +2 −0 ...d-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequest.java
  108. +2 −0 ...datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequest.java
  109. +2 −0 ...ud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequest.java
  110. +8 −0 ...tacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequest.java
  111. +5 −0 ...acatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponse.java
  112. +5 −0 ...le-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSource.java
  113. +4 −0 ...loud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/IntegratedSystem.java
  114. +9 −0 ...ud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequest.java
  115. +7 −0 ...d-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponse.java
  116. +6 −0 ...atacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequest.java
  117. +7 −0 ...tacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponse.java
  118. +6 −0 ...datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequest.java
  119. +7 −0 ...atacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponse.java
  120. +6 −0 ...cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequest.java
  121. +7 −0 ...loud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponse.java
  122. +6 −0 ...datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequest.java
  123. +7 −0 ...atacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponse.java
  124. +4 −0 ...ud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequest.java
  125. +8 −0 ...oogle-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTag.java
  126. +243 −0 ...e-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagName.java
  127. +4 −0 ...log-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequest.java
  128. +5 −0 ...o-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Schema.java
  129. +13 −0 ...-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequest.java
  130. +7 −0 ...datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponse.java
  131. +11 −0 ...d-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResult.java
  132. +4 −0 ...loud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchResultType.java
  133. +9 −0 ...d-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTag.java
  134. +9 −0 ...ud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomy.java
  135. +9 −0 ...loud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestamps.java
  136. +4 −0 ...cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSourceType.java
  137. +2 −0 ...oogle-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpec.java
  138. +18 −0 proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tag.java
  139. +22 −0 ...google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagField.java
  140. +14 −0 ...gle-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplate.java
  141. +11 −0 ...loud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateField.java
  142. +243 −0 ...-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldName.java
  143. +15 −0 ...google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Taxonomy.java
  144. +211 −0 ...le-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyName.java
  145. +6 −0 ...tacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequest.java
  146. +6 −0 ...ud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequest.java
  147. +6 −0 ...atacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequest.java
  148. +6 −0 ...loud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequest.java
  149. +8 −0 ...log-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequest.java
  150. +6 −0 ...acatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequest.java
  151. +6 −0 ...datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequest.java
  152. +2 −0 ...google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpec.java
  153. +3 −0 ...oogle-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/datacatalog.proto
  154. +6 −6 synth.metadata
Validating CODEOWNERS rules …
@@ -0,0 +1,8 @@
# Code owners file.
# This file controls who is tagged for review for any given pull request.

# For syntax help see:
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax

# The java-samples-reviewers team is the default owner for samples changes
samples/**/*.java @googleapis/java-samples-reviewers
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>5.3.0</version>
<version>5.5.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
@@ -0,0 +1,60 @@
<?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/datacatalog/v1beta1/DataCatalogClient</className>
<method>java.lang.String format*(*)</method>
</difference>
<difference>
<differenceType>7002</differenceType>
<className>com/google/cloud/datacatalog/v1beta1/DataCatalogClient</className>
<method>java.lang.String parse*(*)</method>
</difference>
<difference>
<differenceType>7002</differenceType>
<className>com/google/cloud/datacatalog/v1beta1/DataCatalogClient</className>
<method>* testIamPermissions(*)</method>
</difference>
<difference>
<differenceType>7006</differenceType>
<className>com/google/cloud/datacatalog/v1beta1/DataCatalogClient</className>
<method>com.google.cloud.datacatalog.v1beta1.List*Response list*(*)</method>
<to>com.google.cloud.datacatalog.v1beta1.DataCatalogClient$List*PagedResponse</to>
</difference>
<difference>
<differenceType>7006</differenceType>
<className>com/google/cloud/datacatalog/v1beta1/DataCatalogSettings*</className>
<method>com.google.api.gax.rpc.UnaryCallSettings* list*Settings()</method>
<to>com.google.api.gax.rpc.PagedCallSettings*</to>
</difference>
<difference>
<differenceType>7006</differenceType>
<className>com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings*</className>
<method>com.google.api.gax.rpc.UnaryCallSettings* list*Settings()</method>
<to>com.google.api.gax.rpc.PagedCallSettings*</to>
</difference>
<difference>
<differenceType>7006</differenceType>
<className>com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient</className>
<method>com.google.cloud.datacatalog.v1beta1.List*Response list*(*)</method>
<to>com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient$List*PagedResponse</to>
</difference>
<difference>
<differenceType>7006</differenceType>
<className>com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSettings*</className>
<method>com.google.api.gax.rpc.UnaryCallSettings* list*Settings()</method>
<to>com.google.api.gax.rpc.PagedCallSettings*</to>
</difference>
<difference>
<differenceType>7006</differenceType>
<className>com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStubSettings*</className>
<method>com.google.api.gax.rpc.UnaryCallSettings* list*Settings()</method>
<to>com.google.api.gax.rpc.PagedCallSettings*</to>
</difference>
<difference>
<differenceType>7004</differenceType>
<className>com/google/cloud/datacatalog/v1beta1/DataCatalogClient</className>
<method>com.google.cloud.datacatalog.v1beta1.DataCatalogClient$SearchCatalogPagedResponse searchCatalog(com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest$Scope, java.lang.String, java.lang.String)</method>
</difference>
</differences>
@@ -25,6 +25,7 @@
import com.google.api.gax.paging.AbstractPagedListResponse;
import com.google.api.gax.rpc.PageContext;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.api.resourcenames.ResourceName;
import com.google.cloud.datacatalog.v1.stub.DataCatalogStub;
import com.google.cloud.datacatalog.v1.stub.DataCatalogStubSettings;
import com.google.common.util.concurrent.MoreExecutors;
@@ -3108,6 +3109,77 @@ public final UnaryCallable<ListTagsRequest, ListTagsResponse> listTagsCallable()
return stub.listTagsCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Sets the access control policy for a resource. Replaces any existing policy. Supported
* resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to
* manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform resources synced
* to Data Catalog.
*
* <p>Callers must have following Google IAM permission - `datacatalog.tagTemplates.setIamPolicy`
* to set policies on tag templates. - `datacatalog.entries.setIamPolicy` to set policies on
* entries. - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
*
* <p>Sample code:
*
* <pre><code>
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
* Policy policy = Policy.newBuilder().build();
* Policy response = dataCatalogClient.setIamPolicy(resource, policy);
* }
* </code></pre>
*
* @param resource REQUIRED: The resource for which the policy is being specified. See the
* operation documentation for the appropriate value for this field.
* @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the
* policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud
* Platform services (such as Projects) might reject them.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Policy setIamPolicy(ResourceName resource, Policy policy) {
SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
.setResource(resource == null ? null : resource.toString())
.setPolicy(policy)
.build();
return setIamPolicy(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Sets the access control policy for a resource. Replaces any existing policy. Supported
* resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to
* manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform resources synced
* to Data Catalog.
*
* <p>Callers must have following Google IAM permission - `datacatalog.tagTemplates.setIamPolicy`
* to set policies on tag templates. - `datacatalog.entries.setIamPolicy` to set policies on
* entries. - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
*
* <p>Sample code:
*
* <pre><code>
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
* Policy policy = Policy.newBuilder().build();
* Policy response = dataCatalogClient.setIamPolicy(resource.toString(), policy);
* }
* </code></pre>
*
* @param resource REQUIRED: The resource for which the policy is being specified. See the
* operation documentation for the appropriate value for this field.
* @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the
* policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud
* Platform services (such as Projects) might reject them.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Policy setIamPolicy(String resource, Policy policy) {
SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build();
return setIamPolicy(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Sets the access control policy for a resource. Replaces any existing policy. Supported
@@ -3171,6 +3243,73 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
return stub.setIamPolicyCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Gets the access control policy for a resource. A `NOT_FOUND` error is returned if the resource
* does not exist. An empty policy is returned if the resource exists but does not have a policy
* set on it.
*
* <p>Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method
* cannot be used to manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform
* resources synced to Data Catalog.
*
* <p>Callers must have following Google IAM permission - `datacatalog.tagTemplates.getIamPolicy`
* to get policies on tag templates. - `datacatalog.entries.getIamPolicy` to get policies on
* entries. - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.
*
* <p>Sample code:
*
* <pre><code>
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
* Policy response = dataCatalogClient.getIamPolicy(resource);
* }
* </code></pre>
*
* @param resource REQUIRED: The resource for which the policy is being requested. See the
* operation documentation for the appropriate value for this field.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Policy getIamPolicy(ResourceName resource) {
GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(resource == null ? null : resource.toString())
.build();
return getIamPolicy(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Gets the access control policy for a resource. A `NOT_FOUND` error is returned if the resource
* does not exist. An empty policy is returned if the resource exists but does not have a policy
* set on it.
*
* <p>Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method
* cannot be used to manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform
* resources synced to Data Catalog.
*
* <p>Callers must have following Google IAM permission - `datacatalog.tagTemplates.getIamPolicy`
* to get policies on tag templates. - `datacatalog.entries.getIamPolicy` to get policies on
* entries. - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.
*
* <p>Sample code:
*
* <pre><code>
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
* Policy response = dataCatalogClient.getIamPolicy(resource.toString());
* }
* </code></pre>
*
* @param resource REQUIRED: The resource for which the policy is being requested. See the
* operation documentation for the appropriate value for this field.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Policy getIamPolicy(String resource) {
GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build();
return getIamPolicy(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Gets the access control policy for a resource. A `NOT_FOUND` error is returned if the resource

0 comments on commit 9f27e23

Please sign in to comment.