Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/google-api-services-apihub/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-apihub</artifactId>
<version>v1-rev20260622-2.0.0</version>
<version>v1-rev20260720-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-apihub:v1-rev20260622-2.0.0'
implementation 'com.google.apis:google-api-services-apihub:v1-rev20260720-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17759,6 +17759,166 @@ public List set(String parameterName, Object value) {
}

}
/**
* An accessor for creating requests from the Servers collection.
*
* <p>The typical use is:</p>
* <pre>
* {@code APIhub apihub = new APIhub(...);}
* {@code APIhub.Servers.List request = apihub.servers().list(parameters ...)}
* </pre>
*
* @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<com.google.api.services.apihub.v1.model.GoogleLongrunningOperation> {

private static final String REST_PATH = "v1/{+parent}/servers:configureAndDeployServer";

private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");

/**
* 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 the apihub server. After setting any optional
* parameters, call the {@link ConfigureAndDeployServer#execute()} method to invoke the remote
* operation. <p> {@link ConfigureAndDeployServer#initialize(com.google.api.client.googleapis.serv
* ices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
* invoking the constructor. </p>
*
* @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);
}
}

}
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
*
* <p> 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:
* <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>
* </p>
*
* @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();
}

}
Loading
Loading