1
0
Fork 0

Update libraries and add new ones

master
Brie Bruns 2023-09-30 18:46:19 -06:00
parent 9de74f9b16
commit 87e49efa03
910 changed files with 33114 additions and 4508 deletions

64
composer.lock generated
View File

@ -8,22 +8,22 @@
"packages": [
{
"name": "guzzlehttp/guzzle",
"version": "7.7.0",
"version": "7.8.0",
"source": {
"type": "git",
"url": "https://github.com/guzzle/guzzle.git",
"reference": "fb7566caccf22d74d1ab270de3551f72a58399f5"
"reference": "1110f66a6530a40fe7aea0378fe608ee2b2248f9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/fb7566caccf22d74d1ab270de3551f72a58399f5",
"reference": "fb7566caccf22d74d1ab270de3551f72a58399f5",
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/1110f66a6530a40fe7aea0378fe608ee2b2248f9",
"reference": "1110f66a6530a40fe7aea0378fe608ee2b2248f9",
"shasum": ""
},
"require": {
"ext-json": "*",
"guzzlehttp/promises": "^1.5.3 || ^2.0",
"guzzlehttp/psr7": "^1.9.1 || ^2.4.5",
"guzzlehttp/promises": "^1.5.3 || ^2.0.1",
"guzzlehttp/psr7": "^1.9.1 || ^2.5.1",
"php": "^7.2.5 || ^8.0",
"psr/http-client": "^1.0",
"symfony/deprecation-contracts": "^2.2 || ^3.0"
@ -114,7 +114,7 @@
],
"support": {
"issues": "https://github.com/guzzle/guzzle/issues",
"source": "https://github.com/guzzle/guzzle/tree/7.7.0"
"source": "https://github.com/guzzle/guzzle/tree/7.8.0"
},
"funding": [
{
@ -130,20 +130,20 @@
"type": "tidelift"
}
],
"time": "2023-05-21T14:04:53+00:00"
"time": "2023-08-27T10:20:53+00:00"
},
{
"name": "guzzlehttp/promises",
"version": "2.0.0",
"version": "2.0.1",
"source": {
"type": "git",
"url": "https://github.com/guzzle/promises.git",
"reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6"
"reference": "111166291a0f8130081195ac4556a5587d7f1b5d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/promises/zipball/3a494dc7dc1d7d12e511890177ae2d0e6c107da6",
"reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6",
"url": "https://api.github.com/repos/guzzle/promises/zipball/111166291a0f8130081195ac4556a5587d7f1b5d",
"reference": "111166291a0f8130081195ac4556a5587d7f1b5d",
"shasum": ""
},
"require": {
@ -197,7 +197,7 @@
],
"support": {
"issues": "https://github.com/guzzle/promises/issues",
"source": "https://github.com/guzzle/promises/tree/2.0.0"
"source": "https://github.com/guzzle/promises/tree/2.0.1"
},
"funding": [
{
@ -213,20 +213,20 @@
"type": "tidelift"
}
],
"time": "2023-05-21T13:50:22+00:00"
"time": "2023-08-03T15:11:55+00:00"
},
{
"name": "guzzlehttp/psr7",
"version": "2.5.0",
"version": "2.6.1",
"source": {
"type": "git",
"url": "https://github.com/guzzle/psr7.git",
"reference": "b635f279edd83fc275f822a1188157ffea568ff6"
"reference": "be45764272e8873c72dbe3d2edcfdfcc3bc9f727"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/psr7/zipball/b635f279edd83fc275f822a1188157ffea568ff6",
"reference": "b635f279edd83fc275f822a1188157ffea568ff6",
"url": "https://api.github.com/repos/guzzle/psr7/zipball/be45764272e8873c72dbe3d2edcfdfcc3bc9f727",
"reference": "be45764272e8873c72dbe3d2edcfdfcc3bc9f727",
"shasum": ""
},
"require": {
@ -313,7 +313,7 @@
],
"support": {
"issues": "https://github.com/guzzle/psr7/issues",
"source": "https://github.com/guzzle/psr7/tree/2.5.0"
"source": "https://github.com/guzzle/psr7/tree/2.6.1"
},
"funding": [
{
@ -329,20 +329,20 @@
"type": "tidelift"
}
],
"time": "2023-04-17T16:11:26+00:00"
"time": "2023-08-27T10:13:57+00:00"
},
{
"name": "microsoft/microsoft-graph",
"version": "1.102.0",
"version": "1.107.0",
"source": {
"type": "git",
"url": "https://github.com/microsoftgraph/msgraph-sdk-php.git",
"reference": "4b450b06ac9df3868bbdbddb31bfcc4595f643bc"
"reference": "63fed05d4d9c348db094f8d8a1d44ff9ce6887c7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/microsoftgraph/msgraph-sdk-php/zipball/4b450b06ac9df3868bbdbddb31bfcc4595f643bc",
"reference": "4b450b06ac9df3868bbdbddb31bfcc4595f643bc",
"url": "https://api.github.com/repos/microsoftgraph/msgraph-sdk-php/zipball/63fed05d4d9c348db094f8d8a1d44ff9ce6887c7",
"reference": "63fed05d4d9c348db094f8d8a1d44ff9ce6887c7",
"shasum": ""
},
"require": {
@ -379,22 +379,22 @@
"homepage": "https://developer.microsoft.com/en-us/graph",
"support": {
"issues": "https://github.com/microsoftgraph/msgraph-sdk-php/issues",
"source": "https://github.com/microsoftgraph/msgraph-sdk-php/tree/1.102.0"
"source": "https://github.com/microsoftgraph/msgraph-sdk-php/tree/1.107.0"
},
"time": "2023-07-05T13:07:19+00:00"
"time": "2023-09-27T06:43:40+00:00"
},
{
"name": "psr/http-client",
"version": "1.0.2",
"version": "1.0.3",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-client.git",
"reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31"
"reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-client/zipball/0955afe48220520692d2d09f7ab7e0f93ffd6a31",
"reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31",
"url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90",
"reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90",
"shasum": ""
},
"require": {
@ -431,9 +431,9 @@
"psr-18"
],
"support": {
"source": "https://github.com/php-fig/http-client/tree/1.0.2"
"source": "https://github.com/php-fig/http-client"
},
"time": "2023-04-10T20:12:12+00:00"
"time": "2023-09-23T14:17:50+00:00"
},
{
"name": "psr/http-factory",

View File

@ -2,23 +2,23 @@
"packages": [
{
"name": "guzzlehttp/guzzle",
"version": "7.7.0",
"version_normalized": "7.7.0.0",
"version": "7.8.0",
"version_normalized": "7.8.0.0",
"source": {
"type": "git",
"url": "https://github.com/guzzle/guzzle.git",
"reference": "fb7566caccf22d74d1ab270de3551f72a58399f5"
"reference": "1110f66a6530a40fe7aea0378fe608ee2b2248f9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/fb7566caccf22d74d1ab270de3551f72a58399f5",
"reference": "fb7566caccf22d74d1ab270de3551f72a58399f5",
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/1110f66a6530a40fe7aea0378fe608ee2b2248f9",
"reference": "1110f66a6530a40fe7aea0378fe608ee2b2248f9",
"shasum": ""
},
"require": {
"ext-json": "*",
"guzzlehttp/promises": "^1.5.3 || ^2.0",
"guzzlehttp/psr7": "^1.9.1 || ^2.4.5",
"guzzlehttp/promises": "^1.5.3 || ^2.0.1",
"guzzlehttp/psr7": "^1.9.1 || ^2.5.1",
"php": "^7.2.5 || ^8.0",
"psr/http-client": "^1.0",
"symfony/deprecation-contracts": "^2.2 || ^3.0"
@ -39,7 +39,7 @@
"ext-intl": "Required for Internationalized Domain Name (IDN) support",
"psr/log": "Required for using the Log middleware"
},
"time": "2023-05-21T14:04:53+00:00",
"time": "2023-08-27T10:20:53+00:00",
"type": "library",
"extra": {
"bamarni-bin": {
@ -111,7 +111,7 @@
],
"support": {
"issues": "https://github.com/guzzle/guzzle/issues",
"source": "https://github.com/guzzle/guzzle/tree/7.7.0"
"source": "https://github.com/guzzle/guzzle/tree/7.8.0"
},
"funding": [
{
@ -131,17 +131,17 @@
},
{
"name": "guzzlehttp/promises",
"version": "2.0.0",
"version_normalized": "2.0.0.0",
"version": "2.0.1",
"version_normalized": "2.0.1.0",
"source": {
"type": "git",
"url": "https://github.com/guzzle/promises.git",
"reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6"
"reference": "111166291a0f8130081195ac4556a5587d7f1b5d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/promises/zipball/3a494dc7dc1d7d12e511890177ae2d0e6c107da6",
"reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6",
"url": "https://api.github.com/repos/guzzle/promises/zipball/111166291a0f8130081195ac4556a5587d7f1b5d",
"reference": "111166291a0f8130081195ac4556a5587d7f1b5d",
"shasum": ""
},
"require": {
@ -151,7 +151,7 @@
"bamarni/composer-bin-plugin": "^1.8.1",
"phpunit/phpunit": "^8.5.29 || ^9.5.23"
},
"time": "2023-05-21T13:50:22+00:00",
"time": "2023-08-03T15:11:55+00:00",
"type": "library",
"extra": {
"bamarni-bin": {
@ -197,7 +197,7 @@
],
"support": {
"issues": "https://github.com/guzzle/promises/issues",
"source": "https://github.com/guzzle/promises/tree/2.0.0"
"source": "https://github.com/guzzle/promises/tree/2.0.1"
},
"funding": [
{
@ -217,17 +217,17 @@
},
{
"name": "guzzlehttp/psr7",
"version": "2.5.0",
"version_normalized": "2.5.0.0",
"version": "2.6.1",
"version_normalized": "2.6.1.0",
"source": {
"type": "git",
"url": "https://github.com/guzzle/psr7.git",
"reference": "b635f279edd83fc275f822a1188157ffea568ff6"
"reference": "be45764272e8873c72dbe3d2edcfdfcc3bc9f727"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/psr7/zipball/b635f279edd83fc275f822a1188157ffea568ff6",
"reference": "b635f279edd83fc275f822a1188157ffea568ff6",
"url": "https://api.github.com/repos/guzzle/psr7/zipball/be45764272e8873c72dbe3d2edcfdfcc3bc9f727",
"reference": "be45764272e8873c72dbe3d2edcfdfcc3bc9f727",
"shasum": ""
},
"require": {
@ -248,7 +248,7 @@
"suggest": {
"laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
},
"time": "2023-04-17T16:11:26+00:00",
"time": "2023-08-27T10:13:57+00:00",
"type": "library",
"extra": {
"bamarni-bin": {
@ -316,7 +316,7 @@
],
"support": {
"issues": "https://github.com/guzzle/psr7/issues",
"source": "https://github.com/guzzle/psr7/tree/2.5.0"
"source": "https://github.com/guzzle/psr7/tree/2.6.1"
},
"funding": [
{
@ -336,17 +336,17 @@
},
{
"name": "microsoft/microsoft-graph",
"version": "1.102.0",
"version_normalized": "1.102.0.0",
"version": "1.107.0",
"version_normalized": "1.107.0.0",
"source": {
"type": "git",
"url": "https://github.com/microsoftgraph/msgraph-sdk-php.git",
"reference": "4b450b06ac9df3868bbdbddb31bfcc4595f643bc"
"reference": "63fed05d4d9c348db094f8d8a1d44ff9ce6887c7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/microsoftgraph/msgraph-sdk-php/zipball/4b450b06ac9df3868bbdbddb31bfcc4595f643bc",
"reference": "4b450b06ac9df3868bbdbddb31bfcc4595f643bc",
"url": "https://api.github.com/repos/microsoftgraph/msgraph-sdk-php/zipball/63fed05d4d9c348db094f8d8a1d44ff9ce6887c7",
"reference": "63fed05d4d9c348db094f8d8a1d44ff9ce6887c7",
"shasum": ""
},
"require": {
@ -361,7 +361,7 @@
"phpstan/phpstan": "^0.12.90 || ^1.0.0",
"phpunit/phpunit": "^8.0 || ^9.0"
},
"time": "2023-07-05T13:07:19+00:00",
"time": "2023-09-27T06:43:40+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -385,30 +385,30 @@
"homepage": "https://developer.microsoft.com/en-us/graph",
"support": {
"issues": "https://github.com/microsoftgraph/msgraph-sdk-php/issues",
"source": "https://github.com/microsoftgraph/msgraph-sdk-php/tree/1.102.0"
"source": "https://github.com/microsoftgraph/msgraph-sdk-php/tree/1.107.0"
},
"install-path": "../microsoft/microsoft-graph"
},
{
"name": "psr/http-client",
"version": "1.0.2",
"version_normalized": "1.0.2.0",
"version": "1.0.3",
"version_normalized": "1.0.3.0",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-client.git",
"reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31"
"reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-client/zipball/0955afe48220520692d2d09f7ab7e0f93ffd6a31",
"reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31",
"url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90",
"reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90",
"shasum": ""
},
"require": {
"php": "^7.0 || ^8.0",
"psr/http-message": "^1.0 || ^2.0"
},
"time": "2023-04-10T20:12:12+00:00",
"time": "2023-09-23T14:17:50+00:00",
"type": "library",
"extra": {
"branch-alias": {
@ -440,7 +440,7 @@
"psr-18"
],
"support": {
"source": "https://github.com/php-fig/http-client/tree/1.0.2"
"source": "https://github.com/php-fig/http-client"
},
"install-path": "../psr/http-client"
},

View File

@ -3,7 +3,7 @@
'name' => '__root__',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '316a84f89194c86443930c36b7d2449440c9cc56',
'reference' => '9de74f9b1657f95b4789eb16e893ae84bb40ac27',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
@ -13,52 +13,52 @@
'__root__' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '316a84f89194c86443930c36b7d2449440c9cc56',
'reference' => '9de74f9b1657f95b4789eb16e893ae84bb40ac27',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'dev_requirement' => false,
),
'guzzlehttp/guzzle' => array(
'pretty_version' => '7.7.0',
'version' => '7.7.0.0',
'reference' => 'fb7566caccf22d74d1ab270de3551f72a58399f5',
'pretty_version' => '7.8.0',
'version' => '7.8.0.0',
'reference' => '1110f66a6530a40fe7aea0378fe608ee2b2248f9',
'type' => 'library',
'install_path' => __DIR__ . '/../guzzlehttp/guzzle',
'aliases' => array(),
'dev_requirement' => false,
),
'guzzlehttp/promises' => array(
'pretty_version' => '2.0.0',
'version' => '2.0.0.0',
'reference' => '3a494dc7dc1d7d12e511890177ae2d0e6c107da6',
'pretty_version' => '2.0.1',
'version' => '2.0.1.0',
'reference' => '111166291a0f8130081195ac4556a5587d7f1b5d',
'type' => 'library',
'install_path' => __DIR__ . '/../guzzlehttp/promises',
'aliases' => array(),
'dev_requirement' => false,
),
'guzzlehttp/psr7' => array(
'pretty_version' => '2.5.0',
'version' => '2.5.0.0',
'reference' => 'b635f279edd83fc275f822a1188157ffea568ff6',
'pretty_version' => '2.6.1',
'version' => '2.6.1.0',
'reference' => 'be45764272e8873c72dbe3d2edcfdfcc3bc9f727',
'type' => 'library',
'install_path' => __DIR__ . '/../guzzlehttp/psr7',
'aliases' => array(),
'dev_requirement' => false,
),
'microsoft/microsoft-graph' => array(
'pretty_version' => '1.102.0',
'version' => '1.102.0.0',
'reference' => '4b450b06ac9df3868bbdbddb31bfcc4595f643bc',
'pretty_version' => '1.107.0',
'version' => '1.107.0.0',
'reference' => '63fed05d4d9c348db094f8d8a1d44ff9ce6887c7',
'type' => 'library',
'install_path' => __DIR__ . '/../microsoft/microsoft-graph',
'aliases' => array(),
'dev_requirement' => false,
),
'psr/http-client' => array(
'pretty_version' => '1.0.2',
'version' => '1.0.2.0',
'reference' => '0955afe48220520692d2d09f7ab7e0f93ffd6a31',
'pretty_version' => '1.0.3',
'version' => '1.0.3.0',
'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90',
'type' => 'library',
'install_path' => __DIR__ . '/../psr/http-client',
'aliases' => array(),

View File

@ -3,6 +3,21 @@
Please refer to [UPGRADING](UPGRADING.md) guide for upgrading to a major version.
## 7.8.0 - 2023-08-27
### Added
- Support for PHP 8.3
- Added automatic closing of handles on `CurlFactory` object destruction
## 7.7.1 - 2023-08-27
### Changed
- Remove the need for `AllowDynamicProperties` in `CurlMultiHandler`
## 7.7.0 - 2023-05-21
### Added

View File

@ -27,7 +27,7 @@ Please make sure:
- Function `GuzzleHttp\Exception\RequestException::getResponseBodySummary` is removed.
Use `\GuzzleHttp\Psr7\get_message_body_summary` as an alternative.
- Function `GuzzleHttp\Cookie\CookieJar::getCookieValue` is removed.
- Request option `exception` is removed. Please use `http_errors`.
- Request option `exceptions` is removed. Please use `http_errors`.
- Request option `save_to` is removed. Please use `sink`.
- Pool option `pool_size` is removed. Please use `concurrency`.
- We now look for environment variables in the `$_SERVER` super global, due to thread safety issues with `getenv`. We continue to fallback to `getenv` in CLI environments, for maximum compatibility.

View File

@ -53,8 +53,8 @@
"require": {
"php": "^7.2.5 || ^8.0",
"ext-json": "*",
"guzzlehttp/promises": "^1.5.3 || ^2.0",
"guzzlehttp/psr7": "^1.9.1 || ^2.4.5",
"guzzlehttp/promises": "^1.5.3 || ^2.0.1",
"guzzlehttp/psr7": "^1.9.1 || ^2.5.1",
"psr/http-client": "^1.0",
"symfony/deprecation-contracts": "^2.2 || ^3.0"
},

View File

@ -202,7 +202,7 @@ class Client implements ClientInterface, \Psr\Http\Client\ClientInterface
*
* @deprecated Client::getConfig will be removed in guzzlehttp/guzzle:8.0.
*/
public function getConfig(?string $option = null)
public function getConfig(string $option = null)
{
return $option === null
? $this->config

View File

@ -80,5 +80,5 @@ interface ClientInterface
*
* @deprecated ClientInterface::getConfig will be removed in guzzlehttp/guzzle:8.0.
*/
public function getConfig(?string $option = null);
public function getConfig(string $option = null);
}

View File

@ -96,9 +96,6 @@ class CookieJar implements CookieJarInterface
return null;
}
/**
* {@inheritDoc}
*/
public function toArray(): array
{
return \array_map(static function (SetCookie $cookie): array {
@ -106,10 +103,7 @@ class CookieJar implements CookieJarInterface
}, $this->getIterator()->getArrayCopy());
}
/**
* {@inheritDoc}
*/
public function clear(?string $domain = null, ?string $path = null, ?string $name = null): void
public function clear(string $domain = null, string $path = null, string $name = null): void
{
if (!$domain) {
$this->cookies = [];
@ -126,25 +120,22 @@ class CookieJar implements CookieJarInterface
$this->cookies = \array_filter(
$this->cookies,
static function (SetCookie $cookie) use ($path, $domain): bool {
return !($cookie->matchesPath($path) &&
$cookie->matchesDomain($domain));
return !($cookie->matchesPath($path)
&& $cookie->matchesDomain($domain));
}
);
} else {
$this->cookies = \array_filter(
$this->cookies,
static function (SetCookie $cookie) use ($path, $domain, $name) {
return !($cookie->getName() == $name &&
$cookie->matchesPath($path) &&
$cookie->matchesDomain($domain));
return !($cookie->getName() == $name
&& $cookie->matchesPath($path)
&& $cookie->matchesDomain($domain));
}
);
}
}
/**
* {@inheritDoc}
*/
public function clearSessionCookies(): void
{
$this->cookies = \array_filter(
@ -155,9 +146,6 @@ class CookieJar implements CookieJarInterface
);
}
/**
* {@inheritDoc}
*/
public function setCookie(SetCookie $cookie): bool
{
// If the name string is empty (but not 0), ignore the set-cookie
@ -182,9 +170,9 @@ class CookieJar implements CookieJarInterface
foreach ($this->cookies as $i => $c) {
// Two cookies are identical, when their path, and domain are
// identical.
if ($c->getPath() != $cookie->getPath() ||
$c->getDomain() != $cookie->getDomain() ||
$c->getName() != $cookie->getName()
if ($c->getPath() != $cookie->getPath()
|| $c->getDomain() != $cookie->getDomain()
|| $c->getName() != $cookie->getName()
) {
continue;
}
@ -286,10 +274,10 @@ class CookieJar implements CookieJarInterface
$path = $uri->getPath() ?: '/';
foreach ($this->cookies as $cookie) {
if ($cookie->matchesPath($path) &&
$cookie->matchesDomain($host) &&
!$cookie->isExpired() &&
(!$cookie->getSecure() || $scheme === 'https')
if ($cookie->matchesPath($path)
&& $cookie->matchesDomain($host)
&& !$cookie->isExpired()
&& (!$cookie->getSecure() || $scheme === 'https')
) {
$values[] = $cookie->getName().'='
.$cookie->getValue();

View File

@ -14,6 +14,7 @@ use Psr\Http\Message\ResponseInterface;
* cookies from a file, database, etc.
*
* @see https://docs.python.org/2/library/cookielib.html Inspiration
*
* @extends \IteratorAggregate<SetCookie>
*/
interface CookieJarInterface extends \Countable, \IteratorAggregate
@ -61,7 +62,7 @@ interface CookieJarInterface extends \Countable, \IteratorAggregate
* @param string|null $path Clears cookies matching a domain and path
* @param string|null $name Clears cookies matching a domain, path, and name
*/
public function clear(?string $domain = null, ?string $path = null, ?string $name = null): void;
public function clear(string $domain = null, string $path = null, string $name = null): void;
/**
* Discard all sessions cookies.

View File

@ -367,11 +367,11 @@ class CurlFactory implements CurlFactoryInterface
// If it's a directory or a link to a directory use CURLOPT_CAPATH.
// If not, it's probably a file, or a link to a file, so use CURLOPT_CAINFO.
if (
\is_dir($options['verify']) ||
(
\is_link($options['verify']) === true &&
($verifyLink = \readlink($options['verify'])) !== false &&
\is_dir($verifyLink)
\is_dir($options['verify'])
|| (
\is_link($options['verify']) === true
&& ($verifyLink = \readlink($options['verify'])) !== false
&& \is_dir($verifyLink)
)
) {
$conf[\CURLOPT_CAPATH] = $options['verify'];
@ -627,4 +627,12 @@ class CurlFactory implements CurlFactoryInterface
return \strlen($h);
};
}
public function __destruct()
{
foreach ($this->handles as $id => $handle) {
\curl_close($handle);
unset($this->handles[$id]);
}
}
}

View File

@ -15,11 +15,8 @@ use Psr\Http\Message\RequestInterface;
* associative array of curl option constants mapping to values in the
* **curl** key of the provided request options.
*
* @property resource|\CurlMultiHandle $_mh Internal use only. Lazy loaded multi-handle.
*
* @final
*/
#[\AllowDynamicProperties]
class CurlMultiHandler
{
/**
@ -56,6 +53,9 @@ class CurlMultiHandler
*/
private $options = [];
/** @var resource|\CurlMultiHandle */
private $_mh;
/**
* This handler accepts the following options:
*
@ -79,6 +79,10 @@ class CurlMultiHandler
}
$this->options = $options['options'] ?? [];
// unsetting the property forces the first access to go through
// __get().
unset($this->_mh);
}
/**

View File

@ -44,7 +44,7 @@ class HandlerStack
* handler is provided, the best handler for your
* system will be utilized.
*/
public static function create(?callable $handler = null): self
public static function create(callable $handler = null): self
{
$stack = new self($handler ?: Utils::chooseHandler());
$stack->push(Middleware::httpErrors(), 'http_errors');
@ -131,7 +131,7 @@ class HandlerStack
* @param callable(callable): callable $middleware Middleware function
* @param string $name Name to register for this middleware.
*/
public function unshift(callable $middleware, ?string $name = null): void
public function unshift(callable $middleware, string $name = null): void
{
\array_unshift($this->stack, [$middleware, $name]);
$this->cached = null;

View File

@ -68,7 +68,7 @@ class MessageFormatter implements MessageFormatterInterface
* @param ResponseInterface|null $response Response that was received
* @param \Throwable|null $error Exception that was received
*/
public function format(RequestInterface $request, ?ResponseInterface $response = null, ?\Throwable $error = null): string
public function format(RequestInterface $request, ResponseInterface $response = null, \Throwable $error = null): string
{
$cache = [];

View File

@ -14,5 +14,5 @@ interface MessageFormatterInterface
* @param ResponseInterface|null $response Response that was received
* @param \Throwable|null $error Exception that was received
*/
public function format(RequestInterface $request, ?ResponseInterface $response = null, ?\Throwable $error = null): string;
public function format(RequestInterface $request, ResponseInterface $response = null, \Throwable $error = null): string;
}

View File

@ -166,8 +166,8 @@ class RedirectMiddleware
// not forcing RFC compliance, but rather emulating what all browsers
// would do.
$statusCode = $response->getStatusCode();
if ($statusCode == 303 ||
($statusCode <= 302 && !$options['allow_redirects']['strict'])
if ($statusCode == 303
|| ($statusCode <= 302 && !$options['allow_redirects']['strict'])
) {
$safeMethods = ['GET', 'HEAD', 'OPTIONS'];
$requestMethod = $request->getMethod();

View File

@ -46,8 +46,8 @@ final class TransferStats
*/
public function __construct(
RequestInterface $request,
?ResponseInterface $response = null,
?float $transferTime = null,
ResponseInterface $response = null,
float $transferTime = null,
$handlerErrorData = null,
array $handlerStats = []
) {

View File

@ -1,7 +1,14 @@
# CHANGELOG
## 2.0.0 - TBC
## 2.0.1 - 2023-08-03
### Changed
- PHP 8.3 support
## 2.0.0 - 2023-05-21
### Added

View File

@ -41,7 +41,7 @@ composer require guzzlehttp/promises
| Version | Status | PHP Version |
|---------|------------------------|--------------|
| 1.x | Bug and security fixes | >=5.5,<8.3 |
| 2.x | Latest | >=7.2.5,<8.3 |
| 2.x | Latest | >=7.2.5,<8.4 |
## Quick Start

View File

@ -18,7 +18,7 @@ class RejectionException extends \RuntimeException
* @param mixed $reason Rejection reason.
* @param string|null $description Optional description.
*/
public function __construct($reason, $description = null)
public function __construct($reason, ?string $description = null)
{
$this->reason = $reason;

View File

@ -1,9 +0,0 @@
{
"require": {
"php": "^7.4 || ^8.0",
"friendsofphp/php-cs-fixer": "3.16.0"
},
"config": {
"preferred-install": "dist"
}
}

View File

@ -1,10 +0,0 @@
{
"require": {
"php": "^7.4 || ^8.0",
"phpstan/phpstan": "1.10.11",
"phpstan/phpstan-deprecation-rules": "1.1.3"
},
"config": {
"preferred-install": "dist"
}
}

View File

@ -1,9 +0,0 @@
{
"require": {
"php": "^7.4 || ^8.0",
"psalm/phar": "5.9.0"
},
"config": {
"preferred-install": "dist"
}
}

View File

@ -5,7 +5,28 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
## 2.6.1 - 2023-08-27
### Fixed
- Properly handle the fact that PHP transforms numeric strings in array keys to ints
## 2.6.0 - 2023-08-03
### Changed
- Updated the mime type map to add some new entries, fix a couple of invalid entries, and remove an invalid entry
- Fallback to `application/octet-stream` if we are unable to guess the content type for a multipart file upload
## 2.5.1 - 2023-08-03
### Fixed
- Corrected mime type for `.acc` files to `audio/aac`
### Changed
- PHP 8.3 support
## 2.5.0 - 2023-04-17

View File

@ -8,16 +8,24 @@ functionality like query string parsing.
![Static analysis](https://github.com/guzzle/psr7/workflows/Static%20analysis/badge.svg)
# Installation
## Features
This package comes with a number of stream implementations and stream
decorators.
## Installation
```shell
composer require guzzlehttp/psr7
```
# Stream implementation
## Version Guidance
This package comes with a number of stream implementations and stream
decorators.
| Version | Status | PHP Version |
|---------|---------------------|--------------|
| 1.x | Security fixes only | >=5.4,<8.1 |
| 2.x | Latest | >=7.2.5,<8.4 |
## AppendStream
@ -855,14 +863,6 @@ This of course assumes they will be resolved against the same base URI. If this
equivalence or difference of relative references does not mean anything.
## Version Guidance
| Version | Status | PHP Version |
|---------|----------------|------------------|
| 1.x | Security fixes | >=5.4,<8.1 |
| 2.x | Latest | ^7.2.5 \|\| ^8.0 |
## Security
If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see [Security Policy](https://github.com/guzzle/psr7/security/policy) for more information.

View File

@ -40,12 +40,14 @@ final class AppendStream implements StreamInterface
{
try {
$this->rewind();
return $this->getContents();
} catch (\Throwable $e) {
if (\PHP_VERSION_ID >= 70400) {
throw $e;
}
trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR);
return '';
}
}
@ -138,9 +140,9 @@ final class AppendStream implements StreamInterface
public function eof(): bool
{
return !$this->streams ||
($this->current >= count($this->streams) - 1 &&
$this->streams[$this->current]->eof());
return !$this->streams
|| ($this->current >= count($this->streams) - 1
&& $this->streams[$this->current]->eof());
}
public function rewind(): void
@ -167,7 +169,7 @@ final class AppendStream implements StreamInterface
$stream->rewind();
} catch (\Exception $e) {
throw new \RuntimeException('Unable to seek stream '
. $i . ' of the AppendStream', 0, $e);
.$i.' of the AppendStream', 0, $e);
}
}
@ -197,7 +199,7 @@ final class AppendStream implements StreamInterface
if ($this->current === $total) {
break;
}
$this->current++;
++$this->current;
}
$result = $this->streams[$this->current]->read($remaining);
@ -237,8 +239,6 @@ final class AppendStream implements StreamInterface
}
/**
* {@inheritdoc}
*
* @return mixed
*/
public function getMetadata($key = null)

View File

@ -134,8 +134,6 @@ final class BufferStream implements StreamInterface
}
/**
* {@inheritdoc}
*
* @return mixed
*/
public function getMetadata($key = null)

View File

@ -18,7 +18,7 @@ final class FnStream implements StreamInterface
private const SLOTS = [
'__toString', 'close', 'detach', 'rewind',
'getSize', 'tell', 'eof', 'isSeekable', 'seek', 'isWritable', 'write',
'isReadable', 'read', 'getContents', 'getMetadata'
'isReadable', 'read', 'getContents', 'getMetadata',
];
/** @var array<string, callable> */
@ -33,7 +33,7 @@ final class FnStream implements StreamInterface
// Create the functions on the class
foreach ($methods as $name => $fn) {
$this->{'_fn_' . $name} = $fn;
$this->{'_fn_'.$name} = $fn;
}
}
@ -45,7 +45,7 @@ final class FnStream implements StreamInterface
public function __get(string $name): void
{
throw new \BadMethodCallException(str_replace('_fn_', '', $name)
. '() is not implemented in the FnStream');
.'() is not implemented in the FnStream');
}
/**
@ -99,6 +99,7 @@ final class FnStream implements StreamInterface
throw $e;
}
trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR);
return '';
}
}
@ -169,8 +170,6 @@ final class FnStream implements StreamInterface
}
/**
* {@inheritdoc}
*
* @return mixed
*/
public function getMetadata($key = null)

View File

@ -89,7 +89,7 @@ final class Header
$v = '';
$isQuoted = false;
$isEscaped = false;
for ($i = 0, $max = \strlen($value); $i < $max; $i++) {
for ($i = 0, $max = \strlen($value); $i < $max; ++$i) {
if ($isEscaped) {
$v .= $value[$i];
$isEscaped = false;

View File

@ -23,13 +23,7 @@ use Psr\Http\Message\UriInterface;
* Note: in consuming code it is recommended to require the implemented interfaces
* and inject the instance of this class multiple times.
*/
final class HttpFactory implements
RequestFactoryInterface,
ResponseFactoryInterface,
ServerRequestFactoryInterface,
StreamFactoryInterface,
UploadedFileFactoryInterface,
UriFactoryInterface
final class HttpFactory implements RequestFactoryInterface, ResponseFactoryInterface, ServerRequestFactoryInterface, StreamFactoryInterface, UploadedFileFactoryInterface, UriFactoryInterface
{
public function createUploadedFile(
StreamInterface $stream,

View File

@ -13,9 +13,9 @@ use Psr\Http\Message\StreamInterface;
* then appends the zlib.inflate filter. The stream is then converted back
* to a Guzzle stream resource to be used as a Guzzle stream.
*
* @link http://tools.ietf.org/html/rfc1950
* @link http://tools.ietf.org/html/rfc1952
* @link http://php.net/manual/en/filters.compression.php
* @see http://tools.ietf.org/html/rfc1950
* @see http://tools.ietf.org/html/rfc1952
* @see http://php.net/manual/en/filters.compression.php
*/
final class InflateStream implements StreamInterface
{

View File

@ -18,31 +18,31 @@ final class Message
public static function toString(MessageInterface $message): string
{
if ($message instanceof RequestInterface) {
$msg = trim($message->getMethod() . ' '
. $message->getRequestTarget())
. ' HTTP/' . $message->getProtocolVersion();
$msg = trim($message->getMethod().' '
.$message->getRequestTarget())
.' HTTP/'.$message->getProtocolVersion();
if (!$message->hasHeader('host')) {
$msg .= "\r\nHost: " . $message->getUri()->getHost();
$msg .= "\r\nHost: ".$message->getUri()->getHost();
}
} elseif ($message instanceof ResponseInterface) {
$msg = 'HTTP/' . $message->getProtocolVersion() . ' '
. $message->getStatusCode() . ' '
. $message->getReasonPhrase();
$msg = 'HTTP/'.$message->getProtocolVersion().' '
.$message->getStatusCode().' '
.$message->getReasonPhrase();
} else {
throw new \InvalidArgumentException('Unknown message type');
}
foreach ($message->getHeaders() as $name => $values) {
if (strtolower($name) === 'set-cookie') {
if (is_string($name) && strtolower($name) === 'set-cookie') {
foreach ($values as $value) {
$msg .= "\r\n{$name}: " . $value;
$msg .= "\r\n{$name}: ".$value;
}
} else {
$msg .= "\r\n{$name}: " . implode(', ', $values);
$msg .= "\r\n{$name}: ".implode(', ', $values);
}
}
return "{$msg}\r\n\r\n" . $message->getBody();
return "{$msg}\r\n\r\n".$message->getBody();
}
/**
@ -190,7 +190,7 @@ final class Message
$host = $headers[reset($hostKey)][0];
$scheme = substr($host, -4) === ':443' ? 'https' : 'http';
return $scheme . '://' . $host . '/' . ltrim($path, '/');
return $scheme.'://'.$host.'/'.ltrim($path, '/');
}
/**
@ -231,7 +231,7 @@ final class Message
// between status-code and reason-phrase is required. But browsers accept
// responses without space and reason as well.
if (!preg_match('/^HTTP\/.* [0-9]{3}( .*|$)/', $data['start-line'])) {
throw new \InvalidArgumentException('Invalid response string: ' . $data['start-line']);
throw new \InvalidArgumentException('Invalid response string: '.$data['start-line']);
}
$parts = explode(' ', $data['start-line'], 3);

View File

@ -12,11 +12,11 @@ use Psr\Http\Message\StreamInterface;
*/
trait MessageTrait
{
/** @var array<string, string[]> Map of all registered headers, as original name => array of values */
/** @var string[][] Map of all registered headers, as original name => array of values */
private $headers = [];
/** @var array<string, string> Map of lowercase header name => original name at registration */
private $headerNames = [];
/** @var string[] Map of lowercase header name => original name at registration */
private $headerNames = [];
/** @var string */
private $protocol = '1.1';
@ -37,6 +37,7 @@ trait MessageTrait
$new = clone $this;
$new->protocol = $version;
return $new;
}
@ -135,6 +136,7 @@ trait MessageTrait
$new = clone $this;
$new->stream = $body;
return $new;
}
@ -224,7 +226,7 @@ trait MessageTrait
));
}
if (! preg_match('/^[a-zA-Z0-9\'`#$%&*+.^_|~!-]+$/D', $header)) {
if (!preg_match('/^[a-zA-Z0-9\'`#$%&*+.^_|~!-]+$/D', $header)) {
throw new \InvalidArgumentException(
sprintf('"%s" is not valid header name.', $header)
);
@ -254,7 +256,7 @@ trait MessageTrait
// Clients must not send a request with line folding and a server sending folded headers is
// likely very rare. Line folding is a fairly obscure feature of HTTP/1.1 and thus not accepting
// folding is not likely to break any legitimate use case.
if (! preg_match('/^[\x20\x09\x21-\x7E\x80-\xFF]*$/D', $value)) {
if (!preg_match('/^[\x20\x09\x21-\x7E\x80-\xFF]*$/D', $value)) {
throw new \InvalidArgumentException(
sprintf('"%s" is not valid header value.', $value)
);

View File

@ -18,7 +18,7 @@ final class MimeType
'7zip' => 'application/x-7z-compressed',
'123' => 'application/vnd.lotus-1-2-3',
'aab' => 'application/x-authorware-bin',
'aac' => 'audio/x-acc',
'aac' => 'audio/aac',
'aam' => 'application/x-authorware-map',
'aas' => 'application/x-authorware-seg',
'abw' => 'application/x-abiword',
@ -29,6 +29,7 @@ final class MimeType
'acu' => 'application/vnd.acucobol',
'acutc' => 'application/vnd.acucorp',
'adp' => 'audio/adpcm',
'adts' => 'audio/aac',
'aep' => 'application/vnd.audiograph',
'afm' => 'application/x-font-type1',
'afp' => 'application/vnd.ibm.modcap',
@ -41,11 +42,16 @@ final class MimeType
'air' => 'application/vnd.adobe.air-application-installer-package+zip',
'ait' => 'application/vnd.dvb.ait',
'ami' => 'application/vnd.amiga.ami',
'aml' => 'application/automationml-aml+xml',
'amlx' => 'application/automationml-amlx+zip',
'amr' => 'audio/amr',
'apk' => 'application/vnd.android.package-archive',
'apng' => 'image/apng',
'appcache' => 'text/cache-manifest',
'appinstaller' => 'application/appinstaller',
'application' => 'application/x-ms-application',
'appx' => 'application/appx',
'appxbundle' => 'application/appxbundle',
'apr' => 'application/vnd.lotus-approach',
'arc' => 'application/x-freearc',
'arj' => 'application/x-arj',
@ -90,6 +96,7 @@ final class MimeType
'bpk' => 'application/octet-stream',
'bpmn' => 'application/octet-stream',
'bsp' => 'model/vnd.valve.source.compiled-map',
'btf' => 'image/prs.btif',
'btif' => 'image/prs.btif',
'buffer' => 'application/octet-stream',
'bz' => 'application/x-bzip',
@ -141,6 +148,7 @@ final class MimeType
'cjs' => 'application/node',
'cla' => 'application/vnd.claymore',
'class' => 'application/octet-stream',
'cld' => 'model/vnd.cld',
'clkk' => 'application/vnd.crick.clicker.keyboard',
'clkp' => 'application/vnd.crick.clicker.palette',
'clkt' => 'application/vnd.crick.clicker.template',
@ -175,6 +183,7 @@ final class MimeType
'csv' => 'text/csv',
'cu' => 'application/cu-seeme',
'curl' => 'text/vnd.curl',
'cwl' => 'application/cwl',
'cww' => 'application/prs.cww',
'cxt' => 'application/x-director',
'cxx' => 'text/x-c',
@ -197,6 +206,7 @@ final class MimeType
'der' => 'application/x-x509-ca-cert',
'dfac' => 'application/vnd.dreamfactory',
'dgc' => 'application/x-dgc-compressed',
'dib' => 'image/bmp',
'dic' => 'text/x-c',
'dir' => 'application/x-director',
'dis' => 'application/vnd.mobius.dis',
@ -219,6 +229,7 @@ final class MimeType
'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
'dp' => 'application/vnd.osgi.dp',
'dpg' => 'application/vnd.dpgraph',
'dpx' => 'image/dpx',
'dra' => 'audio/vnd.dra',
'drle' => 'image/dicom-rle',
'dsc' => 'text/prs.lines.tag',
@ -255,7 +266,6 @@ final class MimeType
'eot' => 'application/vnd.ms-fontobject',
'eps' => 'application/postscript',
'epub' => 'application/epub+zip',
'es' => 'application/ecmascript',
'es3' => 'application/vnd.eszigno3+xml',
'esa' => 'application/vnd.osgi.subsystem',
'esf' => 'application/vnd.epson.esf',
@ -448,6 +458,7 @@ final class MimeType
'jsonld' => 'application/ld+json',
'jsonml' => 'application/jsonml+json',
'jsx' => 'text/jsx',
'jt' => 'model/jt',
'jxr' => 'image/jxr',
'jxra' => 'image/jxra',
'jxrs' => 'image/jxrs',
@ -552,7 +563,7 @@ final class MimeType
'mime' => 'message/rfc822',
'mj2' => 'video/mj2',
'mjp2' => 'video/mj2',
'mjs' => 'application/javascript',
'mjs' => 'text/javascript',
'mk3d' => 'video/x-matroska',
'mka' => 'audio/x-matroska',
'mkd' => 'text/x-markdown',
@ -602,6 +613,8 @@ final class MimeType
'msg' => 'application/vnd.ms-outlook',
'msh' => 'model/mesh',
'msi' => 'application/x-msdownload',
'msix' => 'application/msix',
'msixbundle' => 'application/msixbundle',
'msl' => 'application/vnd.mobius.msl',
'msm' => 'application/octet-stream',
'msp' => 'application/octet-stream',
@ -775,6 +788,8 @@ final class MimeType
'pvb' => 'application/vnd.3gpp.pic-bw-var',
'pwn' => 'application/vnd.3m.post-it-notes',
'pya' => 'audio/vnd.ms-playready.media.pya',
'pyo' => 'model/vnd.pytha.pyox',
'pyox' => 'model/vnd.pytha.pyox',
'pyv' => 'video/vnd.ms-playready.media.pyv',
'qam' => 'application/vnd.epson.quickanime',
'qbo' => 'application/vnd.intu.qbo',
@ -923,10 +938,12 @@ final class MimeType
'st' => 'application/vnd.sailingtracker.track',
'stc' => 'application/vnd.sun.xml.calc.template',
'std' => 'application/vnd.sun.xml.draw.template',
'step' => 'application/STEP',
'stf' => 'application/vnd.wt.stf',
'sti' => 'application/vnd.sun.xml.impress.template',
'stk' => 'application/hyperstudio',
'stl' => 'model/stl',
'stp' => 'application/STEP',
'stpx' => 'model/step+xml',
'stpxz' => 'model/step-xml+zip',
'stpz' => 'model/step+zip',
@ -1013,10 +1030,12 @@ final class MimeType
'ulx' => 'application/x-glulx',
'umj' => 'application/vnd.umajin',
'unityweb' => 'application/vnd.unity',
'uo' => 'application/vnd.uoml+xml',
'uoml' => 'application/vnd.uoml+xml',
'uri' => 'text/uri-list',
'uris' => 'text/uri-list',
'urls' => 'text/uri-list',
'usda' => 'model/vnd.usda',
'usdz' => 'model/vnd.usdz+zip',
'ustar' => 'application/x-ustar',
'utz' => 'application/vnd.uiq.theme',
@ -1096,6 +1115,7 @@ final class MimeType
'webmanifest' => 'application/manifest+json',
'webp' => 'image/webp',
'wg' => 'application/vnd.pmi.widget',
'wgsl' => 'text/wgsl',
'wgt' => 'application/widget',
'wif' => 'application/watcherinfo+xml',
'wks' => 'application/vnd.ms-works',
@ -1150,9 +1170,10 @@ final class MimeType
'xel' => 'application/xcap-el+xml',
'xenc' => 'application/xenc+xml',
'xer' => 'application/patch-ops-error+xml',
'xfdf' => 'application/vnd.adobe.xfdf',
'xfdf' => 'application/xfdf',
'xfdl' => 'application/vnd.xfdl',
'xht' => 'application/xhtml+xml',
'xhtm' => 'application/vnd.pwg-xhtml-print+xml',
'xhtml' => 'application/xhtml+xml',
'xhvml' => 'application/xv+xml',
'xif' => 'image/vnd.xiff',
@ -1183,6 +1204,7 @@ final class MimeType
'xpw' => 'application/vnd.intercon.formnet',
'xpx' => 'application/vnd.intercon.formnet',
'xsd' => 'application/xml',
'xsf' => 'application/prs.xsf+xml',
'xsl' => 'application/xml',
'xslt' => 'application/xslt+xml',
'xsm' => 'application/vnd.syncml+xml',
@ -1218,7 +1240,7 @@ final class MimeType
/**
* Determines the mimetype of a file by looking at its extension.
*
* @link https://raw.githubusercontent.com/jshttp/mime-db/master/db.json
* @see https://raw.githubusercontent.com/jshttp/mime-db/master/db.json
*/
public static function fromFilename(string $filename): ?string
{
@ -1228,7 +1250,7 @@ final class MimeType
/**
* Maps a file extensions to a mimetype.
*
* @link https://raw.githubusercontent.com/jshttp/mime-db/master/db.json
* @see https://raw.githubusercontent.com/jshttp/mime-db/master/db.json
*/
public static function fromExtension(string $extension): ?string
{

View File

@ -60,7 +60,7 @@ final class MultipartStream implements StreamInterface
$str .= "{$key}: {$value}\r\n";
}
return "--{$this->boundary}\r\n" . trim($str) . "\r\n\r\n";
return "--{$this->boundary}\r\n".trim($str)."\r\n\r\n";
}
/**
@ -72,7 +72,7 @@ final class MultipartStream implements StreamInterface
foreach ($elements as $element) {
if (!is_array($element)) {
throw new \UnexpectedValueException("An array is expected");
throw new \UnexpectedValueException('An array is expected');
}
$this->addElement($stream, $element);
}
@ -137,9 +137,7 @@ final class MultipartStream implements StreamInterface
// Set a default Content-Type if one was not supplied
$type = $this->getHeader($headers, 'content-type');
if (!$type && ($filename === '0' || $filename)) {
if ($type = MimeType::fromFilename($filename)) {
$headers['Content-Type'] = $type;
}
$headers['Content-Type'] = MimeType::fromFilename($filename) ?? 'application/octet-stream';
}
return [$stream, $headers];

View File

@ -34,7 +34,7 @@ final class PumpStream implements StreamInterface
private $buffer;
/**
* @param callable(int): (string|null|false) $source Source of the stream data. The callable MAY
* @param callable(int): (string|false|null) $source Source of the stream data. The callable MAY
* accept an integer argument used to control the
* amount of data to return. The callable MUST
* return a string when called, or false|null on error
@ -60,6 +60,7 @@ final class PumpStream implements StreamInterface
throw $e;
}
trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR);
return '';
}
}
@ -149,8 +150,6 @@ final class PumpStream implements StreamInterface
}
/**
* {@inheritdoc}
*
* @return mixed
*/
public function getMetadata($key = null)
@ -169,6 +168,7 @@ final class PumpStream implements StreamInterface
$data = call_user_func($this->source, $length);
if ($data === false || $data === null) {
$this->source = null;
return;
}
$this->buffer->write($data);

View File

@ -93,7 +93,7 @@ final class Query
$qs .= $k;
$v = is_bool($v) ? (int) $v : $v;
if ($v !== null) {
$qs .= '=' . $encoder((string) $v);
$qs .= '='.$encoder((string) $v);
}
$qs .= '&';
} else {
@ -101,7 +101,7 @@ final class Query
$qs .= $k;
$vv = is_bool($vv) ? (int) $vv : $vv;
if ($vv !== null) {
$qs .= '=' . $encoder((string) $vv);
$qs .= '='.$encoder((string) $vv);
}
$qs .= '&';
}

View File

@ -69,7 +69,7 @@ class Request implements RequestInterface
$target = '/';
}
if ($this->uri->getQuery() != '') {
$target .= '?' . $this->uri->getQuery();
$target .= '?'.$this->uri->getQuery();
}
return $target;
@ -85,6 +85,7 @@ class Request implements RequestInterface
$new = clone $this;
$new->requestTarget = $requestTarget;
return $new;
}
@ -98,6 +99,7 @@ class Request implements RequestInterface
$this->assertMethod($method);
$new = clone $this;
$new->method = strtoupper($method);
return $new;
}
@ -131,7 +133,7 @@ class Request implements RequestInterface
}
if (($port = $this->uri->getPort()) !== null) {
$host .= ':' . $port;
$host .= ':'.$port;
}
if (isset($this->headerNames['host'])) {

View File

@ -138,6 +138,7 @@ class Response implements ResponseInterface
$reasonPhrase = self::PHRASES[$new->statusCode];
}
$new->reasonPhrase = (string) $reasonPhrase;
return $new;
}

View File

@ -14,7 +14,7 @@ final class Rfc7230
*
* Note: header delimiter (\r\n) is modified to \r?\n to accept line feed only delimiters for BC reasons.
*
* @link https://github.com/amphp/http/blob/v1.0.1/src/Rfc7230.php#L12-L15
* @see https://github.com/amphp/http/blob/v1.0.1/src/Rfc7230.php#L12-L15
*
* @license https://github.com/amphp/http/blob/v1.0.1/LICENSE
*/

View File

@ -144,10 +144,10 @@ class ServerRequest extends Request implements ServerRequestInterface
foreach (array_keys($files['tmp_name']) as $key) {
$spec = [
'tmp_name' => $files['tmp_name'][$key],
'size' => $files['size'][$key] ?? null,
'error' => $files['error'][$key] ?? null,
'name' => $files['name'][$key] ?? null,
'type' => $files['type'][$key] ?? null,
'size' => $files['size'][$key] ?? null,
'error' => $files['error'][$key] ?? null,
'name' => $files['name'][$key] ?? null,
'type' => $files['type'][$key] ?? null,
];
$normalizedFiles[$key] = self::createUploadedFileFromSpec($spec);
}
@ -182,7 +182,7 @@ class ServerRequest extends Request implements ServerRequestInterface
private static function extractHostAndPortFromAuthority(string $authority): array
{
$uri = 'http://' . $authority;
$uri = 'http://'.$authority;
$parts = parse_url($uri);
if (false === $parts) {
return [null, null];
@ -286,8 +286,6 @@ class ServerRequest extends Request implements ServerRequestInterface
}
/**
* {@inheritdoc}
*
* @return array|object|null
*/
public function getParsedBody()
@ -309,8 +307,6 @@ class ServerRequest extends Request implements ServerRequestInterface
}
/**
* {@inheritdoc}
*
* @return mixed
*/
public function getAttribute($attribute, $default = null)

View File

@ -61,8 +61,8 @@ class Stream implements StreamInterface
$this->stream = $stream;
$meta = stream_get_meta_data($this->stream);
$this->seekable = $meta['seekable'];
$this->readable = (bool)preg_match(self::READABLE_MODES, $meta['mode']);
$this->writable = (bool)preg_match(self::WRITABLE_MODES, $meta['mode']);
$this->readable = (bool) preg_match(self::READABLE_MODES, $meta['mode']);
$this->writable = (bool) preg_match(self::WRITABLE_MODES, $meta['mode']);
$this->uri = $this->getMetadata('uri');
}
@ -80,12 +80,14 @@ class Stream implements StreamInterface
if ($this->isSeekable()) {
$this->seek(0);
}
return $this->getContents();
} catch (\Throwable $e) {
if (\PHP_VERSION_ID >= 70400) {
throw $e;
}
trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR);
return '';
}
}
@ -145,6 +147,7 @@ class Stream implements StreamInterface
$stats = fstat($this->stream);
if (is_array($stats) && isset($stats['size'])) {
$this->size = $stats['size'];
return $this->size;
}
@ -207,7 +210,7 @@ class Stream implements StreamInterface
}
if (fseek($this->stream, $offset, $whence) === -1) {
throw new \RuntimeException('Unable to seek to stream position '
. $offset . ' with whence ' . var_export($whence, true));
.$offset.' with whence '.var_export($whence, true));
}
}
@ -261,8 +264,6 @@ class Stream implements StreamInterface
}
/**
* {@inheritdoc}
*
* @return mixed
*/
public function getMetadata($key = null)

View File

@ -31,6 +31,7 @@ trait StreamDecoratorTrait
{
if ($name === 'stream') {
$this->stream = $this->createStream();
return $this->stream;
}
@ -43,12 +44,14 @@ trait StreamDecoratorTrait
if ($this->isSeekable()) {
$this->seek(0);
}
return $this->getContents();
} catch (\Throwable $e) {
if (\PHP_VERSION_ID >= 70400) {
throw $e;
}
trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR);
return '';
}
}
@ -79,8 +82,6 @@ trait StreamDecoratorTrait
}
/**
* {@inheritdoc}
*
* @return mixed
*/
public function getMetadata($key = null)

View File

@ -41,7 +41,7 @@ final class StreamWrapper
$mode = 'w';
} else {
throw new \InvalidArgumentException('The stream must be readable, '
. 'writable, or both.');
.'writable, or both.');
}
return fopen('guzzle://stream', $mode, false, self::createStreamContext($stream));
@ -55,7 +55,7 @@ final class StreamWrapper
public static function createStreamContext(StreamInterface $stream)
{
return stream_context_create([
'guzzle' => ['stream' => $stream]
'guzzle' => ['stream' => $stream],
]);
}
@ -115,7 +115,7 @@ final class StreamWrapper
*/
public function stream_cast(int $cast_as)
{
$stream = clone($this->stream);
$stream = clone $this->stream;
$resource = $stream->detach();
return $resource ?? false;
@ -127,27 +127,27 @@ final class StreamWrapper
public function stream_stat(): array
{
static $modeMap = [
'r' => 33060,
'r' => 33060,
'rb' => 33060,
'r+' => 33206,
'w' => 33188,
'wb' => 33188
'w' => 33188,
'wb' => 33188,
];
return [
'dev' => 0,
'ino' => 0,
'mode' => $modeMap[$this->mode],
'nlink' => 0,
'uid' => 0,
'gid' => 0,
'rdev' => 0,
'size' => $this->stream->getSize() ?: 0,
'atime' => 0,
'mtime' => 0,
'ctime' => 0,
'dev' => 0,
'ino' => 0,
'mode' => $modeMap[$this->mode],
'nlink' => 0,
'uid' => 0,
'gid' => 0,
'rdev' => 0,
'size' => $this->stream->getSize() ?: 0,
'atime' => 0,
'mtime' => 0,
'ctime' => 0,
'blksize' => 0,
'blocks' => 0
'blocks' => 0,
];
}
@ -157,19 +157,19 @@ final class StreamWrapper
public function url_stat(string $path, int $flags): array
{
return [
'dev' => 0,
'ino' => 0,
'mode' => 0,
'nlink' => 0,
'uid' => 0,
'gid' => 0,
'rdev' => 0,
'size' => 0,
'atime' => 0,
'mtime' => 0,
'ctime' => 0,
'dev' => 0,
'ino' => 0,
'mode' => 0,
'nlink' => 0,
'uid' => 0,
'gid' => 0,
'rdev' => 0,
'size' => 0,
'atime' => 0,
'mtime' => 0,
'ctime' => 0,
'blksize' => 0,
'blocks' => 0
'blocks' => 0,
];
}
}

View File

@ -25,7 +25,7 @@ class Uri implements UriInterface, \JsonSerializable
private const HTTP_DEFAULT_HOST = 'localhost';
private const DEFAULT_PORTS = [
'http' => 80,
'http' => 80,
'https' => 443,
'ftp' => 21,
'gopher' => 70,
@ -41,14 +41,14 @@ class Uri implements UriInterface, \JsonSerializable
/**
* Unreserved characters for use in a regex.
*
* @link https://tools.ietf.org/html/rfc3986#section-2.3
* @see https://tools.ietf.org/html/rfc3986#section-2.3
*/
private const CHAR_UNRESERVED = 'a-zA-Z0-9_\-\.~';
/**
* Sub-delims for use in a regex.
*
* @link https://tools.ietf.org/html/rfc3986#section-2.2
* @see https://tools.ietf.org/html/rfc3986#section-2.2
*/
private const CHAR_SUB_DELIMS = '!\$&\'\(\)\*\+,;=';
private const QUERY_SEPARATORS_REPLACEMENT = ['=' => '%3D', '&' => '%26'];
@ -87,6 +87,7 @@ class Uri implements UriInterface, \JsonSerializable
$this->applyParts($parts);
}
}
/**
* UTF-8 aware \parse_url() replacement.
*
@ -121,7 +122,7 @@ class Uri implements UriInterface, \JsonSerializable
$url
);
$result = parse_url($prefix . $encodedUrl);
$result = parse_url($prefix.$encodedUrl);
if ($result === false) {
return false;
@ -161,7 +162,7 @@ class Uri implements UriInterface, \JsonSerializable
* `file:///` is the more common syntax for the file scheme anyway (Chrome for example redirects to
* that format).
*
* @link https://tools.ietf.org/html/rfc3986#section-5.3
* @see https://tools.ietf.org/html/rfc3986#section-5.3
*/
public static function composeComponents(?string $scheme, ?string $authority, string $path, ?string $query, ?string $fragment): string
{
@ -169,25 +170,25 @@ class Uri implements UriInterface, \JsonSerializable
// weak type checks to also accept null until we can add scalar type hints
if ($scheme != '') {
$uri .= $scheme . ':';
$uri .= $scheme.':';
}
if ($authority != '' || $scheme === 'file') {
$uri .= '//' . $authority;
$uri .= '//'.$authority;
}
if ($authority != '' && $path != '' && $path[0] != '/') {
$path = '/' . $path;
$path = '/'.$path;
}
$uri .= $path;
if ($query != '') {
$uri .= '?' . $query;
$uri .= '?'.$query;
}
if ($fragment != '') {
$uri .= '#' . $fragment;
$uri .= '#'.$fragment;
}
return $uri;
@ -218,7 +219,7 @@ class Uri implements UriInterface, \JsonSerializable
* @see Uri::isNetworkPathReference
* @see Uri::isAbsolutePathReference
* @see Uri::isRelativePathReference
* @link https://tools.ietf.org/html/rfc3986#section-4
* @see https://tools.ietf.org/html/rfc3986#section-4
*/
public static function isAbsolute(UriInterface $uri): bool
{
@ -230,7 +231,7 @@ class Uri implements UriInterface, \JsonSerializable
*
* A relative reference that begins with two slash characters is termed an network-path reference.
*
* @link https://tools.ietf.org/html/rfc3986#section-4.2
* @see https://tools.ietf.org/html/rfc3986#section-4.2
*/
public static function isNetworkPathReference(UriInterface $uri): bool
{
@ -242,7 +243,7 @@ class Uri implements UriInterface, \JsonSerializable
*
* A relative reference that begins with a single slash character is termed an absolute-path reference.
*
* @link https://tools.ietf.org/html/rfc3986#section-4.2
* @see https://tools.ietf.org/html/rfc3986#section-4.2
*/
public static function isAbsolutePathReference(UriInterface $uri): bool
{
@ -257,7 +258,7 @@ class Uri implements UriInterface, \JsonSerializable
*
* A relative reference that does not begin with a slash character is termed a relative-path reference.
*
* @link https://tools.ietf.org/html/rfc3986#section-4.2
* @see https://tools.ietf.org/html/rfc3986#section-4.2
*/
public static function isRelativePathReference(UriInterface $uri): bool
{
@ -276,7 +277,7 @@ class Uri implements UriInterface, \JsonSerializable
* @param UriInterface $uri The URI to check
* @param UriInterface|null $base An optional base URI to compare against
*
* @link https://tools.ietf.org/html/rfc3986#section-4.4
* @see https://tools.ietf.org/html/rfc3986#section-4.4
*/
public static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null): bool
{
@ -352,7 +353,7 @@ class Uri implements UriInterface, \JsonSerializable
/**
* Creates a URI from a hash of `parse_url` components.
*
* @link http://php.net/manual/en/function.parse-url.php
* @see http://php.net/manual/en/function.parse-url.php
*
* @throws MalformedUriException If the components do not form a valid URI.
*/
@ -374,11 +375,11 @@ class Uri implements UriInterface, \JsonSerializable
{
$authority = $this->host;
if ($this->userInfo !== '') {
$authority = $this->userInfo . '@' . $authority;
$authority = $this->userInfo.'@'.$authority;
}
if ($this->port !== null) {
$authority .= ':' . $this->port;
$authority .= ':'.$this->port;
}
return $authority;
@ -435,7 +436,7 @@ class Uri implements UriInterface, \JsonSerializable
{
$info = $this->filterUserInfoComponent($user);
if ($password !== null) {
$info .= ':' . $this->filterUserInfoComponent($password);
$info .= ':'.$this->filterUserInfoComponent($password);
}
if ($this->userInfo === $info) {
@ -563,7 +564,7 @@ class Uri implements UriInterface, \JsonSerializable
? $this->filterQueryAndFragment($parts['fragment'])
: '';
if (isset($parts['pass'])) {
$this->userInfo .= ':' . $this->filterUserInfoComponent($parts['pass']);
$this->userInfo .= ':'.$this->filterUserInfoComponent($parts['pass']);
}
$this->removeDefaultPort();
@ -595,7 +596,7 @@ class Uri implements UriInterface, \JsonSerializable
}
return preg_replace_callback(
'/(?:[^%' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . ']+|%(?![A-Fa-f0-9]{2}))/',
'/(?:[^%'.self::CHAR_UNRESERVED.self::CHAR_SUB_DELIMS.']+|%(?![A-Fa-f0-9]{2}))/',
[$this, 'rawurlencodeMatchZero'],
$component
);
@ -627,7 +628,7 @@ class Uri implements UriInterface, \JsonSerializable
}
$port = (int) $port;
if (0 > $port || 0xffff < $port) {
if (0 > $port || 0xFFFF < $port) {
throw new \InvalidArgumentException(
sprintf('Invalid port: %d. Must be between 0 and 65535', $port)
);
@ -664,7 +665,7 @@ class Uri implements UriInterface, \JsonSerializable
$queryString = strtr($key, self::QUERY_SEPARATORS_REPLACEMENT);
if ($value !== null) {
$queryString .= '=' . strtr($value, self::QUERY_SEPARATORS_REPLACEMENT);
$queryString .= '='.strtr($value, self::QUERY_SEPARATORS_REPLACEMENT);
}
return $queryString;
@ -691,7 +692,7 @@ class Uri implements UriInterface, \JsonSerializable
}
return preg_replace_callback(
'/(?:[^' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . '%:@\/]++|%(?![A-Fa-f0-9]{2}))/',
'/(?:[^'.self::CHAR_UNRESERVED.self::CHAR_SUB_DELIMS.'%:@\/]++|%(?![A-Fa-f0-9]{2}))/',
[$this, 'rawurlencodeMatchZero'],
$path
);
@ -711,7 +712,7 @@ class Uri implements UriInterface, \JsonSerializable
}
return preg_replace_callback(
'/(?:[^' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . '%:@\/\?]++|%(?![A-Fa-f0-9]{2}))/',
'/(?:[^'.self::CHAR_UNRESERVED.self::CHAR_SUB_DELIMS.'%:@\/\?]++|%(?![A-Fa-f0-9]{2}))/',
[$this, 'rawurlencodeMatchZero'],
$str
);

View File

@ -11,7 +11,7 @@ use Psr\Http\Message\UriInterface;
*
* @author Tobias Schultze
*
* @link https://tools.ietf.org/html/rfc3986#section-6
* @see https://tools.ietf.org/html/rfc3986#section-6
*/
final class UriNormalizer
{
@ -119,7 +119,7 @@ final class UriNormalizer
* @param UriInterface $uri The URI to normalize
* @param int $flags A bitmask of normalizations to apply, see constants
*
* @link https://tools.ietf.org/html/rfc3986#section-6.2
* @see https://tools.ietf.org/html/rfc3986#section-6.2
*/
public static function normalize(UriInterface $uri, int $flags = self::PRESERVING_NORMALIZATIONS): UriInterface
{
@ -131,8 +131,8 @@ final class UriNormalizer
$uri = self::decodeUnreservedCharacters($uri);
}
if ($flags & self::CONVERT_EMPTY_PATH && $uri->getPath() === '' &&
($uri->getScheme() === 'http' || $uri->getScheme() === 'https')
if ($flags & self::CONVERT_EMPTY_PATH && $uri->getPath() === ''
&& ($uri->getScheme() === 'http' || $uri->getScheme() === 'https')
) {
$uri = $uri->withPath('/');
}
@ -174,7 +174,7 @@ final class UriNormalizer
* @param UriInterface $uri2 An URI to compare
* @param int $normalizations A bitmask of normalizations to apply, see constants
*
* @link https://tools.ietf.org/html/rfc3986#section-6.1
* @see https://tools.ietf.org/html/rfc3986#section-6.1
*/
public static function isEquivalent(UriInterface $uri1, UriInterface $uri2, int $normalizations = self::PRESERVING_NORMALIZATIONS): bool
{

View File

@ -11,14 +11,14 @@ use Psr\Http\Message\UriInterface;
*
* @author Tobias Schultze
*
* @link https://tools.ietf.org/html/rfc3986#section-5
* @see https://tools.ietf.org/html/rfc3986#section-5
*/
final class UriResolver
{
/**
* Removes dot segments from a path and returns the new path.
*
* @link http://tools.ietf.org/html/rfc3986#section-5.2.4
* @see http://tools.ietf.org/html/rfc3986#section-5.2.4
*/
public static function removeDotSegments(string $path): string
{
@ -40,7 +40,7 @@ final class UriResolver
if ($path[0] === '/' && (!isset($newPath[0]) || $newPath[0] !== '/')) {
// Re-add the leading slash if necessary for cases like "/.."
$newPath = '/' . $newPath;
$newPath = '/'.$newPath;
} elseif ($newPath !== '' && ($segment === '.' || $segment === '..')) {
// Add the trailing slash if necessary
// If newPath is not empty, then $segment must be set and is the last segment from the foreach
@ -53,7 +53,7 @@ final class UriResolver
/**
* Converts the relative URI into a new URI that is resolved against the base URI.
*
* @link http://tools.ietf.org/html/rfc3986#section-5.2
* @see http://tools.ietf.org/html/rfc3986#section-5.2
*/
public static function resolve(UriInterface $base, UriInterface $rel): UriInterface
{
@ -80,13 +80,13 @@ final class UriResolver
$targetPath = $rel->getPath();
} else {
if ($targetAuthority != '' && $base->getPath() === '') {
$targetPath = '/' . $rel->getPath();
$targetPath = '/'.$rel->getPath();
} else {
$lastSlashPos = strrpos($base->getPath(), '/');
if ($lastSlashPos === false) {
$targetPath = $rel->getPath();
} else {
$targetPath = substr($base->getPath(), 0, $lastSlashPos + 1) . $rel->getPath();
$targetPath = substr($base->getPath(), 0, $lastSlashPos + 1).$rel->getPath();
}
}
}
@ -127,8 +127,8 @@ final class UriResolver
*/
public static function relativize(UriInterface $base, UriInterface $target): UriInterface
{
if ($target->getScheme() !== '' &&
($base->getScheme() !== $target->getScheme() || $target->getAuthority() === '' && $base->getAuthority() !== '')
if ($target->getScheme() !== ''
&& ($base->getScheme() !== $target->getScheme() || $target->getAuthority() === '' && $base->getAuthority() !== '')
) {
return $target;
}
@ -185,7 +185,7 @@ final class UriResolver
}
}
$targetSegments[] = $targetLastSegment;
$relativePath = str_repeat('../', count($sourceSegments)) . implode('/', $targetSegments);
$relativePath = str_repeat('../', count($sourceSegments)).implode('/', $targetSegments);
// A reference to am empty last segment or an empty first sub-segment must be prefixed with "./".
// This also applies to a segment with a colon character (e.g., "file:colon") that cannot be used

View File

@ -90,6 +90,7 @@ final class Utils
}
$buffer .= $buf;
}
return $buffer;
}
@ -174,7 +175,7 @@ final class Utils
$standardPorts = ['http' => 80, 'https' => 443];
$scheme = $changes['uri']->getScheme();
if (isset($standardPorts[$scheme]) && $port != $standardPorts[$scheme]) {
$changes['set_headers']['Host'] .= ':' . $port;
$changes['set_headers']['Host'] .= ':'.$port;
}
}
}
@ -230,7 +231,7 @@ final class Utils
* @param StreamInterface $stream Stream to read from
* @param int|null $maxLength Maximum buffer length
*/
public static function readLine(StreamInterface $stream, ?int $maxLength = null): string
public static function readLine(StreamInterface $stream, int $maxLength = null): string
{
$buffer = '';
$size = 0;
@ -291,6 +292,7 @@ final class Utils
fwrite($stream, (string) $resource);
fseek($stream, 0);
}
return new Stream($stream, $options);
}
@ -308,6 +310,7 @@ final class Utils
fseek($stream, 0);
$resource = $stream;
}
return new Stream($resource, $options);
case 'object':
/** @var object $resource */
@ -320,6 +323,7 @@ final class Utils
}
$result = $resource->current();
$resource->next();
return $result;
}, $options);
} elseif (method_exists($resource, '__toString')) {
@ -334,7 +338,7 @@ final class Utils
return new PumpStream($resource, $options);
}
throw new \InvalidArgumentException('Invalid resource type: ' . gettype($resource));
throw new \InvalidArgumentException('Invalid resource type: '.gettype($resource));
}
/**

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# File initially created using https://github.com/MIchaelMainer/policyservicetoolkit/blob/main/branch_protection_export.ps1.
@ -10,7 +10,7 @@ configuration:
branchProtectionRules:
- branchNamePattern: dev
# This branch pattern applies to the following branches as of 06/12/2023 10:31:17:
# This branch pattern applies to the following branches as of 08/30/2023:
# dev
# Specifies whether this branch can be deleted. boolean
@ -33,6 +33,9 @@ configuration:
requiresConversationResolution: true
# Are merge commits prohibited from being pushed to this branch. boolean
requiresLinearHistory: false
# Required status checks to pass before merging. Values can be any string, but if the value does not correspond to any existing status check, the status check will be stuck on pending for status since nothing exists to push an actual status
requiredStatusChecks:
#- validate-pull-request #TODO: add this back once we are using Kiota
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
requiresStrictStatusChecks: true
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
@ -41,7 +44,7 @@ configuration:
restrictsReviewDismissals: false
- branchNamePattern: main
# This branch pattern applies to the following branches as of 06/12/2023 10:31:17:
# This branch pattern applies to the following branches as of 08/30/2023:
# main
# Specifies whether this branch can be deleted. boolean
@ -57,13 +60,16 @@ configuration:
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
requiredApprovingReviewsCount: 1
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
requireCodeOwnersReview: false
requireCodeOwnersReview: true
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
requiresCommitSignatures: false
# Are conversations required to be resolved before merging? boolean
requiresConversationResolution: true
# Are merge commits prohibited from being pushed to this branch. boolean
requiresLinearHistory: false
# Required status checks to pass before merging. Values can be any string, but if the value does not correspond to any existing status check, the status check will be stuck on pending for status since nothing exists to push an actual status
requiredStatusChecks:
#- validate-pull-request #TODO: add this back once we are using Kiota
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
requiresStrictStatusChecks: true
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.

View File

@ -0,0 +1,101 @@
id:
name: GitOps.PullRequestIssueManagement
description: GitOps.PullRequestIssueManagement primitive
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
scheduledSearches:
- description:
frequencies:
- hourly:
hour: 1
filters:
- isIssue
- isOpen
- hasLabel:
label: 'Needs: Author Feedback'
- hasLabel:
label: no-recent-activity
- noActivitySince:
days: 3
- isNotLabeledWith:
label: service bug
actions:
- closeIssue
- description:
frequencies:
- hourly:
hour: 1
filters:
- isIssue
- isOpen
- hasLabel:
label: 'Needs: Author Feedback'
- noActivitySince:
days: 4
- isNotLabeledWith:
label: no-recent-activity
actions:
- addLabel:
label: no-recent-activity
- addReply:
reply: This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
- description:
frequencies:
- hourly:
hour: 1
filters:
- isIssue
- isOpen
- hasLabel:
label: duplicate
- noActivitySince:
days: 1
actions:
- addReply:
reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes.
- closeIssue
eventResponderTasks:
- if:
- payloadType: Issue_Comment
- isAction:
action: Created
- isActivitySender:
issueAuthor: True
- hasLabel:
label: 'Needs: Author Feedback'
then:
- addLabel:
label: 'Needs: Attention :wave:'
- removeLabel:
label: 'Needs: Author Feedback'
description:
- if:
- payloadType: Issues
- not:
isAction:
action: Closed
- hasLabel:
label: no-recent-activity
then:
- removeLabel:
label: no-recent-activity
description:
- if:
- payloadType: Issues
- labelAdded:
label: service bug
then: []
description:
- if:
- payloadType: Pull_Request
- isAction:
action: Opened
then:
- addCodeFlowLink
description:
onFailure:
onSuccess:

View File

@ -1,36 +0,0 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# This action will bump the SDK version constant when a pull request against feat/kiota-preview is created
# from a branch path spec like kiota/v1.0/pipelinebuild/*.
name: "bump kiota sdk version"
on:
pull_request:
branches:
- feat/kiota-preview
paths:
- 'src/Generated/**'
defaults:
run:
shell: bash
jobs:
bump-sdk-version:
if: startsWith(github.head_ref, 'kiota/v1.0/pipelinebuild/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Git config user
run: |
git config --global user.email "GraphTooling@service.microsoft.com"
git config --global user.name "Microsoft Graph DevX Tooling"
- name: Run increment script
run: php scripts/BumpPreviewSdkVersion.php
- name: Commit and push changes if any
run: if git commit -am "Bump SDK version"; then git push origin $GITHUB_HEAD_REF; fi

View File

@ -1,16 +1,14 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# This action will bump the SDK version constant when a pull request against dev is created
# from a branch path spec like beta/pipelinebuild/* or v1.0/pipelinebuild/*.
name: "bump sdk version"
on:
pull_request:
push:
branches:
- dev
- "v1.0/pipelinebuild/*"
- "beta/pipelinebuild/*"
paths:
- 'src/Model/**'
- 'src/*/Model/**'
@ -22,10 +20,9 @@ defaults:
jobs:
bump-sdk-version:
if: startsWith(github.head_ref, 'beta/pipelinebuild/') || startsWith(github.head_ref, 'v1.0/pipelinebuild/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Git config user
run: |
@ -35,4 +32,4 @@ jobs:
run: php scripts/BumpStableSdkVersion.php
- name: Commit and push changes if any
run: if git commit -am "Bump SDK version"; then git push origin $GITHUB_HEAD_REF; fi
run: if git commit -am "Bump SDK version"; then git push origin $GITHUB_REF; fi

View File

@ -0,0 +1,24 @@
name: "create release"
on:
push:
tags:
'*'
defaults:
run:
shell: bash
jobs:
create-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Create Release
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
prerelease: ${{ contains(github.ref_name, 'RC') }}
skipIfReleaseExists: true

View File

@ -5,11 +5,9 @@ name: "Validate Pull Request"
on:
push:
branches: [ main, dev, feat/kiota-preview ]
branches: [ main, dev ]
pull_request:
branches: [ main, dev, feat/kiota-preview ]
# Add assigned to defaults as a hack to easily trigger code-gen PRs to run validation
types: [assigned, opened, synchronize, reopened]
branches: [ main, dev ]
defaults:
run:
@ -19,7 +17,7 @@ jobs:
validate-pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Validate composer file
run: |
composer validate

View File

@ -18,7 +18,7 @@ jobs:
create-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get SDK version and set environment variable
run: |

View File

@ -1,57 +0,0 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
name: "Update Docs"
on:
push:
branches: dev
defaults:
run:
shell: bash
jobs:
run-php-documentor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- uses: docker://phpdoc/phpdoc:3.0
with:
config: ./phpdoc.dist.xml
- name: Create unique docs branch name
run: echo "BRANCH=fix/update-docs/$(date +%s)" >> $GITHUB_ENV
- name: Create and checkout docs branch
run: git checkout -b ${{ env.BRANCH }}
- name: Run PHPDocumentor container
run: docker run --name phpDoc --rm -v $(pwd):/data phpdoc/phpdoc:3.0 run
- name: Config Git user
run: |
git config --global user.email "GraphTooling@service.microsoft.com"
git config --global user.name "Microsoft Graph DevX Tooling"
- name: Commit changes to docs/ folder (if any)
run: |
if git add . && git commit -m "Update docs/ folder"; then
git push origin ${{ env.BRANCH }} && echo "CREATE_PR=true" >> $GITHUB_ENV
else
echo "CREATE_PR=false" >> $GITHUB_ENV
fi
- name: Create PR
if: ${{ env.CREATE_PR == 'true' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE_TITLE: Generated docs using PHPDocumentor
MESSAGE_BODY: "This pull request was automatically created by GitHub Action `${{ github.workflow }}`. \n\n The action runs PHPDocumentor against the latest changes merged to `${{ github.ref }}`."
LABELS: generated
run: |
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
bin/hub pull-request -b dev -m "$MESSAGE_TITLE" -m "$MESSAGE_BODY" -l "$LABELS"

View File

@ -11,7 +11,7 @@ You can install the PHP SDK with Composer, either run `composer require microsof
```
{
"require": {
"microsoft/microsoft-graph": "^1.102.0"
"microsoft/microsoft-graph": "^1.107.0"
}
}
```

View File

@ -25,7 +25,7 @@ class DirectRoutingLogRow extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the calleeNumber
* Number of the user or bot who received the call (E.164 format, but may include additional data).
* Number of the user or bot who received the call (E.164 format, but may include more data).
*
* @return string|null The calleeNumber
*/
@ -40,7 +40,7 @@ class DirectRoutingLogRow extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the calleeNumber
* Number of the user or bot who received the call (E.164 format, but may include additional data).
* Number of the user or bot who received the call (E.164 format, but may include more data).
*
* @param string $val The value of the calleeNumber
*
@ -81,7 +81,7 @@ class DirectRoutingLogRow extends \Beta\Microsoft\Graph\Model\Entity
}
/**
* Gets the callerNumber
* Number of the user or bot who made the call (E.164 format, but may include additional data).
* Number of the user or bot who made the call (E.164 format, but may include more data).
*
* @return string|null The callerNumber
*/
@ -96,7 +96,7 @@ class DirectRoutingLogRow extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the callerNumber
* Number of the user or bot who made the call (E.164 format, but may include additional data).
* Number of the user or bot who made the call (E.164 format, but may include more data).
*
* @param string $val The value of the callerNumber
*
@ -344,7 +344,7 @@ class DirectRoutingLogRow extends \Beta\Microsoft\Graph\Model\Entity
/**
* Gets the inviteDateTime
* When the initial invite was sent.
* The date and time when the initial invite was sent.
*
* @return \DateTime|null The inviteDateTime
*/
@ -363,7 +363,7 @@ class DirectRoutingLogRow extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the inviteDateTime
* When the initial invite was sent.
* The date and time when the initial invite was sent.
*
* @param \DateTime $val The value to assign to the inviteDateTime
*
@ -432,7 +432,7 @@ class DirectRoutingLogRow extends \Beta\Microsoft\Graph\Model\Entity
}
/**
* Gets the otherPartyCountryCode
* Country code of the caller in case of an incoming call, or callee in case of an outgoing call. For details, see ISO 3166-1 alpha-2.
* Country code of the caller for an incoming call, or callee for an outgoing call. For details, see ISO 3166-1 alpha-2.
*
* @return string|null The otherPartyCountryCode
*/
@ -447,7 +447,7 @@ class DirectRoutingLogRow extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the otherPartyCountryCode
* Country code of the caller in case of an incoming call, or callee in case of an outgoing call. For details, see ISO 3166-1 alpha-2.
* Country code of the caller for an incoming call, or callee for an outgoing call. For details, see ISO 3166-1 alpha-2.
*
* @param string $val The value of the otherPartyCountryCode
*
@ -633,7 +633,7 @@ class DirectRoutingLogRow extends \Beta\Microsoft\Graph\Model\Entity
}
/**
* Gets the userId
* The unique identifier (GUID) of the user in Azure Active Directory. This and other user info will be null/empty for bot call types.
* The unique identifier (GUID) of the user in Azure Active Directory. This and other user info is null/empty for bot call types.
*
* @return string|null The userId
*/
@ -648,7 +648,7 @@ class DirectRoutingLogRow extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the userId
* The unique identifier (GUID) of the user in Azure Active Directory. This and other user info will be null/empty for bot call types.
* The unique identifier (GUID) of the user in Azure Active Directory. This and other user info is null/empty for bot call types.
*
* @param string $val The value of the userId
*
@ -661,7 +661,7 @@ class DirectRoutingLogRow extends \Beta\Microsoft\Graph\Model\Entity
}
/**
* Gets the userPrincipalName
* The user principal name (sign-in name) in Azure Active Directory. This is usually the same as the user's SIP address, and can be same as the user's e-mail address.
* The user principal name (sign-in name) in Azure Active Directory, is usually the same as the user's SIP address, and can be same as the user's e-mail address.
*
* @return string|null The userPrincipalName
*/
@ -676,7 +676,7 @@ class DirectRoutingLogRow extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the userPrincipalName
* The user principal name (sign-in name) in Azure Active Directory. This is usually the same as the user's SIP address, and can be same as the user's e-mail address.
* The user principal name (sign-in name) in Azure Active Directory, is usually the same as the user's SIP address, and can be same as the user's e-mail address.
*
* @param string $val The value of the userPrincipalName
*

View File

@ -415,7 +415,7 @@ class MediaStream extends \Beta\Microsoft\Graph\Model\Entity
/**
* Gets the endDateTime
* UTC time when the stream ended. The DateTimeOffset 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
* UTC time when the stream ended. The DateTimeOffset 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. This field is only available for streams that use the SIP protocol.
*
* @return \DateTime|null The endDateTime
*/
@ -434,7 +434,7 @@ class MediaStream extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the endDateTime
* UTC time when the stream ended. The DateTimeOffset 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
* UTC time when the stream ended. The DateTimeOffset 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. This field is only available for streams that use the SIP protocol.
*
* @param \DateTime $val The value to assign to the endDateTime
*
@ -776,7 +776,7 @@ class MediaStream extends \Beta\Microsoft\Graph\Model\Entity
/**
* Gets the startDateTime
* UTC time when the stream started. The DateTimeOffset 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
* UTC time when the stream started. The DateTimeOffset 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. This field is only available for streams that use the SIP protocol.
*
* @return \DateTime|null The startDateTime
*/
@ -795,7 +795,7 @@ class MediaStream extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the startDateTime
* UTC time when the stream started. The DateTimeOffset 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
* UTC time when the stream started. The DateTimeOffset 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. This field is only available for streams that use the SIP protocol.
*
* @param \DateTime $val The value to assign to the startDateTime
*

View File

@ -226,7 +226,7 @@ class NetworkInfo extends \Beta\Microsoft\Graph\Model\Entity
}
/**
* Gets the macAddress
* The media access control (MAC) address of the media endpoint's network device.
* The media access control (MAC) address of the media endpoint's network device. This value may be missing or shown as 02:00:00:00:00:00 due to operating system privacy policies.
*
* @return string|null The macAddress
*/
@ -241,7 +241,7 @@ class NetworkInfo extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the macAddress
* The media access control (MAC) address of the media endpoint's network device.
* The media access control (MAC) address of the media endpoint's network device. This value may be missing or shown as 02:00:00:00:00:00 due to operating system privacy policies.
*
* @param string $val The value of the macAddress
*

View File

@ -605,7 +605,7 @@ class PstnCallLogRow extends \Beta\Microsoft\Graph\Model\Entity
}
/**
* Gets the operator
* The telecommunications operator which provided PSTN services for this call. This may be Microsoft, or it may be a third-party operator via the Operator Connect Program.
* The telecommunications operator that provided PSTN services for this call. This may be Microsoft, or it may be a third-party operator via the Operator Connect Program.
*
* @return string|null The operator
*/
@ -620,7 +620,7 @@ class PstnCallLogRow extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the operator
* The telecommunications operator which provided PSTN services for this call. This may be Microsoft, or it may be a third-party operator via the Operator Connect Program.
* The telecommunications operator that provided PSTN services for this call. This may be Microsoft, or it may be a third-party operator via the Operator Connect Program.
*
* @param string $val The value of the operator
*
@ -633,7 +633,7 @@ class PstnCallLogRow extends \Beta\Microsoft\Graph\Model\Entity
}
/**
* Gets the otherPartyCountryCode
* Country code of the caller in case of an incoming call, or callee in case of an outgoing call. For details, see ISO 3166-1 alpha-2.
* Country code of the caller for an incoming call, or callee for an outgoing call. For details, see ISO 3166-1 alpha-2.
*
* @return string|null The otherPartyCountryCode
*/
@ -648,7 +648,7 @@ class PstnCallLogRow extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the otherPartyCountryCode
* Country code of the caller in case of an incoming call, or callee in case of an outgoing call. For details, see ISO 3166-1 alpha-2.
* Country code of the caller for an incoming call, or callee for an outgoing call. For details, see ISO 3166-1 alpha-2.
*
* @param string $val The value of the otherPartyCountryCode
*
@ -778,7 +778,7 @@ class PstnCallLogRow extends \Beta\Microsoft\Graph\Model\Entity
}
/**
* Gets the userId
* The unique identifier (GUID) of the user in Azure Active Directory. This and other user info will be null/empty for bot call types (ucap_in, ucap_out).
* The unique identifier (GUID) of the user in Azure Active Directory. This and other user info will be null/empty for bot call types (ucapin, ucapout).
*
* @return string|null The userId
*/
@ -793,7 +793,7 @@ class PstnCallLogRow extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the userId
* The unique identifier (GUID) of the user in Azure Active Directory. This and other user info will be null/empty for bot call types (ucap_in, ucap_out).
* The unique identifier (GUID) of the user in Azure Active Directory. This and other user info will be null/empty for bot call types (ucapin, ucapout).
*
* @param string $val The value of the userId
*

View File

@ -56,6 +56,39 @@ class AlertImpact extends \Beta\Microsoft\Graph\Model\Entity
$this->_propDict["aggregationType"] = $val;
return $this;
}
/**
* Gets the alertImpactDetails
* The detail information of the impact. For example, if the Frontline Cloud PCs near concurrency limit alert is triggered, the details contain the impacted Frontline license SKU name, such as Windows 365 Frontline 2 vCPU/8GB/128GB, and the corresponding impacted value.
*
* @return \Beta\Microsoft\Graph\Model\KeyValuePair|null The alertImpactDetails
*/
public function getAlertImpactDetails()
{
if (array_key_exists("alertImpactDetails", $this->_propDict)) {
if (is_a($this->_propDict["alertImpactDetails"], "\Beta\Microsoft\Graph\Model\KeyValuePair") || is_null($this->_propDict["alertImpactDetails"])) {
return $this->_propDict["alertImpactDetails"];
} else {
$this->_propDict["alertImpactDetails"] = new \Beta\Microsoft\Graph\Model\KeyValuePair($this->_propDict["alertImpactDetails"]);
return $this->_propDict["alertImpactDetails"];
}
}
return null;
}
/**
* Sets the alertImpactDetails
* The detail information of the impact. For example, if the Frontline Cloud PCs near concurrency limit alert is triggered, the details contain the impacted Frontline license SKU name, such as Windows 365 Frontline 2 vCPU/8GB/128GB, and the corresponding impacted value.
*
* @param \Beta\Microsoft\Graph\Model\KeyValuePair $val The value to assign to the alertImpactDetails
*
* @return AlertImpact The AlertImpact
*/
public function setAlertImpactDetails($val)
{
$this->_propDict["alertImpactDetails"] = $val;
return $this;
}
/**
* Gets the value
* The number value of the impact. For the aggregation types of count and affectedCloudPcCount, the value indicates the number of affected instances. For example, 6 affectedCloudPcCount means that 6 Cloud PCs are affected. For the aggregation types of percentage and affectedCloudPcPercentage, the value indicates the percent of affected instances. For example, 12 affectedCloudPcPercentage means that 12% of Cloud PCs are affected.

View File

@ -26,7 +26,7 @@ class AlertRecord extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the alertImpact
* The impact of the alert event. Consists of a number followed by the aggregation type. For example, 6 affectedCloudPcCount means that 6 Cloud PCs are affected. 12 affectedCloudPcPercentage means 12% of Cloud PCs are affected.
* The impact of the alert event. Consists of a list of key-value pair and a number followed by the aggregation type. For example, 6 affectedCloudPcCount means that 6 Cloud PCs are affected. 12 affectedCloudPcPercentage means 12% of Cloud PCs are affected. The list of key-value pair indicates the details of the alert impact.
*
* @return AlertImpact|null The alertImpact
*/
@ -45,7 +45,7 @@ class AlertRecord extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the alertImpact
* The impact of the alert event. Consists of a number followed by the aggregation type. For example, 6 affectedCloudPcCount means that 6 Cloud PCs are affected. 12 affectedCloudPcPercentage means 12% of Cloud PCs are affected.
* The impact of the alert event. Consists of a list of key-value pair and a number followed by the aggregation type. For example, 6 affectedCloudPcCount means that 6 Cloud PCs are affected. 12 affectedCloudPcPercentage means 12% of Cloud PCs are affected. The list of key-value pair indicates the details of the alert impact.
*
* @param AlertImpact $val The alertImpact
*
@ -88,7 +88,7 @@ class AlertRecord extends \Beta\Microsoft\Graph\Model\Entity
/**
* Gets the alertRuleTemplate
* The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue.
* The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue, cloudPcInGracePeriodScenario. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: cloudPcInGracePeriodScenario.
*
* @return AlertRuleTemplate|null The alertRuleTemplate
*/
@ -107,7 +107,7 @@ class AlertRecord extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the alertRuleTemplate
* The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue.
* The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue, cloudPcInGracePeriodScenario. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: cloudPcInGracePeriodScenario.
*
* @param AlertRuleTemplate $val The alertRuleTemplate
*

View File

@ -26,7 +26,7 @@ class AlertRule extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the alertRuleTemplate
* The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue.
* The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue, cloudPcInGracePeriodScenario. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: cloudPcInGracePeriodScenario.
*
* @return AlertRuleTemplate|null The alertRuleTemplate
*/
@ -45,7 +45,7 @@ class AlertRule extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the alertRuleTemplate
* The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue.
* The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue, cloudPcInGracePeriodScenario. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: cloudPcInGracePeriodScenario.
*
* @param AlertRuleTemplate $val The alertRuleTemplate
*

View File

@ -33,4 +33,6 @@ class AlertRuleTemplate extends Enum
const CLOUD_PC_IMAGE_UPLOAD_SCENARIO = "cloudPcImageUploadScenario";
const CLOUD_PC_ON_PREMISE_NETWORK_CONNECTION_CHECK_SCENARIO = "cloudPcOnPremiseNetworkConnectionCheckScenario";
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
const CLOUD_PC_IN_GRACE_PERIOD_SCENARIO = "cloudPcInGracePeriodScenario";
const CLOUD_PC_FRONTLINE_INSUFFICIENT_LICENSES_SCENARIO = "cloudPcFrontlineInsufficientLicensesScenario";
}

View File

@ -143,7 +143,7 @@ class PortalNotification extends \Beta\Microsoft\Graph\Model\Entity
/**
* Gets the alertRuleTemplate
* The associated alert rule template. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue.
* The associated alert rule template. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue, cloudPcInGracePeriodScenario. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: cloudPcInGracePeriodScenario.
*
* @return AlertRuleTemplate|null The alertRuleTemplate
*/
@ -162,7 +162,7 @@ class PortalNotification extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the alertRuleTemplate
* The associated alert rule template. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue.
* The associated alert rule template. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue, cloudPcInGracePeriodScenario. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: cloudPcInGracePeriodScenario.
*
* @param AlertRuleTemplate $val The value to assign to the alertRuleTemplate
*

View File

@ -92,7 +92,7 @@ class CaseSettings extends \Beta\Microsoft\Graph\Model\Entity
/**
* Gets the topicModeling
* The Topic Modeling (Themes) settings for the case.
* The article Modeling (Themes) settings for the case.
*
* @return TopicModelingSettings|null The topicModeling
*/
@ -111,7 +111,7 @@ class CaseSettings extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the topicModeling
* The Topic Modeling (Themes) settings for the case.
* The article Modeling (Themes) settings for the case.
*
* @param TopicModelingSettings $val The topicModeling
*

View File

@ -92,7 +92,7 @@ class DataSource extends \Beta\Microsoft\Graph\Model\Entity
/**
* Gets the displayName
* The display name of the dataSource. This will be the name of the SharePoint site.
* The display name of the dataSource, and is the name of the SharePoint site.
*
* @return string|null The displayName
*/
@ -107,7 +107,7 @@ class DataSource extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the displayName
* The display name of the dataSource. This will be the name of the SharePoint site.
* The display name of the dataSource, and is the name of the SharePoint site.
*
* @param string $val The displayName
*

View File

@ -26,7 +26,7 @@ class NoncustodialDataSource extends DataSourceContainer
{
/**
* Gets the applyHoldToSource
* Indicates if hold is applied to non-custodial data source (such as mailbox or site).
* Indicates if hold is applied to noncustodial data source (such as mailbox or site).
*
* @return bool|null The applyHoldToSource
*/
@ -41,7 +41,7 @@ class NoncustodialDataSource extends DataSourceContainer
/**
* Sets the applyHoldToSource
* Indicates if hold is applied to non-custodial data source (such as mailbox or site).
* Indicates if hold is applied to noncustodial data source (such as mailbox or site).
*
* @param bool $val The applyHoldToSource
*
@ -55,7 +55,7 @@ class NoncustodialDataSource extends DataSourceContainer
/**
* Gets the dataSource
* User source or SharePoint site data source as non-custodial data source.
* User source or SharePoint site data source as noncustodial data source.
*
* @return DataSource|null The dataSource
*/
@ -74,7 +74,7 @@ class NoncustodialDataSource extends DataSourceContainer
/**
* Sets the dataSource
* User source or SharePoint site data source as non-custodial data source.
* User source or SharePoint site data source as noncustodial data source.
*
* @param DataSource $val The dataSource
*

View File

@ -81,7 +81,7 @@ class TopicModelingSettings extends \Beta\Microsoft\Graph\Model\Entity
}
/**
* Gets the isEnabled
* Indicates whether themes is enabled for the case.
* Indicates whether themes are enabled for the case.
*
* @return bool|null The isEnabled
*/
@ -96,7 +96,7 @@ class TopicModelingSettings extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the isEnabled
* Indicates whether themes is enabled for the case.
* Indicates whether themes are enabled for the case.
*
* @param bool $val The value of the isEnabled
*

View File

@ -26,7 +26,6 @@ class ComplianceSettings extends \Beta\Microsoft\Graph\Model\Entity
/**
* Gets the eDiscoveryResultTemplates
* Enables the developer to define the appearance of the content and configure conditions that dictate when the template should be displayed. Maximum of two eDiscovery result templates per connection.
*
* @return DisplayTemplate|null The eDiscoveryResultTemplates
*/
@ -45,7 +44,6 @@ class ComplianceSettings extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the eDiscoveryResultTemplates
* Enables the developer to define the appearance of the content and configure conditions that dictate when the template should be displayed. Maximum of two eDiscovery result templates per connection.
*
* @param DisplayTemplate $val The value to assign to the eDiscoveryResultTemplates
*

View File

@ -59,7 +59,6 @@ class ExternalConnection extends \Beta\Microsoft\Graph\Model\Entity
/**
* Gets the complianceSettings
* The settings required for the connection to participate in eDiscovery, such as the display templates for eDiscovery results.
*
* @return ComplianceSettings|null The complianceSettings
*/
@ -78,7 +77,6 @@ class ExternalConnection extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the complianceSettings
* The settings required for the connection to participate in eDiscovery, such as the display templates for eDiscovery results.
*
* @param ComplianceSettings $val The complianceSettings
*
@ -183,7 +181,7 @@ class ExternalConnection extends \Beta\Microsoft\Graph\Model\Entity
/**
* Gets the enabledContentExperiences
* The list of content experiences the connection will participate in. Possible values are search and compliance.
* The list of content experiences the connection will participate in. Possible values are search.
*
* @return ContentExperienceType|null The enabledContentExperiences
*/
@ -202,7 +200,7 @@ class ExternalConnection extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the enabledContentExperiences
* The list of content experiences the connection will participate in. Possible values are search and compliance.
* The list of content experiences the connection will participate in. Possible values are search.
*
* @param ContentExperienceType $val The enabledContentExperiences
*

View File

@ -25,7 +25,7 @@ class Property extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the aliases
* A set of aliases or a friendly names for the property. Maximum 32 characters. Only alphanumeric characters allowed. For example, each string might not contain control characters, whitespace, or any of the following: :, ;, ,, (, ), [, ], {, }, %, $, +, !, *, =, &amp;, ?, @, #, /, ~, ', ', &amp;lt;, &amp;gt;, `, ^. Optional.
* A set of aliases or friendly names for the property. Maximum 32 characters. Only alphanumeric characters allowed. For example, each string might not contain control characters, whitespace, or any of the following: :, ;, ,, (, ), [, ], {, }, %, $, +, !, *, =, &amp;, ?, @, #, /, ~, ', ', &amp;lt;, &amp;gt;, `, ^. Optional.
*
* @return string|null The aliases
*/
@ -40,7 +40,7 @@ class Property extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the aliases
* A set of aliases or a friendly names for the property. Maximum 32 characters. Only alphanumeric characters allowed. For example, each string might not contain control characters, whitespace, or any of the following: :, ;, ,, (, ), [, ], {, }, %, $, +, !, *, =, &amp;, ?, @, #, /, ~, ', ', &amp;lt;, &amp;gt;, `, ^. Optional.
* A set of aliases or friendly names for the property. Maximum 32 characters. Only alphanumeric characters allowed. For example, each string might not contain control characters, whitespace, or any of the following: :, ;, ,, (, ), [, ], {, }, %, $, +, !, *, =, &amp;, ?, @, #, /, ~, ', ', &amp;lt;, &amp;gt;, `, ^. Optional.
*
* @param string $val The value of the aliases
*
@ -165,7 +165,7 @@ class Property extends \Beta\Microsoft\Graph\Model\Entity
}
/**
* Gets the isSearchable
* Specifies if the property is searchable. Only properties of type string or stringCollection can be searchable. Non-searchable properties are not added to the search index. Optional.
* Specifies if the property is searchable. Only properties of type string or stringCollection can be searchable. Non-searchable properties aren't added to the search index. Optional.
*
* @return bool|null The isSearchable
*/
@ -180,7 +180,7 @@ class Property extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the isSearchable
* Specifies if the property is searchable. Only properties of type string or stringCollection can be searchable. Non-searchable properties are not added to the search index. Optional.
* Specifies if the property is searchable. Only properties of type string or stringCollection can be searchable. Non-searchable properties aren't added to the search index. Optional.
*
* @param bool $val The value of the isSearchable
*
@ -194,7 +194,7 @@ class Property extends \Beta\Microsoft\Graph\Model\Entity
/**
* Gets the labels
* Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (e.g. better relevance). Optional.The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, unknownFutureValue, iconUrl, containerName, containerUrl. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: iconUrl, containerName, containerUrl.
* Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (for example, better relevance). Optional.The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, unknownFutureValue, iconUrl, containerName, containerUrl. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: iconUrl, containerName, containerUrl.
*
* @return Label|null The labels
*/
@ -213,7 +213,7 @@ class Property extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the labels
* Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (e.g. better relevance). Optional.The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, unknownFutureValue, iconUrl, containerName, containerUrl. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: iconUrl, containerName, containerUrl.
* Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (for example, better relevance). Optional.The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, unknownFutureValue, iconUrl, containerName, containerUrl. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: iconUrl, containerName, containerUrl.
*
* @param Label $val The value to assign to the labels
*

View File

@ -88,7 +88,7 @@ class Workflow extends WorkflowBase
/**
* Gets the nextScheduleRunDateTime
* The date time when the workflow is expected to run next based on the schedule interval, if there are any users matching the execution conditions. Supports $filter(lt,gt) and $orderBy.
* The date time when the workflow is expected to run next based on the schedule interval, if there are any users matching the execution conditions. Supports $filter(lt,gt) and $orderby.
*
* @return \DateTime|null The nextScheduleRunDateTime
*/
@ -107,7 +107,7 @@ class Workflow extends WorkflowBase
/**
* Sets the nextScheduleRunDateTime
* The date time when the workflow is expected to run next based on the schedule interval, if there are any users matching the execution conditions. Supports $filter(lt,gt) and $orderBy.
* The date time when the workflow is expected to run next based on the schedule interval, if there are any users matching the execution conditions. Supports $filter(lt,gt) and $orderby.
*
* @param \DateTime $val The nextScheduleRunDateTime
*

View File

@ -214,7 +214,7 @@ class WorkflowBase implements \JsonSerializable
/**
* Gets the isEnabled
* Whether the workflow is enabled or disabled. If this setting is true, the workflow can be run on demand or on schedule when isSchedulingEnabled is true.
* Determines whether the workflow is enabled or disabled. If this setting is true, the workflow can be run on demand or on schedule when isSchedulingEnabled is true.
*
* @return bool|null The isEnabled
*/
@ -229,7 +229,7 @@ class WorkflowBase implements \JsonSerializable
/**
* Sets the isEnabled
* Whether the workflow is enabled or disabled. If this setting is true, the workflow can be run on demand or on schedule when isSchedulingEnabled is true.
* Determines whether the workflow is enabled or disabled. If this setting is true, the workflow can be run on demand or on schedule when isSchedulingEnabled is true.
*
* @param bool $val The isEnabled
*
@ -243,7 +243,7 @@ class WorkflowBase implements \JsonSerializable
/**
* Gets the isSchedulingEnabled
* If true, the Lifecycle Workflow engine executes the workflow based on the schedule defined by tenant settings. Cannot be true for a disabled workflow (where isEnabled is false).
* If true, the Lifecycle Workflow engine executes the workflow based on the schedule defined by tenant settings. Can't be true for a disabled workflow (where isEnabled is false).
*
* @return bool|null The isSchedulingEnabled
*/
@ -258,7 +258,7 @@ class WorkflowBase implements \JsonSerializable
/**
* Sets the isSchedulingEnabled
* If true, the Lifecycle Workflow engine executes the workflow based on the schedule defined by tenant settings. Cannot be true for a disabled workflow (where isEnabled is false).
* If true, the Lifecycle Workflow engine executes the workflow based on the schedule defined by tenant settings. Can't be true for a disabled workflow (where isEnabled is false).
*
* @param bool $val The isSchedulingEnabled
*

View File

@ -26,7 +26,7 @@ class AuditEvent extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the activity
* A string which uniquely represents the operation that occurred. Required. Read-only.
* A string that uniquely represents the operation that occurred. Required. Read-only.
*
* @return string|null The activity
*/
@ -41,7 +41,7 @@ class AuditEvent extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the activity
* A string which uniquely represents the operation that occurred. Required. Read-only.
* A string that uniquely represents the operation that occurred. Required. Read-only.
*
* @param string $val The activity
*
@ -55,7 +55,7 @@ class AuditEvent extends \Beta\Microsoft\Graph\Model\Entity
/**
* Gets the activityDateTime
* The time when the activity ocurred. Required. Read-only.
* The time when the activity occurred. Required. Read-only.
*
* @return \DateTime|null The activityDateTime
*/
@ -74,7 +74,7 @@ class AuditEvent extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the activityDateTime
* The time when the activity ocurred. Required. Read-only.
* The time when the activity occurred. Required. Read-only.
*
* @param \DateTime $val The activityDateTime
*
@ -117,7 +117,7 @@ class AuditEvent extends \Beta\Microsoft\Graph\Model\Entity
/**
* Gets the category
* A category which represents a logical grouping of activities. Required. Read-only.
* A category that represents a logical grouping of activities. Required. Read-only.
*
* @return string|null The category
*/
@ -132,7 +132,7 @@ class AuditEvent extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the category
* A category which represents a logical grouping of activities. Required. Read-only.
* A category that represents a logical grouping of activities. Required. Read-only.
*
* @param string $val The category
*
@ -349,7 +349,7 @@ class AuditEvent extends \Beta\Microsoft\Graph\Model\Entity
/**
* Gets the tenantIds
* The collection of Azure Active Directory tenant identifiers for the managed tenants that were impacted by this change. This is formatted as a list of comma-separated values. Required. Read-only.
* The collection of Azure Active Directory tenant identifiers for the managed tenants that were affected by a change, and is formatted as a list of comma-separated values. Required. Read-only.
*
* @return string|null The tenantIds
*/
@ -364,7 +364,7 @@ class AuditEvent extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the tenantIds
* The collection of Azure Active Directory tenant identifiers for the managed tenants that were impacted by this change. This is formatted as a list of comma-separated values. Required. Read-only.
* The collection of Azure Active Directory tenant identifiers for the managed tenants that were affected by a change, and is formatted as a list of comma-separated values. Required. Read-only.
*
* @param string $val The tenantIds
*
@ -378,7 +378,7 @@ class AuditEvent extends \Beta\Microsoft\Graph\Model\Entity
/**
* Gets the tenantNames
* The collection of tenant names that were impacted by this change. This is formatted as a list of comma-separated values. Required. Read-only.
* The collection of tenant names that were affected by a change, and is formatted as a list of comma-separated values. Required. Read-only.
*
* @return string|null The tenantNames
*/
@ -393,7 +393,7 @@ class AuditEvent extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the tenantNames
* The collection of tenant names that were impacted by this change. This is formatted as a list of comma-separated values. Required. Read-only.
* The collection of tenant names that were affected by a change, and is formatted as a list of comma-separated values. Required. Read-only.
*
* @param string $val The tenantNames
*

View File

@ -320,6 +320,7 @@ class CredentialUserRegistrationsSummary extends \Beta\Microsoft\Graph\Model\Ent
/**
* Gets the tenantLicenseType
* The license type associated with the tenant; for example, AADFree, AADPremium1, AADPremium2.
*
* @return string|null The tenantLicenseType
*/
@ -334,6 +335,7 @@ class CredentialUserRegistrationsSummary extends \Beta\Microsoft\Graph\Model\Ent
/**
* Sets the tenantLicenseType
* The license type associated with the tenant; for example, AADFree, AADPremium1, AADPremium2.
*
* @param string $val The tenantLicenseType
*

View File

@ -25,7 +25,7 @@ class AccessPackageLocalizedContent extends Entity
{
/**
* Gets the defaultText
* The fallback string, which is used when a requested localization is not available. Required.
* The fallback string, which is used when a requested localization isn't available. Required.
*
* @return string|null The defaultText
*/
@ -40,7 +40,7 @@ class AccessPackageLocalizedContent extends Entity
/**
* Sets the defaultText
* The fallback string, which is used when a requested localization is not available. Required.
* The fallback string, which is used when a requested localization isn't available. Required.
*
* @param string $val The value of the defaultText
*

View File

@ -58,7 +58,7 @@ class AccessPackageResourceAttribute extends Entity
}
/**
* Gets the attributeName
* The name of the attribute in the end system. If the destination is accessPackageUserDirectoryAttributeStore, then a user property such as jobTitle or a directory schema extension for the user object type, such as extension_2b676109c7c74ae2b41549205f1947ed_personalTitle.
* The name of the attribute in the end system. If the destination is accessPackageUserDirectoryAttributeStore, then a user property such as jobTitle or a directory schema extension for the user object type, such as extension2b676109c7c74ae2b41549205f1947edpersonalTitle.
*
* @return string|null The attributeName
*/
@ -73,7 +73,7 @@ class AccessPackageResourceAttribute extends Entity
/**
* Sets the attributeName
* The name of the attribute in the end system. If the destination is accessPackageUserDirectoryAttributeStore, then a user property such as jobTitle or a directory schema extension for the user object type, such as extension_2b676109c7c74ae2b41549205f1947ed_personalTitle.
* The name of the attribute in the end system. If the destination is accessPackageUserDirectoryAttributeStore, then a user property such as jobTitle or a directory schema extension for the user object type, such as extension2b676109c7c74ae2b41549205f1947edpersonalTitle.
*
* @param string $val The value of the attributeName
*

View File

@ -53,6 +53,37 @@ class AccessPackageSubject extends Entity
return $this;
}
/**
* Gets the cleanupScheduledDateTime
*
* @return \DateTime|null The cleanupScheduledDateTime
*/
public function getCleanupScheduledDateTime()
{
if (array_key_exists("cleanupScheduledDateTime", $this->_propDict)) {
if (is_a($this->_propDict["cleanupScheduledDateTime"], "\DateTime") || is_null($this->_propDict["cleanupScheduledDateTime"])) {
return $this->_propDict["cleanupScheduledDateTime"];
} else {
$this->_propDict["cleanupScheduledDateTime"] = new \DateTime($this->_propDict["cleanupScheduledDateTime"]);
return $this->_propDict["cleanupScheduledDateTime"];
}
}
return null;
}
/**
* Sets the cleanupScheduledDateTime
*
* @param \DateTime $val The cleanupScheduledDateTime
*
* @return AccessPackageSubject
*/
public function setCleanupScheduledDateTime($val)
{
$this->_propDict["cleanupScheduledDateTime"] = $val;
return $this;
}
/**
* Gets the connectedOrganizationId
* The identifier of the connected organization of the subject.

View File

@ -64,7 +64,7 @@ class AccessPackageTextInputQuestion extends AccessPackageQuestion
}
/**
* Gets the regexPattern
* This is the regex pattern that the corresponding text answer must follow.
* The regex pattern that the corresponding text answer must follow.
*
* @return string|null The regexPattern
*/
@ -79,7 +79,7 @@ class AccessPackageTextInputQuestion extends AccessPackageQuestion
/**
* Sets the regexPattern
* This is the regex pattern that the corresponding text answer must follow.
* The regex pattern that the corresponding text answer must follow.
*
* @param string $val The value of the regexPattern
*

View File

@ -55,7 +55,7 @@ class AccessReviewDecision extends Entity
/**
* Gets the accessReviewId
* The feature-generated id of the access review.
* The feature-generated ID of the access review.
*
* @return string|null The accessReviewId
*/
@ -70,7 +70,7 @@ class AccessReviewDecision extends Entity
/**
* Sets the accessReviewId
* The feature-generated id of the access review.
* The feature-generated ID of the access review.
*
* @param string $val The accessReviewId
*
@ -84,7 +84,7 @@ class AccessReviewDecision extends Entity
/**
* Gets the appliedBy
* When the review completes, if the results were manually applied, the user identity of the user who applied the decision. If the review was auto-applied, the userPrincipalName is empty.
* When the review completes, if the results were manually applied, the user identity of the user who applied the decision. If the review was autoapplied, the userPrincipalName is empty.
*
* @return UserIdentity|null The appliedBy
*/
@ -103,7 +103,7 @@ class AccessReviewDecision extends Entity
/**
* Sets the appliedBy
* When the review completes, if the results were manually applied, the user identity of the user who applied the decision. If the review was auto-applied, the userPrincipalName is empty.
* When the review completes, if the results were manually applied, the user identity of the user who applied the decision. If the review was autoapplied, the userPrincipalName is empty.
*
* @param UserIdentity $val The appliedBy
*

View File

@ -93,7 +93,7 @@ class AccessReviewHistoryDefinition extends Entity
/**
* Gets the decisions
* Determines which review decisions will be included in the fetched review history data if specified. Optional on create. All decisions will be included by default if no decisions are provided on create. Possible values are: approve, deny, dontKnow, notReviewed, and notNotified.
* Determines which review decisions will be included in the fetched review history data if specified. Optional on create. All decisions are included by default if no decisions are provided on create. Possible values are: approve, deny, dontKnow, notReviewed, and notNotified.
*
* @return array|null The decisions
*/
@ -108,7 +108,7 @@ class AccessReviewHistoryDefinition extends Entity
/**
* Sets the decisions
* Determines which review decisions will be included in the fetched review history data if specified. Optional on create. All decisions will be included by default if no decisions are provided on create. Possible values are: approve, deny, dontKnow, notReviewed, and notNotified.
* Determines which review decisions will be included in the fetched review history data if specified. Optional on create. All decisions are included by default if no decisions are provided on create. Possible values are: approve, deny, dontKnow, notReviewed, and notNotified.
*
* @param AccessReviewHistoryDecisionFilter[] $val The decisions
*
@ -242,7 +242,7 @@ class AccessReviewHistoryDefinition extends Entity
/**
* Gets the reviewHistoryPeriodStartDateTime
* A timestamp. Reviews starting on or before this date will be included in the fetched history data. Only required if scheduleSettings is not defined.
* A timestamp. Reviews starting on or before this date will be included in the fetched history data. Only required if scheduleSettings isn't defined.
*
* @return \DateTime|null The reviewHistoryPeriodStartDateTime
*/
@ -261,7 +261,7 @@ class AccessReviewHistoryDefinition extends Entity
/**
* Sets the reviewHistoryPeriodStartDateTime
* A timestamp. Reviews starting on or before this date will be included in the fetched history data. Only required if scheduleSettings is not defined.
* A timestamp. Reviews starting on or before this date will be included in the fetched history data. Only required if scheduleSettings isn't defined.
*
* @param \DateTime $val The reviewHistoryPeriodStartDateTime
*
@ -275,7 +275,7 @@ class AccessReviewHistoryDefinition extends Entity
/**
* Gets the scheduleSettings
* The settings for a recurring access review history definition series. Only required if reviewHistoryPeriodStartDateTime or reviewHistoryPeriodEndDateTime are not defined. Not supported yet.
* The settings for a recurring access review history definition series. Only required if reviewHistoryPeriodStartDateTime or reviewHistoryPeriodEndDateTime aren't defined. Not supported yet.
*
* @return AccessReviewHistoryScheduleSettings|null The scheduleSettings
*/
@ -294,7 +294,7 @@ class AccessReviewHistoryDefinition extends Entity
/**
* Sets the scheduleSettings
* The settings for a recurring access review history definition series. Only required if reviewHistoryPeriodStartDateTime or reviewHistoryPeriodEndDateTime are not defined. Not supported yet.
* The settings for a recurring access review history definition series. Only required if reviewHistoryPeriodStartDateTime or reviewHistoryPeriodEndDateTime aren't defined. Not supported yet.
*
* @param AccessReviewHistoryScheduleSettings $val The scheduleSettings
*
@ -372,7 +372,7 @@ class AccessReviewHistoryDefinition extends Entity
/**
* Gets the instances
* If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that does not recur will have exactly one instance.
* If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that doesn't recur will have exactly one instance.
*
* @return array|null The instances
*/
@ -387,7 +387,7 @@ class AccessReviewHistoryDefinition extends Entity
/**
* Sets the instances
* If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that does not recur will have exactly one instance.
* If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that doesn't recur will have exactly one instance.
*
* @param AccessReviewHistoryInstance[] $val The instances
*

View File

@ -26,7 +26,7 @@ class AccessReviewHistoryInstance extends Entity
{
/**
* Gets the downloadUri
* Uri which can be used to retrieve review history data. This URI will be active for 24 hours after being generated. Required.
* Uri that can be used to retrieve review history data. This URI will be active for 24 hours after being generated. Required.
*
* @return string|null The downloadUri
*/
@ -41,7 +41,7 @@ class AccessReviewHistoryInstance extends Entity
/**
* Sets the downloadUri
* Uri which can be used to retrieve review history data. This URI will be active for 24 hours after being generated. Required.
* Uri that can be used to retrieve review history data. This URI will be active for 24 hours after being generated. Required.
*
* @param string $val The downloadUri
*
@ -121,7 +121,7 @@ class AccessReviewHistoryInstance extends Entity
/**
* Gets the reviewHistoryPeriodEndDateTime
* Timestamp, reviews ending on or before this date will be included in the fetched history data.
* Timestamp, reviews ending on or before this date are in the fetched history data.
*
* @return \DateTime|null The reviewHistoryPeriodEndDateTime
*/
@ -140,7 +140,7 @@ class AccessReviewHistoryInstance extends Entity
/**
* Sets the reviewHistoryPeriodEndDateTime
* Timestamp, reviews ending on or before this date will be included in the fetched history data.
* Timestamp, reviews ending on or before this date are in the fetched history data.
*
* @param \DateTime $val The reviewHistoryPeriodEndDateTime
*
@ -154,7 +154,7 @@ class AccessReviewHistoryInstance extends Entity
/**
* Gets the reviewHistoryPeriodStartDateTime
* Timestamp, reviews starting on or after this date will be included in the fetched history data.
* Timestamp, reviews starting on or after this date are in the fetched history data.
*
* @return \DateTime|null The reviewHistoryPeriodStartDateTime
*/
@ -173,7 +173,7 @@ class AccessReviewHistoryInstance extends Entity
/**
* Sets the reviewHistoryPeriodStartDateTime
* Timestamp, reviews starting on or after this date will be included in the fetched history data.
* Timestamp, reviews starting on or after this date are in the fetched history data.
*
* @param \DateTime $val The reviewHistoryPeriodStartDateTime
*

View File

@ -25,7 +25,7 @@ class AccessReviewNotificationRecipientQueryScope extends AccessReviewNotificati
{
/**
* Gets the query
* This represents the query for who the recipients are. For example, /groups/{group id}/members for group members and /users/{user id} for a specific user.
* Represents the query for who the recipients are. For example, /groups/{group id}/members for group members and /users/{user id} for a specific user.
*
* @return string|null The query
*/
@ -40,7 +40,7 @@ class AccessReviewNotificationRecipientQueryScope extends AccessReviewNotificati
/**
* Sets the query
* This represents the query for who the recipients are. For example, /groups/{group id}/members for group members and /users/{user id} for a specific user.
* Represents the query for who the recipients are. For example, /groups/{group id}/members for group members and /users/{user id} for a specific user.
*
* @param string $val The value of the query
*
@ -53,7 +53,7 @@ class AccessReviewNotificationRecipientQueryScope extends AccessReviewNotificati
}
/**
* Gets the queryRoot
* In the scenario where reviewers need to be specified dynamically, this property is used to indicate the relative source of the query. This property is only required if a relative query that is, ./manager) is specified.
* In the scenario where reviewers need to be specified dynamically, indicates the relative source of the query. This property is only required if a relative query (that is, ./manager) is specified.
*
* @return string|null The queryRoot
*/
@ -68,7 +68,7 @@ class AccessReviewNotificationRecipientQueryScope extends AccessReviewNotificati
/**
* Sets the queryRoot
* In the scenario where reviewers need to be specified dynamically, this property is used to indicate the relative source of the query. This property is only required if a relative query that is, ./manager) is specified.
* In the scenario where reviewers need to be specified dynamically, indicates the relative source of the query. This property is only required if a relative query (that is, ./manager) is specified.
*
* @param string $val The value of the queryRoot
*

View File

@ -179,7 +179,7 @@ class AccessReviewScheduleDefinition extends Entity
/**
* Gets the descriptionForReviewers
* Description provided by review creators to provide more context of the review to reviewers. Reviewers will see this description in the email sent to them requesting their review. Email notifications support up to 256 characters. Supports $select.
* Description provided by review creators to provide more context of the review to reviewers. Reviewers see this description in the email sent to them requesting their review. Email notifications support up to 256 characters. Supports $select.
*
* @return string|null The descriptionForReviewers
*/
@ -194,7 +194,7 @@ class AccessReviewScheduleDefinition extends Entity
/**
* Sets the descriptionForReviewers
* Description provided by review creators to provide more context of the review to reviewers. Reviewers will see this description in the email sent to them requesting their review. Email notifications support up to 256 characters. Supports $select.
* Description provided by review creators to provide more context of the review to reviewers. Reviewers see this description in the email sent to them requesting their review. Email notifications support up to 256 characters. Supports $select.
*
* @param string $val The descriptionForReviewers
*
@ -208,7 +208,7 @@ class AccessReviewScheduleDefinition extends Entity
/**
* Gets the displayName
* Name of the access review series. Supports $select and $orderBy. Required on create.
* Name of the access review series. Supports $select and $orderby. Required on create.
*
* @return string|null The displayName
*/
@ -223,7 +223,7 @@ class AccessReviewScheduleDefinition extends Entity
/**
* Sets the displayName
* Name of the access review series. Supports $select and $orderBy. Required on create.
* Name of the access review series. Supports $select and $orderby. Required on create.
*
* @param string $val The displayName
*
@ -238,7 +238,7 @@ class AccessReviewScheduleDefinition extends Entity
/**
* Gets the fallbackReviewers
* This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner does not exist, or manager is specified as reviewer but a user's manager does not exist. See accessReviewReviewerScope. Replaces backupReviewers. Supports $select. NOTE: The value of this property will be ignored if fallback reviewers are assigned through the stageSettings property.
* This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner doesn't exist, or manager is specified as reviewer but a user's manager doesn't exist. See accessReviewReviewerScope. Replaces backupReviewers. Supports $select. NOTE: The value of this property will be ignored if fallback reviewers are assigned through the stageSettings property.
*
* @return array|null The fallbackReviewers
*/
@ -253,7 +253,7 @@ class AccessReviewScheduleDefinition extends Entity
/**
* Sets the fallbackReviewers
* This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner does not exist, or manager is specified as reviewer but a user's manager does not exist. See accessReviewReviewerScope. Replaces backupReviewers. Supports $select. NOTE: The value of this property will be ignored if fallback reviewers are assigned through the stageSettings property.
* This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner doesn't exist, or manager is specified as reviewer but a user's manager doesn't exist. See accessReviewReviewerScope. Replaces backupReviewers. Supports $select. NOTE: The value of this property will be ignored if fallback reviewers are assigned through the stageSettings property.
*
* @param AccessReviewReviewerScope[] $val The fallbackReviewers
*
@ -267,7 +267,7 @@ class AccessReviewScheduleDefinition extends Entity
/**
* Gets the instanceEnumerationScope
* This property is required when scoping a review to guest users' access across all Microsoft 365 groups and determines which Microsoft 365 groups are reviewed. Each group will become a unique accessReviewInstance of the access review series. For supported scopes, see accessReviewScope. Supports $select. For examples of options for configuring instanceEnumerationScope, see Configure the scope of your access review definition using the Microsoft Graph API.
* This property is required when scoping a review to guest users' access across all Microsoft 365 groups and determines which Microsoft 365 groups are reviewed. Each group becomes a unique accessReviewInstance of the access review series. For supported scopes, see accessReviewScope. Supports $select. For examples of options for configuring instanceEnumerationScope, see Configure the scope of your access review definition using the Microsoft Graph API.
*
* @return AccessReviewScope|null The instanceEnumerationScope
*/
@ -286,7 +286,7 @@ class AccessReviewScheduleDefinition extends Entity
/**
* Sets the instanceEnumerationScope
* This property is required when scoping a review to guest users' access across all Microsoft 365 groups and determines which Microsoft 365 groups are reviewed. Each group will become a unique accessReviewInstance of the access review series. For supported scopes, see accessReviewScope. Supports $select. For examples of options for configuring instanceEnumerationScope, see Configure the scope of your access review definition using the Microsoft Graph API.
* This property is required when scoping a review to guest users' access across all Microsoft 365 groups and determines which Microsoft 365 groups are reviewed. Each group becomes a unique accessReviewInstance of the access review series. For supported scopes, see accessReviewScope. Supports $select. For examples of options for configuring instanceEnumerationScope, see Configure the scope of your access review definition using the Microsoft Graph API.
*
* @param AccessReviewScope $val The instanceEnumerationScope
*
@ -430,7 +430,7 @@ class AccessReviewScheduleDefinition extends Entity
/**
* Gets the stageSettings
* Required only for a multi-stage access review to define the stages and their settings. You can break down each review instance into up to three sequential stages, where each stage can have a different set of reviewers, fallback reviewers, and settings. Stages will be created sequentially based on the dependsOn property. Optional. When this property is defined, its settings are used instead of the corresponding settings in the accessReviewScheduleDefinition object and its settings, reviewers, and fallbackReviewers properties.
* Required only for a multi-stage access review to define the stages and their settings. You can break down each review instance into up to three sequential stages, where each stage can have a different set of reviewers, fallback reviewers, and settings. Stages are created sequentially based on the dependsOn property. Optional. When this property is defined, its settings are used instead of the corresponding settings in the accessReviewScheduleDefinition object and its settings, reviewers, and fallbackReviewers properties.
*
* @return array|null The stageSettings
*/
@ -445,7 +445,7 @@ class AccessReviewScheduleDefinition extends Entity
/**
* Sets the stageSettings
* Required only for a multi-stage access review to define the stages and their settings. You can break down each review instance into up to three sequential stages, where each stage can have a different set of reviewers, fallback reviewers, and settings. Stages will be created sequentially based on the dependsOn property. Optional. When this property is defined, its settings are used instead of the corresponding settings in the accessReviewScheduleDefinition object and its settings, reviewers, and fallbackReviewers properties.
* Required only for a multi-stage access review to define the stages and their settings. You can break down each review instance into up to three sequential stages, where each stage can have a different set of reviewers, fallback reviewers, and settings. Stages are created sequentially based on the dependsOn property. Optional. When this property is defined, its settings are used instead of the corresponding settings in the accessReviewScheduleDefinition object and its settings, reviewers, and fallbackReviewers properties.
*
* @param AccessReviewStageSettings[] $val The stageSettings
*
@ -489,7 +489,7 @@ class AccessReviewScheduleDefinition extends Entity
/**
* Gets the instances
* Set of access reviews instances for this access review series. Access reviews that do not recur will only have one instance; otherwise, there is an instance for each recurrence.
* Set of access reviews instances for this access review series. Access reviews that don't recur will only have one instance; otherwise, there's an instance for each recurrence.
*
* @return array|null The instances
*/
@ -504,7 +504,7 @@ class AccessReviewScheduleDefinition extends Entity
/**
* Sets the instances
* Set of access reviews instances for this access review series. Access reviews that do not recur will only have one instance; otherwise, there is an instance for each recurrence.
* Set of access reviews instances for this access review series. Access reviews that don't recur will only have one instance; otherwise, there's an instance for each recurrence.
*
* @param AccessReviewInstance[] $val The instances
*

View File

@ -109,7 +109,7 @@ class AccessReviewSettings extends Entity
}
/**
* Gets the autoReviewEnabled
* Indicates whether a decision should be set if the reviewer did not supply one. For use when auto-apply is enabled. If you don't want to have a review decision recorded unless the reviewer makes an explicit choice, set it to false.
* Indicates whether a decision should be set if the reviewer didn't supply one. For use when, auto-apply is enabled. If you don't want to have a review decision recorded unless the reviewer makes an explicit choice, set it to false.
*
* @return bool|null The autoReviewEnabled
*/
@ -124,7 +124,7 @@ class AccessReviewSettings extends Entity
/**
* Sets the autoReviewEnabled
* Indicates whether a decision should be set if the reviewer did not supply one. For use when auto-apply is enabled. If you don't want to have a review decision recorded unless the reviewer makes an explicit choice, set it to false.
* Indicates whether a decision should be set if the reviewer didn't supply one. For use when, auto-apply is enabled. If you don't want to have a review decision recorded unless the reviewer makes an explicit choice, set it to false.
*
* @param bool $val The value of the autoReviewEnabled
*
@ -138,7 +138,7 @@ class AccessReviewSettings extends Entity
/**
* Gets the autoReviewSettings
* Detailed settings for how the feature should set the review decision. For use when auto-apply is enabled.
* Detailed settings for how the feature should set the review decision. For use when, auto-apply is enabled.
*
* @return AutoReviewSettings|null The autoReviewSettings
*/
@ -157,7 +157,7 @@ class AccessReviewSettings extends Entity
/**
* Sets the autoReviewSettings
* Detailed settings for how the feature should set the review decision. For use when auto-apply is enabled.
* Detailed settings for how the feature should set the review decision. For use when, auto-apply is enabled.
*
* @param AutoReviewSettings $val The value to assign to the autoReviewSettings
*

View File

@ -25,7 +25,7 @@ class AccessReviewStageSettings extends Entity
{
/**
* Gets the decisionsThatWillMoveToNextStage
* Indicate which decisions will go to the next stage. Can be a sub-set of Approve, Deny, Recommendation, or NotReviewed. If not provided, all decisions will go to the next stage. Optional.
* Indicate which decisions will go to the next stage. Can be a subset of Approve, Deny, Recommendation, or NotReviewed. If not provided, all decisions will go to the next stage. Optional.
*
* @return string|null The decisionsThatWillMoveToNextStage
*/
@ -40,7 +40,7 @@ class AccessReviewStageSettings extends Entity
/**
* Sets the decisionsThatWillMoveToNextStage
* Indicate which decisions will go to the next stage. Can be a sub-set of Approve, Deny, Recommendation, or NotReviewed. If not provided, all decisions will go to the next stage. Optional.
* Indicate which decisions will go to the next stage. Can be a subset of Approve, Deny, Recommendation, or NotReviewed. If not provided, all decisions will go to the next stage. Optional.
*
* @param string $val The value of the decisionsThatWillMoveToNextStage
*
@ -53,7 +53,7 @@ class AccessReviewStageSettings extends Entity
}
/**
* Gets the dependsOn
* Defines the sequential or parallel order of the stages and depends on the stageId. Only sequential stages are currently supported. For example, if stageId is 2, then dependsOn must be 1. If stageId is 1, do not specify dependsOn. Required if stageId is not 1.
* Defines the sequential or parallel order of the stages and depends on the stageId. Only sequential stages are currently supported. For example, if stageId is 2, then dependsOn must be 1. If stageId is 1, don't specify dependsOn. Required if stageId isn't 1.
*
* @return string|null The dependsOn
*/
@ -68,7 +68,7 @@ class AccessReviewStageSettings extends Entity
/**
* Sets the dependsOn
* Defines the sequential or parallel order of the stages and depends on the stageId. Only sequential stages are currently supported. For example, if stageId is 2, then dependsOn must be 1. If stageId is 1, do not specify dependsOn. Required if stageId is not 1.
* Defines the sequential or parallel order of the stages and depends on the stageId. Only sequential stages are currently supported. For example, if stageId is 2, then dependsOn must be 1. If stageId is 1, don't specify dependsOn. Required if stageId isn't 1.
*
* @param string $val The value of the dependsOn
*
@ -81,7 +81,7 @@ class AccessReviewStageSettings extends Entity
}
/**
* Gets the durationInDays
* The duration of the stage. Required. NOTE: The cumulative value of this property across all stages 1. Will override the instanceDurationInDays setting on the accessReviewScheduleDefinition object. 2. Cannot exceed the length of one recurrence. That is, if the review recurs weekly, the cumulative durationInDays cannot exceed 7.
* The duration of the stage. Required. NOTE: The cumulative value of this property across all stages 1. Will override the instanceDurationInDays setting on the accessReviewScheduleDefinition object. 2. Can't exceed the length of one recurrence. That is, if the review recurs weekly, the cumulative durationInDays can't exceed 7.
*
* @return int|null The durationInDays
*/
@ -96,7 +96,7 @@ class AccessReviewStageSettings extends Entity
/**
* Sets the durationInDays
* The duration of the stage. Required. NOTE: The cumulative value of this property across all stages 1. Will override the instanceDurationInDays setting on the accessReviewScheduleDefinition object. 2. Cannot exceed the length of one recurrence. That is, if the review recurs weekly, the cumulative durationInDays cannot exceed 7.
* The duration of the stage. Required. NOTE: The cumulative value of this property across all stages 1. Will override the instanceDurationInDays setting on the accessReviewScheduleDefinition object. 2. Can't exceed the length of one recurrence. That is, if the review recurs weekly, the cumulative durationInDays can't exceed 7.
*
* @param int $val The value of the durationInDays
*
@ -110,7 +110,7 @@ class AccessReviewStageSettings extends Entity
/**
* Gets the fallbackReviewers
* If provided, the fallback reviewers are asked to complete a review if the primary reviewers do not exist. For example, if managers are selected as reviewers and a principal under review does not have a manager in Azure AD, the fallback reviewers are asked to review that principal. NOTE: The value of this property will override the corresponding setting on the accessReviewScheduleDefinition object.
* If provided, the fallback reviewers are asked to complete a review if the primary reviewers don't exist. For example, if managers are selected as reviewers and a principal under review doesn't have a manager in Azure AD, the fallback reviewers are asked to review that principal. NOTE: The value of this property overrides the corresponding setting on the accessReviewScheduleDefinition object.
*
* @return AccessReviewReviewerScope|null The fallbackReviewers
*/
@ -129,7 +129,7 @@ class AccessReviewStageSettings extends Entity
/**
* Sets the fallbackReviewers
* If provided, the fallback reviewers are asked to complete a review if the primary reviewers do not exist. For example, if managers are selected as reviewers and a principal under review does not have a manager in Azure AD, the fallback reviewers are asked to review that principal. NOTE: The value of this property will override the corresponding setting on the accessReviewScheduleDefinition object.
* If provided, the fallback reviewers are asked to complete a review if the primary reviewers don't exist. For example, if managers are selected as reviewers and a principal under review doesn't have a manager in Azure AD, the fallback reviewers are asked to review that principal. NOTE: The value of this property overrides the corresponding setting on the accessReviewScheduleDefinition object.
*
* @param AccessReviewReviewerScope $val The value to assign to the fallbackReviewers
*
@ -174,7 +174,7 @@ class AccessReviewStageSettings extends Entity
/**
* Gets the recommendationLookBackDuration
* Optional field. Indicates the time period of inactivity (with respect to the start date of the review instance) that recommendations will be configured from. The recommendation will be to deny if the user is inactive during the look back duration. For reviews of groups and Azure AD roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. NOTE: The value of this property will override the corresponding setting on the accessReviewScheduleDefinition object.
* Optional field. Indicates the time period of inactivity (with respect to the start date of the review instance) from which that recommendations will be configured. The recommendation is to deny if the user is inactive during the look back duration. For reviews of groups and Azure AD roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. NOTE: The value of this property overrides the corresponding setting on the accessReviewScheduleDefinition object.
*
* @return \DateInterval|null The recommendationLookBackDuration
*/
@ -193,7 +193,7 @@ class AccessReviewStageSettings extends Entity
/**
* Sets the recommendationLookBackDuration
* Optional field. Indicates the time period of inactivity (with respect to the start date of the review instance) that recommendations will be configured from. The recommendation will be to deny if the user is inactive during the look back duration. For reviews of groups and Azure AD roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. NOTE: The value of this property will override the corresponding setting on the accessReviewScheduleDefinition object.
* Optional field. Indicates the time period of inactivity (with respect to the start date of the review instance) from which that recommendations will be configured. The recommendation is to deny if the user is inactive during the look back duration. For reviews of groups and Azure AD roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. NOTE: The value of this property overrides the corresponding setting on the accessReviewScheduleDefinition object.
*
* @param \DateInterval $val The value to assign to the recommendationLookBackDuration
*
@ -206,7 +206,7 @@ class AccessReviewStageSettings extends Entity
}
/**
* Gets the recommendationsEnabled
* Indicates whether showing recommendations to reviewers is enabled. Required. NOTE: The value of this property will override override the corresponding setting on the accessReviewScheduleDefinition object.
* Indicates whether showing recommendations to reviewers is enabled. Required. NOTE: The value of this property overrides the corresponding setting on the accessReviewScheduleDefinition object.
*
* @return bool|null The recommendationsEnabled
*/
@ -221,7 +221,7 @@ class AccessReviewStageSettings extends Entity
/**
* Sets the recommendationsEnabled
* Indicates whether showing recommendations to reviewers is enabled. Required. NOTE: The value of this property will override override the corresponding setting on the accessReviewScheduleDefinition object.
* Indicates whether showing recommendations to reviewers is enabled. Required. NOTE: The value of this property overrides the corresponding setting on the accessReviewScheduleDefinition object.
*
* @param bool $val The value of the recommendationsEnabled
*
@ -235,7 +235,7 @@ class AccessReviewStageSettings extends Entity
/**
* Gets the reviewers
* Defines who the reviewers are. If none are specified, the review is a self-review (users review their own access). For examples of options for assigning reviewers, see Assign reviewers to your access review definition using the Microsoft Graph API. NOTE: The value of this property will override the corresponding setting on the accessReviewScheduleDefinition.
* Defines who the reviewers are. If none is specified, the review is a self-review (users review their own access). For examples of options for assigning reviewers, see Assign reviewers to your access review definition using the Microsoft Graph API. NOTE: The value of this property overrides the corresponding setting on the accessReviewScheduleDefinition.
*
* @return AccessReviewReviewerScope|null The reviewers
*/
@ -254,7 +254,7 @@ class AccessReviewStageSettings extends Entity
/**
* Sets the reviewers
* Defines who the reviewers are. If none are specified, the review is a self-review (users review their own access). For examples of options for assigning reviewers, see Assign reviewers to your access review definition using the Microsoft Graph API. NOTE: The value of this property will override the corresponding setting on the accessReviewScheduleDefinition.
* Defines who the reviewers are. If none is specified, the review is a self-review (users review their own access). For examples of options for assigning reviewers, see Assign reviewers to your access review definition using the Microsoft Graph API. NOTE: The value of this property overrides the corresponding setting on the accessReviewScheduleDefinition.
*
* @param AccessReviewReviewerScope $val The value to assign to the reviewers
*
@ -267,7 +267,7 @@ class AccessReviewStageSettings extends Entity
}
/**
* Gets the stageId
* Unique identifier of the accessReviewStageSettings. The stageId will be used in dependsOn property to indicate the stage relationship. Required.
* Unique identifier of the accessReviewStageSettings. The stageId is used in dependsOn property to indicate the stage relationship. Required.
*
* @return string|null The stageId
*/
@ -282,7 +282,7 @@ class AccessReviewStageSettings extends Entity
/**
* Sets the stageId
* Unique identifier of the accessReviewStageSettings. The stageId will be used in dependsOn property to indicate the stage relationship. Required.
* Unique identifier of the accessReviewStageSettings. The stageId is used in dependsOn property to indicate the stage relationship. Required.
*
* @param string $val The value of the stageId
*

View File

@ -26,7 +26,7 @@ class ActionStep extends Entity
/**
* Gets the actionUrl
* A link to the documentation or Azure portal page that is associated with the action step.
* A link to the documentation or Microsoft Entra admin center page that is associated with the action step.
*
* @return ActionUrl|null The actionUrl
*/
@ -45,7 +45,7 @@ class ActionStep extends Entity
/**
* Sets the actionUrl
* A link to the documentation or Azure portal page that is associated with the action step.
* A link to the documentation or Microsoft Entra admin center page that is associated with the action step.
*
* @param ActionUrl $val The value to assign to the actionUrl
*

View File

@ -53,7 +53,7 @@ class ActionUrl extends Entity
}
/**
* Gets the url
* The URL to the documentation or Azure portal page.
* The URL to the documentation or Microsoft Entra admin center page.
*
* @return string|null The url
*/
@ -68,7 +68,7 @@ class ActionUrl extends Entity
/**
* Sets the url
* The URL to the documentation or Azure portal page.
* The URL to the documentation or Microsoft Entra admin center page.
*
* @param string $val The value of the url
*

View File

@ -309,6 +309,37 @@ class Admin implements \JsonSerializable
return $this;
}
/**
* Gets the people
*
* @return PeopleAdminSettings|null The people
*/
public function getPeople()
{
if (array_key_exists("people", $this->_propDict)) {
if (is_a($this->_propDict["people"], "\Beta\Microsoft\Graph\Model\PeopleAdminSettings") || is_null($this->_propDict["people"])) {
return $this->_propDict["people"];
} else {
$this->_propDict["people"] = new PeopleAdminSettings($this->_propDict["people"]);
return $this->_propDict["people"];
}
}
return null;
}
/**
* Sets the people
*
* @param PeopleAdminSettings $val The people
*
* @return Admin
*/
public function setPeople($val)
{
$this->_propDict["people"] = $val;
return $this;
}
/**
* Gets the windows
* A container for all Windows administrator functionalities. Read-only.

View File

@ -26,6 +26,7 @@ class AdminAppsAndServices extends Entity
{
/**
* Gets the settings
* Company-wide settings for apps and services.
*
* @return AppsAndServicesSettings|null The settings
*/
@ -44,6 +45,7 @@ class AdminAppsAndServices extends Entity
/**
* Sets the settings
* Company-wide settings for apps and services.
*
* @param AppsAndServicesSettings $val The settings
*

View File

@ -26,6 +26,7 @@ class AdminDynamics extends Entity
{
/**
* Gets the customerVoice
* Company-wide settings for Microsoft Dynamics 365 Customer Voice.
*
* @return CustomerVoiceSettings|null The customerVoice
*/
@ -44,6 +45,7 @@ class AdminDynamics extends Entity
/**
* Sets the customerVoice
* Company-wide settings for Microsoft Dynamics 365 Customer Voice.
*
* @param CustomerVoiceSettings $val The customerVoice
*

View File

@ -26,6 +26,7 @@ class AdminForms extends Entity
{
/**
* Gets the settings
* Company-wide settings for Microsoft Forms.
*
* @return FormsSettings|null The settings
*/
@ -44,6 +45,7 @@ class AdminForms extends Entity
/**
* Sets the settings
* Company-wide settings for Microsoft Forms.
*
* @param FormsSettings $val The settings
*

View File

@ -26,6 +26,7 @@ class AdminTodo extends Entity
{
/**
* Gets the settings
* Company-wide settings for Microsoft Todo.
*
* @return TodoSettings|null The settings
*/
@ -44,6 +45,7 @@ class AdminTodo extends Entity
/**
* Sets the settings
* Company-wide settings for Microsoft Todo.
*
* @param TodoSettings $val The settings
*

View File

@ -55,7 +55,7 @@ class AdministrativeUnit extends DirectoryObject
/**
* Gets the displayName
* Display name for the administrative unit. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderBy.
* Display name for the administrative unit. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby.
*
* @return string|null The displayName
*/
@ -70,7 +70,7 @@ class AdministrativeUnit extends DirectoryObject
/**
* Sets the displayName
* Display name for the administrative unit. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderBy.
* Display name for the administrative unit. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby.
*
* @param string $val The displayName
*

View File

@ -259,7 +259,6 @@ class AdvancedThreatProtectionOnboardingStateSummary extends Entity
/**
* Gets the advancedThreatProtectionOnboardingDeviceSettingStates
* Not yet documented
*
* @return array|null The advancedThreatProtectionOnboardingDeviceSettingStates
*/
@ -274,7 +273,6 @@ class AdvancedThreatProtectionOnboardingStateSummary extends Entity
/**
* Sets the advancedThreatProtectionOnboardingDeviceSettingStates
* Not yet documented
*
* @param AdvancedThreatProtectionOnboardingDeviceSettingState[] $val The advancedThreatProtectionOnboardingDeviceSettingStates
*

View File

@ -26,7 +26,7 @@ class AgreementFileData extends Entity
/**
* Gets the data
* Data that represents the terms of use PDF document. Read-only. Note: You can use the .NET Convert.ToBase64String method to convert your file to binary data for uploading using the Create agreements API. A sample syntax using this method in PowerShell is [convert]::ToBase64String((Get-Content -path 'your_file_path' -Encoding byte)).
* Data that represents the terms of use PDF document. Read-only. Note: You can use the .NET Convert.ToBase64String method to convert your file to binary data for uploading using the Create agreements API. A sample syntax using this method in PowerShell is [convert]::ToBase64String((Get-Content -path 'yourfilepath' -Encoding byte)).
*
* @return \GuzzleHttp\Psr7\Stream|null The data
*/
@ -45,7 +45,7 @@ class AgreementFileData extends Entity
/**
* Sets the data
* Data that represents the terms of use PDF document. Read-only. Note: You can use the .NET Convert.ToBase64String method to convert your file to binary data for uploading using the Create agreements API. A sample syntax using this method in PowerShell is [convert]::ToBase64String((Get-Content -path 'your_file_path' -Encoding byte)).
* Data that represents the terms of use PDF document. Read-only. Note: You can use the .NET Convert.ToBase64String method to convert your file to binary data for uploading using the Create agreements API. A sample syntax using this method in PowerShell is [convert]::ToBase64String((Get-Content -path 'yourfilepath' -Encoding byte)).
*
* @param \GuzzleHttp\Psr7\Stream $val The value to assign to the data
*

View File

@ -26,7 +26,7 @@ class AgreementFileProperties extends Entity
{
/**
* Gets the createdDateTime
* The date time representing when the file was created.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.
* The date time representing when the file was created. 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
*/
@ -45,7 +45,7 @@ class AgreementFileProperties extends Entity
/**
* Sets the createdDateTime
* The date time representing when the file was created.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.
* The date time representing when the file was created. 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
*
@ -150,7 +150,7 @@ class AgreementFileProperties extends Entity
/**
* Gets the isDefault
* If none of the languages matches the client preference, indicates whether this is the default agreement file . If none of the files are marked as default, the first one is treated as the default. Read-only.
* If none of the languages matches the client preference, indicates whether this is the default agreement file. If none of the files are marked as default, the first one is treated as the default. Read-only.
*
* @return bool|null The isDefault
*/
@ -165,7 +165,7 @@ class AgreementFileProperties extends Entity
/**
* Sets the isDefault
* If none of the languages matches the client preference, indicates whether this is the default agreement file . If none of the files are marked as default, the first one is treated as the default. Read-only.
* If none of the languages matches the client preference, indicates whether this is the default agreement file. If none of the files are marked as default, the first one is treated as the default. Read-only.
*
* @param bool $val The isDefault
*

Some files were not shown because too many files have changed in this diff Show More