JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode.php"

Full Path: /home/palsarh/web/palsarh.in/public_html/vendor/google/apiclient-services/src/Integrations/GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode.php
File size: 6.71 KB
MIME-type: text/x-php
Charset: utf-8

<?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\Integrations;

class GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode extends \Google\Model
{
  /**
   * Unspecified request type
   */
  public const REQUEST_TYPE_REQUEST_TYPE_UNSPECIFIED = 'REQUEST_TYPE_UNSPECIFIED';
  /**
   * To pass all the parameters in post body.
   */
  public const REQUEST_TYPE_REQUEST_BODY = 'REQUEST_BODY';
  /**
   * To pass all the parameters as a part of query parameter.
   */
  public const REQUEST_TYPE_QUERY_PARAMETERS = 'QUERY_PARAMETERS';
  /**
   * To pass client id and client secret as base 64 encoding of
   * client_id:client_password and rest parameters in post body.
   */
  public const REQUEST_TYPE_ENCODED_HEADER = 'ENCODED_HEADER';
  protected $accessTokenType = GoogleCloudIntegrationsV1alphaAccessToken::class;
  protected $accessTokenDataType = '';
  /**
   * Indicates if the user has opted in Google Reauth Policy. If opted in, the
   * refresh token will be valid for 20 hours, after which time users must re-
   * authenticate in order to obtain a new one.
   *
   * @var bool
   */
  public $applyReauthPolicy;
  /**
   * The Auth Code that is used to initially retrieve the access token.
   *
   * @var string
   */
  public $authCode;
  /**
   * The auth url endpoint to send the auth code request to.
   *
   * @var string
   */
  public $authEndpoint;
  protected $authParamsType = GoogleCloudIntegrationsV1alphaParameterMap::class;
  protected $authParamsDataType = '';
  /**
   * The client's id.
   *
   * @var string
   */
  public $clientId;
  /**
   * The client's secret.
   *
   * @var string
   */
  public $clientSecret;
  /**
   * Represent how to pass parameters to fetch access token
   *
   * @var string
   */
  public $requestType;
  /**
   * A space-delimited list of requested scope permissions.
   *
   * @var string
   */
  public $scope;
  /**
   * The token url endpoint to send the token request to.
   *
   * @var string
   */
  public $tokenEndpoint;
  protected $tokenParamsType = GoogleCloudIntegrationsV1alphaParameterMap::class;
  protected $tokenParamsDataType = '';

  /**
   * The access token received from the token endpoint.
   *
   * @param GoogleCloudIntegrationsV1alphaAccessToken $accessToken
   */
  public function setAccessToken(GoogleCloudIntegrationsV1alphaAccessToken $accessToken)
  {
    $this->accessToken = $accessToken;
  }
  /**
   * @return GoogleCloudIntegrationsV1alphaAccessToken
   */
  public function getAccessToken()
  {
    return $this->accessToken;
  }
  /**
   * Indicates if the user has opted in Google Reauth Policy. If opted in, the
   * refresh token will be valid for 20 hours, after which time users must re-
   * authenticate in order to obtain a new one.
   *
   * @param bool $applyReauthPolicy
   */
  public function setApplyReauthPolicy($applyReauthPolicy)
  {
    $this->applyReauthPolicy = $applyReauthPolicy;
  }
  /**
   * @return bool
   */
  public function getApplyReauthPolicy()
  {
    return $this->applyReauthPolicy;
  }
  /**
   * The Auth Code that is used to initially retrieve the access token.
   *
   * @param string $authCode
   */
  public function setAuthCode($authCode)
  {
    $this->authCode = $authCode;
  }
  /**
   * @return string
   */
  public function getAuthCode()
  {
    return $this->authCode;
  }
  /**
   * The auth url endpoint to send the auth code request to.
   *
   * @param string $authEndpoint
   */
  public function setAuthEndpoint($authEndpoint)
  {
    $this->authEndpoint = $authEndpoint;
  }
  /**
   * @return string
   */
  public function getAuthEndpoint()
  {
    return $this->authEndpoint;
  }
  /**
   * The auth parameters sent along with the auth code request.
   *
   * @param GoogleCloudIntegrationsV1alphaParameterMap $authParams
   */
  public function setAuthParams(GoogleCloudIntegrationsV1alphaParameterMap $authParams)
  {
    $this->authParams = $authParams;
  }
  /**
   * @return GoogleCloudIntegrationsV1alphaParameterMap
   */
  public function getAuthParams()
  {
    return $this->authParams;
  }
  /**
   * The client's id.
   *
   * @param string $clientId
   */
  public function setClientId($clientId)
  {
    $this->clientId = $clientId;
  }
  /**
   * @return string
   */
  public function getClientId()
  {
    return $this->clientId;
  }
  /**
   * The client's secret.
   *
   * @param string $clientSecret
   */
  public function setClientSecret($clientSecret)
  {
    $this->clientSecret = $clientSecret;
  }
  /**
   * @return string
   */
  public function getClientSecret()
  {
    return $this->clientSecret;
  }
  /**
   * Represent how to pass parameters to fetch access token
   *
   * Accepted values: REQUEST_TYPE_UNSPECIFIED, REQUEST_BODY, QUERY_PARAMETERS,
   * ENCODED_HEADER
   *
   * @param self::REQUEST_TYPE_* $requestType
   */
  public function setRequestType($requestType)
  {
    $this->requestType = $requestType;
  }
  /**
   * @return self::REQUEST_TYPE_*
   */
  public function getRequestType()
  {
    return $this->requestType;
  }
  /**
   * A space-delimited list of requested scope permissions.
   *
   * @param string $scope
   */
  public function setScope($scope)
  {
    $this->scope = $scope;
  }
  /**
   * @return string
   */
  public function getScope()
  {
    return $this->scope;
  }
  /**
   * The token url endpoint to send the token request to.
   *
   * @param string $tokenEndpoint
   */
  public function setTokenEndpoint($tokenEndpoint)
  {
    $this->tokenEndpoint = $tokenEndpoint;
  }
  /**
   * @return string
   */
  public function getTokenEndpoint()
  {
    return $this->tokenEndpoint;
  }
  /**
   * The token parameters sent along with the token request.
   *
   * @param GoogleCloudIntegrationsV1alphaParameterMap $tokenParams
   */
  public function setTokenParams(GoogleCloudIntegrationsV1alphaParameterMap $tokenParams)
  {
    $this->tokenParams = $tokenParams;
  }
  /**
   * @return GoogleCloudIntegrationsV1alphaParameterMap
   */
  public function getTokenParams()
  {
    return $this->tokenParams;
  }
}

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