From 01362687963b1b798b3af831e2d5de02f53f558a Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Sun, 26 Jul 2026 18:06:21 -0700
Subject: [PATCH] chore: regenerate apihub client
---
.../v1/2.0.0/README.md | 4 +-
.../google/api/services/apihub/v1/APIhub.java | 160 +++++++++++++++++
...ogleCloudApihubV1ApigeeXTargetDetails.java | 169 ++++++++++++++++++
...ihubV1ConfigureAndDeployServerRequest.java | 66 +++++++
...oogleCloudApihubV1HttpOperationConfig.java | 126 +++++++++++++
.../GoogleCloudApihubV1McpServerConfig.java | 90 ++++++++++
.../GoogleCloudApihubV1McpToolConfig.java | 127 +++++++++++++
.../v1/model/GoogleCloudApihubV1MetaData.java | 96 ++++++++++
.../GoogleCloudApihubV1OperationConfig.java | 93 ++++++++++
.../v1/2.0.0/pom.xml | 4 +-
.../google-api-services-apihub/v1/README.md | 4 +-
11 files changed, 933 insertions(+), 6 deletions(-)
create mode 100644 clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1ApigeeXTargetDetails.java
create mode 100644 clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1ConfigureAndDeployServerRequest.java
create mode 100644 clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1HttpOperationConfig.java
create mode 100644 clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1McpServerConfig.java
create mode 100644 clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1McpToolConfig.java
create mode 100644 clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1MetaData.java
create mode 100644 clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1OperationConfig.java
diff --git a/clients/google-api-services-apihub/v1/2.0.0/README.md b/clients/google-api-services-apihub/v1/2.0.0/README.md
index 5a43bd7e00c..7dcbf8c278e 100644
--- a/clients/google-api-services-apihub/v1/2.0.0/README.md
+++ b/clients/google-api-services-apihub/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
The typical use is:
+ *
+ * {@code APIhub apihub = new APIhub(...);}
+ * {@code APIhub.Servers.List request = apihub.servers().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Servers servers() {
+ return new Servers();
+ }
+
+ /**
+ * The "servers" collection of methods.
+ */
+ public class Servers {
+
+ /**
+ * Configures and deploys a given server config for given target. Currently this API supports only
+ * deploying MCP server in Apigee X. For mcp server deployment in apigee X, if there is already a
+ * mcp proxy deployed, then this method will try to overwrite it by creating new revision i.e. all
+ * existing tools will be removed and new set of tools will be deployed.
+ *
+ * Create a request for the method "servers.configureAndDeployServer".
+ *
+ * This request holds the parameters needed by the apihub server. After setting any optional
+ * parameters, call the {@link ConfigureAndDeployServer#execute()} method to invoke the remote
+ * operation.
+ *
+ * @param parent Required. Format: `projects/{project}/locations/{location}`
+ * @param content the {@link com.google.api.services.apihub.v1.model.GoogleCloudApihubV1ConfigureAndDeployServerRequest}
+ * @return the request
+ */
+ public ConfigureAndDeployServer configureAndDeployServer(java.lang.String parent, com.google.api.services.apihub.v1.model.GoogleCloudApihubV1ConfigureAndDeployServerRequest content) throws java.io.IOException {
+ ConfigureAndDeployServer result = new ConfigureAndDeployServer(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class ConfigureAndDeployServer extends APIhubRequest{@link ConfigureAndDeployServer#initialize(com.google.api.client.googleapis.serv + * ices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param parent Required. Format: `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.apihub.v1.model.GoogleCloudApihubV1ConfigureAndDeployServerRequest} + * @since 1.13 + */ + protected ConfigureAndDeployServer(java.lang.String parent, com.google.api.services.apihub.v1.model.GoogleCloudApihubV1ConfigureAndDeployServerRequest content) { + super(APIhub.this, "POST", REST_PATH, content, com.google.api.services.apihub.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public ConfigureAndDeployServer set$Xgafv(java.lang.String $Xgafv) { + return (ConfigureAndDeployServer) super.set$Xgafv($Xgafv); + } + + @Override + public ConfigureAndDeployServer setAccessToken(java.lang.String accessToken) { + return (ConfigureAndDeployServer) super.setAccessToken(accessToken); + } + + @Override + public ConfigureAndDeployServer setAlt(java.lang.String alt) { + return (ConfigureAndDeployServer) super.setAlt(alt); + } + + @Override + public ConfigureAndDeployServer setCallback(java.lang.String callback) { + return (ConfigureAndDeployServer) super.setCallback(callback); + } + + @Override + public ConfigureAndDeployServer setFields(java.lang.String fields) { + return (ConfigureAndDeployServer) super.setFields(fields); + } + + @Override + public ConfigureAndDeployServer setKey(java.lang.String key) { + return (ConfigureAndDeployServer) super.setKey(key); + } + + @Override + public ConfigureAndDeployServer setOauthToken(java.lang.String oauthToken) { + return (ConfigureAndDeployServer) super.setOauthToken(oauthToken); + } + + @Override + public ConfigureAndDeployServer setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ConfigureAndDeployServer) super.setPrettyPrint(prettyPrint); + } + + @Override + public ConfigureAndDeployServer setQuotaUser(java.lang.String quotaUser) { + return (ConfigureAndDeployServer) super.setQuotaUser(quotaUser); + } + + @Override + public ConfigureAndDeployServer setUploadType(java.lang.String uploadType) { + return (ConfigureAndDeployServer) super.setUploadType(uploadType); + } + + @Override + public ConfigureAndDeployServer setUploadProtocol(java.lang.String uploadProtocol) { + return (ConfigureAndDeployServer) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Format: `projects/{project}/locations/{location}` */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Format: `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. Format: `projects/{project}/locations/{location}` */ + public ConfigureAndDeployServer setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public ConfigureAndDeployServer set(String parameterName, Object value) { + return (ConfigureAndDeployServer) super.set(parameterName, value); + } + } + + } } } diff --git a/clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1ApigeeXTargetDetails.java b/clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1ApigeeXTargetDetails.java new file mode 100644 index 00000000000..e477a361203 --- /dev/null +++ b/clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1ApigeeXTargetDetails.java @@ -0,0 +1,169 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.apihub.v1.model; + +/** + * The target configuration for Apigee X. Note: If this API is called while an earlier deployment is + * still in progress, the earlier deployment will be aborted and a new deployment will be triggered. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the API hub API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudApihubV1ApigeeXTargetDetails extends com.google.api.client.json.GenericJson { + + /** + * Output only. The revision number of the Apigee proxy that was deployed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deployedRevision; + + /** + * Required. The specific Apigee environment where the server will be deployed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String environment; + + /** + * Optional. Metadata for the proxy configuration in Apigee X. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudApihubV1MetaData metadata; + + /** + * Required. This name identifies the proxy resource in Apigee. It typically follows a standard + * alphanumeric format (e.g., "mcp-discovery-server"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String proxy; + + /** + * Required. The runtime project that hosts the Apigee X organization. This must be one of the + * runtime projects attached to the API Hub host project. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetProject; + + /** + * Output only. The revision number of the Apigee proxy that was deployed. + * @return value or {@code null} for none + */ + public java.lang.String getDeployedRevision() { + return deployedRevision; + } + + /** + * Output only. The revision number of the Apigee proxy that was deployed. + * @param deployedRevision deployedRevision or {@code null} for none + */ + public GoogleCloudApihubV1ApigeeXTargetDetails setDeployedRevision(java.lang.String deployedRevision) { + this.deployedRevision = deployedRevision; + return this; + } + + /** + * Required. The specific Apigee environment where the server will be deployed. + * @return value or {@code null} for none + */ + public java.lang.String getEnvironment() { + return environment; + } + + /** + * Required. The specific Apigee environment where the server will be deployed. + * @param environment environment or {@code null} for none + */ + public GoogleCloudApihubV1ApigeeXTargetDetails setEnvironment(java.lang.String environment) { + this.environment = environment; + return this; + } + + /** + * Optional. Metadata for the proxy configuration in Apigee X. + * @return value or {@code null} for none + */ + public GoogleCloudApihubV1MetaData getMetadata() { + return metadata; + } + + /** + * Optional. Metadata for the proxy configuration in Apigee X. + * @param metadata metadata or {@code null} for none + */ + public GoogleCloudApihubV1ApigeeXTargetDetails setMetadata(GoogleCloudApihubV1MetaData metadata) { + this.metadata = metadata; + return this; + } + + /** + * Required. This name identifies the proxy resource in Apigee. It typically follows a standard + * alphanumeric format (e.g., "mcp-discovery-server"). + * @return value or {@code null} for none + */ + public java.lang.String getProxy() { + return proxy; + } + + /** + * Required. This name identifies the proxy resource in Apigee. It typically follows a standard + * alphanumeric format (e.g., "mcp-discovery-server"). + * @param proxy proxy or {@code null} for none + */ + public GoogleCloudApihubV1ApigeeXTargetDetails setProxy(java.lang.String proxy) { + this.proxy = proxy; + return this; + } + + /** + * Required. The runtime project that hosts the Apigee X organization. This must be one of the + * runtime projects attached to the API Hub host project. + * @return value or {@code null} for none + */ + public java.lang.String getTargetProject() { + return targetProject; + } + + /** + * Required. The runtime project that hosts the Apigee X organization. This must be one of the + * runtime projects attached to the API Hub host project. + * @param targetProject targetProject or {@code null} for none + */ + public GoogleCloudApihubV1ApigeeXTargetDetails setTargetProject(java.lang.String targetProject) { + this.targetProject = targetProject; + return this; + } + + @Override + public GoogleCloudApihubV1ApigeeXTargetDetails set(String fieldName, Object value) { + return (GoogleCloudApihubV1ApigeeXTargetDetails) super.set(fieldName, value); + } + + @Override + public GoogleCloudApihubV1ApigeeXTargetDetails clone() { + return (GoogleCloudApihubV1ApigeeXTargetDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1ConfigureAndDeployServerRequest.java b/clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1ConfigureAndDeployServerRequest.java new file mode 100644 index 00000000000..beafae7db0b --- /dev/null +++ b/clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1ConfigureAndDeployServerRequest.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.apihub.v1.model; + +/** + * Request message for ApiHub.ConfigureAndDeployServer. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the API hub API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudApihubV1ConfigureAndDeployServerRequest extends com.google.api.client.json.GenericJson { + + /** + * MCP (Model Context Protocol) server configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudApihubV1McpServerConfig mcpServerConfig; + + /** + * MCP (Model Context Protocol) server configuration. + * @return value or {@code null} for none + */ + public GoogleCloudApihubV1McpServerConfig getMcpServerConfig() { + return mcpServerConfig; + } + + /** + * MCP (Model Context Protocol) server configuration. + * @param mcpServerConfig mcpServerConfig or {@code null} for none + */ + public GoogleCloudApihubV1ConfigureAndDeployServerRequest setMcpServerConfig(GoogleCloudApihubV1McpServerConfig mcpServerConfig) { + this.mcpServerConfig = mcpServerConfig; + return this; + } + + @Override + public GoogleCloudApihubV1ConfigureAndDeployServerRequest set(String fieldName, Object value) { + return (GoogleCloudApihubV1ConfigureAndDeployServerRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudApihubV1ConfigureAndDeployServerRequest clone() { + return (GoogleCloudApihubV1ConfigureAndDeployServerRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1HttpOperationConfig.java b/clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1HttpOperationConfig.java new file mode 100644 index 00000000000..9b5f236c10a --- /dev/null +++ b/clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1HttpOperationConfig.java @@ -0,0 +1,126 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.apihub.v1.model; + +/** + * Identifies a single API Hub operation by spec resource name + HTTP path + HTTP method. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the API hub API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudApihubV1HttpOperationConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. HTTP method of the operation within the referenced spec. (GET / PUT / POST / DELETE / + * OPTIONS / HEAD / PATCH / TRACE). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String method; + + /** + * Required. HTTP path of the operation within the referenced spec. Match is exact (no template + * substitution): the path here must appear verbatim on an APIOperationRevision belonging to the + * spec. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** + * Required. Spec resource name: + * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String spec; + + /** + * Required. HTTP method of the operation within the referenced spec. (GET / PUT / POST / DELETE / + * OPTIONS / HEAD / PATCH / TRACE). + * @return value or {@code null} for none + */ + public java.lang.String getMethod() { + return method; + } + + /** + * Required. HTTP method of the operation within the referenced spec. (GET / PUT / POST / DELETE / + * OPTIONS / HEAD / PATCH / TRACE). + * @param method method or {@code null} for none + */ + public GoogleCloudApihubV1HttpOperationConfig setMethod(java.lang.String method) { + this.method = method; + return this; + } + + /** + * Required. HTTP path of the operation within the referenced spec. Match is exact (no template + * substitution): the path here must appear verbatim on an APIOperationRevision belonging to the + * spec. + * @return value or {@code null} for none + */ + public java.lang.String getPath() { + return path; + } + + /** + * Required. HTTP path of the operation within the referenced spec. Match is exact (no template + * substitution): the path here must appear verbatim on an APIOperationRevision belonging to the + * spec. + * @param path path or {@code null} for none + */ + public GoogleCloudApihubV1HttpOperationConfig setPath(java.lang.String path) { + this.path = path; + return this; + } + + /** + * Required. Spec resource name: + * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` + * @return value or {@code null} for none + */ + public java.lang.String getSpec() { + return spec; + } + + /** + * Required. Spec resource name: + * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` + * @param spec spec or {@code null} for none + */ + public GoogleCloudApihubV1HttpOperationConfig setSpec(java.lang.String spec) { + this.spec = spec; + return this; + } + + @Override + public GoogleCloudApihubV1HttpOperationConfig set(String fieldName, Object value) { + return (GoogleCloudApihubV1HttpOperationConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudApihubV1HttpOperationConfig clone() { + return (GoogleCloudApihubV1HttpOperationConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1McpServerConfig.java b/clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1McpServerConfig.java new file mode 100644 index 00000000000..539cc87803d --- /dev/null +++ b/clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1McpServerConfig.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.apihub.v1.model; + +/** + * MCP-specific server configuration. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the API hub API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudApihubV1McpServerConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The target Apigee X configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudApihubV1ApigeeXTargetDetails apigeeXTargetDetails; + + /** + * Required. The tools to expose on the MCP server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the API hub API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudApihubV1McpToolConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. Description of what the tool does and how it is used. Description serves as key + * reference for the agent to know about the tool capabilities. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. The API Hub operation this tool exposes. Each tool wraps exactly one operation; + * callers that want to expose multiple operations should declare multiple tools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudApihubV1OperationConfig operation; + + /** + * Required. Caller-supplied identifier for the tool; each tool must have a unique identifier. + * This will be by used by agents to invoke the tool. Tool ID must be unique across all tools in + * the given MCP server configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String toolId; + + /** + * Required. Description of what the tool does and how it is used. Description serves as key + * reference for the agent to know about the tool capabilities. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Required. Description of what the tool does and how it is used. Description serves as key + * reference for the agent to know about the tool capabilities. + * @param description description or {@code null} for none + */ + public GoogleCloudApihubV1McpToolConfig setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. The API Hub operation this tool exposes. Each tool wraps exactly one operation; + * callers that want to expose multiple operations should declare multiple tools. + * @return value or {@code null} for none + */ + public GoogleCloudApihubV1OperationConfig getOperation() { + return operation; + } + + /** + * Required. The API Hub operation this tool exposes. Each tool wraps exactly one operation; + * callers that want to expose multiple operations should declare multiple tools. + * @param operation operation or {@code null} for none + */ + public GoogleCloudApihubV1McpToolConfig setOperation(GoogleCloudApihubV1OperationConfig operation) { + this.operation = operation; + return this; + } + + /** + * Required. Caller-supplied identifier for the tool; each tool must have a unique identifier. + * This will be by used by agents to invoke the tool. Tool ID must be unique across all tools in + * the given MCP server configuration. + * @return value or {@code null} for none + */ + public java.lang.String getToolId() { + return toolId; + } + + /** + * Required. Caller-supplied identifier for the tool; each tool must have a unique identifier. + * This will be by used by agents to invoke the tool. Tool ID must be unique across all tools in + * the given MCP server configuration. + * @param toolId toolId or {@code null} for none + */ + public GoogleCloudApihubV1McpToolConfig setToolId(java.lang.String toolId) { + this.toolId = toolId; + return this; + } + + @Override + public GoogleCloudApihubV1McpToolConfig set(String fieldName, Object value) { + return (GoogleCloudApihubV1McpToolConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudApihubV1McpToolConfig clone() { + return (GoogleCloudApihubV1McpToolConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1MetaData.java b/clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1MetaData.java new file mode 100644 index 00000000000..478ee0f6c2e --- /dev/null +++ b/clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1MetaData.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.apihub.v1.model; + +/** + * Metadata for the server configuration in Apigee X. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the API hub API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudApihubV1MetaData extends com.google.api.client.json.GenericJson { + + /** + * Optional. Description for the server. For apigee target, this will be used as revision + * description. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. Display name for the server. For apigee target, this will be used as revision display + * name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. Description for the server. For apigee target, this will be used as revision + * description. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Description for the server. For apigee target, this will be used as revision + * description. + * @param description description or {@code null} for none + */ + public GoogleCloudApihubV1MetaData setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. Display name for the server. For apigee target, this will be used as revision display + * name. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. Display name for the server. For apigee target, this will be used as revision display + * name. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudApihubV1MetaData setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + @Override + public GoogleCloudApihubV1MetaData set(String fieldName, Object value) { + return (GoogleCloudApihubV1MetaData) super.set(fieldName, value); + } + + @Override + public GoogleCloudApihubV1MetaData clone() { + return (GoogleCloudApihubV1MetaData) super.clone(); + } + +} diff --git a/clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1OperationConfig.java b/clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1OperationConfig.java new file mode 100644 index 00000000000..517b422c5a0 --- /dev/null +++ b/clients/google-api-services-apihub/v1/2.0.0/com/google/api/services/apihub/v1/model/GoogleCloudApihubV1OperationConfig.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.apihub.v1.model; + +/** + * API hub Operation config. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the API hub API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudApihubV1OperationConfig extends com.google.api.client.json.GenericJson { + + /** + * The HTTP operation config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudApihubV1HttpOperationConfig httpOperation; + + /** + * Full API Hub operation resource name: + * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** + * The HTTP operation config. + * @return value or {@code null} for none + */ + public GoogleCloudApihubV1HttpOperationConfig getHttpOperation() { + return httpOperation; + } + + /** + * The HTTP operation config. + * @param httpOperation httpOperation or {@code null} for none + */ + public GoogleCloudApihubV1OperationConfig setHttpOperation(GoogleCloudApihubV1HttpOperationConfig httpOperation) { + this.httpOperation = httpOperation; + return this; + } + + /** + * Full API Hub operation resource name: + * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` + * @return value or {@code null} for none + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Full API Hub operation resource name: + * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` + * @param operation operation or {@code null} for none + */ + public GoogleCloudApihubV1OperationConfig setOperation(java.lang.String operation) { + this.operation = operation; + return this; + } + + @Override + public GoogleCloudApihubV1OperationConfig set(String fieldName, Object value) { + return (GoogleCloudApihubV1OperationConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudApihubV1OperationConfig clone() { + return (GoogleCloudApihubV1OperationConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-apihub/v1/2.0.0/pom.xml b/clients/google-api-services-apihub/v1/2.0.0/pom.xml index 7b927bff6d1..89af97c9caf 100644 --- a/clients/google-api-services-apihub/v1/2.0.0/pom.xml +++ b/clients/google-api-services-apihub/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@