ruạṛ
<?php /** * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. * * UnifiedRoleDefinition 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 Microsoft\Graph\Model; /** * UnifiedRoleDefinition 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 UnifiedRoleDefinition extends Entity { /** * Gets the description * The description for the unifiedRoleDefinition. Read-only when isBuiltIn is true. * * @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 * The description for the unifiedRoleDefinition. Read-only when isBuiltIn is true. * * @param string $val The description * * @return UnifiedRoleDefinition */ public function setDescription($val) { $this->_propDict["description"] = $val; return $this; } /** * Gets the displayName * The display name for the unifiedRoleDefinition. Read-only when isBuiltIn is true. Required. Supports $filter (eq, in). * * @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 unifiedRoleDefinition. Read-only when isBuiltIn is true. Required. Supports $filter (eq, in). * * @param string $val The displayName * * @return UnifiedRoleDefinition */ public function setDisplayName($val) { $this->_propDict["displayName"] = $val; return $this; } /** * Gets the isBuiltIn * Flag indicating whether the role definition is part of the default set included in Microsoft Entra or a custom definition. Read-only. Supports $filter (eq, in). * * @return bool|null The isBuiltIn */ public function getIsBuiltIn() { if (array_key_exists("isBuiltIn", $this->_propDict)) { return $this->_propDict["isBuiltIn"]; } else { return null; } } /** * Sets the isBuiltIn * Flag indicating whether the role definition is part of the default set included in Microsoft Entra or a custom definition. Read-only. Supports $filter (eq, in). * * @param bool $val The isBuiltIn * * @return UnifiedRoleDefinition */ public function setIsBuiltIn($val) { $this->_propDict["isBuiltIn"] = boolval($val); return $this; } /** * Gets the isEnabled * Flag indicating whether the role is enabled for assignment. If false the role is not available for assignment. Read-only when isBuiltIn is true. * * @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 * Flag indicating whether the role is enabled for assignment. If false the role is not available for assignment. Read-only when isBuiltIn is true. * * @param bool $val The isEnabled * * @return UnifiedRoleDefinition */ public function setIsEnabled($val) { $this->_propDict["isEnabled"] = boolval($val); return $this; } /** * Gets the resourceScopes * List of the scopes or permissions the role definition applies to. Currently only / is supported. Read-only when isBuiltIn is true. DO NOT USE. This will be deprecated soon. Attach scope to role assignment. * * @return array|null The resourceScopes */ public function getResourceScopes() { if (array_key_exists("resourceScopes", $this->_propDict)) { return $this->_propDict["resourceScopes"]; } else { return null; } } /** * Sets the resourceScopes * List of the scopes or permissions the role definition applies to. Currently only / is supported. Read-only when isBuiltIn is true. DO NOT USE. This will be deprecated soon. Attach scope to role assignment. * * @param string[] $val The resourceScopes * * @return UnifiedRoleDefinition */ public function setResourceScopes($val) { $this->_propDict["resourceScopes"] = $val; return $this; } /** * Gets the rolePermissions * List of permissions included in the role. Read-only when isBuiltIn is true. Required. * * @return array|null The rolePermissions */ public function getRolePermissions() { if (array_key_exists("rolePermissions", $this->_propDict)) { return $this->_propDict["rolePermissions"]; } else { return null; } } /** * Sets the rolePermissions * List of permissions included in the role. Read-only when isBuiltIn is true. Required. * * @param UnifiedRolePermission[] $val The rolePermissions * * @return UnifiedRoleDefinition */ public function setRolePermissions($val) { $this->_propDict["rolePermissions"] = $val; return $this; } /** * Gets the templateId * Custom template identifier that can be set when isBuiltIn is false but is read-only when isBuiltIn is true. This identifier is typically used if one needs an identifier to be the same across different directories. * * @return string|null The templateId */ public function getTemplateId() { if (array_key_exists("templateId", $this->_propDict)) { return $this->_propDict["templateId"]; } else { return null; } } /** * Sets the templateId * Custom template identifier that can be set when isBuiltIn is false but is read-only when isBuiltIn is true. This identifier is typically used if one needs an identifier to be the same across different directories. * * @param string $val The templateId * * @return UnifiedRoleDefinition */ public function setTemplateId($val) { $this->_propDict["templateId"] = $val; return $this; } /** * Gets the version * Indicates version of the role definition. Read-only when isBuiltIn is true. * * @return string|null The version */ public function getVersion() { if (array_key_exists("version", $this->_propDict)) { return $this->_propDict["version"]; } else { return null; } } /** * Sets the version * Indicates version of the role definition. Read-only when isBuiltIn is true. * * @param string $val The version * * @return UnifiedRoleDefinition */ public function setVersion($val) { $this->_propDict["version"] = $val; return $this; } /** * Gets the inheritsPermissionsFrom * Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. * * @return array|null The inheritsPermissionsFrom */ public function getInheritsPermissionsFrom() { if (array_key_exists("inheritsPermissionsFrom", $this->_propDict)) { return $this->_propDict["inheritsPermissionsFrom"]; } else { return null; } } /** * Sets the inheritsPermissionsFrom * Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. * * @param UnifiedRoleDefinition[] $val The inheritsPermissionsFrom * * @return UnifiedRoleDefinition */ public function setInheritsPermissionsFrom($val) { $this->_propDict["inheritsPermissionsFrom"] = $val; return $this; } }
cải xoăn