From a347a5a014aa94651008323cce7fe84f6fe369eb Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Fri, 6 Nov 2026 16:55:18 -0800 Subject: [PATCH] chore: regenerate bigqueryreservation client --- .../v1/2.0.0/README.md | 4 +- .../v1/BigQueryReservation.java | 161 ++++++++++++++++++ .../v1/model/UpgradeEditionRequest.java | 140 +++++++++++++++ .../v1/model/UpgradeEditionResponse.java | 103 +++++++++++ .../v1/2.0.0/pom.xml | 4 +- .../v1/README.md | 4 +- 6 files changed, 410 insertions(+), 6 deletions(-) create mode 100644 clients/google-api-services-bigqueryreservation/v1/2.0.0/com/google/api/services/bigqueryreservation/v1/model/UpgradeEditionRequest.java create mode 100644 clients/google-api-services-bigqueryreservation/v1/2.0.0/com/google/api/services/bigqueryreservation/v1/model/UpgradeEditionResponse.java diff --git a/clients/google-api-services-bigqueryreservation/v1/2.0.0/README.md b/clients/google-api-services-bigqueryreservation/v1/2.0.0/README.md index abd809d70c7..9c40c8e76eb 100644 --- a/clients/google-api-services-bigqueryreservation/v1/2.0.0/README.md +++ b/clients/google-api-services-bigqueryreservation/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-bigqueryreservation - v1-rev20261024-2.9.2 + v1-rev20261102-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-bigqueryreservation:v1-rev20261024-2.9.2' + implementation 'com.google.apis:google-api-services-bigqueryreservation:v1-rev20261102-2.9.2' } ``` diff --git a/clients/google-api-services-bigqueryreservation/v1/2.0.0/com/google/api/services/bigqueryreservation/v1/BigQueryReservation.java b/clients/google-api-services-bigqueryreservation/v1/2.0.0/com/google/api/services/bigqueryreservation/v1/BigQueryReservation.java index 354be169b48..cfd573ac971 100644 --- a/clients/google-api-services-bigqueryreservation/v1/2.0.0/com/google/api/services/bigqueryreservation/v1/BigQueryReservation.java +++ b/clients/google-api-services-bigqueryreservation/v1/2.0.0/com/google/api/services/bigqueryreservation/v1/BigQueryReservation.java @@ -927,6 +927,167 @@ public UpdateBiReservation set(String parameterName, Object value) { return (UpdateBiReservation) super.set(parameterName, value); } } + /** + * Upgrades the edition for a list of reservations and capacity commitments. You can only upgrade to + * a higher edition (from `STANDARD` to `ENTERPRISE` or `ENTERPRISE_PLUS`, from `ENTERPRISE` to + * `ENTERPRISE_PLUS`, or from `EDITION_UNSPECIFIED` to `ENTERPRISE` or `ENTERPRISE_PLUS`). You can't + * downgrade an edition. The upgrade must not cause an overall flexible slot increase across the + * original and target editions (for example, by upgrading a reservation without upgrading its + * corresponding capacity commitment). Otherwise, the method fails with a + * `google.rpc.Code.FAILED_PRECONDITION` error. Before the upgrade, the service validates that the + * resources meet the requirements of the target edition (for example, all reservations within a + * reservation group must be upgraded together). + * + * Create a request for the method "locations.upgradeEdition". + * + * This request holds the parameters needed by the bigqueryreservation server. After setting any + * optional parameters, call the {@link UpgradeEdition#execute()} method to invoke the remote + * operation. + * + * @param parent The parent resource name that identifies the admin project and location, in the format + * `projects/{project}/locations/{location}`. For example, `projects/myproject/locations/us- + * west1`. + * @param content the {@link com.google.api.services.bigqueryreservation.v1.model.UpgradeEditionRequest} + * @return the request + */ + public UpgradeEdition upgradeEdition(java.lang.String parent, com.google.api.services.bigqueryreservation.v1.model.UpgradeEditionRequest content) throws java.io.IOException { + UpgradeEdition result = new UpgradeEdition(parent, content); + initialize(result); + return result; + } + + public class UpgradeEdition extends BigQueryReservationRequest { + + private static final String REST_PATH = "v1/{+parent}:upgradeEdition"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Upgrades the edition for a list of reservations and capacity commitments. You can only upgrade + * to a higher edition (from `STANDARD` to `ENTERPRISE` or `ENTERPRISE_PLUS`, from `ENTERPRISE` to + * `ENTERPRISE_PLUS`, or from `EDITION_UNSPECIFIED` to `ENTERPRISE` or `ENTERPRISE_PLUS`). You + * can't downgrade an edition. The upgrade must not cause an overall flexible slot increase across + * the original and target editions (for example, by upgrading a reservation without upgrading its + * corresponding capacity commitment). Otherwise, the method fails with a + * `google.rpc.Code.FAILED_PRECONDITION` error. Before the upgrade, the service validates that the + * resources meet the requirements of the target edition (for example, all reservations within a + * reservation group must be upgraded together). + * + * Create a request for the method "locations.upgradeEdition". + * + * This request holds the parameters needed by the the bigqueryreservation server. After setting + * any optional parameters, call the {@link UpgradeEdition#execute()} method to invoke the remote + * operation.

{@link UpgradeEdition#initialize(com.google.api.client.googleapis.services.Abstr + * actGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.

+ * + * @param parent The parent resource name that identifies the admin project and location, in the format + * `projects/{project}/locations/{location}`. For example, `projects/myproject/locations/us- + * west1`. + * @param content the {@link com.google.api.services.bigqueryreservation.v1.model.UpgradeEditionRequest} + * @since 1.13 + */ + protected UpgradeEdition(java.lang.String parent, com.google.api.services.bigqueryreservation.v1.model.UpgradeEditionRequest content) { + super(BigQueryReservation.this, "POST", REST_PATH, content, com.google.api.services.bigqueryreservation.v1.model.UpgradeEditionResponse.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 UpgradeEdition set$Xgafv(java.lang.String $Xgafv) { + return (UpgradeEdition) super.set$Xgafv($Xgafv); + } + + @Override + public UpgradeEdition setAccessToken(java.lang.String accessToken) { + return (UpgradeEdition) super.setAccessToken(accessToken); + } + + @Override + public UpgradeEdition setAlt(java.lang.String alt) { + return (UpgradeEdition) super.setAlt(alt); + } + + @Override + public UpgradeEdition setCallback(java.lang.String callback) { + return (UpgradeEdition) super.setCallback(callback); + } + + @Override + public UpgradeEdition setFields(java.lang.String fields) { + return (UpgradeEdition) super.setFields(fields); + } + + @Override + public UpgradeEdition setKey(java.lang.String key) { + return (UpgradeEdition) super.setKey(key); + } + + @Override + public UpgradeEdition setOauthToken(java.lang.String oauthToken) { + return (UpgradeEdition) super.setOauthToken(oauthToken); + } + + @Override + public UpgradeEdition setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpgradeEdition) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpgradeEdition setQuotaUser(java.lang.String quotaUser) { + return (UpgradeEdition) super.setQuotaUser(quotaUser); + } + + @Override + public UpgradeEdition setUploadType(java.lang.String uploadType) { + return (UpgradeEdition) super.setUploadType(uploadType); + } + + @Override + public UpgradeEdition setUploadProtocol(java.lang.String uploadProtocol) { + return (UpgradeEdition) super.setUploadProtocol(uploadProtocol); + } + + /** + * The parent resource name that identifies the admin project and location, in the format + * `projects/{project}/locations/{location}`. For example, `projects/myproject/locations/us- + * west1`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** The parent resource name that identifies the admin project and location, in the format + `projects/{project}/locations/{location}`. For example, `projects/myproject/locations/us-west1`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * The parent resource name that identifies the admin project and location, in the format + * `projects/{project}/locations/{location}`. For example, `projects/myproject/locations/us- + * west1`. + */ + public UpgradeEdition 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 UpgradeEdition set(String parameterName, Object value) { + return (UpgradeEdition) super.set(parameterName, value); + } + } /** * An accessor for creating requests from the CapacityCommitments collection. diff --git a/clients/google-api-services-bigqueryreservation/v1/2.0.0/com/google/api/services/bigqueryreservation/v1/model/UpgradeEditionRequest.java b/clients/google-api-services-bigqueryreservation/v1/2.0.0/com/google/api/services/bigqueryreservation/v1/model/UpgradeEditionRequest.java new file mode 100644 index 00000000000..f020ebbd465 --- /dev/null +++ b/clients/google-api-services-bigqueryreservation/v1/2.0.0/com/google/api/services/bigqueryreservation/v1/model/UpgradeEditionRequest.java @@ -0,0 +1,140 @@ +/* + * 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.bigqueryreservation.v1.model; + +/** + * The request for ReservationService.UpgradeEdition. You must specify at least one reservation or + * capacity commitment. + * + *

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 BigQuery Reservation 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 UpgradeEditionRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The resource names of the capacity commitments to upgrade, in the format + * `projects/{project}/locations/{location}/capacityCommitments/{capacity_commitment}`. For + * example, `projects/myproject/locations/us-west1/capacityCommitments/123`. These capacity + * commitments must be in the `ACTIVE` state and must exist under the specified `parent`. The + * `commitment_start_time` and `commitment_end_time` fields don't change after the upgrade. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List capacityCommitments; + + /** + * Optional. The resource names of the reservations to upgrade, in the format + * `projects/{project}/locations/{location}/reservations/{reservation}`. For example, + * `projects/myproject/locations/us-west1/reservations/team1-prod`. These reservations must exist + * under the specified `parent`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List reservations; + + /** + * The edition to upgrade the capacity commitments and reservations to. Supported values are + * `ENTERPRISE` and `ENTERPRISE_PLUS`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetEdition; + + /** + * Optional. The resource names of the capacity commitments to upgrade, in the format + * `projects/{project}/locations/{location}/capacityCommitments/{capacity_commitment}`. For + * example, `projects/myproject/locations/us-west1/capacityCommitments/123`. These capacity + * commitments must be in the `ACTIVE` state and must exist under the specified `parent`. The + * `commitment_start_time` and `commitment_end_time` fields don't change after the upgrade. + * @return value or {@code null} for none + */ + public java.util.List getCapacityCommitments() { + return capacityCommitments; + } + + /** + * Optional. The resource names of the capacity commitments to upgrade, in the format + * `projects/{project}/locations/{location}/capacityCommitments/{capacity_commitment}`. For + * example, `projects/myproject/locations/us-west1/capacityCommitments/123`. These capacity + * commitments must be in the `ACTIVE` state and must exist under the specified `parent`. The + * `commitment_start_time` and `commitment_end_time` fields don't change after the upgrade. + * @param capacityCommitments capacityCommitments or {@code null} for none + */ + public UpgradeEditionRequest setCapacityCommitments(java.util.List capacityCommitments) { + this.capacityCommitments = capacityCommitments; + return this; + } + + /** + * Optional. The resource names of the reservations to upgrade, in the format + * `projects/{project}/locations/{location}/reservations/{reservation}`. For example, + * `projects/myproject/locations/us-west1/reservations/team1-prod`. These reservations must exist + * under the specified `parent`. + * @return value or {@code null} for none + */ + public java.util.List getReservations() { + return reservations; + } + + /** + * Optional. The resource names of the reservations to upgrade, in the format + * `projects/{project}/locations/{location}/reservations/{reservation}`. For example, + * `projects/myproject/locations/us-west1/reservations/team1-prod`. These reservations must exist + * under the specified `parent`. + * @param reservations reservations or {@code null} for none + */ + public UpgradeEditionRequest setReservations(java.util.List reservations) { + this.reservations = reservations; + return this; + } + + /** + * The edition to upgrade the capacity commitments and reservations to. Supported values are + * `ENTERPRISE` and `ENTERPRISE_PLUS`. + * @return value or {@code null} for none + */ + public java.lang.String getTargetEdition() { + return targetEdition; + } + + /** + * The edition to upgrade the capacity commitments and reservations to. Supported values are + * `ENTERPRISE` and `ENTERPRISE_PLUS`. + * @param targetEdition targetEdition or {@code null} for none + */ + public UpgradeEditionRequest setTargetEdition(java.lang.String targetEdition) { + this.targetEdition = targetEdition; + return this; + } + + @Override + public UpgradeEditionRequest set(String fieldName, Object value) { + return (UpgradeEditionRequest) super.set(fieldName, value); + } + + @Override + public UpgradeEditionRequest clone() { + return (UpgradeEditionRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-bigqueryreservation/v1/2.0.0/com/google/api/services/bigqueryreservation/v1/model/UpgradeEditionResponse.java b/clients/google-api-services-bigqueryreservation/v1/2.0.0/com/google/api/services/bigqueryreservation/v1/model/UpgradeEditionResponse.java new file mode 100644 index 00000000000..3a91f614a00 --- /dev/null +++ b/clients/google-api-services-bigqueryreservation/v1/2.0.0/com/google/api/services/bigqueryreservation/v1/model/UpgradeEditionResponse.java @@ -0,0 +1,103 @@ +/* + * 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.bigqueryreservation.v1.model; + +/** + * The response for ReservationService.UpgradeEdition. + * + *

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 BigQuery Reservation 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 UpgradeEditionResponse extends com.google.api.client.json.GenericJson { + + /** + * The updated capacity commitments after the upgrade. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List capacityCommitments; + + static { + // hack to force ProGuard to consider CapacityCommitment used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(CapacityCommitment.class); + } + + /** + * The updated reservations after the upgrade. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List reservations; + + static { + // hack to force ProGuard to consider Reservation used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Reservation.class); + } + + /** + * The updated capacity commitments after the upgrade. + * @return value or {@code null} for none + */ + public java.util.List getCapacityCommitments() { + return capacityCommitments; + } + + /** + * The updated capacity commitments after the upgrade. + * @param capacityCommitments capacityCommitments or {@code null} for none + */ + public UpgradeEditionResponse setCapacityCommitments(java.util.List capacityCommitments) { + this.capacityCommitments = capacityCommitments; + return this; + } + + /** + * The updated reservations after the upgrade. + * @return value or {@code null} for none + */ + public java.util.List getReservations() { + return reservations; + } + + /** + * The updated reservations after the upgrade. + * @param reservations reservations or {@code null} for none + */ + public UpgradeEditionResponse setReservations(java.util.List reservations) { + this.reservations = reservations; + return this; + } + + @Override + public UpgradeEditionResponse set(String fieldName, Object value) { + return (UpgradeEditionResponse) super.set(fieldName, value); + } + + @Override + public UpgradeEditionResponse clone() { + return (UpgradeEditionResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-bigqueryreservation/v1/2.0.0/pom.xml b/clients/google-api-services-bigqueryreservation/v1/2.0.0/pom.xml index bf318dbd8f5..7c5b7f1e311 100644 --- a/clients/google-api-services-bigqueryreservation/v1/2.0.0/pom.xml +++ b/clients/google-api-services-bigqueryreservation/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-bigqueryreservation - v1-rev20261024-2.9.2 - BigQuery Reservation API v1-rev20261024-2.9.2 + v1-rev20261102-2.9.2 + BigQuery Reservation API v1-rev20261102-2.9.2 jar 2011 diff --git a/clients/google-api-services-bigqueryreservation/v1/README.md b/clients/google-api-services-bigqueryreservation/v1/README.md index abd809d70c7..9c40c8e76eb 100644 --- a/clients/google-api-services-bigqueryreservation/v1/README.md +++ b/clients/google-api-services-bigqueryreservation/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-bigqueryreservation - v1-rev20261024-2.9.2 + v1-rev20261102-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-bigqueryreservation:v1-rev20261024-2.9.2' + implementation 'com.google.apis:google-api-services-bigqueryreservation:v1-rev20261102-2.9.2' } ```