Skip to content

Commit db0046c

Browse files
1 parent 33cd6c1 commit db0046c

File tree

33 files changed

+1974
-66
lines changed

33 files changed

+1974
-66
lines changed

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

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4502,6 +4502,146 @@ public CorroborateContent set(String parameterName, Object value) {
45024502
return (CorroborateContent) super.set(parameterName, value);
45034503
}
45044504
}
4505+
/**
4506+
* Deploys a model to a new endpoint.
4507+
*
4508+
* Create a request for the method "locations.deploy".
4509+
*
4510+
* This request holds the parameters needed by the aiplatform server. After setting any optional
4511+
* parameters, call the {@link Deploy#execute()} method to invoke the remote operation.
4512+
*
4513+
* @param destination Required. The resource name of the Location to deploy the model in. Format:
4514+
* `projects/{project}/locations/{location}`
4515+
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1DeployRequest}
4516+
* @return the request
4517+
*/
4518+
public Deploy deploy(java.lang.String destination, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1DeployRequest content) throws java.io.IOException {
4519+
Deploy result = new Deploy(destination, content);
4520+
initialize(result);
4521+
return result;
4522+
}
4523+
4524+
public class Deploy extends AiplatformRequest<com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation> {
4525+
4526+
private static final String REST_PATH = "v1/{+destination}:deploy";
4527+
4528+
private final java.util.regex.Pattern DESTINATION_PATTERN =
4529+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
4530+
4531+
/**
4532+
* Deploys a model to a new endpoint.
4533+
*
4534+
* Create a request for the method "locations.deploy".
4535+
*
4536+
* This request holds the parameters needed by the the aiplatform server. After setting any
4537+
* optional parameters, call the {@link Deploy#execute()} method to invoke the remote operation.
4538+
* <p> {@link
4539+
* Deploy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
4540+
* be called to initialize this instance immediately after invoking the constructor. </p>
4541+
*
4542+
* @param destination Required. The resource name of the Location to deploy the model in. Format:
4543+
* `projects/{project}/locations/{location}`
4544+
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1DeployRequest}
4545+
* @since 1.13
4546+
*/
4547+
protected Deploy(java.lang.String destination, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1DeployRequest content) {
4548+
super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class);
4549+
this.destination = com.google.api.client.util.Preconditions.checkNotNull(destination, "Required parameter destination must be specified.");
4550+
if (!getSuppressPatternChecks()) {
4551+
com.google.api.client.util.Preconditions.checkArgument(DESTINATION_PATTERN.matcher(destination).matches(),
4552+
"Parameter destination must conform to the pattern " +
4553+
"^projects/[^/]+/locations/[^/]+$");
4554+
}
4555+
}
4556+
4557+
@Override
4558+
public Deploy set$Xgafv(java.lang.String $Xgafv) {
4559+
return (Deploy) super.set$Xgafv($Xgafv);
4560+
}
4561+
4562+
@Override
4563+
public Deploy setAccessToken(java.lang.String accessToken) {
4564+
return (Deploy) super.setAccessToken(accessToken);
4565+
}
4566+
4567+
@Override
4568+
public Deploy setAlt(java.lang.String alt) {
4569+
return (Deploy) super.setAlt(alt);
4570+
}
4571+
4572+
@Override
4573+
public Deploy setCallback(java.lang.String callback) {
4574+
return (Deploy) super.setCallback(callback);
4575+
}
4576+
4577+
@Override
4578+
public Deploy setFields(java.lang.String fields) {
4579+
return (Deploy) super.setFields(fields);
4580+
}
4581+
4582+
@Override
4583+
public Deploy setKey(java.lang.String key) {
4584+
return (Deploy) super.setKey(key);
4585+
}
4586+
4587+
@Override
4588+
public Deploy setOauthToken(java.lang.String oauthToken) {
4589+
return (Deploy) super.setOauthToken(oauthToken);
4590+
}
4591+
4592+
@Override
4593+
public Deploy setPrettyPrint(java.lang.Boolean prettyPrint) {
4594+
return (Deploy) super.setPrettyPrint(prettyPrint);
4595+
}
4596+
4597+
@Override
4598+
public Deploy setQuotaUser(java.lang.String quotaUser) {
4599+
return (Deploy) super.setQuotaUser(quotaUser);
4600+
}
4601+
4602+
@Override
4603+
public Deploy setUploadType(java.lang.String uploadType) {
4604+
return (Deploy) super.setUploadType(uploadType);
4605+
}
4606+
4607+
@Override
4608+
public Deploy setUploadProtocol(java.lang.String uploadProtocol) {
4609+
return (Deploy) super.setUploadProtocol(uploadProtocol);
4610+
}
4611+
4612+
/**
4613+
* Required. The resource name of the Location to deploy the model in. Format:
4614+
* `projects/{project}/locations/{location}`
4615+
*/
4616+
@com.google.api.client.util.Key
4617+
private java.lang.String destination;
4618+
4619+
/** Required. The resource name of the Location to deploy the model in. Format:
4620+
`projects/{project}/locations/{location}`
4621+
*/
4622+
public java.lang.String getDestination() {
4623+
return destination;
4624+
}
4625+
4626+
/**
4627+
* Required. The resource name of the Location to deploy the model in. Format:
4628+
* `projects/{project}/locations/{location}`
4629+
*/
4630+
public Deploy setDestination(java.lang.String destination) {
4631+
if (!getSuppressPatternChecks()) {
4632+
com.google.api.client.util.Preconditions.checkArgument(DESTINATION_PATTERN.matcher(destination).matches(),
4633+
"Parameter destination must conform to the pattern " +
4634+
"^projects/[^/]+/locations/[^/]+$");
4635+
}
4636+
this.destination = destination;
4637+
return this;
4638+
}
4639+
4640+
@Override
4641+
public Deploy set(String parameterName, Object value) {
4642+
return (Deploy) super.set(parameterName, value);
4643+
}
4644+
}
45054645
/**
45064646
* Evaluates a dataset based on a set of given metrics.
45074647
*

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Candidate.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ public final class GoogleCloudAiplatformV1Candidate extends com.google.api.clien
9595
@com.google.api.client.util.Key
9696
private java.util.List<GoogleCloudAiplatformV1SafetyRating> safetyRatings;
9797

98+
/**
99+
* Output only. Metadata related to url context retrieval tool.
100+
* The value may be {@code null}.
101+
*/
102+
@com.google.api.client.util.Key
103+
private GoogleCloudAiplatformV1UrlContextMetadata urlContextMetadata;
104+
98105
/**
99106
* Output only. Average log probability score of the candidate.
100107
* @return value or {@code null} for none
@@ -254,6 +261,23 @@ public GoogleCloudAiplatformV1Candidate setSafetyRatings(java.util.List<GoogleCl
254261
return this;
255262
}
256263

264+
/**
265+
* Output only. Metadata related to url context retrieval tool.
266+
* @return value or {@code null} for none
267+
*/
268+
public GoogleCloudAiplatformV1UrlContextMetadata getUrlContextMetadata() {
269+
return urlContextMetadata;
270+
}
271+
272+
/**
273+
* Output only. Metadata related to url context retrieval tool.
274+
* @param urlContextMetadata urlContextMetadata or {@code null} for none
275+
*/
276+
public GoogleCloudAiplatformV1Candidate setUrlContextMetadata(GoogleCloudAiplatformV1UrlContextMetadata urlContextMetadata) {
277+
this.urlContextMetadata = urlContextMetadata;
278+
return this;
279+
}
280+
257281
@Override
258282
public GoogleCloudAiplatformV1Candidate set(String fieldName, Object value) {
259283
return (GoogleCloudAiplatformV1Candidate) super.set(fieldName, value);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
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.aiplatform.v1.model;
18+
19+
/**
20+
* Runtime operation information for ModelGardenService.Deploy.
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 Vertex AI 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 GoogleCloudAiplatformV1DeployOperationMetadata extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Output only. The resource name of the Location to deploy the model in. Format:
34+
* `projects/{project}/locations/{location}`
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String destination;
39+
40+
/**
41+
* The operation generic information.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private GoogleCloudAiplatformV1GenericOperationMetadata genericMetadata;
46+
47+
/**
48+
* Output only. The model id to be used at query time.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.lang.String modelId;
53+
54+
/**
55+
* Output only. The project number where the deploy model request is sent.
56+
* The value may be {@code null}.
57+
*/
58+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
59+
private java.lang.Long projectNumber;
60+
61+
/**
62+
* Output only. The name of the model resource.
63+
* The value may be {@code null}.
64+
*/
65+
@com.google.api.client.util.Key
66+
private java.lang.String publisherModel;
67+
68+
/**
69+
* Output only. The resource name of the Location to deploy the model in. Format:
70+
* `projects/{project}/locations/{location}`
71+
* @return value or {@code null} for none
72+
*/
73+
public java.lang.String getDestination() {
74+
return destination;
75+
}
76+
77+
/**
78+
* Output only. The resource name of the Location to deploy the model in. Format:
79+
* `projects/{project}/locations/{location}`
80+
* @param destination destination or {@code null} for none
81+
*/
82+
public GoogleCloudAiplatformV1DeployOperationMetadata setDestination(java.lang.String destination) {
83+
this.destination = destination;
84+
return this;
85+
}
86+
87+
/**
88+
* The operation generic information.
89+
* @return value or {@code null} for none
90+
*/
91+
public GoogleCloudAiplatformV1GenericOperationMetadata getGenericMetadata() {
92+
return genericMetadata;
93+
}
94+
95+
/**
96+
* The operation generic information.
97+
* @param genericMetadata genericMetadata or {@code null} for none
98+
*/
99+
public GoogleCloudAiplatformV1DeployOperationMetadata setGenericMetadata(GoogleCloudAiplatformV1GenericOperationMetadata genericMetadata) {
100+
this.genericMetadata = genericMetadata;
101+
return this;
102+
}
103+
104+
/**
105+
* Output only. The model id to be used at query time.
106+
* @return value or {@code null} for none
107+
*/
108+
public java.lang.String getModelId() {
109+
return modelId;
110+
}
111+
112+
/**
113+
* Output only. The model id to be used at query time.
114+
* @param modelId modelId or {@code null} for none
115+
*/
116+
public GoogleCloudAiplatformV1DeployOperationMetadata setModelId(java.lang.String modelId) {
117+
this.modelId = modelId;
118+
return this;
119+
}
120+
121+
/**
122+
* Output only. The project number where the deploy model request is sent.
123+
* @return value or {@code null} for none
124+
*/
125+
public java.lang.Long getProjectNumber() {
126+
return projectNumber;
127+
}
128+
129+
/**
130+
* Output only. The project number where the deploy model request is sent.
131+
* @param projectNumber projectNumber or {@code null} for none
132+
*/
133+
public GoogleCloudAiplatformV1DeployOperationMetadata setProjectNumber(java.lang.Long projectNumber) {
134+
this.projectNumber = projectNumber;
135+
return this;
136+
}
137+
138+
/**
139+
* Output only. The name of the model resource.
140+
* @return value or {@code null} for none
141+
*/
142+
public java.lang.String getPublisherModel() {
143+
return publisherModel;
144+
}
145+
146+
/**
147+
* Output only. The name of the model resource.
148+
* @param publisherModel publisherModel or {@code null} for none
149+
*/
150+
public GoogleCloudAiplatformV1DeployOperationMetadata setPublisherModel(java.lang.String publisherModel) {
151+
this.publisherModel = publisherModel;
152+
return this;
153+
}
154+
155+
@Override
156+
public GoogleCloudAiplatformV1DeployOperationMetadata set(String fieldName, Object value) {
157+
return (GoogleCloudAiplatformV1DeployOperationMetadata) super.set(fieldName, value);
158+
}
159+
160+
@Override
161+
public GoogleCloudAiplatformV1DeployOperationMetadata clone() {
162+
return (GoogleCloudAiplatformV1DeployOperationMetadata) super.clone();
163+
}
164+
165+
}

0 commit comments

Comments
 (0)