forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppliedConditionalAccessPolicy.php
More file actions
171 lines (165 loc) · 5.52 KB
/
Copy pathAppliedConditionalAccessPolicy.php
File metadata and controls
171 lines (165 loc) · 5.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AppliedConditionalAccessPolicy 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;
/**
* AppliedConditionalAccessPolicy 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 AppliedConditionalAccessPolicy extends Entity
{
/**
* Gets the displayName
* Refers to the Name of the conditional access policy (example: 'Require MFA for Salesforce').
*
* @return string The displayName
*/
public function getDisplayName()
{
if (array_key_exists("displayName", $this->_propDict)) {
return $this->_propDict["displayName"];
} else {
return null;
}
}
/**
* Sets the displayName
* Refers to the Name of the conditional access policy (example: 'Require MFA for Salesforce').
*
* @param string $val The value of the displayName
*
* @return AppliedConditionalAccessPolicy
*/
public function setDisplayName($val)
{
$this->_propDict["displayName"] = $val;
return $this;
}
/**
* Gets the enforcedGrantControls
* Refers to the grant controls enforced by the conditional access policy (example: 'Require multi-factor authentication').
*
* @return string The enforcedGrantControls
*/
public function getEnforcedGrantControls()
{
if (array_key_exists("enforcedGrantControls", $this->_propDict)) {
return $this->_propDict["enforcedGrantControls"];
} else {
return null;
}
}
/**
* Sets the enforcedGrantControls
* Refers to the grant controls enforced by the conditional access policy (example: 'Require multi-factor authentication').
*
* @param string $val The value of the enforcedGrantControls
*
* @return AppliedConditionalAccessPolicy
*/
public function setEnforcedGrantControls($val)
{
$this->_propDict["enforcedGrantControls"] = $val;
return $this;
}
/**
* Gets the enforcedSessionControls
* Refers to the session controls enforced by the conditional access policy (example: 'Require app enforced controls').
*
* @return string The enforcedSessionControls
*/
public function getEnforcedSessionControls()
{
if (array_key_exists("enforcedSessionControls", $this->_propDict)) {
return $this->_propDict["enforcedSessionControls"];
} else {
return null;
}
}
/**
* Sets the enforcedSessionControls
* Refers to the session controls enforced by the conditional access policy (example: 'Require app enforced controls').
*
* @param string $val The value of the enforcedSessionControls
*
* @return AppliedConditionalAccessPolicy
*/
public function setEnforcedSessionControls($val)
{
$this->_propDict["enforcedSessionControls"] = $val;
return $this;
}
/**
* Gets the id
* Identifier of the conditional access policy.
*
* @return string The id
*/
public function getId()
{
if (array_key_exists("id", $this->_propDict)) {
return $this->_propDict["id"];
} else {
return null;
}
}
/**
* Sets the id
* Identifier of the conditional access policy.
*
* @param string $val The value of the id
*
* @return AppliedConditionalAccessPolicy
*/
public function setId($val)
{
$this->_propDict["id"] = $val;
return $this;
}
/**
* Gets the result
* Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (Policy isn't applied because policy conditions were not met),notEnabled (This is due to the policy in disabled state), unknown, unknownFutureValue, reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted
*
* @return AppliedConditionalAccessPolicyResult The result
*/
public function getResult()
{
if (array_key_exists("result", $this->_propDict)) {
if (is_a($this->_propDict["result"], "\Microsoft\Graph\Model\AppliedConditionalAccessPolicyResult")) {
return $this->_propDict["result"];
} else {
$this->_propDict["result"] = new AppliedConditionalAccessPolicyResult($this->_propDict["result"]);
return $this->_propDict["result"];
}
}
return null;
}
/**
* Sets the result
* Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (Policy isn't applied because policy conditions were not met),notEnabled (This is due to the policy in disabled state), unknown, unknownFutureValue, reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted
*
* @param AppliedConditionalAccessPolicyResult $val The value to assign to the result
*
* @return AppliedConditionalAccessPolicy The AppliedConditionalAccessPolicy
*/
public function setResult($val)
{
$this->_propDict["result"] = $val;
return $this;
}
}