Skip to content

Commit 7696fe6

Browse files
1 parent 218eae5 commit 7696fe6

24 files changed

Lines changed: 2673 additions & 6 deletions

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-rev20260504-2.0.0</version>
25+
<version>v1-rev20260514-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-rev20260504-2.0.0'
38+
implementation 'com.google.apis:google-api-services-dataplex:v1-rev20260514-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: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8790,6 +8790,150 @@ public Patch set(String parameterName, Object value) {
87908790
return (Patch) super.set(parameterName, value);
87918791
}
87928792
}
8793+
/**
8794+
* Requests access to a data product. This will trigger an access approval workflow, and the
8795+
* requester will need to wait for the approval to be granted before they will be able to access the
8796+
* data product assets.
8797+
*
8798+
* Create a request for the method "dataProducts.requestAccess".
8799+
*
8800+
* This request holds the parameters needed by the dataplex server. After setting any optional
8801+
* parameters, call the {@link RequestAccess#execute()} method to invoke the remote operation.
8802+
*
8803+
* @param parent Required. The resource name of the data product. Format:
8804+
* projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id}
8805+
* @param content the {@link com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1RequestDataProductAccessRequest}
8806+
* @return the request
8807+
*/
8808+
public RequestAccess requestAccess(java.lang.String parent, com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1RequestDataProductAccessRequest content) throws java.io.IOException {
8809+
RequestAccess result = new RequestAccess(parent, content);
8810+
initialize(result);
8811+
return result;
8812+
}
8813+
8814+
public class RequestAccess extends CloudDataplexRequest<com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1RequestDataProductAccessResponse> {
8815+
8816+
private static final String REST_PATH = "v1/{+parent}:requestAccess";
8817+
8818+
private final java.util.regex.Pattern PARENT_PATTERN =
8819+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataProducts/[^/]+$");
8820+
8821+
/**
8822+
* Requests access to a data product. This will trigger an access approval workflow, and the
8823+
* requester will need to wait for the approval to be granted before they will be able to access
8824+
* the data product assets.
8825+
*
8826+
* Create a request for the method "dataProducts.requestAccess".
8827+
*
8828+
* This request holds the parameters needed by the the dataplex server. After setting any
8829+
* optional parameters, call the {@link RequestAccess#execute()} method to invoke the remote
8830+
* operation. <p> {@link RequestAccess#initialize(com.google.api.client.googleapis.services.Abstra
8831+
* ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking
8832+
* the constructor. </p>
8833+
*
8834+
* @param parent Required. The resource name of the data product. Format:
8835+
* projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id}
8836+
* @param content the {@link com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1RequestDataProductAccessRequest}
8837+
* @since 1.13
8838+
*/
8839+
protected RequestAccess(java.lang.String parent, com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1RequestDataProductAccessRequest content) {
8840+
super(CloudDataplex.this, "POST", REST_PATH, content, com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1RequestDataProductAccessResponse.class);
8841+
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
8842+
if (!getSuppressPatternChecks()) {
8843+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
8844+
"Parameter parent must conform to the pattern " +
8845+
"^projects/[^/]+/locations/[^/]+/dataProducts/[^/]+$");
8846+
}
8847+
}
8848+
8849+
@Override
8850+
public RequestAccess set$Xgafv(java.lang.String $Xgafv) {
8851+
return (RequestAccess) super.set$Xgafv($Xgafv);
8852+
}
8853+
8854+
@Override
8855+
public RequestAccess setAccessToken(java.lang.String accessToken) {
8856+
return (RequestAccess) super.setAccessToken(accessToken);
8857+
}
8858+
8859+
@Override
8860+
public RequestAccess setAlt(java.lang.String alt) {
8861+
return (RequestAccess) super.setAlt(alt);
8862+
}
8863+
8864+
@Override
8865+
public RequestAccess setCallback(java.lang.String callback) {
8866+
return (RequestAccess) super.setCallback(callback);
8867+
}
8868+
8869+
@Override
8870+
public RequestAccess setFields(java.lang.String fields) {
8871+
return (RequestAccess) super.setFields(fields);
8872+
}
8873+
8874+
@Override
8875+
public RequestAccess setKey(java.lang.String key) {
8876+
return (RequestAccess) super.setKey(key);
8877+
}
8878+
8879+
@Override
8880+
public RequestAccess setOauthToken(java.lang.String oauthToken) {
8881+
return (RequestAccess) super.setOauthToken(oauthToken);
8882+
}
8883+
8884+
@Override
8885+
public RequestAccess setPrettyPrint(java.lang.Boolean prettyPrint) {
8886+
return (RequestAccess) super.setPrettyPrint(prettyPrint);
8887+
}
8888+
8889+
@Override
8890+
public RequestAccess setQuotaUser(java.lang.String quotaUser) {
8891+
return (RequestAccess) super.setQuotaUser(quotaUser);
8892+
}
8893+
8894+
@Override
8895+
public RequestAccess setUploadType(java.lang.String uploadType) {
8896+
return (RequestAccess) super.setUploadType(uploadType);
8897+
}
8898+
8899+
@Override
8900+
public RequestAccess setUploadProtocol(java.lang.String uploadProtocol) {
8901+
return (RequestAccess) super.setUploadProtocol(uploadProtocol);
8902+
}
8903+
8904+
/**
8905+
* Required. The resource name of the data product. Format:
8906+
* projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id}
8907+
*/
8908+
@com.google.api.client.util.Key
8909+
private java.lang.String parent;
8910+
8911+
/** Required. The resource name of the data product. Format:
8912+
projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id}
8913+
*/
8914+
public java.lang.String getParent() {
8915+
return parent;
8916+
}
8917+
8918+
/**
8919+
* Required. The resource name of the data product. Format:
8920+
* projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id}
8921+
*/
8922+
public RequestAccess setParent(java.lang.String parent) {
8923+
if (!getSuppressPatternChecks()) {
8924+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
8925+
"Parameter parent must conform to the pattern " +
8926+
"^projects/[^/]+/locations/[^/]+/dataProducts/[^/]+$");
8927+
}
8928+
this.parent = parent;
8929+
return this;
8930+
}
8931+
8932+
@Override
8933+
public RequestAccess set(String parameterName, Object value) {
8934+
return (RequestAccess) super.set(parameterName, value);
8935+
}
8936+
}
87938937
/**
87948938
* Sets the access control policy on the specified resource. Replaces any existing policy.Can return
87958939
* NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

0 commit comments

Comments
 (0)