Skip to content

Commit

Permalink
chore: regenerate clouddeploy client (#23786)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Nov 5, 2024
1 parent e9f53d0 commit 2e8a7c1
Show file tree
Hide file tree
Showing 10 changed files with 599 additions and 12 deletions.
4 changes: 2 additions & 2 deletions clients/google-api-services-clouddeploy/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-clouddeploy</artifactId>
<version>v1-rev20241010-2.0.0</version>
<version>v1-rev20241029-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
Expand Down Expand Up @@ -411,24 +419,43 @@ 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() {
return targetId;
}

/**
* 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) {
this.targetId = 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
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
*
* <p> 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:
* <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>
* </p>
*
* @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();
}

}
Original file line number Diff line number Diff line change
@@ -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.
*
* <p> 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:
* <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>
* </p>
*
* @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<Targets> 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<Targets> 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<Targets> 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();
}

}
Loading

0 comments on commit 2e8a7c1

Please sign in to comment.