Skip to content

Commit 3d4b77d

Browse files
1 parent 59a69bc commit 3d4b77d

File tree

7 files changed

+309
-6
lines changed

7 files changed

+309
-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-rev20260304-2.0.0</version>
25+
<version>v1-rev20260310-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-rev20260304-2.0.0'
38+
implementation 'com.google.apis:google-api-services-dataplex:v1-rev20260310-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: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2616,6 +2616,146 @@ public List set(String parameterName, Object value) {
26162616
return (List) super.set(parameterName, value);
26172617
}
26182618
}
2619+
/**
2620+
* Looks up LLM Context for the specified resources.
2621+
*
2622+
* Create a request for the method "locations.lookupContext".
2623+
*
2624+
* This request holds the parameters needed by the dataplex server. After setting any optional
2625+
* parameters, call the {@link LookupContext#execute()} method to invoke the remote operation.
2626+
*
2627+
* @param name Required. The project to which the request should be attributed in the following form:
2628+
* projects/{project}/locations/{location}.
2629+
* @param content the {@link com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1LookupContextRequest}
2630+
* @return the request
2631+
*/
2632+
public LookupContext lookupContext(java.lang.String name, com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1LookupContextRequest content) throws java.io.IOException {
2633+
LookupContext result = new LookupContext(name, content);
2634+
initialize(result);
2635+
return result;
2636+
}
2637+
2638+
public class LookupContext extends CloudDataplexRequest<com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1LookupContextResponse> {
2639+
2640+
private static final String REST_PATH = "v1/{+name}:lookupContext";
2641+
2642+
private final java.util.regex.Pattern NAME_PATTERN =
2643+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
2644+
2645+
/**
2646+
* Looks up LLM Context for the specified resources.
2647+
*
2648+
* Create a request for the method "locations.lookupContext".
2649+
*
2650+
* This request holds the parameters needed by the the dataplex server. After setting any
2651+
* optional parameters, call the {@link LookupContext#execute()} method to invoke the remote
2652+
* operation. <p> {@link LookupContext#initialize(com.google.api.client.googleapis.services.Abstra
2653+
* ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking
2654+
* the constructor. </p>
2655+
*
2656+
* @param name Required. The project to which the request should be attributed in the following form:
2657+
* projects/{project}/locations/{location}.
2658+
* @param content the {@link com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1LookupContextRequest}
2659+
* @since 1.13
2660+
*/
2661+
protected LookupContext(java.lang.String name, com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1LookupContextRequest content) {
2662+
super(CloudDataplex.this, "POST", REST_PATH, content, com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1LookupContextResponse.class);
2663+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
2664+
if (!getSuppressPatternChecks()) {
2665+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2666+
"Parameter name must conform to the pattern " +
2667+
"^projects/[^/]+/locations/[^/]+$");
2668+
}
2669+
}
2670+
2671+
@Override
2672+
public LookupContext set$Xgafv(java.lang.String $Xgafv) {
2673+
return (LookupContext) super.set$Xgafv($Xgafv);
2674+
}
2675+
2676+
@Override
2677+
public LookupContext setAccessToken(java.lang.String accessToken) {
2678+
return (LookupContext) super.setAccessToken(accessToken);
2679+
}
2680+
2681+
@Override
2682+
public LookupContext setAlt(java.lang.String alt) {
2683+
return (LookupContext) super.setAlt(alt);
2684+
}
2685+
2686+
@Override
2687+
public LookupContext setCallback(java.lang.String callback) {
2688+
return (LookupContext) super.setCallback(callback);
2689+
}
2690+
2691+
@Override
2692+
public LookupContext setFields(java.lang.String fields) {
2693+
return (LookupContext) super.setFields(fields);
2694+
}
2695+
2696+
@Override
2697+
public LookupContext setKey(java.lang.String key) {
2698+
return (LookupContext) super.setKey(key);
2699+
}
2700+
2701+
@Override
2702+
public LookupContext setOauthToken(java.lang.String oauthToken) {
2703+
return (LookupContext) super.setOauthToken(oauthToken);
2704+
}
2705+
2706+
@Override
2707+
public LookupContext setPrettyPrint(java.lang.Boolean prettyPrint) {
2708+
return (LookupContext) super.setPrettyPrint(prettyPrint);
2709+
}
2710+
2711+
@Override
2712+
public LookupContext setQuotaUser(java.lang.String quotaUser) {
2713+
return (LookupContext) super.setQuotaUser(quotaUser);
2714+
}
2715+
2716+
@Override
2717+
public LookupContext setUploadType(java.lang.String uploadType) {
2718+
return (LookupContext) super.setUploadType(uploadType);
2719+
}
2720+
2721+
@Override
2722+
public LookupContext setUploadProtocol(java.lang.String uploadProtocol) {
2723+
return (LookupContext) super.setUploadProtocol(uploadProtocol);
2724+
}
2725+
2726+
/**
2727+
* Required. The project to which the request should be attributed in the following form:
2728+
* projects/{project}/locations/{location}.
2729+
*/
2730+
@com.google.api.client.util.Key
2731+
private java.lang.String name;
2732+
2733+
/** Required. The project to which the request should be attributed in the following form:
2734+
projects/{project}/locations/{location}.
2735+
*/
2736+
public java.lang.String getName() {
2737+
return name;
2738+
}
2739+
2740+
/**
2741+
* Required. The project to which the request should be attributed in the following form:
2742+
* projects/{project}/locations/{location}.
2743+
*/
2744+
public LookupContext setName(java.lang.String name) {
2745+
if (!getSuppressPatternChecks()) {
2746+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2747+
"Parameter name must conform to the pattern " +
2748+
"^projects/[^/]+/locations/[^/]+$");
2749+
}
2750+
this.name = name;
2751+
return this;
2752+
}
2753+
2754+
@Override
2755+
public LookupContext set(String parameterName, Object value) {
2756+
return (LookupContext) super.set(parameterName, value);
2757+
}
2758+
}
26192759
/**
26202760
* Looks up an entry by name using the permission on the source system.
26212761
*

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ public class CloudDataplexScopes {
2626
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
2727
public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform";
2828

29+
/** View your data across Google Cloud services and see the email address of your Google Account. */
30+
public static final String CLOUD_PLATFORM_READ_ONLY = "https://www.googleapis.com/auth/cloud-platform.read-only";
31+
2932
/** See, edit, configure, and delete your Google Cloud Dataplex data and see the email address for your Google Account. */
3033
public static final String DATAPLEX_READ_WRITE = "https://www.googleapis.com/auth/dataplex.read-write";
3134

@@ -40,6 +43,7 @@ public class CloudDataplexScopes {
4043
public static java.util.Set<String> all() {
4144
java.util.Set<String> set = new java.util.HashSet<String>();
4245
set.add(CLOUD_PLATFORM);
46+
set.add(CLOUD_PLATFORM_READ_ONLY);
4347
set.add(DATAPLEX_READ_WRITE);
4448
set.add(DATAPLEX_READONLY);
4549
return java.util.Collections.unmodifiableSet(set);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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+
* Lookup Context using permissions in the source system.
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 GoogleCloudDataplexV1LookupContextRequest extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. Allows to configure the context.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.util.Map<String, java.lang.String> options;
38+
39+
/**
40+
* Required. The entry names to lookup context for. The request should have max 10 of those.Exampl
41+
* es:projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.util.List<java.lang.String> resources;
46+
47+
/**
48+
* Optional. Allows to configure the context.
49+
* @return value or {@code null} for none
50+
*/
51+
public java.util.Map<String, java.lang.String> getOptions() {
52+
return options;
53+
}
54+
55+
/**
56+
* Optional. Allows to configure the context.
57+
* @param options options or {@code null} for none
58+
*/
59+
public GoogleCloudDataplexV1LookupContextRequest setOptions(java.util.Map<String, java.lang.String> options) {
60+
this.options = options;
61+
return this;
62+
}
63+
64+
/**
65+
* Required. The entry names to lookup context for. The request should have max 10 of those.Exampl
66+
* es:projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}
67+
* @return value or {@code null} for none
68+
*/
69+
public java.util.List<java.lang.String> getResources() {
70+
return resources;
71+
}
72+
73+
/**
74+
* Required. The entry names to lookup context for. The request should have max 10 of those.Exampl
75+
* es:projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}
76+
* @param resources resources or {@code null} for none
77+
*/
78+
public GoogleCloudDataplexV1LookupContextRequest setResources(java.util.List<java.lang.String> resources) {
79+
this.resources = resources;
80+
return this;
81+
}
82+
83+
@Override
84+
public GoogleCloudDataplexV1LookupContextRequest set(String fieldName, Object value) {
85+
return (GoogleCloudDataplexV1LookupContextRequest) super.set(fieldName, value);
86+
}
87+
88+
@Override
89+
public GoogleCloudDataplexV1LookupContextRequest clone() {
90+
return (GoogleCloudDataplexV1LookupContextRequest) super.clone();
91+
}
92+
93+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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+
* Lookup Context response.
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 GoogleCloudDataplexV1LookupContextResponse extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* LLM generated context for the resources.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String context;
38+
39+
/**
40+
* LLM generated context for the resources.
41+
* @return value or {@code null} for none
42+
*/
43+
public java.lang.String getContext() {
44+
return context;
45+
}
46+
47+
/**
48+
* LLM generated context for the resources.
49+
* @param context context or {@code null} for none
50+
*/
51+
public GoogleCloudDataplexV1LookupContextResponse setContext(java.lang.String context) {
52+
this.context = context;
53+
return this;
54+
}
55+
56+
@Override
57+
public GoogleCloudDataplexV1LookupContextResponse set(String fieldName, Object value) {
58+
return (GoogleCloudDataplexV1LookupContextResponse) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public GoogleCloudDataplexV1LookupContextResponse clone() {
63+
return (GoogleCloudDataplexV1LookupContextResponse) super.clone();
64+
}
65+
66+
}

clients/google-api-services-dataplex/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-dataplex</artifactId>
11-
<version>v1-rev20260304-2.0.0</version>
12-
<name>Cloud Dataplex API v1-rev20260304-2.0.0</name>
11+
<version>v1-rev20260310-2.0.0</version>
12+
<name>Cloud Dataplex API v1-rev20260310-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-dataplex/v1/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-rev20260304-2.0.0</version>
25+
<version>v1-rev20260310-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-rev20260304-2.0.0'
38+
implementation 'com.google.apis:google-api-services-dataplex:v1-rev20260310-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)