source: vendor/google/apiclient-services/src/Connectors/AuthConfig.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 3.1 KB
Line 
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
18namespace Google\Service\Connectors;
19
20class AuthConfig extends \Google\Collection
21{
22 protected $collection_key = 'additionalVariables';
23 protected $additionalVariablesType = ConfigVariable::class;
24 protected $additionalVariablesDataType = 'array';
25 /**
26 * @var string
27 */
28 public $authType;
29 protected $oauth2ClientCredentialsType = Oauth2ClientCredentials::class;
30 protected $oauth2ClientCredentialsDataType = '';
31 protected $oauth2JwtBearerType = Oauth2JwtBearer::class;
32 protected $oauth2JwtBearerDataType = '';
33 protected $sshPublicKeyType = SshPublicKey::class;
34 protected $sshPublicKeyDataType = '';
35 protected $userPasswordType = UserPassword::class;
36 protected $userPasswordDataType = '';
37
38 /**
39 * @param ConfigVariable[]
40 */
41 public function setAdditionalVariables($additionalVariables)
42 {
43 $this->additionalVariables = $additionalVariables;
44 }
45 /**
46 * @return ConfigVariable[]
47 */
48 public function getAdditionalVariables()
49 {
50 return $this->additionalVariables;
51 }
52 /**
53 * @param string
54 */
55 public function setAuthType($authType)
56 {
57 $this->authType = $authType;
58 }
59 /**
60 * @return string
61 */
62 public function getAuthType()
63 {
64 return $this->authType;
65 }
66 /**
67 * @param Oauth2ClientCredentials
68 */
69 public function setOauth2ClientCredentials(Oauth2ClientCredentials $oauth2ClientCredentials)
70 {
71 $this->oauth2ClientCredentials = $oauth2ClientCredentials;
72 }
73 /**
74 * @return Oauth2ClientCredentials
75 */
76 public function getOauth2ClientCredentials()
77 {
78 return $this->oauth2ClientCredentials;
79 }
80 /**
81 * @param Oauth2JwtBearer
82 */
83 public function setOauth2JwtBearer(Oauth2JwtBearer $oauth2JwtBearer)
84 {
85 $this->oauth2JwtBearer = $oauth2JwtBearer;
86 }
87 /**
88 * @return Oauth2JwtBearer
89 */
90 public function getOauth2JwtBearer()
91 {
92 return $this->oauth2JwtBearer;
93 }
94 /**
95 * @param SshPublicKey
96 */
97 public function setSshPublicKey(SshPublicKey $sshPublicKey)
98 {
99 $this->sshPublicKey = $sshPublicKey;
100 }
101 /**
102 * @return SshPublicKey
103 */
104 public function getSshPublicKey()
105 {
106 return $this->sshPublicKey;
107 }
108 /**
109 * @param UserPassword
110 */
111 public function setUserPassword(UserPassword $userPassword)
112 {
113 $this->userPassword = $userPassword;
114 }
115 /**
116 * @return UserPassword
117 */
118 public function getUserPassword()
119 {
120 return $this->userPassword;
121 }
122}
123
124// Adding a class alias for backwards compatibility with the previous class name.
125class_alias(AuthConfig::class, 'Google_Service_Connectors_AuthConfig');
Note: See TracBrowser for help on using the repository browser.