From 2e8a7c19dedbd1d23553e102b3c21bf7f2fbf568 Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Mon, 4 Nov 2024 17:10:22 -0800
Subject: [PATCH] chore: regenerate clouddeploy client (#23786)
Generated in GitHub action: https://togithub.com/googleapis/googleapis/google-api-java-client-services/actions/workflows/codegen.yaml
---
.../v1/2.0.0/README.md | 4 +-
.../clouddeploy/v1/model/AutomationRule.java | 27 +++
.../v1/model/AutomationRuleCondition.java | 27 +++
.../clouddeploy/v1/model/AutomationRun.java | 39 +++-
.../clouddeploy/v1/model/Targets.java | 90 ++++++++
.../model/TimedPromoteReleaseCondition.java | 97 +++++++++
.../model/TimedPromoteReleaseOperation.java | 117 ++++++++++
.../v1/model/TimedPromoteReleaseRule.java | 202 ++++++++++++++++++
.../v1/2.0.0/pom.xml | 4 +-
.../v1/README.md | 4 +-
10 files changed, 599 insertions(+), 12 deletions(-)
create mode 100644 clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Targets.java
create mode 100644 clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimedPromoteReleaseCondition.java
create mode 100644 clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimedPromoteReleaseOperation.java
create mode 100644 clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimedPromoteReleaseRule.java
diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/README.md b/clients/google-api-services-clouddeploy/v1/2.0.0/README.md
index 64ed0209525..4ba90c5b309 100644
--- a/clients/google-api-services-clouddeploy/v1/2.0.0/README.md
+++ b/clients/google-api-services-clouddeploy/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
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 Cloud Deploy 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 Targets extends com.google.api.client.json.GenericJson { + + /** + * Optional. The destination target ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destinationTargetId; + + /** + * Optional. The source target ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceTargetId; + + /** + * Optional. The destination target ID. + * @return value or {@code null} for none + */ + public java.lang.String getDestinationTargetId() { + return destinationTargetId; + } + + /** + * Optional. The destination target ID. + * @param destinationTargetId destinationTargetId or {@code null} for none + */ + public Targets setDestinationTargetId(java.lang.String destinationTargetId) { + this.destinationTargetId = destinationTargetId; + return this; + } + + /** + * Optional. The source target ID. + * @return value or {@code null} for none + */ + public java.lang.String getSourceTargetId() { + return sourceTargetId; + } + + /** + * Optional. The source target ID. + * @param sourceTargetId sourceTargetId or {@code null} for none + */ + public Targets setSourceTargetId(java.lang.String sourceTargetId) { + this.sourceTargetId = sourceTargetId; + return this; + } + + @Override + public Targets set(String fieldName, Object value) { + return (Targets) super.set(fieldName, value); + } + + @Override + public Targets clone() { + return (Targets) super.clone(); + } + +} diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimedPromoteReleaseCondition.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimedPromoteReleaseCondition.java new file mode 100644 index 00000000000..3a43d8ff5fc --- /dev/null +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimedPromoteReleaseCondition.java @@ -0,0 +1,97 @@ +/* + * 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.clouddeploy.v1.model; + +/** + * `TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote + * Release rule defined. + * + *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 Cloud Deploy 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 TimedPromoteReleaseCondition extends com.google.api.client.json.GenericJson { + + /** + * Output only. When the next scheduled promotion(s) will occur. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String nextPromotionTime; + + /** + * Output only. A list of targets involved in the upcoming timed promotion(s). + * 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 Cloud Deploy 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 TimedPromoteReleaseOperation extends com.google.api.client.json.GenericJson { + + /** + * Output only. The starting phase of the rollout created by this operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phase; + + /** + * Output only. The name of the release to be promoted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String release; + + /** + * Output only. The ID of the target that represents the promotion stage to which the release will + * be promoted. The value of this field is the last segment of a target name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetId; + + /** + * Output only. The starting phase of the rollout created by this operation. + * @return value or {@code null} for none + */ + public java.lang.String getPhase() { + return phase; + } + + /** + * Output only. The starting phase of the rollout created by this operation. + * @param phase phase or {@code null} for none + */ + public TimedPromoteReleaseOperation setPhase(java.lang.String phase) { + this.phase = phase; + return this; + } + + /** + * Output only. The name of the release to be promoted. + * @return value or {@code null} for none + */ + public java.lang.String getRelease() { + return release; + } + + /** + * Output only. The name of the release to be promoted. + * @param release release or {@code null} for none + */ + public TimedPromoteReleaseOperation setRelease(java.lang.String release) { + this.release = release; + return this; + } + + /** + * Output only. The ID of the target that represents the promotion stage to which the release will + * be promoted. The value of this field is the last segment of a target name. + * @return value or {@code null} for none + */ + public java.lang.String getTargetId() { + return targetId; + } + + /** + * Output only. The ID of the target that represents the promotion stage to which the release will + * be promoted. The value of this field is the last segment of a target name. + * @param targetId targetId or {@code null} for none + */ + public TimedPromoteReleaseOperation setTargetId(java.lang.String targetId) { + this.targetId = targetId; + return this; + } + + @Override + public TimedPromoteReleaseOperation set(String fieldName, Object value) { + return (TimedPromoteReleaseOperation) super.set(fieldName, value); + } + + @Override + public TimedPromoteReleaseOperation clone() { + return (TimedPromoteReleaseOperation) super.clone(); + } + +} diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimedPromoteReleaseRule.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimedPromoteReleaseRule.java new file mode 100644 index 00000000000..ff2780b2471 --- /dev/null +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimedPromoteReleaseRule.java @@ -0,0 +1,202 @@ +/* + * 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.clouddeploy.v1.model; + +/** + * The `TimedPromoteReleaseRule` will automatically promote a release from the current target(s) to + * the specified target(s) on a configured schedule. + * + *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 Cloud Deploy 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 TimedPromoteReleaseRule extends com.google.api.client.json.GenericJson { + + /** + * Output only. Information around the state of the Automation rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AutomationRuleCondition condition; + + /** + * Optional. The starting phase of the rollout created by this rule. Default to the first phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destinationPhase; + + /** + * Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If + * unspecified, default it to the next stage in the promotion flow. The value of this field could + * be one of the following: * The last segment of a target name * "@next", the next target in the + * promotion sequence + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destinationTargetId; + + /** + * Required. ID of the rule. This ID must be unique in the `Automation` resource to which this + * rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at 9am. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String schedule; + + /** + * Required. The time zone in IANA format [IANA Time Zone Database](https://www.iana.org/time- + * zones) (e.g. America/New_York). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String timeZone; + + /** + * Output only. Information around the state of the Automation rule. + * @return value or {@code null} for none + */ + public AutomationRuleCondition getCondition() { + return condition; + } + + /** + * Output only. Information around the state of the Automation rule. + * @param condition condition or {@code null} for none + */ + public TimedPromoteReleaseRule setCondition(AutomationRuleCondition condition) { + this.condition = condition; + return this; + } + + /** + * Optional. The starting phase of the rollout created by this rule. Default to the first phase. + * @return value or {@code null} for none + */ + public java.lang.String getDestinationPhase() { + return destinationPhase; + } + + /** + * Optional. The starting phase of the rollout created by this rule. Default to the first phase. + * @param destinationPhase destinationPhase or {@code null} for none + */ + public TimedPromoteReleaseRule setDestinationPhase(java.lang.String destinationPhase) { + this.destinationPhase = destinationPhase; + return this; + } + + /** + * Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If + * unspecified, default it to the next stage in the promotion flow. The value of this field could + * be one of the following: * The last segment of a target name * "@next", the next target in the + * promotion sequence + * @return value or {@code null} for none + */ + public java.lang.String getDestinationTargetId() { + return destinationTargetId; + } + + /** + * Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If + * unspecified, default it to the next stage in the promotion flow. The value of this field could + * be one of the following: * The last segment of a target name * "@next", the next target in the + * promotion sequence + * @param destinationTargetId destinationTargetId or {@code null} for none + */ + public TimedPromoteReleaseRule setDestinationTargetId(java.lang.String destinationTargetId) { + this.destinationTargetId = destinationTargetId; + return this; + } + + /** + * Required. ID of the rule. This ID must be unique in the `Automation` resource to which this + * rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Required. ID of the rule. This ID must be unique in the `Automation` resource to which this + * rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * @param id id or {@code null} for none + */ + public TimedPromoteReleaseRule setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at 9am. + * @return value or {@code null} for none + */ + public java.lang.String getSchedule() { + return schedule; + } + + /** + * Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at 9am. + * @param schedule schedule or {@code null} for none + */ + public TimedPromoteReleaseRule setSchedule(java.lang.String schedule) { + this.schedule = schedule; + return this; + } + + /** + * Required. The time zone in IANA format [IANA Time Zone Database](https://www.iana.org/time- + * zones) (e.g. America/New_York). + * @return value or {@code null} for none + */ + public java.lang.String getTimeZone() { + return timeZone; + } + + /** + * Required. The time zone in IANA format [IANA Time Zone Database](https://www.iana.org/time- + * zones) (e.g. America/New_York). + * @param timeZone timeZone or {@code null} for none + */ + public TimedPromoteReleaseRule setTimeZone(java.lang.String timeZone) { + this.timeZone = timeZone; + return this; + } + + @Override + public TimedPromoteReleaseRule set(String fieldName, Object value) { + return (TimedPromoteReleaseRule) super.set(fieldName, value); + } + + @Override + public TimedPromoteReleaseRule clone() { + return (TimedPromoteReleaseRule) super.clone(); + } + +} diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/pom.xml b/clients/google-api-services-clouddeploy/v1/2.0.0/pom.xml index 025fc69ba9d..e2aa820fb37 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/pom.xml +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@