Skip to content

Commit

Permalink
chore: regenerate clouddeploy client (#23511)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Sep 27, 2024
1 parent 039f0ce commit 8c6e71c
Show file tree
Hide file tree
Showing 25 changed files with 3,389 additions and 6 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-rev20240809-2.0.0</version>
<version>v1-rev20240920-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-rev20240809-2.0.0'
implementation 'com.google.apis:google-api-services-clouddeploy:v1-rev20240920-2.0.0'
}
```

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,40 @@
@SuppressWarnings("javadoc")
public final class AdvanceRolloutRequest extends com.google.api.client.json.GenericJson {

/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> overrideDeployPolicy;

/**
* Required. The phase ID to advance the `Rollout` to.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String phaseId;

/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getOverrideDeployPolicy() {
return overrideDeployPolicy;
}

/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
* @param overrideDeployPolicy overrideDeployPolicy or {@code null} for none
*/
public AdvanceRolloutRequest setOverrideDeployPolicy(java.util.List<java.lang.String> overrideDeployPolicy) {
this.overrideDeployPolicy = overrideDeployPolicy;
return this;
}

/**
* Required. The phase ID to advance the `Rollout` to.
* @return value or {@code null} for none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ public final class ApproveRolloutRequest extends com.google.api.client.json.Gene
@com.google.api.client.util.Key
private java.lang.Boolean approved;

/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> overrideDeployPolicy;

/**
* Required. True = approve; false = reject
* @return value or {@code null} for none
Expand All @@ -53,6 +61,25 @@ public ApproveRolloutRequest setApproved(java.lang.Boolean approved) {
return this;
}

/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getOverrideDeployPolicy() {
return overrideDeployPolicy;
}

/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
* @param overrideDeployPolicy overrideDeployPolicy or {@code null} for none
*/
public ApproveRolloutRequest setOverrideDeployPolicy(java.util.List<java.lang.String> overrideDeployPolicy) {
this.overrideDeployPolicy = overrideDeployPolicy;
return this;
}

@Override
public ApproveRolloutRequest set(String fieldName, Object value) {
return (ApproveRolloutRequest) super.set(fieldName, value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ public final class AutomationRun extends com.google.api.client.json.GenericJson
@com.google.api.client.util.Key
private java.lang.String name;

/**
* Output only. Contains information about what policies prevented the `AutomationRun` to proceed.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private PolicyViolation policyViolation;

/**
* Output only. Promotes a release to a specified 'Target'.
* The value may be {@code null}.
Expand Down Expand Up @@ -277,6 +284,23 @@ public AutomationRun setName(java.lang.String name) {
return this;
}

/**
* Output only. Contains information about what policies prevented the `AutomationRun` to proceed.
* @return value or {@code null} for none
*/
public PolicyViolation getPolicyViolation() {
return policyViolation;
}

/**
* Output only. Contains information about what policies prevented the `AutomationRun` to proceed.
* @param policyViolation policyViolation or {@code null} for none
*/
public AutomationRun setPolicyViolation(PolicyViolation policyViolation) {
this.policyViolation = policyViolation;
return this;
}

/**
* Output only. Promotes a release to a specified 'Target'.
* @return value or {@code null} for none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,33 @@
@SuppressWarnings("javadoc")
public final class CancelRolloutRequest extends com.google.api.client.json.GenericJson {

/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> overrideDeployPolicy;

/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getOverrideDeployPolicy() {
return overrideDeployPolicy;
}

/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
* @param overrideDeployPolicy overrideDeployPolicy or {@code null} for none
*/
public CancelRolloutRequest setOverrideDeployPolicy(java.util.List<java.lang.String> overrideDeployPolicy) {
this.overrideDeployPolicy = overrideDeployPolicy;
return this;
}

@Override
public CancelRolloutRequest set(String fieldName, Object value) {
return (CancelRolloutRequest) super.set(fieldName, value);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/*
* 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 criteria for selecting DeliveryPipelines.
*
* <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 DeliveryPipelineAttribute extends com.google.api.client.json.GenericJson {

/**
* ID of the `DeliveryPipeline`. The value of this field could be one of the following: * The last
* segment of a pipeline name * "*", all delivery pipelines in a location
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String id;

/**
* DeliveryPipeline labels.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map<String, java.lang.String> labels;

/**
* ID of the `DeliveryPipeline`. The value of this field could be one of the following: * The last
* segment of a pipeline name * "*", all delivery pipelines in a location
* @return value or {@code null} for none
*/
public java.lang.String getId() {
return id;
}

/**
* ID of the `DeliveryPipeline`. The value of this field could be one of the following: * The last
* segment of a pipeline name * "*", all delivery pipelines in a location
* @param id id or {@code null} for none
*/
public DeliveryPipelineAttribute setId(java.lang.String id) {
this.id = id;
return this;
}

/**
* DeliveryPipeline labels.
* @return value or {@code null} for none
*/
public java.util.Map<String, java.lang.String> getLabels() {
return labels;
}

/**
* DeliveryPipeline labels.
* @param labels labels or {@code null} for none
*/
public DeliveryPipelineAttribute setLabels(java.util.Map<String, java.lang.String> labels) {
this.labels = labels;
return this;
}

@Override
public DeliveryPipelineAttribute set(String fieldName, Object value) {
return (DeliveryPipelineAttribute) super.set(fieldName, value);
}

@Override
public DeliveryPipelineAttribute clone() {
return (DeliveryPipelineAttribute) super.clone();
}

}
Loading

0 comments on commit 8c6e71c

Please sign in to comment.