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 $userPasswordType = UserPassword::class;
34  protected $userPasswordDataType = '';
35
36  /**
37   * @param ConfigVariable[]
38   */
39  public function setAdditionalVariables($additionalVariables)
40  {
41    $this->additionalVariables = $additionalVariables;
42  }
43  /**
44   * @return ConfigVariable[]
45   */
46  public function getAdditionalVariables()
47  {
48    return $this->additionalVariables;
49  }
50  /**
51   * @param string
52   */
53  public function setAuthType($authType)
54  {
55    $this->authType = $authType;
56  }
57  /**
58   * @return string
59   */
60  public function getAuthType()
61  {
62    return $this->authType;
63  }
64  /**
65   * @param Oauth2ClientCredentials
66   */
67  public function setOauth2ClientCredentials(Oauth2ClientCredentials $oauth2ClientCredentials)
68  {
69    $this->oauth2ClientCredentials = $oauth2ClientCredentials;
70  }
71  /**
72   * @return Oauth2ClientCredentials
73   */
74  public function getOauth2ClientCredentials()
75  {
76    return $this->oauth2ClientCredentials;
77  }
78  /**
79   * @param Oauth2JwtBearer
80   */
81  public function setOauth2JwtBearer(Oauth2JwtBearer $oauth2JwtBearer)
82  {
83    $this->oauth2JwtBearer = $oauth2JwtBearer;
84  }
85  /**
86   * @return Oauth2JwtBearer
87   */
88  public function getOauth2JwtBearer()
89  {
90    return $this->oauth2JwtBearer;
91  }
92  /**
93   * @param UserPassword
94   */
95  public function setUserPassword(UserPassword $userPassword)
96  {
97    $this->userPassword = $userPassword;
98  }
99  /**
100   * @return UserPassword
101   */
102  public function getUserPassword()
103  {
104    return $this->userPassword;
105  }
106}
107
108// Adding a class alias for backwards compatibility with the previous class name.
109class_alias(AuthConfig::class, 'Google_Service_Connectors_AuthConfig');
110