Skip to content
Permalink
Browse files
feat: add ListEntryGroups method, add http bindings to support entry …
…group tagging (#85)
  • Loading branch information
yoshi-automation committed Feb 6, 2020
1 parent 059d7a8 commit fd021e7d4ff9a092bdd7dc238fa9c46c91269ffc
Showing with 9,810 additions and 915 deletions.
  1. +1 −1 README.md
  2. +262 −92 google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java
  3. +34 −0 google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogSettings.java
  4. +17 −0 ...le-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStub.java
  5. +84 −2 ...-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java
  6. +99 −0 ...loud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogStub.java
  7. +12 −0 ...e-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientTest.java
  8. +45 −0 google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockDataCatalogImpl.java
  9. +534 −98 ...cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java
  10. +53 −0 ...o-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Common.java
  11. +14 −14 ...loud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequest.java
  12. +4 −4 ...catalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequestOrBuilder.java
  13. +35 −28 ...log-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequest.java
  14. +10 −8 ...a1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequestOrBuilder.java
  15. +28 −28 ...acatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequest.java
  16. +8 −8 ...v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequestOrBuilder.java
  17. +391 −281 ...gle-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Datacatalog.java
  18. +88 −0 ...tacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequest.java
  19. +13 −0 ...-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequestOrBuilder.java
  20. +862 −44 proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Entry.java
  21. +24 −12 ...ogle-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroup.java
  22. +6 −3 ...d-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupOrBuilder.java
  23. +131 −10 ...-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryOrBuilder.java
  24. +24 −2 ...oogle-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryType.java
  25. +130 −13 ...-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpec.java
  26. +40 −4 ...tacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOrBuilder.java
  27. +0 −28 ...cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequest.java
  28. +0 −8 ...acatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequestOrBuilder.java
  29. +173 −0 ...loud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/IntegratedSystem.java
  30. +1,242 −0 ...ud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequest.java
  31. +143 −0 ...talog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequestOrBuilder.java
  32. +1,131 −0 ...d-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponse.java
  33. +104 −0 ...alog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponseOrBuilder.java
  34. +941 −0 ...atacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequest.java
  35. +99 −0 ...g-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequestOrBuilder.java
  36. +1,143 −0 ...tacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponse.java
  37. +104 −0 ...-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponseOrBuilder.java
  38. +35 −7 ...cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequest.java
  39. +10 −2 ...acatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequestOrBuilder.java
  40. +7 −7 ...ud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequest.java
  41. +2 −2 ...talog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequestOrBuilder.java
  42. +6 −16 ...oogle-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTag.java
  43. +14 −7 ...log-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequest.java
  44. +4 −2 ...a1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequestOrBuilder.java
  45. +16 −13 ...o-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Search.java
  46. +35 −42 ...-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequest.java
  47. +10 −12 ...log-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequestOrBuilder.java
  48. +12 −6 ...gle-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplate.java
  49. +1,042 −0 ...tacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequest.java
  50. +104 −0 ...-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequestOrBuilder.java
  51. +96 −0 ...ud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequest.java
  52. +24 −0 ...talog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequestOrBuilder.java
  53. +36 −0 proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/common.proto
  54. +301 −94 ...oogle-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/datacatalog.proto
  55. +12 −1 ...-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto
  56. +3 −8 ...-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/policytagmanager.proto
  57. +1 −0 proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/search.proto
  58. +6 −3 proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/tags.proto
  59. +5 −5 synth.metadata
@@ -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>3.5.0</version>
<version>4.0.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>

Large diffs are not rendered by default.

@@ -196,6 +196,22 @@ public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
return ((DataCatalogStubSettings) getStubSettings()).testIamPermissionsSettings();
}

/** Returns the object with the settings used for calls to updateEntryGroup. */
public UnaryCallSettings<UpdateEntryGroupRequest, EntryGroup> updateEntryGroupSettings() {
return ((DataCatalogStubSettings) getStubSettings()).updateEntryGroupSettings();
}

/** Returns the object with the settings used for calls to listEntryGroups. */
public UnaryCallSettings<ListEntryGroupsRequest, ListEntryGroupsResponse>
listEntryGroupsSettings() {
return ((DataCatalogStubSettings) getStubSettings()).listEntryGroupsSettings();
}

/** Returns the object with the settings used for calls to listEntries. */
public UnaryCallSettings<ListEntriesRequest, ListEntriesResponse> listEntriesSettings() {
return ((DataCatalogStubSettings) getStubSettings()).listEntriesSettings();
}

public static final DataCatalogSettings create(DataCatalogStubSettings stub) throws IOException {
return new DataCatalogSettings.Builder(stub.toBuilder()).build();
}
@@ -423,6 +439,24 @@ public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettin
return getStubSettingsBuilder().testIamPermissionsSettings();
}

/** Returns the builder for the settings used for calls to updateEntryGroup. */
public UnaryCallSettings.Builder<UpdateEntryGroupRequest, EntryGroup>
updateEntryGroupSettings() {
return getStubSettingsBuilder().updateEntryGroupSettings();
}

/** Returns the builder for the settings used for calls to listEntryGroups. */
public UnaryCallSettings.Builder<ListEntryGroupsRequest, ListEntryGroupsResponse>
listEntryGroupsSettings() {
return getStubSettingsBuilder().listEntryGroupsSettings();
}

/** Returns the builder for the settings used for calls to listEntries. */
public UnaryCallSettings.Builder<ListEntriesRequest, ListEntriesResponse>
listEntriesSettings() {
return getStubSettingsBuilder().listEntriesSettings();
}

@Override
public DataCatalogSettings build() throws IOException {
return new DataCatalogSettings(this);
@@ -36,6 +36,10 @@
import com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest;
import com.google.cloud.datacatalog.v1beta1.GetEntryRequest;
import com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest;
import com.google.cloud.datacatalog.v1beta1.ListEntriesRequest;
import com.google.cloud.datacatalog.v1beta1.ListEntriesResponse;
import com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest;
import com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse;
import com.google.cloud.datacatalog.v1beta1.ListTagsRequest;
import com.google.cloud.datacatalog.v1beta1.ListTagsResponse;
import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest;
@@ -45,6 +49,7 @@
import com.google.cloud.datacatalog.v1beta1.Tag;
import com.google.cloud.datacatalog.v1beta1.TagTemplate;
import com.google.cloud.datacatalog.v1beta1.TagTemplateField;
import com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest;
import com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest;
import com.google.cloud.datacatalog.v1beta1.UpdateTagRequest;
import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest;
@@ -176,6 +181,18 @@ public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
}

public UnaryCallable<UpdateEntryGroupRequest, EntryGroup> updateEntryGroupCallable() {
throw new UnsupportedOperationException("Not implemented: updateEntryGroupCallable()");
}

public UnaryCallable<ListEntryGroupsRequest, ListEntryGroupsResponse> listEntryGroupsCallable() {
throw new UnsupportedOperationException("Not implemented: listEntryGroupsCallable()");
}

public UnaryCallable<ListEntriesRequest, ListEntriesResponse> listEntriesCallable() {
throw new UnsupportedOperationException("Not implemented: listEntriesCallable()");
}

@Override
public abstract void close();
}
@@ -55,6 +55,10 @@
import com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest;
import com.google.cloud.datacatalog.v1beta1.GetEntryRequest;
import com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest;
import com.google.cloud.datacatalog.v1beta1.ListEntriesRequest;
import com.google.cloud.datacatalog.v1beta1.ListEntriesResponse;
import com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest;
import com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse;
import com.google.cloud.datacatalog.v1beta1.ListTagsRequest;
import com.google.cloud.datacatalog.v1beta1.ListTagsResponse;
import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest;
@@ -65,6 +69,7 @@
import com.google.cloud.datacatalog.v1beta1.Tag;
import com.google.cloud.datacatalog.v1beta1.TagTemplate;
import com.google.cloud.datacatalog.v1beta1.TagTemplateField;
import com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest;
import com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest;
import com.google.cloud.datacatalog.v1beta1.UpdateTagRequest;
import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest;
@@ -150,6 +155,10 @@ public class DataCatalogStubSettings extends StubSettings<DataCatalogStubSetting
private final UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings;
private final UnaryCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsSettings;
private final UnaryCallSettings<UpdateEntryGroupRequest, EntryGroup> updateEntryGroupSettings;
private final UnaryCallSettings<ListEntryGroupsRequest, ListEntryGroupsResponse>
listEntryGroupsSettings;
private final UnaryCallSettings<ListEntriesRequest, ListEntriesResponse> listEntriesSettings;

/** Returns the object with the settings used for calls to searchCatalog. */
public PagedCallSettings<SearchCatalogRequest, SearchCatalogResponse, SearchCatalogPagedResponse>
@@ -277,6 +286,22 @@ public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
return testIamPermissionsSettings;
}

/** Returns the object with the settings used for calls to updateEntryGroup. */
public UnaryCallSettings<UpdateEntryGroupRequest, EntryGroup> updateEntryGroupSettings() {
return updateEntryGroupSettings;
}

/** Returns the object with the settings used for calls to listEntryGroups. */
public UnaryCallSettings<ListEntryGroupsRequest, ListEntryGroupsResponse>
listEntryGroupsSettings() {
return listEntryGroupsSettings;
}

/** Returns the object with the settings used for calls to listEntries. */
public UnaryCallSettings<ListEntriesRequest, ListEntriesResponse> listEntriesSettings() {
return listEntriesSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public DataCatalogStub createStub() throws IOException {
if (getTransportChannelProvider()
@@ -370,6 +395,9 @@ protected DataCatalogStubSettings(Builder settingsBuilder) throws IOException {
setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
updateEntryGroupSettings = settingsBuilder.updateEntryGroupSettings().build();
listEntryGroupsSettings = settingsBuilder.listEntryGroupsSettings().build();
listEntriesSettings = settingsBuilder.listEntriesSettings().build();
}

private static final PagedListDescriptor<
@@ -523,6 +551,12 @@ public static class Builder extends StubSettings.Builder<DataCatalogStubSettings
private final UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings;
private final UnaryCallSettings.Builder<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsSettings;
private final UnaryCallSettings.Builder<UpdateEntryGroupRequest, EntryGroup>
updateEntryGroupSettings;
private final UnaryCallSettings.Builder<ListEntryGroupsRequest, ListEntryGroupsResponse>
listEntryGroupsSettings;
private final UnaryCallSettings.Builder<ListEntriesRequest, ListEntriesResponse>
listEntriesSettings;

private static final ImmutableMap<String, ImmutableSet<StatusCode.Code>>
RETRYABLE_CODE_DEFINITIONS;
@@ -613,6 +647,12 @@ protected Builder(ClientContext clientContext) {

testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();

updateEntryGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();

listEntryGroupsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();

listEntriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();

unaryMethodSettingsBuilders =
ImmutableList.<UnaryCallSettings.Builder<?, ?>>of(
searchCatalogSettings,
@@ -638,7 +678,10 @@ protected Builder(ClientContext clientContext) {
listTagsSettings,
setIamPolicySettings,
getIamPolicySettings,
testIamPermissionsSettings);
testIamPermissionsSettings,
updateEntryGroupSettings,
listEntryGroupsSettings,
listEntriesSettings);

initDefaults(this);
}
@@ -774,6 +817,21 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));

builder
.updateEntryGroupSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));

builder
.listEntryGroupsSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));

builder
.listEntriesSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));

return builder;
}

@@ -804,6 +862,9 @@ protected Builder(DataCatalogStubSettings settings) {
setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
updateEntryGroupSettings = settings.updateEntryGroupSettings.toBuilder();
listEntryGroupsSettings = settings.listEntryGroupsSettings.toBuilder();
listEntriesSettings = settings.listEntriesSettings.toBuilder();

unaryMethodSettingsBuilders =
ImmutableList.<UnaryCallSettings.Builder<?, ?>>of(
@@ -830,7 +891,10 @@ protected Builder(DataCatalogStubSettings settings) {
listTagsSettings,
setIamPolicySettings,
getIamPolicySettings,
testIamPermissionsSettings);
testIamPermissionsSettings,
updateEntryGroupSettings,
listEntryGroupsSettings,
listEntriesSettings);
}

// NEXT_MAJOR_VER: remove 'throws Exception'
@@ -980,6 +1044,24 @@ public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettin
return testIamPermissionsSettings;
}

/** Returns the builder for the settings used for calls to updateEntryGroup. */
public UnaryCallSettings.Builder<UpdateEntryGroupRequest, EntryGroup>
updateEntryGroupSettings() {
return updateEntryGroupSettings;
}

/** Returns the builder for the settings used for calls to listEntryGroups. */
public UnaryCallSettings.Builder<ListEntryGroupsRequest, ListEntryGroupsResponse>
listEntryGroupsSettings() {
return listEntryGroupsSettings;
}

/** Returns the builder for the settings used for calls to listEntries. */
public UnaryCallSettings.Builder<ListEntriesRequest, ListEntriesResponse>
listEntriesSettings() {
return listEntriesSettings;
}

@Override
public DataCatalogStubSettings build() throws IOException {
return new DataCatalogStubSettings(this);

0 comments on commit fd021e7

Please sign in to comment.