167 lines
4.1 KiB
PHP
167 lines
4.1 KiB
PHP
<?php
|
|
/**
|
|
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
|
|
*
|
|
* ResourceSpecificPermission 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;
|
|
/**
|
|
* ResourceSpecificPermission 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 ResourceSpecificPermission extends Entity
|
|
{
|
|
/**
|
|
* Gets the description
|
|
* Describes the level of access that the resource-specific permission represents.
|
|
*
|
|
* @return string|null The description
|
|
*/
|
|
public function getDescription()
|
|
{
|
|
if (array_key_exists("description", $this->_propDict)) {
|
|
return $this->_propDict["description"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the description
|
|
* Describes the level of access that the resource-specific permission represents.
|
|
*
|
|
* @param string $val The value of the description
|
|
*
|
|
* @return ResourceSpecificPermission
|
|
*/
|
|
public function setDescription($val)
|
|
{
|
|
$this->_propDict["description"] = $val;
|
|
return $this;
|
|
}
|
|
/**
|
|
* Gets the displayName
|
|
* The display name for the resource-specific permission.
|
|
*
|
|
* @return string|null The displayName
|
|
*/
|
|
public function getDisplayName()
|
|
{
|
|
if (array_key_exists("displayName", $this->_propDict)) {
|
|
return $this->_propDict["displayName"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the displayName
|
|
* The display name for the resource-specific permission.
|
|
*
|
|
* @param string $val The value of the displayName
|
|
*
|
|
* @return ResourceSpecificPermission
|
|
*/
|
|
public function setDisplayName($val)
|
|
{
|
|
$this->_propDict["displayName"] = $val;
|
|
return $this;
|
|
}
|
|
/**
|
|
* Gets the id
|
|
* The unique identifier for the resource-specific application permission.
|
|
*
|
|
* @return string|null The id
|
|
*/
|
|
public function getId()
|
|
{
|
|
if (array_key_exists("id", $this->_propDict)) {
|
|
return $this->_propDict["id"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the id
|
|
* The unique identifier for the resource-specific application permission.
|
|
*
|
|
* @param string $val The value of the id
|
|
*
|
|
* @return ResourceSpecificPermission
|
|
*/
|
|
public function setId($val)
|
|
{
|
|
$this->_propDict["id"] = $val;
|
|
return $this;
|
|
}
|
|
/**
|
|
* Gets the isEnabled
|
|
* Indicates whether the permission is enabled.
|
|
*
|
|
* @return bool|null The isEnabled
|
|
*/
|
|
public function getIsEnabled()
|
|
{
|
|
if (array_key_exists("isEnabled", $this->_propDict)) {
|
|
return $this->_propDict["isEnabled"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the isEnabled
|
|
* Indicates whether the permission is enabled.
|
|
*
|
|
* @param bool $val The value of the isEnabled
|
|
*
|
|
* @return ResourceSpecificPermission
|
|
*/
|
|
public function setIsEnabled($val)
|
|
{
|
|
$this->_propDict["isEnabled"] = $val;
|
|
return $this;
|
|
}
|
|
/**
|
|
* Gets the value
|
|
* The value of the permission.
|
|
*
|
|
* @return string|null The value
|
|
*/
|
|
public function getValue()
|
|
{
|
|
if (array_key_exists("value", $this->_propDict)) {
|
|
return $this->_propDict["value"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the value
|
|
* The value of the permission.
|
|
*
|
|
* @param string $val The value of the value
|
|
*
|
|
* @return ResourceSpecificPermission
|
|
*/
|
|
public function setValue($val)
|
|
{
|
|
$this->_propDict["value"] = $val;
|
|
return $this;
|
|
}
|
|
}
|