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

com.google.api.services.developerconnect.v1.model.GitHubConfig Maven / Gradle / Ivy

There is a newer version: v1-rev20241023-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.developerconnect.v1.model;

/**
 * Configuration for connections to github.com.
 *
 * 

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 Developer Connect 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 GitHubConfig extends com.google.api.client.json.GenericJson { /** * Optional. GitHub App installation id. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long appInstallationId; /** * Optional. OAuth credential of the account that authorized the GitHub App. It is recommended to * use a robot account instead of a human user account. The OAuth token must be tied to the GitHub * App of this config. * The value may be {@code null}. */ @com.google.api.client.util.Key private OAuthCredential authorizerCredential; /** * Required. Immutable. The GitHub Application that was installed to the GitHub user or * organization. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String githubApp; /** * Output only. The URI to navigate to in order to manage the installation associated with this * GitHubConfig. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String installationUri; /** * Optional. GitHub App installation id. * @return value or {@code null} for none */ public java.lang.Long getAppInstallationId() { return appInstallationId; } /** * Optional. GitHub App installation id. * @param appInstallationId appInstallationId or {@code null} for none */ public GitHubConfig setAppInstallationId(java.lang.Long appInstallationId) { this.appInstallationId = appInstallationId; return this; } /** * Optional. OAuth credential of the account that authorized the GitHub App. It is recommended to * use a robot account instead of a human user account. The OAuth token must be tied to the GitHub * App of this config. * @return value or {@code null} for none */ public OAuthCredential getAuthorizerCredential() { return authorizerCredential; } /** * Optional. OAuth credential of the account that authorized the GitHub App. It is recommended to * use a robot account instead of a human user account. The OAuth token must be tied to the GitHub * App of this config. * @param authorizerCredential authorizerCredential or {@code null} for none */ public GitHubConfig setAuthorizerCredential(OAuthCredential authorizerCredential) { this.authorizerCredential = authorizerCredential; return this; } /** * Required. Immutable. The GitHub Application that was installed to the GitHub user or * organization. * @return value or {@code null} for none */ public java.lang.String getGithubApp() { return githubApp; } /** * Required. Immutable. The GitHub Application that was installed to the GitHub user or * organization. * @param githubApp githubApp or {@code null} for none */ public GitHubConfig setGithubApp(java.lang.String githubApp) { this.githubApp = githubApp; return this; } /** * Output only. The URI to navigate to in order to manage the installation associated with this * GitHubConfig. * @return value or {@code null} for none */ public java.lang.String getInstallationUri() { return installationUri; } /** * Output only. The URI to navigate to in order to manage the installation associated with this * GitHubConfig. * @param installationUri installationUri or {@code null} for none */ public GitHubConfig setInstallationUri(java.lang.String installationUri) { this.installationUri = installationUri; return this; } @Override public GitHubConfig set(String fieldName, Object value) { return (GitHubConfig) super.set(fieldName, value); } @Override public GitHubConfig clone() { return (GitHubConfig) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy