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: com.google.apis google-api-services-clouddeploy - v1-rev20241010-2.0.0 + v1-rev20241029-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-clouddeploy:v1-rev20241010-2.0.0' + implementation 'com.google.apis:google-api-services-clouddeploy:v1-rev20241029-2.0.0' } ``` diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRule.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRule.java index 8324cb6c37a..0bae1bb03cb 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRule.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRule.java @@ -51,6 +51,14 @@ public final class AutomationRule extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private RepairRolloutRule repairRolloutRule; + /** + * Optional. The `TimedPromoteReleaseRule` will automatically promote a release from the current + * target(s) to the specified target(s) on a configured schedule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TimedPromoteReleaseRule timedPromoteReleaseRule; + /** * Optional. The `AdvanceRolloutRule` will automatically advance a successful Rollout. * @return value or {@code null} for none @@ -104,6 +112,25 @@ public AutomationRule setRepairRolloutRule(RepairRolloutRule repairRolloutRule) return this; } + /** + * Optional. The `TimedPromoteReleaseRule` will automatically promote a release from the current + * target(s) to the specified target(s) on a configured schedule. + * @return value or {@code null} for none + */ + public TimedPromoteReleaseRule getTimedPromoteReleaseRule() { + return timedPromoteReleaseRule; + } + + /** + * Optional. The `TimedPromoteReleaseRule` will automatically promote a release from the current + * target(s) to the specified target(s) on a configured schedule. + * @param timedPromoteReleaseRule timedPromoteReleaseRule or {@code null} for none + */ + public AutomationRule setTimedPromoteReleaseRule(TimedPromoteReleaseRule timedPromoteReleaseRule) { + this.timedPromoteReleaseRule = timedPromoteReleaseRule; + return this; + } + @Override public AutomationRule set(String fieldName, Object value) { return (AutomationRule) super.set(fieldName, value); diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRuleCondition.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRuleCondition.java index 054f3cc6bd7..91e52810390 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRuleCondition.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRuleCondition.java @@ -36,6 +36,14 @@ public final class AutomationRuleCondition extends com.google.api.client.json.Ge @com.google.api.client.util.Key private TargetsPresentCondition targetsPresentCondition; + /** + * Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation + * with a timed promote release rule defined. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TimedPromoteReleaseCondition timedPromoteReleaseCondition; + /** * Optional. Details around targets enumerated in the rule. * @return value or {@code null} for none @@ -53,6 +61,25 @@ public AutomationRuleCondition setTargetsPresentCondition(TargetsPresentConditio return this; } + /** + * Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation + * with a timed promote release rule defined. + * @return value or {@code null} for none + */ + public TimedPromoteReleaseCondition getTimedPromoteReleaseCondition() { + return timedPromoteReleaseCondition; + } + + /** + * Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation + * with a timed promote release rule defined. + * @param timedPromoteReleaseCondition timedPromoteReleaseCondition or {@code null} for none + */ + public AutomationRuleCondition setTimedPromoteReleaseCondition(TimedPromoteReleaseCondition timedPromoteReleaseCondition) { + this.timedPromoteReleaseCondition = timedPromoteReleaseCondition; + return this; + } + @Override public AutomationRuleCondition set(String fieldName, Object value) { return (AutomationRuleCondition) super.set(fieldName, value); diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRun.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRun.java index 88fbe41ee7e..a857d60ea41 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRun.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRun.java @@ -136,13 +136,21 @@ public final class AutomationRun extends com.google.api.client.json.GenericJson private java.lang.String stateDescription; /** - * Output only. The ID of the target that represents the promotion stage that initiates the - * `AutomationRun`. The value of this field is the last segment of a target name. + * Output only. The ID of the source target that initiates the `AutomationRun`. 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. Promotes a release to a specified 'Target' as defined in a Timed Promote Release + * rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TimedPromoteReleaseOperation timedPromoteReleaseOperation; + /** * Output only. Time at which the automationRun was updated. * The value may be {@code null}. @@ -411,8 +419,8 @@ public AutomationRun setStateDescription(java.lang.String stateDescription) { } /** - * Output only. The ID of the target that represents the promotion stage that initiates the - * `AutomationRun`. The value of this field is the last segment of a target name. + * Output only. The ID of the source target that initiates the `AutomationRun`. 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() { @@ -420,8 +428,8 @@ public java.lang.String getTargetId() { } /** - * Output only. The ID of the target that represents the promotion stage that initiates the - * `AutomationRun`. The value of this field is the last segment of a target name. + * Output only. The ID of the source target that initiates the `AutomationRun`. The value of this + * field is the last segment of a target name. * @param targetId targetId or {@code null} for none */ public AutomationRun setTargetId(java.lang.String targetId) { @@ -429,6 +437,25 @@ public AutomationRun setTargetId(java.lang.String targetId) { return this; } + /** + * Output only. Promotes a release to a specified 'Target' as defined in a Timed Promote Release + * rule. + * @return value or {@code null} for none + */ + public TimedPromoteReleaseOperation getTimedPromoteReleaseOperation() { + return timedPromoteReleaseOperation; + } + + /** + * Output only. Promotes a release to a specified 'Target' as defined in a Timed Promote Release + * rule. + * @param timedPromoteReleaseOperation timedPromoteReleaseOperation or {@code null} for none + */ + public AutomationRun setTimedPromoteReleaseOperation(TimedPromoteReleaseOperation timedPromoteReleaseOperation) { + this.timedPromoteReleaseOperation = timedPromoteReleaseOperation; + return this; + } + /** * Output only. Time at which the automationRun was updated. * @return value or {@code null} for none diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Targets.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Targets.java new file mode 100644 index 00000000000..bbe954dbc7f --- /dev/null +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Targets.java @@ -0,0 +1,90 @@ +/* + * 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 targets involved in a single timed promotion. + * + *

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.List targetsList; + + static { + // hack to force ProGuard to consider Targets 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(Targets.class); + } + + /** + * Output only. When the next scheduled promotion(s) will occur. + * @return value or {@code null} for none + */ + public String getNextPromotionTime() { + return nextPromotionTime; + } + + /** + * Output only. When the next scheduled promotion(s) will occur. + * @param nextPromotionTime nextPromotionTime or {@code null} for none + */ + public TimedPromoteReleaseCondition setNextPromotionTime(String nextPromotionTime) { + this.nextPromotionTime = nextPromotionTime; + return this; + } + + /** + * Output only. A list of targets involved in the upcoming timed promotion(s). + * @return value or {@code null} for none + */ + public java.util.List getTargetsList() { + return targetsList; + } + + /** + * Output only. A list of targets involved in the upcoming timed promotion(s). + * @param targetsList targetsList or {@code null} for none + */ + public TimedPromoteReleaseCondition setTargetsList(java.util.List targetsList) { + this.targetsList = targetsList; + return this; + } + + @Override + public TimedPromoteReleaseCondition set(String fieldName, Object value) { + return (TimedPromoteReleaseCondition) super.set(fieldName, value); + } + + @Override + public TimedPromoteReleaseCondition clone() { + return (TimedPromoteReleaseCondition) super.clone(); + } + +} diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimedPromoteReleaseOperation.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimedPromoteReleaseOperation.java new file mode 100644 index 00000000000..c2b77a12223 --- /dev/null +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimedPromoteReleaseOperation.java @@ -0,0 +1,117 @@ +/* + * 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; + +/** + * Contains the information of an automated timed promote-release operation. + * + *

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 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 @@ com.google.apis google-api-services-clouddeploy - v1-rev20241010-2.0.0 - Cloud Deploy API v1-rev20241010-2.0.0 + v1-rev20241029-2.0.0 + Cloud Deploy API v1-rev20241029-2.0.0 jar 2011 diff --git a/clients/google-api-services-clouddeploy/v1/README.md b/clients/google-api-services-clouddeploy/v1/README.md index 64ed0209525..4ba90c5b309 100644 --- a/clients/google-api-services-clouddeploy/v1/README.md +++ b/clients/google-api-services-clouddeploy/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-clouddeploy - v1-rev20241010-2.0.0 + v1-rev20241029-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-clouddeploy:v1-rev20241010-2.0.0' + implementation 'com.google.apis:google-api-services-clouddeploy:v1-rev20241029-2.0.0' } ```