Skip to content

Commit 23900b6

Browse files
1 parent 02a570d commit 23900b6

File tree

12 files changed

+473
-16
lines changed

12 files changed

+473
-16
lines changed

clients/google-api-services-compute/alpha/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-compute</artifactId>
25-
<version>alpha-rev20250902-2.0.0</version>
25+
<version>alpha-rev20250909-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-compute:alpha-rev20250902-2.0.0'
38+
implementation 'com.google.apis:google-api-services-compute:alpha-rev20250909-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java

Lines changed: 259 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110334,6 +110334,219 @@ public AddPeering set(String parameterName, Object value) {
110334110334
return (AddPeering) super.set(parameterName, value);
110335110335
}
110336110336
}
110337+
/**
110338+
* Cancel requests to remove a peering from the specified network. Applicable only for
110339+
* PeeringConnection with update_strategy=CONSENSUS. Cancels a request to remove a peering from the
110340+
* specified network.
110341+
*
110342+
* Create a request for the method "networks.cancelRequestRemovePeering".
110343+
*
110344+
* This request holds the parameters needed by the compute server. After setting any optional
110345+
* parameters, call the {@link CancelRequestRemovePeering#execute()} method to invoke the remote
110346+
* operation.
110347+
*
110348+
* @param project Project ID for this request.
110349+
* @param network Name of the network resource to remove peering from.
110350+
* @param content the {@link com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest}
110351+
* @return the request
110352+
*/
110353+
public CancelRequestRemovePeering cancelRequestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest content) throws java.io.IOException {
110354+
CancelRequestRemovePeering result = new CancelRequestRemovePeering(project, network, content);
110355+
initialize(result);
110356+
return result;
110357+
}
110358+
110359+
public class CancelRequestRemovePeering extends ComputeRequest<com.google.api.services.compute.model.Operation> {
110360+
110361+
private static final String REST_PATH = "projects/{project}/global/networks/{network}/cancelRequestRemovePeering";
110362+
110363+
private final java.util.regex.Pattern PROJECT_PATTERN =
110364+
java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))");
110365+
110366+
private final java.util.regex.Pattern NETWORK_PATTERN =
110367+
java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}");
110368+
110369+
/**
110370+
* Cancel requests to remove a peering from the specified network. Applicable only for
110371+
* PeeringConnection with update_strategy=CONSENSUS. Cancels a request to remove a peering from
110372+
* the specified network.
110373+
*
110374+
* Create a request for the method "networks.cancelRequestRemovePeering".
110375+
*
110376+
* This request holds the parameters needed by the the compute server. After setting any optional
110377+
* parameters, call the {@link CancelRequestRemovePeering#execute()} method to invoke the remote
110378+
* operation. <p> {@link CancelRequestRemovePeering#initialize(com.google.api.client.googleapis.se
110379+
* rvices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
110380+
* after invoking the constructor. </p>
110381+
*
110382+
* @param project Project ID for this request.
110383+
* @param network Name of the network resource to remove peering from.
110384+
* @param content the {@link com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest}
110385+
* @since 1.13
110386+
*/
110387+
protected CancelRequestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest content) {
110388+
super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class);
110389+
this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified.");
110390+
if (!getSuppressPatternChecks()) {
110391+
com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(),
110392+
"Parameter project must conform to the pattern " +
110393+
"(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))");
110394+
}
110395+
this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified.");
110396+
if (!getSuppressPatternChecks()) {
110397+
com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(),
110398+
"Parameter network must conform to the pattern " +
110399+
"[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}");
110400+
}
110401+
}
110402+
110403+
@Override
110404+
public CancelRequestRemovePeering set$Xgafv(java.lang.String $Xgafv) {
110405+
return (CancelRequestRemovePeering) super.set$Xgafv($Xgafv);
110406+
}
110407+
110408+
@Override
110409+
public CancelRequestRemovePeering setAccessToken(java.lang.String accessToken) {
110410+
return (CancelRequestRemovePeering) super.setAccessToken(accessToken);
110411+
}
110412+
110413+
@Override
110414+
public CancelRequestRemovePeering setAlt(java.lang.String alt) {
110415+
return (CancelRequestRemovePeering) super.setAlt(alt);
110416+
}
110417+
110418+
@Override
110419+
public CancelRequestRemovePeering setCallback(java.lang.String callback) {
110420+
return (CancelRequestRemovePeering) super.setCallback(callback);
110421+
}
110422+
110423+
@Override
110424+
public CancelRequestRemovePeering setFields(java.lang.String fields) {
110425+
return (CancelRequestRemovePeering) super.setFields(fields);
110426+
}
110427+
110428+
@Override
110429+
public CancelRequestRemovePeering setKey(java.lang.String key) {
110430+
return (CancelRequestRemovePeering) super.setKey(key);
110431+
}
110432+
110433+
@Override
110434+
public CancelRequestRemovePeering setOauthToken(java.lang.String oauthToken) {
110435+
return (CancelRequestRemovePeering) super.setOauthToken(oauthToken);
110436+
}
110437+
110438+
@Override
110439+
public CancelRequestRemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) {
110440+
return (CancelRequestRemovePeering) super.setPrettyPrint(prettyPrint);
110441+
}
110442+
110443+
@Override
110444+
public CancelRequestRemovePeering setQuotaUser(java.lang.String quotaUser) {
110445+
return (CancelRequestRemovePeering) super.setQuotaUser(quotaUser);
110446+
}
110447+
110448+
@Override
110449+
public CancelRequestRemovePeering setUploadType(java.lang.String uploadType) {
110450+
return (CancelRequestRemovePeering) super.setUploadType(uploadType);
110451+
}
110452+
110453+
@Override
110454+
public CancelRequestRemovePeering setUploadProtocol(java.lang.String uploadProtocol) {
110455+
return (CancelRequestRemovePeering) super.setUploadProtocol(uploadProtocol);
110456+
}
110457+
110458+
@Override
110459+
public CancelRequestRemovePeering setUserIp(java.lang.String userIp) {
110460+
return (CancelRequestRemovePeering) super.setUserIp(userIp);
110461+
}
110462+
110463+
/** Project ID for this request. */
110464+
@com.google.api.client.util.Key
110465+
private java.lang.String project;
110466+
110467+
/** Project ID for this request.
110468+
*/
110469+
public java.lang.String getProject() {
110470+
return project;
110471+
}
110472+
110473+
/** Project ID for this request. */
110474+
public CancelRequestRemovePeering setProject(java.lang.String project) {
110475+
if (!getSuppressPatternChecks()) {
110476+
com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(),
110477+
"Parameter project must conform to the pattern " +
110478+
"(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))");
110479+
}
110480+
this.project = project;
110481+
return this;
110482+
}
110483+
110484+
/** Name of the network resource to remove peering from. */
110485+
@com.google.api.client.util.Key
110486+
private java.lang.String network;
110487+
110488+
/** Name of the network resource to remove peering from.
110489+
*/
110490+
public java.lang.String getNetwork() {
110491+
return network;
110492+
}
110493+
110494+
/** Name of the network resource to remove peering from. */
110495+
public CancelRequestRemovePeering setNetwork(java.lang.String network) {
110496+
if (!getSuppressPatternChecks()) {
110497+
com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(),
110498+
"Parameter network must conform to the pattern " +
110499+
"[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}");
110500+
}
110501+
this.network = network;
110502+
return this;
110503+
}
110504+
110505+
/**
110506+
* An optional request ID to identify requests. Specify a unique request ID so that if you
110507+
* must retry your request, the server will know to ignore the request if it has already been
110508+
* completed. For example, consider a situation where you make an initial request and the
110509+
* request times out. If you make the request again with the same request ID, the server can
110510+
* check if original operation with the same request ID was received, and if so, will ignore
110511+
* the second request. This prevents clients from accidentally creating duplicate commitments.
110512+
* The request ID must be a valid UUID with the exception that zero UUID is not supported (
110513+
* 00000000-0000-0000-0000-000000000000).
110514+
*/
110515+
@com.google.api.client.util.Key
110516+
private java.lang.String requestId;
110517+
110518+
/** An optional request ID to identify requests. Specify a unique request ID so that if you must retry
110519+
your request, the server will know to ignore the request if it has already been completed. For
110520+
example, consider a situation where you make an initial request and the request times out. If you
110521+
make the request again with the same request ID, the server can check if original operation with
110522+
the same request ID was received, and if so, will ignore the second request. This prevents clients
110523+
from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
110524+
exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
110525+
*/
110526+
public java.lang.String getRequestId() {
110527+
return requestId;
110528+
}
110529+
110530+
/**
110531+
* An optional request ID to identify requests. Specify a unique request ID so that if you
110532+
* must retry your request, the server will know to ignore the request if it has already been
110533+
* completed. For example, consider a situation where you make an initial request and the
110534+
* request times out. If you make the request again with the same request ID, the server can
110535+
* check if original operation with the same request ID was received, and if so, will ignore
110536+
* the second request. This prevents clients from accidentally creating duplicate commitments.
110537+
* The request ID must be a valid UUID with the exception that zero UUID is not supported (
110538+
* 00000000-0000-0000-0000-000000000000).
110539+
*/
110540+
public CancelRequestRemovePeering setRequestId(java.lang.String requestId) {
110541+
this.requestId = requestId;
110542+
return this;
110543+
}
110544+
110545+
@Override
110546+
public CancelRequestRemovePeering set(String parameterName, Object value) {
110547+
return (CancelRequestRemovePeering) super.set(parameterName, value);
110548+
}
110549+
}
110337110550
/**
110338110551
* Deletes the specified network.
110339110552
*
@@ -123627,6 +123840,22 @@ public Patch setRequestId(java.lang.String requestId) {
123627123840
return this;
123628123841
}
123629123842

123843+
/** Indicates fields to be cleared as part of this request. */
123844+
@com.google.api.client.util.Key
123845+
private String updateMask;
123846+
123847+
/** Indicates fields to be cleared as part of this request.
123848+
*/
123849+
public String getUpdateMask() {
123850+
return updateMask;
123851+
}
123852+
123853+
/** Indicates fields to be cleared as part of this request. */
123854+
public Patch setUpdateMask(String updateMask) {
123855+
this.updateMask = updateMask;
123856+
return this;
123857+
}
123858+
123630123859
@Override
123631123860
public Patch set(String parameterName, Object value) {
123632123861
return (Patch) super.set(parameterName, value);
@@ -123821,6 +124050,22 @@ public PatchRule setRequestId(java.lang.String requestId) {
123821124050
return this;
123822124051
}
123823124052

124053+
/** Indicates fields to be cleared as part of this request. */
124054+
@com.google.api.client.util.Key
124055+
private String updateMask;
124056+
124057+
/** Indicates fields to be cleared as part of this request.
124058+
*/
124059+
public String getUpdateMask() {
124060+
return updateMask;
124061+
}
124062+
124063+
/** Indicates fields to be cleared as part of this request. */
124064+
public PatchRule setUpdateMask(String updateMask) {
124065+
this.updateMask = updateMask;
124066+
return this;
124067+
}
124068+
123824124069
@Override
123825124070
public PatchRule set(String parameterName, Object value) {
123826124071
return (PatchRule) super.set(parameterName, value);
@@ -128594,7 +128839,13 @@ public ListXpnHosts set(String parameterName, Object value) {
128594128839
}
128595128840
}
128596128841
/**
128597-
* Moves a persistent disk from one zone to another.
128842+
* Starting September 29, 2025, you can't use the moveDisk API on new projects. To move a disk to a
128843+
* different region or zone, follow the steps in [Change the location of a
128844+
* disk](https://{$universe.dns_names.final_documentation_domain}/compute/docs/disks/migrate-to-
128845+
* hyperdisk#migrate-to-hd). Projects that already use the moveDisk API can continue usage until
128846+
* September 29, 2026. Starting November 1, 2025, API responses will include a warning message in
128847+
* the response body about the upcoming deprecation. You can skip the message to continue using the
128848+
* service without interruption.
128598128849
*
128599128850
* Create a request for the method "projects.moveDisk".
128600128851
*
@@ -128619,7 +128870,13 @@ public class MoveDisk extends ComputeRequest<com.google.api.services.compute.mod
128619128870
java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))");
128620128871

128621128872
/**
128622-
* Moves a persistent disk from one zone to another.
128873+
* Starting September 29, 2025, you can't use the moveDisk API on new projects. To move a disk to
128874+
* a different region or zone, follow the steps in [Change the location of a
128875+
* disk](https://{$universe.dns_names.final_documentation_domain}/compute/docs/disks/migrate-to-
128876+
* hyperdisk#migrate-to-hd). Projects that already use the moveDisk API can continue usage until
128877+
* September 29, 2026. Starting November 1, 2025, API responses will include a warning message in
128878+
* the response body about the upcoming deprecation. You can skip the message to continue using
128879+
* the service without interruption.
128623128880
*
128624128881
* Create a request for the method "projects.moveDisk".
128625128882
*
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.compute.model;
18+
19+
/**
20+
* Model definition for NetworksCancelRequestRemovePeeringRequest.
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 Compute Engine 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 NetworksCancelRequestRemovePeeringRequest extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Name of the peering, which should conform to RFC1035.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String name;
38+
39+
/**
40+
* Name of the peering, which should conform to RFC1035.
41+
* @return value or {@code null} for none
42+
*/
43+
public java.lang.String getName() {
44+
return name;
45+
}
46+
47+
/**
48+
* Name of the peering, which should conform to RFC1035.
49+
* @param name name or {@code null} for none
50+
*/
51+
public NetworksCancelRequestRemovePeeringRequest setName(java.lang.String name) {
52+
this.name = name;
53+
return this;
54+
}
55+
56+
@Override
57+
public NetworksCancelRequestRemovePeeringRequest set(String fieldName, Object value) {
58+
return (NetworksCancelRequestRemovePeeringRequest) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public NetworksCancelRequestRemovePeeringRequest clone() {
63+
return (NetworksCancelRequestRemovePeeringRequest) super.clone();
64+
}
65+
66+
}

0 commit comments

Comments
 (0)