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:
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{@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{@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{@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{@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{@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+ * {@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{@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{@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{@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{@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{@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{@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{@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.MapThis 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.MapThis 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.MapThis 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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 @@+ * {@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{@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.MapThis 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 @@+ * {@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{@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.MapThis 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 @@