From 4aaf8779a03933648ac95323e718d2e60d6bc235 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sat, 20 Jun 2026 18:43:31 -0700 Subject: [PATCH] chore: regenerate gkehub client --- .../v1/2.0.0/README.md | 4 +- .../google/api/services/gkehub/v1/GKEHub.java | 2122 +++++++++++++++++ .../gkehub/v1/model/AutoUpgradeConfig.java | 108 + .../gkehub/v1/model/CancelRolloutRequest.java | 42 + .../gkehub/v1/model/ClusterSelector.java | 69 + .../ForceCompleteRolloutStageRequest.java | 66 + .../model/ListRolloutSequencesResponse.java | 93 + .../gkehub/v1/model/ListRolloutsResponse.java | 93 + .../gkehub/v1/model/OperationalState.java | 117 + .../gkehub/v1/model/PauseRolloutRequest.java | 42 + .../gkehub/v1/model/ResumeRolloutRequest.java | 90 + .../api/services/gkehub/v1/model/Rollout.java | 495 ++++ .../gkehub/v1/model/RolloutCreationScope.java | 66 + .../v1/model/RolloutMembershipState.java | 123 + .../gkehub/v1/model/RolloutSequence.java | 486 ++++ .../gkehub/v1/model/RolloutStage.java | 216 ++ .../gkehub/v1/model/RolloutTarget.java | 174 ++ .../api/services/gkehub/v1/model/Stage.java | 120 + .../model/UpgradeRolloutSequenceRequest.java | 141 ++ .../gkehub/v1/model/VersionUpgrade.java | 90 + .../v1/2.0.0/pom.xml | 4 +- .../google-api-services-gkehub/v1/README.md | 4 +- .../v1alpha/2.0.0/README.md | 4 +- .../api/services/gkehub/v1alpha/GKEHub.java | 330 ++- .../v1alpha/model/AutoUpgradeConfig.java | 27 + .../gkehub/v1alpha/model/Rollout.java | 48 + .../gkehub/v1alpha/model/RolloutSequence.java | 120 + .../gkehub/v1alpha/model/RolloutStage.java | 54 + .../model/UpgradeRolloutSequenceRequest.java | 141 ++ .../v1alpha/2.0.0/pom.xml | 4 +- .../v1alpha/README.md | 4 +- .../v1beta/2.0.0/README.md | 4 +- .../api/services/gkehub/v1beta/GKEHub.java | 330 ++- .../v1beta/model/AutoUpgradeConfig.java | 27 + .../services/gkehub/v1beta/model/Rollout.java | 48 + .../gkehub/v1beta/model/RolloutSequence.java | 120 + .../gkehub/v1beta/model/RolloutStage.java | 54 + .../model/UpgradeRolloutSequenceRequest.java | 141 ++ .../v1beta/2.0.0/pom.xml | 4 +- .../v1beta/README.md | 4 +- .../v2/2.0.0/README.md | 4 +- .../v2/2.0.0/pom.xml | 4 +- .../google-api-services-gkehub/v2/README.md | 4 +- .../v2alpha/2.0.0/README.md | 4 +- .../v2alpha/2.0.0/pom.xml | 4 +- .../v2alpha/README.md | 4 +- .../v2beta/2.0.0/README.md | 4 +- .../v2beta/2.0.0/pom.xml | 4 +- .../v2beta/README.md | 4 +- 49 files changed, 6217 insertions(+), 48 deletions(-) create mode 100644 clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/AutoUpgradeConfig.java create mode 100644 clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/CancelRolloutRequest.java create mode 100644 clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ClusterSelector.java create mode 100644 clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ForceCompleteRolloutStageRequest.java create mode 100644 clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ListRolloutSequencesResponse.java create mode 100644 clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ListRolloutsResponse.java create mode 100644 clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/OperationalState.java create mode 100644 clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/PauseRolloutRequest.java create mode 100644 clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ResumeRolloutRequest.java create mode 100644 clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/Rollout.java create mode 100644 clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutCreationScope.java create mode 100644 clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutMembershipState.java create mode 100644 clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutSequence.java create mode 100644 clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutStage.java create mode 100644 clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutTarget.java create mode 100644 clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/Stage.java create mode 100644 clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/UpgradeRolloutSequenceRequest.java create mode 100644 clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/VersionUpgrade.java create mode 100644 clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/UpgradeRolloutSequenceRequest.java create mode 100644 clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/UpgradeRolloutSequenceRequest.java diff --git a/clients/google-api-services-gkehub/v1/2.0.0/README.md b/clients/google-api-services-gkehub/v1/2.0.0/README.md index 75775121edf..3ec9fa935bb 100644 --- a/clients/google-api-services-gkehub/v1/2.0.0/README.md +++ b/clients/google-api-services-gkehub/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-gkehub - v1-rev20260529-2.0.0 + v1-rev20260616-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-gkehub:v1-rev20260529-2.0.0' + implementation 'com.google.apis:google-api-services-gkehub:v1-rev20260616-2.0.0' } ``` diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/GKEHub.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/GKEHub.java index ab424e90058..671806f5e24 100644 --- a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/GKEHub.java +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/GKEHub.java @@ -7446,6 +7446,2128 @@ public List set(String parameterName, Object value) { } } + } + /** + * An accessor for creating requests from the RolloutSequences collection. + * + *

The typical use is:

+ *
+       *   {@code GKEHub gkehub = new GKEHub(...);}
+       *   {@code GKEHub.RolloutSequences.List request = gkehub.rolloutSequences().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public RolloutSequences rolloutSequences() { + return new RolloutSequences(); + } + + /** + * The "rolloutSequences" collection of methods. + */ + public class RolloutSequences { + + /** + * Creates a new rollout sequence resource. + * + * Create a request for the method "rolloutSequences.create". + * + * This request holds the parameters needed by the gkehub server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where this rollout sequence will be created. + * projects/{project}/locations/{location} + * @param content the {@link com.google.api.services.gkehub.v1.model.RolloutSequence} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.gkehub.v1.model.RolloutSequence content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends GKEHubRequest { + + private static final String REST_PATH = "v1/{+parent}/rolloutSequences"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a new rollout sequence resource. + * + * Create a request for the method "rolloutSequences.create". + * + * This request holds the parameters needed by the the gkehub server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation.

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

+ * + * @param parent Required. The parent resource where this rollout sequence will be created. + * projects/{project}/locations/{location} + * @param content the {@link com.google.api.services.gkehub.v1.model.RolloutSequence} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.gkehub.v1.model.RolloutSequence content) { + super(GKEHub.this, "POST", REST_PATH, content, com.google.api.services.gkehub.v1.model.Operation.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 Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where this rollout sequence will be created. + * projects/{project}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where this rollout sequence will be created. + projects/{project}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where this rollout sequence will be created. + * projects/{project}/locations/{location} + */ + public Create 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; + } + + /** + * Required. User provided identifier that is used as part of the resource name; must + * conform to RFC-1034 and additionally restrict to lower-cased letters. This comes out + * roughly to: /^a-z+[a-z0-9]$/ + */ + @com.google.api.client.util.Key + private java.lang.String rolloutSequenceId; + + /** Required. User provided identifier that is used as part of the resource name; must conform to + RFC-1034 and additionally restrict to lower-cased letters. This comes out roughly to: + /^a-z+[a-z0-9]$/ + */ + public java.lang.String getRolloutSequenceId() { + return rolloutSequenceId; + } + + /** + * Required. User provided identifier that is used as part of the resource name; must + * conform to RFC-1034 and additionally restrict to lower-cased letters. This comes out + * roughly to: /^a-z+[a-z0-9]$/ + */ + public Create setRolloutSequenceId(java.lang.String rolloutSequenceId) { + this.rolloutSequenceId = rolloutSequenceId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Removes a RolloutSequence. + * + * Create a request for the method "rolloutSequences.delete". + * + * This request holds the parameters needed by the gkehub server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the rollout sequence to delete. + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends GKEHubRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/rolloutSequences/[^/]+$"); + + /** + * Removes a RolloutSequence. + * + * Create a request for the method "rolloutSequences.delete". + * + * This request holds the parameters needed by the the gkehub server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the rollout sequence to delete. + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(GKEHub.this, "DELETE", REST_PATH, null, com.google.api.services.gkehub.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rolloutSequences/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the rollout sequence to delete. + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the rollout sequence to delete. + projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the rollout sequence to delete. + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rolloutSequences/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Retrieve a single rollout sequence. + * + * Create a request for the method "rolloutSequences.get". + * + * This request holds the parameters needed by the gkehub server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the rollout sequence to retrieve. + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends GKEHubRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/rolloutSequences/[^/]+$"); + + /** + * Retrieve a single rollout sequence. + * + * Create a request for the method "rolloutSequences.get". + * + * This request holds the parameters needed by the the gkehub server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the rollout sequence to retrieve. + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(GKEHub.this, "GET", REST_PATH, null, com.google.api.services.gkehub.v1.model.RolloutSequence.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rolloutSequences/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the rollout sequence to retrieve. + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the rollout sequence to retrieve. + projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the rollout sequence to retrieve. + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rolloutSequences/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves the list of all rollout sequences. + * + * Create a request for the method "rolloutSequences.list". + * + * This request holds the parameters needed by the gkehub server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent, which owns this collection of rollout sequences. Format: + * projects/{project}/locations/{location} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends GKEHubRequest { + + private static final String REST_PATH = "v1/{+parent}/rolloutSequences"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Retrieves the list of all rollout sequences. + * + * Create a request for the method "rolloutSequences.list". + * + * This request holds the parameters needed by the the gkehub server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param parent Required. The parent, which owns this collection of rollout sequences. Format: + * projects/{project}/locations/{location} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(GKEHub.this, "GET", REST_PATH, null, com.google.api.services.gkehub.v1.model.ListRolloutSequencesResponse.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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent, which owns this collection of rollout sequences. Format: + * projects/{project}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent, which owns this collection of rollout sequences. Format: + projects/{project}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent, which owns this collection of rollout sequences. Format: + * projects/{project}/locations/{location} + */ + public List 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; + } + + /** + * Optional. Lists Rollout Sequences that match the filter expression, following the + * syntax outlined in https://google.aip.dev/160. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Lists Rollout Sequences that match the filter expression, following the syntax outlined + in https://google.aip.dev/160. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Lists Rollout Sequences that match the filter expression, following the + * syntax outlined in https://google.aip.dev/160. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. The maximum number of rollout sequences to return. The service may return + * fewer than this value. If unspecified, at most 50 rollout sequences will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of rollout sequences to return. The service may return fewer than this + value. If unspecified, at most 50 rollout sequences will be returned. The maximum value is 1000; + values above 1000 will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of rollout sequences to return. The service may return + * fewer than this value. If unspecified, at most 50 rollout sequences will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListRolloutSequences` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListRolloutSequences` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListRolloutSequences` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `ListRolloutSequences` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListRolloutSequences` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListRolloutSequences` must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a rollout sequence. + * + * Create a request for the method "rolloutSequences.patch". + * + * This request holds the parameters needed by the gkehub server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. Name of the rollout sequence in the format of: + * projects/{PROJECT_ID}/locations/global/rolloutSequences/{NAME} + * @param content the {@link com.google.api.services.gkehub.v1.model.RolloutSequence} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.gkehub.v1.model.RolloutSequence content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends GKEHubRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/rolloutSequences/[^/]+$"); + + /** + * Updates a rollout sequence. + * + * Create a request for the method "rolloutSequences.patch". + * + * This request holds the parameters needed by the the gkehub server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

+ * + * @param name Identifier. Name of the rollout sequence in the format of: + * projects/{PROJECT_ID}/locations/global/rolloutSequences/{NAME} + * @param content the {@link com.google.api.services.gkehub.v1.model.RolloutSequence} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.gkehub.v1.model.RolloutSequence content) { + super(GKEHub.this, "PATCH", REST_PATH, content, com.google.api.services.gkehub.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rolloutSequences/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. Name of the rollout sequence in the format of: + * projects/{PROJECT_ID}/locations/global/rolloutSequences/{NAME} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. Name of the rollout sequence in the format of: + projects/{PROJECT_ID}/locations/global/rolloutSequences/{NAME} + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Name of the rollout sequence in the format of: + * projects/{PROJECT_ID}/locations/global/rolloutSequences/{NAME} + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rolloutSequences/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Optional. The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Upgrades a rollout sequence. + * + * Create a request for the method "rolloutSequences.upgrade". + * + * This request holds the parameters needed by the gkehub server. After setting any optional + * parameters, call the {@link Upgrade#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the rollout sequence. Format: + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + * @param content the {@link com.google.api.services.gkehub.v1.model.UpgradeRolloutSequenceRequest} + * @return the request + */ + public Upgrade upgrade(java.lang.String name, com.google.api.services.gkehub.v1.model.UpgradeRolloutSequenceRequest content) throws java.io.IOException { + Upgrade result = new Upgrade(name, content); + initialize(result); + return result; + } + + public class Upgrade extends GKEHubRequest { + + private static final String REST_PATH = "v1/{+name}:upgrade"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/rolloutSequences/[^/]+$"); + + /** + * Upgrades a rollout sequence. + * + * Create a request for the method "rolloutSequences.upgrade". + * + * This request holds the parameters needed by the the gkehub server. After setting any optional + * parameters, call the {@link Upgrade#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the rollout sequence. Format: + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + * @param content the {@link com.google.api.services.gkehub.v1.model.UpgradeRolloutSequenceRequest} + * @since 1.13 + */ + protected Upgrade(java.lang.String name, com.google.api.services.gkehub.v1.model.UpgradeRolloutSequenceRequest content) { + super(GKEHub.this, "POST", REST_PATH, content, com.google.api.services.gkehub.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rolloutSequences/[^/]+$"); + } + } + + @Override + public Upgrade set$Xgafv(java.lang.String $Xgafv) { + return (Upgrade) super.set$Xgafv($Xgafv); + } + + @Override + public Upgrade setAccessToken(java.lang.String accessToken) { + return (Upgrade) super.setAccessToken(accessToken); + } + + @Override + public Upgrade setAlt(java.lang.String alt) { + return (Upgrade) super.setAlt(alt); + } + + @Override + public Upgrade setCallback(java.lang.String callback) { + return (Upgrade) super.setCallback(callback); + } + + @Override + public Upgrade setFields(java.lang.String fields) { + return (Upgrade) super.setFields(fields); + } + + @Override + public Upgrade setKey(java.lang.String key) { + return (Upgrade) super.setKey(key); + } + + @Override + public Upgrade setOauthToken(java.lang.String oauthToken) { + return (Upgrade) super.setOauthToken(oauthToken); + } + + @Override + public Upgrade setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Upgrade) super.setPrettyPrint(prettyPrint); + } + + @Override + public Upgrade setQuotaUser(java.lang.String quotaUser) { + return (Upgrade) super.setQuotaUser(quotaUser); + } + + @Override + public Upgrade setUploadType(java.lang.String uploadType) { + return (Upgrade) super.setUploadType(uploadType); + } + + @Override + public Upgrade setUploadProtocol(java.lang.String uploadProtocol) { + return (Upgrade) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the rollout sequence. Format: + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the rollout sequence. Format: + projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the rollout sequence. Format: + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + */ + public Upgrade setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rolloutSequences/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Upgrade set(String parameterName, Object value) { + return (Upgrade) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Rollouts collection. + * + *

The typical use is:

+ *
+       *   {@code GKEHub gkehub = new GKEHub(...);}
+       *   {@code GKEHub.Rollouts.List request = gkehub.rollouts().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Rollouts rollouts() { + return new Rollouts(); + } + + /** + * The "rollouts" collection of methods. + */ + public class Rollouts { + + /** + * Cancels a Rollout. The rollout will not be started on new clusters, however the rollout running + * on the cluster will be allowed to finish. + * + * Create a request for the method "rollouts.cancel". + * + * This request holds the parameters needed by the gkehub server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the rollout to cancel. + * projects/{project}/locations/{location}/rollouts/{rollout} + * @param content the {@link com.google.api.services.gkehub.v1.model.CancelRolloutRequest} + * @return the request + */ + public Cancel cancel(java.lang.String name, com.google.api.services.gkehub.v1.model.CancelRolloutRequest content) throws java.io.IOException { + Cancel result = new Cancel(name, content); + initialize(result); + return result; + } + + public class Cancel extends GKEHubRequest { + + private static final String REST_PATH = "v1/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + + /** + * Cancels a Rollout. The rollout will not be started on new clusters, however the rollout running + * on the cluster will be allowed to finish. + * + * Create a request for the method "rollouts.cancel". + * + * This request holds the parameters needed by the the gkehub server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the rollout to cancel. + * projects/{project}/locations/{location}/rollouts/{rollout} + * @param content the {@link com.google.api.services.gkehub.v1.model.CancelRolloutRequest} + * @since 1.13 + */ + protected Cancel(java.lang.String name, com.google.api.services.gkehub.v1.model.CancelRolloutRequest content) { + super(GKEHub.this, "POST", REST_PATH, content, com.google.api.services.gkehub.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the rollout to cancel. + * projects/{project}/locations/{location}/rollouts/{rollout} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the rollout to cancel. + projects/{project}/locations/{location}/rollouts/{rollout} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the rollout to cancel. + * projects/{project}/locations/{location}/rollouts/{rollout} + */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Removes a Rollout. + * + * Create a request for the method "rollouts.delete". + * + * This request holds the parameters needed by the gkehub server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the rollout to delete. + * projects/{project}/locations/{location}/rollouts/{rollout} + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends GKEHubRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + + /** + * Removes a Rollout. + * + * Create a request for the method "rollouts.delete". + * + * This request holds the parameters needed by the the gkehub server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the rollout to delete. + * projects/{project}/locations/{location}/rollouts/{rollout} + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(GKEHub.this, "DELETE", REST_PATH, null, com.google.api.services.gkehub.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the rollout to delete. + * projects/{project}/locations/{location}/rollouts/{rollout} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the rollout to delete. + projects/{project}/locations/{location}/rollouts/{rollout} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the rollout to delete. + * projects/{project}/locations/{location}/rollouts/{rollout} + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already + * been completed. The server will guarantee that for at least 60 minutes after the first + * request. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server + * can check if original operation with the same request ID was received, and if so, will + * ignore the second request. This prevents clients from accidentally creating duplicate + * commitments. The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. The + server will guarantee that for at least 60 minutes after the first request. For example, consider a + situation where you make an initial request and the request times out. If you make the request + again with the same request ID, the server can check if original operation with the same request ID + was received, and if so, will ignore the second request. This prevents clients from accidentally + creating duplicate commitments. The request ID must be a valid UUID with the exception that zero + UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already + * been completed. The server will guarantee that for at least 60 minutes after the first + * request. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server + * can check if original operation with the same request ID was received, and if so, will + * ignore the second request. This prevents clients from accidentally creating duplicate + * commitments. The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Force-completes a rollout stage. Only the active stage of an active rollout can be force- + * completed. + * + * Create a request for the method "rollouts.forceCompleteStage". + * + * This request holds the parameters needed by the gkehub server. After setting any optional + * parameters, call the {@link ForceCompleteStage#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the rollout. Format: + * projects/{project}/locations/{location}/rollouts/{rollout} + * @param content the {@link com.google.api.services.gkehub.v1.model.ForceCompleteRolloutStageRequest} + * @return the request + */ + public ForceCompleteStage forceCompleteStage(java.lang.String name, com.google.api.services.gkehub.v1.model.ForceCompleteRolloutStageRequest content) throws java.io.IOException { + ForceCompleteStage result = new ForceCompleteStage(name, content); + initialize(result); + return result; + } + + public class ForceCompleteStage extends GKEHubRequest { + + private static final String REST_PATH = "v1/{+name}:forceCompleteStage"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + + /** + * Force-completes a rollout stage. Only the active stage of an active rollout can be force- + * completed. + * + * Create a request for the method "rollouts.forceCompleteStage". + * + * This request holds the parameters needed by the the gkehub server. After setting any optional + * parameters, call the {@link ForceCompleteStage#execute()} method to invoke the remote + * operation.

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

+ * + * @param name Required. The name of the rollout. Format: + * projects/{project}/locations/{location}/rollouts/{rollout} + * @param content the {@link com.google.api.services.gkehub.v1.model.ForceCompleteRolloutStageRequest} + * @since 1.13 + */ + protected ForceCompleteStage(java.lang.String name, com.google.api.services.gkehub.v1.model.ForceCompleteRolloutStageRequest content) { + super(GKEHub.this, "POST", REST_PATH, content, com.google.api.services.gkehub.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + } + } + + @Override + public ForceCompleteStage set$Xgafv(java.lang.String $Xgafv) { + return (ForceCompleteStage) super.set$Xgafv($Xgafv); + } + + @Override + public ForceCompleteStage setAccessToken(java.lang.String accessToken) { + return (ForceCompleteStage) super.setAccessToken(accessToken); + } + + @Override + public ForceCompleteStage setAlt(java.lang.String alt) { + return (ForceCompleteStage) super.setAlt(alt); + } + + @Override + public ForceCompleteStage setCallback(java.lang.String callback) { + return (ForceCompleteStage) super.setCallback(callback); + } + + @Override + public ForceCompleteStage setFields(java.lang.String fields) { + return (ForceCompleteStage) super.setFields(fields); + } + + @Override + public ForceCompleteStage setKey(java.lang.String key) { + return (ForceCompleteStage) super.setKey(key); + } + + @Override + public ForceCompleteStage setOauthToken(java.lang.String oauthToken) { + return (ForceCompleteStage) super.setOauthToken(oauthToken); + } + + @Override + public ForceCompleteStage setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ForceCompleteStage) super.setPrettyPrint(prettyPrint); + } + + @Override + public ForceCompleteStage setQuotaUser(java.lang.String quotaUser) { + return (ForceCompleteStage) super.setQuotaUser(quotaUser); + } + + @Override + public ForceCompleteStage setUploadType(java.lang.String uploadType) { + return (ForceCompleteStage) super.setUploadType(uploadType); + } + + @Override + public ForceCompleteStage setUploadProtocol(java.lang.String uploadProtocol) { + return (ForceCompleteStage) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the rollout. Format: + * projects/{project}/locations/{location}/rollouts/{rollout} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the rollout. Format: + projects/{project}/locations/{location}/rollouts/{rollout} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the rollout. Format: + * projects/{project}/locations/{location}/rollouts/{rollout} + */ + public ForceCompleteStage setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public ForceCompleteStage set(String parameterName, Object value) { + return (ForceCompleteStage) super.set(parameterName, value); + } + } + /** + * Retrieves a single rollout. + * + * Create a request for the method "rollouts.get". + * + * This request holds the parameters needed by the gkehub server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the rollout to retrieve. + * projects/{project}/locations/{location}/rollouts/{rollout} + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends GKEHubRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + + /** + * Retrieves a single rollout. + * + * Create a request for the method "rollouts.get". + * + * This request holds the parameters needed by the the gkehub server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the rollout to retrieve. + * projects/{project}/locations/{location}/rollouts/{rollout} + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(GKEHub.this, "GET", REST_PATH, null, com.google.api.services.gkehub.v1.model.Rollout.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the rollout to retrieve. + * projects/{project}/locations/{location}/rollouts/{rollout} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the rollout to retrieve. + projects/{project}/locations/{location}/rollouts/{rollout} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the rollout to retrieve. + * projects/{project}/locations/{location}/rollouts/{rollout} + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves the list of all rollouts. + * + * Create a request for the method "rollouts.list". + * + * This request holds the parameters needed by the gkehub server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent, which owns this collection of rollout. Format: + * projects/{project}/locations/{location} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends GKEHubRequest { + + private static final String REST_PATH = "v1/{+parent}/rollouts"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Retrieves the list of all rollouts. + * + * Create a request for the method "rollouts.list". + * + * This request holds the parameters needed by the the gkehub server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param parent Required. The parent, which owns this collection of rollout. Format: + * projects/{project}/locations/{location} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(GKEHub.this, "GET", REST_PATH, null, com.google.api.services.gkehub.v1.model.ListRolloutsResponse.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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent, which owns this collection of rollout. Format: + * projects/{project}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent, which owns this collection of rollout. Format: + projects/{project}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent, which owns this collection of rollout. Format: + * projects/{project}/locations/{location} + */ + public List 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; + } + + /** + * Optional. Lists Rollouts that match the filter expression, following the syntax + * outlined in https://google.aip.dev/160. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Lists Rollouts that match the filter expression, following the syntax outlined in + https://google.aip.dev/160. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Lists Rollouts that match the filter expression, following the syntax + * outlined in https://google.aip.dev/160. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of rollout to return. The service may return fewer than this value. + * If unspecified, at most 50 rollouts will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of rollout to return. The service may return fewer than this value. If + unspecified, at most 50 rollouts will be returned. The maximum value is 1000; values above 1000 + will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of rollout to return. The service may return fewer than this value. + * If unspecified, at most 50 rollouts will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous `ListRollouts` call. Provide this to retrieve + * the subsequent page. When paginating, all other parameters provided to `ListRollouts` + * must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token, received from a previous `ListRollouts` call. Provide this to retrieve the subsequent + page. When paginating, all other parameters provided to `ListRollouts` must match the call that + provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous `ListRollouts` call. Provide this to retrieve + * the subsequent page. When paginating, all other parameters provided to `ListRollouts` + * must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Pauses a running Rollout. The rollout will not be started on new clusters, however the rollout + * running on the cluster will be allowed to finish. + * + * Create a request for the method "rollouts.pause". + * + * This request holds the parameters needed by the gkehub server. After setting any optional + * parameters, call the {@link Pause#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the rollout to pause. + * projects/{project}/locations/{location}/rollouts/{rollout} + * @param content the {@link com.google.api.services.gkehub.v1.model.PauseRolloutRequest} + * @return the request + */ + public Pause pause(java.lang.String name, com.google.api.services.gkehub.v1.model.PauseRolloutRequest content) throws java.io.IOException { + Pause result = new Pause(name, content); + initialize(result); + return result; + } + + public class Pause extends GKEHubRequest { + + private static final String REST_PATH = "v1/{+name}:pause"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + + /** + * Pauses a running Rollout. The rollout will not be started on new clusters, however the rollout + * running on the cluster will be allowed to finish. + * + * Create a request for the method "rollouts.pause". + * + * This request holds the parameters needed by the the gkehub server. After setting any optional + * parameters, call the {@link Pause#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the rollout to pause. + * projects/{project}/locations/{location}/rollouts/{rollout} + * @param content the {@link com.google.api.services.gkehub.v1.model.PauseRolloutRequest} + * @since 1.13 + */ + protected Pause(java.lang.String name, com.google.api.services.gkehub.v1.model.PauseRolloutRequest content) { + super(GKEHub.this, "POST", REST_PATH, content, com.google.api.services.gkehub.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + } + } + + @Override + public Pause set$Xgafv(java.lang.String $Xgafv) { + return (Pause) super.set$Xgafv($Xgafv); + } + + @Override + public Pause setAccessToken(java.lang.String accessToken) { + return (Pause) super.setAccessToken(accessToken); + } + + @Override + public Pause setAlt(java.lang.String alt) { + return (Pause) super.setAlt(alt); + } + + @Override + public Pause setCallback(java.lang.String callback) { + return (Pause) super.setCallback(callback); + } + + @Override + public Pause setFields(java.lang.String fields) { + return (Pause) super.setFields(fields); + } + + @Override + public Pause setKey(java.lang.String key) { + return (Pause) super.setKey(key); + } + + @Override + public Pause setOauthToken(java.lang.String oauthToken) { + return (Pause) super.setOauthToken(oauthToken); + } + + @Override + public Pause setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Pause) super.setPrettyPrint(prettyPrint); + } + + @Override + public Pause setQuotaUser(java.lang.String quotaUser) { + return (Pause) super.setQuotaUser(quotaUser); + } + + @Override + public Pause setUploadType(java.lang.String uploadType) { + return (Pause) super.setUploadType(uploadType); + } + + @Override + public Pause setUploadProtocol(java.lang.String uploadProtocol) { + return (Pause) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the rollout to pause. + * projects/{project}/locations/{location}/rollouts/{rollout} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the rollout to pause. + projects/{project}/locations/{location}/rollouts/{rollout} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the rollout to pause. + * projects/{project}/locations/{location}/rollouts/{rollout} + */ + public Pause setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Pause set(String parameterName, Object value) { + return (Pause) super.set(parameterName, value); + } + } + /** + * Resume a paused Rollout. The rollout will be resumed and allowed to be started on clusters. + * + * Create a request for the method "rollouts.resume". + * + * This request holds the parameters needed by the gkehub server. After setting any optional + * parameters, call the {@link Resume#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the rollout to resume. + * projects/{project}/locations/{location}/rollouts/{rollout} + * @param content the {@link com.google.api.services.gkehub.v1.model.ResumeRolloutRequest} + * @return the request + */ + public Resume resume(java.lang.String name, com.google.api.services.gkehub.v1.model.ResumeRolloutRequest content) throws java.io.IOException { + Resume result = new Resume(name, content); + initialize(result); + return result; + } + + public class Resume extends GKEHubRequest { + + private static final String REST_PATH = "v1/{+name}:resume"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + + /** + * Resume a paused Rollout. The rollout will be resumed and allowed to be started on clusters. + * + * Create a request for the method "rollouts.resume". + * + * This request holds the parameters needed by the the gkehub server. After setting any optional + * parameters, call the {@link Resume#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the rollout to resume. + * projects/{project}/locations/{location}/rollouts/{rollout} + * @param content the {@link com.google.api.services.gkehub.v1.model.ResumeRolloutRequest} + * @since 1.13 + */ + protected Resume(java.lang.String name, com.google.api.services.gkehub.v1.model.ResumeRolloutRequest content) { + super(GKEHub.this, "POST", REST_PATH, content, com.google.api.services.gkehub.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + } + } + + @Override + public Resume set$Xgafv(java.lang.String $Xgafv) { + return (Resume) super.set$Xgafv($Xgafv); + } + + @Override + public Resume setAccessToken(java.lang.String accessToken) { + return (Resume) super.setAccessToken(accessToken); + } + + @Override + public Resume setAlt(java.lang.String alt) { + return (Resume) super.setAlt(alt); + } + + @Override + public Resume setCallback(java.lang.String callback) { + return (Resume) super.setCallback(callback); + } + + @Override + public Resume setFields(java.lang.String fields) { + return (Resume) super.setFields(fields); + } + + @Override + public Resume setKey(java.lang.String key) { + return (Resume) super.setKey(key); + } + + @Override + public Resume setOauthToken(java.lang.String oauthToken) { + return (Resume) super.setOauthToken(oauthToken); + } + + @Override + public Resume setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resume) super.setPrettyPrint(prettyPrint); + } + + @Override + public Resume setQuotaUser(java.lang.String quotaUser) { + return (Resume) super.setQuotaUser(quotaUser); + } + + @Override + public Resume setUploadType(java.lang.String uploadType) { + return (Resume) super.setUploadType(uploadType); + } + + @Override + public Resume setUploadProtocol(java.lang.String uploadProtocol) { + return (Resume) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the rollout to resume. + * projects/{project}/locations/{location}/rollouts/{rollout} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the rollout to resume. + projects/{project}/locations/{location}/rollouts/{rollout} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the rollout to resume. + * projects/{project}/locations/{location}/rollouts/{rollout} + */ + public Resume setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Resume set(String parameterName, Object value) { + return (Resume) super.set(parameterName, value); + } + } + } /** * An accessor for creating requests from the Scopes collection. diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/AutoUpgradeConfig.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/AutoUpgradeConfig.java new file mode 100644 index 00000000000..4298d72d612 --- /dev/null +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/AutoUpgradeConfig.java @@ -0,0 +1,108 @@ +/* + * 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.gkehub.v1.model; + +/** + * Configuration for automatic upgrades. + * + *

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 GKE Hub 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 AutoUpgradeConfig extends com.google.api.client.json.GenericJson { + + /** + * Output only. Mandatory Safety Policies (Always active) which cannot be disabled. The key is the + * policy ID (e.g., "ENFORCED_CONTROL_PLANE_PATCH") and the value is a human-readable description. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map enforcedRollouts; + + /** + * Optional. Specifies the scope of automation for the creation of rollouts. Represents the types + * of rollouts (version upgrades) the sequence should initiate automatically. If this field is + * `unset`, it defaults to all types. If this field is `set` but the internal `upgrade_types` list + * is `empty`, most automatic rollouts are disabled for this sequence. Exceptions are rollouts + * enforcing our security policies (e.g. such as end-of-support and outdated control plane patch + * enforcements). These policy enforcements cannot be disabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RolloutCreationScope rolloutCreationScope; + + /** + * Output only. Mandatory Safety Policies (Always active) which cannot be disabled. The key is the + * policy ID (e.g., "ENFORCED_CONTROL_PLANE_PATCH") and the value is a human-readable description. + * @return value or {@code null} for none + */ + public java.util.Map getEnforcedRollouts() { + return enforcedRollouts; + } + + /** + * Output only. Mandatory Safety Policies (Always active) which cannot be disabled. The key is the + * policy ID (e.g., "ENFORCED_CONTROL_PLANE_PATCH") and the value is a human-readable description. + * @param enforcedRollouts enforcedRollouts or {@code null} for none + */ + public AutoUpgradeConfig setEnforcedRollouts(java.util.Map enforcedRollouts) { + this.enforcedRollouts = enforcedRollouts; + return this; + } + + /** + * Optional. Specifies the scope of automation for the creation of rollouts. Represents the types + * of rollouts (version upgrades) the sequence should initiate automatically. If this field is + * `unset`, it defaults to all types. If this field is `set` but the internal `upgrade_types` list + * is `empty`, most automatic rollouts are disabled for this sequence. Exceptions are rollouts + * enforcing our security policies (e.g. such as end-of-support and outdated control plane patch + * enforcements). These policy enforcements cannot be disabled. + * @return value or {@code null} for none + */ + public RolloutCreationScope getRolloutCreationScope() { + return rolloutCreationScope; + } + + /** + * Optional. Specifies the scope of automation for the creation of rollouts. Represents the types + * of rollouts (version upgrades) the sequence should initiate automatically. If this field is + * `unset`, it defaults to all types. If this field is `set` but the internal `upgrade_types` list + * is `empty`, most automatic rollouts are disabled for this sequence. Exceptions are rollouts + * enforcing our security policies (e.g. such as end-of-support and outdated control plane patch + * enforcements). These policy enforcements cannot be disabled. + * @param rolloutCreationScope rolloutCreationScope or {@code null} for none + */ + public AutoUpgradeConfig setRolloutCreationScope(RolloutCreationScope rolloutCreationScope) { + this.rolloutCreationScope = rolloutCreationScope; + return this; + } + + @Override + public AutoUpgradeConfig set(String fieldName, Object value) { + return (AutoUpgradeConfig) super.set(fieldName, value); + } + + @Override + public AutoUpgradeConfig clone() { + return (AutoUpgradeConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/CancelRolloutRequest.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/CancelRolloutRequest.java new file mode 100644 index 00000000000..ab271ef2c8a --- /dev/null +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/CancelRolloutRequest.java @@ -0,0 +1,42 @@ +/* + * 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.gkehub.v1.model; + +/** + * Request message for cancelling a rollout. + * + *

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 GKE Hub 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 CancelRolloutRequest extends com.google.api.client.json.GenericJson { + + @Override + public CancelRolloutRequest set(String fieldName, Object value) { + return (CancelRolloutRequest) super.set(fieldName, value); + } + + @Override + public CancelRolloutRequest clone() { + return (CancelRolloutRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ClusterSelector.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ClusterSelector.java new file mode 100644 index 00000000000..2309dcf54a5 --- /dev/null +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ClusterSelector.java @@ -0,0 +1,69 @@ +/* + * 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.gkehub.v1.model; + +/** + * Selector for clusters. + * + *

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 GKE Hub 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 ClusterSelector extends com.google.api.client.json.GenericJson { + + /** + * Required. A valid CEL (Common Expression Language) expression which evaluates + * `resource.labels`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelSelector; + + /** + * Required. A valid CEL (Common Expression Language) expression which evaluates + * `resource.labels`. + * @return value or {@code null} for none + */ + public java.lang.String getLabelSelector() { + return labelSelector; + } + + /** + * Required. A valid CEL (Common Expression Language) expression which evaluates + * `resource.labels`. + * @param labelSelector labelSelector or {@code null} for none + */ + public ClusterSelector setLabelSelector(java.lang.String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + @Override + public ClusterSelector set(String fieldName, Object value) { + return (ClusterSelector) super.set(fieldName, value); + } + + @Override + public ClusterSelector clone() { + return (ClusterSelector) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ForceCompleteRolloutStageRequest.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ForceCompleteRolloutStageRequest.java new file mode 100644 index 00000000000..95d4e03c1c1 --- /dev/null +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ForceCompleteRolloutStageRequest.java @@ -0,0 +1,66 @@ +/* + * 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.gkehub.v1.model; + +/** + * Request message for force-completing a rollout stage. + * + *

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 GKE Hub 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 ForceCompleteRolloutStageRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The stage number to force-complete. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer stageNumber; + + /** + * Required. The stage number to force-complete. + * @return value or {@code null} for none + */ + public java.lang.Integer getStageNumber() { + return stageNumber; + } + + /** + * Required. The stage number to force-complete. + * @param stageNumber stageNumber or {@code null} for none + */ + public ForceCompleteRolloutStageRequest setStageNumber(java.lang.Integer stageNumber) { + this.stageNumber = stageNumber; + return this; + } + + @Override + public ForceCompleteRolloutStageRequest set(String fieldName, Object value) { + return (ForceCompleteRolloutStageRequest) super.set(fieldName, value); + } + + @Override + public ForceCompleteRolloutStageRequest clone() { + return (ForceCompleteRolloutStageRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ListRolloutSequencesResponse.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ListRolloutSequencesResponse.java new file mode 100644 index 00000000000..592b81ef98b --- /dev/null +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ListRolloutSequencesResponse.java @@ -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.gkehub.v1.model; + +/** + * Response message for listing rollout sequences. + * + *

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 GKE Hub 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 ListRolloutSequencesResponse extends com.google.api.client.json.GenericJson { + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The rollout sequences from the specified parent resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List rolloutSequences; + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListRolloutSequencesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The rollout sequences from the specified parent resource. + * @return value or {@code null} for none + */ + public java.util.List getRolloutSequences() { + return rolloutSequences; + } + + /** + * The rollout sequences from the specified parent resource. + * @param rolloutSequences rolloutSequences or {@code null} for none + */ + public ListRolloutSequencesResponse setRolloutSequences(java.util.List rolloutSequences) { + this.rolloutSequences = rolloutSequences; + return this; + } + + @Override + public ListRolloutSequencesResponse set(String fieldName, Object value) { + return (ListRolloutSequencesResponse) super.set(fieldName, value); + } + + @Override + public ListRolloutSequencesResponse clone() { + return (ListRolloutSequencesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ListRolloutsResponse.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ListRolloutsResponse.java new file mode 100644 index 00000000000..cf192812437 --- /dev/null +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ListRolloutsResponse.java @@ -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.gkehub.v1.model; + +/** + * Response message for listing rollouts. + * + *

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 GKE Hub 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 ListRolloutsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The rollouts from the specified parent resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List rollouts; + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListRolloutsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The rollouts from the specified parent resource. + * @return value or {@code null} for none + */ + public java.util.List getRollouts() { + return rollouts; + } + + /** + * The rollouts from the specified parent resource. + * @param rollouts rollouts or {@code null} for none + */ + public ListRolloutsResponse setRollouts(java.util.List rollouts) { + this.rollouts = rollouts; + return this; + } + + @Override + public ListRolloutsResponse set(String fieldName, Object value) { + return (ListRolloutsResponse) super.set(fieldName, value); + } + + @Override + public ListRolloutsResponse clone() { + return (ListRolloutsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/OperationalState.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/OperationalState.java new file mode 100644 index 00000000000..2c95456fb4c --- /dev/null +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/OperationalState.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.gkehub.v1.model; + +/** + * Operational state of the Rollout Sequence. + * + *

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 GKE Hub 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 OperationalState extends com.google.api.client.json.GenericJson { + + /** + * Output only. Reasons for the Rollout Sequence state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List reasons; + + /** + * Output only. State of the Rollout Sequence. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. The timestamp at which the operational state was last changed. Used to track how + * long it has been in the current state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String stateChangeTime; + + /** + * Output only. Reasons for the Rollout Sequence state. + * @return value or {@code null} for none + */ + public java.util.List getReasons() { + return reasons; + } + + /** + * Output only. Reasons for the Rollout Sequence state. + * @param reasons reasons or {@code null} for none + */ + public OperationalState setReasons(java.util.List reasons) { + this.reasons = reasons; + return this; + } + + /** + * Output only. State of the Rollout Sequence. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. State of the Rollout Sequence. + * @param state state or {@code null} for none + */ + public OperationalState setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. The timestamp at which the operational state was last changed. Used to track how + * long it has been in the current state. + * @return value or {@code null} for none + */ + public String getStateChangeTime() { + return stateChangeTime; + } + + /** + * Output only. The timestamp at which the operational state was last changed. Used to track how + * long it has been in the current state. + * @param stateChangeTime stateChangeTime or {@code null} for none + */ + public OperationalState setStateChangeTime(String stateChangeTime) { + this.stateChangeTime = stateChangeTime; + return this; + } + + @Override + public OperationalState set(String fieldName, Object value) { + return (OperationalState) super.set(fieldName, value); + } + + @Override + public OperationalState clone() { + return (OperationalState) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/PauseRolloutRequest.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/PauseRolloutRequest.java new file mode 100644 index 00000000000..a1142d09380 --- /dev/null +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/PauseRolloutRequest.java @@ -0,0 +1,42 @@ +/* + * 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.gkehub.v1.model; + +/** + * Request message for pausing a rollout. + * + *

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 GKE Hub 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 PauseRolloutRequest extends com.google.api.client.json.GenericJson { + + @Override + public PauseRolloutRequest set(String fieldName, Object value) { + return (PauseRolloutRequest) super.set(fieldName, value); + } + + @Override + public PauseRolloutRequest clone() { + return (PauseRolloutRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ResumeRolloutRequest.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ResumeRolloutRequest.java new file mode 100644 index 00000000000..fa3e319936c --- /dev/null +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/ResumeRolloutRequest.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.gkehub.v1.model; + +/** + * Request message for resuming a rollout. + * + *

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 GKE Hub 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 ResumeRolloutRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The duration to offset the Rollout schedule by. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String scheduleOffset; + + /** + * Optional. If set, resume rollout will be executed in dry-run mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** + * Optional. The duration to offset the Rollout schedule by. + * @return value or {@code null} for none + */ + public String getScheduleOffset() { + return scheduleOffset; + } + + /** + * Optional. The duration to offset the Rollout schedule by. + * @param scheduleOffset scheduleOffset or {@code null} for none + */ + public ResumeRolloutRequest setScheduleOffset(String scheduleOffset) { + this.scheduleOffset = scheduleOffset; + return this; + } + + /** + * Optional. If set, resume rollout will be executed in dry-run mode. + * @return value or {@code null} for none + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. If set, resume rollout will be executed in dry-run mode. + * @param validateOnly validateOnly or {@code null} for none + */ + public ResumeRolloutRequest setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public ResumeRolloutRequest set(String fieldName, Object value) { + return (ResumeRolloutRequest) super.set(fieldName, value); + } + + @Override + public ResumeRolloutRequest clone() { + return (ResumeRolloutRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/Rollout.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/Rollout.java new file mode 100644 index 00000000000..6cfd61a572e --- /dev/null +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/Rollout.java @@ -0,0 +1,495 @@ +/* + * 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.gkehub.v1.model; + +/** + * Rollout contains the Rollout metadata and configuration. Next ID: 28 + * + *

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 GKE Hub 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 Rollout extends com.google.api.client.json.GenericJson { + + /** + * Output only. The timestamp at which the Rollout was completed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String completeTime; + + /** + * Output only. The timestamp at which the Rollout was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The timestamp at the Rollout was deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String deleteTime; + + /** + * Optional. Human readable display name of the Rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. etag of the Rollout Ex. abc1234 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Output only. The intent of the rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String intent; + + /** + * Optional. Labels for this Rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Output only. States of upgrading control plane or node pool targets of a single cluster (GKE + * Hub membership) that's part of this Rollout. The key is the membership name of the cluster. The + * value is the state of the cluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map membershipStates; + + /** + * Identifier. The full, unique resource name of this Rollout in the format of + * `projects/{project}/locations/global/rollouts/{rollout}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Immutable. The full, unique resource name of the rollout sequence that initiatied + * this Rollout. In the format of + * `projects/{project}/locations/global/rolloutSequences/{rollout_sequence}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rolloutSequence; + + /** + * Output only. The stages of the Rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List stages; + + /** + * Output only. State specifies various states of the Rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. A human-readable description explaining the reason for the current state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stateReason; + + /** + * Output only. StateReasonType specifies the reason type of the Rollout state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stateReasonType; + + /** + * Output only. The trigger of the rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String trigger; + + /** + * Output only. Google-generated UUID for this resource. This is unique across all Rollout + * resources. If a Rollout resource is deleted and another resource with the same name is created, + * it gets a different uid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uid; + + /** + * Output only. The timestamp at which the Rollout was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. Config for version upgrade of clusters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VersionUpgrade versionUpgrade; + + /** + * Output only. The timestamp at which the Rollout was completed. + * @return value or {@code null} for none + */ + public String getCompleteTime() { + return completeTime; + } + + /** + * Output only. The timestamp at which the Rollout was completed. + * @param completeTime completeTime or {@code null} for none + */ + public Rollout setCompleteTime(String completeTime) { + this.completeTime = completeTime; + return this; + } + + /** + * Output only. The timestamp at which the Rollout was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The timestamp at which the Rollout was created. + * @param createTime createTime or {@code null} for none + */ + public Rollout setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The timestamp at the Rollout was deleted. + * @return value or {@code null} for none + */ + public String getDeleteTime() { + return deleteTime; + } + + /** + * Output only. The timestamp at the Rollout was deleted. + * @param deleteTime deleteTime or {@code null} for none + */ + public Rollout setDeleteTime(String deleteTime) { + this.deleteTime = deleteTime; + return this; + } + + /** + * Optional. Human readable display name of the Rollout. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. Human readable display name of the Rollout. + * @param displayName displayName or {@code null} for none + */ + public Rollout setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. etag of the Rollout Ex. abc1234 + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. etag of the Rollout Ex. abc1234 + * @param etag etag or {@code null} for none + */ + public Rollout setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Output only. The intent of the rollout. + * @return value or {@code null} for none + */ + public java.lang.String getIntent() { + return intent; + } + + /** + * Output only. The intent of the rollout. + * @param intent intent or {@code null} for none + */ + public Rollout setIntent(java.lang.String intent) { + this.intent = intent; + return this; + } + + /** + * Optional. Labels for this Rollout. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. Labels for this Rollout. + * @param labels labels or {@code null} for none + */ + public Rollout setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Output only. States of upgrading control plane or node pool targets of a single cluster (GKE + * Hub membership) that's part of this Rollout. The key is the membership name of the cluster. The + * value is the state of the cluster. + * @return value or {@code null} for none + */ + public java.util.Map getMembershipStates() { + return membershipStates; + } + + /** + * Output only. States of upgrading control plane or node pool targets of a single cluster (GKE + * Hub membership) that's part of this Rollout. The key is the membership name of the cluster. The + * value is the state of the cluster. + * @param membershipStates membershipStates or {@code null} for none + */ + public Rollout setMembershipStates(java.util.Map membershipStates) { + this.membershipStates = membershipStates; + return this; + } + + /** + * Identifier. The full, unique resource name of this Rollout in the format of + * `projects/{project}/locations/global/rollouts/{rollout}`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The full, unique resource name of this Rollout in the format of + * `projects/{project}/locations/global/rollouts/{rollout}`. + * @param name name or {@code null} for none + */ + public Rollout setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. Immutable. The full, unique resource name of the rollout sequence that initiatied + * this Rollout. In the format of + * `projects/{project}/locations/global/rolloutSequences/{rollout_sequence}`. + * @return value or {@code null} for none + */ + public java.lang.String getRolloutSequence() { + return rolloutSequence; + } + + /** + * Optional. Immutable. The full, unique resource name of the rollout sequence that initiatied + * this Rollout. In the format of + * `projects/{project}/locations/global/rolloutSequences/{rollout_sequence}`. + * @param rolloutSequence rolloutSequence or {@code null} for none + */ + public Rollout setRolloutSequence(java.lang.String rolloutSequence) { + this.rolloutSequence = rolloutSequence; + return this; + } + + /** + * Output only. The stages of the Rollout. + * @return value or {@code null} for none + */ + public java.util.List getStages() { + return stages; + } + + /** + * Output only. The stages of the Rollout. + * @param stages stages or {@code null} for none + */ + public Rollout setStages(java.util.List stages) { + this.stages = stages; + return this; + } + + /** + * Output only. State specifies various states of the Rollout. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. State specifies various states of the Rollout. + * @param state state or {@code null} for none + */ + public Rollout setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. A human-readable description explaining the reason for the current state. + * @return value or {@code null} for none + */ + public java.lang.String getStateReason() { + return stateReason; + } + + /** + * Output only. A human-readable description explaining the reason for the current state. + * @param stateReason stateReason or {@code null} for none + */ + public Rollout setStateReason(java.lang.String stateReason) { + this.stateReason = stateReason; + return this; + } + + /** + * Output only. StateReasonType specifies the reason type of the Rollout state. + * @return value or {@code null} for none + */ + public java.lang.String getStateReasonType() { + return stateReasonType; + } + + /** + * Output only. StateReasonType specifies the reason type of the Rollout state. + * @param stateReasonType stateReasonType or {@code null} for none + */ + public Rollout setStateReasonType(java.lang.String stateReasonType) { + this.stateReasonType = stateReasonType; + return this; + } + + /** + * Output only. The trigger of the rollout. + * @return value or {@code null} for none + */ + public java.lang.String getTrigger() { + return trigger; + } + + /** + * Output only. The trigger of the rollout. + * @param trigger trigger or {@code null} for none + */ + public Rollout setTrigger(java.lang.String trigger) { + this.trigger = trigger; + return this; + } + + /** + * Output only. Google-generated UUID for this resource. This is unique across all Rollout + * resources. If a Rollout resource is deleted and another resource with the same name is created, + * it gets a different uid. + * @return value or {@code null} for none + */ + public java.lang.String getUid() { + return uid; + } + + /** + * Output only. Google-generated UUID for this resource. This is unique across all Rollout + * resources. If a Rollout resource is deleted and another resource with the same name is created, + * it gets a different uid. + * @param uid uid or {@code null} for none + */ + public Rollout setUid(java.lang.String uid) { + this.uid = uid; + return this; + } + + /** + * Output only. The timestamp at which the Rollout was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The timestamp at which the Rollout was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public Rollout setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * Optional. Config for version upgrade of clusters. + * @return value or {@code null} for none + */ + public VersionUpgrade getVersionUpgrade() { + return versionUpgrade; + } + + /** + * Optional. Config for version upgrade of clusters. + * @param versionUpgrade versionUpgrade or {@code null} for none + */ + public Rollout setVersionUpgrade(VersionUpgrade versionUpgrade) { + this.versionUpgrade = versionUpgrade; + return this; + } + + @Override + public Rollout set(String fieldName, Object value) { + return (Rollout) super.set(fieldName, value); + } + + @Override + public Rollout clone() { + return (Rollout) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutCreationScope.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutCreationScope.java new file mode 100644 index 00000000000..cf3b7578420 --- /dev/null +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutCreationScope.java @@ -0,0 +1,66 @@ +/* + * 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.gkehub.v1.model; + +/** + * The scope for automatic rollout creation. + * + *

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 GKE Hub 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 RolloutCreationScope extends com.google.api.client.json.GenericJson { + + /** + * Optional. The list of enabled upgrade types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List upgradeTypes; + + /** + * Optional. The list of enabled upgrade types. + * @return value or {@code null} for none + */ + public java.util.List getUpgradeTypes() { + return upgradeTypes; + } + + /** + * Optional. The list of enabled upgrade types. + * @param upgradeTypes upgradeTypes or {@code null} for none + */ + public RolloutCreationScope setUpgradeTypes(java.util.List upgradeTypes) { + this.upgradeTypes = upgradeTypes; + return this; + } + + @Override + public RolloutCreationScope set(String fieldName, Object value) { + return (RolloutCreationScope) super.set(fieldName, value); + } + + @Override + public RolloutCreationScope clone() { + return (RolloutCreationScope) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutMembershipState.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutMembershipState.java new file mode 100644 index 00000000000..8fde6baa1fc --- /dev/null +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutMembershipState.java @@ -0,0 +1,123 @@ +/* + * 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.gkehub.v1.model; + +/** + * Metadata about single cluster (GKE Hub membership) that's part of this Rollout. + * + *

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 GKE Hub 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 RolloutMembershipState extends com.google.api.client.json.GenericJson { + + /** + * Optional. Output only. The time this status and any related Rollout-specific details for the + * membership were updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastUpdateTime; + + /** + * Output only. The stage assignment of this cluster in this rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer stageAssignment; + + /** + * Output only. The targets of the rollout - clusters or node pools that are being upgraded. All + * targets belongs to the same cluster, identified by the membership name (key of + * membership_states map). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targets; + + /** + * Optional. Output only. The time this status and any related Rollout-specific details for the + * membership were updated. + * @return value or {@code null} for none + */ + public String getLastUpdateTime() { + return lastUpdateTime; + } + + /** + * Optional. Output only. The time this status and any related Rollout-specific details for the + * membership were updated. + * @param lastUpdateTime lastUpdateTime or {@code null} for none + */ + public RolloutMembershipState setLastUpdateTime(String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + return this; + } + + /** + * Output only. The stage assignment of this cluster in this rollout. + * @return value or {@code null} for none + */ + public java.lang.Integer getStageAssignment() { + return stageAssignment; + } + + /** + * Output only. The stage assignment of this cluster in this rollout. + * @param stageAssignment stageAssignment or {@code null} for none + */ + public RolloutMembershipState setStageAssignment(java.lang.Integer stageAssignment) { + this.stageAssignment = stageAssignment; + return this; + } + + /** + * Output only. The targets of the rollout - clusters or node pools that are being upgraded. All + * targets belongs to the same cluster, identified by the membership name (key of + * membership_states map). + * @return value or {@code null} for none + */ + public java.util.List getTargets() { + return targets; + } + + /** + * Output only. The targets of the rollout - clusters or node pools that are being upgraded. All + * targets belongs to the same cluster, identified by the membership name (key of + * membership_states map). + * @param targets targets or {@code null} for none + */ + public RolloutMembershipState setTargets(java.util.List targets) { + this.targets = targets; + return this; + } + + @Override + public RolloutMembershipState set(String fieldName, Object value) { + return (RolloutMembershipState) super.set(fieldName, value); + } + + @Override + public RolloutMembershipState clone() { + return (RolloutMembershipState) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutSequence.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutSequence.java new file mode 100644 index 00000000000..9aef21de9ed --- /dev/null +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutSequence.java @@ -0,0 +1,486 @@ +/* + * 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.gkehub.v1.model; + +/** + * RolloutSequence defines the desired order of upgrades. Next ID: 20 + * + *

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 GKE Hub 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 RolloutSequence extends com.google.api.client.json.GenericJson { + + /** + * Optional. Configuration for automatic upgrades. If this message is `unset`, the system applies + * default behavior. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AutoUpgradeConfig autoUpgradeConfig; + + /** + * Output only. The computed release channel used for the Rollout Sequence. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String computedReleaseChannel; + + /** + * Output only. The timestamp at which the Rollout Sequence was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The timestamp at the Rollout Sequence was deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String deleteTime; + + /** + * Optional. Human readable display name of the Rollout Sequence. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. The resolved auto-upgrade options which are in effect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AutoUpgradeConfig effectiveAutoUpgradeConfig; + + /** + * Output only. etag of the Rollout Sequence Ex. abc1234 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. Selector for clusters to exclude from the Rollout Sequence. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ClusterSelector ignoredClustersSelector; + + /** + * Optional. Labels for this Rollout Sequence. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Output only. The last qualified control plane version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastQualifiedControlPlaneVersion; + + /** + * Output only. The last qualified node version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastQualifiedNodeVersion; + + /** + * Identifier. Name of the rollout sequence in the format of: + * projects/{PROJECT_ID}/locations/global/rolloutSequences/{NAME} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Operational state of the Rollout Sequence. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OperationalState operationalState; + + /** + * Required. Ordered list of stages that constitutes this Rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List stages; + + /** + * Output only. The target control plane version of the Rollout Sequence. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetControlPlaneVersion; + + /** + * Output only. The target node version of the Rollout Sequence. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetNodeVersion; + + /** + * Output only. Google-generated UUID for this resource. This is unique across all Rollout + * Sequence resources. If a Rollout Sequence resource is deleted and another resource with the + * same name is created, it gets a different uid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uid; + + /** + * Output only. The timestamp at which the Rollout Sequence was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. Configuration for automatic upgrades. If this message is `unset`, the system applies + * default behavior. + * @return value or {@code null} for none + */ + public AutoUpgradeConfig getAutoUpgradeConfig() { + return autoUpgradeConfig; + } + + /** + * Optional. Configuration for automatic upgrades. If this message is `unset`, the system applies + * default behavior. + * @param autoUpgradeConfig autoUpgradeConfig or {@code null} for none + */ + public RolloutSequence setAutoUpgradeConfig(AutoUpgradeConfig autoUpgradeConfig) { + this.autoUpgradeConfig = autoUpgradeConfig; + return this; + } + + /** + * Output only. The computed release channel used for the Rollout Sequence. + * @return value or {@code null} for none + */ + public java.lang.String getComputedReleaseChannel() { + return computedReleaseChannel; + } + + /** + * Output only. The computed release channel used for the Rollout Sequence. + * @param computedReleaseChannel computedReleaseChannel or {@code null} for none + */ + public RolloutSequence setComputedReleaseChannel(java.lang.String computedReleaseChannel) { + this.computedReleaseChannel = computedReleaseChannel; + return this; + } + + /** + * Output only. The timestamp at which the Rollout Sequence was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The timestamp at which the Rollout Sequence was created. + * @param createTime createTime or {@code null} for none + */ + public RolloutSequence setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The timestamp at the Rollout Sequence was deleted. + * @return value or {@code null} for none + */ + public String getDeleteTime() { + return deleteTime; + } + + /** + * Output only. The timestamp at the Rollout Sequence was deleted. + * @param deleteTime deleteTime or {@code null} for none + */ + public RolloutSequence setDeleteTime(String deleteTime) { + this.deleteTime = deleteTime; + return this; + } + + /** + * Optional. Human readable display name of the Rollout Sequence. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. Human readable display name of the Rollout Sequence. + * @param displayName displayName or {@code null} for none + */ + public RolloutSequence setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. The resolved auto-upgrade options which are in effect. + * @return value or {@code null} for none + */ + public AutoUpgradeConfig getEffectiveAutoUpgradeConfig() { + return effectiveAutoUpgradeConfig; + } + + /** + * Output only. The resolved auto-upgrade options which are in effect. + * @param effectiveAutoUpgradeConfig effectiveAutoUpgradeConfig or {@code null} for none + */ + public RolloutSequence setEffectiveAutoUpgradeConfig(AutoUpgradeConfig effectiveAutoUpgradeConfig) { + this.effectiveAutoUpgradeConfig = effectiveAutoUpgradeConfig; + return this; + } + + /** + * Output only. etag of the Rollout Sequence Ex. abc1234 + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. etag of the Rollout Sequence Ex. abc1234 + * @param etag etag or {@code null} for none + */ + public RolloutSequence setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Selector for clusters to exclude from the Rollout Sequence. + * @return value or {@code null} for none + */ + public ClusterSelector getIgnoredClustersSelector() { + return ignoredClustersSelector; + } + + /** + * Optional. Selector for clusters to exclude from the Rollout Sequence. + * @param ignoredClustersSelector ignoredClustersSelector or {@code null} for none + */ + public RolloutSequence setIgnoredClustersSelector(ClusterSelector ignoredClustersSelector) { + this.ignoredClustersSelector = ignoredClustersSelector; + return this; + } + + /** + * Optional. Labels for this Rollout Sequence. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. Labels for this Rollout Sequence. + * @param labels labels or {@code null} for none + */ + public RolloutSequence setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Output only. The last qualified control plane version. + * @return value or {@code null} for none + */ + public java.lang.String getLastQualifiedControlPlaneVersion() { + return lastQualifiedControlPlaneVersion; + } + + /** + * Output only. The last qualified control plane version. + * @param lastQualifiedControlPlaneVersion lastQualifiedControlPlaneVersion or {@code null} for none + */ + public RolloutSequence setLastQualifiedControlPlaneVersion(java.lang.String lastQualifiedControlPlaneVersion) { + this.lastQualifiedControlPlaneVersion = lastQualifiedControlPlaneVersion; + return this; + } + + /** + * Output only. The last qualified node version. + * @return value or {@code null} for none + */ + public java.lang.String getLastQualifiedNodeVersion() { + return lastQualifiedNodeVersion; + } + + /** + * Output only. The last qualified node version. + * @param lastQualifiedNodeVersion lastQualifiedNodeVersion or {@code null} for none + */ + public RolloutSequence setLastQualifiedNodeVersion(java.lang.String lastQualifiedNodeVersion) { + this.lastQualifiedNodeVersion = lastQualifiedNodeVersion; + return this; + } + + /** + * Identifier. Name of the rollout sequence in the format of: + * projects/{PROJECT_ID}/locations/global/rolloutSequences/{NAME} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Name of the rollout sequence in the format of: + * projects/{PROJECT_ID}/locations/global/rolloutSequences/{NAME} + * @param name name or {@code null} for none + */ + public RolloutSequence setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Operational state of the Rollout Sequence. + * @return value or {@code null} for none + */ + public OperationalState getOperationalState() { + return operationalState; + } + + /** + * Output only. Operational state of the Rollout Sequence. + * @param operationalState operationalState or {@code null} for none + */ + public RolloutSequence setOperationalState(OperationalState operationalState) { + this.operationalState = operationalState; + return this; + } + + /** + * Required. Ordered list of stages that constitutes this Rollout. + * @return value or {@code null} for none + */ + public java.util.List getStages() { + return stages; + } + + /** + * Required. Ordered list of stages that constitutes this Rollout. + * @param stages stages or {@code null} for none + */ + public RolloutSequence setStages(java.util.List stages) { + this.stages = stages; + return this; + } + + /** + * Output only. The target control plane version of the Rollout Sequence. + * @return value or {@code null} for none + */ + public java.lang.String getTargetControlPlaneVersion() { + return targetControlPlaneVersion; + } + + /** + * Output only. The target control plane version of the Rollout Sequence. + * @param targetControlPlaneVersion targetControlPlaneVersion or {@code null} for none + */ + public RolloutSequence setTargetControlPlaneVersion(java.lang.String targetControlPlaneVersion) { + this.targetControlPlaneVersion = targetControlPlaneVersion; + return this; + } + + /** + * Output only. The target node version of the Rollout Sequence. + * @return value or {@code null} for none + */ + public java.lang.String getTargetNodeVersion() { + return targetNodeVersion; + } + + /** + * Output only. The target node version of the Rollout Sequence. + * @param targetNodeVersion targetNodeVersion or {@code null} for none + */ + public RolloutSequence setTargetNodeVersion(java.lang.String targetNodeVersion) { + this.targetNodeVersion = targetNodeVersion; + return this; + } + + /** + * Output only. Google-generated UUID for this resource. This is unique across all Rollout + * Sequence resources. If a Rollout Sequence resource is deleted and another resource with the + * same name is created, it gets a different uid. + * @return value or {@code null} for none + */ + public java.lang.String getUid() { + return uid; + } + + /** + * Output only. Google-generated UUID for this resource. This is unique across all Rollout + * Sequence resources. If a Rollout Sequence resource is deleted and another resource with the + * same name is created, it gets a different uid. + * @param uid uid or {@code null} for none + */ + public RolloutSequence setUid(java.lang.String uid) { + this.uid = uid; + return this; + } + + /** + * Output only. The timestamp at which the Rollout Sequence was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The timestamp at which the Rollout Sequence was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public RolloutSequence setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public RolloutSequence set(String fieldName, Object value) { + return (RolloutSequence) super.set(fieldName, value); + } + + @Override + public RolloutSequence clone() { + return (RolloutSequence) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutStage.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutStage.java new file mode 100644 index 00000000000..44f6d2ff6dc --- /dev/null +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutStage.java @@ -0,0 +1,216 @@ +/* + * 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.gkehub.v1.model; + +/** + * Stage represents a single stage in the Rollout. + * + *

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 GKE Hub 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 RolloutStage extends com.google.api.client.json.GenericJson { + + /** + * Output only. The selector from the sequence that was used to create this stage. Example CEL + * expression: resource.labels.canary == 'true' + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ClusterSelector clusterSelector; + + /** + * Optional. Output only. The time at which the stage ended. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. The fleet projects from the sequence that was used to create this stage. Expected + * format: projects/{project_number} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List fleetProjects; + + /** + * Optional. Duration to soak after this stage before starting the next stage. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String soakDuration; + + /** + * Output only. The stage number to which this status applies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer stageNumber; + + /** + * Optional. Output only. The time at which the stage started. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. The state of the stage. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. The selector from the sequence that was used to create this stage. Example CEL + * expression: resource.labels.canary == 'true' + * @return value or {@code null} for none + */ + public ClusterSelector getClusterSelector() { + return clusterSelector; + } + + /** + * Output only. The selector from the sequence that was used to create this stage. Example CEL + * expression: resource.labels.canary == 'true' + * @param clusterSelector clusterSelector or {@code null} for none + */ + public RolloutStage setClusterSelector(ClusterSelector clusterSelector) { + this.clusterSelector = clusterSelector; + return this; + } + + /** + * Optional. Output only. The time at which the stage ended. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Optional. Output only. The time at which the stage ended. + * @param endTime endTime or {@code null} for none + */ + public RolloutStage setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. The fleet projects from the sequence that was used to create this stage. Expected + * format: projects/{project_number} + * @return value or {@code null} for none + */ + public java.util.List getFleetProjects() { + return fleetProjects; + } + + /** + * Output only. The fleet projects from the sequence that was used to create this stage. Expected + * format: projects/{project_number} + * @param fleetProjects fleetProjects or {@code null} for none + */ + public RolloutStage setFleetProjects(java.util.List fleetProjects) { + this.fleetProjects = fleetProjects; + return this; + } + + /** + * Optional. Duration to soak after this stage before starting the next stage. + * @return value or {@code null} for none + */ + public String getSoakDuration() { + return soakDuration; + } + + /** + * Optional. Duration to soak after this stage before starting the next stage. + * @param soakDuration soakDuration or {@code null} for none + */ + public RolloutStage setSoakDuration(String soakDuration) { + this.soakDuration = soakDuration; + return this; + } + + /** + * Output only. The stage number to which this status applies. + * @return value or {@code null} for none + */ + public java.lang.Integer getStageNumber() { + return stageNumber; + } + + /** + * Output only. The stage number to which this status applies. + * @param stageNumber stageNumber or {@code null} for none + */ + public RolloutStage setStageNumber(java.lang.Integer stageNumber) { + this.stageNumber = stageNumber; + return this; + } + + /** + * Optional. Output only. The time at which the stage started. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Optional. Output only. The time at which the stage started. + * @param startTime startTime or {@code null} for none + */ + public RolloutStage setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * Output only. The state of the stage. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the stage. + * @param state state or {@code null} for none + */ + public RolloutStage setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public RolloutStage set(String fieldName, Object value) { + return (RolloutStage) super.set(fieldName, value); + } + + @Override + public RolloutStage clone() { + return (RolloutStage) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutTarget.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutTarget.java new file mode 100644 index 00000000000..213465230a1 --- /dev/null +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/RolloutTarget.java @@ -0,0 +1,174 @@ +/* + * 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.gkehub.v1.model; + +/** + * Metadata about the status of targets (clusters or node pools) involved in the Rollout. + * + *

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 GKE Hub 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 RolloutTarget extends com.google.api.client.json.GenericJson { + + /** + * Optional. Output only. The resource link of the Cluster resource upgraded in this Rollout. It + * is formatted as: + * `//{api_service}/projects/{project_number}/locations/{location}/clusters/{cluster_name}`. . + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cluster; + + /** + * Optional. Output only. The resource link of the NodePool resource upgraded in this Rollout. It + * is formatted as: `//{api_service}/projects/{project_number}/locations/{location}/clusters/{clus + * ter_name}/nodePools/{node_pool_name}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nodePool; + + /** + * Optional. Output only. The operation resource name performing the mutation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** + * Optional. Output only. A human-readable description of the current status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reason; + + /** + * Output only. The high-level, machine-readable status of this Rollout for the target. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Optional. Output only. The resource link of the Cluster resource upgraded in this Rollout. It + * is formatted as: + * `//{api_service}/projects/{project_number}/locations/{location}/clusters/{cluster_name}`. . + * @return value or {@code null} for none + */ + public java.lang.String getCluster() { + return cluster; + } + + /** + * Optional. Output only. The resource link of the Cluster resource upgraded in this Rollout. It + * is formatted as: + * `//{api_service}/projects/{project_number}/locations/{location}/clusters/{cluster_name}`. . + * @param cluster cluster or {@code null} for none + */ + public RolloutTarget setCluster(java.lang.String cluster) { + this.cluster = cluster; + return this; + } + + /** + * Optional. Output only. The resource link of the NodePool resource upgraded in this Rollout. It + * is formatted as: `//{api_service}/projects/{project_number}/locations/{location}/clusters/{clus + * ter_name}/nodePools/{node_pool_name}`. + * @return value or {@code null} for none + */ + public java.lang.String getNodePool() { + return nodePool; + } + + /** + * Optional. Output only. The resource link of the NodePool resource upgraded in this Rollout. It + * is formatted as: `//{api_service}/projects/{project_number}/locations/{location}/clusters/{clus + * ter_name}/nodePools/{node_pool_name}`. + * @param nodePool nodePool or {@code null} for none + */ + public RolloutTarget setNodePool(java.lang.String nodePool) { + this.nodePool = nodePool; + return this; + } + + /** + * Optional. Output only. The operation resource name performing the mutation. + * @return value or {@code null} for none + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Optional. Output only. The operation resource name performing the mutation. + * @param operation operation or {@code null} for none + */ + public RolloutTarget setOperation(java.lang.String operation) { + this.operation = operation; + return this; + } + + /** + * Optional. Output only. A human-readable description of the current status. + * @return value or {@code null} for none + */ + public java.lang.String getReason() { + return reason; + } + + /** + * Optional. Output only. A human-readable description of the current status. + * @param reason reason or {@code null} for none + */ + public RolloutTarget setReason(java.lang.String reason) { + this.reason = reason; + return this; + } + + /** + * Output only. The high-level, machine-readable status of this Rollout for the target. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The high-level, machine-readable status of this Rollout for the target. + * @param state state or {@code null} for none + */ + public RolloutTarget setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public RolloutTarget set(String fieldName, Object value) { + return (RolloutTarget) super.set(fieldName, value); + } + + @Override + public RolloutTarget clone() { + return (RolloutTarget) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/Stage.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/Stage.java new file mode 100644 index 00000000000..714290205ec --- /dev/null +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/Stage.java @@ -0,0 +1,120 @@ +/* + * 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.gkehub.v1.model; + +/** + * Rollout stage. + * + *

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 GKE Hub 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 Stage extends com.google.api.client.json.GenericJson { + + /** + * Optional. Filter members of fleets (above) to a subset of clusters. If not specified, all + * clusters in the fleets are selected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ClusterSelector clusterSelector; + + /** + * Required. List of Fleet projects to select the clusters from. Expected format: + * projects/{project} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List fleetProjects; + + /** + * Optional. Soak time after upgrading all the clusters in the stage. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String soakDuration; + + /** + * Optional. Filter members of fleets (above) to a subset of clusters. If not specified, all + * clusters in the fleets are selected. + * @return value or {@code null} for none + */ + public ClusterSelector getClusterSelector() { + return clusterSelector; + } + + /** + * Optional. Filter members of fleets (above) to a subset of clusters. If not specified, all + * clusters in the fleets are selected. + * @param clusterSelector clusterSelector or {@code null} for none + */ + public Stage setClusterSelector(ClusterSelector clusterSelector) { + this.clusterSelector = clusterSelector; + return this; + } + + /** + * Required. List of Fleet projects to select the clusters from. Expected format: + * projects/{project} + * @return value or {@code null} for none + */ + public java.util.List getFleetProjects() { + return fleetProjects; + } + + /** + * Required. List of Fleet projects to select the clusters from. Expected format: + * projects/{project} + * @param fleetProjects fleetProjects or {@code null} for none + */ + public Stage setFleetProjects(java.util.List fleetProjects) { + this.fleetProjects = fleetProjects; + return this; + } + + /** + * Optional. Soak time after upgrading all the clusters in the stage. + * @return value or {@code null} for none + */ + public String getSoakDuration() { + return soakDuration; + } + + /** + * Optional. Soak time after upgrading all the clusters in the stage. + * @param soakDuration soakDuration or {@code null} for none + */ + public Stage setSoakDuration(String soakDuration) { + this.soakDuration = soakDuration; + return this; + } + + @Override + public Stage set(String fieldName, Object value) { + return (Stage) super.set(fieldName, value); + } + + @Override + public Stage clone() { + return (Stage) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/UpgradeRolloutSequenceRequest.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/UpgradeRolloutSequenceRequest.java new file mode 100644 index 00000000000..bf7d62c11bd --- /dev/null +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/UpgradeRolloutSequenceRequest.java @@ -0,0 +1,141 @@ +/* + * 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.gkehub.v1.model; + +/** + * Request message for upgrading a rollout sequence. + * + *

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 GKE Hub 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 UpgradeRolloutSequenceRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. If set to true, any rollout already running on the first stage of the sequence will + * be cancelled to allow for the creation of the new rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** + * Required. The type of upgrade. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String upgradeType; + + /** + * Required. GKE version to upgrade to. A valid GKE version available on the release channel used + * by the sequence. Patch versions from less conservative channels are allowed if their minor + * version is already available in the sequence's channel. This is similar to single-cluster + * upgrade rules, see https://cloud.google.com/kubernetes-engine/docs/how-to/upgrading-a- + * cluster#supported-versions Example: With the following versions available on the RAPID and + * REGULAR channels: * REGULAR: 1.35.3-gke.123000 * RAPID: 1.36.4-gke.321000, 1.35.6-gke.045000 + * Valid versions are 1.35.3-gke.123, 1.35.6-gke.045000 Aliases like `latest` are supported. For + * more information on valid upgrade versions and specifying cluster versions, see: + * https://cloud.google.com/kubernetes-engine/versioning#specifying_cluster_version + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String version; + + /** + * Optional. If set to true, any rollout already running on the first stage of the sequence will + * be cancelled to allow for the creation of the new rollout. + * @return value or {@code null} for none + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If set to true, any rollout already running on the first stage of the sequence will + * be cancelled to allow for the creation of the new rollout. + * @param force force or {@code null} for none + */ + public UpgradeRolloutSequenceRequest setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + /** + * Required. The type of upgrade. + * @return value or {@code null} for none + */ + public java.lang.String getUpgradeType() { + return upgradeType; + } + + /** + * Required. The type of upgrade. + * @param upgradeType upgradeType or {@code null} for none + */ + public UpgradeRolloutSequenceRequest setUpgradeType(java.lang.String upgradeType) { + this.upgradeType = upgradeType; + return this; + } + + /** + * Required. GKE version to upgrade to. A valid GKE version available on the release channel used + * by the sequence. Patch versions from less conservative channels are allowed if their minor + * version is already available in the sequence's channel. This is similar to single-cluster + * upgrade rules, see https://cloud.google.com/kubernetes-engine/docs/how-to/upgrading-a- + * cluster#supported-versions Example: With the following versions available on the RAPID and + * REGULAR channels: * REGULAR: 1.35.3-gke.123000 * RAPID: 1.36.4-gke.321000, 1.35.6-gke.045000 + * Valid versions are 1.35.3-gke.123, 1.35.6-gke.045000 Aliases like `latest` are supported. For + * more information on valid upgrade versions and specifying cluster versions, see: + * https://cloud.google.com/kubernetes-engine/versioning#specifying_cluster_version + * @return value or {@code null} for none + */ + public java.lang.String getVersion() { + return version; + } + + /** + * Required. GKE version to upgrade to. A valid GKE version available on the release channel used + * by the sequence. Patch versions from less conservative channels are allowed if their minor + * version is already available in the sequence's channel. This is similar to single-cluster + * upgrade rules, see https://cloud.google.com/kubernetes-engine/docs/how-to/upgrading-a- + * cluster#supported-versions Example: With the following versions available on the RAPID and + * REGULAR channels: * REGULAR: 1.35.3-gke.123000 * RAPID: 1.36.4-gke.321000, 1.35.6-gke.045000 + * Valid versions are 1.35.3-gke.123, 1.35.6-gke.045000 Aliases like `latest` are supported. For + * more information on valid upgrade versions and specifying cluster versions, see: + * https://cloud.google.com/kubernetes-engine/versioning#specifying_cluster_version + * @param version version or {@code null} for none + */ + public UpgradeRolloutSequenceRequest setVersion(java.lang.String version) { + this.version = version; + return this; + } + + @Override + public UpgradeRolloutSequenceRequest set(String fieldName, Object value) { + return (UpgradeRolloutSequenceRequest) super.set(fieldName, value); + } + + @Override + public UpgradeRolloutSequenceRequest clone() { + return (UpgradeRolloutSequenceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/VersionUpgrade.java b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/VersionUpgrade.java new file mode 100644 index 00000000000..1fc24a05b21 --- /dev/null +++ b/clients/google-api-services-gkehub/v1/2.0.0/com/google/api/services/gkehub/v1/model/VersionUpgrade.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.gkehub.v1.model; + +/** + * Config for version upgrade of clusters. + * + *

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 GKE Hub 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 VersionUpgrade extends com.google.api.client.json.GenericJson { + + /** + * Optional. Desired version of the component. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String desiredVersion; + + /** + * Optional. Type of version upgrade specifies which component should be upgraded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Optional. Desired version of the component. + * @return value or {@code null} for none + */ + public java.lang.String getDesiredVersion() { + return desiredVersion; + } + + /** + * Optional. Desired version of the component. + * @param desiredVersion desiredVersion or {@code null} for none + */ + public VersionUpgrade setDesiredVersion(java.lang.String desiredVersion) { + this.desiredVersion = desiredVersion; + return this; + } + + /** + * Optional. Type of version upgrade specifies which component should be upgraded. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Optional. Type of version upgrade specifies which component should be upgraded. + * @param type type or {@code null} for none + */ + public VersionUpgrade setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public VersionUpgrade set(String fieldName, Object value) { + return (VersionUpgrade) super.set(fieldName, value); + } + + @Override + public VersionUpgrade clone() { + return (VersionUpgrade) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1/2.0.0/pom.xml b/clients/google-api-services-gkehub/v1/2.0.0/pom.xml index bcc3ebae0e6..0d0efed9d1a 100644 --- a/clients/google-api-services-gkehub/v1/2.0.0/pom.xml +++ b/clients/google-api-services-gkehub/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-gkehub - v1-rev20260529-2.0.0 - GKE Hub API v1-rev20260529-2.0.0 + v1-rev20260616-2.0.0 + GKE Hub API v1-rev20260616-2.0.0 jar 2011 diff --git a/clients/google-api-services-gkehub/v1/README.md b/clients/google-api-services-gkehub/v1/README.md index 75775121edf..3ec9fa935bb 100644 --- a/clients/google-api-services-gkehub/v1/README.md +++ b/clients/google-api-services-gkehub/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-gkehub - v1-rev20260529-2.0.0 + v1-rev20260616-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-gkehub:v1-rev20260529-2.0.0' + implementation 'com.google.apis:google-api-services-gkehub:v1-rev20260616-2.0.0' } ``` diff --git a/clients/google-api-services-gkehub/v1alpha/2.0.0/README.md b/clients/google-api-services-gkehub/v1alpha/2.0.0/README.md index 8a66ca13292..ab29e510bbf 100644 --- a/clients/google-api-services-gkehub/v1alpha/2.0.0/README.md +++ b/clients/google-api-services-gkehub/v1alpha/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-gkehub - v1alpha-rev20260529-2.0.0 + v1alpha-rev20260616-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-gkehub:v1alpha-rev20260529-2.0.0' + implementation 'com.google.apis:google-api-services-gkehub:v1alpha-rev20260616-2.0.0' } ``` diff --git a/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/GKEHub.java b/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/GKEHub.java index a045ee62398..49ecffab060 100644 --- a/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/GKEHub.java +++ b/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/GKEHub.java @@ -9069,6 +9069,146 @@ public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } + /** + * Upgrades a rollout sequence. + * + * Create a request for the method "rolloutSequences.upgrade". + * + * This request holds the parameters needed by the gkehub server. After setting any optional + * parameters, call the {@link Upgrade#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the rollout sequence. Format: + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + * @param content the {@link com.google.api.services.gkehub.v1alpha.model.UpgradeRolloutSequenceRequest} + * @return the request + */ + public Upgrade upgrade(java.lang.String name, com.google.api.services.gkehub.v1alpha.model.UpgradeRolloutSequenceRequest content) throws java.io.IOException { + Upgrade result = new Upgrade(name, content); + initialize(result); + return result; + } + + public class Upgrade extends GKEHubRequest { + + private static final String REST_PATH = "v1alpha/{+name}:upgrade"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/rolloutSequences/[^/]+$"); + + /** + * Upgrades a rollout sequence. + * + * Create a request for the method "rolloutSequences.upgrade". + * + * This request holds the parameters needed by the the gkehub server. After setting any optional + * parameters, call the {@link Upgrade#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the rollout sequence. Format: + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + * @param content the {@link com.google.api.services.gkehub.v1alpha.model.UpgradeRolloutSequenceRequest} + * @since 1.13 + */ + protected Upgrade(java.lang.String name, com.google.api.services.gkehub.v1alpha.model.UpgradeRolloutSequenceRequest content) { + super(GKEHub.this, "POST", REST_PATH, content, com.google.api.services.gkehub.v1alpha.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rolloutSequences/[^/]+$"); + } + } + + @Override + public Upgrade set$Xgafv(java.lang.String $Xgafv) { + return (Upgrade) super.set$Xgafv($Xgafv); + } + + @Override + public Upgrade setAccessToken(java.lang.String accessToken) { + return (Upgrade) super.setAccessToken(accessToken); + } + + @Override + public Upgrade setAlt(java.lang.String alt) { + return (Upgrade) super.setAlt(alt); + } + + @Override + public Upgrade setCallback(java.lang.String callback) { + return (Upgrade) super.setCallback(callback); + } + + @Override + public Upgrade setFields(java.lang.String fields) { + return (Upgrade) super.setFields(fields); + } + + @Override + public Upgrade setKey(java.lang.String key) { + return (Upgrade) super.setKey(key); + } + + @Override + public Upgrade setOauthToken(java.lang.String oauthToken) { + return (Upgrade) super.setOauthToken(oauthToken); + } + + @Override + public Upgrade setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Upgrade) super.setPrettyPrint(prettyPrint); + } + + @Override + public Upgrade setQuotaUser(java.lang.String quotaUser) { + return (Upgrade) super.setQuotaUser(quotaUser); + } + + @Override + public Upgrade setUploadType(java.lang.String uploadType) { + return (Upgrade) super.setUploadType(uploadType); + } + + @Override + public Upgrade setUploadProtocol(java.lang.String uploadProtocol) { + return (Upgrade) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the rollout sequence. Format: + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the rollout sequence. Format: + projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the rollout sequence. Format: + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + */ + public Upgrade setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rolloutSequences/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Upgrade set(String parameterName, Object value) { + return (Upgrade) super.set(parameterName, value); + } + } } /** @@ -9092,9 +9232,8 @@ public Rollouts rollouts() { public class Rollouts { /** - * Cancels a paused Rollout. The rollout will not be started on new clusters, however the rollout - * running on the cluster will be allowed to finish. It's only valid to cancel a paused rollout, - * otherwise it will return a FAILED_PRECONDITION error. + * Cancels a Rollout. The rollout will not be started on new clusters, however the rollout running + * on the cluster will be allowed to finish. * * Create a request for the method "rollouts.cancel". * @@ -9120,9 +9259,8 @@ public class Cancel extends GKEHubRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + + /** + * Removes a Rollout. + * + * Create a request for the method "rollouts.delete". + * + * This request holds the parameters needed by the the gkehub server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the rollout to delete. + * projects/{project}/locations/{location}/rollouts/{rollout} + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(GKEHub.this, "DELETE", REST_PATH, null, com.google.api.services.gkehub.v1alpha.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the rollout to delete. + * projects/{project}/locations/{location}/rollouts/{rollout} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the rollout to delete. + projects/{project}/locations/{location}/rollouts/{rollout} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the rollout to delete. + * projects/{project}/locations/{location}/rollouts/{rollout} + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already + * been completed. The server will guarantee that for at least 60 minutes after the first + * request. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server + * can check if original operation with the same request ID was received, and if so, will + * ignore the second request. This prevents clients from accidentally creating duplicate + * commitments. The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. The + server will guarantee that for at least 60 minutes after the first request. For example, consider a + situation where you make an initial request and the request times out. If you make the request + again with the same request ID, the server can check if original operation with the same request ID + was received, and if so, will ignore the second request. This prevents clients from accidentally + creating duplicate commitments. The request ID must be a valid UUID with the exception that zero + UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already + * been completed. The server will guarantee that for at least 60 minutes after the first + * request. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server + * can check if original operation with the same request ID was received, and if so, will + * ignore the second request. This prevents clients from accidentally creating duplicate + * commitments. The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** * Force-completes a rollout stage. Only the active stage of an active rollout can be force- * completed. diff --git a/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/AutoUpgradeConfig.java b/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/AutoUpgradeConfig.java index 33215c510ef..1c863224d3e 100644 --- a/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/AutoUpgradeConfig.java +++ b/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/AutoUpgradeConfig.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class AutoUpgradeConfig extends com.google.api.client.json.GenericJson { + /** + * Output only. Mandatory Safety Policies (Always active) which cannot be disabled. The key is the + * policy ID (e.g., "ENFORCED_CONTROL_PLANE_PATCH") and the value is a human-readable description. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map enforcedRollouts; + /** * Optional. Specifies the scope of automation for the creation of rollouts. Represents the types * of rollouts (version upgrades) the sequence should initiate automatically. If this field is @@ -41,6 +49,25 @@ public final class AutoUpgradeConfig extends com.google.api.client.json.GenericJ @com.google.api.client.util.Key private RolloutCreationScope rolloutCreationScope; + /** + * Output only. Mandatory Safety Policies (Always active) which cannot be disabled. The key is the + * policy ID (e.g., "ENFORCED_CONTROL_PLANE_PATCH") and the value is a human-readable description. + * @return value or {@code null} for none + */ + public java.util.Map getEnforcedRollouts() { + return enforcedRollouts; + } + + /** + * Output only. Mandatory Safety Policies (Always active) which cannot be disabled. The key is the + * policy ID (e.g., "ENFORCED_CONTROL_PLANE_PATCH") and the value is a human-readable description. + * @param enforcedRollouts enforcedRollouts or {@code null} for none + */ + public AutoUpgradeConfig setEnforcedRollouts(java.util.Map enforcedRollouts) { + this.enforcedRollouts = enforcedRollouts; + return this; + } + /** * Optional. Specifies the scope of automation for the creation of rollouts. Represents the types * of rollouts (version upgrades) the sequence should initiate automatically. If this field is diff --git a/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/Rollout.java b/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/Rollout.java index 7b337a957d7..cf045b8077b 100644 --- a/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/Rollout.java +++ b/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/Rollout.java @@ -64,6 +64,13 @@ public final class Rollout extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String etag; + /** + * Output only. The intent of the rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String intent; + /** * Optional. Labels for this Rollout. * The value may be {@code null}. @@ -125,6 +132,13 @@ public final class Rollout extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String stateReasonType; + /** + * Output only. The trigger of the rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String trigger; + /** * Output only. Google-generated UUID for this resource. This is unique across all Rollout * resources. If a Rollout resource is deleted and another resource with the same name is created, @@ -233,6 +247,23 @@ public Rollout setEtag(java.lang.String etag) { return this; } + /** + * Output only. The intent of the rollout. + * @return value or {@code null} for none + */ + public java.lang.String getIntent() { + return intent; + } + + /** + * Output only. The intent of the rollout. + * @param intent intent or {@code null} for none + */ + public Rollout setIntent(java.lang.String intent) { + this.intent = intent; + return this; + } + /** * Optional. Labels for this Rollout. * @return value or {@code null} for none @@ -379,6 +410,23 @@ public Rollout setStateReasonType(java.lang.String stateReasonType) { return this; } + /** + * Output only. The trigger of the rollout. + * @return value or {@code null} for none + */ + public java.lang.String getTrigger() { + return trigger; + } + + /** + * Output only. The trigger of the rollout. + * @param trigger trigger or {@code null} for none + */ + public Rollout setTrigger(java.lang.String trigger) { + this.trigger = trigger; + return this; + } + /** * Output only. Google-generated UUID for this resource. This is unique across all Rollout * resources. If a Rollout resource is deleted and another resource with the same name is created, diff --git a/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/RolloutSequence.java b/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/RolloutSequence.java index 7fcead84970..46decc69f31 100644 --- a/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/RolloutSequence.java +++ b/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/RolloutSequence.java @@ -37,6 +37,13 @@ public final class RolloutSequence extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private AutoUpgradeConfig autoUpgradeConfig; + /** + * Output only. The computed release channel used for the Rollout Sequence. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String computedReleaseChannel; + /** * Output only. The timestamp at which the Rollout Sequence was created. * The value may be {@code null}. @@ -86,6 +93,20 @@ public final class RolloutSequence extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private java.util.Map labels; + /** + * Output only. The last qualified control plane version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastQualifiedControlPlaneVersion; + + /** + * Output only. The last qualified node version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastQualifiedNodeVersion; + /** * Identifier. Name of the rollout sequence in the format of: * projects/{PROJECT_ID}/locations/global/rolloutSequences/{NAME} @@ -108,6 +129,20 @@ public final class RolloutSequence extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private java.util.List stages; + /** + * Output only. The target control plane version of the Rollout Sequence. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetControlPlaneVersion; + + /** + * Output only. The target node version of the Rollout Sequence. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetNodeVersion; + /** * Output only. Google-generated UUID for this resource. This is unique across all Rollout * Sequence resources. If a Rollout Sequence resource is deleted and another resource with the @@ -143,6 +178,23 @@ public RolloutSequence setAutoUpgradeConfig(AutoUpgradeConfig autoUpgradeConfig) return this; } + /** + * Output only. The computed release channel used for the Rollout Sequence. + * @return value or {@code null} for none + */ + public java.lang.String getComputedReleaseChannel() { + return computedReleaseChannel; + } + + /** + * Output only. The computed release channel used for the Rollout Sequence. + * @param computedReleaseChannel computedReleaseChannel or {@code null} for none + */ + public RolloutSequence setComputedReleaseChannel(java.lang.String computedReleaseChannel) { + this.computedReleaseChannel = computedReleaseChannel; + return this; + } + /** * Output only. The timestamp at which the Rollout Sequence was created. * @return value or {@code null} for none @@ -262,6 +314,40 @@ public RolloutSequence setLabels(java.util.Map labels) return this; } + /** + * Output only. The last qualified control plane version. + * @return value or {@code null} for none + */ + public java.lang.String getLastQualifiedControlPlaneVersion() { + return lastQualifiedControlPlaneVersion; + } + + /** + * Output only. The last qualified control plane version. + * @param lastQualifiedControlPlaneVersion lastQualifiedControlPlaneVersion or {@code null} for none + */ + public RolloutSequence setLastQualifiedControlPlaneVersion(java.lang.String lastQualifiedControlPlaneVersion) { + this.lastQualifiedControlPlaneVersion = lastQualifiedControlPlaneVersion; + return this; + } + + /** + * Output only. The last qualified node version. + * @return value or {@code null} for none + */ + public java.lang.String getLastQualifiedNodeVersion() { + return lastQualifiedNodeVersion; + } + + /** + * Output only. The last qualified node version. + * @param lastQualifiedNodeVersion lastQualifiedNodeVersion or {@code null} for none + */ + public RolloutSequence setLastQualifiedNodeVersion(java.lang.String lastQualifiedNodeVersion) { + this.lastQualifiedNodeVersion = lastQualifiedNodeVersion; + return this; + } + /** * Identifier. Name of the rollout sequence in the format of: * projects/{PROJECT_ID}/locations/global/rolloutSequences/{NAME} @@ -315,6 +401,40 @@ public RolloutSequence setStages(java.util.List stages) { return this; } + /** + * Output only. The target control plane version of the Rollout Sequence. + * @return value or {@code null} for none + */ + public java.lang.String getTargetControlPlaneVersion() { + return targetControlPlaneVersion; + } + + /** + * Output only. The target control plane version of the Rollout Sequence. + * @param targetControlPlaneVersion targetControlPlaneVersion or {@code null} for none + */ + public RolloutSequence setTargetControlPlaneVersion(java.lang.String targetControlPlaneVersion) { + this.targetControlPlaneVersion = targetControlPlaneVersion; + return this; + } + + /** + * Output only. The target node version of the Rollout Sequence. + * @return value or {@code null} for none + */ + public java.lang.String getTargetNodeVersion() { + return targetNodeVersion; + } + + /** + * Output only. The target node version of the Rollout Sequence. + * @param targetNodeVersion targetNodeVersion or {@code null} for none + */ + public RolloutSequence setTargetNodeVersion(java.lang.String targetNodeVersion) { + this.targetNodeVersion = targetNodeVersion; + return this; + } + /** * Output only. Google-generated UUID for this resource. This is unique across all Rollout * Sequence resources. If a Rollout Sequence resource is deleted and another resource with the diff --git a/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/RolloutStage.java b/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/RolloutStage.java index c06ca3b3a59..134d0715d4c 100644 --- a/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/RolloutStage.java +++ b/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/RolloutStage.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class RolloutStage extends com.google.api.client.json.GenericJson { + /** + * Output only. The selector from the sequence that was used to create this stage. Example CEL + * expression: resource.labels.canary == 'true' + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ClusterSelector clusterSelector; + /** * Optional. Output only. The time at which the stage ended. * The value may be {@code null}. @@ -36,6 +44,14 @@ public final class RolloutStage extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private String endTime; + /** + * Output only. The fleet projects from the sequence that was used to create this stage. Expected + * format: projects/{project_number} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List fleetProjects; + /** * Optional. Duration to soak after this stage before starting the next stage. * The value may be {@code null}. @@ -64,6 +80,25 @@ public final class RolloutStage extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String state; + /** + * Output only. The selector from the sequence that was used to create this stage. Example CEL + * expression: resource.labels.canary == 'true' + * @return value or {@code null} for none + */ + public ClusterSelector getClusterSelector() { + return clusterSelector; + } + + /** + * Output only. The selector from the sequence that was used to create this stage. Example CEL + * expression: resource.labels.canary == 'true' + * @param clusterSelector clusterSelector or {@code null} for none + */ + public RolloutStage setClusterSelector(ClusterSelector clusterSelector) { + this.clusterSelector = clusterSelector; + return this; + } + /** * Optional. Output only. The time at which the stage ended. * @return value or {@code null} for none @@ -81,6 +116,25 @@ public RolloutStage setEndTime(String endTime) { return this; } + /** + * Output only. The fleet projects from the sequence that was used to create this stage. Expected + * format: projects/{project_number} + * @return value or {@code null} for none + */ + public java.util.List getFleetProjects() { + return fleetProjects; + } + + /** + * Output only. The fleet projects from the sequence that was used to create this stage. Expected + * format: projects/{project_number} + * @param fleetProjects fleetProjects or {@code null} for none + */ + public RolloutStage setFleetProjects(java.util.List fleetProjects) { + this.fleetProjects = fleetProjects; + return this; + } + /** * Optional. Duration to soak after this stage before starting the next stage. * @return value or {@code null} for none diff --git a/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/UpgradeRolloutSequenceRequest.java b/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/UpgradeRolloutSequenceRequest.java new file mode 100644 index 00000000000..1cae0ccefca --- /dev/null +++ b/clients/google-api-services-gkehub/v1alpha/2.0.0/com/google/api/services/gkehub/v1alpha/model/UpgradeRolloutSequenceRequest.java @@ -0,0 +1,141 @@ +/* + * 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.gkehub.v1alpha.model; + +/** + * Request message for upgrading a rollout sequence. + * + *

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 GKE Hub 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 UpgradeRolloutSequenceRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. If set to true, any rollout already running on the first stage of the sequence will + * be cancelled to allow for the creation of the new rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** + * Required. The type of upgrade. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String upgradeType; + + /** + * Required. GKE version to upgrade to. A valid GKE version available on the release channel used + * by the sequence. Patch versions from less conservative channels are allowed if their minor + * version is already available in the sequence's channel. This is similar to single-cluster + * upgrade rules, see https://cloud.google.com/kubernetes-engine/docs/how-to/upgrading-a- + * cluster#supported-versions Example: With the following versions available on the RAPID and + * REGULAR channels: * REGULAR: 1.35.3-gke.123000 * RAPID: 1.36.4-gke.321000, 1.35.6-gke.045000 + * Valid versions are 1.35.3-gke.123, 1.35.6-gke.045000 Aliases like `latest` are supported. For + * more information on valid upgrade versions and specifying cluster versions, see: + * https://cloud.google.com/kubernetes-engine/versioning#specifying_cluster_version + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String version; + + /** + * Optional. If set to true, any rollout already running on the first stage of the sequence will + * be cancelled to allow for the creation of the new rollout. + * @return value or {@code null} for none + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If set to true, any rollout already running on the first stage of the sequence will + * be cancelled to allow for the creation of the new rollout. + * @param force force or {@code null} for none + */ + public UpgradeRolloutSequenceRequest setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + /** + * Required. The type of upgrade. + * @return value or {@code null} for none + */ + public java.lang.String getUpgradeType() { + return upgradeType; + } + + /** + * Required. The type of upgrade. + * @param upgradeType upgradeType or {@code null} for none + */ + public UpgradeRolloutSequenceRequest setUpgradeType(java.lang.String upgradeType) { + this.upgradeType = upgradeType; + return this; + } + + /** + * Required. GKE version to upgrade to. A valid GKE version available on the release channel used + * by the sequence. Patch versions from less conservative channels are allowed if their minor + * version is already available in the sequence's channel. This is similar to single-cluster + * upgrade rules, see https://cloud.google.com/kubernetes-engine/docs/how-to/upgrading-a- + * cluster#supported-versions Example: With the following versions available on the RAPID and + * REGULAR channels: * REGULAR: 1.35.3-gke.123000 * RAPID: 1.36.4-gke.321000, 1.35.6-gke.045000 + * Valid versions are 1.35.3-gke.123, 1.35.6-gke.045000 Aliases like `latest` are supported. For + * more information on valid upgrade versions and specifying cluster versions, see: + * https://cloud.google.com/kubernetes-engine/versioning#specifying_cluster_version + * @return value or {@code null} for none + */ + public java.lang.String getVersion() { + return version; + } + + /** + * Required. GKE version to upgrade to. A valid GKE version available on the release channel used + * by the sequence. Patch versions from less conservative channels are allowed if their minor + * version is already available in the sequence's channel. This is similar to single-cluster + * upgrade rules, see https://cloud.google.com/kubernetes-engine/docs/how-to/upgrading-a- + * cluster#supported-versions Example: With the following versions available on the RAPID and + * REGULAR channels: * REGULAR: 1.35.3-gke.123000 * RAPID: 1.36.4-gke.321000, 1.35.6-gke.045000 + * Valid versions are 1.35.3-gke.123, 1.35.6-gke.045000 Aliases like `latest` are supported. For + * more information on valid upgrade versions and specifying cluster versions, see: + * https://cloud.google.com/kubernetes-engine/versioning#specifying_cluster_version + * @param version version or {@code null} for none + */ + public UpgradeRolloutSequenceRequest setVersion(java.lang.String version) { + this.version = version; + return this; + } + + @Override + public UpgradeRolloutSequenceRequest set(String fieldName, Object value) { + return (UpgradeRolloutSequenceRequest) super.set(fieldName, value); + } + + @Override + public UpgradeRolloutSequenceRequest clone() { + return (UpgradeRolloutSequenceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1alpha/2.0.0/pom.xml b/clients/google-api-services-gkehub/v1alpha/2.0.0/pom.xml index 9ac265c4775..9a690699861 100644 --- a/clients/google-api-services-gkehub/v1alpha/2.0.0/pom.xml +++ b/clients/google-api-services-gkehub/v1alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-gkehub - v1alpha-rev20260529-2.0.0 - GKE Hub API v1alpha-rev20260529-2.0.0 + v1alpha-rev20260616-2.0.0 + GKE Hub API v1alpha-rev20260616-2.0.0 jar 2011 diff --git a/clients/google-api-services-gkehub/v1alpha/README.md b/clients/google-api-services-gkehub/v1alpha/README.md index 8a66ca13292..ab29e510bbf 100644 --- a/clients/google-api-services-gkehub/v1alpha/README.md +++ b/clients/google-api-services-gkehub/v1alpha/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-gkehub - v1alpha-rev20260529-2.0.0 + v1alpha-rev20260616-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-gkehub:v1alpha-rev20260529-2.0.0' + implementation 'com.google.apis:google-api-services-gkehub:v1alpha-rev20260616-2.0.0' } ``` diff --git a/clients/google-api-services-gkehub/v1beta/2.0.0/README.md b/clients/google-api-services-gkehub/v1beta/2.0.0/README.md index 0488494215b..235d3e66485 100644 --- a/clients/google-api-services-gkehub/v1beta/2.0.0/README.md +++ b/clients/google-api-services-gkehub/v1beta/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-gkehub - v1beta-rev20260529-2.0.0 + v1beta-rev20260616-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-gkehub:v1beta-rev20260529-2.0.0' + implementation 'com.google.apis:google-api-services-gkehub:v1beta-rev20260616-2.0.0' } ``` diff --git a/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/GKEHub.java b/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/GKEHub.java index fd5a3d5aa05..4a674f7d62a 100644 --- a/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/GKEHub.java +++ b/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/GKEHub.java @@ -8293,6 +8293,146 @@ public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } + /** + * Upgrades a rollout sequence. + * + * Create a request for the method "rolloutSequences.upgrade". + * + * This request holds the parameters needed by the gkehub server. After setting any optional + * parameters, call the {@link Upgrade#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the rollout sequence. Format: + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + * @param content the {@link com.google.api.services.gkehub.v1beta.model.UpgradeRolloutSequenceRequest} + * @return the request + */ + public Upgrade upgrade(java.lang.String name, com.google.api.services.gkehub.v1beta.model.UpgradeRolloutSequenceRequest content) throws java.io.IOException { + Upgrade result = new Upgrade(name, content); + initialize(result); + return result; + } + + public class Upgrade extends GKEHubRequest { + + private static final String REST_PATH = "v1beta/{+name}:upgrade"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/rolloutSequences/[^/]+$"); + + /** + * Upgrades a rollout sequence. + * + * Create a request for the method "rolloutSequences.upgrade". + * + * This request holds the parameters needed by the the gkehub server. After setting any optional + * parameters, call the {@link Upgrade#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the rollout sequence. Format: + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + * @param content the {@link com.google.api.services.gkehub.v1beta.model.UpgradeRolloutSequenceRequest} + * @since 1.13 + */ + protected Upgrade(java.lang.String name, com.google.api.services.gkehub.v1beta.model.UpgradeRolloutSequenceRequest content) { + super(GKEHub.this, "POST", REST_PATH, content, com.google.api.services.gkehub.v1beta.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rolloutSequences/[^/]+$"); + } + } + + @Override + public Upgrade set$Xgafv(java.lang.String $Xgafv) { + return (Upgrade) super.set$Xgafv($Xgafv); + } + + @Override + public Upgrade setAccessToken(java.lang.String accessToken) { + return (Upgrade) super.setAccessToken(accessToken); + } + + @Override + public Upgrade setAlt(java.lang.String alt) { + return (Upgrade) super.setAlt(alt); + } + + @Override + public Upgrade setCallback(java.lang.String callback) { + return (Upgrade) super.setCallback(callback); + } + + @Override + public Upgrade setFields(java.lang.String fields) { + return (Upgrade) super.setFields(fields); + } + + @Override + public Upgrade setKey(java.lang.String key) { + return (Upgrade) super.setKey(key); + } + + @Override + public Upgrade setOauthToken(java.lang.String oauthToken) { + return (Upgrade) super.setOauthToken(oauthToken); + } + + @Override + public Upgrade setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Upgrade) super.setPrettyPrint(prettyPrint); + } + + @Override + public Upgrade setQuotaUser(java.lang.String quotaUser) { + return (Upgrade) super.setQuotaUser(quotaUser); + } + + @Override + public Upgrade setUploadType(java.lang.String uploadType) { + return (Upgrade) super.setUploadType(uploadType); + } + + @Override + public Upgrade setUploadProtocol(java.lang.String uploadProtocol) { + return (Upgrade) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the rollout sequence. Format: + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the rollout sequence. Format: + projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the rollout sequence. Format: + * projects/{project}/locations/{location}/rolloutSequences/{rollout_sequence} + */ + public Upgrade setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rolloutSequences/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Upgrade set(String parameterName, Object value) { + return (Upgrade) super.set(parameterName, value); + } + } } /** @@ -8316,9 +8456,8 @@ public Rollouts rollouts() { public class Rollouts { /** - * Cancels a paused Rollout. The rollout will not be started on new clusters, however the rollout - * running on the cluster will be allowed to finish. It's only valid to cancel a paused rollout, - * otherwise it will return a FAILED_PRECONDITION error. + * Cancels a Rollout. The rollout will not be started on new clusters, however the rollout running + * on the cluster will be allowed to finish. * * Create a request for the method "rollouts.cancel". * @@ -8344,9 +8483,8 @@ public class Cancel extends GKEHubRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + + /** + * Removes a Rollout. + * + * Create a request for the method "rollouts.delete". + * + * This request holds the parameters needed by the the gkehub server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the rollout to delete. + * projects/{project}/locations/{location}/rollouts/{rollout} + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(GKEHub.this, "DELETE", REST_PATH, null, com.google.api.services.gkehub.v1beta.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the rollout to delete. + * projects/{project}/locations/{location}/rollouts/{rollout} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the rollout to delete. + projects/{project}/locations/{location}/rollouts/{rollout} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the rollout to delete. + * projects/{project}/locations/{location}/rollouts/{rollout} + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/rollouts/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already + * been completed. The server will guarantee that for at least 60 minutes after the first + * request. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server + * can check if original operation with the same request ID was received, and if so, will + * ignore the second request. This prevents clients from accidentally creating duplicate + * commitments. The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. The + server will guarantee that for at least 60 minutes after the first request. For example, consider a + situation where you make an initial request and the request times out. If you make the request + again with the same request ID, the server can check if original operation with the same request ID + was received, and if so, will ignore the second request. This prevents clients from accidentally + creating duplicate commitments. The request ID must be a valid UUID with the exception that zero + UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already + * been completed. The server will guarantee that for at least 60 minutes after the first + * request. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server + * can check if original operation with the same request ID was received, and if so, will + * ignore the second request. This prevents clients from accidentally creating duplicate + * commitments. The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** * Force-completes a rollout stage. Only the active stage of an active rollout can be force- * completed. diff --git a/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/AutoUpgradeConfig.java b/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/AutoUpgradeConfig.java index 0001b3b7374..1e4fced4179 100644 --- a/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/AutoUpgradeConfig.java +++ b/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/AutoUpgradeConfig.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class AutoUpgradeConfig extends com.google.api.client.json.GenericJson { + /** + * Output only. Mandatory Safety Policies (Always active) which cannot be disabled. The key is the + * policy ID (e.g., "ENFORCED_CONTROL_PLANE_PATCH") and the value is a human-readable description. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map enforcedRollouts; + /** * Optional. Specifies the scope of automation for the creation of rollouts. Represents the types * of rollouts (version upgrades) the sequence should initiate automatically. If this field is @@ -41,6 +49,25 @@ public final class AutoUpgradeConfig extends com.google.api.client.json.GenericJ @com.google.api.client.util.Key private RolloutCreationScope rolloutCreationScope; + /** + * Output only. Mandatory Safety Policies (Always active) which cannot be disabled. The key is the + * policy ID (e.g., "ENFORCED_CONTROL_PLANE_PATCH") and the value is a human-readable description. + * @return value or {@code null} for none + */ + public java.util.Map getEnforcedRollouts() { + return enforcedRollouts; + } + + /** + * Output only. Mandatory Safety Policies (Always active) which cannot be disabled. The key is the + * policy ID (e.g., "ENFORCED_CONTROL_PLANE_PATCH") and the value is a human-readable description. + * @param enforcedRollouts enforcedRollouts or {@code null} for none + */ + public AutoUpgradeConfig setEnforcedRollouts(java.util.Map enforcedRollouts) { + this.enforcedRollouts = enforcedRollouts; + return this; + } + /** * Optional. Specifies the scope of automation for the creation of rollouts. Represents the types * of rollouts (version upgrades) the sequence should initiate automatically. If this field is diff --git a/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/Rollout.java b/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/Rollout.java index 68261d9606e..d85f957bc5e 100644 --- a/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/Rollout.java +++ b/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/Rollout.java @@ -64,6 +64,13 @@ public final class Rollout extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String etag; + /** + * Output only. The intent of the rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String intent; + /** * Optional. Labels for this Rollout. * The value may be {@code null}. @@ -125,6 +132,13 @@ public final class Rollout extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String stateReasonType; + /** + * Output only. The trigger of the rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String trigger; + /** * Output only. Google-generated UUID for this resource. This is unique across all Rollout * resources. If a Rollout resource is deleted and another resource with the same name is created, @@ -233,6 +247,23 @@ public Rollout setEtag(java.lang.String etag) { return this; } + /** + * Output only. The intent of the rollout. + * @return value or {@code null} for none + */ + public java.lang.String getIntent() { + return intent; + } + + /** + * Output only. The intent of the rollout. + * @param intent intent or {@code null} for none + */ + public Rollout setIntent(java.lang.String intent) { + this.intent = intent; + return this; + } + /** * Optional. Labels for this Rollout. * @return value or {@code null} for none @@ -379,6 +410,23 @@ public Rollout setStateReasonType(java.lang.String stateReasonType) { return this; } + /** + * Output only. The trigger of the rollout. + * @return value or {@code null} for none + */ + public java.lang.String getTrigger() { + return trigger; + } + + /** + * Output only. The trigger of the rollout. + * @param trigger trigger or {@code null} for none + */ + public Rollout setTrigger(java.lang.String trigger) { + this.trigger = trigger; + return this; + } + /** * Output only. Google-generated UUID for this resource. This is unique across all Rollout * resources. If a Rollout resource is deleted and another resource with the same name is created, diff --git a/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/RolloutSequence.java b/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/RolloutSequence.java index 3a623476468..fffde46065f 100644 --- a/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/RolloutSequence.java +++ b/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/RolloutSequence.java @@ -37,6 +37,13 @@ public final class RolloutSequence extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private AutoUpgradeConfig autoUpgradeConfig; + /** + * Output only. The computed release channel used for the Rollout Sequence. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String computedReleaseChannel; + /** * Output only. The timestamp at which the Rollout Sequence was created. * The value may be {@code null}. @@ -86,6 +93,20 @@ public final class RolloutSequence extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private java.util.Map labels; + /** + * Output only. The last qualified control plane version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastQualifiedControlPlaneVersion; + + /** + * Output only. The last qualified node version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastQualifiedNodeVersion; + /** * Identifier. Name of the rollout sequence in the format of: * projects/{PROJECT_ID}/locations/global/rolloutSequences/{NAME} @@ -108,6 +129,20 @@ public final class RolloutSequence extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private java.util.List stages; + /** + * Output only. The target control plane version of the Rollout Sequence. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetControlPlaneVersion; + + /** + * Output only. The target node version of the Rollout Sequence. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetNodeVersion; + /** * Output only. Google-generated UUID for this resource. This is unique across all Rollout * Sequence resources. If a Rollout Sequence resource is deleted and another resource with the @@ -143,6 +178,23 @@ public RolloutSequence setAutoUpgradeConfig(AutoUpgradeConfig autoUpgradeConfig) return this; } + /** + * Output only. The computed release channel used for the Rollout Sequence. + * @return value or {@code null} for none + */ + public java.lang.String getComputedReleaseChannel() { + return computedReleaseChannel; + } + + /** + * Output only. The computed release channel used for the Rollout Sequence. + * @param computedReleaseChannel computedReleaseChannel or {@code null} for none + */ + public RolloutSequence setComputedReleaseChannel(java.lang.String computedReleaseChannel) { + this.computedReleaseChannel = computedReleaseChannel; + return this; + } + /** * Output only. The timestamp at which the Rollout Sequence was created. * @return value or {@code null} for none @@ -262,6 +314,40 @@ public RolloutSequence setLabels(java.util.Map labels) return this; } + /** + * Output only. The last qualified control plane version. + * @return value or {@code null} for none + */ + public java.lang.String getLastQualifiedControlPlaneVersion() { + return lastQualifiedControlPlaneVersion; + } + + /** + * Output only. The last qualified control plane version. + * @param lastQualifiedControlPlaneVersion lastQualifiedControlPlaneVersion or {@code null} for none + */ + public RolloutSequence setLastQualifiedControlPlaneVersion(java.lang.String lastQualifiedControlPlaneVersion) { + this.lastQualifiedControlPlaneVersion = lastQualifiedControlPlaneVersion; + return this; + } + + /** + * Output only. The last qualified node version. + * @return value or {@code null} for none + */ + public java.lang.String getLastQualifiedNodeVersion() { + return lastQualifiedNodeVersion; + } + + /** + * Output only. The last qualified node version. + * @param lastQualifiedNodeVersion lastQualifiedNodeVersion or {@code null} for none + */ + public RolloutSequence setLastQualifiedNodeVersion(java.lang.String lastQualifiedNodeVersion) { + this.lastQualifiedNodeVersion = lastQualifiedNodeVersion; + return this; + } + /** * Identifier. Name of the rollout sequence in the format of: * projects/{PROJECT_ID}/locations/global/rolloutSequences/{NAME} @@ -315,6 +401,40 @@ public RolloutSequence setStages(java.util.List stages) { return this; } + /** + * Output only. The target control plane version of the Rollout Sequence. + * @return value or {@code null} for none + */ + public java.lang.String getTargetControlPlaneVersion() { + return targetControlPlaneVersion; + } + + /** + * Output only. The target control plane version of the Rollout Sequence. + * @param targetControlPlaneVersion targetControlPlaneVersion or {@code null} for none + */ + public RolloutSequence setTargetControlPlaneVersion(java.lang.String targetControlPlaneVersion) { + this.targetControlPlaneVersion = targetControlPlaneVersion; + return this; + } + + /** + * Output only. The target node version of the Rollout Sequence. + * @return value or {@code null} for none + */ + public java.lang.String getTargetNodeVersion() { + return targetNodeVersion; + } + + /** + * Output only. The target node version of the Rollout Sequence. + * @param targetNodeVersion targetNodeVersion or {@code null} for none + */ + public RolloutSequence setTargetNodeVersion(java.lang.String targetNodeVersion) { + this.targetNodeVersion = targetNodeVersion; + return this; + } + /** * Output only. Google-generated UUID for this resource. This is unique across all Rollout * Sequence resources. If a Rollout Sequence resource is deleted and another resource with the diff --git a/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/RolloutStage.java b/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/RolloutStage.java index 61cdf02723f..4c35a1bf845 100644 --- a/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/RolloutStage.java +++ b/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/RolloutStage.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class RolloutStage extends com.google.api.client.json.GenericJson { + /** + * Output only. The selector from the sequence that was used to create this stage. Example CEL + * expression: resource.labels.canary == 'true' + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ClusterSelector clusterSelector; + /** * Optional. Output only. The time at which the stage ended. * The value may be {@code null}. @@ -36,6 +44,14 @@ public final class RolloutStage extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private String endTime; + /** + * Output only. The fleet projects from the sequence that was used to create this stage. Expected + * format: projects/{project_number} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List fleetProjects; + /** * Optional. Duration to soak after this stage before starting the next stage. * The value may be {@code null}. @@ -64,6 +80,25 @@ public final class RolloutStage extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String state; + /** + * Output only. The selector from the sequence that was used to create this stage. Example CEL + * expression: resource.labels.canary == 'true' + * @return value or {@code null} for none + */ + public ClusterSelector getClusterSelector() { + return clusterSelector; + } + + /** + * Output only. The selector from the sequence that was used to create this stage. Example CEL + * expression: resource.labels.canary == 'true' + * @param clusterSelector clusterSelector or {@code null} for none + */ + public RolloutStage setClusterSelector(ClusterSelector clusterSelector) { + this.clusterSelector = clusterSelector; + return this; + } + /** * Optional. Output only. The time at which the stage ended. * @return value or {@code null} for none @@ -81,6 +116,25 @@ public RolloutStage setEndTime(String endTime) { return this; } + /** + * Output only. The fleet projects from the sequence that was used to create this stage. Expected + * format: projects/{project_number} + * @return value or {@code null} for none + */ + public java.util.List getFleetProjects() { + return fleetProjects; + } + + /** + * Output only. The fleet projects from the sequence that was used to create this stage. Expected + * format: projects/{project_number} + * @param fleetProjects fleetProjects or {@code null} for none + */ + public RolloutStage setFleetProjects(java.util.List fleetProjects) { + this.fleetProjects = fleetProjects; + return this; + } + /** * Optional. Duration to soak after this stage before starting the next stage. * @return value or {@code null} for none diff --git a/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/UpgradeRolloutSequenceRequest.java b/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/UpgradeRolloutSequenceRequest.java new file mode 100644 index 00000000000..0c80d68be72 --- /dev/null +++ b/clients/google-api-services-gkehub/v1beta/2.0.0/com/google/api/services/gkehub/v1beta/model/UpgradeRolloutSequenceRequest.java @@ -0,0 +1,141 @@ +/* + * 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.gkehub.v1beta.model; + +/** + * Request message for upgrading a rollout sequence. + * + *

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 GKE Hub 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 UpgradeRolloutSequenceRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. If set to true, any rollout already running on the first stage of the sequence will + * be cancelled to allow for the creation of the new rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** + * Required. The type of upgrade. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String upgradeType; + + /** + * Required. GKE version to upgrade to. A valid GKE version available on the release channel used + * by the sequence. Patch versions from less conservative channels are allowed if their minor + * version is already available in the sequence's channel. This is similar to single-cluster + * upgrade rules, see https://cloud.google.com/kubernetes-engine/docs/how-to/upgrading-a- + * cluster#supported-versions Example: With the following versions available on the RAPID and + * REGULAR channels: * REGULAR: 1.35.3-gke.123000 * RAPID: 1.36.4-gke.321000, 1.35.6-gke.045000 + * Valid versions are 1.35.3-gke.123, 1.35.6-gke.045000 Aliases like `latest` are supported. For + * more information on valid upgrade versions and specifying cluster versions, see: + * https://cloud.google.com/kubernetes-engine/versioning#specifying_cluster_version + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String version; + + /** + * Optional. If set to true, any rollout already running on the first stage of the sequence will + * be cancelled to allow for the creation of the new rollout. + * @return value or {@code null} for none + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If set to true, any rollout already running on the first stage of the sequence will + * be cancelled to allow for the creation of the new rollout. + * @param force force or {@code null} for none + */ + public UpgradeRolloutSequenceRequest setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + /** + * Required. The type of upgrade. + * @return value or {@code null} for none + */ + public java.lang.String getUpgradeType() { + return upgradeType; + } + + /** + * Required. The type of upgrade. + * @param upgradeType upgradeType or {@code null} for none + */ + public UpgradeRolloutSequenceRequest setUpgradeType(java.lang.String upgradeType) { + this.upgradeType = upgradeType; + return this; + } + + /** + * Required. GKE version to upgrade to. A valid GKE version available on the release channel used + * by the sequence. Patch versions from less conservative channels are allowed if their minor + * version is already available in the sequence's channel. This is similar to single-cluster + * upgrade rules, see https://cloud.google.com/kubernetes-engine/docs/how-to/upgrading-a- + * cluster#supported-versions Example: With the following versions available on the RAPID and + * REGULAR channels: * REGULAR: 1.35.3-gke.123000 * RAPID: 1.36.4-gke.321000, 1.35.6-gke.045000 + * Valid versions are 1.35.3-gke.123, 1.35.6-gke.045000 Aliases like `latest` are supported. For + * more information on valid upgrade versions and specifying cluster versions, see: + * https://cloud.google.com/kubernetes-engine/versioning#specifying_cluster_version + * @return value or {@code null} for none + */ + public java.lang.String getVersion() { + return version; + } + + /** + * Required. GKE version to upgrade to. A valid GKE version available on the release channel used + * by the sequence. Patch versions from less conservative channels are allowed if their minor + * version is already available in the sequence's channel. This is similar to single-cluster + * upgrade rules, see https://cloud.google.com/kubernetes-engine/docs/how-to/upgrading-a- + * cluster#supported-versions Example: With the following versions available on the RAPID and + * REGULAR channels: * REGULAR: 1.35.3-gke.123000 * RAPID: 1.36.4-gke.321000, 1.35.6-gke.045000 + * Valid versions are 1.35.3-gke.123, 1.35.6-gke.045000 Aliases like `latest` are supported. For + * more information on valid upgrade versions and specifying cluster versions, see: + * https://cloud.google.com/kubernetes-engine/versioning#specifying_cluster_version + * @param version version or {@code null} for none + */ + public UpgradeRolloutSequenceRequest setVersion(java.lang.String version) { + this.version = version; + return this; + } + + @Override + public UpgradeRolloutSequenceRequest set(String fieldName, Object value) { + return (UpgradeRolloutSequenceRequest) super.set(fieldName, value); + } + + @Override + public UpgradeRolloutSequenceRequest clone() { + return (UpgradeRolloutSequenceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-gkehub/v1beta/2.0.0/pom.xml b/clients/google-api-services-gkehub/v1beta/2.0.0/pom.xml index c0d9d2a8828..367b90b02d1 100644 --- a/clients/google-api-services-gkehub/v1beta/2.0.0/pom.xml +++ b/clients/google-api-services-gkehub/v1beta/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-gkehub - v1beta-rev20260529-2.0.0 - GKE Hub API v1beta-rev20260529-2.0.0 + v1beta-rev20260616-2.0.0 + GKE Hub API v1beta-rev20260616-2.0.0 jar 2011 diff --git a/clients/google-api-services-gkehub/v1beta/README.md b/clients/google-api-services-gkehub/v1beta/README.md index 0488494215b..235d3e66485 100644 --- a/clients/google-api-services-gkehub/v1beta/README.md +++ b/clients/google-api-services-gkehub/v1beta/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-gkehub - v1beta-rev20260529-2.0.0 + v1beta-rev20260616-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-gkehub:v1beta-rev20260529-2.0.0' + implementation 'com.google.apis:google-api-services-gkehub:v1beta-rev20260616-2.0.0' } ``` diff --git a/clients/google-api-services-gkehub/v2/2.0.0/README.md b/clients/google-api-services-gkehub/v2/2.0.0/README.md index 75b4cecfa03..3263fe5a734 100644 --- a/clients/google-api-services-gkehub/v2/2.0.0/README.md +++ b/clients/google-api-services-gkehub/v2/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-gkehub - v2-rev20260529-2.0.0 + v2-rev20260616-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-gkehub:v2-rev20260529-2.0.0' + implementation 'com.google.apis:google-api-services-gkehub:v2-rev20260616-2.0.0' } ``` diff --git a/clients/google-api-services-gkehub/v2/2.0.0/pom.xml b/clients/google-api-services-gkehub/v2/2.0.0/pom.xml index 3e5c106578c..7a821fb7417 100644 --- a/clients/google-api-services-gkehub/v2/2.0.0/pom.xml +++ b/clients/google-api-services-gkehub/v2/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-gkehub - v2-rev20260529-2.0.0 - GKE Hub API v2-rev20260529-2.0.0 + v2-rev20260616-2.0.0 + GKE Hub API v2-rev20260616-2.0.0 jar 2011 diff --git a/clients/google-api-services-gkehub/v2/README.md b/clients/google-api-services-gkehub/v2/README.md index 75b4cecfa03..3263fe5a734 100644 --- a/clients/google-api-services-gkehub/v2/README.md +++ b/clients/google-api-services-gkehub/v2/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-gkehub - v2-rev20260529-2.0.0 + v2-rev20260616-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-gkehub:v2-rev20260529-2.0.0' + implementation 'com.google.apis:google-api-services-gkehub:v2-rev20260616-2.0.0' } ``` diff --git a/clients/google-api-services-gkehub/v2alpha/2.0.0/README.md b/clients/google-api-services-gkehub/v2alpha/2.0.0/README.md index 9966ee73fc3..00cd4d1c41a 100644 --- a/clients/google-api-services-gkehub/v2alpha/2.0.0/README.md +++ b/clients/google-api-services-gkehub/v2alpha/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-gkehub - v2alpha-rev20260529-2.0.0 + v2alpha-rev20260616-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-gkehub:v2alpha-rev20260529-2.0.0' + implementation 'com.google.apis:google-api-services-gkehub:v2alpha-rev20260616-2.0.0' } ``` diff --git a/clients/google-api-services-gkehub/v2alpha/2.0.0/pom.xml b/clients/google-api-services-gkehub/v2alpha/2.0.0/pom.xml index 3a973825483..768d163f0a1 100644 --- a/clients/google-api-services-gkehub/v2alpha/2.0.0/pom.xml +++ b/clients/google-api-services-gkehub/v2alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-gkehub - v2alpha-rev20260529-2.0.0 - GKE Hub API v2alpha-rev20260529-2.0.0 + v2alpha-rev20260616-2.0.0 + GKE Hub API v2alpha-rev20260616-2.0.0 jar 2011 diff --git a/clients/google-api-services-gkehub/v2alpha/README.md b/clients/google-api-services-gkehub/v2alpha/README.md index 9966ee73fc3..00cd4d1c41a 100644 --- a/clients/google-api-services-gkehub/v2alpha/README.md +++ b/clients/google-api-services-gkehub/v2alpha/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-gkehub - v2alpha-rev20260529-2.0.0 + v2alpha-rev20260616-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-gkehub:v2alpha-rev20260529-2.0.0' + implementation 'com.google.apis:google-api-services-gkehub:v2alpha-rev20260616-2.0.0' } ``` diff --git a/clients/google-api-services-gkehub/v2beta/2.0.0/README.md b/clients/google-api-services-gkehub/v2beta/2.0.0/README.md index 6bcca8279c7..091f156a9a9 100644 --- a/clients/google-api-services-gkehub/v2beta/2.0.0/README.md +++ b/clients/google-api-services-gkehub/v2beta/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-gkehub - v2beta-rev20260529-2.0.0 + v2beta-rev20260616-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-gkehub:v2beta-rev20260529-2.0.0' + implementation 'com.google.apis:google-api-services-gkehub:v2beta-rev20260616-2.0.0' } ``` diff --git a/clients/google-api-services-gkehub/v2beta/2.0.0/pom.xml b/clients/google-api-services-gkehub/v2beta/2.0.0/pom.xml index 05e93c610d0..67c9bfb1ec1 100644 --- a/clients/google-api-services-gkehub/v2beta/2.0.0/pom.xml +++ b/clients/google-api-services-gkehub/v2beta/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-gkehub - v2beta-rev20260529-2.0.0 - GKE Hub API v2beta-rev20260529-2.0.0 + v2beta-rev20260616-2.0.0 + GKE Hub API v2beta-rev20260616-2.0.0 jar 2011 diff --git a/clients/google-api-services-gkehub/v2beta/README.md b/clients/google-api-services-gkehub/v2beta/README.md index 6bcca8279c7..091f156a9a9 100644 --- a/clients/google-api-services-gkehub/v2beta/README.md +++ b/clients/google-api-services-gkehub/v2beta/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-gkehub - v2beta-rev20260529-2.0.0 + v2beta-rev20260616-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-gkehub:v2beta-rev20260529-2.0.0' + implementation 'com.google.apis:google-api-services-gkehub:v2beta-rev20260616-2.0.0' } ```