[e3d4e0a] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\Integrations;
|
---|
| 19 |
|
---|
| 20 | class GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials extends \Google\Model
|
---|
| 21 | {
|
---|
| 22 | protected $accessTokenType = GoogleCloudIntegrationsV1alphaAccessToken::class;
|
---|
| 23 | protected $accessTokenDataType = '';
|
---|
| 24 | /**
|
---|
| 25 | * @var string
|
---|
| 26 | */
|
---|
| 27 | public $clientId;
|
---|
| 28 | /**
|
---|
| 29 | * @var string
|
---|
| 30 | */
|
---|
| 31 | public $clientSecret;
|
---|
| 32 | /**
|
---|
| 33 | * @var string
|
---|
| 34 | */
|
---|
| 35 | public $password;
|
---|
| 36 | /**
|
---|
| 37 | * @var string
|
---|
| 38 | */
|
---|
| 39 | public $requestType;
|
---|
| 40 | /**
|
---|
| 41 | * @var string
|
---|
| 42 | */
|
---|
| 43 | public $scope;
|
---|
| 44 | /**
|
---|
| 45 | * @var string
|
---|
| 46 | */
|
---|
| 47 | public $tokenEndpoint;
|
---|
| 48 | protected $tokenParamsType = GoogleCloudIntegrationsV1alphaParameterMap::class;
|
---|
| 49 | protected $tokenParamsDataType = '';
|
---|
| 50 | /**
|
---|
| 51 | * @var string
|
---|
| 52 | */
|
---|
| 53 | public $username;
|
---|
| 54 |
|
---|
| 55 | /**
|
---|
| 56 | * @param GoogleCloudIntegrationsV1alphaAccessToken
|
---|
| 57 | */
|
---|
| 58 | public function setAccessToken(GoogleCloudIntegrationsV1alphaAccessToken $accessToken)
|
---|
| 59 | {
|
---|
| 60 | $this->accessToken = $accessToken;
|
---|
| 61 | }
|
---|
| 62 | /**
|
---|
| 63 | * @return GoogleCloudIntegrationsV1alphaAccessToken
|
---|
| 64 | */
|
---|
| 65 | public function getAccessToken()
|
---|
| 66 | {
|
---|
| 67 | return $this->accessToken;
|
---|
| 68 | }
|
---|
| 69 | /**
|
---|
| 70 | * @param string
|
---|
| 71 | */
|
---|
| 72 | public function setClientId($clientId)
|
---|
| 73 | {
|
---|
| 74 | $this->clientId = $clientId;
|
---|
| 75 | }
|
---|
| 76 | /**
|
---|
| 77 | * @return string
|
---|
| 78 | */
|
---|
| 79 | public function getClientId()
|
---|
| 80 | {
|
---|
| 81 | return $this->clientId;
|
---|
| 82 | }
|
---|
| 83 | /**
|
---|
| 84 | * @param string
|
---|
| 85 | */
|
---|
| 86 | public function setClientSecret($clientSecret)
|
---|
| 87 | {
|
---|
| 88 | $this->clientSecret = $clientSecret;
|
---|
| 89 | }
|
---|
| 90 | /**
|
---|
| 91 | * @return string
|
---|
| 92 | */
|
---|
| 93 | public function getClientSecret()
|
---|
| 94 | {
|
---|
| 95 | return $this->clientSecret;
|
---|
| 96 | }
|
---|
| 97 | /**
|
---|
| 98 | * @param string
|
---|
| 99 | */
|
---|
| 100 | public function setPassword($password)
|
---|
| 101 | {
|
---|
| 102 | $this->password = $password;
|
---|
| 103 | }
|
---|
| 104 | /**
|
---|
| 105 | * @return string
|
---|
| 106 | */
|
---|
| 107 | public function getPassword()
|
---|
| 108 | {
|
---|
| 109 | return $this->password;
|
---|
| 110 | }
|
---|
| 111 | /**
|
---|
| 112 | * @param string
|
---|
| 113 | */
|
---|
| 114 | public function setRequestType($requestType)
|
---|
| 115 | {
|
---|
| 116 | $this->requestType = $requestType;
|
---|
| 117 | }
|
---|
| 118 | /**
|
---|
| 119 | * @return string
|
---|
| 120 | */
|
---|
| 121 | public function getRequestType()
|
---|
| 122 | {
|
---|
| 123 | return $this->requestType;
|
---|
| 124 | }
|
---|
| 125 | /**
|
---|
| 126 | * @param string
|
---|
| 127 | */
|
---|
| 128 | public function setScope($scope)
|
---|
| 129 | {
|
---|
| 130 | $this->scope = $scope;
|
---|
| 131 | }
|
---|
| 132 | /**
|
---|
| 133 | * @return string
|
---|
| 134 | */
|
---|
| 135 | public function getScope()
|
---|
| 136 | {
|
---|
| 137 | return $this->scope;
|
---|
| 138 | }
|
---|
| 139 | /**
|
---|
| 140 | * @param string
|
---|
| 141 | */
|
---|
| 142 | public function setTokenEndpoint($tokenEndpoint)
|
---|
| 143 | {
|
---|
| 144 | $this->tokenEndpoint = $tokenEndpoint;
|
---|
| 145 | }
|
---|
| 146 | /**
|
---|
| 147 | * @return string
|
---|
| 148 | */
|
---|
| 149 | public function getTokenEndpoint()
|
---|
| 150 | {
|
---|
| 151 | return $this->tokenEndpoint;
|
---|
| 152 | }
|
---|
| 153 | /**
|
---|
| 154 | * @param GoogleCloudIntegrationsV1alphaParameterMap
|
---|
| 155 | */
|
---|
| 156 | public function setTokenParams(GoogleCloudIntegrationsV1alphaParameterMap $tokenParams)
|
---|
| 157 | {
|
---|
| 158 | $this->tokenParams = $tokenParams;
|
---|
| 159 | }
|
---|
| 160 | /**
|
---|
| 161 | * @return GoogleCloudIntegrationsV1alphaParameterMap
|
---|
| 162 | */
|
---|
| 163 | public function getTokenParams()
|
---|
| 164 | {
|
---|
| 165 | return $this->tokenParams;
|
---|
| 166 | }
|
---|
| 167 | /**
|
---|
| 168 | * @param string
|
---|
| 169 | */
|
---|
| 170 | public function setUsername($username)
|
---|
| 171 | {
|
---|
| 172 | $this->username = $username;
|
---|
| 173 | }
|
---|
| 174 | /**
|
---|
| 175 | * @return string
|
---|
| 176 | */
|
---|
| 177 | public function getUsername()
|
---|
| 178 | {
|
---|
| 179 | return $this->username;
|
---|
| 180 | }
|
---|
| 181 | }
|
---|
| 182 |
|
---|
| 183 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 184 | class_alias(GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials::class, 'Google_Service_Integrations_GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials');
|
---|