diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/README.md b/clients/google-api-services-cloudbuild/v1/2.0.0/README.md index 001c08486cb..8110024fcfe 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/README.md +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-cloudbuild - v1-rev20260627-2.0.0 + v1-rev20260814-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-cloudbuild:v1-rev20260627-2.0.0' + implementation 'com.google.apis:google-api-services-cloudbuild:v1-rev20260814-2.0.0' } ``` diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/CloudBuild.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/CloudBuild.java index fcd4e8688d9..965f67f60cd 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/CloudBuild.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/CloudBuild.java @@ -943,10 +943,9 @@ public Approve set(String parameterName, Object value) { } } /** - * Cancels a build in progress. Note: This method only applies to global (non-regional) builds when - * using the legacy resource path `projects/{project_id}/builds/{id}:cancel`. To cancel regional - * builds, use the regional resource path: - * `projects/{project_id}/locations/{location}/builds/{id}:cancel`. + * Cancels a build in progress. Note: This method only cancels builds in the "global" region when + * using the legacy resource path projects/{project_id}/builds/{id}:cancel. For all regions, use the + * regional resource path: `projects/{project_id}/locations/{location}/builds/{id}:cancel`. * * Create a request for the method "builds.cancel". * @@ -969,10 +968,9 @@ public class Cancel extends CloudBuildRequestThe typical use is:

- *
-       *   {@code CloudBuild cloudbuild = new CloudBuild(...);}
-       *   {@code CloudBuild.GitLabConfigs.List request = cloudbuild.gitLabConfigs().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public GitLabConfigs gitLabConfigs() { - return new GitLabConfigs(); - } - - /** - * The "gitLabConfigs" collection of methods. - */ - public class GitLabConfigs { - - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Creates a new `GitLabConfig`. This - * API is experimental - * - * Create a request for the method "gitLabConfigs.create". - * - * This request holds the parameters needed by the cloudbuild server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. - * - * @param parent Required. Name of the parent resource. - * @param content the {@link com.google.api.services.cloudbuild.v1.model.GitLabConfig} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.cloudbuild.v1.model.GitLabConfig content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } - - public class Create extends CloudBuildRequest { - - private static final String REST_PATH = "v1/{+parent}/gitLabConfigs"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Creates a new `GitLabConfig`. This - * API is experimental - * - * Create a request for the method "gitLabConfigs.create". - * - * This request holds the parameters needed by the the cloudbuild server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - *

{@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. Name of the parent resource. - * @param content the {@link com.google.api.services.cloudbuild.v1.model.GitLabConfig} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.cloudbuild.v1.model.GitLabConfig content) { - super(CloudBuild.this, "POST", REST_PATH, content, com.google.api.services.cloudbuild.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. Name of the parent resource. */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. Name of the parent resource. - */ - public java.lang.String getParent() { - return parent; - } - - /** Required. Name of the parent resource. */ - 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. The ID to use for the GitLabConfig, which will become the final component of - * the GitLabConfig’s resource name. gitlab_config_id must meet the following - * requirements: + They must contain only alphanumeric characters and dashes. + They can - * be 1-64 characters long. + They must begin and end with an alphanumeric character - */ - @com.google.api.client.util.Key - private java.lang.String gitlabConfigId; - - /** Optional. The ID to use for the GitLabConfig, which will become the final component of the - GitLabConfig’s resource name. gitlab_config_id must meet the following requirements: + They must - contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must - begin and end with an alphanumeric character - */ - public java.lang.String getGitlabConfigId() { - return gitlabConfigId; - } - - /** - * Optional. The ID to use for the GitLabConfig, which will become the final component of - * the GitLabConfig’s resource name. gitlab_config_id must meet the following - * requirements: + They must contain only alphanumeric characters and dashes. + They can - * be 1-64 characters long. + They must begin and end with an alphanumeric character - */ - public Create setGitlabConfigId(java.lang.String gitlabConfigId) { - this.gitlabConfigId = gitlabConfigId; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Delete a `GitLabConfig`. This API is - * experimental - * - * Create a request for the method "gitLabConfigs.delete". - * - * This request holds the parameters needed by the cloudbuild server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The config resource 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 CloudBuildRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/gitLabConfigs/[^/]+$"); - - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Delete a `GitLabConfig`. This API - * is experimental - * - * Create a request for the method "gitLabConfigs.delete". - * - * This request holds the parameters needed by the the cloudbuild server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

{@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 config resource name. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(CloudBuild.this, "DELETE", REST_PATH, null, com.google.api.services.cloudbuild.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/[^/]+/gitLabConfigs/[^/]+$"); - } - } - - @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 config resource name. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The config resource name. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The config resource 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/[^/]+/gitLabConfigs/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Retrieves a `GitLabConfig`. This API - * is experimental - * - * Create a request for the method "gitLabConfigs.get". - * - * This request holds the parameters needed by the cloudbuild server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The config resource name. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - - public class Get extends CloudBuildRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/gitLabConfigs/[^/]+$"); - - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Retrieves a `GitLabConfig`. This - * API is experimental - * - * Create a request for the method "gitLabConfigs.get". - * - * This request holds the parameters needed by the the cloudbuild server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@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 config resource name. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(CloudBuild.this, "GET", REST_PATH, null, com.google.api.services.cloudbuild.v1.model.GitLabConfig.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/[^/]+/gitLabConfigs/[^/]+$"); - } - } - - @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 config resource name. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The config resource name. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The config resource name. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/gitLabConfigs/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. List all `GitLabConfigs` for a given - * project. This API is experimental - * - * Create a request for the method "gitLabConfigs.list". - * - * This request holds the parameters needed by the cloudbuild server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. Name of the parent resource - * @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 CloudBuildRequest { - - private static final String REST_PATH = "v1/{+parent}/gitLabConfigs"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. List all `GitLabConfigs` for a - * given project. This API is experimental - * - * Create a request for the method "gitLabConfigs.list". - * - * This request holds the parameters needed by the the cloudbuild server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@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. Name of the parent resource - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(CloudBuild.this, "GET", REST_PATH, null, com.google.api.services.cloudbuild.v1.model.ListGitLabConfigsResponse.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. Name of the parent resource */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. Name of the parent resource - */ - public java.lang.String getParent() { - return parent; - } - - /** Required. Name of the parent resource */ - 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; - } - - /** - * The maximum number of configs to return. The service may return fewer than this value. - * If unspecified, at most 50 configs will be returned. The maximum value is 1000;, values - * above 1000 will be coerced to 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The maximum number of configs to return. The service may return fewer than this value. If - unspecified, at most 50 configs will be returned. The maximum value is 1000;, values above 1000 - will be coerced to 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * The maximum number of configs to return. The service may return fewer than this value. - * If unspecified, at most 50 configs will be returned. The maximum value is 1000;, values - * above 1000 will be coerced to 1000. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * A page token, received from a previous ‘ListGitlabConfigsRequest’ call. Provide this to - * retrieve the subsequent page. When paginating, all other parameters provided to - * ‘ListGitlabConfigsRequest’ must match the call that provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** A page token, received from a previous ‘ListGitlabConfigsRequest’ call. Provide this to retrieve - the subsequent page. When paginating, all other parameters provided to ‘ListGitlabConfigsRequest’ - must match the call that provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * A page token, received from a previous ‘ListGitlabConfigsRequest’ call. Provide this to - * retrieve the subsequent page. When paginating, all other parameters provided to - * ‘ListGitlabConfigsRequest’ 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); - } - } - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Updates an existing `GitLabConfig`. - * This API is experimental - * - * Create a request for the method "gitLabConfigs.patch". - * - * This request holds the parameters needed by the cloudbuild server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Identifier. The resource name for the config. - * @param content the {@link com.google.api.services.cloudbuild.v1.model.GitLabConfig} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.cloudbuild.v1.model.GitLabConfig content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } - - public class Patch extends CloudBuildRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/gitLabConfigs/[^/]+$"); - - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Updates an existing `GitLabConfig`. - * This API is experimental - * - * Create a request for the method "gitLabConfigs.patch". - * - * This request holds the parameters needed by the the cloudbuild server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - *

{@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 for the config. - * @param content the {@link com.google.api.services.cloudbuild.v1.model.GitLabConfig} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.cloudbuild.v1.model.GitLabConfig content) { - super(CloudBuild.this, "PATCH", REST_PATH, content, com.google.api.services.cloudbuild.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/[^/]+/gitLabConfigs/[^/]+$"); - } - } - - @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 for the config. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Identifier. The resource name for the config. - */ - public java.lang.String getName() { - return name; - } - - /** Identifier. The resource name for the config. */ - 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/[^/]+/gitLabConfigs/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Update mask for the resource. If this is set, the server will only update the fields - * specified in the field mask. Otherwise, a full update of the mutable resource fields - * will be performed. - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Update mask for the resource. If this is set, the server will only update the fields specified in - the field mask. Otherwise, a full update of the mutable resource fields will be performed. - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Update mask for the resource. If this is set, the server will only update the fields - * specified in the field mask. Otherwise, a full update of the mutable resource fields - * will be performed. - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Remove a GitLab repository from a - * given GitLabConfig's connected repositories. This API is experimental. - * - * Create a request for the method "gitLabConfigs.removeGitLabConnectedRepository". - * - * This request holds the parameters needed by the cloudbuild server. After setting any optional - * parameters, call the {@link RemoveGitLabConnectedRepository#execute()} method to invoke the - * remote operation. - * - * @param config Required. The name of the `GitLabConfig` to remove a connected repository. Format: - * `projects/{project}/locations/{location}/gitLabConfigs/{config}` - * @param content the {@link com.google.api.services.cloudbuild.v1.model.RemoveGitLabConnectedRepositoryRequest} - * @return the request - */ - public RemoveGitLabConnectedRepository removeGitLabConnectedRepository(java.lang.String config, com.google.api.services.cloudbuild.v1.model.RemoveGitLabConnectedRepositoryRequest content) throws java.io.IOException { - RemoveGitLabConnectedRepository result = new RemoveGitLabConnectedRepository(config, content); - initialize(result); - return result; - } - - public class RemoveGitLabConnectedRepository extends CloudBuildRequest { - - private static final String REST_PATH = "v1/{+config}:removeGitLabConnectedRepository"; - - private final java.util.regex.Pattern CONFIG_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/gitLabConfigs/[^/]+$"); - - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Remove a GitLab repository from a - * given GitLabConfig's connected repositories. This API is experimental. - * - * Create a request for the method "gitLabConfigs.removeGitLabConnectedRepository". - * - * This request holds the parameters needed by the the cloudbuild server. After setting any - * optional parameters, call the {@link RemoveGitLabConnectedRepository#execute()} method to - * invoke the remote operation.

{@link RemoveGitLabConnectedRepository#initialize(com.google.a - * pi.client.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this - * instance immediately after invoking the constructor.

- * - * @param config Required. The name of the `GitLabConfig` to remove a connected repository. Format: - * `projects/{project}/locations/{location}/gitLabConfigs/{config}` - * @param content the {@link com.google.api.services.cloudbuild.v1.model.RemoveGitLabConnectedRepositoryRequest} - * @since 1.13 - */ - protected RemoveGitLabConnectedRepository(java.lang.String config, com.google.api.services.cloudbuild.v1.model.RemoveGitLabConnectedRepositoryRequest content) { - super(CloudBuild.this, "POST", REST_PATH, content, com.google.api.services.cloudbuild.v1.model.Empty.class); - this.config = com.google.api.client.util.Preconditions.checkNotNull(config, "Required parameter config must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CONFIG_PATTERN.matcher(config).matches(), - "Parameter config must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/gitLabConfigs/[^/]+$"); - } - } - - @Override - public RemoveGitLabConnectedRepository set$Xgafv(java.lang.String $Xgafv) { - return (RemoveGitLabConnectedRepository) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveGitLabConnectedRepository setAccessToken(java.lang.String accessToken) { - return (RemoveGitLabConnectedRepository) super.setAccessToken(accessToken); - } - - @Override - public RemoveGitLabConnectedRepository setAlt(java.lang.String alt) { - return (RemoveGitLabConnectedRepository) super.setAlt(alt); - } - - @Override - public RemoveGitLabConnectedRepository setCallback(java.lang.String callback) { - return (RemoveGitLabConnectedRepository) super.setCallback(callback); - } - - @Override - public RemoveGitLabConnectedRepository setFields(java.lang.String fields) { - return (RemoveGitLabConnectedRepository) super.setFields(fields); - } - - @Override - public RemoveGitLabConnectedRepository setKey(java.lang.String key) { - return (RemoveGitLabConnectedRepository) super.setKey(key); - } - - @Override - public RemoveGitLabConnectedRepository setOauthToken(java.lang.String oauthToken) { - return (RemoveGitLabConnectedRepository) super.setOauthToken(oauthToken); - } - - @Override - public RemoveGitLabConnectedRepository setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveGitLabConnectedRepository) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveGitLabConnectedRepository setQuotaUser(java.lang.String quotaUser) { - return (RemoveGitLabConnectedRepository) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveGitLabConnectedRepository setUploadType(java.lang.String uploadType) { - return (RemoveGitLabConnectedRepository) super.setUploadType(uploadType); - } - - @Override - public RemoveGitLabConnectedRepository setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveGitLabConnectedRepository) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the `GitLabConfig` to remove a connected repository. Format: - * `projects/{project}/locations/{location}/gitLabConfigs/{config}` - */ - @com.google.api.client.util.Key - private java.lang.String config; - - /** Required. The name of the `GitLabConfig` to remove a connected repository. Format: - `projects/{project}/locations/{location}/gitLabConfigs/{config}` - */ - public java.lang.String getConfig() { - return config; - } - - /** - * Required. The name of the `GitLabConfig` to remove a connected repository. Format: - * `projects/{project}/locations/{location}/gitLabConfigs/{config}` - */ - public RemoveGitLabConnectedRepository setConfig(java.lang.String config) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CONFIG_PATTERN.matcher(config).matches(), - "Parameter config must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/gitLabConfigs/[^/]+$"); - } - this.config = config; - return this; - } - - @Override - public RemoveGitLabConnectedRepository set(String parameterName, Object value) { - return (RemoveGitLabConnectedRepository) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the ConnectedRepositories collection. - * - *

The typical use is:

- *
-         *   {@code CloudBuild cloudbuild = new CloudBuild(...);}
-         *   {@code CloudBuild.ConnectedRepositories.List request = cloudbuild.connectedRepositories().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public ConnectedRepositories connectedRepositories() { - return new ConnectedRepositories(); - } - - /** - * The "connectedRepositories" collection of methods. - */ - public class ConnectedRepositories { - - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Batch connecting GitLab repositories - * to Cloud Build. This API is experimental. - * - * Create a request for the method "connectedRepositories.batchCreate". - * - * This request holds the parameters needed by the cloudbuild server. After setting any optional - * parameters, call the {@link BatchCreate#execute()} method to invoke the remote operation. - * - * @param parent The name of the `GitLabConfig` that adds connected repositories. Format: - * `projects/{project}/locations/{location}/gitLabConfigs/{config}` - * @param content the {@link com.google.api.services.cloudbuild.v1.model.BatchCreateGitLabConnectedRepositoriesRequest} - * @return the request - */ - public BatchCreate batchCreate(java.lang.String parent, com.google.api.services.cloudbuild.v1.model.BatchCreateGitLabConnectedRepositoriesRequest content) throws java.io.IOException { - BatchCreate result = new BatchCreate(parent, content); - initialize(result); - return result; - } - - public class BatchCreate extends CloudBuildRequest { - - private static final String REST_PATH = "v1/{+parent}/connectedRepositories:batchCreate"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/gitLabConfigs/[^/]+$"); - - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Batch connecting GitLab - * repositories to Cloud Build. This API is experimental. - * - * Create a request for the method "connectedRepositories.batchCreate". - * - * This request holds the parameters needed by the the cloudbuild server. After setting any - * optional parameters, call the {@link BatchCreate#execute()} method to invoke the remote - * operation.

{@link - * BatchCreate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param parent The name of the `GitLabConfig` that adds connected repositories. Format: - * `projects/{project}/locations/{location}/gitLabConfigs/{config}` - * @param content the {@link com.google.api.services.cloudbuild.v1.model.BatchCreateGitLabConnectedRepositoriesRequest} - * @since 1.13 - */ - protected BatchCreate(java.lang.String parent, com.google.api.services.cloudbuild.v1.model.BatchCreateGitLabConnectedRepositoriesRequest content) { - super(CloudBuild.this, "POST", REST_PATH, content, com.google.api.services.cloudbuild.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/[^/]+/gitLabConfigs/[^/]+$"); - } - } - - @Override - public BatchCreate set$Xgafv(java.lang.String $Xgafv) { - return (BatchCreate) super.set$Xgafv($Xgafv); - } - - @Override - public BatchCreate setAccessToken(java.lang.String accessToken) { - return (BatchCreate) super.setAccessToken(accessToken); - } - - @Override - public BatchCreate setAlt(java.lang.String alt) { - return (BatchCreate) super.setAlt(alt); - } - - @Override - public BatchCreate setCallback(java.lang.String callback) { - return (BatchCreate) super.setCallback(callback); - } - - @Override - public BatchCreate setFields(java.lang.String fields) { - return (BatchCreate) super.setFields(fields); - } - - @Override - public BatchCreate setKey(java.lang.String key) { - return (BatchCreate) super.setKey(key); - } - - @Override - public BatchCreate setOauthToken(java.lang.String oauthToken) { - return (BatchCreate) super.setOauthToken(oauthToken); - } - - @Override - public BatchCreate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchCreate) super.setPrettyPrint(prettyPrint); - } - - @Override - public BatchCreate setQuotaUser(java.lang.String quotaUser) { - return (BatchCreate) super.setQuotaUser(quotaUser); - } - - @Override - public BatchCreate setUploadType(java.lang.String uploadType) { - return (BatchCreate) super.setUploadType(uploadType); - } - - @Override - public BatchCreate setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchCreate) super.setUploadProtocol(uploadProtocol); - } - - /** - * The name of the `GitLabConfig` that adds connected repositories. Format: - * `projects/{project}/locations/{location}/gitLabConfigs/{config}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** The name of the `GitLabConfig` that adds connected repositories. Format: - `projects/{project}/locations/{location}/gitLabConfigs/{config}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * The name of the `GitLabConfig` that adds connected repositories. Format: - * `projects/{project}/locations/{location}/gitLabConfigs/{config}` - */ - public BatchCreate 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/[^/]+/gitLabConfigs/[^/]+$"); - } - this.parent = parent; - return this; - } - - @Override - public BatchCreate set(String parameterName, Object value) { - return (BatchCreate) super.set(parameterName, value); - } - } - - } - /** - * An accessor for creating requests from the Repos collection. - * - *

The typical use is:

- *
-         *   {@code CloudBuild cloudbuild = new CloudBuild(...);}
-         *   {@code CloudBuild.Repos.List request = cloudbuild.repos().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public Repos repos() { - return new Repos(); - } - - /** - * The "repos" collection of methods. - */ - public class Repos { - - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. List all repositories for a given - * `GitLabConfig`. This API is experimental - * - * Create a request for the method "repos.list". - * - * This request holds the parameters needed by the cloudbuild server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. Name of the parent resource. - * @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 CloudBuildRequest { - - private static final String REST_PATH = "v1/{+parent}/repos"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/gitLabConfigs/[^/]+$"); - - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. List all repositories for a given - * `GitLabConfig`. This API is experimental - * - * Create a request for the method "repos.list". - * - * This request holds the parameters needed by the the cloudbuild server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@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. Name of the parent resource. - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(CloudBuild.this, "GET", REST_PATH, null, com.google.api.services.cloudbuild.v1.model.ListGitLabRepositoriesResponse.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/[^/]+/gitLabConfigs/[^/]+$"); - } - } - - @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. Name of the parent resource. */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. Name of the parent resource. - */ - public java.lang.String getParent() { - return parent; - } - - /** Required. Name of the parent resource. */ - 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/[^/]+/gitLabConfigs/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * The maximum number of repositories to return. The service may return fewer than this - * value. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The maximum number of repositories to return. The service may return fewer than this value. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * The maximum number of repositories to return. The service may return fewer than this - * value. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * A page token, received from a previous ListGitLabRepositoriesRequest` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided - * to `ListGitLabRepositoriesRequest` must match the call that provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** A page token, received from a previous ListGitLabRepositoriesRequest` call. Provide this to - retrieve the subsequent page. When paginating, all other parameters provided to - `ListGitLabRepositoriesRequest` must match the call that provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * A page token, received from a previous ListGitLabRepositoriesRequest` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided - * to `ListGitLabRepositoriesRequest` 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 GithubEnterpriseConfigs collection. * diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BatchCreateGitLabConnectedRepositoriesRequest.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BatchCreateGitLabConnectedRepositoriesRequest.java deleted file mode 100644 index a1646f91062..00000000000 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BatchCreateGitLabConnectedRepositoriesRequest.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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.cloudbuild.v1.model; - -/** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. RPC request object accepted by - * BatchCreateGitLabConnectedRepositories RPC 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 Cloud Build 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 BatchCreateGitLabConnectedRepositoriesRequest extends com.google.api.client.json.GenericJson { - - /** - * Required. Requests to connect GitLab repositories. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List requests; - - /** - * Required. Requests to connect GitLab repositories. - * @return value or {@code null} for none - */ - public java.util.List getRequests() { - return requests; - } - - /** - * Required. Requests to connect GitLab repositories. - * @param requests requests or {@code null} for none - */ - public BatchCreateGitLabConnectedRepositoriesRequest setRequests(java.util.List requests) { - this.requests = requests; - return this; - } - - @Override - public BatchCreateGitLabConnectedRepositoriesRequest set(String fieldName, Object value) { - return (BatchCreateGitLabConnectedRepositoriesRequest) super.set(fieldName, value); - } - - @Override - public BatchCreateGitLabConnectedRepositoriesRequest clone() { - return (BatchCreateGitLabConnectedRepositoriesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BatchCreateGitLabConnectedRepositoriesResponse.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BatchCreateGitLabConnectedRepositoriesResponse.java deleted file mode 100644 index d889cc4dd1c..00000000000 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BatchCreateGitLabConnectedRepositoriesResponse.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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.cloudbuild.v1.model; - -/** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Response of - * BatchCreateGitLabConnectedRepositories RPC 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 Cloud Build 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 BatchCreateGitLabConnectedRepositoriesResponse extends com.google.api.client.json.GenericJson { - - /** - * The GitLab connected repository requests' responses. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List gitlabConnectedRepositories; - - /** - * The GitLab connected repository requests' responses. - * @return value or {@code null} for none - */ - public java.util.List getGitlabConnectedRepositories() { - return gitlabConnectedRepositories; - } - - /** - * The GitLab connected repository requests' responses. - * @param gitlabConnectedRepositories gitlabConnectedRepositories or {@code null} for none - */ - public BatchCreateGitLabConnectedRepositoriesResponse setGitlabConnectedRepositories(java.util.List gitlabConnectedRepositories) { - this.gitlabConnectedRepositories = gitlabConnectedRepositories; - return this; - } - - @Override - public BatchCreateGitLabConnectedRepositoriesResponse set(String fieldName, Object value) { - return (BatchCreateGitLabConnectedRepositoriesResponse) super.set(fieldName, value); - } - - @Override - public BatchCreateGitLabConnectedRepositoriesResponse clone() { - return (BatchCreateGitLabConnectedRepositoriesResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BatchCreateGitLabConnectedRepositoriesResponseMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BatchCreateGitLabConnectedRepositoriesResponseMetadata.java deleted file mode 100644 index 258aec5c185..00000000000 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BatchCreateGitLabConnectedRepositoriesResponseMetadata.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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.cloudbuild.v1.model; - -/** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Metadata for - * `BatchCreateGitLabConnectedRepositories` operation. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Cloud Build 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 BatchCreateGitLabConnectedRepositoriesResponseMetadata extends com.google.api.client.json.GenericJson { - - /** - * Time the operation was completed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String completeTime; - - /** - * The name of the `GitLabConfig` that added connected repositories. Format: - * `projects/{project}/locations/{location}/gitLabConfigs/{config}` - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String config; - - /** - * Time the operation was created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String createTime; - - /** - * Time the operation was completed. - * @return value or {@code null} for none - */ - public String getCompleteTime() { - return completeTime; - } - - /** - * Time the operation was completed. - * @param completeTime completeTime or {@code null} for none - */ - public BatchCreateGitLabConnectedRepositoriesResponseMetadata setCompleteTime(String completeTime) { - this.completeTime = completeTime; - return this; - } - - /** - * The name of the `GitLabConfig` that added connected repositories. Format: - * `projects/{project}/locations/{location}/gitLabConfigs/{config}` - * @return value or {@code null} for none - */ - public java.lang.String getConfig() { - return config; - } - - /** - * The name of the `GitLabConfig` that added connected repositories. Format: - * `projects/{project}/locations/{location}/gitLabConfigs/{config}` - * @param config config or {@code null} for none - */ - public BatchCreateGitLabConnectedRepositoriesResponseMetadata setConfig(java.lang.String config) { - this.config = config; - return this; - } - - /** - * Time the operation was created. - * @return value or {@code null} for none - */ - public String getCreateTime() { - return createTime; - } - - /** - * Time the operation was created. - * @param createTime createTime or {@code null} for none - */ - public BatchCreateGitLabConnectedRepositoriesResponseMetadata setCreateTime(String createTime) { - this.createTime = createTime; - return this; - } - - @Override - public BatchCreateGitLabConnectedRepositoriesResponseMetadata set(String fieldName, Object value) { - return (BatchCreateGitLabConnectedRepositoriesResponseMetadata) super.set(fieldName, value); - } - - @Override - public BatchCreateGitLabConnectedRepositoriesResponseMetadata clone() { - return (BatchCreateGitLabConnectedRepositoriesResponseMetadata) super.clone(); - } - -} diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BuildTrigger.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BuildTrigger.java index afe17755fa7..b51222508a3 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BuildTrigger.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/BuildTrigger.java @@ -126,15 +126,6 @@ public final class BuildTrigger extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private GitHubEventsConfig github; - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. GitLabEnterpriseEventsConfig - * describes the configuration of a trigger that creates a build whenever a GitLab Enterprise - * event is received. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GitLabEventsConfig gitlabEnterpriseEventsConfig; - /** * Output only. Unique identifier of the trigger. * The value may be {@code null}. @@ -493,27 +484,6 @@ public BuildTrigger setGithub(GitHubEventsConfig github) { return this; } - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. GitLabEnterpriseEventsConfig - * describes the configuration of a trigger that creates a build whenever a GitLab Enterprise - * event is received. - * @return value or {@code null} for none - */ - public GitLabEventsConfig getGitlabEnterpriseEventsConfig() { - return gitlabEnterpriseEventsConfig; - } - - /** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. GitLabEnterpriseEventsConfig - * describes the configuration of a trigger that creates a build whenever a GitLab Enterprise - * event is received. - * @param gitlabEnterpriseEventsConfig gitlabEnterpriseEventsConfig or {@code null} for none - */ - public BuildTrigger setGitlabEnterpriseEventsConfig(GitLabEventsConfig gitlabEnterpriseEventsConfig) { - this.gitlabEnterpriseEventsConfig = gitlabEnterpriseEventsConfig; - return this; - } - /** * Output only. Unique identifier of the trigger. * @return value or {@code null} for none diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateGitLabConfigOperationMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateGitLabConfigOperationMetadata.java deleted file mode 100644 index 12bb37cd3ed..00000000000 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateGitLabConfigOperationMetadata.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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.cloudbuild.v1.model; - -/** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Metadata for `CreateGitLabConfig` - * operation. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Cloud Build 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 CreateGitLabConfigOperationMetadata extends com.google.api.client.json.GenericJson { - - /** - * Time the operation was completed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String completeTime; - - /** - * Time the operation was created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String createTime; - - /** - * The resource name of the GitLabConfig to be created. Format: - * `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String gitlabConfig; - - /** - * Time the operation was completed. - * @return value or {@code null} for none - */ - public String getCompleteTime() { - return completeTime; - } - - /** - * Time the operation was completed. - * @param completeTime completeTime or {@code null} for none - */ - public CreateGitLabConfigOperationMetadata setCompleteTime(String completeTime) { - this.completeTime = completeTime; - return this; - } - - /** - * Time the operation was created. - * @return value or {@code null} for none - */ - public String getCreateTime() { - return createTime; - } - - /** - * Time the operation was created. - * @param createTime createTime or {@code null} for none - */ - public CreateGitLabConfigOperationMetadata setCreateTime(String createTime) { - this.createTime = createTime; - return this; - } - - /** - * The resource name of the GitLabConfig to be created. Format: - * `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - * @return value or {@code null} for none - */ - public java.lang.String getGitlabConfig() { - return gitlabConfig; - } - - /** - * The resource name of the GitLabConfig to be created. Format: - * `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - * @param gitlabConfig gitlabConfig or {@code null} for none - */ - public CreateGitLabConfigOperationMetadata setGitlabConfig(java.lang.String gitlabConfig) { - this.gitlabConfig = gitlabConfig; - return this; - } - - @Override - public CreateGitLabConfigOperationMetadata set(String fieldName, Object value) { - return (CreateGitLabConfigOperationMetadata) super.set(fieldName, value); - } - - @Override - public CreateGitLabConfigOperationMetadata clone() { - return (CreateGitLabConfigOperationMetadata) super.clone(); - } - -} diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateGitLabConnectedRepositoryRequest.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateGitLabConnectedRepositoryRequest.java deleted file mode 100644 index e36c6d0bcf9..00000000000 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/CreateGitLabConnectedRepositoryRequest.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * 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.cloudbuild.v1.model; - -/** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Request to connect a repository from - * a connected GitLab host. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Cloud Build 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 CreateGitLabConnectedRepositoryRequest extends com.google.api.client.json.GenericJson { - - /** - * Required. The GitLab repository to connect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GitLabConnectedRepository gitlabConnectedRepository; - - /** - * Required. The name of the `GitLabConfig` that adds connected repository. Format: - * `projects/{project}/locations/{location}/gitLabConfigs/{config}` - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** - * Required. The GitLab repository to connect. - * @return value or {@code null} for none - */ - public GitLabConnectedRepository getGitlabConnectedRepository() { - return gitlabConnectedRepository; - } - - /** - * Required. The GitLab repository to connect. - * @param gitlabConnectedRepository gitlabConnectedRepository or {@code null} for none - */ - public CreateGitLabConnectedRepositoryRequest setGitlabConnectedRepository(GitLabConnectedRepository gitlabConnectedRepository) { - this.gitlabConnectedRepository = gitlabConnectedRepository; - return this; - } - - /** - * Required. The name of the `GitLabConfig` that adds connected repository. Format: - * `projects/{project}/locations/{location}/gitLabConfigs/{config}` - * @return value or {@code null} for none - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the `GitLabConfig` that adds connected repository. Format: - * `projects/{project}/locations/{location}/gitLabConfigs/{config}` - * @param parent parent or {@code null} for none - */ - public CreateGitLabConnectedRepositoryRequest setParent(java.lang.String parent) { - this.parent = parent; - return this; - } - - @Override - public CreateGitLabConnectedRepositoryRequest set(String fieldName, Object value) { - return (CreateGitLabConnectedRepositoryRequest) super.set(fieldName, value); - } - - @Override - public CreateGitLabConnectedRepositoryRequest clone() { - return (CreateGitLabConnectedRepositoryRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteGitLabConfigOperationMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteGitLabConfigOperationMetadata.java deleted file mode 100644 index 6e867246b68..00000000000 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/DeleteGitLabConfigOperationMetadata.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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.cloudbuild.v1.model; - -/** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Metadata for `DeleteGitLabConfig` - * operation. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Cloud Build 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 DeleteGitLabConfigOperationMetadata extends com.google.api.client.json.GenericJson { - - /** - * Time the operation was completed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String completeTime; - - /** - * Time the operation was created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String createTime; - - /** - * The resource name of the GitLabConfig to be created. Format: - * `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String gitlabConfig; - - /** - * Time the operation was completed. - * @return value or {@code null} for none - */ - public String getCompleteTime() { - return completeTime; - } - - /** - * Time the operation was completed. - * @param completeTime completeTime or {@code null} for none - */ - public DeleteGitLabConfigOperationMetadata setCompleteTime(String completeTime) { - this.completeTime = completeTime; - return this; - } - - /** - * Time the operation was created. - * @return value or {@code null} for none - */ - public String getCreateTime() { - return createTime; - } - - /** - * Time the operation was created. - * @param createTime createTime or {@code null} for none - */ - public DeleteGitLabConfigOperationMetadata setCreateTime(String createTime) { - this.createTime = createTime; - return this; - } - - /** - * The resource name of the GitLabConfig to be created. Format: - * `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - * @return value or {@code null} for none - */ - public java.lang.String getGitlabConfig() { - return gitlabConfig; - } - - /** - * The resource name of the GitLabConfig to be created. Format: - * `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - * @param gitlabConfig gitlabConfig or {@code null} for none - */ - public DeleteGitLabConfigOperationMetadata setGitlabConfig(java.lang.String gitlabConfig) { - this.gitlabConfig = gitlabConfig; - return this; - } - - @Override - public DeleteGitLabConfigOperationMetadata set(String fieldName, Object value) { - return (DeleteGitLabConfigOperationMetadata) super.set(fieldName, value); - } - - @Override - public DeleteGitLabConfigOperationMetadata clone() { - return (DeleteGitLabConfigOperationMetadata) super.clone(); - } - -} diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabConfig.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabConfig.java deleted file mode 100644 index f5654a40c6d..00000000000 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabConfig.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * 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.cloudbuild.v1.model; - -/** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. GitLabConfig represents the - * configuration for a GitLab integration. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Cloud Build 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 GitLabConfig extends com.google.api.client.json.GenericJson { - - /** - * Connected GitLab.com or GitLabEnterprise repositories for this config. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List connectedRepositories; - - /** - * Output only. Time when the config was created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String createTime; - - /** - * Optional. GitLabEnterprise config. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GitLabEnterpriseConfig enterpriseConfig; - - /** - * Identifier. The resource name for the config. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Required. Secret Manager secrets needed by the config. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GitLabSecrets secrets; - - /** - * Username of the GitLab.com or GitLab Enterprise account Cloud Build will use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String username; - - /** - * Output only. UUID included in webhook requests. The UUID is used to look up the corresponding - * config. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String webhookKey; - - /** - * Connected GitLab.com or GitLabEnterprise repositories for this config. - * @return value or {@code null} for none - */ - public java.util.List getConnectedRepositories() { - return connectedRepositories; - } - - /** - * Connected GitLab.com or GitLabEnterprise repositories for this config. - * @param connectedRepositories connectedRepositories or {@code null} for none - */ - public GitLabConfig setConnectedRepositories(java.util.List connectedRepositories) { - this.connectedRepositories = connectedRepositories; - return this; - } - - /** - * Output only. Time when the config was created. - * @return value or {@code null} for none - */ - public String getCreateTime() { - return createTime; - } - - /** - * Output only. Time when the config was created. - * @param createTime createTime or {@code null} for none - */ - public GitLabConfig setCreateTime(String createTime) { - this.createTime = createTime; - return this; - } - - /** - * Optional. GitLabEnterprise config. - * @return value or {@code null} for none - */ - public GitLabEnterpriseConfig getEnterpriseConfig() { - return enterpriseConfig; - } - - /** - * Optional. GitLabEnterprise config. - * @param enterpriseConfig enterpriseConfig or {@code null} for none - */ - public GitLabConfig setEnterpriseConfig(GitLabEnterpriseConfig enterpriseConfig) { - this.enterpriseConfig = enterpriseConfig; - return this; - } - - /** - * Identifier. The resource name for the config. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Identifier. The resource name for the config. - * @param name name or {@code null} for none - */ - public GitLabConfig setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Required. Secret Manager secrets needed by the config. - * @return value or {@code null} for none - */ - public GitLabSecrets getSecrets() { - return secrets; - } - - /** - * Required. Secret Manager secrets needed by the config. - * @param secrets secrets or {@code null} for none - */ - public GitLabConfig setSecrets(GitLabSecrets secrets) { - this.secrets = secrets; - return this; - } - - /** - * Username of the GitLab.com or GitLab Enterprise account Cloud Build will use. - * @return value or {@code null} for none - */ - public java.lang.String getUsername() { - return username; - } - - /** - * Username of the GitLab.com or GitLab Enterprise account Cloud Build will use. - * @param username username or {@code null} for none - */ - public GitLabConfig setUsername(java.lang.String username) { - this.username = username; - return this; - } - - /** - * Output only. UUID included in webhook requests. The UUID is used to look up the corresponding - * config. - * @return value or {@code null} for none - */ - public java.lang.String getWebhookKey() { - return webhookKey; - } - - /** - * Output only. UUID included in webhook requests. The UUID is used to look up the corresponding - * config. - * @param webhookKey webhookKey or {@code null} for none - */ - public GitLabConfig setWebhookKey(java.lang.String webhookKey) { - this.webhookKey = webhookKey; - return this; - } - - @Override - public GitLabConfig set(String fieldName, Object value) { - return (GitLabConfig) super.set(fieldName, value); - } - - @Override - public GitLabConfig clone() { - return (GitLabConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabConnectedRepository.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabConnectedRepository.java deleted file mode 100644 index 6fa20de56bb..00000000000 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabConnectedRepository.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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.cloudbuild.v1.model; - -/** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. GitLabConnectedRepository represents - * a GitLab connected repository request response. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Cloud Build 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 GitLabConnectedRepository extends com.google.api.client.json.GenericJson { - - /** - * The name of the `GitLabConfig` that added connected repository. Format: - * `projects/{project}/locations/{location}/gitLabConfigs/{config}` - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** - * The GitLab repositories to connect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GitLabRepositoryId repo; - - /** - * Output only. The status of the repo connection request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Status status; - - /** - * The name of the `GitLabConfig` that added connected repository. Format: - * `projects/{project}/locations/{location}/gitLabConfigs/{config}` - * @return value or {@code null} for none - */ - public java.lang.String getParent() { - return parent; - } - - /** - * The name of the `GitLabConfig` that added connected repository. Format: - * `projects/{project}/locations/{location}/gitLabConfigs/{config}` - * @param parent parent or {@code null} for none - */ - public GitLabConnectedRepository setParent(java.lang.String parent) { - this.parent = parent; - return this; - } - - /** - * The GitLab repositories to connect. - * @return value or {@code null} for none - */ - public GitLabRepositoryId getRepo() { - return repo; - } - - /** - * The GitLab repositories to connect. - * @param repo repo or {@code null} for none - */ - public GitLabConnectedRepository setRepo(GitLabRepositoryId repo) { - this.repo = repo; - return this; - } - - /** - * Output only. The status of the repo connection request. - * @return value or {@code null} for none - */ - public Status getStatus() { - return status; - } - - /** - * Output only. The status of the repo connection request. - * @param status status or {@code null} for none - */ - public GitLabConnectedRepository setStatus(Status status) { - this.status = status; - return this; - } - - @Override - public GitLabConnectedRepository set(String fieldName, Object value) { - return (GitLabConnectedRepository) super.set(fieldName, value); - } - - @Override - public GitLabConnectedRepository clone() { - return (GitLabConnectedRepository) super.clone(); - } - -} diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabEnterpriseConfig.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabEnterpriseConfig.java deleted file mode 100644 index e46f133948e..00000000000 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabEnterpriseConfig.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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.cloudbuild.v1.model; - -/** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. GitLabEnterpriseConfig represents the - * configuration for a GitLabEnterprise integration. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Cloud Build 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 GitLabEnterpriseConfig extends com.google.api.client.json.GenericJson { - - /** - * Immutable. The URI of the GitlabEnterprise host. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String hostUri; - - /** - * The Service Directory configuration to be used when reaching out to the GitLab Enterprise - * instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ServiceDirectoryConfig serviceDirectoryConfig; - - /** - * The SSL certificate to use in requests to GitLab Enterprise instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sslCa; - - /** - * Immutable. The URI of the GitlabEnterprise host. - * @return value or {@code null} for none - */ - public java.lang.String getHostUri() { - return hostUri; - } - - /** - * Immutable. The URI of the GitlabEnterprise host. - * @param hostUri hostUri or {@code null} for none - */ - public GitLabEnterpriseConfig setHostUri(java.lang.String hostUri) { - this.hostUri = hostUri; - return this; - } - - /** - * The Service Directory configuration to be used when reaching out to the GitLab Enterprise - * instance. - * @return value or {@code null} for none - */ - public ServiceDirectoryConfig getServiceDirectoryConfig() { - return serviceDirectoryConfig; - } - - /** - * The Service Directory configuration to be used when reaching out to the GitLab Enterprise - * instance. - * @param serviceDirectoryConfig serviceDirectoryConfig or {@code null} for none - */ - public GitLabEnterpriseConfig setServiceDirectoryConfig(ServiceDirectoryConfig serviceDirectoryConfig) { - this.serviceDirectoryConfig = serviceDirectoryConfig; - return this; - } - - /** - * The SSL certificate to use in requests to GitLab Enterprise instances. - * @return value or {@code null} for none - */ - public java.lang.String getSslCa() { - return sslCa; - } - - /** - * The SSL certificate to use in requests to GitLab Enterprise instances. - * @param sslCa sslCa or {@code null} for none - */ - public GitLabEnterpriseConfig setSslCa(java.lang.String sslCa) { - this.sslCa = sslCa; - return this; - } - - @Override - public GitLabEnterpriseConfig set(String fieldName, Object value) { - return (GitLabEnterpriseConfig) super.set(fieldName, value); - } - - @Override - public GitLabEnterpriseConfig clone() { - return (GitLabEnterpriseConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabEventsConfig.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabEventsConfig.java deleted file mode 100644 index 7aa22356678..00000000000 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabEventsConfig.java +++ /dev/null @@ -1,163 +0,0 @@ -/* - * 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.cloudbuild.v1.model; - -/** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. GitLabEventsConfig describes the - * configuration of a trigger that creates a build whenever a GitLab event is received. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Cloud Build 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 GitLabEventsConfig extends com.google.api.client.json.GenericJson { - - /** - * Output only. The GitLabConfig specified in the gitlab_config_resource field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GitLabConfig gitlabConfig; - - /** - * The GitLab config resource that this trigger config maps to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String gitlabConfigResource; - - /** - * Namespace of the GitLab project. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String projectNamespace; - - /** - * Filter to match changes in pull requests. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private PullRequestFilter pullRequest; - - /** - * Filter to match changes in refs like branches, tags. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private PushFilter push; - - /** - * Output only. The GitLabConfig specified in the gitlab_config_resource field. - * @return value or {@code null} for none - */ - public GitLabConfig getGitlabConfig() { - return gitlabConfig; - } - - /** - * Output only. The GitLabConfig specified in the gitlab_config_resource field. - * @param gitlabConfig gitlabConfig or {@code null} for none - */ - public GitLabEventsConfig setGitlabConfig(GitLabConfig gitlabConfig) { - this.gitlabConfig = gitlabConfig; - return this; - } - - /** - * The GitLab config resource that this trigger config maps to. - * @return value or {@code null} for none - */ - public java.lang.String getGitlabConfigResource() { - return gitlabConfigResource; - } - - /** - * The GitLab config resource that this trigger config maps to. - * @param gitlabConfigResource gitlabConfigResource or {@code null} for none - */ - public GitLabEventsConfig setGitlabConfigResource(java.lang.String gitlabConfigResource) { - this.gitlabConfigResource = gitlabConfigResource; - return this; - } - - /** - * Namespace of the GitLab project. - * @return value or {@code null} for none - */ - public java.lang.String getProjectNamespace() { - return projectNamespace; - } - - /** - * Namespace of the GitLab project. - * @param projectNamespace projectNamespace or {@code null} for none - */ - public GitLabEventsConfig setProjectNamespace(java.lang.String projectNamespace) { - this.projectNamespace = projectNamespace; - return this; - } - - /** - * Filter to match changes in pull requests. - * @return value or {@code null} for none - */ - public PullRequestFilter getPullRequest() { - return pullRequest; - } - - /** - * Filter to match changes in pull requests. - * @param pullRequest pullRequest or {@code null} for none - */ - public GitLabEventsConfig setPullRequest(PullRequestFilter pullRequest) { - this.pullRequest = pullRequest; - return this; - } - - /** - * Filter to match changes in refs like branches, tags. - * @return value or {@code null} for none - */ - public PushFilter getPush() { - return push; - } - - /** - * Filter to match changes in refs like branches, tags. - * @param push push or {@code null} for none - */ - public GitLabEventsConfig setPush(PushFilter push) { - this.push = push; - return this; - } - - @Override - public GitLabEventsConfig set(String fieldName, Object value) { - return (GitLabEventsConfig) super.set(fieldName, value); - } - - @Override - public GitLabEventsConfig clone() { - return (GitLabEventsConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabRepository.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabRepository.java deleted file mode 100644 index 4339f87ccb9..00000000000 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabRepository.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * 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.cloudbuild.v1.model; - -/** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Proto Representing a GitLabRepository - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Cloud Build 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 GitLabRepository extends com.google.api.client.json.GenericJson { - - /** - * Link to the browse repo page on the GitLab instance - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String browseUri; - - /** - * Description of the repository - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Display name of the repository - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * The resource name of the repository - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Identifier for a repository - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GitLabRepositoryId repositoryId; - - /** - * Link to the browse repo page on the GitLab instance - * @return value or {@code null} for none - */ - public java.lang.String getBrowseUri() { - return browseUri; - } - - /** - * Link to the browse repo page on the GitLab instance - * @param browseUri browseUri or {@code null} for none - */ - public GitLabRepository setBrowseUri(java.lang.String browseUri) { - this.browseUri = browseUri; - return this; - } - - /** - * Description of the repository - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * Description of the repository - * @param description description or {@code null} for none - */ - public GitLabRepository setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Display name of the repository - * @return value or {@code null} for none - */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * Display name of the repository - * @param displayName displayName or {@code null} for none - */ - public GitLabRepository setDisplayName(java.lang.String displayName) { - this.displayName = displayName; - return this; - } - - /** - * The resource name of the repository - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The resource name of the repository - * @param name name or {@code null} for none - */ - public GitLabRepository setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Identifier for a repository - * @return value or {@code null} for none - */ - public GitLabRepositoryId getRepositoryId() { - return repositoryId; - } - - /** - * Identifier for a repository - * @param repositoryId repositoryId or {@code null} for none - */ - public GitLabRepository setRepositoryId(GitLabRepositoryId repositoryId) { - this.repositoryId = repositoryId; - return this; - } - - @Override - public GitLabRepository set(String fieldName, Object value) { - return (GitLabRepository) super.set(fieldName, value); - } - - @Override - public GitLabRepository clone() { - return (GitLabRepository) super.clone(); - } - -} diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabRepositoryId.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabRepositoryId.java deleted file mode 100644 index 04baabff1f3..00000000000 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabRepositoryId.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.cloudbuild.v1.model; - -/** - * GitLabRepositoryId identifies a specific repository hosted on GitLab.com or GitLabEnterprise - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Cloud Build 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 GitLabRepositoryId extends com.google.api.client.json.GenericJson { - - /** - * Required. Identifier for the repository. example: "namespace/project-slug", namespace is - * usually the username or group ID - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String id; - - /** - * Output only. The ID of the webhook that was created for receiving events from this repo. We - * only create and manage a single webhook for each repo. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer webhookId; - - /** - * Required. Identifier for the repository. example: "namespace/project-slug", namespace is - * usually the username or group ID - * @return value or {@code null} for none - */ - public java.lang.String getId() { - return id; - } - - /** - * Required. Identifier for the repository. example: "namespace/project-slug", namespace is - * usually the username or group ID - * @param id id or {@code null} for none - */ - public GitLabRepositoryId setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * Output only. The ID of the webhook that was created for receiving events from this repo. We - * only create and manage a single webhook for each repo. - * @return value or {@code null} for none - */ - public java.lang.Integer getWebhookId() { - return webhookId; - } - - /** - * Output only. The ID of the webhook that was created for receiving events from this repo. We - * only create and manage a single webhook for each repo. - * @param webhookId webhookId or {@code null} for none - */ - public GitLabRepositoryId setWebhookId(java.lang.Integer webhookId) { - this.webhookId = webhookId; - return this; - } - - @Override - public GitLabRepositoryId set(String fieldName, Object value) { - return (GitLabRepositoryId) super.set(fieldName, value); - } - - @Override - public GitLabRepositoryId clone() { - return (GitLabRepositoryId) super.clone(); - } - -} diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabSecrets.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabSecrets.java deleted file mode 100644 index c5335e1786e..00000000000 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitLabSecrets.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * 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.cloudbuild.v1.model; - -/** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. GitLabSecrets represents the secrets - * in Secret Manager for a GitLab integration. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Cloud Build 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 GitLabSecrets extends com.google.api.client.json.GenericJson { - - /** - * Required. The resource name for the api access token’s secret version - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String apiAccessTokenVersion; - - /** - * Required. Immutable. API Key that will be attached to webhook requests from GitLab to Cloud - * Build. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String apiKeyVersion; - - /** - * Required. The resource name for the read access token’s secret version - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String readAccessTokenVersion; - - /** - * Required. Immutable. The resource name for the webhook secret’s secret version. Once this field - * has been set, it cannot be changed. If you need to change it, please create another - * GitLabConfig. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String webhookSecretVersion; - - /** - * Required. The resource name for the api access token’s secret version - * @return value or {@code null} for none - */ - public java.lang.String getApiAccessTokenVersion() { - return apiAccessTokenVersion; - } - - /** - * Required. The resource name for the api access token’s secret version - * @param apiAccessTokenVersion apiAccessTokenVersion or {@code null} for none - */ - public GitLabSecrets setApiAccessTokenVersion(java.lang.String apiAccessTokenVersion) { - this.apiAccessTokenVersion = apiAccessTokenVersion; - return this; - } - - /** - * Required. Immutable. API Key that will be attached to webhook requests from GitLab to Cloud - * Build. - * @return value or {@code null} for none - */ - public java.lang.String getApiKeyVersion() { - return apiKeyVersion; - } - - /** - * Required. Immutable. API Key that will be attached to webhook requests from GitLab to Cloud - * Build. - * @param apiKeyVersion apiKeyVersion or {@code null} for none - */ - public GitLabSecrets setApiKeyVersion(java.lang.String apiKeyVersion) { - this.apiKeyVersion = apiKeyVersion; - return this; - } - - /** - * Required. The resource name for the read access token’s secret version - * @return value or {@code null} for none - */ - public java.lang.String getReadAccessTokenVersion() { - return readAccessTokenVersion; - } - - /** - * Required. The resource name for the read access token’s secret version - * @param readAccessTokenVersion readAccessTokenVersion or {@code null} for none - */ - public GitLabSecrets setReadAccessTokenVersion(java.lang.String readAccessTokenVersion) { - this.readAccessTokenVersion = readAccessTokenVersion; - return this; - } - - /** - * Required. Immutable. The resource name for the webhook secret’s secret version. Once this field - * has been set, it cannot be changed. If you need to change it, please create another - * GitLabConfig. - * @return value or {@code null} for none - */ - public java.lang.String getWebhookSecretVersion() { - return webhookSecretVersion; - } - - /** - * Required. Immutable. The resource name for the webhook secret’s secret version. Once this field - * has been set, it cannot be changed. If you need to change it, please create another - * GitLabConfig. - * @param webhookSecretVersion webhookSecretVersion or {@code null} for none - */ - public GitLabSecrets setWebhookSecretVersion(java.lang.String webhookSecretVersion) { - this.webhookSecretVersion = webhookSecretVersion; - return this; - } - - @Override - public GitLabSecrets set(String fieldName, Object value) { - return (GitLabSecrets) super.set(fieldName, value); - } - - @Override - public GitLabSecrets clone() { - return (GitLabSecrets) super.clone(); - } - -} diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitSourceDependency.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitSourceDependency.java index caafbe6cc3a..758754aeaed 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitSourceDependency.java +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/GitSourceDependency.java @@ -43,6 +43,15 @@ public final class GitSourceDependency extends com.google.api.client.json.Generi @com.google.api.client.util.Key private java.lang.String destPath; + /** + * Optional. True if remote tags should be fetched too (default false). Note: when depth is 1 + * (default), git fetch only retrieves tags pointing to commits within the shallow boundary. Set + * depth to -1 to fetch all historical tags. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean fetchTags; + /** * Optional. True if submodules should be fetched too (default false). * The value may be {@code null}. @@ -98,6 +107,27 @@ public GitSourceDependency setDestPath(java.lang.String destPath) { return this; } + /** + * Optional. True if remote tags should be fetched too (default false). Note: when depth is 1 + * (default), git fetch only retrieves tags pointing to commits within the shallow boundary. Set + * depth to -1 to fetch all historical tags. + * @return value or {@code null} for none + */ + public java.lang.Boolean getFetchTags() { + return fetchTags; + } + + /** + * Optional. True if remote tags should be fetched too (default false). Note: when depth is 1 + * (default), git fetch only retrieves tags pointing to commits within the shallow boundary. Set + * depth to -1 to fetch all historical tags. + * @param fetchTags fetchTags or {@code null} for none + */ + public GitSourceDependency setFetchTags(java.lang.Boolean fetchTags) { + this.fetchTags = fetchTags; + return this; + } + /** * Optional. True if submodules should be fetched too (default false). * @return value or {@code null} for none diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/ListGitLabConfigsResponse.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/ListGitLabConfigsResponse.java deleted file mode 100644 index b3c87b9d705..00000000000 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/ListGitLabConfigsResponse.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * 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.cloudbuild.v1.model; - -/** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. RPC response object returned by - * ListGitLabConfigs RPC 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 Cloud Build 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 ListGitLabConfigsResponse extends com.google.api.client.json.GenericJson { - - /** - * A list of GitLabConfigs - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List gitlabConfigs; - - static { - // hack to force ProGuard to consider GitLabConfig used, since otherwise it would be stripped out - // see https://github.com/google/google-api-java-client/issues/543 - com.google.api.client.util.Data.nullOf(GitLabConfig.class); - } - - /** - * A token that 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; - - /** - * A list of GitLabConfigs - * @return value or {@code null} for none - */ - public java.util.List getGitlabConfigs() { - return gitlabConfigs; - } - - /** - * A list of GitLabConfigs - * @param gitlabConfigs gitlabConfigs or {@code null} for none - */ - public ListGitLabConfigsResponse setGitlabConfigs(java.util.List gitlabConfigs) { - this.gitlabConfigs = gitlabConfigs; - return this; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page If this field is omitted, - * there are no subsequent pages. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page If this field is omitted, - * there are no subsequent pages. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ListGitLabConfigsResponse setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - @Override - public ListGitLabConfigsResponse set(String fieldName, Object value) { - return (ListGitLabConfigsResponse) super.set(fieldName, value); - } - - @Override - public ListGitLabConfigsResponse clone() { - return (ListGitLabConfigsResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/ListGitLabRepositoriesResponse.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/ListGitLabRepositoriesResponse.java deleted file mode 100644 index 5acbddaa344..00000000000 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/ListGitLabRepositoriesResponse.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * 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.cloudbuild.v1.model; - -/** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. RPC response object returned by the - * ListGitLabRepositories RPC 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 Cloud Build 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 ListGitLabRepositoriesResponse extends com.google.api.client.json.GenericJson { - - /** - * List of GitLab repositories - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List gitlabRepositories; - - static { - // hack to force ProGuard to consider GitLabRepository used, since otherwise it would be stripped out - // see https://github.com/google/google-api-java-client/issues/543 - com.google.api.client.util.Data.nullOf(GitLabRepository.class); - } - - /** - * A token that 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; - - /** - * List of GitLab repositories - * @return value or {@code null} for none - */ - public java.util.List getGitlabRepositories() { - return gitlabRepositories; - } - - /** - * List of GitLab repositories - * @param gitlabRepositories gitlabRepositories or {@code null} for none - */ - public ListGitLabRepositoriesResponse setGitlabRepositories(java.util.List gitlabRepositories) { - this.gitlabRepositories = gitlabRepositories; - return this; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, - * there are no subsequent pages. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, - * there are no subsequent pages. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ListGitLabRepositoriesResponse setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - @Override - public ListGitLabRepositoriesResponse set(String fieldName, Object value) { - return (ListGitLabRepositoriesResponse) super.set(fieldName, value); - } - - @Override - public ListGitLabRepositoriesResponse clone() { - return (ListGitLabRepositoriesResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/RemoveGitLabConnectedRepositoryRequest.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/RemoveGitLabConnectedRepositoryRequest.java deleted file mode 100644 index 1ca20e5b7c6..00000000000 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/RemoveGitLabConnectedRepositoryRequest.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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.cloudbuild.v1.model; - -/** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. RPC request object accepted by - * RemoveGitLabConnectedRepository RPC 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 Cloud Build 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 RemoveGitLabConnectedRepositoryRequest extends com.google.api.client.json.GenericJson { - - /** - * The connected repository to remove. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GitLabRepositoryId connectedRepository; - - /** - * The connected repository to remove. - * @return value or {@code null} for none - */ - public GitLabRepositoryId getConnectedRepository() { - return connectedRepository; - } - - /** - * The connected repository to remove. - * @param connectedRepository connectedRepository or {@code null} for none - */ - public RemoveGitLabConnectedRepositoryRequest setConnectedRepository(GitLabRepositoryId connectedRepository) { - this.connectedRepository = connectedRepository; - return this; - } - - @Override - public RemoveGitLabConnectedRepositoryRequest set(String fieldName, Object value) { - return (RemoveGitLabConnectedRepositoryRequest) super.set(fieldName, value); - } - - @Override - public RemoveGitLabConnectedRepositoryRequest clone() { - return (RemoveGitLabConnectedRepositoryRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/ServiceDirectoryConfig.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/ServiceDirectoryConfig.java deleted file mode 100644 index eeca4d78565..00000000000 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/ServiceDirectoryConfig.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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.cloudbuild.v1.model; - -/** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. ServiceDirectoryConfig represents - * Service Directory configuration for a SCM host connection. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Cloud Build 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 ServiceDirectoryConfig extends com.google.api.client.json.GenericJson { - - /** - * The Service Directory service name. Format: - * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String service; - - /** - * The Service Directory service name. Format: - * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}. - * @return value or {@code null} for none - */ - public java.lang.String getService() { - return service; - } - - /** - * The Service Directory service name. Format: - * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}. - * @param service service or {@code null} for none - */ - public ServiceDirectoryConfig setService(java.lang.String service) { - this.service = service; - return this; - } - - @Override - public ServiceDirectoryConfig set(String fieldName, Object value) { - return (ServiceDirectoryConfig) super.set(fieldName, value); - } - - @Override - public ServiceDirectoryConfig clone() { - return (ServiceDirectoryConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateGitLabConfigOperationMetadata.java b/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateGitLabConfigOperationMetadata.java deleted file mode 100644 index 6f69bbfe680..00000000000 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/com/google/api/services/cloudbuild/v1/model/UpdateGitLabConfigOperationMetadata.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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.cloudbuild.v1.model; - -/** - * Deprecated: CloudBuild GitLab V1 integration is deprecated. Metadata for `UpdateGitLabConfig` - * operation. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Cloud Build 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 UpdateGitLabConfigOperationMetadata extends com.google.api.client.json.GenericJson { - - /** - * Time the operation was completed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String completeTime; - - /** - * Time the operation was created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String createTime; - - /** - * The resource name of the GitLabConfig to be created. Format: - * `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String gitlabConfig; - - /** - * Time the operation was completed. - * @return value or {@code null} for none - */ - public String getCompleteTime() { - return completeTime; - } - - /** - * Time the operation was completed. - * @param completeTime completeTime or {@code null} for none - */ - public UpdateGitLabConfigOperationMetadata setCompleteTime(String completeTime) { - this.completeTime = completeTime; - return this; - } - - /** - * Time the operation was created. - * @return value or {@code null} for none - */ - public String getCreateTime() { - return createTime; - } - - /** - * Time the operation was created. - * @param createTime createTime or {@code null} for none - */ - public UpdateGitLabConfigOperationMetadata setCreateTime(String createTime) { - this.createTime = createTime; - return this; - } - - /** - * The resource name of the GitLabConfig to be created. Format: - * `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - * @return value or {@code null} for none - */ - public java.lang.String getGitlabConfig() { - return gitlabConfig; - } - - /** - * The resource name of the GitLabConfig to be created. Format: - * `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - * @param gitlabConfig gitlabConfig or {@code null} for none - */ - public UpdateGitLabConfigOperationMetadata setGitlabConfig(java.lang.String gitlabConfig) { - this.gitlabConfig = gitlabConfig; - return this; - } - - @Override - public UpdateGitLabConfigOperationMetadata set(String fieldName, Object value) { - return (UpdateGitLabConfigOperationMetadata) super.set(fieldName, value); - } - - @Override - public UpdateGitLabConfigOperationMetadata clone() { - return (UpdateGitLabConfigOperationMetadata) super.clone(); - } - -} diff --git a/clients/google-api-services-cloudbuild/v1/2.0.0/pom.xml b/clients/google-api-services-cloudbuild/v1/2.0.0/pom.xml index 738bc7fee00..0cada14fda6 100644 --- a/clients/google-api-services-cloudbuild/v1/2.0.0/pom.xml +++ b/clients/google-api-services-cloudbuild/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-cloudbuild - v1-rev20260627-2.0.0 - Cloud Build API v1-rev20260627-2.0.0 + v1-rev20260814-2.0.0 + Cloud Build API v1-rev20260814-2.0.0 jar 2011 diff --git a/clients/google-api-services-cloudbuild/v1/README.md b/clients/google-api-services-cloudbuild/v1/README.md index 001c08486cb..8110024fcfe 100644 --- a/clients/google-api-services-cloudbuild/v1/README.md +++ b/clients/google-api-services-cloudbuild/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-cloudbuild - v1-rev20260627-2.0.0 + v1-rev20260814-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-cloudbuild:v1-rev20260627-2.0.0' + implementation 'com.google.apis:google-api-services-cloudbuild:v1-rev20260814-2.0.0' } ```