Skip to content

Commit 59a69bc

Browse files
1 parent 0b00644 commit 59a69bc

10 files changed

+285
-36
lines changed

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

clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/APIhub.java

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2355,6 +2355,162 @@ public Lookup set(String parameterName, Object value) {
23552355
return (Lookup) super.set(parameterName, value);
23562356
}
23572357
}
2358+
/**
2359+
* Update an Api Hub instance. The following fields in the ApiHubInstance can be updated: *
2360+
* disable_search * vertex_location * agent_registry_sync_config The update_mask should be used to
2361+
* specify the fields being updated.
2362+
*
2363+
* Create a request for the method "apiHubInstances.patch".
2364+
*
2365+
* This request holds the parameters needed by the apihub server. After setting any optional
2366+
* parameters, call the {@link Patch#execute()} method to invoke the remote operation.
2367+
*
2368+
* @param name Identifier. Format: `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
2369+
* @param content the {@link com.google.api.services.apihub.v1.model.GoogleCloudApihubV1ApiHubInstance}
2370+
* @return the request
2371+
*/
2372+
public Patch patch(java.lang.String name, com.google.api.services.apihub.v1.model.GoogleCloudApihubV1ApiHubInstance content) throws java.io.IOException {
2373+
Patch result = new Patch(name, content);
2374+
initialize(result);
2375+
return result;
2376+
}
2377+
2378+
public class Patch extends APIhubRequest<com.google.api.services.apihub.v1.model.GoogleLongrunningOperation> {
2379+
2380+
private static final String REST_PATH = "v1/{+name}";
2381+
2382+
private final java.util.regex.Pattern NAME_PATTERN =
2383+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apiHubInstances/[^/]+$");
2384+
2385+
/**
2386+
* Update an Api Hub instance. The following fields in the ApiHubInstance can be updated: *
2387+
* disable_search * vertex_location * agent_registry_sync_config The update_mask should be used to
2388+
* specify the fields being updated.
2389+
*
2390+
* Create a request for the method "apiHubInstances.patch".
2391+
*
2392+
* This request holds the parameters needed by the the apihub server. After setting any optional
2393+
* parameters, call the {@link Patch#execute()} method to invoke the remote operation. <p> {@link
2394+
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
2395+
* be called to initialize this instance immediately after invoking the constructor. </p>
2396+
*
2397+
* @param name Identifier. Format: `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
2398+
* @param content the {@link com.google.api.services.apihub.v1.model.GoogleCloudApihubV1ApiHubInstance}
2399+
* @since 1.13
2400+
*/
2401+
protected Patch(java.lang.String name, com.google.api.services.apihub.v1.model.GoogleCloudApihubV1ApiHubInstance content) {
2402+
super(APIhub.this, "PATCH", REST_PATH, content, com.google.api.services.apihub.v1.model.GoogleLongrunningOperation.class);
2403+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
2404+
if (!getSuppressPatternChecks()) {
2405+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2406+
"Parameter name must conform to the pattern " +
2407+
"^projects/[^/]+/locations/[^/]+/apiHubInstances/[^/]+$");
2408+
}
2409+
}
2410+
2411+
@Override
2412+
public Patch set$Xgafv(java.lang.String $Xgafv) {
2413+
return (Patch) super.set$Xgafv($Xgafv);
2414+
}
2415+
2416+
@Override
2417+
public Patch setAccessToken(java.lang.String accessToken) {
2418+
return (Patch) super.setAccessToken(accessToken);
2419+
}
2420+
2421+
@Override
2422+
public Patch setAlt(java.lang.String alt) {
2423+
return (Patch) super.setAlt(alt);
2424+
}
2425+
2426+
@Override
2427+
public Patch setCallback(java.lang.String callback) {
2428+
return (Patch) super.setCallback(callback);
2429+
}
2430+
2431+
@Override
2432+
public Patch setFields(java.lang.String fields) {
2433+
return (Patch) super.setFields(fields);
2434+
}
2435+
2436+
@Override
2437+
public Patch setKey(java.lang.String key) {
2438+
return (Patch) super.setKey(key);
2439+
}
2440+
2441+
@Override
2442+
public Patch setOauthToken(java.lang.String oauthToken) {
2443+
return (Patch) super.setOauthToken(oauthToken);
2444+
}
2445+
2446+
@Override
2447+
public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
2448+
return (Patch) super.setPrettyPrint(prettyPrint);
2449+
}
2450+
2451+
@Override
2452+
public Patch setQuotaUser(java.lang.String quotaUser) {
2453+
return (Patch) super.setQuotaUser(quotaUser);
2454+
}
2455+
2456+
@Override
2457+
public Patch setUploadType(java.lang.String uploadType) {
2458+
return (Patch) super.setUploadType(uploadType);
2459+
}
2460+
2461+
@Override
2462+
public Patch setUploadProtocol(java.lang.String uploadProtocol) {
2463+
return (Patch) super.setUploadProtocol(uploadProtocol);
2464+
}
2465+
2466+
/**
2467+
* Identifier. Format:
2468+
* `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
2469+
*/
2470+
@com.google.api.client.util.Key
2471+
private java.lang.String name;
2472+
2473+
/** Identifier. Format: `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
2474+
*/
2475+
public java.lang.String getName() {
2476+
return name;
2477+
}
2478+
2479+
/**
2480+
* Identifier. Format:
2481+
* `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
2482+
*/
2483+
public Patch setName(java.lang.String name) {
2484+
if (!getSuppressPatternChecks()) {
2485+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2486+
"Parameter name must conform to the pattern " +
2487+
"^projects/[^/]+/locations/[^/]+/apiHubInstances/[^/]+$");
2488+
}
2489+
this.name = name;
2490+
return this;
2491+
}
2492+
2493+
/** Optional. The list of fields to update. */
2494+
@com.google.api.client.util.Key
2495+
private String updateMask;
2496+
2497+
/** Optional. The list of fields to update.
2498+
*/
2499+
public String getUpdateMask() {
2500+
return updateMask;
2501+
}
2502+
2503+
/** Optional. The list of fields to update. */
2504+
public Patch setUpdateMask(String updateMask) {
2505+
this.updateMask = updateMask;
2506+
return this;
2507+
}
2508+
2509+
@Override
2510+
public Patch set(String parameterName, Object value) {
2511+
return (Patch) super.set(parameterName, value);
2512+
}
2513+
}
23582514

23592515
}
23602516
/**
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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.apihub.v1.model;
18+
19+
/**
20+
* The configuration for Agent Registry sync.
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 API hub 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 GoogleCloudApihubV1AgentRegistrySyncConfig extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. If true, the MCP data sync to the Agent Registry will be disabled. The default value
34+
* is false.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.Boolean disabled;
39+
40+
/**
41+
* Optional. If true, the MCP data sync to the Agent Registry will be disabled. The default value
42+
* is false.
43+
* @return value or {@code null} for none
44+
*/
45+
public java.lang.Boolean getDisabled() {
46+
return disabled;
47+
}
48+
49+
/**
50+
* Optional. If true, the MCP data sync to the Agent Registry will be disabled. The default value
51+
* is false.
52+
* @param disabled disabled or {@code null} for none
53+
*/
54+
public GoogleCloudApihubV1AgentRegistrySyncConfig setDisabled(java.lang.Boolean disabled) {
55+
this.disabled = disabled;
56+
return this;
57+
}
58+
59+
@Override
60+
public GoogleCloudApihubV1AgentRegistrySyncConfig set(String fieldName, Object value) {
61+
return (GoogleCloudApihubV1AgentRegistrySyncConfig) super.set(fieldName, value);
62+
}
63+
64+
@Override
65+
public GoogleCloudApihubV1AgentRegistrySyncConfig clone() {
66+
return (GoogleCloudApihubV1AgentRegistrySyncConfig) super.clone();
67+
}
68+
69+
}

clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1ApiView.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,29 @@
3030
public final class GoogleCloudApihubV1ApiView extends com.google.api.client.json.GenericJson {
3131

3232
/**
33-
* Output only. MCP server view.
33+
* MCP server view.
3434
* The value may be {@code null}.
3535
*/
3636
@com.google.api.client.util.Key
3737
private GoogleCloudApihubV1FlattenedApiVersionDeploymentView mcpServerView;
3838

3939
/**
40-
* Output only. MCP tools view.
40+
* MCP tools view.
4141
* The value may be {@code null}.
4242
*/
4343
@com.google.api.client.util.Key
4444
private GoogleCloudApihubV1FlattenedApiVersionOperationDeploymentView mcpToolView;
4545

4646
/**
47-
* Output only. MCP server view.
47+
* MCP server view.
4848
* @return value or {@code null} for none
4949
*/
5050
public GoogleCloudApihubV1FlattenedApiVersionDeploymentView getMcpServerView() {
5151
return mcpServerView;
5252
}
5353

5454
/**
55-
* Output only. MCP server view.
55+
* MCP server view.
5656
* @param mcpServerView mcpServerView or {@code null} for none
5757
*/
5858
public GoogleCloudApihubV1ApiView setMcpServerView(GoogleCloudApihubV1FlattenedApiVersionDeploymentView mcpServerView) {
@@ -61,15 +61,15 @@ public GoogleCloudApihubV1ApiView setMcpServerView(GoogleCloudApihubV1FlattenedA
6161
}
6262

6363
/**
64-
* Output only. MCP tools view.
64+
* MCP tools view.
6565
* @return value or {@code null} for none
6666
*/
6767
public GoogleCloudApihubV1FlattenedApiVersionOperationDeploymentView getMcpToolView() {
6868
return mcpToolView;
6969
}
7070

7171
/**
72-
* Output only. MCP tools view.
72+
* MCP tools view.
7373
* @param mcpToolView mcpToolView or {@code null} for none
7474
*/
7575
public GoogleCloudApihubV1ApiView setMcpToolView(GoogleCloudApihubV1FlattenedApiVersionOperationDeploymentView mcpToolView) {

clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1Config.java

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

32+
/**
33+
* Optional. The configuration for syncing MCP data in the API Hub instance to the Agent Registry.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private GoogleCloudApihubV1AgentRegistrySyncConfig agentRegistrySyncConfig;
38+
3239
/**
3340
* Optional. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name
3441
* should follow the format of
@@ -62,6 +69,23 @@ public final class GoogleCloudApihubV1Config extends com.google.api.client.json.
6269
@com.google.api.client.util.Key
6370
private java.lang.String vertexLocation;
6471

72+
/**
73+
* Optional. The configuration for syncing MCP data in the API Hub instance to the Agent Registry.
74+
* @return value or {@code null} for none
75+
*/
76+
public GoogleCloudApihubV1AgentRegistrySyncConfig getAgentRegistrySyncConfig() {
77+
return agentRegistrySyncConfig;
78+
}
79+
80+
/**
81+
* Optional. The configuration for syncing MCP data in the API Hub instance to the Agent Registry.
82+
* @param agentRegistrySyncConfig agentRegistrySyncConfig or {@code null} for none
83+
*/
84+
public GoogleCloudApihubV1Config setAgentRegistrySyncConfig(GoogleCloudApihubV1AgentRegistrySyncConfig agentRegistrySyncConfig) {
85+
this.agentRegistrySyncConfig = agentRegistrySyncConfig;
86+
return this;
87+
}
88+
6589
/**
6690
* Optional. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name
6791
* should follow the format of

0 commit comments

Comments
 (0)