diff --git a/clients/google-api-services-backupdr/v1/2.0.0/README.md b/clients/google-api-services-backupdr/v1/2.0.0/README.md
index 08f1b4334e1..27f9e82324f 100644
--- a/clients/google-api-services-backupdr/v1/2.0.0/README.md
+++ b/clients/google-api-services-backupdr/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
The typical use is:
+ *
+ * {@code Backupdr backupdr = new Backupdr(...);}
+ * {@code Backupdr.RestoreTemplates.List request = backupdr.restoreTemplates().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public RestoreTemplates restoreTemplates() {
+ return new RestoreTemplates();
+ }
+
+ /**
+ * The "restoreTemplates" collection of methods.
+ */
+ public class RestoreTemplates {
+
+ /**
+ * Creates a new RestoreTemplate in a given project and location.
+ *
+ * Create a request for the method "restoreTemplates.create".
+ *
+ * This request holds the parameters needed by the backupdr server. After setting any optional
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The restore template project and location in the format
+ * 'projects/{project_id}/locations/{location}'.
+ * @param content the {@link com.google.api.services.backupdr.v1.model.RestoreTemplate}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.backupdr.v1.model.RestoreTemplate content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends BackupdrRequest{@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 restore template project and location in the format + * 'projects/{project_id}/locations/{location}'. + * @param content the {@link com.google.api.services.backupdr.v1.model.RestoreTemplate} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.backupdr.v1.model.RestoreTemplate content) { + super(Backupdr.this, "POST", REST_PATH, content, com.google.api.services.backupdr.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 restore template project and location in the format + * 'projects/{project_id}/locations/{location}'. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The restore template project and location in the format + 'projects/{project_id}/locations/{location}'. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The restore template project and location in the format + * 'projects/{project_id}/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; + } + + /** + * Optional. An optional 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 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. An optional 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 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. An optional 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 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; + } + + /** + * Required. The ID of the restore template to create. The ID must be unique for the + * specified project and location. + */ + @com.google.api.client.util.Key + private java.lang.String restoreTemplateId; + + /** Required. The ID of the restore template to create. The ID must be unique for the specified project + and location. + */ + public java.lang.String getRestoreTemplateId() { + return restoreTemplateId; + } + + /** + * Required. The ID of the restore template to create. The ID must be unique for the + * specified project and location. + */ + public Create setRestoreTemplateId(java.lang.String restoreTemplateId) { + this.restoreTemplateId = restoreTemplateId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a RestoreTemplate. + * + * Create a request for the method "restoreTemplates.delete". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the restore template to delete. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + * @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 BackupdrRequest{@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 restore template to delete. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Backupdr.this, "DELETE", REST_PATH, null, com.google.api.services.backupdr.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/[^/]+/restoreTemplates/[^/]+$"); + } + } + + @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 restore template to delete. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the restore template to delete. Format: + 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the restore template to delete. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + */ + 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/[^/]+/restoreTemplates/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. If set to true, any child RestoreTemplateExecutions will also be deleted. If + * false and the RestoreTemplate has any child executions, the request will fail. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. If set to true, any child RestoreTemplateExecutions will also be deleted. If false and + the RestoreTemplate has any child executions, the request will fail. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If set to true, any child RestoreTemplateExecutions will also be deleted. If + * false and the RestoreTemplate has any child executions, the request will fail. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + /** + * Optional. An optional 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 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. An optional 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 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. An optional 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 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); + } + } + /** + * Gets details of a RestoreTemplate. + * + * Create a request for the method "restoreTemplates.get". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the restore template to retrieve. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + * @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 BackupdrRequest+ * {@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 restore template to retrieve. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Backupdr.this, "GET", REST_PATH, null, com.google.api.services.backupdr.v1.model.RestoreTemplate.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/[^/]+/restoreTemplates/[^/]+$"); + } + } + + @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 restore template to retrieve. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the restore template to retrieve. Format: + 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the restore template to retrieve. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + */ + 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/[^/]+/restoreTemplates/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists RestoreTemplates in a given project and location. + * + * Create a request for the method "restoreTemplates.list". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The project and location from which to list the restore templates. 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 BackupdrRequest+ * {@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 project and location from which to list the restore templates. Format: + * `projects/{project}/locations/{location}`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Backupdr.this, "GET", REST_PATH, null, com.google.api.services.backupdr.v1.model.ListRestoreTemplatesResponse.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 project and location from which to list the restore templates. Format: + * `projects/{project}/locations/{location}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The project and location from which to list the restore templates. Format: + `projects/{project}/locations/{location}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The project and location from which to list the restore templates. 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. Field match expression used to filter the results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Field match expression used to filter the results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Field match expression used to filter the results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. Field by which to sort the results. */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field by which to sort the results. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Field by which to sort the results. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** Optional. The maximum number of items to return. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of items to return. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Optional. The maximum number of items to return. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A page token, received from a previous `ListRestoreTemplates` call. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListRestoreTemplates` call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A page token, received from a previous `ListRestoreTemplates` call. */ + 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 settings of a RestoreTemplate. + * + * Create a request for the method "restoreTemplates.patch". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The resource name of the RestoreTemplate. + * @param content the {@link com.google.api.services.backupdr.v1.model.RestoreTemplate} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.backupdr.v1.model.RestoreTemplate content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends BackupdrRequest{@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. The resource name of the RestoreTemplate. + * @param content the {@link com.google.api.services.backupdr.v1.model.RestoreTemplate} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.backupdr.v1.model.RestoreTemplate content) { + super(Backupdr.this, "PATCH", REST_PATH, content, com.google.api.services.backupdr.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/[^/]+/restoreTemplates/[^/]+$"); + } + } + + @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. The resource name of the RestoreTemplate. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name of the RestoreTemplate. + */ + public java.lang.String getName() { + return name; + } + + /** Identifier. The resource name of the RestoreTemplate. */ + 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/[^/]+/restoreTemplates/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional 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 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. An optional 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 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. An optional 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 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; + } + + /** + * Optional. The list of fields to update. Field mask is used to specify the fields to be + * overwritten in the RestoreTemplate resource by the update. The fields specified in the + * update_mask are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The list of fields to update. Field mask is used to specify the fields to be overwritten + in the RestoreTemplate resource by the update. The fields specified in the update_mask are relative + to the resource, not the full request. A field will be overwritten if it is in the mask. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. The list of fields to update. Field mask is used to specify the fields to be + * overwritten in the RestoreTemplate resource by the update. The fields specified in the + * update_mask are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. The default is + * 'false'. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** Optional. Only validate the request, but do not perform mutations. The default is 'false'. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. Only validate the request, but do not perform mutations. The default is + * 'false'. + */ + 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); + } + } + /** + * Runs a RestoreTemplate. + * + * Create a request for the method "restoreTemplates.run". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link Run#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the restore template to run. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + * @param content the {@link com.google.api.services.backupdr.v1.model.RunRestoreTemplateRequest} + * @return the request + */ + public Run run(java.lang.String name, com.google.api.services.backupdr.v1.model.RunRestoreTemplateRequest content) throws java.io.IOException { + Run result = new Run(name, content); + initialize(result); + return result; + } + + public class Run extends BackupdrRequest+ * {@link Run#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 restore template to run. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + * @param content the {@link com.google.api.services.backupdr.v1.model.RunRestoreTemplateRequest} + * @since 1.13 + */ + protected Run(java.lang.String name, com.google.api.services.backupdr.v1.model.RunRestoreTemplateRequest content) { + super(Backupdr.this, "POST", REST_PATH, content, com.google.api.services.backupdr.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/[^/]+/restoreTemplates/[^/]+$"); + } + } + + @Override + public Run set$Xgafv(java.lang.String $Xgafv) { + return (Run) super.set$Xgafv($Xgafv); + } + + @Override + public Run setAccessToken(java.lang.String accessToken) { + return (Run) super.setAccessToken(accessToken); + } + + @Override + public Run setAlt(java.lang.String alt) { + return (Run) super.setAlt(alt); + } + + @Override + public Run setCallback(java.lang.String callback) { + return (Run) super.setCallback(callback); + } + + @Override + public Run setFields(java.lang.String fields) { + return (Run) super.setFields(fields); + } + + @Override + public Run setKey(java.lang.String key) { + return (Run) super.setKey(key); + } + + @Override + public Run setOauthToken(java.lang.String oauthToken) { + return (Run) super.setOauthToken(oauthToken); + } + + @Override + public Run setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Run) super.setPrettyPrint(prettyPrint); + } + + @Override + public Run setQuotaUser(java.lang.String quotaUser) { + return (Run) super.setQuotaUser(quotaUser); + } + + @Override + public Run setUploadType(java.lang.String uploadType) { + return (Run) super.setUploadType(uploadType); + } + + @Override + public Run setUploadProtocol(java.lang.String uploadProtocol) { + return (Run) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the restore template to run. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the restore template to run. Format: + 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the restore template to run. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + */ + public Run 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/[^/]+/restoreTemplates/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Run set(String parameterName, Object value) { + return (Run) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Executions collection. + * + *The typical use is:
+ *
+ * {@code Backupdr backupdr = new Backupdr(...);}
+ * {@code Backupdr.Executions.List request = backupdr.executions().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Executions executions() {
+ return new Executions();
+ }
+
+ /**
+ * The "executions" collection of methods.
+ */
+ public class Executions {
+
+ /**
+ * Gets details of a RestoreTemplateExecution.
+ *
+ * Create a request for the method "executions.get".
+ *
+ * This request holds the parameters needed by the backupdr server. After setting any optional
+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ *
+ * @param name Required. The name of the restore template execution to retrieve. Format: 'projects/{project_id}/loc
+ * ations/{location}/restoreTemplates/{restore_template_id}/executions/{execution_id}'
+ * @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 BackupdrRequest+ * {@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 restore template execution to retrieve. Format: 'projects/{project_id}/loc + * ations/{location}/restoreTemplates/{restore_template_id}/executions/{execution_id}' + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Backupdr.this, "GET", REST_PATH, null, com.google.api.services.backupdr.v1.model.RestoreTemplateExecution.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/[^/]+/restoreTemplates/[^/]+/executions/[^/]+$"); + } + } + + @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 restore template execution to retrieve. Format: 'projects/{ + * project_id}/locations/{location}/restoreTemplates/{restore_template_id}/executions/{e + * xecution_id}' + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the restore template execution to retrieve. Format: 'projects/{project_id}/lo + cations/{location}/restoreTemplates/{restore_template_id}/executions/{execution_id}' + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the restore template execution to retrieve. Format: 'projects/{ + * project_id}/locations/{location}/restoreTemplates/{restore_template_id}/executions/{e + * xecution_id}' + */ + 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/[^/]+/restoreTemplates/[^/]+/executions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists RestoreTemplateExecutions in a given project, location and restore template. + * + * Create a request for the method "executions.list". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The project, location, and restore template for which to retrieve executions information. + * Format: `projects/{project}/locations/{location}/restoreTemplates/{restore_template}`. + * @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 BackupdrRequest+ * {@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 project, location, and restore template for which to retrieve executions information. + * Format: `projects/{project}/locations/{location}/restoreTemplates/{restore_template}`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Backupdr.this, "GET", REST_PATH, null, com.google.api.services.backupdr.v1.model.ListRestoreTemplateExecutionsResponse.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/[^/]+/restoreTemplates/[^/]+$"); + } + } + + @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 project, location, and restore template for which to retrieve + * executions information. Format: + * `projects/{project}/locations/{location}/restoreTemplates/{restore_template}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The project, location, and restore template for which to retrieve executions information. + Format: `projects/{project}/locations/{location}/restoreTemplates/{restore_template}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The project, location, and restore template for which to retrieve + * executions information. Format: + * `projects/{project}/locations/{location}/restoreTemplates/{restore_template}`. + */ + 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/[^/]+/restoreTemplates/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. Filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filtering results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Filtering results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. Hint for how to order the results. */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Hint for how to order the results. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Hint for how to order the results. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** Optional. Requested page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Optional. Requested page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A token identifying a page of results. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token identifying a page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A token identifying a page of results. */ + 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); + } + } + /** + * Triggers cleanup of restored resources created during execution. + * + * Create a request for the method "executions.triggerRestoreCleanup". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link TriggerRestoreCleanup#execute()} method to invoke the remote + * operation. + * + * @param name Required. Name of the restore template execution. Format: 'projects/{project_id}/locations/{location + * }/restoreTemplates/{restore_template_id}/executions/{execution_id}' + * @param content the {@link com.google.api.services.backupdr.v1.model.TriggerRestoreCleanupRequest} + * @return the request + */ + public TriggerRestoreCleanup triggerRestoreCleanup(java.lang.String name, com.google.api.services.backupdr.v1.model.TriggerRestoreCleanupRequest content) throws java.io.IOException { + TriggerRestoreCleanup result = new TriggerRestoreCleanup(name, content); + initialize(result); + return result; + } + + public class TriggerRestoreCleanup extends BackupdrRequest{@link TriggerRestoreCleanup#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 restore template execution. Format: 'projects/{project_id}/locations/{location + * }/restoreTemplates/{restore_template_id}/executions/{execution_id}' + * @param content the {@link com.google.api.services.backupdr.v1.model.TriggerRestoreCleanupRequest} + * @since 1.13 + */ + protected TriggerRestoreCleanup(java.lang.String name, com.google.api.services.backupdr.v1.model.TriggerRestoreCleanupRequest content) { + super(Backupdr.this, "POST", REST_PATH, content, com.google.api.services.backupdr.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/[^/]+/restoreTemplates/[^/]+/executions/[^/]+$"); + } + } + + @Override + public TriggerRestoreCleanup set$Xgafv(java.lang.String $Xgafv) { + return (TriggerRestoreCleanup) super.set$Xgafv($Xgafv); + } + + @Override + public TriggerRestoreCleanup setAccessToken(java.lang.String accessToken) { + return (TriggerRestoreCleanup) super.setAccessToken(accessToken); + } + + @Override + public TriggerRestoreCleanup setAlt(java.lang.String alt) { + return (TriggerRestoreCleanup) super.setAlt(alt); + } + + @Override + public TriggerRestoreCleanup setCallback(java.lang.String callback) { + return (TriggerRestoreCleanup) super.setCallback(callback); + } + + @Override + public TriggerRestoreCleanup setFields(java.lang.String fields) { + return (TriggerRestoreCleanup) super.setFields(fields); + } + + @Override + public TriggerRestoreCleanup setKey(java.lang.String key) { + return (TriggerRestoreCleanup) super.setKey(key); + } + + @Override + public TriggerRestoreCleanup setOauthToken(java.lang.String oauthToken) { + return (TriggerRestoreCleanup) super.setOauthToken(oauthToken); + } + + @Override + public TriggerRestoreCleanup setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TriggerRestoreCleanup) super.setPrettyPrint(prettyPrint); + } + + @Override + public TriggerRestoreCleanup setQuotaUser(java.lang.String quotaUser) { + return (TriggerRestoreCleanup) super.setQuotaUser(quotaUser); + } + + @Override + public TriggerRestoreCleanup setUploadType(java.lang.String uploadType) { + return (TriggerRestoreCleanup) super.setUploadType(uploadType); + } + + @Override + public TriggerRestoreCleanup setUploadProtocol(java.lang.String uploadProtocol) { + return (TriggerRestoreCleanup) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the restore template execution. Format: 'projects/{project_id}/loca + * tions/{location}/restoreTemplates/{restore_template_id}/executions/{execution_id}' + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the restore template execution. Format: 'projects/{project_id}/locations/{locatio + n}/restoreTemplates/{restore_template_id}/executions/{execution_id}' + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the restore template execution. Format: 'projects/{project_id}/loca + * tions/{location}/restoreTemplates/{restore_template_id}/executions/{execution_id}' + */ + public TriggerRestoreCleanup 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/[^/]+/restoreTemplates/[^/]+/executions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public TriggerRestoreCleanup set(String parameterName, Object value) { + return (TriggerRestoreCleanup) super.set(parameterName, value); + } + } + + } + } + /** + * An accessor for creating requests from the RestoreVerificationPlans collection. + * + *The typical use is:
+ *
+ * {@code Backupdr backupdr = new Backupdr(...);}
+ * {@code Backupdr.RestoreVerificationPlans.List request = backupdr.restoreVerificationPlans().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public RestoreVerificationPlans restoreVerificationPlans() {
+ return new RestoreVerificationPlans();
+ }
+
+ /**
+ * The "restoreVerificationPlans" collection of methods.
+ */
+ public class RestoreVerificationPlans {
+
+ /**
+ * Creates a new RestoreVerificationPlan in a given project and location.
+ *
+ * Create a request for the method "restoreVerificationPlans.create".
+ *
+ * This request holds the parameters needed by the backupdr server. After setting any optional
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The `RestoreVerificationPlan` project and location in the format
+ * `projects/{project}/locations/{location}`. In Google Cloud Backup and DR locations map to
+ * Google Cloud regions, for example **us-central1**.
+ * @param content the {@link com.google.api.services.backupdr.v1.model.RestoreVerificationPlan}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.backupdr.v1.model.RestoreVerificationPlan content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends BackupdrRequest{@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 `RestoreVerificationPlan` project and location in the format + * `projects/{project}/locations/{location}`. In Google Cloud Backup and DR locations map to + * Google Cloud regions, for example **us-central1**. + * @param content the {@link com.google.api.services.backupdr.v1.model.RestoreVerificationPlan} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.backupdr.v1.model.RestoreVerificationPlan content) { + super(Backupdr.this, "POST", REST_PATH, content, com.google.api.services.backupdr.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 `RestoreVerificationPlan` project and location in the format + * `projects/{project}/locations/{location}`. In Google Cloud Backup and DR locations map + * to Google Cloud regions, for example **us-central1**. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The `RestoreVerificationPlan` project and location in the format + `projects/{project}/locations/{location}`. In Google Cloud Backup and DR locations map to Google + Cloud regions, for example **us-central1**. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The `RestoreVerificationPlan` project and location in the format + * `projects/{project}/locations/{location}`. In Google Cloud Backup and DR locations map + * to Google Cloud regions, for example **us-central1**. + */ + 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; + } + + /** + * Optional. An optional 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 + * since 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. An optional 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 since 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. An optional 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 + * since 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; + } + + /** + * Required. The name of the `RestoreVerificationPlan` to create. The name must be unique + * for the specified project and location. The name must start with a lowercase letter + * followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, + * `^[a-z]([-a-z0-9]*[a-z0-9])?$`. + */ + @com.google.api.client.util.Key + private java.lang.String restoreVerificationPlanId; + + /** Required. The name of the `RestoreVerificationPlan` to create. The name must be unique for the + specified project and location. The name must start with a lowercase letter followed by up to 62 + lowercase letters, numbers, or hyphens. Pattern, `^[a-z]([-a-z0-9]*[a-z0-9])?$`. + */ + public java.lang.String getRestoreVerificationPlanId() { + return restoreVerificationPlanId; + } + + /** + * Required. The name of the `RestoreVerificationPlan` to create. The name must be unique + * for the specified project and location. The name must start with a lowercase letter + * followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, + * `^[a-z]([-a-z0-9]*[a-z0-9])?$`. + */ + public Create setRestoreVerificationPlanId(java.lang.String restoreVerificationPlanId) { + this.restoreVerificationPlanId = restoreVerificationPlanId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single RestoreVerificationPlan. If the `force` flag is set to `true`, any + * RestoreVerificationPlanAssociations linked to this RestoreVerificationPlan will also be deleted. + * + * Create a request for the method "restoreVerificationPlans.delete". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the `RestoreVerificationPlan` to delete. Format: + * `projects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan + * }` + * @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 BackupdrRequest{@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 resource name of the `RestoreVerificationPlan` to delete. Format: + * `projects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan + * }` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Backupdr.this, "DELETE", REST_PATH, null, com.google.api.services.backupdr.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/[^/]+/restoreVerificationPlans/[^/]+$"); + } + } + + @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 resource name of the `RestoreVerificationPlan` to delete. Format: `projec + * ts/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the `RestoreVerificationPlan` to delete. Format: + `projects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the `RestoreVerificationPlan` to delete. Format: `projec + * ts/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan}` + */ + 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/[^/]+/restoreVerificationPlans/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. If set to true, any RestoreVerificationPlanAssociations linked to this + * RestoreVerificationPlan will also be deleted. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. If set to true, any RestoreVerificationPlanAssociations linked to this + RestoreVerificationPlan will also be deleted. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If set to true, any RestoreVerificationPlanAssociations linked to this + * RestoreVerificationPlan will also be deleted. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + /** + * Optional. An optional 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. An optional 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. An optional 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); + } + } + /** + * Gets details of a single RestoreVerificationPlan. Returns the requested RestoreVerificationPlan. + * + * Create a request for the method "restoreVerificationPlans.get". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the `RestoreVerificationPlan` to retrieve. Format: + * `projects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan + * }` + * @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 BackupdrRequest+ * {@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 resource name of the `RestoreVerificationPlan` to retrieve. Format: + * `projects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan + * }` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Backupdr.this, "GET", REST_PATH, null, com.google.api.services.backupdr.v1.model.RestoreVerificationPlan.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/[^/]+/restoreVerificationPlans/[^/]+$"); + } + } + + @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 resource name of the `RestoreVerificationPlan` to retrieve. Format: `proj + * ects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the `RestoreVerificationPlan` to retrieve. Format: + `projects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the `RestoreVerificationPlan` to retrieve. Format: `proj + * ects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan}` + */ + 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/[^/]+/restoreVerificationPlans/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists RestoreVerificationPlans in a given project and location. + * + * Create a request for the method "restoreVerificationPlans.list". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The project and location for which to retrieve `RestoreVerificationPlans` information. + * Format: `projects/{project}/locations/{location}`. In Google Cloud Backup and DR, + * locations map to Google Cloud regions, for example **us-central1**. To retrieve restore + * verification plans for all locations, use "-" for the `{location}` value. + * @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 BackupdrRequest+ * {@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 project and location for which to retrieve `RestoreVerificationPlans` information. + * Format: `projects/{project}/locations/{location}`. In Google Cloud Backup and DR, + * locations map to Google Cloud regions, for example **us-central1**. To retrieve restore + * verification plans for all locations, use "-" for the `{location}` value. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Backupdr.this, "GET", REST_PATH, null, com.google.api.services.backupdr.v1.model.ListRestoreVerificationPlansResponse.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 project and location for which to retrieve `RestoreVerificationPlans` + * information. Format: `projects/{project}/locations/{location}`. In Google Cloud Backup + * and DR, locations map to Google Cloud regions, for example **us-central1**. To retrieve + * restore verification plans for all locations, use "-" for the `{location}` value. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The project and location for which to retrieve `RestoreVerificationPlans` information. + Format: `projects/{project}/locations/{location}`. In Google Cloud Backup and DR, locations map to + Google Cloud regions, for example **us-central1**. To retrieve restore verification plans for all + locations, use "-" for the `{location}` value. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The project and location for which to retrieve `RestoreVerificationPlans` + * information. Format: `projects/{project}/locations/{location}`. In Google Cloud Backup + * and DR, locations map to Google Cloud regions, for example **us-central1**. To retrieve + * restore verification plans for all locations, use "-" for the `{location}` value. + */ + 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. Field match expression used to filter the results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Field match expression used to filter the results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Field match expression used to filter the results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. Field by which to sort the results. */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field by which to sort the results. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Field by which to sort the results. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of `RestoreVerificationPlans` to return in a single + * response. If not specified, a default value will be chosen by the service. Note that + * the response may include a partial list and a caller should only rely on the response's + * next_page_token to determine if there are more instances left to be queried. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of `RestoreVerificationPlans` to return in a single response. If not + specified, a default value will be chosen by the service. Note that the response may include a + partial list and a caller should only rely on the response's next_page_token to determine if there + are more instances left to be queried. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of `RestoreVerificationPlans` to return in a single + * response. If not specified, a default value will be chosen by the service. Note that + * the response may include a partial list and a caller should only rely on the response's + * next_page_token to determine if there are more instances left to be queried. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The value of next_page_token received from a previous + * `ListRestoreVerificationPlans` call. Provide this to retrieve the subsequent page in a + * multi-page list of results. When paginating, all other parameters provided to + * `ListRestoreVerificationPlans` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The value of next_page_token received from a previous `ListRestoreVerificationPlans` + call. Provide this to retrieve the subsequent page in a multi-page list of results. When + paginating, all other parameters provided to `ListRestoreVerificationPlans` must match the call + that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The value of next_page_token received from a previous + * `ListRestoreVerificationPlans` call. Provide this to retrieve the subsequent page in a + * multi-page list of results. When paginating, all other parameters provided to + * `ListRestoreVerificationPlans` 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); + } + } + + /** + * An accessor for creating requests from the Associations collection. + * + *The typical use is:
+ *
+ * {@code Backupdr backupdr = new Backupdr(...);}
+ * {@code Backupdr.Associations.List request = backupdr.associations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Associations associations() {
+ return new Associations();
+ }
+
+ /**
+ * The "associations" collection of methods.
+ */
+ public class Associations {
+
+ /**
+ * Creates a new RestoreVerificationPlanAssociation in a given RestoreVerificationPlan.
+ *
+ * Create a request for the method "associations.create".
+ *
+ * This request holds the parameters needed by the backupdr 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 association will be created. Format:
+ * `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_pl
+ * an}`
+ * @param content the {@link com.google.api.services.backupdr.v1.model.RestoreVerificationPlanAssociation}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.backupdr.v1.model.RestoreVerificationPlanAssociation content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends BackupdrRequest{@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 association will be created. Format: + * `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_pl + * an}` + * @param content the {@link com.google.api.services.backupdr.v1.model.RestoreVerificationPlanAssociation} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.backupdr.v1.model.RestoreVerificationPlanAssociation content) { + super(Backupdr.this, "POST", REST_PATH, content, com.google.api.services.backupdr.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/[^/]+/restoreVerificationPlans/[^/]+$"); + } + } + + @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 association will be created. Format: `projec + * ts/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan + * }` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where this association will be created. Format: + `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where this association will be created. Format: `projec + * ts/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan + * }` + */ + 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/[^/]+/restoreVerificationPlans/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know that the server has already + * received the duplicate request and can avoid responding with an error. 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. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know that the server has already received the duplicate + request and can avoid responding with an error. 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. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know that the server has already + * received the duplicate request and can avoid responding with an error. 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; + } + + /** + * Required. The ID to use for the association, which will become the final component of + * the association's resource name. This value should be 1-63 characters, and valid + * characters are /[a-z0-9_-]/. + */ + @com.google.api.client.util.Key + private java.lang.String restoreVerificationPlanAssociationId; + + /** Required. The ID to use for the association, which will become the final component of the + association's resource name. This value should be 1-63 characters, and valid characters are + /[a-z0-9_-]/. + */ + public java.lang.String getRestoreVerificationPlanAssociationId() { + return restoreVerificationPlanAssociationId; + } + + /** + * Required. The ID to use for the association, which will become the final component of + * the association's resource name. This value should be 1-63 characters, and valid + * characters are /[a-z0-9_-]/. + */ + public Create setRestoreVerificationPlanAssociationId(java.lang.String restoreVerificationPlanAssociationId) { + this.restoreVerificationPlanAssociationId = restoreVerificationPlanAssociationId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single RestoreVerificationPlanAssociation in a given RestoreVerificationPlan. + * + * Create a request for the method "associations.delete". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the RestoreVerificationPlanAssociation to delete. Format: `projects/{ + * project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associa + * tions/{association}` + * @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 BackupdrRequest{@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 resource name of the RestoreVerificationPlanAssociation to delete. Format: `projects/{ + * project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associa + * tions/{association}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Backupdr.this, "DELETE", REST_PATH, null, com.google.api.services.backupdr.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/[^/]+/restoreVerificationPlans/[^/]+/associations/[^/]+$"); + } + } + + @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 resource name of the RestoreVerificationPlanAssociation to delete. + * Format: `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_ve + * rification_plan}/associations/{association}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the RestoreVerificationPlanAssociation to delete. Format: `projects/ + {project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{a + ssociation}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the RestoreVerificationPlanAssociation to delete. + * Format: `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_ve + * rification_plan}/associations/{association}` + */ + 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/[^/]+/restoreVerificationPlans/[^/]+/associations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know that the server has already + * received the duplicate request and can avoid responding with an error. 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. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know that the server has already received the duplicate + request and can avoid responding with an error. 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. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know that the server has already + * received the duplicate request and can avoid responding with an error. 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); + } + } + /** + * Gets details of a single RestoreVerificationPlanAssociation in a given RestoreVerificationPlan. + * + * Create a request for the method "associations.get". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the RestoreVerificationPlanAssociation to retrieve. Format: `projects + * /{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/assoc + * iations/{association}` + * @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 BackupdrRequest+ * {@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 resource name of the RestoreVerificationPlanAssociation to retrieve. Format: `projects + * /{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/assoc + * iations/{association}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Backupdr.this, "GET", REST_PATH, null, com.google.api.services.backupdr.v1.model.RestoreVerificationPlanAssociation.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/[^/]+/restoreVerificationPlans/[^/]+/associations/[^/]+$"); + } + } + + @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 resource name of the RestoreVerificationPlanAssociation to retrieve. + * Format: `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_ve + * rification_plan}/associations/{association}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the RestoreVerificationPlanAssociation to retrieve. Format: `project + s/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/ + {association}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the RestoreVerificationPlanAssociation to retrieve. + * Format: `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_ve + * rification_plan}/associations/{association}` + */ + 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/[^/]+/restoreVerificationPlans/[^/]+/associations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists RestoreVerificationPlanAssociations in a given RestoreVerificationPlan. + * + * Create a request for the method "associations.list". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent RestoreVerificationPlan name. Format: + * `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_pl + * an}` + * @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 BackupdrRequest+ * {@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 RestoreVerificationPlan name. Format: + * `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_pl + * an}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Backupdr.this, "GET", REST_PATH, null, com.google.api.services.backupdr.v1.model.ListRestoreVerificationPlanAssociationsResponse.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/[^/]+/restoreVerificationPlans/[^/]+$"); + } + } + + @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 RestoreVerificationPlan name. Format: `projects/{project}/locati + * ons/{location}/restoreVerificationPlans/{restore_verification_plan}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent RestoreVerificationPlan name. Format: + `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent RestoreVerificationPlan name. Format: `projects/{project}/locati + * ons/{location}/restoreVerificationPlans/{restore_verification_plan}` + */ + 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/[^/]+/restoreVerificationPlans/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. Filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filtering results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Filtering results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. Hint for how to order the results. */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Hint for how to order the results. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Hint for how to order the results. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of associations to return. The service may return fewer + * than this value. If unspecified, at most 500 associations 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 associations to return. The service may return fewer than this + value. If unspecified, at most 500 associations 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 associations to return. The service may return fewer + * than this value. If unspecified, at most 500 associations 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 + * `ListRestoreVerificationPlanAssociations` call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * `ListRestoreVerificationPlanAssociations` 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 `ListRestoreVerificationPlanAssociations` call. + Provide this to retrieve the subsequent page. When paginating, all other parameters provided to + `ListRestoreVerificationPlanAssociations` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous + * `ListRestoreVerificationPlanAssociations` call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * `ListRestoreVerificationPlanAssociations` 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); + } + } + /** + * Triggers a new Restore Verification for the association in a given RestoreVerificationPlan. + * + * Create a request for the method "associations.triggerRestoreVerification". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link TriggerRestoreVerification#execute()} method to invoke the remote + * operation. + * + * @param name Required. The resource name of the RestoreVerificationPlanAssociation to trigger. Format: `projects/ + * {project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associ + * ations/{association}` + * @param content the {@link com.google.api.services.backupdr.v1.model.TriggerRestoreVerificationRequest} + * @return the request + */ + public TriggerRestoreVerification triggerRestoreVerification(java.lang.String name, com.google.api.services.backupdr.v1.model.TriggerRestoreVerificationRequest content) throws java.io.IOException { + TriggerRestoreVerification result = new TriggerRestoreVerification(name, content); + initialize(result); + return result; + } + + public class TriggerRestoreVerification extends BackupdrRequest{@link TriggerRestoreVerification#initialize(com.google.api.client.google + * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the RestoreVerificationPlanAssociation to trigger. Format: `projects/ + * {project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associ + * ations/{association}` + * @param content the {@link com.google.api.services.backupdr.v1.model.TriggerRestoreVerificationRequest} + * @since 1.13 + */ + protected TriggerRestoreVerification(java.lang.String name, com.google.api.services.backupdr.v1.model.TriggerRestoreVerificationRequest content) { + super(Backupdr.this, "POST", REST_PATH, content, com.google.api.services.backupdr.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/[^/]+/restoreVerificationPlans/[^/]+/associations/[^/]+$"); + } + } + + @Override + public TriggerRestoreVerification set$Xgafv(java.lang.String $Xgafv) { + return (TriggerRestoreVerification) super.set$Xgafv($Xgafv); + } + + @Override + public TriggerRestoreVerification setAccessToken(java.lang.String accessToken) { + return (TriggerRestoreVerification) super.setAccessToken(accessToken); + } + + @Override + public TriggerRestoreVerification setAlt(java.lang.String alt) { + return (TriggerRestoreVerification) super.setAlt(alt); + } + + @Override + public TriggerRestoreVerification setCallback(java.lang.String callback) { + return (TriggerRestoreVerification) super.setCallback(callback); + } + + @Override + public TriggerRestoreVerification setFields(java.lang.String fields) { + return (TriggerRestoreVerification) super.setFields(fields); + } + + @Override + public TriggerRestoreVerification setKey(java.lang.String key) { + return (TriggerRestoreVerification) super.setKey(key); + } + + @Override + public TriggerRestoreVerification setOauthToken(java.lang.String oauthToken) { + return (TriggerRestoreVerification) super.setOauthToken(oauthToken); + } + + @Override + public TriggerRestoreVerification setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TriggerRestoreVerification) super.setPrettyPrint(prettyPrint); + } + + @Override + public TriggerRestoreVerification setQuotaUser(java.lang.String quotaUser) { + return (TriggerRestoreVerification) super.setQuotaUser(quotaUser); + } + + @Override + public TriggerRestoreVerification setUploadType(java.lang.String uploadType) { + return (TriggerRestoreVerification) super.setUploadType(uploadType); + } + + @Override + public TriggerRestoreVerification setUploadProtocol(java.lang.String uploadProtocol) { + return (TriggerRestoreVerification) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the RestoreVerificationPlanAssociation to trigger. + * Format: `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_ve + * rification_plan}/associations/{association}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the RestoreVerificationPlanAssociation to trigger. Format: `projects + /{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{ + association}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the RestoreVerificationPlanAssociation to trigger. + * Format: `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_ve + * rification_plan}/associations/{association}` + */ + public TriggerRestoreVerification 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/[^/]+/restoreVerificationPlans/[^/]+/associations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public TriggerRestoreVerification set(String parameterName, Object value) { + return (TriggerRestoreVerification) super.set(parameterName, value); + } + } + + } + } /** * An accessor for creating requests from the ServiceConfig collection. * diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/Backup.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/Backup.java index 38fdac2c673..2e4d005b980 100644 --- a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/Backup.java +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/Backup.java @@ -224,6 +224,13 @@ public final class Backup extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private String updateTime; + /** + * Output only. The restore verification status of the backup. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VerificationSummary verificationSummary; + /** * Output only. AlloyDB specific backup properties. * @return value or {@code null} for none @@ -693,6 +700,23 @@ public Backup setUpdateTime(String updateTime) { return this; } + /** + * Output only. The restore verification status of the backup. + * @return value or {@code null} for none + */ + public VerificationSummary getVerificationSummary() { + return verificationSummary; + } + + /** + * Output only. The restore verification status of the backup. + * @param verificationSummary verificationSummary or {@code null} for none + */ + public Backup setVerificationSummary(VerificationSummary verificationSummary) { + this.verificationSummary = verificationSummary; + return this; + } + @Override public Backup set(String fieldName, Object value) { return (Backup) super.set(fieldName, value); diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/BackupSelectionConfig.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/BackupSelectionConfig.java new file mode 100644 index 00000000000..8e74f8f5e71 --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/BackupSelectionConfig.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.backupdr.v1.model; + +/** + * Configuration for selecting a backup. + * + *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 Backup and DR Service 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 BackupSelectionConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. Immutable. The fully qualified URI of the backupdr data source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dataSource; + + /** + * Required. Immutable. The fully qualified URI of the backupdr data source. + * @return value or {@code null} for none + */ + public java.lang.String getDataSource() { + return dataSource; + } + + /** + * Required. Immutable. The fully qualified URI of the backupdr data source. + * @param dataSource dataSource or {@code null} for none + */ + public BackupSelectionConfig setDataSource(java.lang.String dataSource) { + this.dataSource = dataSource; + return this; + } + + @Override + public BackupSelectionConfig set(String fieldName, Object value) { + return (BackupSelectionConfig) super.set(fieldName, value); + } + + @Override + public BackupSelectionConfig clone() { + return (BackupSelectionConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/CleanupPhaseInfo.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/CleanupPhaseInfo.java new file mode 100644 index 00000000000..db02ed5f4d5 --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/CleanupPhaseInfo.java @@ -0,0 +1,235 @@ +/* + * 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.backupdr.v1.model; + +/** + * Info for Cleanup phase execution. + * + *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 Backup and DR Service 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 CleanupPhaseInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. Time taken to perform the cleanup of restored resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String cleanupDuration; + + /** + * Output only. The time when the resources will be cleaned up. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String cleanupTime; + + /** + * Output only. End time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Error details if the phase failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Output only. Snapshot of cleanup rule provided for this execution when execution is failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RestoreVerificationCleanupRule failureCleanupRule; + + /** + * Output only. The state of this phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phaseState; + + /** + * Output only. Start time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. Snapshot of cleanup rule provided for this execution when execution is successful. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RestoreVerificationCleanupRule successCleanupRule; + + /** + * Output only. Time taken to perform the cleanup of restored resource. + * @return value or {@code null} for none + */ + public String getCleanupDuration() { + return cleanupDuration; + } + + /** + * Output only. Time taken to perform the cleanup of restored resource. + * @param cleanupDuration cleanupDuration or {@code null} for none + */ + public CleanupPhaseInfo setCleanupDuration(String cleanupDuration) { + this.cleanupDuration = cleanupDuration; + return this; + } + + /** + * Output only. The time when the resources will be cleaned up. + * @return value or {@code null} for none + */ + public String getCleanupTime() { + return cleanupTime; + } + + /** + * Output only. The time when the resources will be cleaned up. + * @param cleanupTime cleanupTime or {@code null} for none + */ + public CleanupPhaseInfo setCleanupTime(String cleanupTime) { + this.cleanupTime = cleanupTime; + return this; + } + + /** + * Output only. End time of the phase. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. End time of the phase. + * @param endTime endTime or {@code null} for none + */ + public CleanupPhaseInfo setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Error details if the phase failed. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * Output only. Error details if the phase failed. + * @param error error or {@code null} for none + */ + public CleanupPhaseInfo setError(Status error) { + this.error = error; + return this; + } + + /** + * Output only. Snapshot of cleanup rule provided for this execution when execution is failed. + * @return value or {@code null} for none + */ + public RestoreVerificationCleanupRule getFailureCleanupRule() { + return failureCleanupRule; + } + + /** + * Output only. Snapshot of cleanup rule provided for this execution when execution is failed. + * @param failureCleanupRule failureCleanupRule or {@code null} for none + */ + public CleanupPhaseInfo setFailureCleanupRule(RestoreVerificationCleanupRule failureCleanupRule) { + this.failureCleanupRule = failureCleanupRule; + return this; + } + + /** + * Output only. The state of this phase. + * @return value or {@code null} for none + */ + public java.lang.String getPhaseState() { + return phaseState; + } + + /** + * Output only. The state of this phase. + * @param phaseState phaseState or {@code null} for none + */ + public CleanupPhaseInfo setPhaseState(java.lang.String phaseState) { + this.phaseState = phaseState; + return this; + } + + /** + * Output only. Start time of the phase. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Output only. Start time of the phase. + * @param startTime startTime or {@code null} for none + */ + public CleanupPhaseInfo setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * Output only. Snapshot of cleanup rule provided for this execution when execution is successful. + * @return value or {@code null} for none + */ + public RestoreVerificationCleanupRule getSuccessCleanupRule() { + return successCleanupRule; + } + + /** + * Output only. Snapshot of cleanup rule provided for this execution when execution is successful. + * @param successCleanupRule successCleanupRule or {@code null} for none + */ + public CleanupPhaseInfo setSuccessCleanupRule(RestoreVerificationCleanupRule successCleanupRule) { + this.successCleanupRule = successCleanupRule; + return this; + } + + @Override + public CleanupPhaseInfo set(String fieldName, Object value) { + return (CleanupPhaseInfo) super.set(fieldName, value); + } + + @Override + public CleanupPhaseInfo clone() { + return (CleanupPhaseInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/ExecutionSummary.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/ExecutionSummary.java new file mode 100644 index 00000000000..e8ea24b7c55 --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/ExecutionSummary.java @@ -0,0 +1,94 @@ +/* + * 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.backupdr.v1.model; + +/** + * Summary of the last execution. + * + *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 Backup and DR Service 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 ExecutionSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. The resource name of the last execution. Format: `projects/{project}/locations/{lo + * cation}/restoreTemplates/{restore_template}/executions/{execution}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastExecution; + + /** + * Output only. The state of the last execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastExecutionState; + + /** + * Output only. The resource name of the last execution. Format: `projects/{project}/locations/{lo + * cation}/restoreTemplates/{restore_template}/executions/{execution}` + * @return value or {@code null} for none + */ + public java.lang.String getLastExecution() { + return lastExecution; + } + + /** + * Output only. The resource name of the last execution. Format: `projects/{project}/locations/{lo + * cation}/restoreTemplates/{restore_template}/executions/{execution}` + * @param lastExecution lastExecution or {@code null} for none + */ + public ExecutionSummary setLastExecution(java.lang.String lastExecution) { + this.lastExecution = lastExecution; + return this; + } + + /** + * Output only. The state of the last execution. + * @return value or {@code null} for none + */ + public java.lang.String getLastExecutionState() { + return lastExecutionState; + } + + /** + * Output only. The state of the last execution. + * @param lastExecutionState lastExecutionState or {@code null} for none + */ + public ExecutionSummary setLastExecutionState(java.lang.String lastExecutionState) { + this.lastExecutionState = lastExecutionState; + return this; + } + + @Override + public ExecutionSummary set(String fieldName, Object value) { + return (ExecutionSummary) super.set(fieldName, value); + } + + @Override + public ExecutionSummary clone() { + return (ExecutionSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/ListRestoreTemplateExecutionsResponse.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/ListRestoreTemplateExecutionsResponse.java new file mode 100644 index 00000000000..e905bb77107 --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/ListRestoreTemplateExecutionsResponse.java @@ -0,0 +1,115 @@ +/* + * 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.backupdr.v1.model; + +/** + * Response message for listing RestoreTemplateExecutions. + * + *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 Backup and DR Service 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 ListRestoreTemplateExecutionsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token identifying a page of results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of RestoreTemplateExecution instances. + * 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 Backup and DR Service 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 ListRestoreTemplatesResponse extends com.google.api.client.json.GenericJson { + + /** + * A token which may be sent as `page_token` in a subsequent `ListRestoreTemplates` call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of RestoreTemplates. + * 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 Backup and DR Service 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 ListRestoreVerificationPlanAssociationsResponse 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 list of RestoreVerificationPlanAssociations. + * 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 Backup and DR Service 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 ListRestoreVerificationPlansResponse extends com.google.api.client.json.GenericJson { + + /** + * A token which may be sent as page_token in a subsequent `ListRestoreVerificationPlans` call to + * retrieve the next page of results. If this field is omitted or empty, then there are no more + * results to return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of `RestoreVerificationPlans` in the project for the specified location. If the + * `{location}` value in the request is "-", the response contains a list of resources from all + * locations. In case any location is unreachable, the response will only return restore + * verification plans in reachable locations and the 'unreachable' field will be populated with a + * list of unreachable locations. + * 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 Backup and DR Service 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 PostRestoreConfig extends com.google.api.client.json.GenericJson { + + /** + * Cloud Run job action to execute. Format: `projects/{project}/locations/{location}/jobs/{job}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudRunJob; + + /** + * Optional. The `timeout` for this phase. If set, the `timeout` must be positive and less than or + * equal to 24 hours (86400s). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timeout; + + /** + * Cloud Run job action to execute. Format: `projects/{project}/locations/{location}/jobs/{job}` + * @return value or {@code null} for none + */ + public java.lang.String getCloudRunJob() { + return cloudRunJob; + } + + /** + * Cloud Run job action to execute. Format: `projects/{project}/locations/{location}/jobs/{job}` + * @param cloudRunJob cloudRunJob or {@code null} for none + */ + public PostRestoreConfig setCloudRunJob(java.lang.String cloudRunJob) { + this.cloudRunJob = cloudRunJob; + return this; + } + + /** + * Optional. The `timeout` for this phase. If set, the `timeout` must be positive and less than or + * equal to 24 hours (86400s). + * @return value or {@code null} for none + */ + public String getTimeout() { + return timeout; + } + + /** + * Optional. The `timeout` for this phase. If set, the `timeout` must be positive and less than or + * equal to 24 hours (86400s). + * @param timeout timeout or {@code null} for none + */ + public PostRestoreConfig setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + @Override + public PostRestoreConfig set(String fieldName, Object value) { + return (PostRestoreConfig) super.set(fieldName, value); + } + + @Override + public PostRestoreConfig clone() { + return (PostRestoreConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/PostRestorePhaseInfo.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/PostRestorePhaseInfo.java new file mode 100644 index 00000000000..cb759292cb6 --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/PostRestorePhaseInfo.java @@ -0,0 +1,190 @@ +/* + * 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.backupdr.v1.model; + +/** + * Info for Post-Restore phase execution. + * + *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 Backup and DR Service 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 PostRestorePhaseInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The fully qualified URI of the Cloud Run Execution triggered for post-restore + * actions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudRunExecution; + + /** + * Output only. End time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Error details if the phase failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Output only. The state of this phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phaseState; + + /** + * Output only. Snapshot of config that will be executed after successful restore operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PostRestoreConfig postRestoreConfig; + + /** + * Output only. Start time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. The fully qualified URI of the Cloud Run Execution triggered for post-restore + * actions. + * @return value or {@code null} for none + */ + public java.lang.String getCloudRunExecution() { + return cloudRunExecution; + } + + /** + * Output only. The fully qualified URI of the Cloud Run Execution triggered for post-restore + * actions. + * @param cloudRunExecution cloudRunExecution or {@code null} for none + */ + public PostRestorePhaseInfo setCloudRunExecution(java.lang.String cloudRunExecution) { + this.cloudRunExecution = cloudRunExecution; + return this; + } + + /** + * Output only. End time of the phase. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. End time of the phase. + * @param endTime endTime or {@code null} for none + */ + public PostRestorePhaseInfo setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Error details if the phase failed. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * Output only. Error details if the phase failed. + * @param error error or {@code null} for none + */ + public PostRestorePhaseInfo setError(Status error) { + this.error = error; + return this; + } + + /** + * Output only. The state of this phase. + * @return value or {@code null} for none + */ + public java.lang.String getPhaseState() { + return phaseState; + } + + /** + * Output only. The state of this phase. + * @param phaseState phaseState or {@code null} for none + */ + public PostRestorePhaseInfo setPhaseState(java.lang.String phaseState) { + this.phaseState = phaseState; + return this; + } + + /** + * Output only. Snapshot of config that will be executed after successful restore operation. + * @return value or {@code null} for none + */ + public PostRestoreConfig getPostRestoreConfig() { + return postRestoreConfig; + } + + /** + * Output only. Snapshot of config that will be executed after successful restore operation. + * @param postRestoreConfig postRestoreConfig or {@code null} for none + */ + public PostRestorePhaseInfo setPostRestoreConfig(PostRestoreConfig postRestoreConfig) { + this.postRestoreConfig = postRestoreConfig; + return this; + } + + /** + * Output only. Start time of the phase. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Output only. Start time of the phase. + * @param startTime startTime or {@code null} for none + */ + public PostRestorePhaseInfo setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public PostRestorePhaseInfo set(String fieldName, Object value) { + return (PostRestorePhaseInfo) super.set(fieldName, value); + } + + @Override + public PostRestorePhaseInfo clone() { + return (PostRestorePhaseInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/PreRestoreConfig.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/PreRestoreConfig.java new file mode 100644 index 00000000000..b78ca0c4137 --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/PreRestoreConfig.java @@ -0,0 +1,94 @@ +/* + * 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.backupdr.v1.model; + +/** + * Configuration for Pre-Restore. + * + *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 Backup and DR Service 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 PreRestoreConfig extends com.google.api.client.json.GenericJson { + + /** + * Cloud Run job action to execute. Format: `projects/{project}/locations/{location}/jobs/{job}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudRunJob; + + /** + * Optional. The `timeout` for this phase. If set, the `timeout` must be positive and less than or + * equal to 24 hours (86400s). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timeout; + + /** + * Cloud Run job action to execute. Format: `projects/{project}/locations/{location}/jobs/{job}` + * @return value or {@code null} for none + */ + public java.lang.String getCloudRunJob() { + return cloudRunJob; + } + + /** + * Cloud Run job action to execute. Format: `projects/{project}/locations/{location}/jobs/{job}` + * @param cloudRunJob cloudRunJob or {@code null} for none + */ + public PreRestoreConfig setCloudRunJob(java.lang.String cloudRunJob) { + this.cloudRunJob = cloudRunJob; + return this; + } + + /** + * Optional. The `timeout` for this phase. If set, the `timeout` must be positive and less than or + * equal to 24 hours (86400s). + * @return value or {@code null} for none + */ + public String getTimeout() { + return timeout; + } + + /** + * Optional. The `timeout` for this phase. If set, the `timeout` must be positive and less than or + * equal to 24 hours (86400s). + * @param timeout timeout or {@code null} for none + */ + public PreRestoreConfig setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + @Override + public PreRestoreConfig set(String fieldName, Object value) { + return (PreRestoreConfig) super.set(fieldName, value); + } + + @Override + public PreRestoreConfig clone() { + return (PreRestoreConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/PreRestorePhaseInfo.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/PreRestorePhaseInfo.java new file mode 100644 index 00000000000..a5bac886174 --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/PreRestorePhaseInfo.java @@ -0,0 +1,190 @@ +/* + * 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.backupdr.v1.model; + +/** + * Info for Pre-Restore phase execution. + * + *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 Backup and DR Service 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 PreRestorePhaseInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The fully qualified URI of the Cloud Run Execution triggered for pre-restore + * actions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudRunExecution; + + /** + * Output only. End time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Error details if the phase failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Output only. The state of this phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phaseState; + + /** + * Output only. Snapshot of config that will be executed before restore operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreRestoreConfig preRestoreConfig; + + /** + * Output only. Start time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. The fully qualified URI of the Cloud Run Execution triggered for pre-restore + * actions. + * @return value or {@code null} for none + */ + public java.lang.String getCloudRunExecution() { + return cloudRunExecution; + } + + /** + * Output only. The fully qualified URI of the Cloud Run Execution triggered for pre-restore + * actions. + * @param cloudRunExecution cloudRunExecution or {@code null} for none + */ + public PreRestorePhaseInfo setCloudRunExecution(java.lang.String cloudRunExecution) { + this.cloudRunExecution = cloudRunExecution; + return this; + } + + /** + * Output only. End time of the phase. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. End time of the phase. + * @param endTime endTime or {@code null} for none + */ + public PreRestorePhaseInfo setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Error details if the phase failed. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * Output only. Error details if the phase failed. + * @param error error or {@code null} for none + */ + public PreRestorePhaseInfo setError(Status error) { + this.error = error; + return this; + } + + /** + * Output only. The state of this phase. + * @return value or {@code null} for none + */ + public java.lang.String getPhaseState() { + return phaseState; + } + + /** + * Output only. The state of this phase. + * @param phaseState phaseState or {@code null} for none + */ + public PreRestorePhaseInfo setPhaseState(java.lang.String phaseState) { + this.phaseState = phaseState; + return this; + } + + /** + * Output only. Snapshot of config that will be executed before restore operation. + * @return value or {@code null} for none + */ + public PreRestoreConfig getPreRestoreConfig() { + return preRestoreConfig; + } + + /** + * Output only. Snapshot of config that will be executed before restore operation. + * @param preRestoreConfig preRestoreConfig or {@code null} for none + */ + public PreRestorePhaseInfo setPreRestoreConfig(PreRestoreConfig preRestoreConfig) { + this.preRestoreConfig = preRestoreConfig; + return this; + } + + /** + * Output only. Start time of the phase. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Output only. Start time of the phase. + * @param startTime startTime or {@code null} for none + */ + public PreRestorePhaseInfo setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public PreRestorePhaseInfo set(String fieldName, Object value) { + return (PreRestorePhaseInfo) super.set(fieldName, value); + } + + @Override + public PreRestorePhaseInfo clone() { + return (PreRestorePhaseInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/PreparePhaseInfo.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/PreparePhaseInfo.java new file mode 100644 index 00000000000..0b1bf8039ae --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/PreparePhaseInfo.java @@ -0,0 +1,238 @@ +/* + * 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.backupdr.v1.model; + +/** + * Info for Prepare phase execution. + * + *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 Backup and DR Service 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 PreparePhaseInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The source backup used for the restore. The fully qualified URI of the backupdr + * backup. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String backup; + + /** + * Output only. Snapshot of config used in this execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackupSelectionConfig backupSelectionConfig; + + /** + * Output only. End time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Error details if the phase failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Output only. Indicates whether the backup was explicitly passed in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isBackupExplicitlyPassed; + + /** + * Output only. The state of this phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phaseState; + + /** + * Output only. The restore verification plan association associated with the execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String restoreVerificationPlanAssociation; + + /** + * Output only. Start time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. The source backup used for the restore. The fully qualified URI of the backupdr + * backup. + * @return value or {@code null} for none + */ + public java.lang.String getBackup() { + return backup; + } + + /** + * Output only. The source backup used for the restore. The fully qualified URI of the backupdr + * backup. + * @param backup backup or {@code null} for none + */ + public PreparePhaseInfo setBackup(java.lang.String backup) { + this.backup = backup; + return this; + } + + /** + * Output only. Snapshot of config used in this execution. + * @return value or {@code null} for none + */ + public BackupSelectionConfig getBackupSelectionConfig() { + return backupSelectionConfig; + } + + /** + * Output only. Snapshot of config used in this execution. + * @param backupSelectionConfig backupSelectionConfig or {@code null} for none + */ + public PreparePhaseInfo setBackupSelectionConfig(BackupSelectionConfig backupSelectionConfig) { + this.backupSelectionConfig = backupSelectionConfig; + return this; + } + + /** + * Output only. End time of the phase. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. End time of the phase. + * @param endTime endTime or {@code null} for none + */ + public PreparePhaseInfo setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Error details if the phase failed. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * Output only. Error details if the phase failed. + * @param error error or {@code null} for none + */ + public PreparePhaseInfo setError(Status error) { + this.error = error; + return this; + } + + /** + * Output only. Indicates whether the backup was explicitly passed in the request. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsBackupExplicitlyPassed() { + return isBackupExplicitlyPassed; + } + + /** + * Output only. Indicates whether the backup was explicitly passed in the request. + * @param isBackupExplicitlyPassed isBackupExplicitlyPassed or {@code null} for none + */ + public PreparePhaseInfo setIsBackupExplicitlyPassed(java.lang.Boolean isBackupExplicitlyPassed) { + this.isBackupExplicitlyPassed = isBackupExplicitlyPassed; + return this; + } + + /** + * Output only. The state of this phase. + * @return value or {@code null} for none + */ + public java.lang.String getPhaseState() { + return phaseState; + } + + /** + * Output only. The state of this phase. + * @param phaseState phaseState or {@code null} for none + */ + public PreparePhaseInfo setPhaseState(java.lang.String phaseState) { + this.phaseState = phaseState; + return this; + } + + /** + * Output only. The restore verification plan association associated with the execution. + * @return value or {@code null} for none + */ + public java.lang.String getRestoreVerificationPlanAssociation() { + return restoreVerificationPlanAssociation; + } + + /** + * Output only. The restore verification plan association associated with the execution. + * @param restoreVerificationPlanAssociation restoreVerificationPlanAssociation or {@code null} for none + */ + public PreparePhaseInfo setRestoreVerificationPlanAssociation(java.lang.String restoreVerificationPlanAssociation) { + this.restoreVerificationPlanAssociation = restoreVerificationPlanAssociation; + return this; + } + + /** + * Output only. Start time of the phase. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Output only. Start time of the phase. + * @param startTime startTime or {@code null} for none + */ + public PreparePhaseInfo setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public PreparePhaseInfo set(String fieldName, Object value) { + return (PreparePhaseInfo) super.set(fieldName, value); + } + + @Override + public PreparePhaseInfo clone() { + return (PreparePhaseInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/RestorePhaseInfo.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/RestorePhaseInfo.java new file mode 100644 index 00000000000..f33b0e6d120 --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/RestorePhaseInfo.java @@ -0,0 +1,214 @@ +/* + * 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.backupdr.v1.model; + +/** + * Info for Restore phase execution. + * + *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 Backup and DR Service 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 RestorePhaseInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. End time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Error details if the phase failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Output only. The state of this phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phaseState; + + /** + * Output only. Time taken to restore the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String restoreDuration; + + /** + * Output only. Snapshot of environment config used during restore of this + * RestoreTemplateExecution. + * 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 Backup and DR Service 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 RestoreTemplate extends com.google.api.client.json.GenericJson { + + /** + * Required. Backup selection configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackupSelectionConfig backupSelectionConfig; + + /** + * Output only. The time when the restore template was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. User-provided description of the restore template. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. Etag for concurrency control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Output only. Summary of the last execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExecutionSummary executionSummary; + + /** + * Optional. User-defined 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 Backup and DR Service 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 RestoreTemplateExecution extends com.google.api.client.json.GenericJson { + + /** + * Output only. Info for the cleanup phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CleanupPhaseInfo cleanupPhaseInfo; + + /** + * Output only. Create time of the execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Identifier. Resource name of the execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The current active phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phase; + + /** + * Output only. Info for the post-restore phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PostRestorePhaseInfo postRestorePhaseInfo; + + /** + * Output only. Info for the pre-restore phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreRestorePhaseInfo preRestorePhaseInfo; + + /** + * Output only. Info for the prepare phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreparePhaseInfo preparePhaseInfo; + + /** + * Output only. The workload resource type being restored. The format is + * "{service_name}/{resource_kind}", for example, "compute.googleapis.com/Instance". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resourceType; + + /** + * Output only. Info for the restore phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RestorePhaseInfo restorePhaseInfo; + + /** + * Output only. State of the execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. The type of the execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. Update time of the execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Info for the verification phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VerificationPhaseInfo verificationPhaseInfo; + + /** + * Output only. Info for the cleanup phase. + * @return value or {@code null} for none + */ + public CleanupPhaseInfo getCleanupPhaseInfo() { + return cleanupPhaseInfo; + } + + /** + * Output only. Info for the cleanup phase. + * @param cleanupPhaseInfo cleanupPhaseInfo or {@code null} for none + */ + public RestoreTemplateExecution setCleanupPhaseInfo(CleanupPhaseInfo cleanupPhaseInfo) { + this.cleanupPhaseInfo = cleanupPhaseInfo; + return this; + } + + /** + * Output only. Create time of the execution. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Create time of the execution. + * @param createTime createTime or {@code null} for none + */ + public RestoreTemplateExecution setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Identifier. Resource name of the execution. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Resource name of the execution. + * @param name name or {@code null} for none + */ + public RestoreTemplateExecution setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The current active phase. + * @return value or {@code null} for none + */ + public java.lang.String getPhase() { + return phase; + } + + /** + * Output only. The current active phase. + * @param phase phase or {@code null} for none + */ + public RestoreTemplateExecution setPhase(java.lang.String phase) { + this.phase = phase; + return this; + } + + /** + * Output only. Info for the post-restore phase. + * @return value or {@code null} for none + */ + public PostRestorePhaseInfo getPostRestorePhaseInfo() { + return postRestorePhaseInfo; + } + + /** + * Output only. Info for the post-restore phase. + * @param postRestorePhaseInfo postRestorePhaseInfo or {@code null} for none + */ + public RestoreTemplateExecution setPostRestorePhaseInfo(PostRestorePhaseInfo postRestorePhaseInfo) { + this.postRestorePhaseInfo = postRestorePhaseInfo; + return this; + } + + /** + * Output only. Info for the pre-restore phase. + * @return value or {@code null} for none + */ + public PreRestorePhaseInfo getPreRestorePhaseInfo() { + return preRestorePhaseInfo; + } + + /** + * Output only. Info for the pre-restore phase. + * @param preRestorePhaseInfo preRestorePhaseInfo or {@code null} for none + */ + public RestoreTemplateExecution setPreRestorePhaseInfo(PreRestorePhaseInfo preRestorePhaseInfo) { + this.preRestorePhaseInfo = preRestorePhaseInfo; + return this; + } + + /** + * Output only. Info for the prepare phase. + * @return value or {@code null} for none + */ + public PreparePhaseInfo getPreparePhaseInfo() { + return preparePhaseInfo; + } + + /** + * Output only. Info for the prepare phase. + * @param preparePhaseInfo preparePhaseInfo or {@code null} for none + */ + public RestoreTemplateExecution setPreparePhaseInfo(PreparePhaseInfo preparePhaseInfo) { + this.preparePhaseInfo = preparePhaseInfo; + return this; + } + + /** + * Output only. The workload resource type being restored. The format is + * "{service_name}/{resource_kind}", for example, "compute.googleapis.com/Instance". + * @return value or {@code null} for none + */ + public java.lang.String getResourceType() { + return resourceType; + } + + /** + * Output only. The workload resource type being restored. The format is + * "{service_name}/{resource_kind}", for example, "compute.googleapis.com/Instance". + * @param resourceType resourceType or {@code null} for none + */ + public RestoreTemplateExecution setResourceType(java.lang.String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + * Output only. Info for the restore phase. + * @return value or {@code null} for none + */ + public RestorePhaseInfo getRestorePhaseInfo() { + return restorePhaseInfo; + } + + /** + * Output only. Info for the restore phase. + * @param restorePhaseInfo restorePhaseInfo or {@code null} for none + */ + public RestoreTemplateExecution setRestorePhaseInfo(RestorePhaseInfo restorePhaseInfo) { + this.restorePhaseInfo = restorePhaseInfo; + return this; + } + + /** + * Output only. State of the execution. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. State of the execution. + * @param state state or {@code null} for none + */ + public RestoreTemplateExecution setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. The type of the execution. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Output only. The type of the execution. + * @param type type or {@code null} for none + */ + public RestoreTemplateExecution setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Output only. Update time of the execution. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Update time of the execution. + * @param updateTime updateTime or {@code null} for none + */ + public RestoreTemplateExecution setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * Output only. Info for the verification phase. + * @return value or {@code null} for none + */ + public VerificationPhaseInfo getVerificationPhaseInfo() { + return verificationPhaseInfo; + } + + /** + * Output only. Info for the verification phase. + * @param verificationPhaseInfo verificationPhaseInfo or {@code null} for none + */ + public RestoreTemplateExecution setVerificationPhaseInfo(VerificationPhaseInfo verificationPhaseInfo) { + this.verificationPhaseInfo = verificationPhaseInfo; + return this; + } + + @Override + public RestoreTemplateExecution set(String fieldName, Object value) { + return (RestoreTemplateExecution) super.set(fieldName, value); + } + + @Override + public RestoreTemplateExecution clone() { + return (RestoreTemplateExecution) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/RestoreVerificationCleanupRule.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/RestoreVerificationCleanupRule.java new file mode 100644 index 00000000000..e902066d2cc --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/RestoreVerificationCleanupRule.java @@ -0,0 +1,94 @@ +/* + * 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.backupdr.v1.model; + +/** + * Defines the specific cleanup action. + * + *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 Backup and DR Service 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 RestoreVerificationCleanupRule extends com.google.api.client.json.GenericJson { + + /** + * Optional. Duration after restore finishes when cleanup triggers. Delay must be non-negative and + * at most 30 days (2592000 seconds). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String cleanupDelay; + + /** + * Optional. If set to true, the restored resource will not be cleaned up. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean skipCleanup; + + /** + * Optional. Duration after restore finishes when cleanup triggers. Delay must be non-negative and + * at most 30 days (2592000 seconds). + * @return value or {@code null} for none + */ + public String getCleanupDelay() { + return cleanupDelay; + } + + /** + * Optional. Duration after restore finishes when cleanup triggers. Delay must be non-negative and + * at most 30 days (2592000 seconds). + * @param cleanupDelay cleanupDelay or {@code null} for none + */ + public RestoreVerificationCleanupRule setCleanupDelay(String cleanupDelay) { + this.cleanupDelay = cleanupDelay; + return this; + } + + /** + * Optional. If set to true, the restored resource will not be cleaned up. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSkipCleanup() { + return skipCleanup; + } + + /** + * Optional. If set to true, the restored resource will not be cleaned up. + * @param skipCleanup skipCleanup or {@code null} for none + */ + public RestoreVerificationCleanupRule setSkipCleanup(java.lang.Boolean skipCleanup) { + this.skipCleanup = skipCleanup; + return this; + } + + @Override + public RestoreVerificationCleanupRule set(String fieldName, Object value) { + return (RestoreVerificationCleanupRule) super.set(fieldName, value); + } + + @Override + public RestoreVerificationCleanupRule clone() { + return (RestoreVerificationCleanupRule) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/RestoreVerificationPlan.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/RestoreVerificationPlan.java new file mode 100644 index 00000000000..a71dbf18c93 --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/RestoreVerificationPlan.java @@ -0,0 +1,309 @@ +/* + * 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.backupdr.v1.model; + +/** + * A `RestoreVerificationPlan` specifies the scheduling and clean-up template for automated restore + * verification. It contains a `RestoreVerificationSchedule` to dictate when the verifications + * should run, and a `CleanupConfig` for post-verification resource deletion. + * + *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 Backup and DR Service 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 RestoreVerificationPlan extends com.google.api.client.json.GenericJson { + + /** + * Output only. When the `RestoreVerificationPlan` was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. The description of the `RestoreVerificationPlan` resource. The description allows for + * additional details about `RestoreVerificationPlan` and its use cases to be provided. An example + * description is the following: "This is a restore verification plan that performs a daily + * verification and cleans up the resources immediately after." The description must be at most + * 2048 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The cleanup rule to apply if the restore verification fails. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RestoreVerificationCleanupRule failureCleanupRule; + + /** + * Optional. User-defined 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 Backup and DR Service 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 RestoreVerificationPlanAssociation extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time when the association was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. The description of the `RestoreVerificationPlanAssociation` resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. User-defined 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 Backup and DR Service 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 RunRestoreTemplateRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The resource name of the Backup to restore from. If not specified, the latest backup + * matching the backup selection configuration in the RestoreTemplate will be used. Format: 'proje + * cts/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backup + * s/{backup}' + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String backup; + + /** + * Optional. An optional 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 request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** + * Optional. The resource name of the Backup to restore from. If not specified, the latest backup + * matching the backup selection configuration in the RestoreTemplate will be used. Format: 'proje + * cts/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backup + * s/{backup}' + * @return value or {@code null} for none + */ + public java.lang.String getBackup() { + return backup; + } + + /** + * Optional. The resource name of the Backup to restore from. If not specified, the latest backup + * matching the backup selection configuration in the RestoreTemplate will be used. Format: 'proje + * cts/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backup + * s/{backup}' + * @param backup backup or {@code null} for none + */ + public RunRestoreTemplateRequest setBackup(java.lang.String backup) { + this.backup = backup; + return this; + } + + /** + * Optional. An optional 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 request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return value or {@code null} for none + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional 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 request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @param requestId requestId or {@code null} for none + */ + public RunRestoreTemplateRequest setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RunRestoreTemplateRequest set(String fieldName, Object value) { + return (RunRestoreTemplateRequest) super.set(fieldName, value); + } + + @Override + public RunRestoreTemplateRequest clone() { + return (RunRestoreTemplateRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/TriggerRestoreCleanupRequest.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/TriggerRestoreCleanupRequest.java new file mode 100644 index 00000000000..01776483df9 --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/TriggerRestoreCleanupRequest.java @@ -0,0 +1,79 @@ +/* + * 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.backupdr.v1.model; + +/** + * Request message for triggering a restore cleanup. + * + *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 Backup and DR Service 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 TriggerRestoreCleanupRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. An optional 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. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** + * Optional. An optional 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. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @return value or {@code null} for none + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional 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. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param requestId requestId or {@code null} for none + */ + public TriggerRestoreCleanupRequest setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public TriggerRestoreCleanupRequest set(String fieldName, Object value) { + return (TriggerRestoreCleanupRequest) super.set(fieldName, value); + } + + @Override + public TriggerRestoreCleanupRequest clone() { + return (TriggerRestoreCleanupRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/TriggerRestoreVerificationRequest.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/TriggerRestoreVerificationRequest.java new file mode 100644 index 00000000000..7b40d314b89 --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/TriggerRestoreVerificationRequest.java @@ -0,0 +1,76 @@ +/* + * 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.backupdr.v1.model; + +/** + * Request message for TriggerRestoreVerification. + * + *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 Backup and DR Service 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 TriggerRestoreVerificationRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know that the server has already received the + * duplicate request and can avoid responding with an error. The request ID must be a valid UUID + * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know that the server has already received the + * duplicate request and can avoid responding with an error. The request ID must be a valid UUID + * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @return value or {@code null} for none + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know that the server has already received the + * duplicate request and can avoid responding with an error. The request ID must be a valid UUID + * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param requestId requestId or {@code null} for none + */ + public TriggerRestoreVerificationRequest setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public TriggerRestoreVerificationRequest set(String fieldName, Object value) { + return (TriggerRestoreVerificationRequest) super.set(fieldName, value); + } + + @Override + public TriggerRestoreVerificationRequest clone() { + return (TriggerRestoreVerificationRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/TriggerSummary.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/TriggerSummary.java new file mode 100644 index 00000000000..668d9cef726 --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/TriggerSummary.java @@ -0,0 +1,146 @@ +/* + * 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.backupdr.v1.model; + +/** + * `TriggerSummary` contains the results of the most recent automated restore initiation and the + * next scheduled execution time. + * + *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 Backup and DR Service 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 TriggerSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. The error status of the most recent failed trigger. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status lastTriggerError; + + /** + * Output only. The time of the most recent trigger initiation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastTriggerTime; + + /** + * Output only. The resource name of the most recent initiated RestoreTemplateExecution. Format: ` + * projects/{project}/locations/{location}/restoreTemplates/{restore_template}/executions/{executi + * on}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastVerificationExecution; + + /** + * Output only. The scheduled time of the next trigger initiation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String nextTriggerTime; + + /** + * Output only. The error status of the most recent failed trigger. + * @return value or {@code null} for none + */ + public Status getLastTriggerError() { + return lastTriggerError; + } + + /** + * Output only. The error status of the most recent failed trigger. + * @param lastTriggerError lastTriggerError or {@code null} for none + */ + public TriggerSummary setLastTriggerError(Status lastTriggerError) { + this.lastTriggerError = lastTriggerError; + return this; + } + + /** + * Output only. The time of the most recent trigger initiation. + * @return value or {@code null} for none + */ + public String getLastTriggerTime() { + return lastTriggerTime; + } + + /** + * Output only. The time of the most recent trigger initiation. + * @param lastTriggerTime lastTriggerTime or {@code null} for none + */ + public TriggerSummary setLastTriggerTime(String lastTriggerTime) { + this.lastTriggerTime = lastTriggerTime; + return this; + } + + /** + * Output only. The resource name of the most recent initiated RestoreTemplateExecution. Format: ` + * projects/{project}/locations/{location}/restoreTemplates/{restore_template}/executions/{executi + * on}` + * @return value or {@code null} for none + */ + public java.lang.String getLastVerificationExecution() { + return lastVerificationExecution; + } + + /** + * Output only. The resource name of the most recent initiated RestoreTemplateExecution. Format: ` + * projects/{project}/locations/{location}/restoreTemplates/{restore_template}/executions/{executi + * on}` + * @param lastVerificationExecution lastVerificationExecution or {@code null} for none + */ + public TriggerSummary setLastVerificationExecution(java.lang.String lastVerificationExecution) { + this.lastVerificationExecution = lastVerificationExecution; + return this; + } + + /** + * Output only. The scheduled time of the next trigger initiation. + * @return value or {@code null} for none + */ + public String getNextTriggerTime() { + return nextTriggerTime; + } + + /** + * Output only. The scheduled time of the next trigger initiation. + * @param nextTriggerTime nextTriggerTime or {@code null} for none + */ + public TriggerSummary setNextTriggerTime(String nextTriggerTime) { + this.nextTriggerTime = nextTriggerTime; + return this; + } + + @Override + public TriggerSummary set(String fieldName, Object value) { + return (TriggerSummary) super.set(fieldName, value); + } + + @Override + public TriggerSummary clone() { + return (TriggerSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/VerificationConfig.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/VerificationConfig.java new file mode 100644 index 00000000000..bc8fad941c1 --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/VerificationConfig.java @@ -0,0 +1,94 @@ +/* + * 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.backupdr.v1.model; + +/** + * Configuration for Verification. + * + *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 Backup and DR Service 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 VerificationConfig extends com.google.api.client.json.GenericJson { + + /** + * Cloud Run job action to execute. Format: `projects/{project}/locations/{location}/jobs/{job}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudRunJob; + + /** + * Optional. The `timeout` for this phase. If set, the `timeout` must be positive and less than or + * equal to 24 hours (86400s). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timeout; + + /** + * Cloud Run job action to execute. Format: `projects/{project}/locations/{location}/jobs/{job}` + * @return value or {@code null} for none + */ + public java.lang.String getCloudRunJob() { + return cloudRunJob; + } + + /** + * Cloud Run job action to execute. Format: `projects/{project}/locations/{location}/jobs/{job}` + * @param cloudRunJob cloudRunJob or {@code null} for none + */ + public VerificationConfig setCloudRunJob(java.lang.String cloudRunJob) { + this.cloudRunJob = cloudRunJob; + return this; + } + + /** + * Optional. The `timeout` for this phase. If set, the `timeout` must be positive and less than or + * equal to 24 hours (86400s). + * @return value or {@code null} for none + */ + public String getTimeout() { + return timeout; + } + + /** + * Optional. The `timeout` for this phase. If set, the `timeout` must be positive and less than or + * equal to 24 hours (86400s). + * @param timeout timeout or {@code null} for none + */ + public VerificationConfig setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + @Override + public VerificationConfig set(String fieldName, Object value) { + return (VerificationConfig) super.set(fieldName, value); + } + + @Override + public VerificationConfig clone() { + return (VerificationConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/VerificationPhaseInfo.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/VerificationPhaseInfo.java new file mode 100644 index 00000000000..6a1502a378b --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/VerificationPhaseInfo.java @@ -0,0 +1,187 @@ +/* + * 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.backupdr.v1.model; + +/** + * Info for Verification phase execution. + * + *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 Backup and DR Service 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 VerificationPhaseInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The fully qualified URI of the Cloud Run Execution triggered for verification. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudRunExecution; + + /** + * Output only. End time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Error details if the phase failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Output only. The state of this phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phaseState; + + /** + * Output only. Start time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. Snapshot of config that will be executed after successful post restore validation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VerificationConfig verificationConfig; + + /** + * Output only. The fully qualified URI of the Cloud Run Execution triggered for verification. + * @return value or {@code null} for none + */ + public java.lang.String getCloudRunExecution() { + return cloudRunExecution; + } + + /** + * Output only. The fully qualified URI of the Cloud Run Execution triggered for verification. + * @param cloudRunExecution cloudRunExecution or {@code null} for none + */ + public VerificationPhaseInfo setCloudRunExecution(java.lang.String cloudRunExecution) { + this.cloudRunExecution = cloudRunExecution; + return this; + } + + /** + * Output only. End time of the phase. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. End time of the phase. + * @param endTime endTime or {@code null} for none + */ + public VerificationPhaseInfo setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Error details if the phase failed. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * Output only. Error details if the phase failed. + * @param error error or {@code null} for none + */ + public VerificationPhaseInfo setError(Status error) { + this.error = error; + return this; + } + + /** + * Output only. The state of this phase. + * @return value or {@code null} for none + */ + public java.lang.String getPhaseState() { + return phaseState; + } + + /** + * Output only. The state of this phase. + * @param phaseState phaseState or {@code null} for none + */ + public VerificationPhaseInfo setPhaseState(java.lang.String phaseState) { + this.phaseState = phaseState; + return this; + } + + /** + * Output only. Start time of the phase. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Output only. Start time of the phase. + * @param startTime startTime or {@code null} for none + */ + public VerificationPhaseInfo setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * Output only. Snapshot of config that will be executed after successful post restore validation. + * @return value or {@code null} for none + */ + public VerificationConfig getVerificationConfig() { + return verificationConfig; + } + + /** + * Output only. Snapshot of config that will be executed after successful post restore validation. + * @param verificationConfig verificationConfig or {@code null} for none + */ + public VerificationPhaseInfo setVerificationConfig(VerificationConfig verificationConfig) { + this.verificationConfig = verificationConfig; + return this; + } + + @Override + public VerificationPhaseInfo set(String fieldName, Object value) { + return (VerificationPhaseInfo) super.set(fieldName, value); + } + + @Override + public VerificationPhaseInfo clone() { + return (VerificationPhaseInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/VerificationSummary.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/VerificationSummary.java new file mode 100644 index 00000000000..8116d956aa9 --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/VerificationSummary.java @@ -0,0 +1,115 @@ +/* + * 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.backupdr.v1.model; + +/** + * VerificationSummary contains the status and timestamp of the latest Automated Verification test. + * + *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 Backup and DR Service 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 VerificationSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. The last verification execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastVerificationExecution; + + /** + * Output only. The state of the last verification. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastVerificationState; + + /** + * Output only. The time when the backup was last verified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastVerificationTime; + + /** + * Output only. The last verification execution. + * @return value or {@code null} for none + */ + public java.lang.String getLastVerificationExecution() { + return lastVerificationExecution; + } + + /** + * Output only. The last verification execution. + * @param lastVerificationExecution lastVerificationExecution or {@code null} for none + */ + public VerificationSummary setLastVerificationExecution(java.lang.String lastVerificationExecution) { + this.lastVerificationExecution = lastVerificationExecution; + return this; + } + + /** + * Output only. The state of the last verification. + * @return value or {@code null} for none + */ + public java.lang.String getLastVerificationState() { + return lastVerificationState; + } + + /** + * Output only. The state of the last verification. + * @param lastVerificationState lastVerificationState or {@code null} for none + */ + public VerificationSummary setLastVerificationState(java.lang.String lastVerificationState) { + this.lastVerificationState = lastVerificationState; + return this; + } + + /** + * Output only. The time when the backup was last verified. + * @return value or {@code null} for none + */ + public String getLastVerificationTime() { + return lastVerificationTime; + } + + /** + * Output only. The time when the backup was last verified. + * @param lastVerificationTime lastVerificationTime or {@code null} for none + */ + public VerificationSummary setLastVerificationTime(String lastVerificationTime) { + this.lastVerificationTime = lastVerificationTime; + return this; + } + + @Override + public VerificationSummary set(String fieldName, Object value) { + return (VerificationSummary) super.set(fieldName, value); + } + + @Override + public VerificationSummary clone() { + return (VerificationSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/pom.xml b/clients/google-api-services-backupdr/v1/2.0.0/pom.xml index 9be6391dcdb..24aba183223 100644 --- a/clients/google-api-services-backupdr/v1/2.0.0/pom.xml +++ b/clients/google-api-services-backupdr/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@The typical use is:
+ *
+ * {@code Backupdr backupdr = new Backupdr(...);}
+ * {@code Backupdr.RestoreTemplates.List request = backupdr.restoreTemplates().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public RestoreTemplates restoreTemplates() {
+ return new RestoreTemplates();
+ }
+
+ /**
+ * The "restoreTemplates" collection of methods.
+ */
+ public class RestoreTemplates {
+
+ /**
+ * Creates a new RestoreTemplate in a given project and location.
+ *
+ * Create a request for the method "restoreTemplates.create".
+ *
+ * This request holds the parameters needed by the backupdr server. After setting any optional
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The restore template project and location in the format
+ * 'projects/{project_id}/locations/{location}'.
+ * @param content the {@link com.google.api.services.backupdr.v1beta.model.RestoreTemplate}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.backupdr.v1beta.model.RestoreTemplate content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends BackupdrRequest{@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 restore template project and location in the format + * 'projects/{project_id}/locations/{location}'. + * @param content the {@link com.google.api.services.backupdr.v1beta.model.RestoreTemplate} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.backupdr.v1beta.model.RestoreTemplate content) { + super(Backupdr.this, "POST", REST_PATH, content, com.google.api.services.backupdr.v1beta.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 restore template project and location in the format + * 'projects/{project_id}/locations/{location}'. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The restore template project and location in the format + 'projects/{project_id}/locations/{location}'. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The restore template project and location in the format + * 'projects/{project_id}/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; + } + + /** + * Optional. An optional 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 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. An optional 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 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. An optional 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 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; + } + + /** + * Required. The ID of the restore template to create. The ID must be unique for the + * specified project and location. + */ + @com.google.api.client.util.Key + private java.lang.String restoreTemplateId; + + /** Required. The ID of the restore template to create. The ID must be unique for the specified project + and location. + */ + public java.lang.String getRestoreTemplateId() { + return restoreTemplateId; + } + + /** + * Required. The ID of the restore template to create. The ID must be unique for the + * specified project and location. + */ + public Create setRestoreTemplateId(java.lang.String restoreTemplateId) { + this.restoreTemplateId = restoreTemplateId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a RestoreTemplate. + * + * Create a request for the method "restoreTemplates.delete". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the restore template to delete. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + * @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 BackupdrRequest{@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 restore template to delete. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Backupdr.this, "DELETE", REST_PATH, null, com.google.api.services.backupdr.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/[^/]+/restoreTemplates/[^/]+$"); + } + } + + @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 restore template to delete. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the restore template to delete. Format: + 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the restore template to delete. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + */ + 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/[^/]+/restoreTemplates/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. If set to true, any child RestoreTemplateExecutions will also be deleted. If + * false and the RestoreTemplate has any child executions, the request will fail. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. If set to true, any child RestoreTemplateExecutions will also be deleted. If false and + the RestoreTemplate has any child executions, the request will fail. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If set to true, any child RestoreTemplateExecutions will also be deleted. If + * false and the RestoreTemplate has any child executions, the request will fail. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + /** + * Optional. An optional 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 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. An optional 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 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. An optional 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 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); + } + } + /** + * Gets details of a RestoreTemplate. + * + * Create a request for the method "restoreTemplates.get". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the restore template to retrieve. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + * @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 BackupdrRequest+ * {@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 restore template to retrieve. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Backupdr.this, "GET", REST_PATH, null, com.google.api.services.backupdr.v1beta.model.RestoreTemplate.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/[^/]+/restoreTemplates/[^/]+$"); + } + } + + @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 restore template to retrieve. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the restore template to retrieve. Format: + 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the restore template to retrieve. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + */ + 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/[^/]+/restoreTemplates/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists RestoreTemplates in a given project and location. + * + * Create a request for the method "restoreTemplates.list". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The project and location from which to list the restore templates. 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 BackupdrRequest+ * {@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 project and location from which to list the restore templates. Format: + * `projects/{project}/locations/{location}`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Backupdr.this, "GET", REST_PATH, null, com.google.api.services.backupdr.v1beta.model.ListRestoreTemplatesResponse.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 project and location from which to list the restore templates. Format: + * `projects/{project}/locations/{location}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The project and location from which to list the restore templates. Format: + `projects/{project}/locations/{location}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The project and location from which to list the restore templates. 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. Field match expression used to filter the results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Field match expression used to filter the results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Field match expression used to filter the results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. Field by which to sort the results. */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field by which to sort the results. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Field by which to sort the results. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** Optional. The maximum number of items to return. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of items to return. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Optional. The maximum number of items to return. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A page token, received from a previous `ListRestoreTemplates` call. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListRestoreTemplates` call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A page token, received from a previous `ListRestoreTemplates` call. */ + 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 settings of a RestoreTemplate. + * + * Create a request for the method "restoreTemplates.patch". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The resource name of the RestoreTemplate. + * @param content the {@link com.google.api.services.backupdr.v1beta.model.RestoreTemplate} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.backupdr.v1beta.model.RestoreTemplate content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends BackupdrRequest{@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. The resource name of the RestoreTemplate. + * @param content the {@link com.google.api.services.backupdr.v1beta.model.RestoreTemplate} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.backupdr.v1beta.model.RestoreTemplate content) { + super(Backupdr.this, "PATCH", REST_PATH, content, com.google.api.services.backupdr.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/[^/]+/restoreTemplates/[^/]+$"); + } + } + + @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. The resource name of the RestoreTemplate. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name of the RestoreTemplate. + */ + public java.lang.String getName() { + return name; + } + + /** Identifier. The resource name of the RestoreTemplate. */ + 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/[^/]+/restoreTemplates/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional 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 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. An optional 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 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. An optional 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 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; + } + + /** + * Optional. The list of fields to update. Field mask is used to specify the fields to be + * overwritten in the RestoreTemplate resource by the update. The fields specified in the + * update_mask are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The list of fields to update. Field mask is used to specify the fields to be overwritten + in the RestoreTemplate resource by the update. The fields specified in the update_mask are relative + to the resource, not the full request. A field will be overwritten if it is in the mask. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. The list of fields to update. Field mask is used to specify the fields to be + * overwritten in the RestoreTemplate resource by the update. The fields specified in the + * update_mask are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. The default is + * 'false'. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** Optional. Only validate the request, but do not perform mutations. The default is 'false'. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. Only validate the request, but do not perform mutations. The default is + * 'false'. + */ + 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); + } + } + /** + * Runs a RestoreTemplate. + * + * Create a request for the method "restoreTemplates.run". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link Run#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the restore template to run. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + * @param content the {@link com.google.api.services.backupdr.v1beta.model.RunRestoreTemplateRequest} + * @return the request + */ + public Run run(java.lang.String name, com.google.api.services.backupdr.v1beta.model.RunRestoreTemplateRequest content) throws java.io.IOException { + Run result = new Run(name, content); + initialize(result); + return result; + } + + public class Run extends BackupdrRequest+ * {@link Run#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 restore template to run. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + * @param content the {@link com.google.api.services.backupdr.v1beta.model.RunRestoreTemplateRequest} + * @since 1.13 + */ + protected Run(java.lang.String name, com.google.api.services.backupdr.v1beta.model.RunRestoreTemplateRequest content) { + super(Backupdr.this, "POST", REST_PATH, content, com.google.api.services.backupdr.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/[^/]+/restoreTemplates/[^/]+$"); + } + } + + @Override + public Run set$Xgafv(java.lang.String $Xgafv) { + return (Run) super.set$Xgafv($Xgafv); + } + + @Override + public Run setAccessToken(java.lang.String accessToken) { + return (Run) super.setAccessToken(accessToken); + } + + @Override + public Run setAlt(java.lang.String alt) { + return (Run) super.setAlt(alt); + } + + @Override + public Run setCallback(java.lang.String callback) { + return (Run) super.setCallback(callback); + } + + @Override + public Run setFields(java.lang.String fields) { + return (Run) super.setFields(fields); + } + + @Override + public Run setKey(java.lang.String key) { + return (Run) super.setKey(key); + } + + @Override + public Run setOauthToken(java.lang.String oauthToken) { + return (Run) super.setOauthToken(oauthToken); + } + + @Override + public Run setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Run) super.setPrettyPrint(prettyPrint); + } + + @Override + public Run setQuotaUser(java.lang.String quotaUser) { + return (Run) super.setQuotaUser(quotaUser); + } + + @Override + public Run setUploadType(java.lang.String uploadType) { + return (Run) super.setUploadType(uploadType); + } + + @Override + public Run setUploadProtocol(java.lang.String uploadProtocol) { + return (Run) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the restore template to run. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the restore template to run. Format: + 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the restore template to run. Format: + * 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}' + */ + public Run 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/[^/]+/restoreTemplates/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Run set(String parameterName, Object value) { + return (Run) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Executions collection. + * + *The typical use is:
+ *
+ * {@code Backupdr backupdr = new Backupdr(...);}
+ * {@code Backupdr.Executions.List request = backupdr.executions().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Executions executions() {
+ return new Executions();
+ }
+
+ /**
+ * The "executions" collection of methods.
+ */
+ public class Executions {
+
+ /**
+ * Gets details of a RestoreTemplateExecution.
+ *
+ * Create a request for the method "executions.get".
+ *
+ * This request holds the parameters needed by the backupdr server. After setting any optional
+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ *
+ * @param name Required. The name of the restore template execution to retrieve. Format: 'projects/{project_id}/loc
+ * ations/{location}/restoreTemplates/{restore_template_id}/executions/{execution_id}'
+ * @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 BackupdrRequest+ * {@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 restore template execution to retrieve. Format: 'projects/{project_id}/loc + * ations/{location}/restoreTemplates/{restore_template_id}/executions/{execution_id}' + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Backupdr.this, "GET", REST_PATH, null, com.google.api.services.backupdr.v1beta.model.RestoreTemplateExecution.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/[^/]+/restoreTemplates/[^/]+/executions/[^/]+$"); + } + } + + @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 restore template execution to retrieve. Format: 'projects/{ + * project_id}/locations/{location}/restoreTemplates/{restore_template_id}/executions/{e + * xecution_id}' + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the restore template execution to retrieve. Format: 'projects/{project_id}/lo + cations/{location}/restoreTemplates/{restore_template_id}/executions/{execution_id}' + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the restore template execution to retrieve. Format: 'projects/{ + * project_id}/locations/{location}/restoreTemplates/{restore_template_id}/executions/{e + * xecution_id}' + */ + 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/[^/]+/restoreTemplates/[^/]+/executions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists RestoreTemplateExecutions in a given project, location and restore template. + * + * Create a request for the method "executions.list". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The project, location, and restore template for which to retrieve executions information. + * Format: `projects/{project}/locations/{location}/restoreTemplates/{restore_template}`. + * @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 BackupdrRequest+ * {@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 project, location, and restore template for which to retrieve executions information. + * Format: `projects/{project}/locations/{location}/restoreTemplates/{restore_template}`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Backupdr.this, "GET", REST_PATH, null, com.google.api.services.backupdr.v1beta.model.ListRestoreTemplateExecutionsResponse.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/[^/]+/restoreTemplates/[^/]+$"); + } + } + + @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 project, location, and restore template for which to retrieve + * executions information. Format: + * `projects/{project}/locations/{location}/restoreTemplates/{restore_template}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The project, location, and restore template for which to retrieve executions information. + Format: `projects/{project}/locations/{location}/restoreTemplates/{restore_template}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The project, location, and restore template for which to retrieve + * executions information. Format: + * `projects/{project}/locations/{location}/restoreTemplates/{restore_template}`. + */ + 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/[^/]+/restoreTemplates/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. Filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filtering results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Filtering results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. Hint for how to order the results. */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Hint for how to order the results. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Hint for how to order the results. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** Optional. Requested page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Optional. Requested page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A token identifying a page of results. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token identifying a page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A token identifying a page of results. */ + 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); + } + } + /** + * Triggers cleanup of restored resources created during execution. + * + * Create a request for the method "executions.triggerRestoreCleanup". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link TriggerRestoreCleanup#execute()} method to invoke the remote + * operation. + * + * @param name Required. Name of the restore template execution. Format: 'projects/{project_id}/locations/{location + * }/restoreTemplates/{restore_template_id}/executions/{execution_id}' + * @param content the {@link com.google.api.services.backupdr.v1beta.model.TriggerRestoreCleanupRequest} + * @return the request + */ + public TriggerRestoreCleanup triggerRestoreCleanup(java.lang.String name, com.google.api.services.backupdr.v1beta.model.TriggerRestoreCleanupRequest content) throws java.io.IOException { + TriggerRestoreCleanup result = new TriggerRestoreCleanup(name, content); + initialize(result); + return result; + } + + public class TriggerRestoreCleanup extends BackupdrRequest{@link TriggerRestoreCleanup#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 restore template execution. Format: 'projects/{project_id}/locations/{location + * }/restoreTemplates/{restore_template_id}/executions/{execution_id}' + * @param content the {@link com.google.api.services.backupdr.v1beta.model.TriggerRestoreCleanupRequest} + * @since 1.13 + */ + protected TriggerRestoreCleanup(java.lang.String name, com.google.api.services.backupdr.v1beta.model.TriggerRestoreCleanupRequest content) { + super(Backupdr.this, "POST", REST_PATH, content, com.google.api.services.backupdr.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/[^/]+/restoreTemplates/[^/]+/executions/[^/]+$"); + } + } + + @Override + public TriggerRestoreCleanup set$Xgafv(java.lang.String $Xgafv) { + return (TriggerRestoreCleanup) super.set$Xgafv($Xgafv); + } + + @Override + public TriggerRestoreCleanup setAccessToken(java.lang.String accessToken) { + return (TriggerRestoreCleanup) super.setAccessToken(accessToken); + } + + @Override + public TriggerRestoreCleanup setAlt(java.lang.String alt) { + return (TriggerRestoreCleanup) super.setAlt(alt); + } + + @Override + public TriggerRestoreCleanup setCallback(java.lang.String callback) { + return (TriggerRestoreCleanup) super.setCallback(callback); + } + + @Override + public TriggerRestoreCleanup setFields(java.lang.String fields) { + return (TriggerRestoreCleanup) super.setFields(fields); + } + + @Override + public TriggerRestoreCleanup setKey(java.lang.String key) { + return (TriggerRestoreCleanup) super.setKey(key); + } + + @Override + public TriggerRestoreCleanup setOauthToken(java.lang.String oauthToken) { + return (TriggerRestoreCleanup) super.setOauthToken(oauthToken); + } + + @Override + public TriggerRestoreCleanup setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TriggerRestoreCleanup) super.setPrettyPrint(prettyPrint); + } + + @Override + public TriggerRestoreCleanup setQuotaUser(java.lang.String quotaUser) { + return (TriggerRestoreCleanup) super.setQuotaUser(quotaUser); + } + + @Override + public TriggerRestoreCleanup setUploadType(java.lang.String uploadType) { + return (TriggerRestoreCleanup) super.setUploadType(uploadType); + } + + @Override + public TriggerRestoreCleanup setUploadProtocol(java.lang.String uploadProtocol) { + return (TriggerRestoreCleanup) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the restore template execution. Format: 'projects/{project_id}/loca + * tions/{location}/restoreTemplates/{restore_template_id}/executions/{execution_id}' + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the restore template execution. Format: 'projects/{project_id}/locations/{locatio + n}/restoreTemplates/{restore_template_id}/executions/{execution_id}' + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the restore template execution. Format: 'projects/{project_id}/loca + * tions/{location}/restoreTemplates/{restore_template_id}/executions/{execution_id}' + */ + public TriggerRestoreCleanup 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/[^/]+/restoreTemplates/[^/]+/executions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public TriggerRestoreCleanup set(String parameterName, Object value) { + return (TriggerRestoreCleanup) super.set(parameterName, value); + } + } + + } + } + /** + * An accessor for creating requests from the RestoreVerificationPlans collection. + * + *The typical use is:
+ *
+ * {@code Backupdr backupdr = new Backupdr(...);}
+ * {@code Backupdr.RestoreVerificationPlans.List request = backupdr.restoreVerificationPlans().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public RestoreVerificationPlans restoreVerificationPlans() {
+ return new RestoreVerificationPlans();
+ }
+
+ /**
+ * The "restoreVerificationPlans" collection of methods.
+ */
+ public class RestoreVerificationPlans {
+
+ /**
+ * Creates a new RestoreVerificationPlan in a given project and location.
+ *
+ * Create a request for the method "restoreVerificationPlans.create".
+ *
+ * This request holds the parameters needed by the backupdr server. After setting any optional
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The `RestoreVerificationPlan` project and location in the format
+ * `projects/{project}/locations/{location}`. In Google Cloud Backup and DR locations map to
+ * Google Cloud regions, for example **us-central1**.
+ * @param content the {@link com.google.api.services.backupdr.v1beta.model.RestoreVerificationPlan}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.backupdr.v1beta.model.RestoreVerificationPlan content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends BackupdrRequest{@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 `RestoreVerificationPlan` project and location in the format + * `projects/{project}/locations/{location}`. In Google Cloud Backup and DR locations map to + * Google Cloud regions, for example **us-central1**. + * @param content the {@link com.google.api.services.backupdr.v1beta.model.RestoreVerificationPlan} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.backupdr.v1beta.model.RestoreVerificationPlan content) { + super(Backupdr.this, "POST", REST_PATH, content, com.google.api.services.backupdr.v1beta.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 `RestoreVerificationPlan` project and location in the format + * `projects/{project}/locations/{location}`. In Google Cloud Backup and DR locations map + * to Google Cloud regions, for example **us-central1**. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The `RestoreVerificationPlan` project and location in the format + `projects/{project}/locations/{location}`. In Google Cloud Backup and DR locations map to Google + Cloud regions, for example **us-central1**. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The `RestoreVerificationPlan` project and location in the format + * `projects/{project}/locations/{location}`. In Google Cloud Backup and DR locations map + * to Google Cloud regions, for example **us-central1**. + */ + 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; + } + + /** + * Optional. An optional 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 + * since 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. An optional 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 since 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. An optional 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 + * since 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; + } + + /** + * Required. The name of the `RestoreVerificationPlan` to create. The name must be unique + * for the specified project and location. The name must start with a lowercase letter + * followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, + * `^[a-z]([-a-z0-9]*[a-z0-9])?$`. + */ + @com.google.api.client.util.Key + private java.lang.String restoreVerificationPlanId; + + /** Required. The name of the `RestoreVerificationPlan` to create. The name must be unique for the + specified project and location. The name must start with a lowercase letter followed by up to 62 + lowercase letters, numbers, or hyphens. Pattern, `^[a-z]([-a-z0-9]*[a-z0-9])?$`. + */ + public java.lang.String getRestoreVerificationPlanId() { + return restoreVerificationPlanId; + } + + /** + * Required. The name of the `RestoreVerificationPlan` to create. The name must be unique + * for the specified project and location. The name must start with a lowercase letter + * followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, + * `^[a-z]([-a-z0-9]*[a-z0-9])?$`. + */ + public Create setRestoreVerificationPlanId(java.lang.String restoreVerificationPlanId) { + this.restoreVerificationPlanId = restoreVerificationPlanId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single RestoreVerificationPlan. If the `force` flag is set to `true`, any + * RestoreVerificationPlanAssociations linked to this RestoreVerificationPlan will also be deleted. + * + * Create a request for the method "restoreVerificationPlans.delete". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the `RestoreVerificationPlan` to delete. Format: + * `projects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan + * }` + * @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 BackupdrRequest{@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 resource name of the `RestoreVerificationPlan` to delete. Format: + * `projects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan + * }` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Backupdr.this, "DELETE", REST_PATH, null, com.google.api.services.backupdr.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/[^/]+/restoreVerificationPlans/[^/]+$"); + } + } + + @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 resource name of the `RestoreVerificationPlan` to delete. Format: `projec + * ts/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the `RestoreVerificationPlan` to delete. Format: + `projects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the `RestoreVerificationPlan` to delete. Format: `projec + * ts/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan}` + */ + 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/[^/]+/restoreVerificationPlans/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. If set to true, any RestoreVerificationPlanAssociations linked to this + * RestoreVerificationPlan will also be deleted. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. If set to true, any RestoreVerificationPlanAssociations linked to this + RestoreVerificationPlan will also be deleted. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If set to true, any RestoreVerificationPlanAssociations linked to this + * RestoreVerificationPlan will also be deleted. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + /** + * Optional. An optional 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. An optional 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. An optional 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); + } + } + /** + * Gets details of a single RestoreVerificationPlan. Returns the requested RestoreVerificationPlan. + * + * Create a request for the method "restoreVerificationPlans.get". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the `RestoreVerificationPlan` to retrieve. Format: + * `projects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan + * }` + * @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 BackupdrRequest+ * {@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 resource name of the `RestoreVerificationPlan` to retrieve. Format: + * `projects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan + * }` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Backupdr.this, "GET", REST_PATH, null, com.google.api.services.backupdr.v1beta.model.RestoreVerificationPlan.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/[^/]+/restoreVerificationPlans/[^/]+$"); + } + } + + @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 resource name of the `RestoreVerificationPlan` to retrieve. Format: `proj + * ects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the `RestoreVerificationPlan` to retrieve. Format: + `projects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the `RestoreVerificationPlan` to retrieve. Format: `proj + * ects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan}` + */ + 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/[^/]+/restoreVerificationPlans/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists RestoreVerificationPlans in a given project and location. + * + * Create a request for the method "restoreVerificationPlans.list". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The project and location for which to retrieve `RestoreVerificationPlans` information. + * Format: `projects/{project}/locations/{location}`. In Google Cloud Backup and DR, + * locations map to Google Cloud regions, for example **us-central1**. To retrieve restore + * verification plans for all locations, use "-" for the `{location}` value. + * @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 BackupdrRequest+ * {@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 project and location for which to retrieve `RestoreVerificationPlans` information. + * Format: `projects/{project}/locations/{location}`. In Google Cloud Backup and DR, + * locations map to Google Cloud regions, for example **us-central1**. To retrieve restore + * verification plans for all locations, use "-" for the `{location}` value. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Backupdr.this, "GET", REST_PATH, null, com.google.api.services.backupdr.v1beta.model.ListRestoreVerificationPlansResponse.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 project and location for which to retrieve `RestoreVerificationPlans` + * information. Format: `projects/{project}/locations/{location}`. In Google Cloud Backup + * and DR, locations map to Google Cloud regions, for example **us-central1**. To retrieve + * restore verification plans for all locations, use "-" for the `{location}` value. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The project and location for which to retrieve `RestoreVerificationPlans` information. + Format: `projects/{project}/locations/{location}`. In Google Cloud Backup and DR, locations map to + Google Cloud regions, for example **us-central1**. To retrieve restore verification plans for all + locations, use "-" for the `{location}` value. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The project and location for which to retrieve `RestoreVerificationPlans` + * information. Format: `projects/{project}/locations/{location}`. In Google Cloud Backup + * and DR, locations map to Google Cloud regions, for example **us-central1**. To retrieve + * restore verification plans for all locations, use "-" for the `{location}` value. + */ + 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. Field match expression used to filter the results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Field match expression used to filter the results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Field match expression used to filter the results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. Field by which to sort the results. */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field by which to sort the results. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Field by which to sort the results. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of `RestoreVerificationPlans` to return in a single + * response. If not specified, a default value will be chosen by the service. Note that + * the response may include a partial list and a caller should only rely on the response's + * next_page_token to determine if there are more instances left to be queried. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of `RestoreVerificationPlans` to return in a single response. If not + specified, a default value will be chosen by the service. Note that the response may include a + partial list and a caller should only rely on the response's next_page_token to determine if there + are more instances left to be queried. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of `RestoreVerificationPlans` to return in a single + * response. If not specified, a default value will be chosen by the service. Note that + * the response may include a partial list and a caller should only rely on the response's + * next_page_token to determine if there are more instances left to be queried. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The value of next_page_token received from a previous + * `ListRestoreVerificationPlans` call. Provide this to retrieve the subsequent page in a + * multi-page list of results. When paginating, all other parameters provided to + * `ListRestoreVerificationPlans` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The value of next_page_token received from a previous `ListRestoreVerificationPlans` + call. Provide this to retrieve the subsequent page in a multi-page list of results. When + paginating, all other parameters provided to `ListRestoreVerificationPlans` must match the call + that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The value of next_page_token received from a previous + * `ListRestoreVerificationPlans` call. Provide this to retrieve the subsequent page in a + * multi-page list of results. When paginating, all other parameters provided to + * `ListRestoreVerificationPlans` 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); + } + } + + /** + * An accessor for creating requests from the Associations collection. + * + *The typical use is:
+ *
+ * {@code Backupdr backupdr = new Backupdr(...);}
+ * {@code Backupdr.Associations.List request = backupdr.associations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Associations associations() {
+ return new Associations();
+ }
+
+ /**
+ * The "associations" collection of methods.
+ */
+ public class Associations {
+
+ /**
+ * Creates a new RestoreVerificationPlanAssociation in a given RestoreVerificationPlan.
+ *
+ * Create a request for the method "associations.create".
+ *
+ * This request holds the parameters needed by the backupdr 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 association will be created. Format:
+ * `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_pl
+ * an}`
+ * @param content the {@link com.google.api.services.backupdr.v1beta.model.RestoreVerificationPlanAssociation}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.backupdr.v1beta.model.RestoreVerificationPlanAssociation content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends BackupdrRequest{@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 association will be created. Format: + * `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_pl + * an}` + * @param content the {@link com.google.api.services.backupdr.v1beta.model.RestoreVerificationPlanAssociation} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.backupdr.v1beta.model.RestoreVerificationPlanAssociation content) { + super(Backupdr.this, "POST", REST_PATH, content, com.google.api.services.backupdr.v1beta.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/[^/]+/restoreVerificationPlans/[^/]+$"); + } + } + + @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 association will be created. Format: `projec + * ts/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan + * }` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where this association will be created. Format: + `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where this association will be created. Format: `projec + * ts/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan + * }` + */ + 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/[^/]+/restoreVerificationPlans/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know that the server has already + * received the duplicate request and can avoid responding with an error. 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. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know that the server has already received the duplicate + request and can avoid responding with an error. 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. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know that the server has already + * received the duplicate request and can avoid responding with an error. 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; + } + + /** + * Required. The ID to use for the association, which will become the final component of + * the association's resource name. This value should be 1-63 characters, and valid + * characters are /[a-z0-9_-]/. + */ + @com.google.api.client.util.Key + private java.lang.String restoreVerificationPlanAssociationId; + + /** Required. The ID to use for the association, which will become the final component of the + association's resource name. This value should be 1-63 characters, and valid characters are + /[a-z0-9_-]/. + */ + public java.lang.String getRestoreVerificationPlanAssociationId() { + return restoreVerificationPlanAssociationId; + } + + /** + * Required. The ID to use for the association, which will become the final component of + * the association's resource name. This value should be 1-63 characters, and valid + * characters are /[a-z0-9_-]/. + */ + public Create setRestoreVerificationPlanAssociationId(java.lang.String restoreVerificationPlanAssociationId) { + this.restoreVerificationPlanAssociationId = restoreVerificationPlanAssociationId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single RestoreVerificationPlanAssociation in a given RestoreVerificationPlan. + * + * Create a request for the method "associations.delete". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the RestoreVerificationPlanAssociation to delete. Format: `projects/{ + * project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associa + * tions/{association}` + * @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 BackupdrRequest{@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 resource name of the RestoreVerificationPlanAssociation to delete. Format: `projects/{ + * project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associa + * tions/{association}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Backupdr.this, "DELETE", REST_PATH, null, com.google.api.services.backupdr.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/[^/]+/restoreVerificationPlans/[^/]+/associations/[^/]+$"); + } + } + + @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 resource name of the RestoreVerificationPlanAssociation to delete. + * Format: `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_ve + * rification_plan}/associations/{association}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the RestoreVerificationPlanAssociation to delete. Format: `projects/ + {project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{a + ssociation}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the RestoreVerificationPlanAssociation to delete. + * Format: `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_ve + * rification_plan}/associations/{association}` + */ + 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/[^/]+/restoreVerificationPlans/[^/]+/associations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know that the server has already + * received the duplicate request and can avoid responding with an error. 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. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know that the server has already received the duplicate + request and can avoid responding with an error. 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. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know that the server has already + * received the duplicate request and can avoid responding with an error. 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); + } + } + /** + * Gets details of a single RestoreVerificationPlanAssociation in a given RestoreVerificationPlan. + * + * Create a request for the method "associations.get". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the RestoreVerificationPlanAssociation to retrieve. Format: `projects + * /{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/assoc + * iations/{association}` + * @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 BackupdrRequest+ * {@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 resource name of the RestoreVerificationPlanAssociation to retrieve. Format: `projects + * /{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/assoc + * iations/{association}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Backupdr.this, "GET", REST_PATH, null, com.google.api.services.backupdr.v1beta.model.RestoreVerificationPlanAssociation.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/[^/]+/restoreVerificationPlans/[^/]+/associations/[^/]+$"); + } + } + + @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 resource name of the RestoreVerificationPlanAssociation to retrieve. + * Format: `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_ve + * rification_plan}/associations/{association}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the RestoreVerificationPlanAssociation to retrieve. Format: `project + s/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/ + {association}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the RestoreVerificationPlanAssociation to retrieve. + * Format: `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_ve + * rification_plan}/associations/{association}` + */ + 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/[^/]+/restoreVerificationPlans/[^/]+/associations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists RestoreVerificationPlanAssociations in a given RestoreVerificationPlan. + * + * Create a request for the method "associations.list". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent RestoreVerificationPlan name. Format: + * `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_pl + * an}` + * @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 BackupdrRequest+ * {@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 RestoreVerificationPlan name. Format: + * `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_pl + * an}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Backupdr.this, "GET", REST_PATH, null, com.google.api.services.backupdr.v1beta.model.ListRestoreVerificationPlanAssociationsResponse.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/[^/]+/restoreVerificationPlans/[^/]+$"); + } + } + + @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 RestoreVerificationPlan name. Format: `projects/{project}/locati + * ons/{location}/restoreVerificationPlans/{restore_verification_plan}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent RestoreVerificationPlan name. Format: + `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent RestoreVerificationPlan name. Format: `projects/{project}/locati + * ons/{location}/restoreVerificationPlans/{restore_verification_plan}` + */ + 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/[^/]+/restoreVerificationPlans/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. Filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filtering results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Filtering results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. Hint for how to order the results. */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Hint for how to order the results. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Hint for how to order the results. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of associations to return. The service may return fewer + * than this value. If unspecified, at most 500 associations 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 associations to return. The service may return fewer than this + value. If unspecified, at most 500 associations 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 associations to return. The service may return fewer + * than this value. If unspecified, at most 500 associations 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 + * `ListRestoreVerificationPlanAssociations` call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * `ListRestoreVerificationPlanAssociations` 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 `ListRestoreVerificationPlanAssociations` call. + Provide this to retrieve the subsequent page. When paginating, all other parameters provided to + `ListRestoreVerificationPlanAssociations` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous + * `ListRestoreVerificationPlanAssociations` call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * `ListRestoreVerificationPlanAssociations` 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); + } + } + /** + * Triggers a new Restore Verification for the association in a given RestoreVerificationPlan. + * + * Create a request for the method "associations.triggerRestoreVerification". + * + * This request holds the parameters needed by the backupdr server. After setting any optional + * parameters, call the {@link TriggerRestoreVerification#execute()} method to invoke the remote + * operation. + * + * @param name Required. The resource name of the RestoreVerificationPlanAssociation to trigger. Format: `projects/ + * {project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associ + * ations/{association}` + * @param content the {@link com.google.api.services.backupdr.v1beta.model.TriggerRestoreVerificationRequest} + * @return the request + */ + public TriggerRestoreVerification triggerRestoreVerification(java.lang.String name, com.google.api.services.backupdr.v1beta.model.TriggerRestoreVerificationRequest content) throws java.io.IOException { + TriggerRestoreVerification result = new TriggerRestoreVerification(name, content); + initialize(result); + return result; + } + + public class TriggerRestoreVerification extends BackupdrRequest{@link TriggerRestoreVerification#initialize(com.google.api.client.google + * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the RestoreVerificationPlanAssociation to trigger. Format: `projects/ + * {project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associ + * ations/{association}` + * @param content the {@link com.google.api.services.backupdr.v1beta.model.TriggerRestoreVerificationRequest} + * @since 1.13 + */ + protected TriggerRestoreVerification(java.lang.String name, com.google.api.services.backupdr.v1beta.model.TriggerRestoreVerificationRequest content) { + super(Backupdr.this, "POST", REST_PATH, content, com.google.api.services.backupdr.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/[^/]+/restoreVerificationPlans/[^/]+/associations/[^/]+$"); + } + } + + @Override + public TriggerRestoreVerification set$Xgafv(java.lang.String $Xgafv) { + return (TriggerRestoreVerification) super.set$Xgafv($Xgafv); + } + + @Override + public TriggerRestoreVerification setAccessToken(java.lang.String accessToken) { + return (TriggerRestoreVerification) super.setAccessToken(accessToken); + } + + @Override + public TriggerRestoreVerification setAlt(java.lang.String alt) { + return (TriggerRestoreVerification) super.setAlt(alt); + } + + @Override + public TriggerRestoreVerification setCallback(java.lang.String callback) { + return (TriggerRestoreVerification) super.setCallback(callback); + } + + @Override + public TriggerRestoreVerification setFields(java.lang.String fields) { + return (TriggerRestoreVerification) super.setFields(fields); + } + + @Override + public TriggerRestoreVerification setKey(java.lang.String key) { + return (TriggerRestoreVerification) super.setKey(key); + } + + @Override + public TriggerRestoreVerification setOauthToken(java.lang.String oauthToken) { + return (TriggerRestoreVerification) super.setOauthToken(oauthToken); + } + + @Override + public TriggerRestoreVerification setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TriggerRestoreVerification) super.setPrettyPrint(prettyPrint); + } + + @Override + public TriggerRestoreVerification setQuotaUser(java.lang.String quotaUser) { + return (TriggerRestoreVerification) super.setQuotaUser(quotaUser); + } + + @Override + public TriggerRestoreVerification setUploadType(java.lang.String uploadType) { + return (TriggerRestoreVerification) super.setUploadType(uploadType); + } + + @Override + public TriggerRestoreVerification setUploadProtocol(java.lang.String uploadProtocol) { + return (TriggerRestoreVerification) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the RestoreVerificationPlanAssociation to trigger. + * Format: `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_ve + * rification_plan}/associations/{association}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the RestoreVerificationPlanAssociation to trigger. Format: `projects + /{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{ + association}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the RestoreVerificationPlanAssociation to trigger. + * Format: `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_ve + * rification_plan}/associations/{association}` + */ + public TriggerRestoreVerification 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/[^/]+/restoreVerificationPlans/[^/]+/associations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public TriggerRestoreVerification set(String parameterName, Object value) { + return (TriggerRestoreVerification) super.set(parameterName, value); + } + } + + } + } /** * An accessor for creating requests from the ServiceConfig collection. * diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/Backup.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/Backup.java index 7c6675ccf9a..94f5452be61 100644 --- a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/Backup.java +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/Backup.java @@ -224,6 +224,13 @@ public final class Backup extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private String updateTime; + /** + * Output only. The restore verification status of the backup. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VerificationSummary verificationSummary; + /** * Output only. AlloyDB specific backup properties. * @return value or {@code null} for none @@ -693,6 +700,23 @@ public Backup setUpdateTime(String updateTime) { return this; } + /** + * Output only. The restore verification status of the backup. + * @return value or {@code null} for none + */ + public VerificationSummary getVerificationSummary() { + return verificationSummary; + } + + /** + * Output only. The restore verification status of the backup. + * @param verificationSummary verificationSummary or {@code null} for none + */ + public Backup setVerificationSummary(VerificationSummary verificationSummary) { + this.verificationSummary = verificationSummary; + return this; + } + @Override public Backup set(String fieldName, Object value) { return (Backup) super.set(fieldName, value); diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/BackupRule.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/BackupRule.java index 761d7594450..d242ec721b1 100644 --- a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/BackupRule.java +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/BackupRule.java @@ -42,6 +42,22 @@ public final class BackupRule extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Integer backupRetentionDays; + /** + * Optional. Resource name of backup vault which will be used as storage location for backups + * generated by this rule. Format: + * projects/{project}/locations/{location}/backupVaults/{backup_vault} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String backupVault; + + /** + * Output only. The service account used by the BackupVault to take backups. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String backupVaultServiceAccount; + /** * Required. Immutable. The unique id of this `BackupRule`. The `rule_id` is unique per * `BackupPlan`.The `rule_id` must start with a lowercase letter followed by up to 62 lowercase @@ -85,6 +101,44 @@ public BackupRule setBackupRetentionDays(java.lang.Integer backupRetentionDays) return this; } + /** + * Optional. Resource name of backup vault which will be used as storage location for backups + * generated by this rule. Format: + * projects/{project}/locations/{location}/backupVaults/{backup_vault} + * @return value or {@code null} for none + */ + public java.lang.String getBackupVault() { + return backupVault; + } + + /** + * Optional. Resource name of backup vault which will be used as storage location for backups + * generated by this rule. Format: + * projects/{project}/locations/{location}/backupVaults/{backup_vault} + * @param backupVault backupVault or {@code null} for none + */ + public BackupRule setBackupVault(java.lang.String backupVault) { + this.backupVault = backupVault; + return this; + } + + /** + * Output only. The service account used by the BackupVault to take backups. + * @return value or {@code null} for none + */ + public java.lang.String getBackupVaultServiceAccount() { + return backupVaultServiceAccount; + } + + /** + * Output only. The service account used by the BackupVault to take backups. + * @param backupVaultServiceAccount backupVaultServiceAccount or {@code null} for none + */ + public BackupRule setBackupVaultServiceAccount(java.lang.String backupVaultServiceAccount) { + this.backupVaultServiceAccount = backupVaultServiceAccount; + return this; + } + /** * Required. Immutable. The unique id of this `BackupRule`. The `rule_id` is unique per * `BackupPlan`.The `rule_id` must start with a lowercase letter followed by up to 62 lowercase diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/BackupSelectionConfig.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/BackupSelectionConfig.java new file mode 100644 index 00000000000..ff0ff60d8e7 --- /dev/null +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/BackupSelectionConfig.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.backupdr.v1beta.model; + +/** + * Configuration for selecting a backup. + * + *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 Backup and DR Service 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 BackupSelectionConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. Immutable. The fully qualified URI of the backupdr data source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dataSource; + + /** + * Required. Immutable. The fully qualified URI of the backupdr data source. + * @return value or {@code null} for none + */ + public java.lang.String getDataSource() { + return dataSource; + } + + /** + * Required. Immutable. The fully qualified URI of the backupdr data source. + * @param dataSource dataSource or {@code null} for none + */ + public BackupSelectionConfig setDataSource(java.lang.String dataSource) { + this.dataSource = dataSource; + return this; + } + + @Override + public BackupSelectionConfig set(String fieldName, Object value) { + return (BackupSelectionConfig) super.set(fieldName, value); + } + + @Override + public BackupSelectionConfig clone() { + return (BackupSelectionConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/CleanupPhaseInfo.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/CleanupPhaseInfo.java new file mode 100644 index 00000000000..9e72a5b7ab1 --- /dev/null +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/CleanupPhaseInfo.java @@ -0,0 +1,235 @@ +/* + * 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.backupdr.v1beta.model; + +/** + * Info for Cleanup phase execution. + * + *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 Backup and DR Service 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 CleanupPhaseInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. Time taken to perform the cleanup of restored resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String cleanupDuration; + + /** + * Output only. The time when the resources will be cleaned up. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String cleanupTime; + + /** + * Output only. End time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Error details if the phase failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Output only. Snapshot of cleanup rule provided for this execution when execution is failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RestoreVerificationCleanupRule failureCleanupRule; + + /** + * Output only. The state of this phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phaseState; + + /** + * Output only. Start time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. Snapshot of cleanup rule provided for this execution when execution is successful. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RestoreVerificationCleanupRule successCleanupRule; + + /** + * Output only. Time taken to perform the cleanup of restored resource. + * @return value or {@code null} for none + */ + public String getCleanupDuration() { + return cleanupDuration; + } + + /** + * Output only. Time taken to perform the cleanup of restored resource. + * @param cleanupDuration cleanupDuration or {@code null} for none + */ + public CleanupPhaseInfo setCleanupDuration(String cleanupDuration) { + this.cleanupDuration = cleanupDuration; + return this; + } + + /** + * Output only. The time when the resources will be cleaned up. + * @return value or {@code null} for none + */ + public String getCleanupTime() { + return cleanupTime; + } + + /** + * Output only. The time when the resources will be cleaned up. + * @param cleanupTime cleanupTime or {@code null} for none + */ + public CleanupPhaseInfo setCleanupTime(String cleanupTime) { + this.cleanupTime = cleanupTime; + return this; + } + + /** + * Output only. End time of the phase. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. End time of the phase. + * @param endTime endTime or {@code null} for none + */ + public CleanupPhaseInfo setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Error details if the phase failed. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * Output only. Error details if the phase failed. + * @param error error or {@code null} for none + */ + public CleanupPhaseInfo setError(Status error) { + this.error = error; + return this; + } + + /** + * Output only. Snapshot of cleanup rule provided for this execution when execution is failed. + * @return value or {@code null} for none + */ + public RestoreVerificationCleanupRule getFailureCleanupRule() { + return failureCleanupRule; + } + + /** + * Output only. Snapshot of cleanup rule provided for this execution when execution is failed. + * @param failureCleanupRule failureCleanupRule or {@code null} for none + */ + public CleanupPhaseInfo setFailureCleanupRule(RestoreVerificationCleanupRule failureCleanupRule) { + this.failureCleanupRule = failureCleanupRule; + return this; + } + + /** + * Output only. The state of this phase. + * @return value or {@code null} for none + */ + public java.lang.String getPhaseState() { + return phaseState; + } + + /** + * Output only. The state of this phase. + * @param phaseState phaseState or {@code null} for none + */ + public CleanupPhaseInfo setPhaseState(java.lang.String phaseState) { + this.phaseState = phaseState; + return this; + } + + /** + * Output only. Start time of the phase. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Output only. Start time of the phase. + * @param startTime startTime or {@code null} for none + */ + public CleanupPhaseInfo setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * Output only. Snapshot of cleanup rule provided for this execution when execution is successful. + * @return value or {@code null} for none + */ + public RestoreVerificationCleanupRule getSuccessCleanupRule() { + return successCleanupRule; + } + + /** + * Output only. Snapshot of cleanup rule provided for this execution when execution is successful. + * @param successCleanupRule successCleanupRule or {@code null} for none + */ + public CleanupPhaseInfo setSuccessCleanupRule(RestoreVerificationCleanupRule successCleanupRule) { + this.successCleanupRule = successCleanupRule; + return this; + } + + @Override + public CleanupPhaseInfo set(String fieldName, Object value) { + return (CleanupPhaseInfo) super.set(fieldName, value); + } + + @Override + public CleanupPhaseInfo clone() { + return (CleanupPhaseInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/ExecutionSummary.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/ExecutionSummary.java new file mode 100644 index 00000000000..d8adf1c4866 --- /dev/null +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/ExecutionSummary.java @@ -0,0 +1,94 @@ +/* + * 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.backupdr.v1beta.model; + +/** + * Summary of the last execution. + * + *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 Backup and DR Service 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 ExecutionSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. The resource name of the last execution. Format: `projects/{project}/locations/{lo + * cation}/restoreTemplates/{restore_template}/executions/{execution}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastExecution; + + /** + * Output only. The state of the last execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastExecutionState; + + /** + * Output only. The resource name of the last execution. Format: `projects/{project}/locations/{lo + * cation}/restoreTemplates/{restore_template}/executions/{execution}` + * @return value or {@code null} for none + */ + public java.lang.String getLastExecution() { + return lastExecution; + } + + /** + * Output only. The resource name of the last execution. Format: `projects/{project}/locations/{lo + * cation}/restoreTemplates/{restore_template}/executions/{execution}` + * @param lastExecution lastExecution or {@code null} for none + */ + public ExecutionSummary setLastExecution(java.lang.String lastExecution) { + this.lastExecution = lastExecution; + return this; + } + + /** + * Output only. The state of the last execution. + * @return value or {@code null} for none + */ + public java.lang.String getLastExecutionState() { + return lastExecutionState; + } + + /** + * Output only. The state of the last execution. + * @param lastExecutionState lastExecutionState or {@code null} for none + */ + public ExecutionSummary setLastExecutionState(java.lang.String lastExecutionState) { + this.lastExecutionState = lastExecutionState; + return this; + } + + @Override + public ExecutionSummary set(String fieldName, Object value) { + return (ExecutionSummary) super.set(fieldName, value); + } + + @Override + public ExecutionSummary clone() { + return (ExecutionSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/ListRestoreTemplateExecutionsResponse.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/ListRestoreTemplateExecutionsResponse.java new file mode 100644 index 00000000000..21652372240 --- /dev/null +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/ListRestoreTemplateExecutionsResponse.java @@ -0,0 +1,115 @@ +/* + * 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.backupdr.v1beta.model; + +/** + * Response message for listing RestoreTemplateExecutions. + * + *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 Backup and DR Service 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 ListRestoreTemplateExecutionsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token identifying a page of results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of RestoreTemplateExecution instances. + * 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 Backup and DR Service 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 ListRestoreTemplatesResponse extends com.google.api.client.json.GenericJson { + + /** + * A token which may be sent as `page_token` in a subsequent `ListRestoreTemplates` call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of RestoreTemplates. + * 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 Backup and DR Service 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 ListRestoreVerificationPlanAssociationsResponse 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 list of RestoreVerificationPlanAssociations. + * 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 Backup and DR Service 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 ListRestoreVerificationPlansResponse extends com.google.api.client.json.GenericJson { + + /** + * A token which may be sent as page_token in a subsequent `ListRestoreVerificationPlans` call to + * retrieve the next page of results. If this field is omitted or empty, then there are no more + * results to return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of `RestoreVerificationPlans` in the project for the specified location. If the + * `{location}` value in the request is "-", the response contains a list of resources from all + * locations. In case any location is unreachable, the response will only return restore + * verification plans in reachable locations and the 'unreachable' field will be populated with a + * list of unreachable locations. + * 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 Backup and DR Service 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 PostRestoreConfig extends com.google.api.client.json.GenericJson { + + /** + * Cloud Run job action to execute. Format: `projects/{project}/locations/{location}/jobs/{job}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudRunJob; + + /** + * Optional. The timeout for this phase. If set, the timeout must be positive and less than or + * equal to 24 hours (86400s). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timeout; + + /** + * Cloud Run job action to execute. Format: `projects/{project}/locations/{location}/jobs/{job}` + * @return value or {@code null} for none + */ + public java.lang.String getCloudRunJob() { + return cloudRunJob; + } + + /** + * Cloud Run job action to execute. Format: `projects/{project}/locations/{location}/jobs/{job}` + * @param cloudRunJob cloudRunJob or {@code null} for none + */ + public PostRestoreConfig setCloudRunJob(java.lang.String cloudRunJob) { + this.cloudRunJob = cloudRunJob; + return this; + } + + /** + * Optional. The timeout for this phase. If set, the timeout must be positive and less than or + * equal to 24 hours (86400s). + * @return value or {@code null} for none + */ + public String getTimeout() { + return timeout; + } + + /** + * Optional. The timeout for this phase. If set, the timeout must be positive and less than or + * equal to 24 hours (86400s). + * @param timeout timeout or {@code null} for none + */ + public PostRestoreConfig setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + @Override + public PostRestoreConfig set(String fieldName, Object value) { + return (PostRestoreConfig) super.set(fieldName, value); + } + + @Override + public PostRestoreConfig clone() { + return (PostRestoreConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/PostRestorePhaseInfo.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/PostRestorePhaseInfo.java new file mode 100644 index 00000000000..0b074fa829b --- /dev/null +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/PostRestorePhaseInfo.java @@ -0,0 +1,190 @@ +/* + * 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.backupdr.v1beta.model; + +/** + * Info for Post-Restore phase execution. + * + *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 Backup and DR Service 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 PostRestorePhaseInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The fully qualified URI of the Cloud Run Execution triggered for post-restore + * actions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudRunExecution; + + /** + * Output only. End time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Error details if the phase failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Output only. The state of this phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phaseState; + + /** + * Output only. Snapshot of config that will be executed after successful restore operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PostRestoreConfig postRestoreConfig; + + /** + * Output only. Start time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. The fully qualified URI of the Cloud Run Execution triggered for post-restore + * actions. + * @return value or {@code null} for none + */ + public java.lang.String getCloudRunExecution() { + return cloudRunExecution; + } + + /** + * Output only. The fully qualified URI of the Cloud Run Execution triggered for post-restore + * actions. + * @param cloudRunExecution cloudRunExecution or {@code null} for none + */ + public PostRestorePhaseInfo setCloudRunExecution(java.lang.String cloudRunExecution) { + this.cloudRunExecution = cloudRunExecution; + return this; + } + + /** + * Output only. End time of the phase. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. End time of the phase. + * @param endTime endTime or {@code null} for none + */ + public PostRestorePhaseInfo setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Error details if the phase failed. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * Output only. Error details if the phase failed. + * @param error error or {@code null} for none + */ + public PostRestorePhaseInfo setError(Status error) { + this.error = error; + return this; + } + + /** + * Output only. The state of this phase. + * @return value or {@code null} for none + */ + public java.lang.String getPhaseState() { + return phaseState; + } + + /** + * Output only. The state of this phase. + * @param phaseState phaseState or {@code null} for none + */ + public PostRestorePhaseInfo setPhaseState(java.lang.String phaseState) { + this.phaseState = phaseState; + return this; + } + + /** + * Output only. Snapshot of config that will be executed after successful restore operation. + * @return value or {@code null} for none + */ + public PostRestoreConfig getPostRestoreConfig() { + return postRestoreConfig; + } + + /** + * Output only. Snapshot of config that will be executed after successful restore operation. + * @param postRestoreConfig postRestoreConfig or {@code null} for none + */ + public PostRestorePhaseInfo setPostRestoreConfig(PostRestoreConfig postRestoreConfig) { + this.postRestoreConfig = postRestoreConfig; + return this; + } + + /** + * Output only. Start time of the phase. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Output only. Start time of the phase. + * @param startTime startTime or {@code null} for none + */ + public PostRestorePhaseInfo setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public PostRestorePhaseInfo set(String fieldName, Object value) { + return (PostRestorePhaseInfo) super.set(fieldName, value); + } + + @Override + public PostRestorePhaseInfo clone() { + return (PostRestorePhaseInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/PreRestoreConfig.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/PreRestoreConfig.java new file mode 100644 index 00000000000..2b85df45c49 --- /dev/null +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/PreRestoreConfig.java @@ -0,0 +1,94 @@ +/* + * 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.backupdr.v1beta.model; + +/** + * Configuration for Pre-Restore. + * + *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 Backup and DR Service 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 PreRestoreConfig extends com.google.api.client.json.GenericJson { + + /** + * Cloud Run job action to execute. Format: `projects/{project}/locations/{location}/jobs/{job}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudRunJob; + + /** + * Optional. The timeout for this phase. If set, the timeout must be positive and less than or + * equal to 24 hours (86400s). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timeout; + + /** + * Cloud Run job action to execute. Format: `projects/{project}/locations/{location}/jobs/{job}` + * @return value or {@code null} for none + */ + public java.lang.String getCloudRunJob() { + return cloudRunJob; + } + + /** + * Cloud Run job action to execute. Format: `projects/{project}/locations/{location}/jobs/{job}` + * @param cloudRunJob cloudRunJob or {@code null} for none + */ + public PreRestoreConfig setCloudRunJob(java.lang.String cloudRunJob) { + this.cloudRunJob = cloudRunJob; + return this; + } + + /** + * Optional. The timeout for this phase. If set, the timeout must be positive and less than or + * equal to 24 hours (86400s). + * @return value or {@code null} for none + */ + public String getTimeout() { + return timeout; + } + + /** + * Optional. The timeout for this phase. If set, the timeout must be positive and less than or + * equal to 24 hours (86400s). + * @param timeout timeout or {@code null} for none + */ + public PreRestoreConfig setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + @Override + public PreRestoreConfig set(String fieldName, Object value) { + return (PreRestoreConfig) super.set(fieldName, value); + } + + @Override + public PreRestoreConfig clone() { + return (PreRestoreConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/PreRestorePhaseInfo.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/PreRestorePhaseInfo.java new file mode 100644 index 00000000000..24541fe1e3d --- /dev/null +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/PreRestorePhaseInfo.java @@ -0,0 +1,190 @@ +/* + * 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.backupdr.v1beta.model; + +/** + * Info for Pre-Restore phase execution. + * + *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 Backup and DR Service 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 PreRestorePhaseInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The fully qualified URI of the Cloud Run Execution triggered for pre-restore + * actions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudRunExecution; + + /** + * Output only. End time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Error details if the phase failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Output only. The state of this phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phaseState; + + /** + * Output only. Snapshot of config that will be executed before restore operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreRestoreConfig preRestoreConfig; + + /** + * Output only. Start time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. The fully qualified URI of the Cloud Run Execution triggered for pre-restore + * actions. + * @return value or {@code null} for none + */ + public java.lang.String getCloudRunExecution() { + return cloudRunExecution; + } + + /** + * Output only. The fully qualified URI of the Cloud Run Execution triggered for pre-restore + * actions. + * @param cloudRunExecution cloudRunExecution or {@code null} for none + */ + public PreRestorePhaseInfo setCloudRunExecution(java.lang.String cloudRunExecution) { + this.cloudRunExecution = cloudRunExecution; + return this; + } + + /** + * Output only. End time of the phase. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. End time of the phase. + * @param endTime endTime or {@code null} for none + */ + public PreRestorePhaseInfo setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Error details if the phase failed. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * Output only. Error details if the phase failed. + * @param error error or {@code null} for none + */ + public PreRestorePhaseInfo setError(Status error) { + this.error = error; + return this; + } + + /** + * Output only. The state of this phase. + * @return value or {@code null} for none + */ + public java.lang.String getPhaseState() { + return phaseState; + } + + /** + * Output only. The state of this phase. + * @param phaseState phaseState or {@code null} for none + */ + public PreRestorePhaseInfo setPhaseState(java.lang.String phaseState) { + this.phaseState = phaseState; + return this; + } + + /** + * Output only. Snapshot of config that will be executed before restore operation. + * @return value or {@code null} for none + */ + public PreRestoreConfig getPreRestoreConfig() { + return preRestoreConfig; + } + + /** + * Output only. Snapshot of config that will be executed before restore operation. + * @param preRestoreConfig preRestoreConfig or {@code null} for none + */ + public PreRestorePhaseInfo setPreRestoreConfig(PreRestoreConfig preRestoreConfig) { + this.preRestoreConfig = preRestoreConfig; + return this; + } + + /** + * Output only. Start time of the phase. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Output only. Start time of the phase. + * @param startTime startTime or {@code null} for none + */ + public PreRestorePhaseInfo setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public PreRestorePhaseInfo set(String fieldName, Object value) { + return (PreRestorePhaseInfo) super.set(fieldName, value); + } + + @Override + public PreRestorePhaseInfo clone() { + return (PreRestorePhaseInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/PreparePhaseInfo.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/PreparePhaseInfo.java new file mode 100644 index 00000000000..8c3dc0b0212 --- /dev/null +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/PreparePhaseInfo.java @@ -0,0 +1,238 @@ +/* + * 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.backupdr.v1beta.model; + +/** + * Info for Prepare phase execution. + * + *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 Backup and DR Service 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 PreparePhaseInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The source backup used for the restore. The fully qualified URI of the backupdr + * backup. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String backup; + + /** + * Output only. Snapshot of config used in this execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackupSelectionConfig backupSelectionConfig; + + /** + * Output only. End time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Error details if the phase failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Output only. Indicates whether the backup was explicitly passed in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isBackupExplicitlyPassed; + + /** + * Output only. The state of this phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phaseState; + + /** + * Output only. The restore verification plan association associated with the execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String restoreVerificationPlanAssociation; + + /** + * Output only. Start time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. The source backup used for the restore. The fully qualified URI of the backupdr + * backup. + * @return value or {@code null} for none + */ + public java.lang.String getBackup() { + return backup; + } + + /** + * Output only. The source backup used for the restore. The fully qualified URI of the backupdr + * backup. + * @param backup backup or {@code null} for none + */ + public PreparePhaseInfo setBackup(java.lang.String backup) { + this.backup = backup; + return this; + } + + /** + * Output only. Snapshot of config used in this execution. + * @return value or {@code null} for none + */ + public BackupSelectionConfig getBackupSelectionConfig() { + return backupSelectionConfig; + } + + /** + * Output only. Snapshot of config used in this execution. + * @param backupSelectionConfig backupSelectionConfig or {@code null} for none + */ + public PreparePhaseInfo setBackupSelectionConfig(BackupSelectionConfig backupSelectionConfig) { + this.backupSelectionConfig = backupSelectionConfig; + return this; + } + + /** + * Output only. End time of the phase. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. End time of the phase. + * @param endTime endTime or {@code null} for none + */ + public PreparePhaseInfo setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Error details if the phase failed. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * Output only. Error details if the phase failed. + * @param error error or {@code null} for none + */ + public PreparePhaseInfo setError(Status error) { + this.error = error; + return this; + } + + /** + * Output only. Indicates whether the backup was explicitly passed in the request. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsBackupExplicitlyPassed() { + return isBackupExplicitlyPassed; + } + + /** + * Output only. Indicates whether the backup was explicitly passed in the request. + * @param isBackupExplicitlyPassed isBackupExplicitlyPassed or {@code null} for none + */ + public PreparePhaseInfo setIsBackupExplicitlyPassed(java.lang.Boolean isBackupExplicitlyPassed) { + this.isBackupExplicitlyPassed = isBackupExplicitlyPassed; + return this; + } + + /** + * Output only. The state of this phase. + * @return value or {@code null} for none + */ + public java.lang.String getPhaseState() { + return phaseState; + } + + /** + * Output only. The state of this phase. + * @param phaseState phaseState or {@code null} for none + */ + public PreparePhaseInfo setPhaseState(java.lang.String phaseState) { + this.phaseState = phaseState; + return this; + } + + /** + * Output only. The restore verification plan association associated with the execution. + * @return value or {@code null} for none + */ + public java.lang.String getRestoreVerificationPlanAssociation() { + return restoreVerificationPlanAssociation; + } + + /** + * Output only. The restore verification plan association associated with the execution. + * @param restoreVerificationPlanAssociation restoreVerificationPlanAssociation or {@code null} for none + */ + public PreparePhaseInfo setRestoreVerificationPlanAssociation(java.lang.String restoreVerificationPlanAssociation) { + this.restoreVerificationPlanAssociation = restoreVerificationPlanAssociation; + return this; + } + + /** + * Output only. Start time of the phase. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Output only. Start time of the phase. + * @param startTime startTime or {@code null} for none + */ + public PreparePhaseInfo setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public PreparePhaseInfo set(String fieldName, Object value) { + return (PreparePhaseInfo) super.set(fieldName, value); + } + + @Override + public PreparePhaseInfo clone() { + return (PreparePhaseInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/RestorePhaseInfo.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/RestorePhaseInfo.java new file mode 100644 index 00000000000..b9e845c1570 --- /dev/null +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/RestorePhaseInfo.java @@ -0,0 +1,214 @@ +/* + * 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.backupdr.v1beta.model; + +/** + * Info for Restore phase execution. + * + *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 Backup and DR Service 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 RestorePhaseInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. End time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Error details if the phase failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Output only. The state of this phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phaseState; + + /** + * Output only. Time taken to restore the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String restoreDuration; + + /** + * Output only. Snapshot of environment config used during restore of this + * RestoreTemplateExecution. + * 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 Backup and DR Service 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 RestoreTemplate extends com.google.api.client.json.GenericJson { + + /** + * Required. Backup selection configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackupSelectionConfig backupSelectionConfig; + + /** + * Output only. The time when the restore template was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. User-provided description of the restore template. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. Etag for concurrency control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Output only. Summary of the last execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExecutionSummary executionSummary; + + /** + * Optional. User-defined 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 Backup and DR Service 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 RestoreTemplateExecution extends com.google.api.client.json.GenericJson { + + /** + * Output only. Info for the cleanup phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CleanupPhaseInfo cleanupPhaseInfo; + + /** + * Output only. Create time of the execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Identifier. Resource name of the execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The current active phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phase; + + /** + * Output only. Info for the post-restore phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PostRestorePhaseInfo postRestorePhaseInfo; + + /** + * Output only. Info for the pre-restore phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreRestorePhaseInfo preRestorePhaseInfo; + + /** + * Output only. Info for the prepare phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreparePhaseInfo preparePhaseInfo; + + /** + * Output only. The workload resource type being restored. The format is + * "{service_name}/{resource_kind}", for example, "compute.googleapis.com/Instance". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resourceType; + + /** + * Output only. Info for the restore phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RestorePhaseInfo restorePhaseInfo; + + /** + * Output only. State of the execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. The type of the execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. Update time of the execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Info for the verification phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VerificationPhaseInfo verificationPhaseInfo; + + /** + * Output only. Info for the cleanup phase. + * @return value or {@code null} for none + */ + public CleanupPhaseInfo getCleanupPhaseInfo() { + return cleanupPhaseInfo; + } + + /** + * Output only. Info for the cleanup phase. + * @param cleanupPhaseInfo cleanupPhaseInfo or {@code null} for none + */ + public RestoreTemplateExecution setCleanupPhaseInfo(CleanupPhaseInfo cleanupPhaseInfo) { + this.cleanupPhaseInfo = cleanupPhaseInfo; + return this; + } + + /** + * Output only. Create time of the execution. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Create time of the execution. + * @param createTime createTime or {@code null} for none + */ + public RestoreTemplateExecution setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Identifier. Resource name of the execution. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Resource name of the execution. + * @param name name or {@code null} for none + */ + public RestoreTemplateExecution setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The current active phase. + * @return value or {@code null} for none + */ + public java.lang.String getPhase() { + return phase; + } + + /** + * Output only. The current active phase. + * @param phase phase or {@code null} for none + */ + public RestoreTemplateExecution setPhase(java.lang.String phase) { + this.phase = phase; + return this; + } + + /** + * Output only. Info for the post-restore phase. + * @return value or {@code null} for none + */ + public PostRestorePhaseInfo getPostRestorePhaseInfo() { + return postRestorePhaseInfo; + } + + /** + * Output only. Info for the post-restore phase. + * @param postRestorePhaseInfo postRestorePhaseInfo or {@code null} for none + */ + public RestoreTemplateExecution setPostRestorePhaseInfo(PostRestorePhaseInfo postRestorePhaseInfo) { + this.postRestorePhaseInfo = postRestorePhaseInfo; + return this; + } + + /** + * Output only. Info for the pre-restore phase. + * @return value or {@code null} for none + */ + public PreRestorePhaseInfo getPreRestorePhaseInfo() { + return preRestorePhaseInfo; + } + + /** + * Output only. Info for the pre-restore phase. + * @param preRestorePhaseInfo preRestorePhaseInfo or {@code null} for none + */ + public RestoreTemplateExecution setPreRestorePhaseInfo(PreRestorePhaseInfo preRestorePhaseInfo) { + this.preRestorePhaseInfo = preRestorePhaseInfo; + return this; + } + + /** + * Output only. Info for the prepare phase. + * @return value or {@code null} for none + */ + public PreparePhaseInfo getPreparePhaseInfo() { + return preparePhaseInfo; + } + + /** + * Output only. Info for the prepare phase. + * @param preparePhaseInfo preparePhaseInfo or {@code null} for none + */ + public RestoreTemplateExecution setPreparePhaseInfo(PreparePhaseInfo preparePhaseInfo) { + this.preparePhaseInfo = preparePhaseInfo; + return this; + } + + /** + * Output only. The workload resource type being restored. The format is + * "{service_name}/{resource_kind}", for example, "compute.googleapis.com/Instance". + * @return value or {@code null} for none + */ + public java.lang.String getResourceType() { + return resourceType; + } + + /** + * Output only. The workload resource type being restored. The format is + * "{service_name}/{resource_kind}", for example, "compute.googleapis.com/Instance". + * @param resourceType resourceType or {@code null} for none + */ + public RestoreTemplateExecution setResourceType(java.lang.String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + * Output only. Info for the restore phase. + * @return value or {@code null} for none + */ + public RestorePhaseInfo getRestorePhaseInfo() { + return restorePhaseInfo; + } + + /** + * Output only. Info for the restore phase. + * @param restorePhaseInfo restorePhaseInfo or {@code null} for none + */ + public RestoreTemplateExecution setRestorePhaseInfo(RestorePhaseInfo restorePhaseInfo) { + this.restorePhaseInfo = restorePhaseInfo; + return this; + } + + /** + * Output only. State of the execution. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. State of the execution. + * @param state state or {@code null} for none + */ + public RestoreTemplateExecution setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. The type of the execution. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Output only. The type of the execution. + * @param type type or {@code null} for none + */ + public RestoreTemplateExecution setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Output only. Update time of the execution. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Update time of the execution. + * @param updateTime updateTime or {@code null} for none + */ + public RestoreTemplateExecution setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * Output only. Info for the verification phase. + * @return value or {@code null} for none + */ + public VerificationPhaseInfo getVerificationPhaseInfo() { + return verificationPhaseInfo; + } + + /** + * Output only. Info for the verification phase. + * @param verificationPhaseInfo verificationPhaseInfo or {@code null} for none + */ + public RestoreTemplateExecution setVerificationPhaseInfo(VerificationPhaseInfo verificationPhaseInfo) { + this.verificationPhaseInfo = verificationPhaseInfo; + return this; + } + + @Override + public RestoreTemplateExecution set(String fieldName, Object value) { + return (RestoreTemplateExecution) super.set(fieldName, value); + } + + @Override + public RestoreTemplateExecution clone() { + return (RestoreTemplateExecution) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/RestoreVerificationCleanupRule.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/RestoreVerificationCleanupRule.java new file mode 100644 index 00000000000..0ee281f6231 --- /dev/null +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/RestoreVerificationCleanupRule.java @@ -0,0 +1,94 @@ +/* + * 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.backupdr.v1beta.model; + +/** + * Defines the specific cleanup action. + * + *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 Backup and DR Service 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 RestoreVerificationCleanupRule extends com.google.api.client.json.GenericJson { + + /** + * Optional. Duration after restore finishes when cleanup triggers. Delay must be non-negative and + * at most 30 days (2592000 seconds). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String cleanupDelay; + + /** + * Optional. If set to true, the restored resource will not be cleaned up. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean skipCleanup; + + /** + * Optional. Duration after restore finishes when cleanup triggers. Delay must be non-negative and + * at most 30 days (2592000 seconds). + * @return value or {@code null} for none + */ + public String getCleanupDelay() { + return cleanupDelay; + } + + /** + * Optional. Duration after restore finishes when cleanup triggers. Delay must be non-negative and + * at most 30 days (2592000 seconds). + * @param cleanupDelay cleanupDelay or {@code null} for none + */ + public RestoreVerificationCleanupRule setCleanupDelay(String cleanupDelay) { + this.cleanupDelay = cleanupDelay; + return this; + } + + /** + * Optional. If set to true, the restored resource will not be cleaned up. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSkipCleanup() { + return skipCleanup; + } + + /** + * Optional. If set to true, the restored resource will not be cleaned up. + * @param skipCleanup skipCleanup or {@code null} for none + */ + public RestoreVerificationCleanupRule setSkipCleanup(java.lang.Boolean skipCleanup) { + this.skipCleanup = skipCleanup; + return this; + } + + @Override + public RestoreVerificationCleanupRule set(String fieldName, Object value) { + return (RestoreVerificationCleanupRule) super.set(fieldName, value); + } + + @Override + public RestoreVerificationCleanupRule clone() { + return (RestoreVerificationCleanupRule) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/RestoreVerificationPlan.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/RestoreVerificationPlan.java new file mode 100644 index 00000000000..56365735125 --- /dev/null +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/RestoreVerificationPlan.java @@ -0,0 +1,309 @@ +/* + * 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.backupdr.v1beta.model; + +/** + * A `RestoreVerificationPlan` specifies the scheduling and clean-up template for automated restore + * verification. It contains a `RestoreVerificationSchedule` to dictate when the verifications + * should run, and a `CleanupConfig` for post-verification resource deletion. + * + *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 Backup and DR Service 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 RestoreVerificationPlan extends com.google.api.client.json.GenericJson { + + /** + * Output only. When the `RestoreVerificationPlan` was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. The description of the `RestoreVerificationPlan` resource. The description allows for + * additional details about `RestoreVerificationPlan` and its use cases to be provided. An example + * description is the following: "This is a restore verification plan that performs a daily + * verification and cleans up the resources immediately after." The description must be at most + * 2048 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The cleanup rule to apply if the restore verification fails. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RestoreVerificationCleanupRule failureCleanupRule; + + /** + * Optional. User-defined 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 Backup and DR Service 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 RestoreVerificationPlanAssociation extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time when the association was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. The description of the `RestoreVerificationPlanAssociation` resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. User-defined 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 Backup and DR Service 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 RunRestoreTemplateRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The resource name of the Backup to restore from. If not specified, the latest backup + * matching the backup selection configuration in the RestoreTemplate will be used. Format: 'proje + * cts/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backup + * s/{backup}' + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String backup; + + /** + * Optional. An optional 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 request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** + * Optional. The resource name of the Backup to restore from. If not specified, the latest backup + * matching the backup selection configuration in the RestoreTemplate will be used. Format: 'proje + * cts/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backup + * s/{backup}' + * @return value or {@code null} for none + */ + public java.lang.String getBackup() { + return backup; + } + + /** + * Optional. The resource name of the Backup to restore from. If not specified, the latest backup + * matching the backup selection configuration in the RestoreTemplate will be used. Format: 'proje + * cts/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backup + * s/{backup}' + * @param backup backup or {@code null} for none + */ + public RunRestoreTemplateRequest setBackup(java.lang.String backup) { + this.backup = backup; + return this; + } + + /** + * Optional. An optional 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 request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return value or {@code null} for none + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional 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 request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @param requestId requestId or {@code null} for none + */ + public RunRestoreTemplateRequest setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RunRestoreTemplateRequest set(String fieldName, Object value) { + return (RunRestoreTemplateRequest) super.set(fieldName, value); + } + + @Override + public RunRestoreTemplateRequest clone() { + return (RunRestoreTemplateRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/TriggerRestoreCleanupRequest.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/TriggerRestoreCleanupRequest.java new file mode 100644 index 00000000000..0fbbcbd6af3 --- /dev/null +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/TriggerRestoreCleanupRequest.java @@ -0,0 +1,79 @@ +/* + * 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.backupdr.v1beta.model; + +/** + * Request message for triggering a restore cleanup. + * + *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 Backup and DR Service 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 TriggerRestoreCleanupRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. An optional 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. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** + * Optional. An optional 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. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @return value or {@code null} for none + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional 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. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param requestId requestId or {@code null} for none + */ + public TriggerRestoreCleanupRequest setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public TriggerRestoreCleanupRequest set(String fieldName, Object value) { + return (TriggerRestoreCleanupRequest) super.set(fieldName, value); + } + + @Override + public TriggerRestoreCleanupRequest clone() { + return (TriggerRestoreCleanupRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/TriggerRestoreVerificationRequest.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/TriggerRestoreVerificationRequest.java new file mode 100644 index 00000000000..14a76652800 --- /dev/null +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/TriggerRestoreVerificationRequest.java @@ -0,0 +1,76 @@ +/* + * 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.backupdr.v1beta.model; + +/** + * Request message for TriggerRestoreVerification. + * + *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 Backup and DR Service 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 TriggerRestoreVerificationRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know that the server has already received the + * duplicate request and can avoid responding with an error. The request ID must be a valid UUID + * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know that the server has already received the + * duplicate request and can avoid responding with an error. The request ID must be a valid UUID + * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @return value or {@code null} for none + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know that the server has already received the + * duplicate request and can avoid responding with an error. The request ID must be a valid UUID + * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param requestId requestId or {@code null} for none + */ + public TriggerRestoreVerificationRequest setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public TriggerRestoreVerificationRequest set(String fieldName, Object value) { + return (TriggerRestoreVerificationRequest) super.set(fieldName, value); + } + + @Override + public TriggerRestoreVerificationRequest clone() { + return (TriggerRestoreVerificationRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/TriggerSummary.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/TriggerSummary.java new file mode 100644 index 00000000000..aab02e941a7 --- /dev/null +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/TriggerSummary.java @@ -0,0 +1,146 @@ +/* + * 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.backupdr.v1beta.model; + +/** + * `TriggerSummary` contains the results of the most recent automated restore initiation and the + * next scheduled execution time. + * + *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 Backup and DR Service 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 TriggerSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. The error status of the most recent failed trigger. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status lastTriggerError; + + /** + * Output only. The time of the most recent trigger initiation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastTriggerTime; + + /** + * Output only. The resource name of the most recent initiated RestoreTemplateExecution. Format: ` + * projects/{project}/locations/{location}/restoreTemplates/{restore_template}/executions/{executi + * on}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastVerificationExecution; + + /** + * Output only. The scheduled time of the next trigger initiation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String nextTriggerTime; + + /** + * Output only. The error status of the most recent failed trigger. + * @return value or {@code null} for none + */ + public Status getLastTriggerError() { + return lastTriggerError; + } + + /** + * Output only. The error status of the most recent failed trigger. + * @param lastTriggerError lastTriggerError or {@code null} for none + */ + public TriggerSummary setLastTriggerError(Status lastTriggerError) { + this.lastTriggerError = lastTriggerError; + return this; + } + + /** + * Output only. The time of the most recent trigger initiation. + * @return value or {@code null} for none + */ + public String getLastTriggerTime() { + return lastTriggerTime; + } + + /** + * Output only. The time of the most recent trigger initiation. + * @param lastTriggerTime lastTriggerTime or {@code null} for none + */ + public TriggerSummary setLastTriggerTime(String lastTriggerTime) { + this.lastTriggerTime = lastTriggerTime; + return this; + } + + /** + * Output only. The resource name of the most recent initiated RestoreTemplateExecution. Format: ` + * projects/{project}/locations/{location}/restoreTemplates/{restore_template}/executions/{executi + * on}` + * @return value or {@code null} for none + */ + public java.lang.String getLastVerificationExecution() { + return lastVerificationExecution; + } + + /** + * Output only. The resource name of the most recent initiated RestoreTemplateExecution. Format: ` + * projects/{project}/locations/{location}/restoreTemplates/{restore_template}/executions/{executi + * on}` + * @param lastVerificationExecution lastVerificationExecution or {@code null} for none + */ + public TriggerSummary setLastVerificationExecution(java.lang.String lastVerificationExecution) { + this.lastVerificationExecution = lastVerificationExecution; + return this; + } + + /** + * Output only. The scheduled time of the next trigger initiation. + * @return value or {@code null} for none + */ + public String getNextTriggerTime() { + return nextTriggerTime; + } + + /** + * Output only. The scheduled time of the next trigger initiation. + * @param nextTriggerTime nextTriggerTime or {@code null} for none + */ + public TriggerSummary setNextTriggerTime(String nextTriggerTime) { + this.nextTriggerTime = nextTriggerTime; + return this; + } + + @Override + public TriggerSummary set(String fieldName, Object value) { + return (TriggerSummary) super.set(fieldName, value); + } + + @Override + public TriggerSummary clone() { + return (TriggerSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/VerificationConfig.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/VerificationConfig.java new file mode 100644 index 00000000000..a1a3e7b9877 --- /dev/null +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/VerificationConfig.java @@ -0,0 +1,94 @@ +/* + * 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.backupdr.v1beta.model; + +/** + * Configuration for Verification. + * + *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 Backup and DR Service 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 VerificationConfig extends com.google.api.client.json.GenericJson { + + /** + * Cloud Run job action to execute. Format: `projects/{project}/locations/{location}/jobs/{job}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudRunJob; + + /** + * Optional. The timeout for this phase. If set, the timeout must be positive and less than or + * equal to 24 hours (86400s). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timeout; + + /** + * Cloud Run job action to execute. Format: `projects/{project}/locations/{location}/jobs/{job}` + * @return value or {@code null} for none + */ + public java.lang.String getCloudRunJob() { + return cloudRunJob; + } + + /** + * Cloud Run job action to execute. Format: `projects/{project}/locations/{location}/jobs/{job}` + * @param cloudRunJob cloudRunJob or {@code null} for none + */ + public VerificationConfig setCloudRunJob(java.lang.String cloudRunJob) { + this.cloudRunJob = cloudRunJob; + return this; + } + + /** + * Optional. The timeout for this phase. If set, the timeout must be positive and less than or + * equal to 24 hours (86400s). + * @return value or {@code null} for none + */ + public String getTimeout() { + return timeout; + } + + /** + * Optional. The timeout for this phase. If set, the timeout must be positive and less than or + * equal to 24 hours (86400s). + * @param timeout timeout or {@code null} for none + */ + public VerificationConfig setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + @Override + public VerificationConfig set(String fieldName, Object value) { + return (VerificationConfig) super.set(fieldName, value); + } + + @Override + public VerificationConfig clone() { + return (VerificationConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/VerificationPhaseInfo.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/VerificationPhaseInfo.java new file mode 100644 index 00000000000..bd2b8d06707 --- /dev/null +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/VerificationPhaseInfo.java @@ -0,0 +1,187 @@ +/* + * 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.backupdr.v1beta.model; + +/** + * Info for Verification phase execution. + * + *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 Backup and DR Service 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 VerificationPhaseInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The fully qualified URI of the Cloud Run Execution triggered for verification. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudRunExecution; + + /** + * Output only. End time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Error details if the phase failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Output only. The state of this phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phaseState; + + /** + * Output only. Start time of the phase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. Snapshot of config that will be executed after successful post restore validation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VerificationConfig verificationConfig; + + /** + * Output only. The fully qualified URI of the Cloud Run Execution triggered for verification. + * @return value or {@code null} for none + */ + public java.lang.String getCloudRunExecution() { + return cloudRunExecution; + } + + /** + * Output only. The fully qualified URI of the Cloud Run Execution triggered for verification. + * @param cloudRunExecution cloudRunExecution or {@code null} for none + */ + public VerificationPhaseInfo setCloudRunExecution(java.lang.String cloudRunExecution) { + this.cloudRunExecution = cloudRunExecution; + return this; + } + + /** + * Output only. End time of the phase. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. End time of the phase. + * @param endTime endTime or {@code null} for none + */ + public VerificationPhaseInfo setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Error details if the phase failed. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * Output only. Error details if the phase failed. + * @param error error or {@code null} for none + */ + public VerificationPhaseInfo setError(Status error) { + this.error = error; + return this; + } + + /** + * Output only. The state of this phase. + * @return value or {@code null} for none + */ + public java.lang.String getPhaseState() { + return phaseState; + } + + /** + * Output only. The state of this phase. + * @param phaseState phaseState or {@code null} for none + */ + public VerificationPhaseInfo setPhaseState(java.lang.String phaseState) { + this.phaseState = phaseState; + return this; + } + + /** + * Output only. Start time of the phase. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Output only. Start time of the phase. + * @param startTime startTime or {@code null} for none + */ + public VerificationPhaseInfo setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * Output only. Snapshot of config that will be executed after successful post restore validation. + * @return value or {@code null} for none + */ + public VerificationConfig getVerificationConfig() { + return verificationConfig; + } + + /** + * Output only. Snapshot of config that will be executed after successful post restore validation. + * @param verificationConfig verificationConfig or {@code null} for none + */ + public VerificationPhaseInfo setVerificationConfig(VerificationConfig verificationConfig) { + this.verificationConfig = verificationConfig; + return this; + } + + @Override + public VerificationPhaseInfo set(String fieldName, Object value) { + return (VerificationPhaseInfo) super.set(fieldName, value); + } + + @Override + public VerificationPhaseInfo clone() { + return (VerificationPhaseInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/VerificationSummary.java b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/VerificationSummary.java new file mode 100644 index 00000000000..5c8bd3e6ce0 --- /dev/null +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/com/google/api/services/backupdr/v1beta/model/VerificationSummary.java @@ -0,0 +1,115 @@ +/* + * 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.backupdr.v1beta.model; + +/** + * VerificationSummary contains the status and timestamp of the latest Automated Verification test. + * + *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 Backup and DR Service 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 VerificationSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. The last verification execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastVerificationExecution; + + /** + * Output only. The state of the last verification. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastVerificationState; + + /** + * Output only. The time when the backup was last verified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastVerificationTime; + + /** + * Output only. The last verification execution. + * @return value or {@code null} for none + */ + public java.lang.String getLastVerificationExecution() { + return lastVerificationExecution; + } + + /** + * Output only. The last verification execution. + * @param lastVerificationExecution lastVerificationExecution or {@code null} for none + */ + public VerificationSummary setLastVerificationExecution(java.lang.String lastVerificationExecution) { + this.lastVerificationExecution = lastVerificationExecution; + return this; + } + + /** + * Output only. The state of the last verification. + * @return value or {@code null} for none + */ + public java.lang.String getLastVerificationState() { + return lastVerificationState; + } + + /** + * Output only. The state of the last verification. + * @param lastVerificationState lastVerificationState or {@code null} for none + */ + public VerificationSummary setLastVerificationState(java.lang.String lastVerificationState) { + this.lastVerificationState = lastVerificationState; + return this; + } + + /** + * Output only. The time when the backup was last verified. + * @return value or {@code null} for none + */ + public String getLastVerificationTime() { + return lastVerificationTime; + } + + /** + * Output only. The time when the backup was last verified. + * @param lastVerificationTime lastVerificationTime or {@code null} for none + */ + public VerificationSummary setLastVerificationTime(String lastVerificationTime) { + this.lastVerificationTime = lastVerificationTime; + return this; + } + + @Override + public VerificationSummary set(String fieldName, Object value) { + return (VerificationSummary) super.set(fieldName, value); + } + + @Override + public VerificationSummary clone() { + return (VerificationSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1beta/2.0.0/pom.xml b/clients/google-api-services-backupdr/v1beta/2.0.0/pom.xml index 3b01df19da6..aed574787c1 100644 --- a/clients/google-api-services-backupdr/v1beta/2.0.0/pom.xml +++ b/clients/google-api-services-backupdr/v1beta/2.0.0/pom.xml @@ -8,8 +8,8 @@