Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [dataplex] added client side library for the followings: #10566

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -836,8 +836,7 @@ public final Policy getIamPolicy(ResourceName resource) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
* String resource =
* AssetName.of("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ASSET]").toString();
* String resource = AspectTypeName.of("[PROJECT]", "[LOCATION]", "[ASPECT_TYPE]").toString();
* Policy response = contentServiceClient.getIamPolicy(resource);
* }
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,24 @@
* </td>
* </tr>
* <tr>
* <td><p> GenerateDataQualityRules</td>
* <td><p> Generates recommended DataQualityRule from a data profiling DataScan.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> generateDataQualityRules(GenerateDataQualityRulesRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> generateDataQualityRules(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> generateDataQualityRulesCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> ListLocations</td>
* <td><p> Lists information about the supported locations for this service.</td>
* <td>
Expand Down Expand Up @@ -1545,6 +1563,94 @@ public final ListDataScanJobsPagedResponse listDataScanJobs(ListDataScanJobsRequ
return stub.listDataScanJobsCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Generates recommended DataQualityRule from a data profiling DataScan.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
* String name = "name3373707";
* GenerateDataQualityRulesResponse response =
* dataScanServiceClient.generateDataQualityRules(name);
* }
* }</pre>
*
* @param name Required. The name should be either
* <ul>
* <li>the name of a datascan with at least one successful completed data profiling job, or
* <li>the name of a successful completed data profiling datascan job.
* </ul>
*
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final GenerateDataQualityRulesResponse generateDataQualityRules(String name) {
GenerateDataQualityRulesRequest request =
GenerateDataQualityRulesRequest.newBuilder().setName(name).build();
return generateDataQualityRules(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Generates recommended DataQualityRule from a data profiling DataScan.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
* GenerateDataQualityRulesRequest request =
* GenerateDataQualityRulesRequest.newBuilder().setName("name3373707").build();
* GenerateDataQualityRulesResponse response =
* dataScanServiceClient.generateDataQualityRules(request);
* }
* }</pre>
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final GenerateDataQualityRulesResponse generateDataQualityRules(
GenerateDataQualityRulesRequest request) {
return generateDataQualityRulesCallable().call(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Generates recommended DataQualityRule from a data profiling DataScan.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
* GenerateDataQualityRulesRequest request =
* GenerateDataQualityRulesRequest.newBuilder().setName("name3373707").build();
* ApiFuture<GenerateDataQualityRulesResponse> future =
* dataScanServiceClient.generateDataQualityRulesCallable().futureCall(request);
* // Do something.
* GenerateDataQualityRulesResponse response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<GenerateDataQualityRulesRequest, GenerateDataQualityRulesResponse>
generateDataQualityRulesCallable() {
return stub.generateDataQualityRulesCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists information about the supported locations for this service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ public UnaryCallSettings<GetDataScanJobRequest, DataScanJob> getDataScanJobSetti
return ((DataScanServiceStubSettings) getStubSettings()).listDataScanJobsSettings();
}

/** Returns the object with the settings used for calls to generateDataQualityRules. */
public UnaryCallSettings<GenerateDataQualityRulesRequest, GenerateDataQualityRulesResponse>
generateDataQualityRulesSettings() {
return ((DataScanServiceStubSettings) getStubSettings()).generateDataQualityRulesSettings();
}

/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings() {
Expand Down Expand Up @@ -331,6 +337,13 @@ public UnaryCallSettings.Builder<GetDataScanJobRequest, DataScanJob> getDataScan
return getStubSettingsBuilder().listDataScanJobsSettings();
}

/** Returns the builder for the settings used for calls to generateDataQualityRules. */
public UnaryCallSettings.Builder<
GenerateDataQualityRulesRequest, GenerateDataQualityRulesResponse>
generateDataQualityRulesSettings() {
return getStubSettingsBuilder().generateDataQualityRulesSettings();
}

/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,87 @@
"protoPackage": "google.cloud.dataplex.v1",
"libraryPackage": "com.google.cloud.dataplex.v1",
"services": {
"CatalogService": {
"clients": {
"grpc": {
"libraryClient": "CatalogServiceClient",
"rpcs": {
"CreateAspectType": {
"methods": ["createAspectTypeAsync", "createAspectTypeAsync", "createAspectTypeAsync", "createAspectTypeOperationCallable", "createAspectTypeCallable"]
},
"CreateEntry": {
"methods": ["createEntry", "createEntry", "createEntry", "createEntryCallable"]
},
"CreateEntryGroup": {
"methods": ["createEntryGroupAsync", "createEntryGroupAsync", "createEntryGroupAsync", "createEntryGroupOperationCallable", "createEntryGroupCallable"]
},
"CreateEntryType": {
"methods": ["createEntryTypeAsync", "createEntryTypeAsync", "createEntryTypeAsync", "createEntryTypeOperationCallable", "createEntryTypeCallable"]
},
"DeleteAspectType": {
"methods": ["deleteAspectTypeAsync", "deleteAspectTypeAsync", "deleteAspectTypeAsync", "deleteAspectTypeOperationCallable", "deleteAspectTypeCallable"]
},
"DeleteEntry": {
"methods": ["deleteEntry", "deleteEntry", "deleteEntry", "deleteEntryCallable"]
},
"DeleteEntryGroup": {
"methods": ["deleteEntryGroupAsync", "deleteEntryGroupAsync", "deleteEntryGroupAsync", "deleteEntryGroupOperationCallable", "deleteEntryGroupCallable"]
},
"DeleteEntryType": {
"methods": ["deleteEntryTypeAsync", "deleteEntryTypeAsync", "deleteEntryTypeAsync", "deleteEntryTypeOperationCallable", "deleteEntryTypeCallable"]
},
"GetAspectType": {
"methods": ["getAspectType", "getAspectType", "getAspectType", "getAspectTypeCallable"]
},
"GetEntry": {
"methods": ["getEntry", "getEntry", "getEntry", "getEntryCallable"]
},
"GetEntryGroup": {
"methods": ["getEntryGroup", "getEntryGroup", "getEntryGroup", "getEntryGroupCallable"]
},
"GetEntryType": {
"methods": ["getEntryType", "getEntryType", "getEntryType", "getEntryTypeCallable"]
},
"GetLocation": {
"methods": ["getLocation", "getLocationCallable"]
},
"ListAspectTypes": {
"methods": ["listAspectTypes", "listAspectTypes", "listAspectTypes", "listAspectTypesPagedCallable", "listAspectTypesCallable"]
},
"ListEntries": {
"methods": ["listEntries", "listEntries", "listEntries", "listEntriesPagedCallable", "listEntriesCallable"]
},
"ListEntryGroups": {
"methods": ["listEntryGroups", "listEntryGroups", "listEntryGroups", "listEntryGroupsPagedCallable", "listEntryGroupsCallable"]
},
"ListEntryTypes": {
"methods": ["listEntryTypes", "listEntryTypes", "listEntryTypes", "listEntryTypesPagedCallable", "listEntryTypesCallable"]
},
"ListLocations": {
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
},
"LookupEntry": {
"methods": ["lookupEntry", "lookupEntryCallable"]
},
"SearchEntries": {
"methods": ["searchEntries", "searchEntries", "searchEntriesPagedCallable", "searchEntriesCallable"]
},
"UpdateAspectType": {
"methods": ["updateAspectTypeAsync", "updateAspectTypeAsync", "updateAspectTypeOperationCallable", "updateAspectTypeCallable"]
},
"UpdateEntry": {
"methods": ["updateEntry", "updateEntry", "updateEntryCallable"]
},
"UpdateEntryGroup": {
"methods": ["updateEntryGroupAsync", "updateEntryGroupAsync", "updateEntryGroupOperationCallable", "updateEntryGroupCallable"]
},
"UpdateEntryType": {
"methods": ["updateEntryTypeAsync", "updateEntryTypeAsync", "updateEntryTypeOperationCallable", "updateEntryTypeCallable"]
}
}
}
}
},
"ContentService": {
"clients": {
"grpc": {
Expand Down Expand Up @@ -115,6 +196,9 @@
"DeleteDataScan": {
"methods": ["deleteDataScanAsync", "deleteDataScanAsync", "deleteDataScanAsync", "deleteDataScanOperationCallable", "deleteDataScanCallable"]
},
"GenerateDataQualityRules": {
"methods": ["generateDataQualityRules", "generateDataQualityRules", "generateDataQualityRulesCallable"]
},
"GetDataScan": {
"methods": ["getDataScan", "getDataScan", "getDataScan", "getDataScanCallable"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,27 @@
*
* <p>The interfaces provided are listed below, along with usage samples.
*
* <p>======================= CatalogServiceClient =======================
*
* <p>Service Description: The primary resources offered by this service are EntryGroups,
* EntryTypes, AspectTypes, Entry and Aspect which collectively allow a data administrator to
* organize, manage, secure and catalog data across their organization located across cloud projects
* in a variety of storage systems including Cloud Storage and BigQuery.
*
* <p>Sample for CatalogServiceClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
* EntryTypeName name = EntryTypeName.of("[PROJECT]", "[LOCATION]", "[ENTRY_TYPE]");
* EntryType response = catalogServiceClient.getEntryType(name);
* }
* }</pre>
*
* <p>======================= ContentServiceClient =======================
*
* <p>Service Description: ContentService manages Notebook and SQL Scripts for Dataplex.
Expand Down
Loading
Loading