All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.cloudbuild.v2.model.BitbucketCloudConfig Maven / Gradle / Ivy

There is a newer version: v2-rev20250114-2.0.0
Show newest version
/*
 * 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.v2.model;

/**
 * Configuration for connections to Bitbucket Cloud.
 *
 * 

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 BitbucketCloudConfig extends com.google.api.client.json.GenericJson { /** * Required. An access token with the `webhook`, `repository`, `repository:admin` and * `pullrequest` scope access. It can be either a workspace, project or repository access token. * It's recommended to use a system account to generate these credentials. * The value may be {@code null}. */ @com.google.api.client.util.Key private UserCredential authorizerCredential; /** * Required. An access token with the `repository` access. It can be either a workspace, project * or repository access token. It's recommended to use a system account to generate the * credentials. * The value may be {@code null}. */ @com.google.api.client.util.Key private UserCredential readAuthorizerCredential; /** * Required. SecretManager resource containing the webhook secret used to verify webhook events, * formatted as `projects/secrets/versions`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String webhookSecretSecretVersion; /** * Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String workspace; /** * Required. An access token with the `webhook`, `repository`, `repository:admin` and * `pullrequest` scope access. It can be either a workspace, project or repository access token. * It's recommended to use a system account to generate these credentials. * @return value or {@code null} for none */ public UserCredential getAuthorizerCredential() { return authorizerCredential; } /** * Required. An access token with the `webhook`, `repository`, `repository:admin` and * `pullrequest` scope access. It can be either a workspace, project or repository access token. * It's recommended to use a system account to generate these credentials. * @param authorizerCredential authorizerCredential or {@code null} for none */ public BitbucketCloudConfig setAuthorizerCredential(UserCredential authorizerCredential) { this.authorizerCredential = authorizerCredential; return this; } /** * Required. An access token with the `repository` access. It can be either a workspace, project * or repository access token. It's recommended to use a system account to generate the * credentials. * @return value or {@code null} for none */ public UserCredential getReadAuthorizerCredential() { return readAuthorizerCredential; } /** * Required. An access token with the `repository` access. It can be either a workspace, project * or repository access token. It's recommended to use a system account to generate the * credentials. * @param readAuthorizerCredential readAuthorizerCredential or {@code null} for none */ public BitbucketCloudConfig setReadAuthorizerCredential(UserCredential readAuthorizerCredential) { this.readAuthorizerCredential = readAuthorizerCredential; return this; } /** * Required. SecretManager resource containing the webhook secret used to verify webhook events, * formatted as `projects/secrets/versions`. * @return value or {@code null} for none */ public java.lang.String getWebhookSecretSecretVersion() { return webhookSecretSecretVersion; } /** * Required. SecretManager resource containing the webhook secret used to verify webhook events, * formatted as `projects/secrets/versions`. * @param webhookSecretSecretVersion webhookSecretSecretVersion or {@code null} for none */ public BitbucketCloudConfig setWebhookSecretSecretVersion(java.lang.String webhookSecretSecretVersion) { this.webhookSecretSecretVersion = webhookSecretSecretVersion; return this; } /** * Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform. * @return value or {@code null} for none */ public java.lang.String getWorkspace() { return workspace; } /** * Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform. * @param workspace workspace or {@code null} for none */ public BitbucketCloudConfig setWorkspace(java.lang.String workspace) { this.workspace = workspace; return this; } @Override public BitbucketCloudConfig set(String fieldName, Object value) { return (BitbucketCloudConfig) super.set(fieldName, value); } @Override public BitbucketCloudConfig clone() { return (BitbucketCloudConfig) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy