The typical use is:
+ *+ * {@code CloudDeploy clouddeploy = new CloudDeploy(...);} + * {@code CloudDeploy.DeployPolicies.List request = clouddeploy.deployPolicies().list(parameters ...)} + *+ * + * @return the resource collection + */ + public DeployPolicies deployPolicies() { + return new DeployPolicies(); + } + + /** + * The "deployPolicies" collection of methods. + */ + public class DeployPolicies { + + /** + * Creates a new DeployPolicy in a given project and location. + * + * Create a request for the method "deployPolicies.create". + * + * This request holds the parameters needed by the clouddeploy server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent collection in which the `DeployPolicy` must be created. The format is + * `projects/{project_id}/locations/{location_name}`. + * @param content the {@link com.google.api.services.clouddeploy.v1.model.DeployPolicy} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.clouddeploy.v1.model.DeployPolicy content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CloudDeployRequest
{@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 collection in which the `DeployPolicy` must be created. The format is + * `projects/{project_id}/locations/{location_name}`. + * @param content the {@link com.google.api.services.clouddeploy.v1.model.DeployPolicy} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.clouddeploy.v1.model.DeployPolicy content) { + super(CloudDeploy.this, "POST", REST_PATH, content, com.google.api.services.clouddeploy.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 collection in which the `DeployPolicy` must be created. The format + * is `projects/{project_id}/locations/{location_name}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent collection in which the `DeployPolicy` must be created. The format is + `projects/{project_id}/locations/{location_name}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent collection in which the `DeployPolicy` must be created. The format + * is `projects/{project_id}/locations/{location_name}`. + */ + 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. ID of the `DeployPolicy`. */ + @com.google.api.client.util.Key + private java.lang.String deployPolicyId; + + /** Required. ID of the `DeployPolicy`. + */ + public java.lang.String getDeployPolicyId() { + return deployPolicyId; + } + + /** Required. ID of the `DeployPolicy`. */ + public Create setDeployPolicyId(java.lang.String deployPolicyId) { + this.deployPolicyId = deployPolicyId; + return this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server knows to ignore the request if it has already been + * completed. The server guarantees 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 knows to ignore the request if it has already been completed. The server + guarantees 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 knows to ignore the request if it has already been + * completed. The server guarantees 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 Create setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Optional. If set to true, the request is validated and the user is provided with an + * expected result, but no actual change is made. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** Optional. If set to true, the request is validated and the user is provided with an expected + result, but no actual change is made. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. If set to true, the request is validated and the user is provided with an + * expected result, but no actual change is made. + */ + public Create setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single DeployPolicy. + * + * Create a request for the method "deployPolicies.delete". + * + * This request holds the parameters needed by the clouddeploy server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the `DeployPolicy` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. + * @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 CloudDeployRequest{@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 `DeployPolicy` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CloudDeploy.this, "DELETE", REST_PATH, null, com.google.api.services.clouddeploy.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/[^/]+/deployPolicies/[^/]+$"); + } + } + + @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 `DeployPolicy` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the `DeployPolicy` to delete. The format is + `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the `DeployPolicy` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. + */ + 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/[^/]+/deployPolicies/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. If set to true, then deleting an already deleted or non-existing + * `DeployPolicy` will succeed. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allowMissing; + + /** Optional. If set to true, then deleting an already deleted or non-existing `DeployPolicy` will + succeed. + */ + public java.lang.Boolean getAllowMissing() { + return allowMissing; + } + + /** + * Optional. If set to true, then deleting an already deleted or non-existing + * `DeployPolicy` will succeed. + */ + public Delete setAllowMissing(java.lang.Boolean allowMissing) { + this.allowMissing = allowMissing; + return this; + } + + /** + * Optional. This checksum is computed by the server based on the value of other fields, + * and may be sent on update and delete requests to ensure the client has an up-to-date + * value before proceeding. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. This checksum is computed by the server based on the value of other fields, and may be + sent on update and delete requests to ensure the client has an up-to-date value before proceeding. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. This checksum is computed by the server based on the value of other fields, + * and may be sent on update and delete requests to ensure the client has an up-to-date + * value before proceeding. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server knows to ignore the request if it has already been + * completed. The server guarantees 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 knows to ignore the request if it has already been completed. The server + guarantees 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 knows to ignore the request if it has already been + * completed. The server guarantees 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; + } + + /** + * Optional. If set, validate the request and preview the review, but do not actually post + * it. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** Optional. If set, validate the request and preview the review, but do not actually post it. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. If set, validate the request and preview the review, but do not actually post + * it. + */ + public Delete setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single DeployPolicy. + * + * Create a request for the method "deployPolicies.get". + * + * This request holds the parameters needed by the clouddeploy server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the `DeployPolicy`. Format must be + * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. + * @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 CloudDeployRequest+ * {@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. Name of the `DeployPolicy`. Format must be + * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudDeploy.this, "GET", REST_PATH, null, com.google.api.services.clouddeploy.v1.model.DeployPolicy.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/[^/]+/deployPolicies/[^/]+$"); + } + } + + @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. Name of the `DeployPolicy`. Format must be + * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the `DeployPolicy`. Format must be + `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the `DeployPolicy`. Format must be + * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. + */ + 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/[^/]+/deployPolicies/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists DeployPolicies in a given project and location. + * + * Create a request for the method "deployPolicies.list". + * + * This request holds the parameters needed by the clouddeploy 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 deploy policies. Format must be + * `projects/{project_id}/locations/{location_name}`. + * @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 CloudDeployRequest+ * {@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 deploy policies. Format must be + * `projects/{project_id}/locations/{location_name}`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudDeploy.this, "GET", REST_PATH, null, com.google.api.services.clouddeploy.v1.model.ListDeployPoliciesResponse.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 deploy policies. Format must be + * `projects/{project_id}/locations/{location_name}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent, which owns this collection of deploy policies. Format must be + `projects/{project_id}/locations/{location_name}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent, which owns this collection of deploy policies. Format must be + * `projects/{project_id}/locations/{location_name}`. + */ + 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; + } + + /** + * Filter deploy policies to be returned. See https://google.aip.dev/160 for more details. + * All fields can be used in the filter. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Filter deploy policies to be returned. See https://google.aip.dev/160 for more details. All fields + can be used in the filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Filter deploy policies to be returned. See https://google.aip.dev/160 for more details. + * All fields can be used in the filter. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Field to sort by. See https://google.aip.dev/132#ordering for more details. */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Field to sort by. See https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Field to sort by. See https://google.aip.dev/132#ordering for more details. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * The maximum number of deploy policies to return. The service may return fewer than this + * value. If unspecified, at most 50 deploy policies will be returned. The maximum value + * is 1000; values above 1000 will be set to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of deploy policies to return. The service may return fewer than this value. If + unspecified, at most 50 deploy policies will be returned. The maximum value is 1000; values above + 1000 will be set to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of deploy policies to return. The service may return fewer than this + * value. If unspecified, at most 50 deploy policies will be returned. The maximum value + * is 1000; values above 1000 will be set to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous `ListDeployPolicies` call. Provide this to + * retrieve the subsequent page. When paginating, all other provided parameters 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 `ListDeployPolicies` call. Provide this to retrieve the + subsequent page. When paginating, all other provided parameters match the call that provided the + page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous `ListDeployPolicies` call. Provide this to + * retrieve the subsequent page. When paginating, all other provided parameters 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 the parameters of a single DeployPolicy. + * + * Create a request for the method "deployPolicies.patch". + * + * This request holds the parameters needed by the clouddeploy server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Output only. Name of the `DeployPolicy`. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. The + * `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * @param content the {@link com.google.api.services.clouddeploy.v1.model.DeployPolicy} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.clouddeploy.v1.model.DeployPolicy content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CloudDeployRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Output only. Name of the `DeployPolicy`. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. The + * `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * @param content the {@link com.google.api.services.clouddeploy.v1.model.DeployPolicy} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.clouddeploy.v1.model.DeployPolicy content) { + super(CloudDeploy.this, "PATCH", REST_PATH, content, com.google.api.services.clouddeploy.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/[^/]+/deployPolicies/[^/]+$"); + } + } + + @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); + } + + /** + * Output only. Name of the `DeployPolicy`. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. The + * `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Output only. Name of the `DeployPolicy`. Format is + `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. The `deployPolicy` + component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. Name of the `DeployPolicy`. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. The + * `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + */ + 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/[^/]+/deployPolicies/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. If set to true, updating a `DeployPolicy` that does not exist will result in + * the creation of a new `DeployPolicy`. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allowMissing; + + /** Optional. If set to true, updating a `DeployPolicy` that does not exist will result in the creation + of a new `DeployPolicy`. + */ + public java.lang.Boolean getAllowMissing() { + return allowMissing; + } + + /** + * Optional. If set to true, updating a `DeployPolicy` that does not exist will result in + * the creation of a new `DeployPolicy`. + */ + public Patch setAllowMissing(java.lang.Boolean allowMissing) { + this.allowMissing = allowMissing; + return this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server knows to ignore the request if it has already been + * completed. The server guarantees 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 knows to ignore the request if it has already been completed. The server + guarantees 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 knows to ignore the request if it has already been + * completed. The server guarantees 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Required. Field mask is used to specify the fields to be overwritten by the update in + * the `DeployPolicy` resource. The fields specified in the update_mask are relative to + * the resource, not the full request. A field will be overwritten if it's in the mask. If + * the user doesn't provide a mask then all fields are overwritten. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. Field mask is used to specify the fields to be overwritten by the update in the + `DeployPolicy` resource. The fields specified in the update_mask are relative to the resource, not + the full request. A field will be overwritten if it's in the mask. If the user doesn't provide a + mask then all fields are overwritten. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Required. Field mask is used to specify the fields to be overwritten by the update in + * the `DeployPolicy` resource. The fields specified in the update_mask are relative to + * the resource, not the full request. A field will be overwritten if it's in the mask. If + * the user doesn't provide a mask then all fields are overwritten. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + /** + * Optional. If set to true, the request is validated and the user is provided with an + * expected result, but no actual change is made. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** Optional. If set to true, the request is validated and the user is provided with an expected + result, but no actual change is made. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. If set to true, the request is validated and the user is provided with an + * expected result, but no actual change is made. + */ + public Patch setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } /** * An accessor for creating requests from the Operations collection. * diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AdvanceRolloutRequest.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AdvanceRolloutRequest.java index 42e960ea1b6..8d912c6a040 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AdvanceRolloutRequest.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AdvanceRolloutRequest.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class AdvanceRolloutRequest extends com.google.api.client.json.GenericJson { + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.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 Cloud Deploy API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DeliveryPipelineAttribute extends com.google.api.client.json.GenericJson { + + /** + * ID of the `DeliveryPipeline`. The value of this field could be one of the following: * The last + * segment of a pipeline name * "*", all delivery pipelines in a location + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * DeliveryPipeline labels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.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 Cloud Deploy API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DeployPolicy extends com.google.api.client.json.GenericJson { + + /** + * User annotations. These attributes can only be set and used by the user, and not by Cloud + * Deploy. Annotations must meet the following constraints: * Annotations are key/value pairs. * + * Valid annotation keys have two segments: an optional prefix and name, separated by a slash + * (`/`). * The name segment is required and must be 63 characters or less, beginning and ending + * with an alphanumeric character (`[a-z0-9A-Z]`) with dashes (`-`), underscores (`_`), dots + * (`.`), and alphanumerics between. * The prefix is optional. If specified, the prefix must be a + * DNS subdomain: a series of DNS labels separated by dots(`.`), not longer than 253 characters in + * total, followed by a slash (`/`). See https://kubernetes.io/docs/concepts/overview/working- + * with-objects/annotations/#syntax-and-character-set for more details. + * 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 Cloud Deploy API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DeployPolicyEvaluationEvent extends com.google.api.client.json.GenericJson { + + /** + * Whether the request is allowed. Allowed is set as true if: (1) the request complies with the + * policy; or (2) the request doesn't comply with the policy but the policy was overridden; or (3) + * the request doesn't comply with the policy but the policy was suspended + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allowed; + + /** + * The name of the `Delivery Pipeline`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deliveryPipeline; + + /** + * The name of the `DeployPolicy`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deployPolicy; + + /** + * Unique identifier of the `DeployPolicy`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deployPolicyUid; + + /** + * What invoked the action (e.g. a user or automation). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String invoker; + + /** + * Debug message for when a deploy policy event occurs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * Things that could have overridden the policy verdict. Overrides together with verdict decide + * whether the request is allowed. + * 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 Cloud Deploy API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DeployPolicyResourceSelector extends com.google.api.client.json.GenericJson { + + /** + * Optional. Contains attributes about a delivery pipeline. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DeliveryPipelineAttribute deliveryPipeline; + + /** + * Optional. Contains attributes about a target. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TargetAttribute target; + + /** + * Optional. Contains attributes about a delivery pipeline. + * @return value or {@code null} for none + */ + public DeliveryPipelineAttribute getDeliveryPipeline() { + return deliveryPipeline; + } + + /** + * Optional. Contains attributes about a delivery pipeline. + * @param deliveryPipeline deliveryPipeline or {@code null} for none + */ + public DeployPolicyResourceSelector setDeliveryPipeline(DeliveryPipelineAttribute deliveryPipeline) { + this.deliveryPipeline = deliveryPipeline; + return this; + } + + /** + * Optional. Contains attributes about a target. + * @return value or {@code null} for none + */ + public TargetAttribute getTarget() { + return target; + } + + /** + * Optional. Contains attributes about a target. + * @param target target or {@code null} for none + */ + public DeployPolicyResourceSelector setTarget(TargetAttribute target) { + this.target = target; + return this; + } + + @Override + public DeployPolicyResourceSelector set(String fieldName, Object value) { + return (DeployPolicyResourceSelector) super.set(fieldName, value); + } + + @Override + public DeployPolicyResourceSelector clone() { + return (DeployPolicyResourceSelector) super.clone(); + } + +} diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/IgnoreJobRequest.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/IgnoreJobRequest.java index b0fd426ce86..7d4fa78a3eb 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/IgnoreJobRequest.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/IgnoreJobRequest.java @@ -36,6 +36,14 @@ public final class IgnoreJobRequest extends com.google.api.client.json.GenericJs @com.google.api.client.util.Key private java.lang.String jobId; + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.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 Cloud Deploy API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListDeployPoliciesResponse extends com.google.api.client.json.GenericJson { + + /** + * The `DeployPolicy` objects. + * 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 Cloud Deploy API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OneTimeWindow extends com.google.api.client.json.GenericJson { + + /** + * Required. End date. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Date endDate; + + /** + * Required. End time (exclusive). You may use 24:00 for the end of the day. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TimeOfDay endTime; + + /** + * Required. Start date. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Date startDate; + + /** + * Required. Start time (inclusive). Use 00:00 for the beginning of the day. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TimeOfDay startTime; + + /** + * Required. End date. + * @return value or {@code null} for none + */ + public Date getEndDate() { + return endDate; + } + + /** + * Required. End date. + * @param endDate endDate or {@code null} for none + */ + public OneTimeWindow setEndDate(Date endDate) { + this.endDate = endDate; + return this; + } + + /** + * Required. End time (exclusive). You may use 24:00 for the end of the day. + * @return value or {@code null} for none + */ + public TimeOfDay getEndTime() { + return endTime; + } + + /** + * Required. End time (exclusive). You may use 24:00 for the end of the day. + * @param endTime endTime or {@code null} for none + */ + public OneTimeWindow setEndTime(TimeOfDay endTime) { + this.endTime = endTime; + return this; + } + + /** + * Required. Start date. + * @return value or {@code null} for none + */ + public Date getStartDate() { + return startDate; + } + + /** + * Required. Start date. + * @param startDate startDate or {@code null} for none + */ + public OneTimeWindow setStartDate(Date startDate) { + this.startDate = startDate; + return this; + } + + /** + * Required. Start time (inclusive). Use 00:00 for the beginning of the day. + * @return value or {@code null} for none + */ + public TimeOfDay getStartTime() { + return startTime; + } + + /** + * Required. Start time (inclusive). Use 00:00 for the beginning of the day. + * @param startTime startTime or {@code null} for none + */ + public OneTimeWindow setStartTime(TimeOfDay startTime) { + this.startTime = startTime; + return this; + } + + @Override + public OneTimeWindow set(String fieldName, Object value) { + return (OneTimeWindow) super.set(fieldName, value); + } + + @Override + public OneTimeWindow clone() { + return (OneTimeWindow) super.clone(); + } + +} diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PolicyRule.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PolicyRule.java new file mode 100644 index 00000000000..bf4c6a0004d --- /dev/null +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PolicyRule.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.clouddeploy.v1.model; + +/** + * Deploy Policy rule. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud Deploy API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PolicyRule extends com.google.api.client.json.GenericJson { + + /** + * Rollout restrictions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RolloutRestriction rolloutRestriction; + + /** + * Rollout restrictions. + * @return value or {@code null} for none + */ + public RolloutRestriction getRolloutRestriction() { + return rolloutRestriction; + } + + /** + * Rollout restrictions. + * @param rolloutRestriction rolloutRestriction or {@code null} for none + */ + public PolicyRule setRolloutRestriction(RolloutRestriction rolloutRestriction) { + this.rolloutRestriction = rolloutRestriction; + return this; + } + + @Override + public PolicyRule set(String fieldName, Object value) { + return (PolicyRule) super.set(fieldName, value); + } + + @Override + public PolicyRule clone() { + return (PolicyRule) super.clone(); + } + +} diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PolicyViolation.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PolicyViolation.java new file mode 100644 index 00000000000..b9f8b028c39 --- /dev/null +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/PolicyViolation.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.clouddeploy.v1.model; + +/** + * Returned from an action if one or more policies were violated, and therefore the action was + * prevented. Contains information about what policies were violated and why. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud Deploy API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PolicyViolation extends com.google.api.client.json.GenericJson { + + /** + * Policy violation details. + * 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 Cloud Deploy API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PolicyViolationDetails extends com.google.api.client.json.GenericJson { + + /** + * User readable message about why the request violated a policy. This is not intended for machine + * parsing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String failureMessage; + + /** + * Name of the policy that was violated. Policy resource will be in the format of + * `projects/{project}/locations/{location}/policies/{policy}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policy; + + /** + * Id of the rule that triggered the policy violation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ruleId; + + /** + * User readable message about why the request violated a policy. This is not intended for machine + * parsing. + * @return value or {@code null} for none + */ + public java.lang.String getFailureMessage() { + return failureMessage; + } + + /** + * User readable message about why the request violated a policy. This is not intended for machine + * parsing. + * @param failureMessage failureMessage or {@code null} for none + */ + public PolicyViolationDetails setFailureMessage(java.lang.String failureMessage) { + this.failureMessage = failureMessage; + return this; + } + + /** + * Name of the policy that was violated. Policy resource will be in the format of + * `projects/{project}/locations/{location}/policies/{policy}`. + * @return value or {@code null} for none + */ + public java.lang.String getPolicy() { + return policy; + } + + /** + * Name of the policy that was violated. Policy resource will be in the format of + * `projects/{project}/locations/{location}/policies/{policy}`. + * @param policy policy or {@code null} for none + */ + public PolicyViolationDetails setPolicy(java.lang.String policy) { + this.policy = policy; + return this; + } + + /** + * Id of the rule that triggered the policy violation. + * @return value or {@code null} for none + */ + public java.lang.String getRuleId() { + return ruleId; + } + + /** + * Id of the rule that triggered the policy violation. + * @param ruleId ruleId or {@code null} for none + */ + public PolicyViolationDetails setRuleId(java.lang.String ruleId) { + this.ruleId = ruleId; + return this; + } + + @Override + public PolicyViolationDetails set(String fieldName, Object value) { + return (PolicyViolationDetails) super.set(fieldName, value); + } + + @Override + public PolicyViolationDetails clone() { + return (PolicyViolationDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/RetryJobRequest.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/RetryJobRequest.java index d257421ace7..791f87cf0b1 100644 --- a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/RetryJobRequest.java +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/RetryJobRequest.java @@ -36,6 +36,14 @@ public final class RetryJobRequest extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private java.lang.String jobId; + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.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 Cloud Deploy API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RolloutRestriction extends com.google.api.client.json.GenericJson { + + /** + * Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions + * will be restricted. + * 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 Cloud Deploy API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TimeOfDay extends com.google.api.client.json.GenericJson { + + /** + * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value + * "24:00:00" for scenarios like business closing time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer hours; + + /** + * Minutes of hour of day. Must be from 0 to 59. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer minutes; + + /** + * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer nanos; + + /** + * Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if + * it allows leap-seconds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer seconds; + + /** + * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value + * "24:00:00" for scenarios like business closing time. + * @return value or {@code null} for none + */ + public java.lang.Integer getHours() { + return hours; + } + + /** + * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value + * "24:00:00" for scenarios like business closing time. + * @param hours hours or {@code null} for none + */ + public TimeOfDay setHours(java.lang.Integer hours) { + this.hours = hours; + return this; + } + + /** + * Minutes of hour of day. Must be from 0 to 59. + * @return value or {@code null} for none + */ + public java.lang.Integer getMinutes() { + return minutes; + } + + /** + * Minutes of hour of day. Must be from 0 to 59. + * @param minutes minutes or {@code null} for none + */ + public TimeOfDay setMinutes(java.lang.Integer minutes) { + this.minutes = minutes; + return this; + } + + /** + * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + * @return value or {@code null} for none + */ + public java.lang.Integer getNanos() { + return nanos; + } + + /** + * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + * @param nanos nanos or {@code null} for none + */ + public TimeOfDay setNanos(java.lang.Integer nanos) { + this.nanos = nanos; + return this; + } + + /** + * Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if + * it allows leap-seconds. + * @return value or {@code null} for none + */ + public java.lang.Integer getSeconds() { + return seconds; + } + + /** + * Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if + * it allows leap-seconds. + * @param seconds seconds or {@code null} for none + */ + public TimeOfDay setSeconds(java.lang.Integer seconds) { + this.seconds = seconds; + return this; + } + + @Override + public TimeOfDay set(String fieldName, Object value) { + return (TimeOfDay) super.set(fieldName, value); + } + + @Override + public TimeOfDay clone() { + return (TimeOfDay) super.clone(); + } + +} diff --git a/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimeWindows.java b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimeWindows.java new file mode 100644 index 00000000000..7939dd348a0 --- /dev/null +++ b/clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/TimeWindows.java @@ -0,0 +1,123 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.clouddeploy.v1.model; + +/** + * Time windows within which actions are restricted. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud Deploy API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TimeWindows extends com.google.api.client.json.GenericJson { + + /** + * Optional. One-time windows within which actions are restricted. + * 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 Cloud Deploy API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class WeeklyWindow extends com.google.api.client.json.GenericJson { + + /** + * Optional. Days of week. If left empty, all days of the week will be included. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List