{@link + * Checkout#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The workspace resource name. Format: + * projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} + * @param content the {@link com.google.api.services.dataform.v1beta1.model.CheckoutWorkspaceBranchRequest} + * @since 1.13 + */ + protected Checkout(java.lang.String name, com.google.api.services.dataform.v1beta1.model.CheckoutWorkspaceBranchRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1beta1.model.Empty.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/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + } + } + + @Override + public Checkout set$Xgafv(java.lang.String $Xgafv) { + return (Checkout) super.set$Xgafv($Xgafv); + } + + @Override + public Checkout setAccessToken(java.lang.String accessToken) { + return (Checkout) super.setAccessToken(accessToken); + } + + @Override + public Checkout setAlt(java.lang.String alt) { + return (Checkout) super.setAlt(alt); + } + + @Override + public Checkout setCallback(java.lang.String callback) { + return (Checkout) super.setCallback(callback); + } + + @Override + public Checkout setFields(java.lang.String fields) { + return (Checkout) super.setFields(fields); + } + + @Override + public Checkout setKey(java.lang.String key) { + return (Checkout) super.setKey(key); + } + + @Override + public Checkout setOauthToken(java.lang.String oauthToken) { + return (Checkout) super.setOauthToken(oauthToken); + } + + @Override + public Checkout setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Checkout) super.setPrettyPrint(prettyPrint); + } + + @Override + public Checkout setQuotaUser(java.lang.String quotaUser) { + return (Checkout) super.setQuotaUser(quotaUser); + } + + @Override + public Checkout setUploadType(java.lang.String uploadType) { + return (Checkout) super.setUploadType(uploadType); + } + + @Override + public Checkout setUploadProtocol(java.lang.String uploadProtocol) { + return (Checkout) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The workspace resource name. Format: projects/{project}/locations/{location + * }/repositories/{repository}/workspaces/{workspace} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The workspace resource name. Format: + projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The workspace resource name. Format: projects/{project}/locations/{location + * }/repositories/{repository}/workspaces/{workspace} + */ + public Checkout 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/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Checkout set(String parameterName, Object value) { + return (Checkout) super.set(parameterName, value); + } + } /** * Applies a Git commit for uncommitted files in a Workspace. * @@ -9613,156 +9753,646 @@ protected Create(java.lang.String parent, com.google.api.services.dataform.v1bet } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + 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 repository in which to create the workspace. Must be in the format + * `projects/locations/repositories`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The repository in which to create the workspace. Must be in the format + `projects/locations/repositories`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The repository in which to create the workspace. Must be in the format + * `projects/locations/repositories`. + */ + 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/[^/]+/repositories/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Required. The ID to use for the workspace, which will become the final component of + * the workspace's resource name. + */ + @com.google.api.client.util.Key + private java.lang.String workspaceId; + + /** Required. The ID to use for the workspace, which will become the final component of the workspace's + resource name. + */ + public java.lang.String getWorkspaceId() { + return workspaceId; + } + + /** + * Required. The ID to use for the workspace, which will become the final component of + * the workspace's resource name. + */ + public Create setWorkspaceId(java.lang.String workspaceId) { + this.workspaceId = workspaceId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single Workspace. + * + * Create a request for the method "workspaces.delete". + * + * This request holds the parameters needed by the dataform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The workspace resource's name. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends DataformRequest{@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 workspace resource's name. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Dataform.this, "DELETE", REST_PATH, null, com.google.api.services.dataform.v1beta1.model.Empty.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/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + } + } + + @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 workspace resource's name. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The workspace resource's name. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The workspace resource's name. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Deletes a branch in a Workspace. + * + * Create a request for the method "workspaces.deleteBranch". + * + * This request holds the parameters needed by the dataform server. After setting any optional + * parameters, call the {@link DeleteBranch#execute()} method to invoke the remote operation. + * + * @param name Required. The workspace resource name. Format: + * projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} + * @param content the {@link com.google.api.services.dataform.v1beta1.model.DeleteBranchRequest} + * @return the request + */ + public DeleteBranch deleteBranch(java.lang.String name, com.google.api.services.dataform.v1beta1.model.DeleteBranchRequest content) throws java.io.IOException { + DeleteBranch result = new DeleteBranch(name, content); + initialize(result); + return result; + } + + public class DeleteBranch extends DataformRequest{@link + * DeleteBranch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The workspace resource name. Format: + * projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} + * @param content the {@link com.google.api.services.dataform.v1beta1.model.DeleteBranchRequest} + * @since 1.13 + */ + protected DeleteBranch(java.lang.String name, com.google.api.services.dataform.v1beta1.model.DeleteBranchRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1beta1.model.DeleteBranchResponse.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/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + } + } + + @Override + public DeleteBranch set$Xgafv(java.lang.String $Xgafv) { + return (DeleteBranch) super.set$Xgafv($Xgafv); + } + + @Override + public DeleteBranch setAccessToken(java.lang.String accessToken) { + return (DeleteBranch) super.setAccessToken(accessToken); + } + + @Override + public DeleteBranch setAlt(java.lang.String alt) { + return (DeleteBranch) super.setAlt(alt); + } + + @Override + public DeleteBranch setCallback(java.lang.String callback) { + return (DeleteBranch) super.setCallback(callback); + } + + @Override + public DeleteBranch setFields(java.lang.String fields) { + return (DeleteBranch) super.setFields(fields); + } + + @Override + public DeleteBranch setKey(java.lang.String key) { + return (DeleteBranch) super.setKey(key); + } + + @Override + public DeleteBranch setOauthToken(java.lang.String oauthToken) { + return (DeleteBranch) super.setOauthToken(oauthToken); + } + + @Override + public DeleteBranch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteBranch) super.setPrettyPrint(prettyPrint); + } + + @Override + public DeleteBranch setQuotaUser(java.lang.String quotaUser) { + return (DeleteBranch) super.setQuotaUser(quotaUser); + } + + @Override + public DeleteBranch setUploadType(java.lang.String uploadType) { + return (DeleteBranch) super.setUploadType(uploadType); + } + + @Override + public DeleteBranch setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteBranch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The workspace resource name. Format: projects/{project}/locations/{location + * }/repositories/{repository}/workspaces/{workspace} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The workspace resource name. Format: + projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The workspace resource name. Format: projects/{project}/locations/{location + * }/repositories/{repository}/workspaces/{workspace} + */ + public DeleteBranch 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/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public DeleteBranch set(String parameterName, Object value) { + return (DeleteBranch) super.set(parameterName, value); + } + } + /** + * Fetches branches in a Workspace. + * + * Create a request for the method "workspaces.fetchBranches". + * + * This request holds the parameters needed by the dataform server. After setting any optional + * parameters, call the {@link FetchBranches#execute()} method to invoke the remote operation. + * + * @param name Required. The workspace resource name. Format: + * projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} + * @return the request + */ + public FetchBranches fetchBranches(java.lang.String name) throws java.io.IOException { + FetchBranches result = new FetchBranches(name); + initialize(result); + return result; + } + + public class FetchBranches extends DataformRequest{@link FetchBranches#initialize(com.google.api.client.googleapis.services.Abstra + * ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.
+ * + * @param name Required. The workspace resource name. Format: + * projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} + * @since 1.13 + */ + protected FetchBranches(java.lang.String name) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1beta1.model.FetchWorkspaceBranchesResponse.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/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + } + } + + @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 Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public FetchBranches set$Xgafv(java.lang.String $Xgafv) { + return (FetchBranches) super.set$Xgafv($Xgafv); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public FetchBranches setAccessToken(java.lang.String accessToken) { + return (FetchBranches) super.setAccessToken(accessToken); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public FetchBranches setAlt(java.lang.String alt) { + return (FetchBranches) super.setAlt(alt); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public FetchBranches setCallback(java.lang.String callback) { + return (FetchBranches) super.setCallback(callback); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public FetchBranches setFields(java.lang.String fields) { + return (FetchBranches) super.setFields(fields); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public FetchBranches setKey(java.lang.String key) { + return (FetchBranches) super.setKey(key); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public FetchBranches setOauthToken(java.lang.String oauthToken) { + return (FetchBranches) super.setOauthToken(oauthToken); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public FetchBranches setPrettyPrint(java.lang.Boolean prettyPrint) { + return (FetchBranches) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public FetchBranches setQuotaUser(java.lang.String quotaUser) { + return (FetchBranches) super.setQuotaUser(quotaUser); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public FetchBranches setUploadType(java.lang.String uploadType) { + return (FetchBranches) super.setUploadType(uploadType); + } + + @Override + public FetchBranches setUploadProtocol(java.lang.String uploadProtocol) { + return (FetchBranches) super.setUploadProtocol(uploadProtocol); } /** - * Required. The repository in which to create the workspace. Must be in the format - * `projects/locations/repositories`. + * Required. The workspace resource name. Format: projects/{project}/locations/{location + * }/repositories/{repository}/workspaces/{workspace} */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The repository in which to create the workspace. Must be in the format - `projects/locations/repositories`. + /** Required. The workspace resource name. Format: + projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The repository in which to create the workspace. Must be in the format - * `projects/locations/repositories`. + * Required. The workspace resource name. Format: projects/{project}/locations/{location + * }/repositories/{repository}/workspaces/{workspace} */ - public Create setParent(java.lang.String parent) { + public FetchBranches setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); } - this.parent = parent; + this.name = name; + return this; + } + + /** Optional. Filter for the returned list. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter for the returned list. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Filter for the returned list. */ + public FetchBranches setFilter(java.lang.String filter) { + this.filter = filter; return this; } /** - * Required. The ID to use for the workspace, which will become the final component of - * the workspace's resource name. + * Optional. Maximum number of branches to return. The server may return fewer items + * than requested. If unspecified, the server will pick an appropriate default. The + * maximum value is 1000; values above 1000 will be coerced to 1000. */ @com.google.api.client.util.Key - private java.lang.String workspaceId; + private java.lang.Integer pageSize; - /** Required. The ID to use for the workspace, which will become the final component of the workspace's - resource name. + /** Optional. Maximum number of branches to return. The server may return fewer items than requested. + If unspecified, the server will pick an appropriate default. The maximum value is 1000; values + above 1000 will be coerced to 1000. */ - public java.lang.String getWorkspaceId() { - return workspaceId; + public java.lang.Integer getPageSize() { + return pageSize; } /** - * Required. The ID to use for the workspace, which will become the final component of - * the workspace's resource name. + * Optional. Maximum number of branches to return. The server may return fewer items + * than requested. If unspecified, the server will pick an appropriate default. The + * maximum value is 1000; values above 1000 will be coerced to 1000. */ - public Create setWorkspaceId(java.lang.String workspaceId) { - this.workspaceId = workspaceId; + public FetchBranches setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. Page token received from a previous `FetchWorkspaceBranches` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided + * to `FetchWorkspaceBranches`, with the exception of `page_size`, must match the call + * that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. Page token received from a previous `FetchWorkspaceBranches` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `FetchWorkspaceBranches`, with the exception of `page_size`, must match the call that provided the + page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. Page token received from a previous `FetchWorkspaceBranches` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided + * to `FetchWorkspaceBranches`, with the exception of `page_size`, must match the call + * that provided the page token. + */ + public FetchBranches setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public FetchBranches set(String parameterName, Object value) { + return (FetchBranches) super.set(parameterName, value); } } /** - * Deletes a single Workspace. + * Fetches the current branch of a Workspace. * - * Create a request for the method "workspaces.delete". + * Create a request for the method "workspaces.fetchCurrentBranch". * * This request holds the parameters needed by the dataform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link FetchCurrentBranch#execute()} method to invoke the remote operation. * - * @param name Required. The workspace resource's name. + * @param name Required. The workspace resource name. Format: + * projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public FetchCurrentBranch fetchCurrentBranch(java.lang.String name) throws java.io.IOException { + FetchCurrentBranch result = new FetchCurrentBranch(name); initialize(result); return result; } - public class Delete extends DataformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link FetchCurrentBranch#execute()} method to invoke the remote + * operation.{@link FetchCurrentBranch#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* - * @param name Required. The workspace resource's name. + * @param name Required. The workspace resource name. Format: + * projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} * @since 1.13 */ - protected Delete(java.lang.String name) { - super(Dataform.this, "DELETE", REST_PATH, null, com.google.api.services.dataform.v1beta1.model.Empty.class); + protected FetchCurrentBranch(java.lang.String name) { + super(Dataform.this, "GET", REST_PATH, null, com.google.api.services.dataform.v1beta1.model.FetchCurrentWorkspaceBranchResponse.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(), @@ -9772,72 +10402,89 @@ protected Delete(java.lang.String name) { } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public FetchCurrentBranch set$Xgafv(java.lang.String $Xgafv) { + return (FetchCurrentBranch) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public FetchCurrentBranch setAccessToken(java.lang.String accessToken) { + return (FetchCurrentBranch) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public FetchCurrentBranch setAlt(java.lang.String alt) { + return (FetchCurrentBranch) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public FetchCurrentBranch setCallback(java.lang.String callback) { + return (FetchCurrentBranch) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public FetchCurrentBranch setFields(java.lang.String fields) { + return (FetchCurrentBranch) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public FetchCurrentBranch setKey(java.lang.String key) { + return (FetchCurrentBranch) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public FetchCurrentBranch setOauthToken(java.lang.String oauthToken) { + return (FetchCurrentBranch) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public FetchCurrentBranch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (FetchCurrentBranch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public FetchCurrentBranch setQuotaUser(java.lang.String quotaUser) { + return (FetchCurrentBranch) super.setQuotaUser(quotaUser); } - /** Required. The workspace resource's name. */ + @Override + public FetchCurrentBranch setUploadType(java.lang.String uploadType) { + return (FetchCurrentBranch) super.setUploadType(uploadType); + } + + @Override + public FetchCurrentBranch setUploadProtocol(java.lang.String uploadProtocol) { + return (FetchCurrentBranch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The workspace resource name. Format: projects/{project}/locations/{location + * }/repositories/{repository}/workspaces/{workspace} + */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The workspace resource's name. + /** Required. The workspace resource name. Format: + projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} */ public java.lang.String getName() { return name; } - /** Required. The workspace resource's name. */ - public Delete setName(java.lang.String name) { + /** + * Required. The workspace resource name. Format: projects/{project}/locations/{location + * }/repositories/{repository}/workspaces/{workspace} + */ + public FetchCurrentBranch 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 " + @@ -9848,8 +10495,8 @@ public Delete setName(java.lang.String name) { } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public FetchCurrentBranch set(String parameterName, Object value) { + return (FetchCurrentBranch) super.set(parameterName, value); } } /** @@ -12852,6 +13499,146 @@ public SetIamPolicy set(String parameterName, Object value) { return (SetIamPolicy) super.set(parameterName, value); } } + /** + * Syncs the refs of a Workspace. + * + * Create a request for the method "workspaces.syncWorkspaceRefs". + * + * This request holds the parameters needed by the dataform server. After setting any optional + * parameters, call the {@link SyncWorkspaceRefs#execute()} method to invoke the remote operation. + * + * @param name Required. The workspace resource name. Format: + * projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} + * @param content the {@link com.google.api.services.dataform.v1beta1.model.SyncWorkspaceRefsRequest} + * @return the request + */ + public SyncWorkspaceRefs syncWorkspaceRefs(java.lang.String name, com.google.api.services.dataform.v1beta1.model.SyncWorkspaceRefsRequest content) throws java.io.IOException { + SyncWorkspaceRefs result = new SyncWorkspaceRefs(name, content); + initialize(result); + return result; + } + + public class SyncWorkspaceRefs extends DataformRequest{@link SyncWorkspaceRefs#initialize(com.google.api.client.googleapis.services.Ab + * stractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param name Required. The workspace resource name. Format: + * projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} + * @param content the {@link com.google.api.services.dataform.v1beta1.model.SyncWorkspaceRefsRequest} + * @since 1.13 + */ + protected SyncWorkspaceRefs(java.lang.String name, com.google.api.services.dataform.v1beta1.model.SyncWorkspaceRefsRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1beta1.model.SyncWorkspaceRefsResponse.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/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + } + } + + @Override + public SyncWorkspaceRefs set$Xgafv(java.lang.String $Xgafv) { + return (SyncWorkspaceRefs) super.set$Xgafv($Xgafv); + } + + @Override + public SyncWorkspaceRefs setAccessToken(java.lang.String accessToken) { + return (SyncWorkspaceRefs) super.setAccessToken(accessToken); + } + + @Override + public SyncWorkspaceRefs setAlt(java.lang.String alt) { + return (SyncWorkspaceRefs) super.setAlt(alt); + } + + @Override + public SyncWorkspaceRefs setCallback(java.lang.String callback) { + return (SyncWorkspaceRefs) super.setCallback(callback); + } + + @Override + public SyncWorkspaceRefs setFields(java.lang.String fields) { + return (SyncWorkspaceRefs) super.setFields(fields); + } + + @Override + public SyncWorkspaceRefs setKey(java.lang.String key) { + return (SyncWorkspaceRefs) super.setKey(key); + } + + @Override + public SyncWorkspaceRefs setOauthToken(java.lang.String oauthToken) { + return (SyncWorkspaceRefs) super.setOauthToken(oauthToken); + } + + @Override + public SyncWorkspaceRefs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SyncWorkspaceRefs) super.setPrettyPrint(prettyPrint); + } + + @Override + public SyncWorkspaceRefs setQuotaUser(java.lang.String quotaUser) { + return (SyncWorkspaceRefs) super.setQuotaUser(quotaUser); + } + + @Override + public SyncWorkspaceRefs setUploadType(java.lang.String uploadType) { + return (SyncWorkspaceRefs) super.setUploadType(uploadType); + } + + @Override + public SyncWorkspaceRefs setUploadProtocol(java.lang.String uploadProtocol) { + return (SyncWorkspaceRefs) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The workspace resource name. Format: projects/{project}/locations/{location + * }/repositories/{repository}/workspaces/{workspace} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The workspace resource name. Format: + projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The workspace resource name. Format: projects/{project}/locations/{location + * }/repositories/{repository}/workspaces/{workspace} + */ + public SyncWorkspaceRefs 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/[^/]+/repositories/[^/]+/workspaces/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public SyncWorkspaceRefs set(String parameterName, Object value) { + return (SyncWorkspaceRefs) super.set(parameterName, value); + } + } /** * Returns permissions that a caller has on the specified resource. If the resource does not exist, * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is diff --git a/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/BranchMetadata.java b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/BranchMetadata.java new file mode 100644 index 00000000000..652d0b240a1 --- /dev/null +++ b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/BranchMetadata.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.dataform.v1beta1.model; + +/** + * Contains metadata about a branch. + * + *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 Dataform 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 BranchMetadata extends com.google.api.client.json.GenericJson { + + /** + * The branch name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String branchName; + + /** + * The last commit on the branch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CommitLogEntry lastCommit; + + /** + * The branch name. + * @return value or {@code null} for none + */ + public java.lang.String getBranchName() { + return branchName; + } + + /** + * The branch name. + * @param branchName branchName or {@code null} for none + */ + public BranchMetadata setBranchName(java.lang.String branchName) { + this.branchName = branchName; + return this; + } + + /** + * The last commit on the branch. + * @return value or {@code null} for none + */ + public CommitLogEntry getLastCommit() { + return lastCommit; + } + + /** + * The last commit on the branch. + * @param lastCommit lastCommit or {@code null} for none + */ + public BranchMetadata setLastCommit(CommitLogEntry lastCommit) { + this.lastCommit = lastCommit; + return this; + } + + @Override + public BranchMetadata set(String fieldName, Object value) { + return (BranchMetadata) super.set(fieldName, value); + } + + @Override + public BranchMetadata clone() { + return (BranchMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/CheckoutWorkspaceBranchRequest.java b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/CheckoutWorkspaceBranchRequest.java new file mode 100644 index 00000000000..123820daddd --- /dev/null +++ b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/CheckoutWorkspaceBranchRequest.java @@ -0,0 +1,129 @@ +/* + * 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.dataform.v1beta1.model; + +/** + * `CheckoutWorkspaceBranch` request message. + * + *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 Dataform 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 CheckoutWorkspaceBranchRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of the branch in the Git repository to which the workspace should be checked + * out. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String branch; + + /** + * Optional. If set to true and the branch does not exist, it will be created. Otherwise, an error + * will be thrown. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean createIfNotExists; + + /** + * Optional. The name of the branch in the Git repository from which the new branch should be + * created. If left unset, the workspace's current branch name will be used. Accepts only branch + * names from FetchWorkspaceBranches response, and can only be set if `create_if_not_exists` is + * true. Oherwise, an error will be thrown. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceBranch; + + /** + * Required. The name of the branch in the Git repository to which the workspace should be checked + * out. + * @return value or {@code null} for none + */ + public java.lang.String getBranch() { + return branch; + } + + /** + * Required. The name of the branch in the Git repository to which the workspace should be checked + * out. + * @param branch branch or {@code null} for none + */ + public CheckoutWorkspaceBranchRequest setBranch(java.lang.String branch) { + this.branch = branch; + return this; + } + + /** + * Optional. If set to true and the branch does not exist, it will be created. Otherwise, an error + * will be thrown. + * @return value or {@code null} for none + */ + public java.lang.Boolean getCreateIfNotExists() { + return createIfNotExists; + } + + /** + * Optional. If set to true and the branch does not exist, it will be created. Otherwise, an error + * will be thrown. + * @param createIfNotExists createIfNotExists or {@code null} for none + */ + public CheckoutWorkspaceBranchRequest setCreateIfNotExists(java.lang.Boolean createIfNotExists) { + this.createIfNotExists = createIfNotExists; + return this; + } + + /** + * Optional. The name of the branch in the Git repository from which the new branch should be + * created. If left unset, the workspace's current branch name will be used. Accepts only branch + * names from FetchWorkspaceBranches response, and can only be set if `create_if_not_exists` is + * true. Oherwise, an error will be thrown. + * @return value or {@code null} for none + */ + public java.lang.String getSourceBranch() { + return sourceBranch; + } + + /** + * Optional. The name of the branch in the Git repository from which the new branch should be + * created. If left unset, the workspace's current branch name will be used. Accepts only branch + * names from FetchWorkspaceBranches response, and can only be set if `create_if_not_exists` is + * true. Oherwise, an error will be thrown. + * @param sourceBranch sourceBranch or {@code null} for none + */ + public CheckoutWorkspaceBranchRequest setSourceBranch(java.lang.String sourceBranch) { + this.sourceBranch = sourceBranch; + return this; + } + + @Override + public CheckoutWorkspaceBranchRequest set(String fieldName, Object value) { + return (CheckoutWorkspaceBranchRequest) super.set(fieldName, value); + } + + @Override + public CheckoutWorkspaceBranchRequest clone() { + return (CheckoutWorkspaceBranchRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/DeleteBranchRequest.java b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/DeleteBranchRequest.java new file mode 100644 index 00000000000..314b066755b --- /dev/null +++ b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/DeleteBranchRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.dataform.v1beta1.model; + +/** + * `DeleteBranch` request message. + * + *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 Dataform 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 DeleteBranchRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of the branch in the Git repository to delete. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String branch; + + /** + * Optional. If set to true, any non-pushed commits on the branch will be deleted. Upstream branch + * name will be the same as the branch to delete. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** + * Required. The name of the branch in the Git repository to delete. + * @return value or {@code null} for none + */ + public java.lang.String getBranch() { + return branch; + } + + /** + * Required. The name of the branch in the Git repository to delete. + * @param branch branch or {@code null} for none + */ + public DeleteBranchRequest setBranch(java.lang.String branch) { + this.branch = branch; + return this; + } + + /** + * Optional. If set to true, any non-pushed commits on the branch will be deleted. Upstream branch + * name will be the same as the branch to delete. + * @return value or {@code null} for none + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If set to true, any non-pushed commits on the branch will be deleted. Upstream branch + * name will be the same as the branch to delete. + * @param force force or {@code null} for none + */ + public DeleteBranchRequest setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public DeleteBranchRequest set(String fieldName, Object value) { + return (DeleteBranchRequest) super.set(fieldName, value); + } + + @Override + public DeleteBranchRequest clone() { + return (DeleteBranchRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/DeleteBranchResponse.java b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/DeleteBranchResponse.java new file mode 100644 index 00000000000..7db3745d6ac --- /dev/null +++ b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/DeleteBranchResponse.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.dataform.v1beta1.model; + +/** + * `DeleteBranch` response message. + * + *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 Dataform 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 DeleteBranchResponse extends com.google.api.client.json.GenericJson { + + @Override + public DeleteBranchResponse set(String fieldName, Object value) { + return (DeleteBranchResponse) super.set(fieldName, value); + } + + @Override + public DeleteBranchResponse clone() { + return (DeleteBranchResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/FetchCurrentWorkspaceBranchResponse.java b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/FetchCurrentWorkspaceBranchResponse.java new file mode 100644 index 00000000000..27b8e03e941 --- /dev/null +++ b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/FetchCurrentWorkspaceBranchResponse.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.dataform.v1beta1.model; + +/** + * Response message for `FetchCurrentWorkspaceBranch` method. + * + *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 Dataform 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 FetchCurrentWorkspaceBranchResponse extends com.google.api.client.json.GenericJson { + + /** + * The name of the current branch for the workspace. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String branchName; + + /** + * The name of the current branch for the workspace. + * @return value or {@code null} for none + */ + public java.lang.String getBranchName() { + return branchName; + } + + /** + * The name of the current branch for the workspace. + * @param branchName branchName or {@code null} for none + */ + public FetchCurrentWorkspaceBranchResponse setBranchName(java.lang.String branchName) { + this.branchName = branchName; + return this; + } + + @Override + public FetchCurrentWorkspaceBranchResponse set(String fieldName, Object value) { + return (FetchCurrentWorkspaceBranchResponse) super.set(fieldName, value); + } + + @Override + public FetchCurrentWorkspaceBranchResponse clone() { + return (FetchCurrentWorkspaceBranchResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/FetchWorkspaceBranchesResponse.java b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/FetchWorkspaceBranchesResponse.java new file mode 100644 index 00000000000..c70dba018ff --- /dev/null +++ b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/FetchWorkspaceBranchesResponse.java @@ -0,0 +1,99 @@ +/* + * 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.dataform.v1beta1.model; + +/** + * Response message for `FetchWorkspaceBranches` method. + * + *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 Dataform 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 FetchWorkspaceBranchesResponse extends com.google.api.client.json.GenericJson { + + /** + * The branches in the workspace. + * 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 Dataform 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 SyncWorkspaceRefsRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. Can be used to deepen the commit history of shallow clones. Git documentation: + * https://git-scm.com/docs/git-fetch#Documentation/git-fetch.txt---deependepth + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer deepen; + + /** + * Optional. The name of the branch in the Git remote to which the refs should be fetched for. If + * left unset, all remote branches will be fetched. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String remoteBranchName; + + /** + * Optional. Can be used to deepen the commit history of shallow clones. Git documentation: + * https://git-scm.com/docs/git-fetch#Documentation/git-fetch.txt---deependepth + * @return value or {@code null} for none + */ + public java.lang.Integer getDeepen() { + return deepen; + } + + /** + * Optional. Can be used to deepen the commit history of shallow clones. Git documentation: + * https://git-scm.com/docs/git-fetch#Documentation/git-fetch.txt---deependepth + * @param deepen deepen or {@code null} for none + */ + public SyncWorkspaceRefsRequest setDeepen(java.lang.Integer deepen) { + this.deepen = deepen; + return this; + } + + /** + * Optional. The name of the branch in the Git remote to which the refs should be fetched for. If + * left unset, all remote branches will be fetched. + * @return value or {@code null} for none + */ + public java.lang.String getRemoteBranchName() { + return remoteBranchName; + } + + /** + * Optional. The name of the branch in the Git remote to which the refs should be fetched for. If + * left unset, all remote branches will be fetched. + * @param remoteBranchName remoteBranchName or {@code null} for none + */ + public SyncWorkspaceRefsRequest setRemoteBranchName(java.lang.String remoteBranchName) { + this.remoteBranchName = remoteBranchName; + return this; + } + + @Override + public SyncWorkspaceRefsRequest set(String fieldName, Object value) { + return (SyncWorkspaceRefsRequest) super.set(fieldName, value); + } + + @Override + public SyncWorkspaceRefsRequest clone() { + return (SyncWorkspaceRefsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/SyncWorkspaceRefsResponse.java b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/SyncWorkspaceRefsResponse.java new file mode 100644 index 00000000000..c9a48e90f36 --- /dev/null +++ b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/SyncWorkspaceRefsResponse.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.dataform.v1beta1.model; + +/** + * `SyncWorkspaceRefs` response message. + * + *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 Dataform 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 SyncWorkspaceRefsResponse extends com.google.api.client.json.GenericJson { + + @Override + public SyncWorkspaceRefsResponse set(String fieldName, Object value) { + return (SyncWorkspaceRefsResponse) super.set(fieldName, value); + } + + @Override + public SyncWorkspaceRefsResponse clone() { + return (SyncWorkspaceRefsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/Workspace.java b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/Workspace.java index c882aaeb121..ee65ecaa28c 100644 --- a/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/Workspace.java +++ b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/Workspace.java @@ -44,6 +44,16 @@ public final class Workspace extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private DataEncryptionState dataEncryptionState; + /** + * Optional. Input only. Immutable. The maximum depth of the Git repository to checkout for this + * workspace. If defined and greater than 0, the Git repository will be created as a shallow clone + * with the given depth, otherwise a full clone will be performed. This field is available only + * for GitHub, Gitlab and 1p repositories with enabled branch management. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer depth; + /** * Optional. If set to true, workspaces will not be moved if its linked Repository is moved. * Instead, it will be deleted. @@ -52,6 +62,14 @@ public final class Workspace extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Boolean disableMoves; + /** + * Immutable. Controls the enablement of branch checkout for the workspace. When set to True, the + * workspace will be allowed to checkout branches. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableBranchManagement; + /** * Output only. All the metadata information that is used internally to serve the resource. For * example: timestamps, flags, status fields, etc. The format of this field is a JSON string. @@ -67,6 +85,15 @@ public final class Workspace extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String name; + /** + * Optional. Input only. Immutable. The name of the default upstream branch for all pull/push + * operations in the remote repository for this workspace. If empty, the HEAD branch from + * repository will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String originalBranch; + /** * Output only. Metadata indicating whether this resource is user-scoped. For `Workspace` * resources, the `user_scoped` field is always `true`. @@ -75,6 +102,14 @@ public final class Workspace extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private PrivateResourceMetadata privateResourceMetadata; + /** + * Output only. If set to true, the workspace was created as a shallow clone. Will be set to true + * if the depth field is set to a value greater than 0, otherwise it will be set to false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean shallow; + /** * Output only. The timestamp of when the workspace was created. * @return value or {@code null} for none @@ -111,6 +146,29 @@ public Workspace setDataEncryptionState(DataEncryptionState dataEncryptionState) return this; } + /** + * Optional. Input only. Immutable. The maximum depth of the Git repository to checkout for this + * workspace. If defined and greater than 0, the Git repository will be created as a shallow clone + * with the given depth, otherwise a full clone will be performed. This field is available only + * for GitHub, Gitlab and 1p repositories with enabled branch management. + * @return value or {@code null} for none + */ + public java.lang.Integer getDepth() { + return depth; + } + + /** + * Optional. Input only. Immutable. The maximum depth of the Git repository to checkout for this + * workspace. If defined and greater than 0, the Git repository will be created as a shallow clone + * with the given depth, otherwise a full clone will be performed. This field is available only + * for GitHub, Gitlab and 1p repositories with enabled branch management. + * @param depth depth or {@code null} for none + */ + public Workspace setDepth(java.lang.Integer depth) { + this.depth = depth; + return this; + } + /** * Optional. If set to true, workspaces will not be moved if its linked Repository is moved. * Instead, it will be deleted. @@ -130,6 +188,25 @@ public Workspace setDisableMoves(java.lang.Boolean disableMoves) { return this; } + /** + * Immutable. Controls the enablement of branch checkout for the workspace. When set to True, the + * workspace will be allowed to checkout branches. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableBranchManagement() { + return enableBranchManagement; + } + + /** + * Immutable. Controls the enablement of branch checkout for the workspace. When set to True, the + * workspace will be allowed to checkout branches. + * @param enableBranchManagement enableBranchManagement or {@code null} for none + */ + public Workspace setEnableBranchManagement(java.lang.Boolean enableBranchManagement) { + this.enableBranchManagement = enableBranchManagement; + return this; + } + /** * Output only. All the metadata information that is used internally to serve the resource. For * example: timestamps, flags, status fields, etc. The format of this field is a JSON string. @@ -166,6 +243,27 @@ public Workspace setName(java.lang.String name) { return this; } + /** + * Optional. Input only. Immutable. The name of the default upstream branch for all pull/push + * operations in the remote repository for this workspace. If empty, the HEAD branch from + * repository will be used. + * @return value or {@code null} for none + */ + public java.lang.String getOriginalBranch() { + return originalBranch; + } + + /** + * Optional. Input only. Immutable. The name of the default upstream branch for all pull/push + * operations in the remote repository for this workspace. If empty, the HEAD branch from + * repository will be used. + * @param originalBranch originalBranch or {@code null} for none + */ + public Workspace setOriginalBranch(java.lang.String originalBranch) { + this.originalBranch = originalBranch; + return this; + } + /** * Output only. Metadata indicating whether this resource is user-scoped. For `Workspace` * resources, the `user_scoped` field is always `true`. @@ -185,6 +283,25 @@ public Workspace setPrivateResourceMetadata(PrivateResourceMetadata privateResou return this; } + /** + * Output only. If set to true, the workspace was created as a shallow clone. Will be set to true + * if the depth field is set to a value greater than 0, otherwise it will be set to false. + * @return value or {@code null} for none + */ + public java.lang.Boolean getShallow() { + return shallow; + } + + /** + * Output only. If set to true, the workspace was created as a shallow clone. Will be set to true + * if the depth field is set to a value greater than 0, otherwise it will be set to false. + * @param shallow shallow or {@code null} for none + */ + public Workspace setShallow(java.lang.Boolean shallow) { + this.shallow = shallow; + return this; + } + @Override public Workspace set(String fieldName, Object value) { return (Workspace) super.set(fieldName, value); diff --git a/clients/google-api-services-dataform/v1beta1/2.0.0/pom.xml b/clients/google-api-services-dataform/v1beta1/2.0.0/pom.xml index 5f9b8c64a89..01fdd31d8d8 100644 --- a/clients/google-api-services-dataform/v1beta1/2.0.0/pom.xml +++ b/clients/google-api-services-dataform/v1beta1/2.0.0/pom.xml @@ -8,8 +8,8 @@