116 lines
4.4 KiB
PHP
116 lines
4.4 KiB
PHP
<?php
|
|
/**
|
|
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
|
|
*
|
|
* EvaluateDynamicMembershipResult 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;
|
|
/**
|
|
* EvaluateDynamicMembershipResult 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 EvaluateDynamicMembershipResult extends Entity
|
|
{
|
|
/**
|
|
* Gets the membershipRule
|
|
* If a group ID is provided, the value is the membership rule for the group. If a group ID is not provided, the value is the membership rule that was provided as a parameter. For more information, see Dynamic membership rules for groups in Azure Active Directory.
|
|
*
|
|
* @return string|null The membershipRule
|
|
*/
|
|
public function getMembershipRule()
|
|
{
|
|
if (array_key_exists("membershipRule", $this->_propDict)) {
|
|
return $this->_propDict["membershipRule"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the membershipRule
|
|
* If a group ID is provided, the value is the membership rule for the group. If a group ID is not provided, the value is the membership rule that was provided as a parameter. For more information, see Dynamic membership rules for groups in Azure Active Directory.
|
|
*
|
|
* @param string $val The value of the membershipRule
|
|
*
|
|
* @return EvaluateDynamicMembershipResult
|
|
*/
|
|
public function setMembershipRule($val)
|
|
{
|
|
$this->_propDict["membershipRule"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the membershipRuleEvaluationDetails
|
|
* Provides a detailed anaylsis of the membership evaluation result.
|
|
*
|
|
* @return ExpressionEvaluationDetails|null The membershipRuleEvaluationDetails
|
|
*/
|
|
public function getMembershipRuleEvaluationDetails()
|
|
{
|
|
if (array_key_exists("membershipRuleEvaluationDetails", $this->_propDict)) {
|
|
if (is_a($this->_propDict["membershipRuleEvaluationDetails"], "\Beta\Microsoft\Graph\Model\ExpressionEvaluationDetails") || is_null($this->_propDict["membershipRuleEvaluationDetails"])) {
|
|
return $this->_propDict["membershipRuleEvaluationDetails"];
|
|
} else {
|
|
$this->_propDict["membershipRuleEvaluationDetails"] = new ExpressionEvaluationDetails($this->_propDict["membershipRuleEvaluationDetails"]);
|
|
return $this->_propDict["membershipRuleEvaluationDetails"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the membershipRuleEvaluationDetails
|
|
* Provides a detailed anaylsis of the membership evaluation result.
|
|
*
|
|
* @param ExpressionEvaluationDetails $val The value to assign to the membershipRuleEvaluationDetails
|
|
*
|
|
* @return EvaluateDynamicMembershipResult The EvaluateDynamicMembershipResult
|
|
*/
|
|
public function setMembershipRuleEvaluationDetails($val)
|
|
{
|
|
$this->_propDict["membershipRuleEvaluationDetails"] = $val;
|
|
return $this;
|
|
}
|
|
/**
|
|
* Gets the membershipRuleEvaluationResult
|
|
* The value is true if the user or device is a member of the group. The value can also be true if a membership rule was provided and the user or device passes the rule evaluation; otherwise false.
|
|
*
|
|
* @return bool|null The membershipRuleEvaluationResult
|
|
*/
|
|
public function getMembershipRuleEvaluationResult()
|
|
{
|
|
if (array_key_exists("membershipRuleEvaluationResult", $this->_propDict)) {
|
|
return $this->_propDict["membershipRuleEvaluationResult"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the membershipRuleEvaluationResult
|
|
* The value is true if the user or device is a member of the group. The value can also be true if a membership rule was provided and the user or device passes the rule evaluation; otherwise false.
|
|
*
|
|
* @param bool $val The value of the membershipRuleEvaluationResult
|
|
*
|
|
* @return EvaluateDynamicMembershipResult
|
|
*/
|
|
public function setMembershipRuleEvaluationResult($val)
|
|
{
|
|
$this->_propDict["membershipRuleEvaluationResult"] = $val;
|
|
return $this;
|
|
}
|
|
}
|