Skip to content

Commit 99fc1ff

Browse files
authored
Merge pull request #1019 from microsoftgraph/v1.0/pipelinebuild/87606
Generated models using Typewriter
2 parents e65eb7e + 6da533d commit 99fc1ff

38 files changed

+3929
-2
lines changed

src/Model/AccessPackage.php

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,34 @@ public function setModifiedDateTime($val)
178178
}
179179

180180

181+
/**
182+
* Gets the accessPackagesIncompatibleWith
183+
*
184+
* @return array|null The accessPackagesIncompatibleWith
185+
*/
186+
public function getAccessPackagesIncompatibleWith()
187+
{
188+
if (array_key_exists("accessPackagesIncompatibleWith", $this->_propDict)) {
189+
return $this->_propDict["accessPackagesIncompatibleWith"];
190+
} else {
191+
return null;
192+
}
193+
}
194+
195+
/**
196+
* Sets the accessPackagesIncompatibleWith
197+
*
198+
* @param AccessPackage[] $val The accessPackagesIncompatibleWith
199+
*
200+
* @return AccessPackage
201+
*/
202+
public function setAccessPackagesIncompatibleWith($val)
203+
{
204+
$this->_propDict["accessPackagesIncompatibleWith"] = $val;
205+
return $this;
206+
}
207+
208+
181209
/**
182210
* Gets the assignmentPolicies
183211
*
@@ -236,4 +264,60 @@ public function setCatalog($val)
236264
return $this;
237265
}
238266

267+
268+
/**
269+
* Gets the incompatibleAccessPackages
270+
*
271+
* @return array|null The incompatibleAccessPackages
272+
*/
273+
public function getIncompatibleAccessPackages()
274+
{
275+
if (array_key_exists("incompatibleAccessPackages", $this->_propDict)) {
276+
return $this->_propDict["incompatibleAccessPackages"];
277+
} else {
278+
return null;
279+
}
280+
}
281+
282+
/**
283+
* Sets the incompatibleAccessPackages
284+
*
285+
* @param AccessPackage[] $val The incompatibleAccessPackages
286+
*
287+
* @return AccessPackage
288+
*/
289+
public function setIncompatibleAccessPackages($val)
290+
{
291+
$this->_propDict["incompatibleAccessPackages"] = $val;
292+
return $this;
293+
}
294+
295+
296+
/**
297+
* Gets the incompatibleGroups
298+
*
299+
* @return array|null The incompatibleGroups
300+
*/
301+
public function getIncompatibleGroups()
302+
{
303+
if (array_key_exists("incompatibleGroups", $this->_propDict)) {
304+
return $this->_propDict["incompatibleGroups"];
305+
} else {
306+
return null;
307+
}
308+
}
309+
310+
/**
311+
* Sets the incompatibleGroups
312+
*
313+
* @param Group[] $val The incompatibleGroups
314+
*
315+
* @return AccessPackage
316+
*/
317+
public function setIncompatibleGroups($val)
318+
{
319+
$this->_propDict["incompatibleGroups"] = $val;
320+
return $this;
321+
}
322+
239323
}

src/Model/AssignedTrainingInfo.php

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
<?php
2+
/**
3+
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
4+
*
5+
* AssignedTrainingInfo File
6+
* PHP version 7
7+
*
8+
* @category Library
9+
* @package Microsoft.Graph
10+
* @copyright (c) Microsoft Corporation. All rights reserved.
11+
* @license https://opensource.org/licenses/MIT MIT License
12+
* @link https://graph.microsoft.com
13+
*/
14+
namespace Microsoft\Graph\Model;
15+
/**
16+
* AssignedTrainingInfo class
17+
*
18+
* @category Model
19+
* @package Microsoft.Graph
20+
* @copyright (c) Microsoft Corporation. All rights reserved.
21+
* @license https://opensource.org/licenses/MIT MIT License
22+
* @link https://graph.microsoft.com
23+
*/
24+
class AssignedTrainingInfo extends Entity
25+
{
26+
/**
27+
* Gets the assignedUserCount
28+
* Number of users who were assigned the training in an attack simulation and training campaign.
29+
*
30+
* @return int|null The assignedUserCount
31+
*/
32+
public function getAssignedUserCount()
33+
{
34+
if (array_key_exists("assignedUserCount", $this->_propDict)) {
35+
return $this->_propDict["assignedUserCount"];
36+
} else {
37+
return null;
38+
}
39+
}
40+
41+
/**
42+
* Sets the assignedUserCount
43+
* Number of users who were assigned the training in an attack simulation and training campaign.
44+
*
45+
* @param int $val The value of the assignedUserCount
46+
*
47+
* @return AssignedTrainingInfo
48+
*/
49+
public function setAssignedUserCount($val)
50+
{
51+
$this->_propDict["assignedUserCount"] = $val;
52+
return $this;
53+
}
54+
/**
55+
* Gets the completedUserCount
56+
* Number of users who completed the training in an attack simulation and training campaign.
57+
*
58+
* @return int|null The completedUserCount
59+
*/
60+
public function getCompletedUserCount()
61+
{
62+
if (array_key_exists("completedUserCount", $this->_propDict)) {
63+
return $this->_propDict["completedUserCount"];
64+
} else {
65+
return null;
66+
}
67+
}
68+
69+
/**
70+
* Sets the completedUserCount
71+
* Number of users who completed the training in an attack simulation and training campaign.
72+
*
73+
* @param int $val The value of the completedUserCount
74+
*
75+
* @return AssignedTrainingInfo
76+
*/
77+
public function setCompletedUserCount($val)
78+
{
79+
$this->_propDict["completedUserCount"] = $val;
80+
return $this;
81+
}
82+
/**
83+
* Gets the displayName
84+
* Display name of the training in an attack simulation and training campaign.
85+
*
86+
* @return string|null The displayName
87+
*/
88+
public function getDisplayName()
89+
{
90+
if (array_key_exists("displayName", $this->_propDict)) {
91+
return $this->_propDict["displayName"];
92+
} else {
93+
return null;
94+
}
95+
}
96+
97+
/**
98+
* Sets the displayName
99+
* Display name of the training in an attack simulation and training campaign.
100+
*
101+
* @param string $val The value of the displayName
102+
*
103+
* @return AssignedTrainingInfo
104+
*/
105+
public function setDisplayName($val)
106+
{
107+
$this->_propDict["displayName"] = $val;
108+
return $this;
109+
}
110+
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
<?php
2+
/**
3+
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
4+
*
5+
* AttackSimulationRepeatOffender File
6+
* PHP version 7
7+
*
8+
* @category Library
9+
* @package Microsoft.Graph
10+
* @copyright (c) Microsoft Corporation. All rights reserved.
11+
* @license https://opensource.org/licenses/MIT MIT License
12+
* @link https://graph.microsoft.com
13+
*/
14+
namespace Microsoft\Graph\Model;
15+
/**
16+
* AttackSimulationRepeatOffender class
17+
*
18+
* @category Model
19+
* @package Microsoft.Graph
20+
* @copyright (c) Microsoft Corporation. All rights reserved.
21+
* @license https://opensource.org/licenses/MIT MIT License
22+
* @link https://graph.microsoft.com
23+
*/
24+
class AttackSimulationRepeatOffender extends Entity
25+
{
26+
27+
/**
28+
* Gets the attackSimulationUser
29+
* The user in an attack simulation and training campaign.
30+
*
31+
* @return AttackSimulationUser|null The attackSimulationUser
32+
*/
33+
public function getAttackSimulationUser()
34+
{
35+
if (array_key_exists("attackSimulationUser", $this->_propDict)) {
36+
if (is_a($this->_propDict["attackSimulationUser"], "\Microsoft\Graph\Model\AttackSimulationUser") || is_null($this->_propDict["attackSimulationUser"])) {
37+
return $this->_propDict["attackSimulationUser"];
38+
} else {
39+
$this->_propDict["attackSimulationUser"] = new AttackSimulationUser($this->_propDict["attackSimulationUser"]);
40+
return $this->_propDict["attackSimulationUser"];
41+
}
42+
}
43+
return null;
44+
}
45+
46+
/**
47+
* Sets the attackSimulationUser
48+
* The user in an attack simulation and training campaign.
49+
*
50+
* @param AttackSimulationUser $val The value to assign to the attackSimulationUser
51+
*
52+
* @return AttackSimulationRepeatOffender The AttackSimulationRepeatOffender
53+
*/
54+
public function setAttackSimulationUser($val)
55+
{
56+
$this->_propDict["attackSimulationUser"] = $val;
57+
return $this;
58+
}
59+
/**
60+
* Gets the repeatOffenceCount
61+
* Number of repeat offences of the user in attack simulation and training campaigns.
62+
*
63+
* @return int|null The repeatOffenceCount
64+
*/
65+
public function getRepeatOffenceCount()
66+
{
67+
if (array_key_exists("repeatOffenceCount", $this->_propDict)) {
68+
return $this->_propDict["repeatOffenceCount"];
69+
} else {
70+
return null;
71+
}
72+
}
73+
74+
/**
75+
* Sets the repeatOffenceCount
76+
* Number of repeat offences of the user in attack simulation and training campaigns.
77+
*
78+
* @param int $val The value of the repeatOffenceCount
79+
*
80+
* @return AttackSimulationRepeatOffender
81+
*/
82+
public function setRepeatOffenceCount($val)
83+
{
84+
$this->_propDict["repeatOffenceCount"] = $val;
85+
return $this;
86+
}
87+
}

src/Model/AttackSimulationRoot.php

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
<?php
2+
/**
3+
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
4+
*
5+
* AttackSimulationRoot File
6+
* PHP version 7
7+
*
8+
* @category Library
9+
* @package Microsoft.Graph
10+
* @copyright (c) Microsoft Corporation. All rights reserved.
11+
* @license https://opensource.org/licenses/MIT MIT License
12+
* @link https://graph.microsoft.com
13+
*/
14+
namespace Microsoft\Graph\Model;
15+
16+
/**
17+
* AttackSimulationRoot class
18+
*
19+
* @category Model
20+
* @package Microsoft.Graph
21+
* @copyright (c) Microsoft Corporation. All rights reserved.
22+
* @license https://opensource.org/licenses/MIT MIT License
23+
* @link https://graph.microsoft.com
24+
*/
25+
class AttackSimulationRoot extends Entity
26+
{
27+
28+
/**
29+
* Gets the simulationAutomations
30+
* Represents simulation automation created to run on a tenant.
31+
*
32+
* @return array|null The simulationAutomations
33+
*/
34+
public function getSimulationAutomations()
35+
{
36+
if (array_key_exists("simulationAutomations", $this->_propDict)) {
37+
return $this->_propDict["simulationAutomations"];
38+
} else {
39+
return null;
40+
}
41+
}
42+
43+
/**
44+
* Sets the simulationAutomations
45+
* Represents simulation automation created to run on a tenant.
46+
*
47+
* @param SimulationAutomation[] $val The simulationAutomations
48+
*
49+
* @return AttackSimulationRoot
50+
*/
51+
public function setSimulationAutomations($val)
52+
{
53+
$this->_propDict["simulationAutomations"] = $val;
54+
return $this;
55+
}
56+
57+
58+
/**
59+
* Gets the simulations
60+
* Represents an attack simulation training campaign in a tenant.
61+
*
62+
* @return array|null The simulations
63+
*/
64+
public function getSimulations()
65+
{
66+
if (array_key_exists("simulations", $this->_propDict)) {
67+
return $this->_propDict["simulations"];
68+
} else {
69+
return null;
70+
}
71+
}
72+
73+
/**
74+
* Sets the simulations
75+
* Represents an attack simulation training campaign in a tenant.
76+
*
77+
* @param Simulation[] $val The simulations
78+
*
79+
* @return AttackSimulationRoot
80+
*/
81+
public function setSimulations($val)
82+
{
83+
$this->_propDict["simulations"] = $val;
84+
return $this;
85+
}
86+
87+
}

0 commit comments

Comments
 (0)