1
0
Fork 0
m365-php/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/VpnConfiguration.php

178 lines
4.7 KiB
PHP

<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* VpnConfiguration File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
namespace Beta\Microsoft\Graph\Model;
/**
* VpnConfiguration class
*
* @category Model
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
class VpnConfiguration extends DeviceConfiguration
{
/**
* Gets the authenticationMethod
* Authentication method. Possible values are: certificate, usernameAndPassword, sharedSecret, derivedCredential, azureAD.
*
* @return VpnAuthenticationMethod|null The authenticationMethod
*/
public function getAuthenticationMethod()
{
if (array_key_exists("authenticationMethod", $this->_propDict)) {
if (is_a($this->_propDict["authenticationMethod"], "\Beta\Microsoft\Graph\Model\VpnAuthenticationMethod") || is_null($this->_propDict["authenticationMethod"])) {
return $this->_propDict["authenticationMethod"];
} else {
$this->_propDict["authenticationMethod"] = new VpnAuthenticationMethod($this->_propDict["authenticationMethod"]);
return $this->_propDict["authenticationMethod"];
}
}
return null;
}
/**
* Sets the authenticationMethod
* Authentication method. Possible values are: certificate, usernameAndPassword, sharedSecret, derivedCredential, azureAD.
*
* @param VpnAuthenticationMethod $val The authenticationMethod
*
* @return VpnConfiguration
*/
public function setAuthenticationMethod($val)
{
$this->_propDict["authenticationMethod"] = $val;
return $this;
}
/**
* Gets the connectionName
* Connection name displayed to the user.
*
* @return string|null The connectionName
*/
public function getConnectionName()
{
if (array_key_exists("connectionName", $this->_propDict)) {
return $this->_propDict["connectionName"];
} else {
return null;
}
}
/**
* Sets the connectionName
* Connection name displayed to the user.
*
* @param string $val The connectionName
*
* @return VpnConfiguration
*/
public function setConnectionName($val)
{
$this->_propDict["connectionName"] = $val;
return $this;
}
/**
* Gets the realm
* Realm when connection type is set to Pulse Secure.
*
* @return string|null The realm
*/
public function getRealm()
{
if (array_key_exists("realm", $this->_propDict)) {
return $this->_propDict["realm"];
} else {
return null;
}
}
/**
* Sets the realm
* Realm when connection type is set to Pulse Secure.
*
* @param string $val The realm
*
* @return VpnConfiguration
*/
public function setRealm($val)
{
$this->_propDict["realm"] = $val;
return $this;
}
/**
* Gets the role
* Role when connection type is set to Pulse Secure.
*
* @return string|null The role
*/
public function getRole()
{
if (array_key_exists("role", $this->_propDict)) {
return $this->_propDict["role"];
} else {
return null;
}
}
/**
* Sets the role
* Role when connection type is set to Pulse Secure.
*
* @param string $val The role
*
* @return VpnConfiguration
*/
public function setRole($val)
{
$this->_propDict["role"] = $val;
return $this;
}
/**
* Gets the servers
* List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements.
*
* @return array|null The servers
*/
public function getServers()
{
if (array_key_exists("servers", $this->_propDict)) {
return $this->_propDict["servers"];
} else {
return null;
}
}
/**
* Sets the servers
* List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements.
*
* @param VpnServer[] $val The servers
*
* @return VpnConfiguration
*/
public function setServers($val)
{
$this->_propDict["servers"] = $val;
return $this;
}
}