<?php
/*
 * Copyright 2014 Google Inc.
 *
 * 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.
 */

namespace Google\Service\DeveloperConnect;

class StartOAuthResponse extends \Google\Collection
{
  /**
   * No system provider specified.
   */
  public const SYSTEM_PROVIDER_ID_SYSTEM_PROVIDER_UNSPECIFIED = 'SYSTEM_PROVIDER_UNSPECIFIED';
  /**
   * GitHub provider. Scopes can be found at
   * https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-
   * oauth-apps#available-scopes
   */
  public const SYSTEM_PROVIDER_ID_GITHUB = 'GITHUB';
  /**
   * GitLab provider. Scopes can be found at
   * https://docs.gitlab.com/user/profile/personal_access_tokens/#personal-
   * access-token-scopes
   */
  public const SYSTEM_PROVIDER_ID_GITLAB = 'GITLAB';
  /**
   * Deprecated: This provider is no longer supported. Google provider.
   * Recommended scopes: "https://www.googleapis.com/auth/drive.readonly",
   * "https://www.googleapis.com/auth/documents.readonly"
   *
   * @deprecated
   */
  public const SYSTEM_PROVIDER_ID_GOOGLE = 'GOOGLE';
  /**
   * Deprecated: This provider is no longer supported. Sentry provider. Scopes
   * can be found at https://docs.sentry.io/api/permissions/
   *
   * @deprecated
   */
  public const SYSTEM_PROVIDER_ID_SENTRY = 'SENTRY';
  /**
   * Deprecated: This provider is no longer supported. Rovo provider. Must
   * select the "rovo" scope.
   *
   * @deprecated
   */
  public const SYSTEM_PROVIDER_ID_ROVO = 'ROVO';
  /**
   * Deprecated: This provider is no longer supported. New Relic provider. No
   * scopes are allowed.
   *
   * @deprecated
   */
  public const SYSTEM_PROVIDER_ID_NEW_RELIC = 'NEW_RELIC';
  /**
   * Deprecated: This provider is no longer supported. Datastax provider. No
   * scopes are allowed.
   *
   * @deprecated
   */
  public const SYSTEM_PROVIDER_ID_DATASTAX = 'DATASTAX';
  /**
   * Deprecated: This provider is no longer supported. Dynatrace provider.
   *
   * @deprecated
   */
  public const SYSTEM_PROVIDER_ID_DYNATRACE = 'DYNATRACE';
  protected $collection_key = 'scopes';
  /**
   * The authorization server URL to the OAuth flow of the service provider.
   *
   * @var string
   */
  public $authUri;
  /**
   * The client ID to the OAuth App of the service provider.
   *
   * @var string
   */
  public $clientId;
  /**
   * https://datatracker.ietf.org/doc/html/rfc7636#section-4.1 Follow
   * http://shortn/_WFYl6U0NyC to include it in the AutoCodeURL.
   *
   * @var string
   */
  public $codeChallenge;
  /**
   * https://datatracker.ietf.org/doc/html/rfc7636#section-4.2
   *
   * @var string
   */
  public $codeChallengeMethod;
  /**
   * The list of scopes requested by the application.
   *
   * @var string[]
   */
  public $scopes;
  /**
   * The ID of the system provider.
   *
   * @var string
   */
  public $systemProviderId;
  /**
   * The ticket to be used for post processing the callback from the service
   * provider.
   *
   * @var string
   */
  public $ticket;

  /**
   * The authorization server URL to the OAuth flow of the service provider.
   *
   * @param string $authUri
   */
  public function setAuthUri($authUri)
  {
    $this->authUri = $authUri;
  }
  /**
   * @return string
   */
  public function getAuthUri()
  {
    return $this->authUri;
  }
  /**
   * The client ID to the OAuth App of the service provider.
   *
   * @param string $clientId
   */
  public function setClientId($clientId)
  {
    $this->clientId = $clientId;
  }
  /**
   * @return string
   */
  public function getClientId()
  {
    return $this->clientId;
  }
  /**
   * https://datatracker.ietf.org/doc/html/rfc7636#section-4.1 Follow
   * http://shortn/_WFYl6U0NyC to include it in the AutoCodeURL.
   *
   * @param string $codeChallenge
   */
  public function setCodeChallenge($codeChallenge)
  {
    $this->codeChallenge = $codeChallenge;
  }
  /**
   * @return string
   */
  public function getCodeChallenge()
  {
    return $this->codeChallenge;
  }
  /**
   * https://datatracker.ietf.org/doc/html/rfc7636#section-4.2
   *
   * @param string $codeChallengeMethod
   */
  public function setCodeChallengeMethod($codeChallengeMethod)
  {
    $this->codeChallengeMethod = $codeChallengeMethod;
  }
  /**
   * @return string
   */
  public function getCodeChallengeMethod()
  {
    return $this->codeChallengeMethod;
  }
  /**
   * The list of scopes requested by the application.
   *
   * @param string[] $scopes
   */
  public function setScopes($scopes)
  {
    $this->scopes = $scopes;
  }
  /**
   * @return string[]
   */
  public function getScopes()
  {
    return $this->scopes;
  }
  /**
   * The ID of the system provider.
   *
   * Accepted values: SYSTEM_PROVIDER_UNSPECIFIED, GITHUB, GITLAB, GOOGLE,
   * SENTRY, ROVO, NEW_RELIC, DATASTAX, DYNATRACE
   *
   * @param self::SYSTEM_PROVIDER_ID_* $systemProviderId
   */
  public function setSystemProviderId($systemProviderId)
  {
    $this->systemProviderId = $systemProviderId;
  }
  /**
   * @return self::SYSTEM_PROVIDER_ID_*
   */
  public function getSystemProviderId()
  {
    return $this->systemProviderId;
  }
  /**
   * The ticket to be used for post processing the callback from the service
   * provider.
   *
   * @param string $ticket
   */
  public function setTicket($ticket)
  {
    $this->ticket = $ticket;
  }
  /**
   * @return string
   */
  public function getTicket()
  {
    return $this->ticket;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StartOAuthResponse::class, 'Google_Service_DeveloperConnect_StartOAuthResponse');
