2022-05-31 13:08:55 -06:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
|
|
|
|
*
|
|
|
|
* UnifiedRoleManagementPolicyAssignment 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;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* UnifiedRoleManagementPolicyAssignment 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 UnifiedRoleManagementPolicyAssignment extends Entity
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Gets the policyId
|
2022-07-26 15:00:50 -06:00
|
|
|
* The id of the policy. Inherited from entity.
|
2022-05-31 13:08:55 -06:00
|
|
|
*
|
|
|
|
* @return string|null The policyId
|
|
|
|
*/
|
|
|
|
public function getPolicyId()
|
|
|
|
{
|
|
|
|
if (array_key_exists("policyId", $this->_propDict)) {
|
|
|
|
return $this->_propDict["policyId"];
|
|
|
|
} else {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the policyId
|
2022-07-26 15:00:50 -06:00
|
|
|
* The id of the policy. Inherited from entity.
|
2022-05-31 13:08:55 -06:00
|
|
|
*
|
|
|
|
* @param string $val The policyId
|
|
|
|
*
|
|
|
|
* @return UnifiedRoleManagementPolicyAssignment
|
|
|
|
*/
|
|
|
|
public function setPolicyId($val)
|
|
|
|
{
|
|
|
|
$this->_propDict["policyId"] = $val;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the roleDefinitionId
|
2022-07-26 15:00:50 -06:00
|
|
|
* The identifier of the role definition object where the policy applies. If not specified, the policy applies to all roles. Supports $filter (eq).
|
2022-05-31 13:08:55 -06:00
|
|
|
*
|
|
|
|
* @return string|null The roleDefinitionId
|
|
|
|
*/
|
|
|
|
public function getRoleDefinitionId()
|
|
|
|
{
|
|
|
|
if (array_key_exists("roleDefinitionId", $this->_propDict)) {
|
|
|
|
return $this->_propDict["roleDefinitionId"];
|
|
|
|
} else {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the roleDefinitionId
|
2022-07-26 15:00:50 -06:00
|
|
|
* The identifier of the role definition object where the policy applies. If not specified, the policy applies to all roles. Supports $filter (eq).
|
2022-05-31 13:08:55 -06:00
|
|
|
*
|
|
|
|
* @param string $val The roleDefinitionId
|
|
|
|
*
|
|
|
|
* @return UnifiedRoleManagementPolicyAssignment
|
|
|
|
*/
|
|
|
|
public function setRoleDefinitionId($val)
|
|
|
|
{
|
|
|
|
$this->_propDict["roleDefinitionId"] = $val;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the scopeId
|
2022-07-26 15:00:50 -06:00
|
|
|
* The identifier of the scope where the policy is assigned. Can be / for the tenant or a group ID. Required.
|
2022-05-31 13:08:55 -06:00
|
|
|
*
|
|
|
|
* @return string|null The scopeId
|
|
|
|
*/
|
|
|
|
public function getScopeId()
|
|
|
|
{
|
|
|
|
if (array_key_exists("scopeId", $this->_propDict)) {
|
|
|
|
return $this->_propDict["scopeId"];
|
|
|
|
} else {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the scopeId
|
2022-07-26 15:00:50 -06:00
|
|
|
* The identifier of the scope where the policy is assigned. Can be / for the tenant or a group ID. Required.
|
2022-05-31 13:08:55 -06:00
|
|
|
*
|
|
|
|
* @param string $val The scopeId
|
|
|
|
*
|
|
|
|
* @return UnifiedRoleManagementPolicyAssignment
|
|
|
|
*/
|
|
|
|
public function setScopeId($val)
|
|
|
|
{
|
|
|
|
$this->_propDict["scopeId"] = $val;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the scopeType
|
2022-07-26 15:00:50 -06:00
|
|
|
* The type of the scope where the policy is assigned. One of Directory, DirectoryRole. Required.
|
2022-05-31 13:08:55 -06:00
|
|
|
*
|
|
|
|
* @return string|null The scopeType
|
|
|
|
*/
|
|
|
|
public function getScopeType()
|
|
|
|
{
|
|
|
|
if (array_key_exists("scopeType", $this->_propDict)) {
|
|
|
|
return $this->_propDict["scopeType"];
|
|
|
|
} else {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the scopeType
|
2022-07-26 15:00:50 -06:00
|
|
|
* The type of the scope where the policy is assigned. One of Directory, DirectoryRole. Required.
|
2022-05-31 13:08:55 -06:00
|
|
|
*
|
|
|
|
* @param string $val The scopeType
|
|
|
|
*
|
|
|
|
* @return UnifiedRoleManagementPolicyAssignment
|
|
|
|
*/
|
|
|
|
public function setScopeType($val)
|
|
|
|
{
|
|
|
|
$this->_propDict["scopeType"] = $val;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the policy
|
2022-07-26 15:00:50 -06:00
|
|
|
* The policy that's associated with a policy assignment. Supports $expand and a nested $expand of the rules and effectiveRules relationships for the policy.
|
2022-05-31 13:08:55 -06:00
|
|
|
*
|
|
|
|
* @return UnifiedRoleManagementPolicy|null The policy
|
|
|
|
*/
|
|
|
|
public function getPolicy()
|
|
|
|
{
|
|
|
|
if (array_key_exists("policy", $this->_propDict)) {
|
|
|
|
if (is_a($this->_propDict["policy"], "\Beta\Microsoft\Graph\Model\UnifiedRoleManagementPolicy") || is_null($this->_propDict["policy"])) {
|
|
|
|
return $this->_propDict["policy"];
|
|
|
|
} else {
|
|
|
|
$this->_propDict["policy"] = new UnifiedRoleManagementPolicy($this->_propDict["policy"]);
|
|
|
|
return $this->_propDict["policy"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the policy
|
2022-07-26 15:00:50 -06:00
|
|
|
* The policy that's associated with a policy assignment. Supports $expand and a nested $expand of the rules and effectiveRules relationships for the policy.
|
2022-05-31 13:08:55 -06:00
|
|
|
*
|
|
|
|
* @param UnifiedRoleManagementPolicy $val The policy
|
|
|
|
*
|
|
|
|
* @return UnifiedRoleManagementPolicyAssignment
|
|
|
|
*/
|
|
|
|
public function setPolicy($val)
|
|
|
|
{
|
|
|
|
$this->_propDict["policy"] = $val;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|