{@link DeleteLongRunning#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 repository's name. + * @param content the {@link com.google.api.services.dataform.v1beta1.model.DeleteRepositoryLongRunningRequest} + * @since 1.13 + */ + protected DeleteLongRunning(java.lang.String name, com.google.api.services.dataform.v1beta1.model.DeleteRepositoryLongRunningRequest content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1beta1.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/[^/]+/repositories/[^/]+$"); + } + } + + @Override + public DeleteLongRunning set$Xgafv(java.lang.String $Xgafv) { + return (DeleteLongRunning) super.set$Xgafv($Xgafv); + } + + @Override + public DeleteLongRunning setAccessToken(java.lang.String accessToken) { + return (DeleteLongRunning) super.setAccessToken(accessToken); + } + + @Override + public DeleteLongRunning setAlt(java.lang.String alt) { + return (DeleteLongRunning) super.setAlt(alt); + } + + @Override + public DeleteLongRunning setCallback(java.lang.String callback) { + return (DeleteLongRunning) super.setCallback(callback); + } + + @Override + public DeleteLongRunning setFields(java.lang.String fields) { + return (DeleteLongRunning) super.setFields(fields); + } + + @Override + public DeleteLongRunning setKey(java.lang.String key) { + return (DeleteLongRunning) super.setKey(key); + } + + @Override + public DeleteLongRunning setOauthToken(java.lang.String oauthToken) { + return (DeleteLongRunning) super.setOauthToken(oauthToken); + } + + @Override + public DeleteLongRunning setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteLongRunning) super.setPrettyPrint(prettyPrint); + } + + @Override + public DeleteLongRunning setQuotaUser(java.lang.String quotaUser) { + return (DeleteLongRunning) super.setQuotaUser(quotaUser); + } + + @Override + public DeleteLongRunning setUploadType(java.lang.String uploadType) { + return (DeleteLongRunning) super.setUploadType(uploadType); + } + + @Override + public DeleteLongRunning setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteLongRunning) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The repository's name. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The repository's name. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The repository's name. */ + public DeleteLongRunning 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/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public DeleteLongRunning set(String parameterName, Object value) { + return (DeleteLongRunning) super.set(parameterName, value); + } + } /** * Fetches a Repository's history of commits. The Repository must not have a value for * `git_remote_settings.url`. @@ -14430,13 +14561,13 @@ public Search setOrderBy(java.lang.String orderBy) { /** * Optional. Maximum number of TeamFolders to return. The server may return fewer items - * than requested. If unspecified, the server will pick an appropriate default. + * than requested. If unspecified, the server will pick a default of page_size = 50. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** Optional. Maximum number of TeamFolders to return. The server may return fewer items than - requested. If unspecified, the server will pick an appropriate default. + requested. If unspecified, the server will pick a default of page_size = 50. */ public java.lang.Integer getPageSize() { return pageSize; @@ -14444,7 +14575,7 @@ public java.lang.Integer getPageSize() { /** * Optional. Maximum number of TeamFolders to return. The server may return fewer items - * than requested. If unspecified, the server will pick an appropriate default. + * than requested. If unspecified, the server will pick a default of page_size = 50. */ public Search setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; diff --git a/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/DeleteRepositoryLongRunningRequest.java b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/DeleteRepositoryLongRunningRequest.java new file mode 100644 index 00000000000..af253f6e81a --- /dev/null +++ b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/DeleteRepositoryLongRunningRequest.java @@ -0,0 +1,78 @@ +/* + * 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; + +/** + * `DeleteRepositoryLongRunning` 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 DeleteRepositoryLongRunningRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. If set to true, child resources of this repository (compilation results and workflow + * invocations) will also be deleted. Otherwise, the request will only succeed if the repository + * has no child resources. **Note:** *This flag doesn't support deletion of workspaces, release + * configs or workflow configs. If any of such resources exists in the repository, the request + * will fail.* + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** + * Optional. If set to true, child resources of this repository (compilation results and workflow + * invocations) will also be deleted. Otherwise, the request will only succeed if the repository + * has no child resources. **Note:** *This flag doesn't support deletion of workspaces, release + * configs or workflow configs. If any of such resources exists in the repository, the request + * will fail.* + * @return value or {@code null} for none + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If set to true, child resources of this repository (compilation results and workflow + * invocations) will also be deleted. Otherwise, the request will only succeed if the repository + * has no child resources. **Note:** *This flag doesn't support deletion of workspaces, release + * configs or workflow configs. If any of such resources exists in the repository, the request + * will fail.* + * @param force force or {@code null} for none + */ + public DeleteRepositoryLongRunningRequest setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public DeleteRepositoryLongRunningRequest set(String fieldName, Object value) { + return (DeleteRepositoryLongRunningRequest) super.set(fieldName, value); + } + + @Override + public DeleteRepositoryLongRunningRequest clone() { + return (DeleteRepositoryLongRunningRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/DirectoryEntry.java b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/DirectoryEntry.java index 7d85eb56766..2b5fbd5c81b 100644 --- a/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/DirectoryEntry.java +++ b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/DirectoryEntry.java @@ -30,14 +30,16 @@ public final class DirectoryEntry extends com.google.api.client.json.GenericJson { /** - * A child directory in the directory. + * A child directory in the directory. The path is returned including the full folder structure + * from the root. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String directory; /** - * A file in the directory. + * A file in the directory. The path is returned including the full folder structure from the + * root. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -51,7 +53,8 @@ public final class DirectoryEntry extends com.google.api.client.json.GenericJson private FilesystemEntryMetadata metadata; /** - * A child directory in the directory. + * A child directory in the directory. The path is returned including the full folder structure + * from the root. * @return value or {@code null} for none */ public java.lang.String getDirectory() { @@ -59,7 +62,8 @@ public java.lang.String getDirectory() { } /** - * A child directory in the directory. + * A child directory in the directory. The path is returned including the full folder structure + * from the root. * @param directory directory or {@code null} for none */ public DirectoryEntry setDirectory(java.lang.String directory) { @@ -68,7 +72,8 @@ public DirectoryEntry setDirectory(java.lang.String directory) { } /** - * A file in the directory. + * A file in the directory. The path is returned including the full folder structure from the + * root. * @return value or {@code null} for none */ public java.lang.String getFile() { @@ -76,7 +81,8 @@ public java.lang.String getFile() { } /** - * A file in the directory. + * A file in the directory. The path is returned including the full folder structure from the + * root. * @param file file or {@code null} for none */ public DirectoryEntry setFile(java.lang.String file) { diff --git a/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/GitRemoteSettings.java b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/GitRemoteSettings.java index 2304ddf8885..2e9e24c70b3 100644 --- a/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/GitRemoteSettings.java +++ b/clients/google-api-services-dataform/v1beta1/2.0.0/com/google/api/services/dataform/v1beta1/model/GitRemoteSettings.java @@ -38,13 +38,20 @@ public final class GitRemoteSettings extends com.google.api.client.json.GenericJ private java.lang.String authenticationTokenSecretVersion; /** - * Required. The Git remote's default branch name. If not set, `main` will be used and stored for - * the repository. + * Optional. The Git remote's default branch name. If not set `main` will be used. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String defaultBranch; + /** + * Output only. The Git remote's effective default branch name. This is the default branch name of + * the Git remote if it is set, otherwise it is `main`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String effectiveDefaultBranch; + /** * Optional. Authentication fields for remote uris using SSH protocol. * The value may be {@code null}. @@ -88,8 +95,7 @@ public GitRemoteSettings setAuthenticationTokenSecretVersion(java.lang.String au } /** - * Required. The Git remote's default branch name. If not set, `main` will be used and stored for - * the repository. + * Optional. The Git remote's default branch name. If not set `main` will be used. * @return value or {@code null} for none */ public java.lang.String getDefaultBranch() { @@ -97,8 +103,7 @@ public java.lang.String getDefaultBranch() { } /** - * Required. The Git remote's default branch name. If not set, `main` will be used and stored for - * the repository. + * Optional. The Git remote's default branch name. If not set `main` will be used. * @param defaultBranch defaultBranch or {@code null} for none */ public GitRemoteSettings setDefaultBranch(java.lang.String defaultBranch) { @@ -106,6 +111,25 @@ public GitRemoteSettings setDefaultBranch(java.lang.String defaultBranch) { return this; } + /** + * Output only. The Git remote's effective default branch name. This is the default branch name of + * the Git remote if it is set, otherwise it is `main`. + * @return value or {@code null} for none + */ + public java.lang.String getEffectiveDefaultBranch() { + return effectiveDefaultBranch; + } + + /** + * Output only. The Git remote's effective default branch name. This is the default branch name of + * the Git remote if it is set, otherwise it is `main`. + * @param effectiveDefaultBranch effectiveDefaultBranch or {@code null} for none + */ + public GitRemoteSettings setEffectiveDefaultBranch(java.lang.String effectiveDefaultBranch) { + this.effectiveDefaultBranch = effectiveDefaultBranch; + return this; + } + /** * Optional. Authentication fields for remote uris using SSH protocol. * @return value or {@code null} for none 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 43ceb885a31..26a299dae3c 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 @@