Skip to content

Commit 4dff975

Browse files
1 parent 71abfc7 commit 4dff975

17 files changed

+1343
-6
lines changed

clients/google-api-services-dataplex/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-dataplex</artifactId>
25-
<version>v1-rev20260402-2.0.0</version>
25+
<version>v1-rev20260406-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-dataplex:v1-rev20260402-2.0.0'
38+
implementation 'com.google.apis:google-api-services-dataplex:v1-rev20260406-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-dataplex/v1/2.0.0/com/google/api/services/dataplex/v1/CloudDataplex.java

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11846,6 +11846,153 @@ public Jobs jobs() {
1184611846
*/
1184711847
public class Jobs {
1184811848

11849+
/**
11850+
* Cancels a running/pending DataScan job.
11851+
*
11852+
* Create a request for the method "jobs.cancel".
11853+
*
11854+
* This request holds the parameters needed by the dataplex server. After setting any optional
11855+
* parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
11856+
*
11857+
* @param name Required. The resource name of the DataScanJob: projects/{project_id_or_number}/locations/{location_
11858+
* id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id} where project_id_or_number refers to
11859+
* a project_id or project_number and location_id refers to a Google Cloud region.
11860+
* @param content the {@link com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1CancelDataScanJobRequest}
11861+
* @return the request
11862+
*/
11863+
public Cancel cancel(java.lang.String name, com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1CancelDataScanJobRequest content) throws java.io.IOException {
11864+
Cancel result = new Cancel(name, content);
11865+
initialize(result);
11866+
return result;
11867+
}
11868+
11869+
public class Cancel extends CloudDataplexRequest<com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1CancelDataScanJobResponse> {
11870+
11871+
private static final String REST_PATH = "v1/{+name}:cancel";
11872+
11873+
private final java.util.regex.Pattern NAME_PATTERN =
11874+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataScans/[^/]+/jobs/[^/]+$");
11875+
11876+
/**
11877+
* Cancels a running/pending DataScan job.
11878+
*
11879+
* Create a request for the method "jobs.cancel".
11880+
*
11881+
* This request holds the parameters needed by the the dataplex server. After setting any
11882+
* optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
11883+
* <p> {@link
11884+
* Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
11885+
* be called to initialize this instance immediately after invoking the constructor. </p>
11886+
*
11887+
* @param name Required. The resource name of the DataScanJob: projects/{project_id_or_number}/locations/{location_
11888+
* id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id} where project_id_or_number refers to
11889+
* a project_id or project_number and location_id refers to a Google Cloud region.
11890+
* @param content the {@link com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1CancelDataScanJobRequest}
11891+
* @since 1.13
11892+
*/
11893+
protected Cancel(java.lang.String name, com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1CancelDataScanJobRequest content) {
11894+
super(CloudDataplex.this, "POST", REST_PATH, content, com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1CancelDataScanJobResponse.class);
11895+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
11896+
if (!getSuppressPatternChecks()) {
11897+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
11898+
"Parameter name must conform to the pattern " +
11899+
"^projects/[^/]+/locations/[^/]+/dataScans/[^/]+/jobs/[^/]+$");
11900+
}
11901+
}
11902+
11903+
@Override
11904+
public Cancel set$Xgafv(java.lang.String $Xgafv) {
11905+
return (Cancel) super.set$Xgafv($Xgafv);
11906+
}
11907+
11908+
@Override
11909+
public Cancel setAccessToken(java.lang.String accessToken) {
11910+
return (Cancel) super.setAccessToken(accessToken);
11911+
}
11912+
11913+
@Override
11914+
public Cancel setAlt(java.lang.String alt) {
11915+
return (Cancel) super.setAlt(alt);
11916+
}
11917+
11918+
@Override
11919+
public Cancel setCallback(java.lang.String callback) {
11920+
return (Cancel) super.setCallback(callback);
11921+
}
11922+
11923+
@Override
11924+
public Cancel setFields(java.lang.String fields) {
11925+
return (Cancel) super.setFields(fields);
11926+
}
11927+
11928+
@Override
11929+
public Cancel setKey(java.lang.String key) {
11930+
return (Cancel) super.setKey(key);
11931+
}
11932+
11933+
@Override
11934+
public Cancel setOauthToken(java.lang.String oauthToken) {
11935+
return (Cancel) super.setOauthToken(oauthToken);
11936+
}
11937+
11938+
@Override
11939+
public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) {
11940+
return (Cancel) super.setPrettyPrint(prettyPrint);
11941+
}
11942+
11943+
@Override
11944+
public Cancel setQuotaUser(java.lang.String quotaUser) {
11945+
return (Cancel) super.setQuotaUser(quotaUser);
11946+
}
11947+
11948+
@Override
11949+
public Cancel setUploadType(java.lang.String uploadType) {
11950+
return (Cancel) super.setUploadType(uploadType);
11951+
}
11952+
11953+
@Override
11954+
public Cancel setUploadProtocol(java.lang.String uploadProtocol) {
11955+
return (Cancel) super.setUploadProtocol(uploadProtocol);
11956+
}
11957+
11958+
/**
11959+
* Required. The resource name of the DataScanJob: projects/{project_id_or_number}/locat
11960+
* ions/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id} where
11961+
* project_id_or_number refers to a project_id or project_number and location_id refers
11962+
* to a Google Cloud region.
11963+
*/
11964+
@com.google.api.client.util.Key
11965+
private java.lang.String name;
11966+
11967+
/** Required. The resource name of the DataScanJob: projects/{project_id_or_number}/locations/{location
11968+
_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id} where project_id_or_number refers to a
11969+
project_id or project_number and location_id refers to a Google Cloud region.
11970+
*/
11971+
public java.lang.String getName() {
11972+
return name;
11973+
}
11974+
11975+
/**
11976+
* Required. The resource name of the DataScanJob: projects/{project_id_or_number}/locat
11977+
* ions/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id} where
11978+
* project_id_or_number refers to a project_id or project_number and location_id refers
11979+
* to a Google Cloud region.
11980+
*/
11981+
public Cancel setName(java.lang.String name) {
11982+
if (!getSuppressPatternChecks()) {
11983+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
11984+
"Parameter name must conform to the pattern " +
11985+
"^projects/[^/]+/locations/[^/]+/dataScans/[^/]+/jobs/[^/]+$");
11986+
}
11987+
this.name = name;
11988+
return this;
11989+
}
11990+
11991+
@Override
11992+
public Cancel set(String parameterName, Object value) {
11993+
return (Cancel) super.set(parameterName, value);
11994+
}
11995+
}
1184911996
/**
1185011997
* Generates recommended data quality rules based on the results of a data profiling scan.Use the
1185111998
* recommendations to build rules for a data quality scan.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.dataplex.v1.model;
18+
19+
/**
20+
* Request message for the CancelDataScanJob method.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Dataplex API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class GoogleCloudDataplexV1CancelDataScanJobRequest extends com.google.api.client.json.GenericJson {
31+
32+
@Override
33+
public GoogleCloudDataplexV1CancelDataScanJobRequest set(String fieldName, Object value) {
34+
return (GoogleCloudDataplexV1CancelDataScanJobRequest) super.set(fieldName, value);
35+
}
36+
37+
@Override
38+
public GoogleCloudDataplexV1CancelDataScanJobRequest clone() {
39+
return (GoogleCloudDataplexV1CancelDataScanJobRequest) super.clone();
40+
}
41+
42+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.dataplex.v1.model;
18+
19+
/**
20+
* Response message for the CancelDataScanJob method.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Dataplex API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class GoogleCloudDataplexV1CancelDataScanJobResponse extends com.google.api.client.json.GenericJson {
31+
32+
@Override
33+
public GoogleCloudDataplexV1CancelDataScanJobResponse set(String fieldName, Object value) {
34+
return (GoogleCloudDataplexV1CancelDataScanJobResponse) super.set(fieldName, value);
35+
}
36+
37+
@Override
38+
public GoogleCloudDataplexV1CancelDataScanJobResponse clone() {
39+
return (GoogleCloudDataplexV1CancelDataScanJobResponse) super.clone();
40+
}
41+
42+
}

clients/google-api-services-dataplex/v1/2.0.0/com/google/api/services/dataplex/v1/model/GoogleCloudDataplexV1DataQualityRule.java

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@
2929
@SuppressWarnings("javadoc")
3030
public final class GoogleCloudDataplexV1DataQualityRule extends com.google.api.client.json.GenericJson {
3131

32+
/**
33+
* Optional. Map of attribute name and value linked to the rule. The rules to evaluate can be
34+
* filtered based on attributes provided here and a filter expression provided in the
35+
* DataQualitySpec.filter field.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.util.Map<String, java.lang.String> attributes;
40+
3241
/**
3342
* Optional. The unnested column which this rule is evaluated against.
3443
* The value may be {@code null}.
@@ -106,6 +115,14 @@ public final class GoogleCloudDataplexV1DataQualityRule extends com.google.api.c
106115
@com.google.api.client.util.Key
107116
private GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation rowConditionExpectation;
108117

118+
/**
119+
* Output only. Contains information about the source of the rule and its relationship with the
120+
* BigQuery table, where applicable.
121+
* The value may be {@code null}.
122+
*/
123+
@com.google.api.client.util.Key
124+
private GoogleCloudDataplexV1DataQualityRuleRuleSource ruleSource;
125+
109126
/**
110127
* Row-level rule which evaluates whether each column value is contained by a specified set.
111128
* The value may be {@code null}.
@@ -143,6 +160,14 @@ public final class GoogleCloudDataplexV1DataQualityRule extends com.google.api.c
143160
@com.google.api.client.util.Key
144161
private GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation tableConditionExpectation;
145162

163+
/**
164+
* Aggregate rule which references a rule template and provides the parameters to be substituted
165+
* in the template. If any rows are returned, this rule fails.
166+
* The value may be {@code null}.
167+
*/
168+
@com.google.api.client.util.Key
169+
private GoogleCloudDataplexV1DataQualityRuleTemplateReference templateReference;
170+
146171
/**
147172
* Optional. The minimum ratio of passing_rows / total_rows required to pass this rule, with a
148173
* range of 0.0, 1.0.0 indicates default value (i.e. 1.0).This field is only valid for row-level
@@ -159,6 +184,27 @@ public final class GoogleCloudDataplexV1DataQualityRule extends com.google.api.c
159184
@com.google.api.client.util.Key
160185
private GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation uniquenessExpectation;
161186

187+
/**
188+
* Optional. Map of attribute name and value linked to the rule. The rules to evaluate can be
189+
* filtered based on attributes provided here and a filter expression provided in the
190+
* DataQualitySpec.filter field.
191+
* @return value or {@code null} for none
192+
*/
193+
public java.util.Map<String, java.lang.String> getAttributes() {
194+
return attributes;
195+
}
196+
197+
/**
198+
* Optional. Map of attribute name and value linked to the rule. The rules to evaluate can be
199+
* filtered based on attributes provided here and a filter expression provided in the
200+
* DataQualitySpec.filter field.
201+
* @param attributes attributes or {@code null} for none
202+
*/
203+
public GoogleCloudDataplexV1DataQualityRule setAttributes(java.util.Map<String, java.lang.String> attributes) {
204+
this.attributes = attributes;
205+
return this;
206+
}
207+
162208
/**
163209
* Optional. The unnested column which this rule is evaluated against.
164210
* @return value or {@code null} for none
@@ -343,6 +389,25 @@ public GoogleCloudDataplexV1DataQualityRule setRowConditionExpectation(GoogleClo
343389
return this;
344390
}
345391

392+
/**
393+
* Output only. Contains information about the source of the rule and its relationship with the
394+
* BigQuery table, where applicable.
395+
* @return value or {@code null} for none
396+
*/
397+
public GoogleCloudDataplexV1DataQualityRuleRuleSource getRuleSource() {
398+
return ruleSource;
399+
}
400+
401+
/**
402+
* Output only. Contains information about the source of the rule and its relationship with the
403+
* BigQuery table, where applicable.
404+
* @param ruleSource ruleSource or {@code null} for none
405+
*/
406+
public GoogleCloudDataplexV1DataQualityRule setRuleSource(GoogleCloudDataplexV1DataQualityRuleRuleSource ruleSource) {
407+
this.ruleSource = ruleSource;
408+
return this;
409+
}
410+
346411
/**
347412
* Row-level rule which evaluates whether each column value is contained by a specified set.
348413
* @return value or {@code null} for none
@@ -432,6 +497,25 @@ public GoogleCloudDataplexV1DataQualityRule setTableConditionExpectation(GoogleC
432497
return this;
433498
}
434499

500+
/**
501+
* Aggregate rule which references a rule template and provides the parameters to be substituted
502+
* in the template. If any rows are returned, this rule fails.
503+
* @return value or {@code null} for none
504+
*/
505+
public GoogleCloudDataplexV1DataQualityRuleTemplateReference getTemplateReference() {
506+
return templateReference;
507+
}
508+
509+
/**
510+
* Aggregate rule which references a rule template and provides the parameters to be substituted
511+
* in the template. If any rows are returned, this rule fails.
512+
* @param templateReference templateReference or {@code null} for none
513+
*/
514+
public GoogleCloudDataplexV1DataQualityRule setTemplateReference(GoogleCloudDataplexV1DataQualityRuleTemplateReference templateReference) {
515+
this.templateReference = templateReference;
516+
return this;
517+
}
518+
435519
/**
436520
* Optional. The minimum ratio of passing_rows / total_rows required to pass this rule, with a
437521
* range of 0.0, 1.0.0 indicates default value (i.e. 1.0).This field is only valid for row-level

0 commit comments

Comments
 (0)