Skip to content

Commit e5e439f

Browse files
author
Caitlin Bales (MSFT)
authored
Merge pull request #36 from microsoftgraph/august-update
August update for Graph changes through 8/4
2 parents 74c4176 + 91b71e8 commit e5e439f

65 files changed

Lines changed: 1098 additions & 61 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CONTRIBUTING.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Contributing to the Microsoft Graph PHP SDK
2+
Thanks for considering making a contribution! Read over our guidelines and we will do our best to see your PRs merged successfully.
3+
4+
**NOTE**: A signed a contribution license agreement is required for all contributions and is checked automatically on new pull requests. You will be asked to read and sign the agreement https://cla.microsoft.com/ after submitting a request to this repository.
5+
6+
There are a few different recommended paths to get contributions into the released version of this library.
7+
8+
## File issues
9+
The best way to get started with a contribution is to start a dialog with us. Sometimes features will be under development or out of scope for this library and it's best to check before starting work on contribution, especially for large work items.
10+
11+
## Pull requests
12+
If you are making documentation changes, feel free to submit a pull request against the **master** branch. All other pull requests should be submitted against the **dev** branch or a specific feature branch. The master branch is intended to represent the code released in the most-recent composer package.
13+
14+
When a new package is about to be released, changes in dev will be merged into master. The package will be generated from master.
15+
16+
Some things to note about this project:
17+
18+
### How the library is built
19+
The PHP SDK has a handwritten set of core files and a folder of autogenerated models. These models are generated using the [MSGraph SDK Code Generator](https://github.com/microsoftgraph/MSGraph-SDK-Code-Generator). **Changes made to the ```Models``` folder will be overwritten** the next time the generator is run.
20+
21+
If you would like to make changes to the models, you can either file an issue or make a PR in the [MSGraph SDK Code Generator](https://github.com/microsoftgraph/MSGraph-SDK-Code-Generator) to the [templates](https://github.com/microsoftgraph/MSGraph-SDK-Code-Generator/tree/master/Templates/PHP/Model). Although there is a lot of logic in the generator, the code used for PHP is fairly minimal.
22+
23+
### How the generator works
24+
You can view the [README](https://github.com/microsoftgraph/MSGraph-SDK-Code-Generator/blob/master/README.md) for a full run-through of its capabilities.
25+
26+
For the purposes of the PHP library, the generator runs through an OData-compliant metadata file published by Microsoft Graph (https://graph.microsoft.com/v1.0/$metadata) and builds up a list of models. These models are converted into PHP code using T4 templates, which use C# to programmatically define what PHP code is written to the file.
27+
28+
### When new features are added to the library
29+
Generation happens as part of a manual process that occurs once a significant change or set of changes has been added to the Graph. This may include:
30+
- A new workload comes to v1.0 of Graph (Microsoft Teams, Batching, etc.)
31+
- There is significant addition of functionality (Delta Queries, etc.)
32+
33+
However, this is evaluated on a case-by-case basis. If the library is missing v1.0 Graph functionality that you wish to utilize, please [file an issue](https://github.com/microsoftgraph/msgraph-sdk-php/issues).
34+
35+
We do our best to prevent breaking changes from being introduced into the library during this process. If you find a breaking change, please file an issue and we will work to get this resolved ASAP.
36+
37+

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,16 @@ tests to do not restore state of the account.*
9696

9797
* [Examples](https://github.com/microsoftgraph/msgraph-sdk-php/wiki/Example-calls)
9898

99-
* [Microsoft Graph website](https://graph.microsoft.io)
99+
* [Microsoft Graph website](https://developer.microsoft.com/en-us/graph/)
100100

101101
## Issues
102102

103103
View or log issues on the [Issues](https://github.com/microsoftgraph/msgraph-sdk-php/issues) tab in the repo.
104104

105+
## Contribute
106+
107+
Please read our [Contributing](https://github.com/microsoftgraph/msgraph-sdk-php/blob/master/CONTRIBUTING.md) guidelines carefully for advice on how to contribute to this repo.
108+
105109
## Copyright and license
106110

107111
Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT [license](LICENSE).

src/Core/GraphConstants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class GraphConstants
2424
const REST_ENDPOINT = "https://graph.microsoft.com/";
2525

2626
// Define HTTP request constants
27-
const SDK_VERSION = "1.0.0";
27+
const SDK_VERSION = "1.0.3";
2828

2929
// Define error constants
3030
const MAX_PAGE_SIZE = 999;

src/Model/BaseItem.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class BaseItem extends Entity
2828
{
2929
/**
3030
* Gets the createdBy
31+
* Identity of the user, device, or application which created the item. Read-only.
3132
*
3233
* @return IdentitySet The createdBy
3334
*/
@@ -46,6 +47,7 @@ public function getCreatedBy()
4647

4748
/**
4849
* Sets the createdBy
50+
* Identity of the user, device, or application which created the item. Read-only.
4951
*
5052
* @param IdentitySet $val The createdBy
5153
*
@@ -59,6 +61,7 @@ public function setCreatedBy($val)
5961

6062
/**
6163
* Gets the createdDateTime
64+
* Date and time of item creation. Read-only.
6265
*
6366
* @return \DateTime The createdDateTime
6467
*/
@@ -77,6 +80,7 @@ public function getCreatedDateTime()
7780

7881
/**
7982
* Sets the createdDateTime
83+
* Date and time of item creation. Read-only.
8084
*
8185
* @param \DateTime $val The createdDateTime
8286
*
@@ -117,6 +121,7 @@ public function setDescription($val)
117121

118122
/**
119123
* Gets the eTag
124+
* ETag for the item. Read-only.
120125
*
121126
* @return string The eTag
122127
*/
@@ -131,6 +136,7 @@ public function getETag()
131136

132137
/**
133138
* Sets the eTag
139+
* ETag for the item. Read-only.
134140
*
135141
* @param string $val The eTag
136142
*
@@ -144,6 +150,7 @@ public function setETag($val)
144150

145151
/**
146152
* Gets the lastModifiedBy
153+
* Identity of the user, device, and application which last modified the item. Read-only.
147154
*
148155
* @return IdentitySet The lastModifiedBy
149156
*/
@@ -162,6 +169,7 @@ public function getLastModifiedBy()
162169

163170
/**
164171
* Sets the lastModifiedBy
172+
* Identity of the user, device, and application which last modified the item. Read-only.
165173
*
166174
* @param IdentitySet $val The lastModifiedBy
167175
*
@@ -175,6 +183,7 @@ public function setLastModifiedBy($val)
175183

176184
/**
177185
* Gets the lastModifiedDateTime
186+
* Date and time the item was last modified. Read-only.
178187
*
179188
* @return \DateTime The lastModifiedDateTime
180189
*/
@@ -193,6 +202,7 @@ public function getLastModifiedDateTime()
193202

194203
/**
195204
* Sets the lastModifiedDateTime
205+
* Date and time the item was last modified. Read-only.
196206
*
197207
* @param \DateTime $val The lastModifiedDateTime
198208
*
@@ -206,6 +216,7 @@ public function setLastModifiedDateTime($val)
206216

207217
/**
208218
* Gets the name
219+
* The name of the item. Read-write.
209220
*
210221
* @return string The name
211222
*/
@@ -220,6 +231,7 @@ public function getName()
220231

221232
/**
222233
* Sets the name
234+
* The name of the item. Read-write.
223235
*
224236
* @param string $val The name
225237
*
@@ -233,6 +245,7 @@ public function setName($val)
233245

234246
/**
235247
* Gets the parentReference
248+
* Parent information, if the item has a parent. Read-write.
236249
*
237250
* @return ItemReference The parentReference
238251
*/
@@ -251,6 +264,7 @@ public function getParentReference()
251264

252265
/**
253266
* Sets the parentReference
267+
* Parent information, if the item has a parent. Read-write.
254268
*
255269
* @param ItemReference $val The parentReference
256270
*
@@ -264,6 +278,7 @@ public function setParentReference($val)
264278

265279
/**
266280
* Gets the webUrl
281+
* URL that displays the resource in the browser. Read-only.
267282
*
268283
* @return string The webUrl
269284
*/
@@ -278,6 +293,7 @@ public function getWebUrl()
278293

279294
/**
280295
* Sets the webUrl
296+
* URL that displays the resource in the browser. Read-only.
281297
*
282298
* @param string $val The webUrl
283299
*

src/Model/Calendar.php

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,118 @@ public function setChangeKey($val)
117117
return $this;
118118
}
119119

120+
/**
121+
* Gets the canShare
122+
*
123+
* @return bool The canShare
124+
*/
125+
public function getCanShare()
126+
{
127+
if (array_key_exists("canShare", $this->_propDict)) {
128+
return $this->_propDict["canShare"];
129+
} else {
130+
return null;
131+
}
132+
}
133+
134+
/**
135+
* Sets the canShare
136+
*
137+
* @param bool $val The canShare
138+
*
139+
* @return Calendar
140+
*/
141+
public function setCanShare($val)
142+
{
143+
$this->_propDict["canShare"] = boolval($val);
144+
return $this;
145+
}
146+
147+
/**
148+
* Gets the canViewPrivateItems
149+
*
150+
* @return bool The canViewPrivateItems
151+
*/
152+
public function getCanViewPrivateItems()
153+
{
154+
if (array_key_exists("canViewPrivateItems", $this->_propDict)) {
155+
return $this->_propDict["canViewPrivateItems"];
156+
} else {
157+
return null;
158+
}
159+
}
160+
161+
/**
162+
* Sets the canViewPrivateItems
163+
*
164+
* @param bool $val The canViewPrivateItems
165+
*
166+
* @return Calendar
167+
*/
168+
public function setCanViewPrivateItems($val)
169+
{
170+
$this->_propDict["canViewPrivateItems"] = boolval($val);
171+
return $this;
172+
}
173+
174+
/**
175+
* Gets the canEdit
176+
*
177+
* @return bool The canEdit
178+
*/
179+
public function getCanEdit()
180+
{
181+
if (array_key_exists("canEdit", $this->_propDict)) {
182+
return $this->_propDict["canEdit"];
183+
} else {
184+
return null;
185+
}
186+
}
187+
188+
/**
189+
* Sets the canEdit
190+
*
191+
* @param bool $val The canEdit
192+
*
193+
* @return Calendar
194+
*/
195+
public function setCanEdit($val)
196+
{
197+
$this->_propDict["canEdit"] = boolval($val);
198+
return $this;
199+
}
200+
201+
/**
202+
* Gets the owner
203+
*
204+
* @return EmailAddress The owner
205+
*/
206+
public function getOwner()
207+
{
208+
if (array_key_exists("owner", $this->_propDict)) {
209+
if (is_a($this->_propDict["owner"], "Microsoft\Graph\Model\EmailAddress")) {
210+
return $this->_propDict["owner"];
211+
} else {
212+
$this->_propDict["owner"] = new EmailAddress($this->_propDict["owner"]);
213+
return $this->_propDict["owner"];
214+
}
215+
}
216+
return null;
217+
}
218+
219+
/**
220+
* Sets the owner
221+
*
222+
* @param EmailAddress $val The owner
223+
*
224+
* @return Calendar
225+
*/
226+
public function setOwner($val)
227+
{
228+
$this->_propDict["owner"] = $val;
229+
return $this;
230+
}
231+
120232

121233
/**
122234
* Gets the events

src/Model/Device.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ public function setRegisteredUsers($val)
527527

528528
/**
529529
* Gets the extensions
530+
* The collection of open extensions defined for the device. Read-only. Nullable.
530531
*
531532
* @return array The extensions
532533
*/
@@ -541,6 +542,7 @@ public function getExtensions()
541542

542543
/**
543544
* Sets the extensions
545+
* The collection of open extensions defined for the device. Read-only. Nullable.
544546
*
545547
* @param Extension $val The extensions
546548
*

0 commit comments

Comments
 (0)