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 GoogleCloudIntegrationsV1alphaCredential extends \Google\Model
|
---|
21 | {
|
---|
22 | protected $authTokenType = GoogleCloudIntegrationsV1alphaAuthToken::class;
|
---|
23 | protected $authTokenDataType = '';
|
---|
24 | /**
|
---|
25 | * @var string
|
---|
26 | */
|
---|
27 | public $credentialType;
|
---|
28 | protected $jwtType = GoogleCloudIntegrationsV1alphaJwt::class;
|
---|
29 | protected $jwtDataType = '';
|
---|
30 | protected $oauth2AuthorizationCodeType = GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode::class;
|
---|
31 | protected $oauth2AuthorizationCodeDataType = '';
|
---|
32 | protected $oauth2ClientCredentialsType = GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials::class;
|
---|
33 | protected $oauth2ClientCredentialsDataType = '';
|
---|
34 | protected $oauth2ResourceOwnerCredentialsType = GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials::class;
|
---|
35 | protected $oauth2ResourceOwnerCredentialsDataType = '';
|
---|
36 | protected $oidcTokenType = GoogleCloudIntegrationsV1alphaOidcToken::class;
|
---|
37 | protected $oidcTokenDataType = '';
|
---|
38 | protected $serviceAccountCredentialsType = GoogleCloudIntegrationsV1alphaServiceAccountCredentials::class;
|
---|
39 | protected $serviceAccountCredentialsDataType = '';
|
---|
40 | protected $usernameAndPasswordType = GoogleCloudIntegrationsV1alphaUsernameAndPassword::class;
|
---|
41 | protected $usernameAndPasswordDataType = '';
|
---|
42 |
|
---|
43 | /**
|
---|
44 | * @param GoogleCloudIntegrationsV1alphaAuthToken
|
---|
45 | */
|
---|
46 | public function setAuthToken(GoogleCloudIntegrationsV1alphaAuthToken $authToken)
|
---|
47 | {
|
---|
48 | $this->authToken = $authToken;
|
---|
49 | }
|
---|
50 | /**
|
---|
51 | * @return GoogleCloudIntegrationsV1alphaAuthToken
|
---|
52 | */
|
---|
53 | public function getAuthToken()
|
---|
54 | {
|
---|
55 | return $this->authToken;
|
---|
56 | }
|
---|
57 | /**
|
---|
58 | * @param string
|
---|
59 | */
|
---|
60 | public function setCredentialType($credentialType)
|
---|
61 | {
|
---|
62 | $this->credentialType = $credentialType;
|
---|
63 | }
|
---|
64 | /**
|
---|
65 | * @return string
|
---|
66 | */
|
---|
67 | public function getCredentialType()
|
---|
68 | {
|
---|
69 | return $this->credentialType;
|
---|
70 | }
|
---|
71 | /**
|
---|
72 | * @param GoogleCloudIntegrationsV1alphaJwt
|
---|
73 | */
|
---|
74 | public function setJwt(GoogleCloudIntegrationsV1alphaJwt $jwt)
|
---|
75 | {
|
---|
76 | $this->jwt = $jwt;
|
---|
77 | }
|
---|
78 | /**
|
---|
79 | * @return GoogleCloudIntegrationsV1alphaJwt
|
---|
80 | */
|
---|
81 | public function getJwt()
|
---|
82 | {
|
---|
83 | return $this->jwt;
|
---|
84 | }
|
---|
85 | /**
|
---|
86 | * @param GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode
|
---|
87 | */
|
---|
88 | public function setOauth2AuthorizationCode(GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode $oauth2AuthorizationCode)
|
---|
89 | {
|
---|
90 | $this->oauth2AuthorizationCode = $oauth2AuthorizationCode;
|
---|
91 | }
|
---|
92 | /**
|
---|
93 | * @return GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode
|
---|
94 | */
|
---|
95 | public function getOauth2AuthorizationCode()
|
---|
96 | {
|
---|
97 | return $this->oauth2AuthorizationCode;
|
---|
98 | }
|
---|
99 | /**
|
---|
100 | * @param GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials
|
---|
101 | */
|
---|
102 | public function setOauth2ClientCredentials(GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials $oauth2ClientCredentials)
|
---|
103 | {
|
---|
104 | $this->oauth2ClientCredentials = $oauth2ClientCredentials;
|
---|
105 | }
|
---|
106 | /**
|
---|
107 | * @return GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials
|
---|
108 | */
|
---|
109 | public function getOauth2ClientCredentials()
|
---|
110 | {
|
---|
111 | return $this->oauth2ClientCredentials;
|
---|
112 | }
|
---|
113 | /**
|
---|
114 | * @param GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials
|
---|
115 | */
|
---|
116 | public function setOauth2ResourceOwnerCredentials(GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials $oauth2ResourceOwnerCredentials)
|
---|
117 | {
|
---|
118 | $this->oauth2ResourceOwnerCredentials = $oauth2ResourceOwnerCredentials;
|
---|
119 | }
|
---|
120 | /**
|
---|
121 | * @return GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials
|
---|
122 | */
|
---|
123 | public function getOauth2ResourceOwnerCredentials()
|
---|
124 | {
|
---|
125 | return $this->oauth2ResourceOwnerCredentials;
|
---|
126 | }
|
---|
127 | /**
|
---|
128 | * @param GoogleCloudIntegrationsV1alphaOidcToken
|
---|
129 | */
|
---|
130 | public function setOidcToken(GoogleCloudIntegrationsV1alphaOidcToken $oidcToken)
|
---|
131 | {
|
---|
132 | $this->oidcToken = $oidcToken;
|
---|
133 | }
|
---|
134 | /**
|
---|
135 | * @return GoogleCloudIntegrationsV1alphaOidcToken
|
---|
136 | */
|
---|
137 | public function getOidcToken()
|
---|
138 | {
|
---|
139 | return $this->oidcToken;
|
---|
140 | }
|
---|
141 | /**
|
---|
142 | * @param GoogleCloudIntegrationsV1alphaServiceAccountCredentials
|
---|
143 | */
|
---|
144 | public function setServiceAccountCredentials(GoogleCloudIntegrationsV1alphaServiceAccountCredentials $serviceAccountCredentials)
|
---|
145 | {
|
---|
146 | $this->serviceAccountCredentials = $serviceAccountCredentials;
|
---|
147 | }
|
---|
148 | /**
|
---|
149 | * @return GoogleCloudIntegrationsV1alphaServiceAccountCredentials
|
---|
150 | */
|
---|
151 | public function getServiceAccountCredentials()
|
---|
152 | {
|
---|
153 | return $this->serviceAccountCredentials;
|
---|
154 | }
|
---|
155 | /**
|
---|
156 | * @param GoogleCloudIntegrationsV1alphaUsernameAndPassword
|
---|
157 | */
|
---|
158 | public function setUsernameAndPassword(GoogleCloudIntegrationsV1alphaUsernameAndPassword $usernameAndPassword)
|
---|
159 | {
|
---|
160 | $this->usernameAndPassword = $usernameAndPassword;
|
---|
161 | }
|
---|
162 | /**
|
---|
163 | * @return GoogleCloudIntegrationsV1alphaUsernameAndPassword
|
---|
164 | */
|
---|
165 | public function getUsernameAndPassword()
|
---|
166 | {
|
---|
167 | return $this->usernameAndPassword;
|
---|
168 | }
|
---|
169 | }
|
---|
170 |
|
---|
171 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
172 | class_alias(GoogleCloudIntegrationsV1alphaCredential::class, 'Google_Service_Integrations_GoogleCloudIntegrationsV1alphaCredential');
|
---|