Skip to content

Commit e95c253

Browse files
Merge pull request #414 from microsoftgraph/beta/pipelinebuild/44017
Generated beta models using Typewriter
2 parents cdb06e0 + 35759af commit e95c253

13 files changed

Lines changed: 910 additions & 13 deletions

src/Beta/Microsoft/Graph/Model/AppCatalogs.php

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,36 @@
2222
* @license https://opensource.org/licenses/MIT MIT License
2323
* @link https://graph.microsoft.com
2424
*/
25-
class AppCatalogs extends
25+
class AppCatalogs implements \JsonSerializable
2626
{
27+
/**
28+
* The array of properties available
29+
* to the model
30+
*
31+
* @var array(string => string)
32+
*/
33+
protected $_propDict;
34+
35+
/**
36+
* Construct a new AppCatalogs
37+
*
38+
* @param array $propDict A list of properties to set
39+
*/
40+
function __construct($propDict = array())
41+
{
42+
$this->_propDict = $propDict;
43+
}
44+
45+
/**
46+
* Gets the property dictionary of the AppCatalogs
47+
*
48+
* @return array The list of properties
49+
*/
50+
public function getProperties()
51+
{
52+
return $this->_propDict;
53+
}
54+
2755

2856
/**
2957
* Gets the teamsApps
@@ -52,4 +80,45 @@ public function setTeamsApps($val)
5280
return $this;
5381
}
5482

83+
/**
84+
* Gets the ODataType
85+
*
86+
* @return string The ODataType
87+
*/
88+
public function getODataType()
89+
{
90+
return $this->_propDict["@odata.type"];
91+
}
92+
93+
/**
94+
* Sets the ODataType
95+
*
96+
* @param string The ODataType
97+
*
98+
* @return Entity
99+
*/
100+
public function setODataType($val)
101+
{
102+
$this->_propDict["@odata.type"] = $val;
103+
return $this;
104+
}
105+
106+
/**
107+
* Serializes the object by property array
108+
* Manually serialize DateTime into RFC3339 format
109+
*
110+
* @return array The list of properties
111+
*/
112+
public function jsonSerialize()
113+
{
114+
$serializableProperties = $this->getProperties();
115+
foreach ($serializableProperties as $property => $val) {
116+
if (is_a($val, "\DateTime")) {
117+
$serializableProperties[$property] = $val->format(\DateTime::RFC3339);
118+
} else if (is_a($val, "\Microsoft\Graph\Core\Enum")) {
119+
$serializableProperties[$property] = $val->value();
120+
}
121+
}
122+
return $serializableProperties;
123+
}
55124
}

src/Beta/Microsoft/Graph/Model/CommsApplication.php

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,36 @@
2222
* @license https://opensource.org/licenses/MIT MIT License
2323
* @link https://graph.microsoft.com
2424
*/
25-
class CommsApplication extends
25+
class CommsApplication implements \JsonSerializable
2626
{
27+
/**
28+
* The array of properties available
29+
* to the model
30+
*
31+
* @var array(string => string)
32+
*/
33+
protected $_propDict;
34+
35+
/**
36+
* Construct a new CommsApplication
37+
*
38+
* @param array $propDict A list of properties to set
39+
*/
40+
function __construct($propDict = array())
41+
{
42+
$this->_propDict = $propDict;
43+
}
44+
45+
/**
46+
* Gets the property dictionary of the CommsApplication
47+
*
48+
* @return array The list of properties
49+
*/
50+
public function getProperties()
51+
{
52+
return $this->_propDict;
53+
}
54+
2755

2856
/**
2957
* Gets the calls
@@ -80,4 +108,45 @@ public function setOnlineMeetings($val)
80108
return $this;
81109
}
82110

111+
/**
112+
* Gets the ODataType
113+
*
114+
* @return string The ODataType
115+
*/
116+
public function getODataType()
117+
{
118+
return $this->_propDict["@odata.type"];
119+
}
120+
121+
/**
122+
* Sets the ODataType
123+
*
124+
* @param string The ODataType
125+
*
126+
* @return Entity
127+
*/
128+
public function setODataType($val)
129+
{
130+
$this->_propDict["@odata.type"] = $val;
131+
return $this;
132+
}
133+
134+
/**
135+
* Serializes the object by property array
136+
* Manually serialize DateTime into RFC3339 format
137+
*
138+
* @return array The list of properties
139+
*/
140+
public function jsonSerialize()
141+
{
142+
$serializableProperties = $this->getProperties();
143+
foreach ($serializableProperties as $property => $val) {
144+
if (is_a($val, "\DateTime")) {
145+
$serializableProperties[$property] = $val->format(\DateTime::RFC3339);
146+
} else if (is_a($val, "\Microsoft\Graph\Core\Enum")) {
147+
$serializableProperties[$property] = $val->value();
148+
}
149+
}
150+
return $serializableProperties;
151+
}
83152
}

src/Beta/Microsoft/Graph/Model/Compliance.php

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,36 @@
2222
* @license https://opensource.org/licenses/MIT MIT License
2323
* @link https://graph.microsoft.com
2424
*/
25-
class Compliance extends
25+
class Compliance implements \JsonSerializable
2626
{
27+
/**
28+
* The array of properties available
29+
* to the model
30+
*
31+
* @var array(string => string)
32+
*/
33+
protected $_propDict;
34+
35+
/**
36+
* Construct a new Compliance
37+
*
38+
* @param array $propDict A list of properties to set
39+
*/
40+
function __construct($propDict = array())
41+
{
42+
$this->_propDict = $propDict;
43+
}
44+
45+
/**
46+
* Gets the property dictionary of the Compliance
47+
*
48+
* @return array The list of properties
49+
*/
50+
public function getProperties()
51+
{
52+
return $this->_propDict;
53+
}
54+
2755
/**
2856
* Gets the ediscovery
2957
*
@@ -55,4 +83,45 @@ public function setEdiscovery($val)
5583
return $this;
5684
}
5785

86+
/**
87+
* Gets the ODataType
88+
*
89+
* @return string The ODataType
90+
*/
91+
public function getODataType()
92+
{
93+
return $this->_propDict["@odata.type"];
94+
}
95+
96+
/**
97+
* Sets the ODataType
98+
*
99+
* @param string The ODataType
100+
*
101+
* @return Entity
102+
*/
103+
public function setODataType($val)
104+
{
105+
$this->_propDict["@odata.type"] = $val;
106+
return $this;
107+
}
108+
109+
/**
110+
* Serializes the object by property array
111+
* Manually serialize DateTime into RFC3339 format
112+
*
113+
* @return array The list of properties
114+
*/
115+
public function jsonSerialize()
116+
{
117+
$serializableProperties = $this->getProperties();
118+
foreach ($serializableProperties as $property => $val) {
119+
if (is_a($val, "\DateTime")) {
120+
$serializableProperties[$property] = $val->format(\DateTime::RFC3339);
121+
} else if (is_a($val, "\Microsoft\Graph\Core\Enum")) {
122+
$serializableProperties[$property] = $val->value();
123+
}
124+
}
125+
return $serializableProperties;
126+
}
58127
}

src/Beta/Microsoft/Graph/Model/External.php

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,36 @@
2222
* @license https://opensource.org/licenses/MIT MIT License
2323
* @link https://graph.microsoft.com
2424
*/
25-
class External extends
25+
class External implements \JsonSerializable
2626
{
27+
/**
28+
* The array of properties available
29+
* to the model
30+
*
31+
* @var array(string => string)
32+
*/
33+
protected $_propDict;
34+
35+
/**
36+
* Construct a new External
37+
*
38+
* @param array $propDict A list of properties to set
39+
*/
40+
function __construct($propDict = array())
41+
{
42+
$this->_propDict = $propDict;
43+
}
44+
45+
/**
46+
* Gets the property dictionary of the External
47+
*
48+
* @return array The list of properties
49+
*/
50+
public function getProperties()
51+
{
52+
return $this->_propDict;
53+
}
54+
2755

2856
/**
2957
* Gets the connections
@@ -52,4 +80,45 @@ public function setConnections($val)
5280
return $this;
5381
}
5482

83+
/**
84+
* Gets the ODataType
85+
*
86+
* @return string The ODataType
87+
*/
88+
public function getODataType()
89+
{
90+
return $this->_propDict["@odata.type"];
91+
}
92+
93+
/**
94+
* Sets the ODataType
95+
*
96+
* @param string The ODataType
97+
*
98+
* @return Entity
99+
*/
100+
public function setODataType($val)
101+
{
102+
$this->_propDict["@odata.type"] = $val;
103+
return $this;
104+
}
105+
106+
/**
107+
* Serializes the object by property array
108+
* Manually serialize DateTime into RFC3339 format
109+
*
110+
* @return array The list of properties
111+
*/
112+
public function jsonSerialize()
113+
{
114+
$serializableProperties = $this->getProperties();
115+
foreach ($serializableProperties as $property => $val) {
116+
if (is_a($val, "\DateTime")) {
117+
$serializableProperties[$property] = $val->format(\DateTime::RFC3339);
118+
} else if (is_a($val, "\Microsoft\Graph\Core\Enum")) {
119+
$serializableProperties[$property] = $val->value();
120+
}
121+
}
122+
return $serializableProperties;
123+
}
55124
}

0 commit comments

Comments
 (0)