forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccessPackageResourceRoleScope.php
More file actions
122 lines (115 loc) · 3.7 KB
/
Copy pathAccessPackageResourceRoleScope.php
File metadata and controls
122 lines (115 loc) · 3.7 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
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AccessPackageResourceRoleScope 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;
/**
* AccessPackageResourceRoleScope 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 AccessPackageResourceRoleScope extends Entity
{
/**
* Gets the createdDateTime
* The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
*
* @return \DateTime|null The createdDateTime
*/
public function getCreatedDateTime()
{
if (array_key_exists("createdDateTime", $this->_propDict)) {
if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) {
return $this->_propDict["createdDateTime"];
} else {
$this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]);
return $this->_propDict["createdDateTime"];
}
}
return null;
}
/**
* Sets the createdDateTime
* The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
*
* @param \DateTime $val The createdDateTime
*
* @return AccessPackageResourceRoleScope
*/
public function setCreatedDateTime($val)
{
$this->_propDict["createdDateTime"] = $val;
return $this;
}
/**
* Gets the role
*
* @return AccessPackageResourceRole|null The role
*/
public function getRole()
{
if (array_key_exists("role", $this->_propDict)) {
if (is_a($this->_propDict["role"], "\Microsoft\Graph\Model\AccessPackageResourceRole") || is_null($this->_propDict["role"])) {
return $this->_propDict["role"];
} else {
$this->_propDict["role"] = new AccessPackageResourceRole($this->_propDict["role"]);
return $this->_propDict["role"];
}
}
return null;
}
/**
* Sets the role
*
* @param AccessPackageResourceRole $val The role
*
* @return AccessPackageResourceRoleScope
*/
public function setRole($val)
{
$this->_propDict["role"] = $val;
return $this;
}
/**
* Gets the scope
*
* @return AccessPackageResourceScope|null The scope
*/
public function getScope()
{
if (array_key_exists("scope", $this->_propDict)) {
if (is_a($this->_propDict["scope"], "\Microsoft\Graph\Model\AccessPackageResourceScope") || is_null($this->_propDict["scope"])) {
return $this->_propDict["scope"];
} else {
$this->_propDict["scope"] = new AccessPackageResourceScope($this->_propDict["scope"]);
return $this->_propDict["scope"];
}
}
return null;
}
/**
* Sets the scope
*
* @param AccessPackageResourceScope $val The scope
*
* @return AccessPackageResourceRoleScope
*/
public function setScope($val)
{
$this->_propDict["scope"] = $val;
return $this;
}
}