Skip to content

Commit a7cbd96

Browse files
authored
Merge pull request #553 from microsoftgraph/dev
Release 1.35.0
2 parents 5200f36 + 660556b commit a7cbd96

593 files changed

Lines changed: 9776 additions & 1261 deletions

File tree

Some content is hidden

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

.github/workflows/pr-validation.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) Microsoft Corporation. All rights reserved.
22
# Licensed under the MIT License.
33

4-
name: "validate pull request"
4+
name: "Validate Pull Request"
55

66
on:
77
push:
@@ -20,12 +20,25 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@v2.3.4
23-
- name: composer validate
23+
- name: Validate composer file
2424
run: |
2525
composer validate
26-
- name: composer install
26+
- name: Install dependencies
2727
run: |
2828
composer install
2929
- name: run tests
3030
run : |
3131
vendor/bin/phpunit --exclude-group functional
32+
run-static-analysis:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v2.3.4
36+
- name: Validate composer file
37+
run: |
38+
composer validate
39+
- name: Install dependencies
40+
run: |
41+
composer install
42+
- name: Run static analysis
43+
run: |
44+
vendor/bin/phpstan analyse --memory-limit=1500M --error-format=github

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ You can install the PHP SDK with Composer, either run `composer require microsof
1111
```
1212
{
1313
"require": {
14-
"microsoft/microsoft-graph": "^1.34.0"
14+
"microsoft/microsoft-graph": "^1.35.0"
1515
}
1616
}
1717
```

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414
"require": {
1515
"php": "^8.0 || ^7.3",
1616
"guzzlehttp/guzzle": "^6.0 || ^7.0",
17+
"guzzlehttp/psr7": "^2.0",
1718
"ext-json": "*"
1819
},
1920
"require-dev": {
2021
"phpunit/phpunit": "^8.0 || ^9.0",
21-
"mikey179/vfsstream": "^1.2"
22+
"mikey179/vfsstream": "^1.2",
23+
"phpstan/phpstan": "^0.12.90"
2224
},
2325
"autoload": {
2426
"psr-4": {

phpstan.neon

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
parameters:
2+
level: 1
3+
polluteScopeWithAlwaysIterableForeach: false
4+
polluteScopeWithLoopInitialAssignments: false
5+
paths:
6+
- src
7+
- tests
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
* PstnCallDurationSource 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 Beta\Microsoft\Graph\CallRecords\Model;
15+
16+
use Microsoft\Graph\Core\Enum;
17+
18+
/**
19+
* PstnCallDurationSource class
20+
*
21+
* @category Model
22+
* @package Microsoft.Graph
23+
* @copyright (c) Microsoft Corporation. All rights reserved.
24+
* @license https://opensource.org/licenses/MIT MIT License
25+
* @link https://graph.microsoft.com
26+
*/
27+
class PstnCallDurationSource extends Enum
28+
{
29+
/**
30+
* The Enum PstnCallDurationSource
31+
*/
32+
const MICROSOFT = "microsoft";
33+
const OPERATOR = "operator";
34+
}

src/Beta/Microsoft/Graph/CallRecords/Model/PstnCallLogRow.php

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,37 @@
2323
*/
2424
class PstnCallLogRow extends \Beta\Microsoft\Graph\Model\Entity
2525
{
26+
27+
/**
28+
* Gets the callDurationSource
29+
*
30+
* @return PstnCallDurationSource|null The callDurationSource
31+
*/
32+
public function getCallDurationSource()
33+
{
34+
if (array_key_exists("callDurationSource", $this->_propDict)) {
35+
if (is_a($this->_propDict["callDurationSource"], "\Beta\Microsoft\Graph\CallRecords\Model\PstnCallDurationSource") || is_null($this->_propDict["callDurationSource"])) {
36+
return $this->_propDict["callDurationSource"];
37+
} else {
38+
$this->_propDict["callDurationSource"] = new PstnCallDurationSource($this->_propDict["callDurationSource"]);
39+
return $this->_propDict["callDurationSource"];
40+
}
41+
}
42+
return null;
43+
}
44+
45+
/**
46+
* Sets the callDurationSource
47+
*
48+
* @param PstnCallDurationSource $val The value to assign to the callDurationSource
49+
*
50+
* @return PstnCallLogRow The PstnCallLogRow
51+
*/
52+
public function setCallDurationSource($val)
53+
{
54+
$this->_propDict["callDurationSource"] = $val;
55+
return $this;
56+
}
2657
/**
2758
* Gets the calleeNumber
2859
*
@@ -428,6 +459,32 @@ public function setLicenseCapability($val)
428459
$this->_propDict["licenseCapability"] = $val;
429460
return $this;
430461
}
462+
/**
463+
* Gets the operator
464+
*
465+
* @return string|null The operator
466+
*/
467+
public function getOperator()
468+
{
469+
if (array_key_exists("operator", $this->_propDict)) {
470+
return $this->_propDict["operator"];
471+
} else {
472+
return null;
473+
}
474+
}
475+
476+
/**
477+
* Sets the operator
478+
*
479+
* @param string $val The value of the operator
480+
*
481+
* @return PstnCallLogRow
482+
*/
483+
public function setOperator($val)
484+
{
485+
$this->_propDict["operator"] = $val;
486+
return $this;
487+
}
431488

432489
/**
433490
* Gets the startDateTime

src/Beta/Microsoft/Graph/ExternalConnectors/Model/Acl.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class Acl extends \Beta\Microsoft\Graph\Model\Entity
2626

2727
/**
2828
* Gets the accessType
29+
* The access granted to the identity. Possible values are: grant, deny.
2930
*
3031
* @return AccessType|null The accessType
3132
*/
@@ -44,6 +45,7 @@ public function getAccessType()
4445

4546
/**
4647
* Sets the accessType
48+
* The access granted to the identity. Possible values are: grant, deny.
4749
*
4850
* @param AccessType $val The value to assign to the accessType
4951
*
@@ -57,6 +59,7 @@ public function setAccessType($val)
5759

5860
/**
5961
* Gets the identitySource
62+
* The source of identity. Possible values are azureActiveDirectory or external.
6063
*
6164
* @return IdentitySourceType|null The identitySource
6265
*/
@@ -75,6 +78,7 @@ public function getIdentitySource()
7578

7679
/**
7780
* Sets the identitySource
81+
* The source of identity. Possible values are azureActiveDirectory or external.
7882
*
7983
* @param IdentitySourceType $val The value to assign to the identitySource
8084
*
@@ -88,6 +92,7 @@ public function setIdentitySource($val)
8892

8993
/**
9094
* Gets the type
95+
* The type of identity. Possible values are: user, group, everyone, everyoneExceptGuests if the identitySource is azureActiveDirectory and just group if the identitySource is external.
9196
*
9297
* @return AclType|null The type
9398
*/
@@ -106,6 +111,7 @@ public function getType()
106111

107112
/**
108113
* Sets the type
114+
* The type of identity. Possible values are: user, group, everyone, everyoneExceptGuests if the identitySource is azureActiveDirectory and just group if the identitySource is external.
109115
*
110116
* @param AclType $val The value to assign to the type
111117
*
@@ -118,6 +124,7 @@ public function setType($val)
118124
}
119125
/**
120126
* Gets the value
127+
* The unique identifer of the identity. In case of Azure Active Directory identities, value is set to the object identifier of the user, group or tenant for types user, group and everyone (and everyoneExceptGuests) respectively. In case of external groups value is set to the ID of the externalGroup.
121128
*
122129
* @return string|null The value
123130
*/
@@ -132,6 +139,7 @@ public function getValue()
132139

133140
/**
134141
* Sets the value
142+
* The unique identifer of the identity. In case of Azure Active Directory identities, value is set to the object identifier of the user, group or tenant for types user, group and everyone (and everyoneExceptGuests) respectively. In case of external groups value is set to the ID of the externalGroup.
135143
*
136144
* @param string $val The value of the value
137145
*

src/Beta/Microsoft/Graph/ExternalConnectors/Model/AclType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ class AclType extends Enum
3333
const GROUP = "group";
3434
const EVERYONE = "everyone";
3535
const EVERYONE_EXCEPT_GUESTS = "everyoneExceptGuests";
36+
const EXTERNAL_GROUP = "externalGroup";
3637
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
3738
}

src/Beta/Microsoft/Graph/ExternalConnectors/Model/Configuration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class Configuration extends \Beta\Microsoft\Graph\Model\Entity
2525
{
2626
/**
2727
* Gets the authorizedAppIds
28+
* A collection of application IDs for registered Azure Active Directory apps that are allowed to manage the externalConnection and to index content in the externalConnection.
2829
*
2930
* @return string|null The authorizedAppIds
3031
*/
@@ -39,6 +40,7 @@ public function getAuthorizedAppIds()
3940

4041
/**
4142
* Sets the authorizedAppIds
43+
* A collection of application IDs for registered Azure Active Directory apps that are allowed to manage the externalConnection and to index content in the externalConnection.
4244
*
4345
* @param string $val The value of the authorizedAppIds
4446
*

src/Beta/Microsoft/Graph/ExternalConnectors/Model/ConnectionOperation.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class ConnectionOperation extends \Beta\Microsoft\Graph\Model\Entity
2626
{
2727
/**
2828
* Gets the error
29+
* If status is failed, provides more information about the error that caused the failure.
2930
*
3031
* @return \Beta\Microsoft\Graph\Model\PublicError|null The error
3132
*/
@@ -44,6 +45,7 @@ public function getError()
4445

4546
/**
4647
* Sets the error
48+
* If status is failed, provides more information about the error that caused the failure.
4749
*
4850
* @param \Beta\Microsoft\Graph\Model\PublicError $val The error
4951
*
@@ -57,6 +59,7 @@ public function setError($val)
5759

5860
/**
5961
* Gets the status
62+
* Indicates the status of the asynchronous operation. Possible values are: unspecified, inprogress, completed, failed.
6063
*
6164
* @return ConnectionOperationStatus|null The status
6265
*/
@@ -75,6 +78,7 @@ public function getStatus()
7578

7679
/**
7780
* Sets the status
81+
* Indicates the status of the asynchronous operation. Possible values are: unspecified, inprogress, completed, failed.
7882
*
7983
* @param ConnectionOperationStatus $val The status
8084
*

0 commit comments

Comments
 (0)