mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update socket also to respond http
This commit is contained in:
parent
cc3af22682
commit
251e5740f0
1246 changed files with 62800 additions and 2951 deletions
|
@ -19,7 +19,7 @@
|
||||||
"google/apiclient-services": "*",
|
"google/apiclient-services": "*",
|
||||||
"google/auth": "^1.14.3",
|
"google/auth": "^1.14.3",
|
||||||
"guzzlehttp/guzzle": "^7.4",
|
"guzzlehttp/guzzle": "^7.4",
|
||||||
"guzzlehttp/psr7": "^2.2",
|
"guzzlehttp/psr7": "^2.7",
|
||||||
"hybridauth/hybridauth": "^3.3",
|
"hybridauth/hybridauth": "^3.3",
|
||||||
"james-heinrich/getid3": "^1.9",
|
"james-heinrich/getid3": "^1.9",
|
||||||
"monolog/monolog": "^2.6",
|
"monolog/monolog": "^2.6",
|
||||||
|
@ -51,6 +51,8 @@
|
||||||
"chillerlan/php-qrcode": "^5.0",
|
"chillerlan/php-qrcode": "^5.0",
|
||||||
"erusev/parsedown": "^1.7",
|
"erusev/parsedown": "^1.7",
|
||||||
"spomky-labs/otphp": "^10.0",
|
"spomky-labs/otphp": "^10.0",
|
||||||
"christian-riesen/base32": "^1.6"
|
"christian-riesen/base32": "^1.6",
|
||||||
|
"react/socket": "^1.16",
|
||||||
|
"react/event-loop": "^1.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
4
composer.lock
generated
4
composer.lock
generated
|
@ -4,7 +4,7 @@
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "fe54d4d441dca056f6d6f49528d942d2",
|
"content-hash": "649aafcf62af363171c6aa2ae2bf1ecd",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "abraham/twitteroauth",
|
"name": "abraham/twitteroauth",
|
||||||
|
@ -6610,5 +6610,5 @@
|
||||||
"platform-overrides": {
|
"platform-overrides": {
|
||||||
"php": "8"
|
"php": "8"
|
||||||
},
|
},
|
||||||
"plugin-api-version": "2.6.0"
|
"plugin-api-version": "2.3.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,28 @@
|
||||||
<?php
|
<?php
|
||||||
$global['debugMemmory'] = 1;
|
require __DIR__ . '/../../vendor/autoload.php';
|
||||||
|
|
||||||
use React\EventLoop\Loop;
|
use React\EventLoop\Loop;
|
||||||
use React\Async\async;
|
use React\Socket\SecureServer;
|
||||||
|
use React\Socket\Server as ReactServer;
|
||||||
|
use GuzzleHttp\Psr7\Response;
|
||||||
|
use GuzzleHttp\Psr7\ServerRequest;
|
||||||
|
use Psr\Http\Message\ServerRequestInterface;
|
||||||
use Ratchet\Server\IoServer;
|
use Ratchet\Server\IoServer;
|
||||||
use Ratchet\Http\HttpServer;
|
use Ratchet\Http\HttpServer;
|
||||||
use Ratchet\WebSocket\WsServer;
|
use Ratchet\WebSocket\WsServer;
|
||||||
use Socket\Message;
|
use Socket\Message;
|
||||||
|
use React\Stream\ReadableStreamInterface;
|
||||||
|
|
||||||
|
$global['debugMemmory'] = 1;
|
||||||
|
|
||||||
ini_set('display_errors', 1);
|
ini_set('display_errors', 1);
|
||||||
ini_set('display_startup_errors', 1);
|
ini_set('display_startup_errors', 1);
|
||||||
error_reporting(E_ALL & ~E_DEPRECATED);
|
error_reporting(E_ALL & ~E_DEPRECATED);
|
||||||
//use React\Socket\Server as Reactor;
|
|
||||||
if (empty($_SERVER['HTTP_HOST'])) {
|
if (empty($_SERVER['HTTP_HOST'])) {
|
||||||
$_SERVER['HTTP_HOST'] = 'localhost';
|
$_SERVER['HTTP_HOST'] = 'localhost';
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../videos/configuration.php';
|
require_once dirname(__FILE__) . '/../../videos/configuration.php';
|
||||||
_ob_end_clean();
|
_ob_end_clean();
|
||||||
ini_set('display_errors', 1);
|
ini_set('display_errors', 1);
|
||||||
|
@ -29,11 +37,10 @@ function riseSQLiteError()
|
||||||
echo (";extension=pdo_sqlite.so") . PHP_EOL;
|
echo (";extension=pdo_sqlite.so") . PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
$loop = React\EventLoop\Loop::get();
|
$loop = Loop::get();
|
||||||
if (function_exists('pdo_drivers') && in_array("sqlite", pdo_drivers())) {
|
if (function_exists('pdo_drivers') && in_array("sqlite", pdo_drivers())) {
|
||||||
_error_log("Socket server SQLite loading");
|
_error_log("Socket server SQLite loading");
|
||||||
require_once $global['systemRootPath'] . 'plugin/YPTSocket/db.php';
|
require_once $global['systemRootPath'] . 'plugin/YPTSocket/db.php';
|
||||||
//require_once $global['systemRootPath'] . 'plugin/YPTSocket/MessageSQLite.php';
|
|
||||||
require_once $global['systemRootPath'] . 'plugin/YPTSocket/MessageSQLiteV2.php';
|
require_once $global['systemRootPath'] . 'plugin/YPTSocket/MessageSQLiteV2.php';
|
||||||
} else {
|
} else {
|
||||||
riseSQLiteError();
|
riseSQLiteError();
|
||||||
|
@ -53,7 +60,6 @@ function findValidCertificate($url)
|
||||||
$certPath = '';
|
$certPath = '';
|
||||||
$keyPath = '';
|
$keyPath = '';
|
||||||
|
|
||||||
// Check for an exact match folder first (e.g., /etc/letsencrypt/live/example.com)
|
|
||||||
if (is_dir($letsencryptDir . $domain)) {
|
if (is_dir($letsencryptDir . $domain)) {
|
||||||
$certPath = $letsencryptDir . $domain . '/fullchain.pem';
|
$certPath = $letsencryptDir . $domain . '/fullchain.pem';
|
||||||
$keyPath = $letsencryptDir . $domain . '/privkey.pem';
|
$keyPath = $letsencryptDir . $domain . '/privkey.pem';
|
||||||
|
@ -62,7 +68,6 @@ function findValidCertificate($url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If no valid certificate found for the specific domain, check all folders with subdomains
|
|
||||||
$directories = glob($letsencryptDir . $domain . '-*');
|
$directories = glob($letsencryptDir . $domain . '-*');
|
||||||
foreach ($directories as $dir) {
|
foreach ($directories as $dir) {
|
||||||
if (is_dir($dir)) {
|
if (is_dir($dir)) {
|
||||||
|
@ -74,7 +79,6 @@ function findValidCertificate($url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If no valid certificate found, return an empty array or handle the case accordingly
|
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,10 +88,7 @@ function isCertificateValid($certPath)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the current timestamp
|
|
||||||
$currentTimestamp = time();
|
$currentTimestamp = time();
|
||||||
|
|
||||||
// Check if the openssl command is available
|
|
||||||
$opensslCommand = 'openssl';
|
$opensslCommand = 'openssl';
|
||||||
$output = [];
|
$output = [];
|
||||||
exec($opensslCommand . ' x509 -noout -dates -in ' . escapeshellarg($certPath), $output, $returnValue);
|
exec($opensslCommand . ' x509 -noout -dates -in ' . escapeshellarg($certPath), $output, $returnValue);
|
||||||
|
@ -96,7 +97,6 @@ function isCertificateValid($certPath)
|
||||||
$validFrom = strtotime($matches[1]);
|
$validFrom = strtotime($matches[1]);
|
||||||
$validTo = strtotime($matches[2]);
|
$validTo = strtotime($matches[2]);
|
||||||
|
|
||||||
// Check if the certificate is currently valid (notBefore <= current <= notAfter)
|
|
||||||
if ($validFrom <= $currentTimestamp && $currentTimestamp <= $validTo) {
|
if ($validFrom <= $currentTimestamp && $currentTimestamp <= $validTo) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -105,22 +105,19 @@ function isCertificateValid($certPath)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$SocketDataObj = AVideoPlugin::getDataObject("YPTSocket");
|
$SocketDataObj = AVideoPlugin::getDataObject("YPTSocket");
|
||||||
$SocketDataObj->serverVersion = YPTSocket::getServerVersion();
|
$SocketDataObj->serverVersion = YPTSocket::getServerVersion();
|
||||||
|
|
||||||
@ob_end_flush();
|
@ob_end_flush();
|
||||||
_mysql_close();
|
_mysql_close();
|
||||||
_session_write_close();
|
_session_write_close();
|
||||||
exec('ulimit -n 20480'); // to handle over 1 k connections
|
exec('ulimit -n 20480');
|
||||||
$SocketDataObj->port = intval($SocketDataObj->port);
|
$SocketDataObj->port = intval($SocketDataObj->port);
|
||||||
_error_log("Starting Socket server at port {$SocketDataObj->port}");
|
_error_log("Starting Socket server at port {$SocketDataObj->port}");
|
||||||
|
|
||||||
//killProcessOnPort();
|
|
||||||
$scheme = parse_url($global['webSiteRootURL'], PHP_URL_SCHEME);
|
$scheme = parse_url($global['webSiteRootURL'], PHP_URL_SCHEME);
|
||||||
echo "Starting AVideo Socket server version {$SocketDataObj->serverVersion} on port {$SocketDataObj->port}" . PHP_EOL;
|
echo "Starting AVideo Socket server version {$SocketDataObj->serverVersion} on port {$SocketDataObj->port}" . PHP_EOL;
|
||||||
|
|
||||||
|
|
||||||
if (!isCertificateValid($SocketDataObj->server_crt_file)) {
|
if (!isCertificateValid($SocketDataObj->server_crt_file)) {
|
||||||
echo "Certificate is invalid {$SocketDataObj->server_crt_file}" . PHP_EOL;
|
echo "Certificate is invalid {$SocketDataObj->server_crt_file}" . PHP_EOL;
|
||||||
$validCertPath = findValidCertificate($global['webSiteRootURL']);
|
$validCertPath = findValidCertificate($global['webSiteRootURL']);
|
||||||
|
@ -168,10 +165,38 @@ if ((strtolower($scheme) !== 'https' || !empty($SocketDataObj->forceNonSecure))
|
||||||
}
|
}
|
||||||
echo "DO NOT CLOSE THIS TERMINAL " . PHP_EOL;
|
echo "DO NOT CLOSE THIS TERMINAL " . PHP_EOL;
|
||||||
|
|
||||||
|
// Create WebSocket Server
|
||||||
|
$webSock = new ReactServer($SocketDataObj->uri . ':' . $SocketDataObj->port, $loop);
|
||||||
|
$webSock = new SecureServer($webSock, $loop, $parameters);
|
||||||
|
|
||||||
$webSock = new React\Socket\Server($SocketDataObj->uri . ':' . $SocketDataObj->port, $loop);
|
// Handle HTTP requests using guzzlehttp/psr7
|
||||||
$webSock = new React\Socket\SecureServer($webSock, $loop, $parameters);
|
$httpServer = function (ServerRequestInterface $request) {
|
||||||
$webServer = new Ratchet\Server\IoServer(
|
return new Response(
|
||||||
|
200,
|
||||||
|
['Content-Type' => 'text/plain'],
|
||||||
|
"Socket server is running. SSL is valid."
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Handle incoming connections and handle HTTP requests
|
||||||
|
$webSock->on('connection', function ($conn) use ($httpServer) {
|
||||||
|
$conn->on('data', function ($data) use ($conn, $httpServer) {
|
||||||
|
// Simulate an HTTP request and return a response indicating the server status
|
||||||
|
$response = $httpServer(new ServerRequest('GET', '/'));
|
||||||
|
|
||||||
|
// Send an HTTP-compliant response back to the client
|
||||||
|
$headers = "HTTP/1.1 200 OK\r\n";
|
||||||
|
$headers .= "Content-Type: text/plain\r\n";
|
||||||
|
$headers .= "Content-Length: " . strlen((string) $response->getBody()) . "\r\n";
|
||||||
|
$headers .= "Connection: close\r\n\r\n";
|
||||||
|
|
||||||
|
$conn->write($headers . $response->getBody());
|
||||||
|
$conn->end();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
// Create WebSocket server instance
|
||||||
|
$webServer = new IoServer(
|
||||||
new HttpServer(
|
new HttpServer(
|
||||||
new WsServer(
|
new WsServer(
|
||||||
new Message()
|
new Message()
|
||||||
|
@ -180,5 +205,6 @@ if ((strtolower($scheme) !== 'https' || !empty($SocketDataObj->forceNonSecure))
|
||||||
$webSock
|
$webSock
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Run the loop
|
||||||
$loop->run();
|
$loop->run();
|
||||||
}
|
}
|
||||||
|
|
1
vendor/aws/aws-sdk-php/composer.json
vendored
1
vendor/aws/aws-sdk-php/composer.json
vendored
|
@ -72,4 +72,3 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -205,7 +205,7 @@ class ApiProvider
|
||||||
* @param string $modelsDir Directory containing service models.
|
* @param string $modelsDir Directory containing service models.
|
||||||
* @param array $manifest The API version manifest data.
|
* @param array $manifest The API version manifest data.
|
||||||
*/
|
*/
|
||||||
private function __construct($modelsDir, array $manifest = null)
|
private function __construct($modelsDir, ?array $manifest = null)
|
||||||
{
|
{
|
||||||
$this->manifest = $manifest;
|
$this->manifest = $manifest;
|
||||||
$this->modelsDir = rtrim($modelsDir, '/');
|
$this->modelsDir = rtrim($modelsDir, '/');
|
||||||
|
|
|
@ -21,7 +21,7 @@ abstract class AbstractErrorParser
|
||||||
/**
|
/**
|
||||||
* @param Service $api
|
* @param Service $api
|
||||||
*/
|
*/
|
||||||
public function __construct(Service $api = null)
|
public function __construct(?Service $api = null)
|
||||||
{
|
{
|
||||||
$this->api = $api;
|
$this->api = $api;
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ abstract class AbstractErrorParser
|
||||||
protected function populateShape(
|
protected function populateShape(
|
||||||
array &$data,
|
array &$data,
|
||||||
ResponseInterface $response,
|
ResponseInterface $response,
|
||||||
CommandInterface $command = null
|
?CommandInterface $command = null
|
||||||
) {
|
) {
|
||||||
$data['body'] = [];
|
$data['body'] = [];
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ class JsonRpcErrorParser extends AbstractErrorParser
|
||||||
|
|
||||||
private $parser;
|
private $parser;
|
||||||
|
|
||||||
public function __construct(Service $api = null, JsonParser $parser = null)
|
public function __construct(?Service $api = null, ?JsonParser $parser = null)
|
||||||
{
|
{
|
||||||
parent::__construct($api);
|
parent::__construct($api);
|
||||||
$this->parser = $parser ?: new JsonParser();
|
$this->parser = $parser ?: new JsonParser();
|
||||||
|
@ -23,7 +23,7 @@ class JsonRpcErrorParser extends AbstractErrorParser
|
||||||
|
|
||||||
public function __invoke(
|
public function __invoke(
|
||||||
ResponseInterface $response,
|
ResponseInterface $response,
|
||||||
CommandInterface $command = null
|
?CommandInterface $command = null
|
||||||
) {
|
) {
|
||||||
$data = $this->genericHandler($response);
|
$data = $this->genericHandler($response);
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ class RestJsonErrorParser extends AbstractErrorParser
|
||||||
|
|
||||||
private $parser;
|
private $parser;
|
||||||
|
|
||||||
public function __construct(Service $api = null, JsonParser $parser = null)
|
public function __construct(?Service $api = null, ?JsonParser $parser = null)
|
||||||
{
|
{
|
||||||
parent::__construct($api);
|
parent::__construct($api);
|
||||||
$this->parser = $parser ?: new JsonParser();
|
$this->parser = $parser ?: new JsonParser();
|
||||||
|
@ -24,7 +24,7 @@ class RestJsonErrorParser extends AbstractErrorParser
|
||||||
|
|
||||||
public function __invoke(
|
public function __invoke(
|
||||||
ResponseInterface $response,
|
ResponseInterface $response,
|
||||||
CommandInterface $command = null
|
?CommandInterface $command = null
|
||||||
) {
|
) {
|
||||||
$data = $this->genericHandler($response);
|
$data = $this->genericHandler($response);
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ class XmlErrorParser extends AbstractErrorParser
|
||||||
|
|
||||||
protected $parser;
|
protected $parser;
|
||||||
|
|
||||||
public function __construct(Service $api = null, XmlParser $parser = null)
|
public function __construct(?Service $api = null, ?XmlParser $parser = null)
|
||||||
{
|
{
|
||||||
parent::__construct($api);
|
parent::__construct($api);
|
||||||
$this->parser = $parser ?: new XmlParser();
|
$this->parser = $parser ?: new XmlParser();
|
||||||
|
@ -25,7 +25,7 @@ class XmlErrorParser extends AbstractErrorParser
|
||||||
|
|
||||||
public function __invoke(
|
public function __invoke(
|
||||||
ResponseInterface $response,
|
ResponseInterface $response,
|
||||||
CommandInterface $command = null
|
?CommandInterface $command = null
|
||||||
) {
|
) {
|
||||||
$code = (string) $response->getStatusCode();
|
$code = (string) $response->getStatusCode();
|
||||||
|
|
||||||
|
|
16
vendor/aws/aws-sdk-php/src/Api/Operation.php
vendored
16
vendor/aws/aws-sdk-php/src/Api/Operation.php
vendored
|
@ -11,6 +11,7 @@ class Operation extends AbstractModel
|
||||||
private $errors;
|
private $errors;
|
||||||
private $staticContextParams = [];
|
private $staticContextParams = [];
|
||||||
private $contextParams;
|
private $contextParams;
|
||||||
|
private $operationContextParams = [];
|
||||||
|
|
||||||
public function __construct(array $definition, ShapeMap $shapeMap)
|
public function __construct(array $definition, ShapeMap $shapeMap)
|
||||||
{
|
{
|
||||||
|
@ -28,6 +29,10 @@ class Operation extends AbstractModel
|
||||||
$this->staticContextParams = $definition['staticContextParams'];
|
$this->staticContextParams = $definition['staticContextParams'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($definition['operationContextParams'])) {
|
||||||
|
$this->operationContextParams = $definition['operationContextParams'];
|
||||||
|
}
|
||||||
|
|
||||||
parent::__construct($definition, $shapeMap);
|
parent::__construct($definition, $shapeMap);
|
||||||
$this->contextParams = $this->setContextParams();
|
$this->contextParams = $this->setContextParams();
|
||||||
}
|
}
|
||||||
|
@ -124,6 +129,17 @@ class Operation extends AbstractModel
|
||||||
return $this->contextParams;
|
return $this->contextParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets definition of modeled dynamic values used
|
||||||
|
* for endpoint resolution
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function getOperationContextParams(): array
|
||||||
|
{
|
||||||
|
return $this->operationContextParams;
|
||||||
|
}
|
||||||
|
|
||||||
private function setContextParams()
|
private function setContextParams()
|
||||||
{
|
{
|
||||||
$members = $this->getInput()->getMembers();
|
$members = $this->getInput()->getMembers();
|
||||||
|
|
|
@ -20,7 +20,7 @@ class JsonRpcParser extends AbstractParser
|
||||||
* @param Service $api Service description
|
* @param Service $api Service description
|
||||||
* @param JsonParser $parser JSON body builder
|
* @param JsonParser $parser JSON body builder
|
||||||
*/
|
*/
|
||||||
public function __construct(Service $api, JsonParser $parser = null)
|
public function __construct(Service $api, ?JsonParser $parser = null)
|
||||||
{
|
{
|
||||||
parent::__construct($api);
|
parent::__construct($api);
|
||||||
$this->parser = $parser ?: new JsonParser();
|
$this->parser = $parser ?: new JsonParser();
|
||||||
|
|
|
@ -27,7 +27,7 @@ class QueryParser extends AbstractParser
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
Service $api,
|
Service $api,
|
||||||
XmlParser $xmlParser = null,
|
?XmlParser $xmlParser = null,
|
||||||
$honorResultWrapper = true
|
$honorResultWrapper = true
|
||||||
) {
|
) {
|
||||||
parent::__construct($api);
|
parent::__construct($api);
|
||||||
|
|
|
@ -17,7 +17,7 @@ class RestJsonParser extends AbstractRestParser
|
||||||
* @param Service $api Service description
|
* @param Service $api Service description
|
||||||
* @param JsonParser $parser JSON body builder
|
* @param JsonParser $parser JSON body builder
|
||||||
*/
|
*/
|
||||||
public function __construct(Service $api, JsonParser $parser = null)
|
public function __construct(Service $api, ?JsonParser $parser = null)
|
||||||
{
|
{
|
||||||
parent::__construct($api);
|
parent::__construct($api);
|
||||||
$this->parser = $parser ?: new JsonParser();
|
$this->parser = $parser ?: new JsonParser();
|
||||||
|
|
|
@ -17,7 +17,7 @@ class RestXmlParser extends AbstractRestParser
|
||||||
* @param Service $api Service description
|
* @param Service $api Service description
|
||||||
* @param XmlParser $parser XML body parser
|
* @param XmlParser $parser XML body parser
|
||||||
*/
|
*/
|
||||||
public function __construct(Service $api, XmlParser $parser = null)
|
public function __construct(Service $api, ?XmlParser $parser = null)
|
||||||
{
|
{
|
||||||
parent::__construct($api);
|
parent::__construct($api);
|
||||||
$this->parser = $parser ?: new XmlParser();
|
$this->parser = $parser ?: new XmlParser();
|
||||||
|
|
|
@ -36,7 +36,7 @@ class JsonRpcSerializer
|
||||||
public function __construct(
|
public function __construct(
|
||||||
Service $api,
|
Service $api,
|
||||||
$endpoint,
|
$endpoint,
|
||||||
JsonBody $jsonFormatter = null
|
?JsonBody $jsonFormatter = null
|
||||||
) {
|
) {
|
||||||
$this->endpoint = $endpoint;
|
$this->endpoint = $endpoint;
|
||||||
$this->api = $api;
|
$this->api = $api;
|
||||||
|
|
|
@ -24,7 +24,7 @@ class QuerySerializer
|
||||||
public function __construct(
|
public function __construct(
|
||||||
Service $api,
|
Service $api,
|
||||||
$endpoint,
|
$endpoint,
|
||||||
callable $paramBuilder = null
|
?callable $paramBuilder = null
|
||||||
) {
|
) {
|
||||||
$this->api = $api;
|
$this->api = $api;
|
||||||
$this->endpoint = $endpoint;
|
$this->endpoint = $endpoint;
|
||||||
|
|
|
@ -24,7 +24,7 @@ class RestJsonSerializer extends RestSerializer
|
||||||
public function __construct(
|
public function __construct(
|
||||||
Service $api,
|
Service $api,
|
||||||
$endpoint,
|
$endpoint,
|
||||||
JsonBody $jsonFormatter = null
|
?JsonBody $jsonFormatter = null
|
||||||
) {
|
) {
|
||||||
parent::__construct($api, $endpoint);
|
parent::__construct($api, $endpoint);
|
||||||
$this->contentType = JsonBody::getContentType($api);
|
$this->contentType = JsonBody::getContentType($api);
|
||||||
|
|
|
@ -20,7 +20,7 @@ class RestXmlSerializer extends RestSerializer
|
||||||
public function __construct(
|
public function __construct(
|
||||||
Service $api,
|
Service $api,
|
||||||
$endpoint,
|
$endpoint,
|
||||||
XmlBody $xmlBody = null
|
?XmlBody $xmlBody = null
|
||||||
) {
|
) {
|
||||||
parent::__construct($api, $endpoint);
|
parent::__construct($api, $endpoint);
|
||||||
$this->xmlBody = $xmlBody ?: new XmlBody($api);
|
$this->xmlBody = $xmlBody ?: new XmlBody($api);
|
||||||
|
|
2
vendor/aws/aws-sdk-php/src/Api/Service.php
vendored
2
vendor/aws/aws-sdk-php/src/Api/Service.php
vendored
|
@ -114,7 +114,7 @@ class Service extends AbstractModel
|
||||||
* @return callable
|
* @return callable
|
||||||
* @throws \UnexpectedValueException
|
* @throws \UnexpectedValueException
|
||||||
*/
|
*/
|
||||||
public static function createErrorParser($protocol, Service $api = null)
|
public static function createErrorParser($protocol, ?Service $api = null)
|
||||||
{
|
{
|
||||||
static $mapping = [
|
static $mapping = [
|
||||||
'json' => ErrorParser\JsonRpcErrorParser::class,
|
'json' => ErrorParser\JsonRpcErrorParser::class,
|
||||||
|
|
2
vendor/aws/aws-sdk-php/src/Api/Validator.php
vendored
2
vendor/aws/aws-sdk-php/src/Api/Validator.php
vendored
|
@ -25,7 +25,7 @@ class Validator
|
||||||
* "max", and "pattern". If a key is not
|
* "max", and "pattern". If a key is not
|
||||||
* provided, the constraint will assume false.
|
* provided, the constraint will assume false.
|
||||||
*/
|
*/
|
||||||
public function __construct(array $constraints = null)
|
public function __construct(?array $constraints = null)
|
||||||
{
|
{
|
||||||
static $assumedFalseValues = [
|
static $assumedFalseValues = [
|
||||||
'required' => false,
|
'required' => false,
|
||||||
|
|
|
@ -33,6 +33,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise deleteExtensionAssociationAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise deleteExtensionAssociationAsync(array $args = [])
|
||||||
* @method \Aws\Result deleteHostedConfigurationVersion(array $args = [])
|
* @method \Aws\Result deleteHostedConfigurationVersion(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise deleteHostedConfigurationVersionAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise deleteHostedConfigurationVersionAsync(array $args = [])
|
||||||
|
* @method \Aws\Result getAccountSettings(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getAccountSettingsAsync(array $args = [])
|
||||||
* @method \Aws\Result getApplication(array $args = [])
|
* @method \Aws\Result getApplication(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise getApplicationAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getApplicationAsync(array $args = [])
|
||||||
* @method \Aws\Result getConfiguration(array $args = [])
|
* @method \Aws\Result getConfiguration(array $args = [])
|
||||||
|
@ -77,6 +79,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
|
||||||
* @method \Aws\Result untagResource(array $args = [])
|
* @method \Aws\Result untagResource(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateAccountSettings(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateAccountSettingsAsync(array $args = [])
|
||||||
* @method \Aws\Result updateApplication(array $args = [])
|
* @method \Aws\Result updateApplication(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise updateApplicationAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateApplicationAsync(array $args = [])
|
||||||
* @method \Aws\Result updateConfigurationProfile(array $args = [])
|
* @method \Aws\Result updateConfigurationProfile(array $args = [])
|
||||||
|
|
|
@ -37,7 +37,7 @@ class AuthSchemeResolver implements AuthSchemeResolverInterface
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
callable $credentialProvider,
|
callable $credentialProvider,
|
||||||
callable $tokenProvider = null,
|
?callable $tokenProvider = null,
|
||||||
array $authSchemeMap = []
|
array $authSchemeMap = []
|
||||||
){
|
){
|
||||||
$this->credentialProvider = $credentialProvider;
|
$this->credentialProvider = $credentialProvider;
|
||||||
|
|
|
@ -11,6 +11,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise createPartnershipAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise createPartnershipAsync(array $args = [])
|
||||||
* @method \Aws\Result createProfile(array $args = [])
|
* @method \Aws\Result createProfile(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise createProfileAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise createProfileAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createStarterMappingTemplate(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createStarterMappingTemplateAsync(array $args = [])
|
||||||
* @method \Aws\Result createTransformer(array $args = [])
|
* @method \Aws\Result createTransformer(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise createTransformerAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise createTransformerAsync(array $args = [])
|
||||||
* @method \Aws\Result deleteCapability(array $args = [])
|
* @method \Aws\Result deleteCapability(array $args = [])
|
||||||
|
@ -45,6 +47,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise startTransformerJobAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise startTransformerJobAsync(array $args = [])
|
||||||
* @method \Aws\Result tagResource(array $args = [])
|
* @method \Aws\Result tagResource(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
|
||||||
|
* @method \Aws\Result testConversion(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise testConversionAsync(array $args = [])
|
||||||
* @method \Aws\Result testMapping(array $args = [])
|
* @method \Aws\Result testMapping(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise testMappingAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise testMappingAsync(array $args = [])
|
||||||
* @method \Aws\Result testParsing(array $args = [])
|
* @method \Aws\Result testParsing(array $args = [])
|
||||||
|
|
|
@ -43,6 +43,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise getGuardrailAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getGuardrailAsync(array $args = [])
|
||||||
* @method \Aws\Result getImportedModel(array $args = [])
|
* @method \Aws\Result getImportedModel(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise getImportedModelAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getImportedModelAsync(array $args = [])
|
||||||
|
* @method \Aws\Result getInferenceProfile(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getInferenceProfileAsync(array $args = [])
|
||||||
* @method \Aws\Result getModelCopyJob(array $args = [])
|
* @method \Aws\Result getModelCopyJob(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise getModelCopyJobAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getModelCopyJobAsync(array $args = [])
|
||||||
* @method \Aws\Result getModelCustomizationJob(array $args = [])
|
* @method \Aws\Result getModelCustomizationJob(array $args = [])
|
||||||
|
@ -65,6 +67,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise listGuardrailsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listGuardrailsAsync(array $args = [])
|
||||||
* @method \Aws\Result listImportedModels(array $args = [])
|
* @method \Aws\Result listImportedModels(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listImportedModelsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listImportedModelsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listInferenceProfiles(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listInferenceProfilesAsync(array $args = [])
|
||||||
* @method \Aws\Result listModelCopyJobs(array $args = [])
|
* @method \Aws\Result listModelCopyJobs(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listModelCopyJobsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listModelCopyJobsAsync(array $args = [])
|
||||||
* @method \Aws\Result listModelCustomizationJobs(array $args = [])
|
* @method \Aws\Result listModelCustomizationJobs(array $args = [])
|
||||||
|
|
|
@ -105,6 +105,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise prepareFlowAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise prepareFlowAsync(array $args = [])
|
||||||
* @method \Aws\Result startIngestionJob(array $args = [])
|
* @method \Aws\Result startIngestionJob(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise startIngestionJobAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise startIngestionJobAsync(array $args = [])
|
||||||
|
* @method \Aws\Result stopIngestionJob(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise stopIngestionJobAsync(array $args = [])
|
||||||
* @method \Aws\Result tagResource(array $args = [])
|
* @method \Aws\Result tagResource(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
|
||||||
* @method \Aws\Result untagResource(array $args = [])
|
* @method \Aws\Result untagResource(array $args = [])
|
||||||
|
|
|
@ -1453,7 +1453,7 @@ EOT;
|
||||||
. " or set the environment variable AWS_SUPPRESS_PHP_DEPRECATION_WARNING"
|
. " or set the environment variable AWS_SUPPRESS_PHP_DEPRECATION_WARNING"
|
||||||
. " to true.\nMore information can be found at: "
|
. " to true.\nMore information can be found at: "
|
||||||
. "https://aws.amazon.com/blogs/developer/announcing-the-end-of-support-for-php-runtimes-8-0-x-and-below-in-the-aws-sdk-for-php/\n",
|
. "https://aws.amazon.com/blogs/developer/announcing-the-end-of-support-for-php-runtimes-8-0-x-and-below-in-the-aws-sdk-for-php/\n",
|
||||||
E_USER_WARNING
|
E_USER_DEPRECATED
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,6 @@ use Psr\Http\Message\RequestInterface;
|
||||||
*/
|
*/
|
||||||
class ApiCallMonitoringMiddleware extends AbstractMonitoringMiddleware
|
class ApiCallMonitoringMiddleware extends AbstractMonitoringMiddleware
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Api Call Attempt event keys for each Api Call event key
|
* Api Call Attempt event keys for each Api Call event key
|
||||||
*
|
*
|
||||||
|
|
|
@ -51,7 +51,7 @@ class CloudSearchDomainClient extends AwsClient
|
||||||
return static function (callable $handler) {
|
return static function (callable $handler) {
|
||||||
return function (
|
return function (
|
||||||
CommandInterface $c,
|
CommandInterface $c,
|
||||||
RequestInterface $r = null
|
?RequestInterface $r = null
|
||||||
) use ($handler) {
|
) use ($handler) {
|
||||||
if ($c->getName() !== 'Search') {
|
if ($c->getName() !== 'Search') {
|
||||||
return $handler($c, $r);
|
return $handler($c, $r);
|
||||||
|
|
|
@ -54,6 +54,8 @@ use Generator;
|
||||||
* @method \GuzzleHttp\Promise\Promise deleteSubscriptionFilterAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise deleteSubscriptionFilterAsync(array $args = [])
|
||||||
* @method \Aws\Result describeAccountPolicies(array $args = [])
|
* @method \Aws\Result describeAccountPolicies(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise describeAccountPoliciesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeAccountPoliciesAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeConfigurationTemplates(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeConfigurationTemplatesAsync(array $args = [])
|
||||||
* @method \Aws\Result describeDeliveries(array $args = [])
|
* @method \Aws\Result describeDeliveries(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise describeDeliveriesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeDeliveriesAsync(array $args = [])
|
||||||
* @method \Aws\Result describeDeliveryDestinations(array $args = [])
|
* @method \Aws\Result describeDeliveryDestinations(array $args = [])
|
||||||
|
@ -154,6 +156,8 @@ use Generator;
|
||||||
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
|
||||||
* @method \Aws\Result updateAnomaly(array $args = [])
|
* @method \Aws\Result updateAnomaly(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise updateAnomalyAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateAnomalyAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateDeliveryConfiguration(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateDeliveryConfigurationAsync(array $args = [])
|
||||||
* @method \Aws\Result updateLogAnomalyDetector(array $args = [])
|
* @method \Aws\Result updateLogAnomalyDetector(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise updateLogAnomalyDetectorAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateLogAnomalyDetectorAsync(array $args = [])
|
||||||
*/
|
*/
|
||||||
|
|
2
vendor/aws/aws-sdk-php/src/Command.php
vendored
2
vendor/aws/aws-sdk-php/src/Command.php
vendored
|
@ -26,7 +26,7 @@ class Command implements CommandInterface
|
||||||
* @param array $args Arguments to pass to the command
|
* @param array $args Arguments to pass to the command
|
||||||
* @param HandlerList $list Handler list
|
* @param HandlerList $list Handler list
|
||||||
*/
|
*/
|
||||||
public function __construct($name, array $args = [], HandlerList $list = null)
|
public function __construct($name, array $args = [], ?HandlerList $list = null)
|
||||||
{
|
{
|
||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
$this->data = $args;
|
$this->data = $args;
|
||||||
|
|
|
@ -395,6 +395,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise startContactRecordingAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise startContactRecordingAsync(array $args = [])
|
||||||
* @method \Aws\Result startContactStreaming(array $args = [])
|
* @method \Aws\Result startContactStreaming(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise startContactStreamingAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise startContactStreamingAsync(array $args = [])
|
||||||
|
* @method \Aws\Result startOutboundChatContact(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise startOutboundChatContactAsync(array $args = [])
|
||||||
* @method \Aws\Result startOutboundVoiceContact(array $args = [])
|
* @method \Aws\Result startOutboundVoiceContact(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise startOutboundVoiceContactAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise startOutboundVoiceContactAsync(array $args = [])
|
||||||
* @method \Aws\Result startTaskContact(array $args = [])
|
* @method \Aws\Result startTaskContact(array $args = [])
|
||||||
|
|
|
@ -110,7 +110,7 @@ class Credentials extends AwsCredentialIdentity implements
|
||||||
$this->secret = $data['secret'];
|
$this->secret = $data['secret'];
|
||||||
$this->token = $data['token'];
|
$this->token = $data['token'];
|
||||||
$this->expires = $data['expires'];
|
$this->expires = $data['expires'];
|
||||||
$this->accountId = $data['accountId'];
|
$this->accountId = $data['accountId'] ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -9,6 +9,10 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise acceptPredictionsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise acceptPredictionsAsync(array $args = [])
|
||||||
* @method \Aws\Result acceptSubscriptionRequest(array $args = [])
|
* @method \Aws\Result acceptSubscriptionRequest(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise acceptSubscriptionRequestAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise acceptSubscriptionRequestAsync(array $args = [])
|
||||||
|
* @method \Aws\Result addEntityOwner(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise addEntityOwnerAsync(array $args = [])
|
||||||
|
* @method \Aws\Result addPolicyGrant(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise addPolicyGrantAsync(array $args = [])
|
||||||
* @method \Aws\Result associateEnvironmentRole(array $args = [])
|
* @method \Aws\Result associateEnvironmentRole(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise associateEnvironmentRoleAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise associateEnvironmentRoleAsync(array $args = [])
|
||||||
* @method \Aws\Result cancelMetadataGenerationRun(array $args = [])
|
* @method \Aws\Result cancelMetadataGenerationRun(array $args = [])
|
||||||
|
@ -31,6 +35,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise createDataSourceAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise createDataSourceAsync(array $args = [])
|
||||||
* @method \Aws\Result createDomain(array $args = [])
|
* @method \Aws\Result createDomain(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise createDomainAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise createDomainAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createDomainUnit(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createDomainUnitAsync(array $args = [])
|
||||||
* @method \Aws\Result createEnvironment(array $args = [])
|
* @method \Aws\Result createEnvironment(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise createEnvironmentAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise createEnvironmentAsync(array $args = [])
|
||||||
* @method \Aws\Result createEnvironmentAction(array $args = [])
|
* @method \Aws\Result createEnvironmentAction(array $args = [])
|
||||||
|
@ -71,6 +77,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise deleteDataSourceAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise deleteDataSourceAsync(array $args = [])
|
||||||
* @method \Aws\Result deleteDomain(array $args = [])
|
* @method \Aws\Result deleteDomain(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise deleteDomainAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise deleteDomainAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteDomainUnit(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteDomainUnitAsync(array $args = [])
|
||||||
* @method \Aws\Result deleteEnvironment(array $args = [])
|
* @method \Aws\Result deleteEnvironment(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise deleteEnvironmentAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise deleteEnvironmentAsync(array $args = [])
|
||||||
* @method \Aws\Result deleteEnvironmentAction(array $args = [])
|
* @method \Aws\Result deleteEnvironmentAction(array $args = [])
|
||||||
|
@ -115,6 +123,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise getDataSourceRunAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getDataSourceRunAsync(array $args = [])
|
||||||
* @method \Aws\Result getDomain(array $args = [])
|
* @method \Aws\Result getDomain(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise getDomainAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getDomainAsync(array $args = [])
|
||||||
|
* @method \Aws\Result getDomainUnit(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getDomainUnitAsync(array $args = [])
|
||||||
* @method \Aws\Result getEnvironment(array $args = [])
|
* @method \Aws\Result getEnvironment(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise getEnvironmentAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getEnvironmentAsync(array $args = [])
|
||||||
* @method \Aws\Result getEnvironmentAction(array $args = [])
|
* @method \Aws\Result getEnvironmentAction(array $args = [])
|
||||||
|
@ -169,8 +179,12 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise listDataSourceRunsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listDataSourceRunsAsync(array $args = [])
|
||||||
* @method \Aws\Result listDataSources(array $args = [])
|
* @method \Aws\Result listDataSources(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listDataSourcesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listDataSourcesAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listDomainUnitsForParent(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listDomainUnitsForParentAsync(array $args = [])
|
||||||
* @method \Aws\Result listDomains(array $args = [])
|
* @method \Aws\Result listDomains(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listDomainsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listDomainsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listEntityOwners(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listEntityOwnersAsync(array $args = [])
|
||||||
* @method \Aws\Result listEnvironmentActions(array $args = [])
|
* @method \Aws\Result listEnvironmentActions(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listEnvironmentActionsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listEnvironmentActionsAsync(array $args = [])
|
||||||
* @method \Aws\Result listEnvironmentBlueprintConfigurations(array $args = [])
|
* @method \Aws\Result listEnvironmentBlueprintConfigurations(array $args = [])
|
||||||
|
@ -187,6 +201,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise listMetadataGenerationRunsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listMetadataGenerationRunsAsync(array $args = [])
|
||||||
* @method \Aws\Result listNotifications(array $args = [])
|
* @method \Aws\Result listNotifications(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listNotificationsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listNotificationsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listPolicyGrants(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listPolicyGrantsAsync(array $args = [])
|
||||||
* @method \Aws\Result listProjectMemberships(array $args = [])
|
* @method \Aws\Result listProjectMemberships(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listProjectMembershipsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listProjectMembershipsAsync(array $args = [])
|
||||||
* @method \Aws\Result listProjects(array $args = [])
|
* @method \Aws\Result listProjects(array $args = [])
|
||||||
|
@ -213,6 +229,10 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise rejectPredictionsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise rejectPredictionsAsync(array $args = [])
|
||||||
* @method \Aws\Result rejectSubscriptionRequest(array $args = [])
|
* @method \Aws\Result rejectSubscriptionRequest(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise rejectSubscriptionRequestAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise rejectSubscriptionRequestAsync(array $args = [])
|
||||||
|
* @method \Aws\Result removeEntityOwner(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise removeEntityOwnerAsync(array $args = [])
|
||||||
|
* @method \Aws\Result removePolicyGrant(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise removePolicyGrantAsync(array $args = [])
|
||||||
* @method \Aws\Result revokeSubscription(array $args = [])
|
* @method \Aws\Result revokeSubscription(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise revokeSubscriptionAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise revokeSubscriptionAsync(array $args = [])
|
||||||
* @method \Aws\Result search(array $args = [])
|
* @method \Aws\Result search(array $args = [])
|
||||||
|
@ -239,6 +259,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise updateDataSourceAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateDataSourceAsync(array $args = [])
|
||||||
* @method \Aws\Result updateDomain(array $args = [])
|
* @method \Aws\Result updateDomain(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise updateDomainAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateDomainAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateDomainUnit(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateDomainUnitAsync(array $args = [])
|
||||||
* @method \Aws\Result updateEnvironment(array $args = [])
|
* @method \Aws\Result updateEnvironment(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise updateEnvironmentAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateEnvironmentAsync(array $args = [])
|
||||||
* @method \Aws\Result updateEnvironmentAction(array $args = [])
|
* @method \Aws\Result updateEnvironmentAction(array $args = [])
|
||||||
|
|
|
@ -56,6 +56,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise describeConditionalForwardersAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeConditionalForwardersAsync(array $args = [])
|
||||||
* @method \Aws\Result describeDirectories(array $args = [])
|
* @method \Aws\Result describeDirectories(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise describeDirectoriesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeDirectoriesAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeDirectoryDataAccess(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeDirectoryDataAccessAsync(array $args = [])
|
||||||
* @method \Aws\Result describeDomainControllers(array $args = [])
|
* @method \Aws\Result describeDomainControllers(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise describeDomainControllersAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeDomainControllersAsync(array $args = [])
|
||||||
* @method \Aws\Result describeEventTopics(array $args = [])
|
* @method \Aws\Result describeEventTopics(array $args = [])
|
||||||
|
@ -76,6 +78,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise describeUpdateDirectoryAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeUpdateDirectoryAsync(array $args = [])
|
||||||
* @method \Aws\Result disableClientAuthentication(array $args = [])
|
* @method \Aws\Result disableClientAuthentication(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise disableClientAuthenticationAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise disableClientAuthenticationAsync(array $args = [])
|
||||||
|
* @method \Aws\Result disableDirectoryDataAccess(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise disableDirectoryDataAccessAsync(array $args = [])
|
||||||
* @method \Aws\Result disableLDAPS(array $args = [])
|
* @method \Aws\Result disableLDAPS(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise disableLDAPSAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise disableLDAPSAsync(array $args = [])
|
||||||
* @method \Aws\Result disableRadius(array $args = [])
|
* @method \Aws\Result disableRadius(array $args = [])
|
||||||
|
@ -84,6 +88,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise disableSsoAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise disableSsoAsync(array $args = [])
|
||||||
* @method \Aws\Result enableClientAuthentication(array $args = [])
|
* @method \Aws\Result enableClientAuthentication(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise enableClientAuthenticationAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise enableClientAuthenticationAsync(array $args = [])
|
||||||
|
* @method \Aws\Result enableDirectoryDataAccess(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise enableDirectoryDataAccessAsync(array $args = [])
|
||||||
* @method \Aws\Result enableLDAPS(array $args = [])
|
* @method \Aws\Result enableLDAPS(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise enableLDAPSAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise enableLDAPSAsync(array $args = [])
|
||||||
* @method \Aws\Result enableRadius(array $args = [])
|
* @method \Aws\Result enableRadius(array $args = [])
|
||||||
|
|
43
vendor/aws/aws-sdk-php/src/DirectoryServiceData/DirectoryServiceDataClient.php
vendored
Normal file
43
vendor/aws/aws-sdk-php/src/DirectoryServiceData/DirectoryServiceDataClient.php
vendored
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
<?php
|
||||||
|
namespace Aws\DirectoryServiceData;
|
||||||
|
|
||||||
|
use Aws\AwsClient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This client is used to interact with the **AWS Directory Service Data** service.
|
||||||
|
* @method \Aws\Result addGroupMember(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise addGroupMemberAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createGroup(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createGroupAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createUser(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createUserAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteGroup(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteGroupAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteUser(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteUserAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeGroup(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeGroupAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeUser(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeUserAsync(array $args = [])
|
||||||
|
* @method \Aws\Result disableUser(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise disableUserAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listGroupMembers(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listGroupMembersAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listGroups(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listGroupsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listGroupsForMember(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listGroupsForMemberAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listUsers(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listUsersAsync(array $args = [])
|
||||||
|
* @method \Aws\Result removeGroupMember(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise removeGroupMemberAsync(array $args = [])
|
||||||
|
* @method \Aws\Result searchGroups(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise searchGroupsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result searchUsers(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise searchUsersAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateGroup(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateGroupAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateUser(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateUserAsync(array $args = [])
|
||||||
|
*/
|
||||||
|
class DirectoryServiceDataClient extends AwsClient {}
|
9
vendor/aws/aws-sdk-php/src/DirectoryServiceData/Exception/DirectoryServiceDataException.php
vendored
Normal file
9
vendor/aws/aws-sdk-php/src/DirectoryServiceData/Exception/DirectoryServiceDataException.php
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
namespace Aws\DirectoryServiceData\Exception;
|
||||||
|
|
||||||
|
use Aws\Exception\AwsException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents an error interacting with the **AWS Directory Service Data** service.
|
||||||
|
*/
|
||||||
|
class DirectoryServiceDataException extends AwsException {}
|
2
vendor/aws/aws-sdk-php/src/Ec2/Ec2Client.php
vendored
2
vendor/aws/aws-sdk-php/src/Ec2/Ec2Client.php
vendored
|
@ -1104,6 +1104,8 @@ use Aws\PresignUrlMiddleware;
|
||||||
* @method \GuzzleHttp\Promise\Promise modifyFpgaImageAttributeAsync(array $args = []) (supported in versions 2016-11-15)
|
* @method \GuzzleHttp\Promise\Promise modifyFpgaImageAttributeAsync(array $args = []) (supported in versions 2016-11-15)
|
||||||
* @method \Aws\Result modifyInstanceCapacityReservationAttributes(array $args = []) (supported in versions 2016-11-15)
|
* @method \Aws\Result modifyInstanceCapacityReservationAttributes(array $args = []) (supported in versions 2016-11-15)
|
||||||
* @method \GuzzleHttp\Promise\Promise modifyInstanceCapacityReservationAttributesAsync(array $args = []) (supported in versions 2016-11-15)
|
* @method \GuzzleHttp\Promise\Promise modifyInstanceCapacityReservationAttributesAsync(array $args = []) (supported in versions 2016-11-15)
|
||||||
|
* @method \Aws\Result modifyInstanceCpuOptions(array $args = []) (supported in versions 2016-11-15)
|
||||||
|
* @method \GuzzleHttp\Promise\Promise modifyInstanceCpuOptionsAsync(array $args = []) (supported in versions 2016-11-15)
|
||||||
* @method \Aws\Result modifyInstanceCreditSpecification(array $args = []) (supported in versions 2016-11-15)
|
* @method \Aws\Result modifyInstanceCreditSpecification(array $args = []) (supported in versions 2016-11-15)
|
||||||
* @method \GuzzleHttp\Promise\Promise modifyInstanceCreditSpecificationAsync(array $args = []) (supported in versions 2016-11-15)
|
* @method \GuzzleHttp\Promise\Promise modifyInstanceCreditSpecificationAsync(array $args = []) (supported in versions 2016-11-15)
|
||||||
* @method \Aws\Result modifyInstanceEventStartTime(array $args = []) (supported in versions 2016-11-15)
|
* @method \Aws\Result modifyInstanceEventStartTime(array $args = []) (supported in versions 2016-11-15)
|
||||||
|
|
|
@ -37,6 +37,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise deregisterTargetsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise deregisterTargetsAsync(array $args = [])
|
||||||
* @method \Aws\Result describeAccountLimits(array $args = [])
|
* @method \Aws\Result describeAccountLimits(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise describeAccountLimitsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeAccountLimitsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeListenerAttributes(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeListenerAttributesAsync(array $args = [])
|
||||||
* @method \Aws\Result describeListenerCertificates(array $args = [])
|
* @method \Aws\Result describeListenerCertificates(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise describeListenerCertificatesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeListenerCertificatesAsync(array $args = [])
|
||||||
* @method \Aws\Result describeListeners(array $args = [])
|
* @method \Aws\Result describeListeners(array $args = [])
|
||||||
|
@ -71,6 +73,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise getTrustStoreRevocationContentAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getTrustStoreRevocationContentAsync(array $args = [])
|
||||||
* @method \Aws\Result modifyListener(array $args = [])
|
* @method \Aws\Result modifyListener(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise modifyListenerAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise modifyListenerAsync(array $args = [])
|
||||||
|
* @method \Aws\Result modifyListenerAttributes(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise modifyListenerAttributesAsync(array $args = [])
|
||||||
* @method \Aws\Result modifyLoadBalancerAttributes(array $args = [])
|
* @method \Aws\Result modifyLoadBalancerAttributes(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise modifyLoadBalancerAttributesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise modifyLoadBalancerAttributesAsync(array $args = [])
|
||||||
* @method \Aws\Result modifyRule(array $args = [])
|
* @method \Aws\Result modifyRule(array $args = [])
|
||||||
|
|
|
@ -7,6 +7,7 @@ use Aws\Auth\Exception\UnresolvedAuthSchemeException;
|
||||||
use Aws\CommandInterface;
|
use Aws\CommandInterface;
|
||||||
use Closure;
|
use Closure;
|
||||||
use GuzzleHttp\Promise\Promise;
|
use GuzzleHttp\Promise\Promise;
|
||||||
|
use function JmesPath\search;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles endpoint rule evaluation and endpoint resolution.
|
* Handles endpoint rule evaluation and endpoint resolution.
|
||||||
|
@ -76,7 +77,7 @@ class EndpointV2Middleware
|
||||||
EndpointProviderV2 $endpointProvider,
|
EndpointProviderV2 $endpointProvider,
|
||||||
Service $api,
|
Service $api,
|
||||||
array $args,
|
array $args,
|
||||||
callable $credentialProvider = null
|
?callable $credentialProvider = null
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
$this->nextHandler = $nextHandler;
|
$this->nextHandler = $nextHandler;
|
||||||
|
@ -137,9 +138,14 @@ class EndpointV2Middleware
|
||||||
$contextParams = $this->bindContextParams(
|
$contextParams = $this->bindContextParams(
|
||||||
$commandArgs, $operation->getContextParams()
|
$commandArgs, $operation->getContextParams()
|
||||||
);
|
);
|
||||||
|
$operationContextParams = $this->bindOperationContextParams(
|
||||||
|
$commandArgs,
|
||||||
|
$operation->getOperationContextParams()
|
||||||
|
);
|
||||||
|
|
||||||
return array_merge(
|
return array_merge(
|
||||||
$this->clientArgs,
|
$this->clientArgs,
|
||||||
|
$operationContextParams,
|
||||||
$contextParams,
|
$contextParams,
|
||||||
$staticContextParams,
|
$staticContextParams,
|
||||||
$endpointCommandArgs
|
$endpointCommandArgs
|
||||||
|
@ -231,6 +237,33 @@ class EndpointV2Middleware
|
||||||
return $scopedParams;
|
return $scopedParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Binds context params to their corresponding values found in
|
||||||
|
* command arguments.
|
||||||
|
*
|
||||||
|
* @param array $commandArgs
|
||||||
|
* @param array $contextParams
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
private function bindOperationContextParams(
|
||||||
|
array $commandArgs,
|
||||||
|
array $operationContextParams
|
||||||
|
): array
|
||||||
|
{
|
||||||
|
$scopedParams = [];
|
||||||
|
|
||||||
|
foreach($operationContextParams as $name => $spec) {
|
||||||
|
$scopedValue = search($spec['path'], $commandArgs);
|
||||||
|
|
||||||
|
if ($scopedValue) {
|
||||||
|
$scopedParams[$name] = $scopedValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $scopedParams;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Applies resolved auth schemes to the command object.
|
* Applies resolved auth schemes to the command object.
|
||||||
*
|
*
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
namespace Aws\EndpointV2\Ruleset;
|
namespace Aws\EndpointV2\Ruleset;
|
||||||
|
|
||||||
use Aws\Exception\UnresolvedEndpointException;
|
use Aws\Exception\UnresolvedEndpointException;
|
||||||
|
use function \Aws\is_associative;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Houses properties of an individual parameter definition.
|
* Houses properties of an individual parameter definition.
|
||||||
|
@ -30,6 +31,13 @@ class RulesetParameter
|
||||||
/** @var boolean */
|
/** @var boolean */
|
||||||
private $deprecated;
|
private $deprecated;
|
||||||
|
|
||||||
|
/** @var array<string, string> */
|
||||||
|
private static $typeMap = [
|
||||||
|
'String' => 'is_string',
|
||||||
|
'Boolean' => 'is_bool',
|
||||||
|
'StringArray' => 'isStringArray'
|
||||||
|
];
|
||||||
|
|
||||||
public function __construct($name, array $definition)
|
public function __construct($name, array $definition)
|
||||||
{
|
{
|
||||||
$type = ucfirst($definition['type']);
|
$type = ucfirst($definition['type']);
|
||||||
|
@ -38,18 +46,16 @@ class RulesetParameter
|
||||||
} else {
|
} else {
|
||||||
throw new UnresolvedEndpointException(
|
throw new UnresolvedEndpointException(
|
||||||
'Unknown parameter type ' . "`{$type}`" .
|
'Unknown parameter type ' . "`{$type}`" .
|
||||||
'. Parameters must be of type `String` or `Boolean`.'
|
'. Parameters must be of type `String`, `Boolean` or `StringArray.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
$this->builtIn = isset($definition['builtIn']) ? $definition['builtIn'] : null;
|
$this->builtIn = $definition['builtIn'] ?? null;
|
||||||
$this->default = isset($definition['default']) ? $definition['default'] : null;
|
$this->default = $definition['default'] ?? null;
|
||||||
$this->required = isset($definition['required']) ?
|
$this->required = $definition['required'] ?? false;
|
||||||
$definition['required'] : false;
|
$this->documentation = $definition['documentation'] ?? null;
|
||||||
$this->documentation = isset($definition['documentation']) ?
|
$this->deprecated = $definition['deprecated'] ?? false;
|
||||||
$definition['documentation'] : null;
|
|
||||||
$this->deprecated = isset($definition['deprecated']) ?
|
|
||||||
$definition['deprecated'] : false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -116,12 +122,7 @@ class RulesetParameter
|
||||||
*/
|
*/
|
||||||
public function validateInputParam($inputParam)
|
public function validateInputParam($inputParam)
|
||||||
{
|
{
|
||||||
$typeMap = [
|
if (!$this->isValidInput($inputParam)) {
|
||||||
'String' => 'is_string',
|
|
||||||
'Boolean' => 'is_bool'
|
|
||||||
];
|
|
||||||
|
|
||||||
if ($typeMap[$this->type]($inputParam) === false) {
|
|
||||||
throw new UnresolvedEndpointException(
|
throw new UnresolvedEndpointException(
|
||||||
"Input parameter `{$this->name}` is the wrong type. Must be a {$this->type}."
|
"Input parameter `{$this->name}` is the wrong type. Must be a {$this->type}."
|
||||||
);
|
);
|
||||||
|
@ -130,12 +131,15 @@ class RulesetParameter
|
||||||
if ($this->deprecated) {
|
if ($this->deprecated) {
|
||||||
$deprecated = $this->deprecated;
|
$deprecated = $this->deprecated;
|
||||||
$deprecationString = "{$this->name} has been deprecated ";
|
$deprecationString = "{$this->name} has been deprecated ";
|
||||||
$msg = isset($deprecated['message']) ? $deprecated['message'] : null;
|
$msg = $deprecated['message'] ?? null;
|
||||||
$since = isset($deprecated['since']) ? $deprecated['since'] : null;
|
$since = $deprecated['since'] ?? null;
|
||||||
|
|
||||||
if (!is_null($since)) $deprecationString = $deprecationString
|
if (!is_null($since)){
|
||||||
. 'since '. $since . '. ';
|
$deprecationString .= 'since ' . $since . '. ';
|
||||||
if (!is_null($msg)) $deprecationString = $deprecationString . $msg;
|
}
|
||||||
|
if (!is_null($msg)) {
|
||||||
|
$deprecationString .= $msg;
|
||||||
|
}
|
||||||
|
|
||||||
trigger_error($deprecationString, E_USER_WARNING);
|
trigger_error($deprecationString, E_USER_WARNING);
|
||||||
}
|
}
|
||||||
|
@ -143,6 +147,33 @@ class RulesetParameter
|
||||||
|
|
||||||
private function isValidType($type)
|
private function isValidType($type)
|
||||||
{
|
{
|
||||||
return in_array($type, ['String', 'Boolean']);
|
return isset(self::$typeMap[$type]);
|
||||||
|
}
|
||||||
|
|
||||||
|
private function isValidInput($inputParam): bool
|
||||||
|
{
|
||||||
|
$method = self::$typeMap[$this->type];
|
||||||
|
if (is_callable($method)) {
|
||||||
|
return $method($inputParam);
|
||||||
|
} elseif (method_exists($this, $method)) {
|
||||||
|
return $this->$method($inputParam);
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
private function isStringArray(array $array): bool
|
||||||
|
{
|
||||||
|
if (is_associative($array)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach($array as $value) {
|
||||||
|
if (!is_string($value)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,6 +61,13 @@ class RulesetStandardLibrary
|
||||||
*/
|
*/
|
||||||
public function getAttr($from, $path)
|
public function getAttr($from, $path)
|
||||||
{
|
{
|
||||||
|
// Handles the case where "[<int|string]" is provided as the top-level path
|
||||||
|
if (preg_match('/^\[(\w+)\]$/', $path, $matches)) {
|
||||||
|
$index = is_numeric($matches[1]) ? (int) $matches[1] : $matches[1];
|
||||||
|
|
||||||
|
return $from[$index] ?? null;
|
||||||
|
}
|
||||||
|
|
||||||
$parts = explode('.', $path);
|
$parts = explode('.', $path);
|
||||||
foreach ($parts as $part) {
|
foreach ($parts as $part) {
|
||||||
$sliceIdx = strpos($part, '[');
|
$sliceIdx = strpos($part, '[');
|
||||||
|
@ -68,10 +75,9 @@ class RulesetStandardLibrary
|
||||||
if (substr($part, -1) !== ']') {
|
if (substr($part, -1) !== ']') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$slice = intval(substr($part, $sliceIdx + 1, strlen($part) - 1));
|
$slice = (int) substr($part, $sliceIdx + 1, strlen($part) - 1);
|
||||||
$from = isset($from[substr($part,0, $sliceIdx)][$slice])
|
$fromIndex = substr($part, 0, $sliceIdx);
|
||||||
? $from[substr($part,0, $sliceIdx)][$slice]
|
$from = $from[$fromIndex][$slice] ?? null;
|
||||||
: null;
|
|
||||||
} else {
|
} else {
|
||||||
$from = $from[$part];
|
$from = $from[$part];
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@ class AwsException extends \RuntimeException implements
|
||||||
$message,
|
$message,
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
array $context = [],
|
array $context = [],
|
||||||
\Exception $previous = null
|
?\Exception $previous = null
|
||||||
) {
|
) {
|
||||||
$this->data = isset($context['body']) ? $context['body'] : [];
|
$this->data = isset($context['body']) ? $context['body'] : [];
|
||||||
$this->command = $command;
|
$this->command = $command;
|
||||||
|
|
|
@ -9,7 +9,7 @@ class CouldNotCreateChecksumException extends \RuntimeException implements
|
||||||
{
|
{
|
||||||
use HasMonitoringEventsTrait;
|
use HasMonitoringEventsTrait;
|
||||||
|
|
||||||
public function __construct($algorithm, \Exception $previous = null)
|
public function __construct($algorithm, ?\Exception $previous = null)
|
||||||
{
|
{
|
||||||
$prefix = $algorithm === 'md5' ? "An" : "A";
|
$prefix = $algorithm === 'md5' ? "An" : "A";
|
||||||
parent::__construct("{$prefix} {$algorithm} checksum could not be "
|
parent::__construct("{$prefix} {$algorithm} checksum could not be "
|
||||||
|
|
4
vendor/aws/aws-sdk-php/src/FIS/FISClient.php
vendored
4
vendor/aws/aws-sdk-php/src/FIS/FISClient.php
vendored
|
@ -21,6 +21,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise getExperimentTargetAccountConfigurationAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getExperimentTargetAccountConfigurationAsync(array $args = [])
|
||||||
* @method \Aws\Result getExperimentTemplate(array $args = [])
|
* @method \Aws\Result getExperimentTemplate(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise getExperimentTemplateAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getExperimentTemplateAsync(array $args = [])
|
||||||
|
* @method \Aws\Result getSafetyLever(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getSafetyLeverAsync(array $args = [])
|
||||||
* @method \Aws\Result getTargetAccountConfiguration(array $args = [])
|
* @method \Aws\Result getTargetAccountConfiguration(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise getTargetAccountConfigurationAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getTargetAccountConfigurationAsync(array $args = [])
|
||||||
* @method \Aws\Result getTargetResourceType(array $args = [])
|
* @method \Aws\Result getTargetResourceType(array $args = [])
|
||||||
|
@ -51,6 +53,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
|
||||||
* @method \Aws\Result updateExperimentTemplate(array $args = [])
|
* @method \Aws\Result updateExperimentTemplate(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise updateExperimentTemplateAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateExperimentTemplateAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateSafetyLeverState(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateSafetyLeverStateAsync(array $args = [])
|
||||||
* @method \Aws\Result updateTargetAccountConfiguration(array $args = [])
|
* @method \Aws\Result updateTargetAccountConfiguration(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise updateTargetAccountConfigurationAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateTargetAccountConfigurationAsync(array $args = [])
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -124,7 +124,7 @@ class GlacierClient extends AwsClient
|
||||||
return function (callable $handler) {
|
return function (callable $handler) {
|
||||||
return function (
|
return function (
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request = null
|
?RequestInterface $request = null
|
||||||
) use ($handler) {
|
) use ($handler) {
|
||||||
// Accept "ContentSHA256" with a lowercase "c" to match other Glacier params.
|
// Accept "ContentSHA256" with a lowercase "c" to match other Glacier params.
|
||||||
if (!$command['ContentSHA256'] && $command['contentSHA256']) {
|
if (!$command['ContentSHA256'] && $command['contentSHA256']) {
|
||||||
|
@ -195,7 +195,7 @@ class GlacierClient extends AwsClient
|
||||||
return function (callable $handler) {
|
return function (callable $handler) {
|
||||||
return function (
|
return function (
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request = null
|
?RequestInterface $request = null
|
||||||
) use ($handler) {
|
) use ($handler) {
|
||||||
return $handler($command, $request->withHeader(
|
return $handler($command, $request->withHeader(
|
||||||
'x-amz-glacier-version',
|
'x-amz-glacier-version',
|
||||||
|
|
|
@ -405,6 +405,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise stopWorkflowRunAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise stopWorkflowRunAsync(array $args = [])
|
||||||
* @method \Aws\Result tagResource(array $args = [])
|
* @method \Aws\Result tagResource(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
|
||||||
|
* @method \Aws\Result testConnection(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise testConnectionAsync(array $args = [])
|
||||||
* @method \Aws\Result untagResource(array $args = [])
|
* @method \Aws\Result untagResource(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
|
||||||
* @method \Aws\Result updateBlueprint(array $args = [])
|
* @method \Aws\Result updateBlueprint(array $args = [])
|
||||||
|
|
|
@ -44,7 +44,7 @@ class GuzzleHandler
|
||||||
/**
|
/**
|
||||||
* @param ClientInterface $client
|
* @param ClientInterface $client
|
||||||
*/
|
*/
|
||||||
public function __construct(ClientInterface $client = null)
|
public function __construct(?ClientInterface $client = null)
|
||||||
{
|
{
|
||||||
$this->client = $client ?: new Client();
|
$this->client = $client ?: new Client();
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@ class GuzzleHandler
|
||||||
/**
|
/**
|
||||||
* @param ClientInterface $client
|
* @param ClientInterface $client
|
||||||
*/
|
*/
|
||||||
public function __construct(ClientInterface $client = null)
|
public function __construct(?ClientInterface $client = null)
|
||||||
{
|
{
|
||||||
$this->client = $client ?: new Client();
|
$this->client = $client ?: new Client();
|
||||||
}
|
}
|
||||||
|
|
4
vendor/aws/aws-sdk-php/src/HandlerList.php
vendored
4
vendor/aws/aws-sdk-php/src/HandlerList.php
vendored
|
@ -61,7 +61,7 @@ class HandlerList implements \Countable
|
||||||
/**
|
/**
|
||||||
* @param callable $handler HTTP handler.
|
* @param callable $handler HTTP handler.
|
||||||
*/
|
*/
|
||||||
public function __construct(callable $handler = null)
|
public function __construct(?callable $handler = null)
|
||||||
{
|
{
|
||||||
$this->handler = $handler;
|
$this->handler = $handler;
|
||||||
}
|
}
|
||||||
|
@ -277,7 +277,7 @@ class HandlerList implements \Countable
|
||||||
*
|
*
|
||||||
* @param callable|null $fn Pass null to remove any previously set function
|
* @param callable|null $fn Pass null to remove any previously set function
|
||||||
*/
|
*/
|
||||||
public function interpose(callable $fn = null)
|
public function interpose(?callable $fn = null)
|
||||||
{
|
{
|
||||||
$this->sorted = null;
|
$this->sorted = null;
|
||||||
$this->interposeFn = $fn;
|
$this->interposeFn = $fn;
|
||||||
|
|
2
vendor/aws/aws-sdk-php/src/HashingStream.php
vendored
2
vendor/aws/aws-sdk-php/src/HashingStream.php
vendored
|
@ -29,7 +29,7 @@ class HashingStream implements StreamInterface
|
||||||
public function __construct(
|
public function __construct(
|
||||||
StreamInterface $stream,
|
StreamInterface $stream,
|
||||||
HashInterface $hash,
|
HashInterface $hash,
|
||||||
callable $onComplete = null
|
?callable $onComplete = null
|
||||||
) {
|
) {
|
||||||
$this->stream = $stream;
|
$this->stream = $stream;
|
||||||
$this->hash = $hash;
|
$this->hash = $hash;
|
||||||
|
|
|
@ -7,6 +7,8 @@ use Aws\AwsClient;
|
||||||
* This client is used to interact with the **Amazon Interactive Video Service RealTime** service.
|
* This client is used to interact with the **Amazon Interactive Video Service RealTime** service.
|
||||||
* @method \Aws\Result createEncoderConfiguration(array $args = [])
|
* @method \Aws\Result createEncoderConfiguration(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise createEncoderConfigurationAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise createEncoderConfigurationAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createIngestConfiguration(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createIngestConfigurationAsync(array $args = [])
|
||||||
* @method \Aws\Result createParticipantToken(array $args = [])
|
* @method \Aws\Result createParticipantToken(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise createParticipantTokenAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise createParticipantTokenAsync(array $args = [])
|
||||||
* @method \Aws\Result createStage(array $args = [])
|
* @method \Aws\Result createStage(array $args = [])
|
||||||
|
@ -15,6 +17,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise createStorageConfigurationAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise createStorageConfigurationAsync(array $args = [])
|
||||||
* @method \Aws\Result deleteEncoderConfiguration(array $args = [])
|
* @method \Aws\Result deleteEncoderConfiguration(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise deleteEncoderConfigurationAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise deleteEncoderConfigurationAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteIngestConfiguration(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteIngestConfigurationAsync(array $args = [])
|
||||||
* @method \Aws\Result deletePublicKey(array $args = [])
|
* @method \Aws\Result deletePublicKey(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise deletePublicKeyAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise deletePublicKeyAsync(array $args = [])
|
||||||
* @method \Aws\Result deleteStage(array $args = [])
|
* @method \Aws\Result deleteStage(array $args = [])
|
||||||
|
@ -27,6 +31,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise getCompositionAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getCompositionAsync(array $args = [])
|
||||||
* @method \Aws\Result getEncoderConfiguration(array $args = [])
|
* @method \Aws\Result getEncoderConfiguration(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise getEncoderConfigurationAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getEncoderConfigurationAsync(array $args = [])
|
||||||
|
* @method \Aws\Result getIngestConfiguration(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getIngestConfigurationAsync(array $args = [])
|
||||||
* @method \Aws\Result getParticipant(array $args = [])
|
* @method \Aws\Result getParticipant(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise getParticipantAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getParticipantAsync(array $args = [])
|
||||||
* @method \Aws\Result getPublicKey(array $args = [])
|
* @method \Aws\Result getPublicKey(array $args = [])
|
||||||
|
@ -43,6 +49,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise listCompositionsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listCompositionsAsync(array $args = [])
|
||||||
* @method \Aws\Result listEncoderConfigurations(array $args = [])
|
* @method \Aws\Result listEncoderConfigurations(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listEncoderConfigurationsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listEncoderConfigurationsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listIngestConfigurations(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listIngestConfigurationsAsync(array $args = [])
|
||||||
* @method \Aws\Result listParticipantEvents(array $args = [])
|
* @method \Aws\Result listParticipantEvents(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listParticipantEventsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listParticipantEventsAsync(array $args = [])
|
||||||
* @method \Aws\Result listParticipants(array $args = [])
|
* @method \Aws\Result listParticipants(array $args = [])
|
||||||
|
@ -65,6 +73,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
|
||||||
* @method \Aws\Result untagResource(array $args = [])
|
* @method \Aws\Result untagResource(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateIngestConfiguration(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateIngestConfigurationAsync(array $args = [])
|
||||||
* @method \Aws\Result updateStage(array $args = [])
|
* @method \Aws\Result updateStage(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise updateStageAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateStageAsync(array $args = [])
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -37,7 +37,7 @@ class IdempotencyTokenMiddleware
|
||||||
*/
|
*/
|
||||||
public static function wrap(
|
public static function wrap(
|
||||||
Service $service,
|
Service $service,
|
||||||
callable $bytesGenerator = null
|
?callable $bytesGenerator = null
|
||||||
) {
|
) {
|
||||||
return function (callable $handler) use ($service, $bytesGenerator) {
|
return function (callable $handler) use ($service, $bytesGenerator) {
|
||||||
return new self($handler, $service, $bytesGenerator);
|
return new self($handler, $service, $bytesGenerator);
|
||||||
|
@ -47,7 +47,7 @@ class IdempotencyTokenMiddleware
|
||||||
public function __construct(
|
public function __construct(
|
||||||
callable $nextHandler,
|
callable $nextHandler,
|
||||||
Service $service,
|
Service $service,
|
||||||
callable $bytesGenerator = null
|
?callable $bytesGenerator = null
|
||||||
) {
|
) {
|
||||||
$this->bytesGenerator = $bytesGenerator
|
$this->bytesGenerator = $bytesGenerator
|
||||||
?: $this->findCompatibleRandomSource();
|
?: $this->findCompatibleRandomSource();
|
||||||
|
@ -57,7 +57,7 @@ class IdempotencyTokenMiddleware
|
||||||
|
|
||||||
public function __invoke(
|
public function __invoke(
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request = null
|
?RequestInterface $request = null
|
||||||
) {
|
) {
|
||||||
$handler = $this->nextHandler;
|
$handler = $this->nextHandler;
|
||||||
if ($this->bytesGenerator) {
|
if ($this->bytesGenerator) {
|
||||||
|
|
6
vendor/aws/aws-sdk-php/src/Iot/IotClient.php
vendored
6
vendor/aws/aws-sdk-php/src/Iot/IotClient.php
vendored
|
@ -12,6 +12,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise addThingToBillingGroupAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise addThingToBillingGroupAsync(array $args = [])
|
||||||
* @method \Aws\Result addThingToThingGroup(array $args = [])
|
* @method \Aws\Result addThingToThingGroup(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise addThingToThingGroupAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise addThingToThingGroupAsync(array $args = [])
|
||||||
|
* @method \Aws\Result associateSbomWithPackageVersion(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise associateSbomWithPackageVersionAsync(array $args = [])
|
||||||
* @method \Aws\Result associateTargetsWithJob(array $args = [])
|
* @method \Aws\Result associateTargetsWithJob(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise associateTargetsWithJobAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise associateTargetsWithJobAsync(array $args = [])
|
||||||
* @method \Aws\Result attachPolicy(array $args = [])
|
* @method \Aws\Result attachPolicy(array $args = [])
|
||||||
|
@ -248,6 +250,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise detachThingPrincipalAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise detachThingPrincipalAsync(array $args = [])
|
||||||
* @method \Aws\Result disableTopicRule(array $args = [])
|
* @method \Aws\Result disableTopicRule(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise disableTopicRuleAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise disableTopicRuleAsync(array $args = [])
|
||||||
|
* @method \Aws\Result disassociateSbomFromPackageVersion(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise disassociateSbomFromPackageVersionAsync(array $args = [])
|
||||||
* @method \Aws\Result enableTopicRule(array $args = [])
|
* @method \Aws\Result enableTopicRule(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise enableTopicRuleAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise enableTopicRuleAsync(array $args = [])
|
||||||
* @method \Aws\Result getBehaviorModelTrainingSummaries(array $args = [])
|
* @method \Aws\Result getBehaviorModelTrainingSummaries(array $args = [])
|
||||||
|
@ -368,6 +372,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise listRelatedResourcesForAuditFindingAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listRelatedResourcesForAuditFindingAsync(array $args = [])
|
||||||
* @method \Aws\Result listRoleAliases(array $args = [])
|
* @method \Aws\Result listRoleAliases(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listRoleAliasesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listRoleAliasesAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listSbomValidationResults(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listSbomValidationResultsAsync(array $args = [])
|
||||||
* @method \Aws\Result listScheduledAudits(array $args = [])
|
* @method \Aws\Result listScheduledAudits(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listScheduledAuditsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listScheduledAuditsAsync(array $args = [])
|
||||||
* @method \Aws\Result listSecurityProfiles(array $args = [])
|
* @method \Aws\Result listSecurityProfiles(array $args = [])
|
||||||
|
|
|
@ -85,7 +85,7 @@ class MachineLearningClient extends AwsClient
|
||||||
return static function (callable $handler) {
|
return static function (callable $handler) {
|
||||||
return function (
|
return function (
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request = null
|
?RequestInterface $request = null
|
||||||
) use ($handler) {
|
) use ($handler) {
|
||||||
if ($command->getName() === 'Predict') {
|
if ($command->getName() === 'Predict') {
|
||||||
$request = $request->withUri(new Uri($command['PredictEndpoint']));
|
$request = $request->withUri(new Uri($command['PredictEndpoint']));
|
||||||
|
|
9
vendor/aws/aws-sdk-php/src/MarketplaceReporting/Exception/MarketplaceReportingException.php
vendored
Normal file
9
vendor/aws/aws-sdk-php/src/MarketplaceReporting/Exception/MarketplaceReportingException.php
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
namespace Aws\MarketplaceReporting\Exception;
|
||||||
|
|
||||||
|
use Aws\Exception\AwsException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents an error interacting with the **AWS Marketplace Reporting Service** service.
|
||||||
|
*/
|
||||||
|
class MarketplaceReportingException extends AwsException {}
|
11
vendor/aws/aws-sdk-php/src/MarketplaceReporting/MarketplaceReportingClient.php
vendored
Normal file
11
vendor/aws/aws-sdk-php/src/MarketplaceReporting/MarketplaceReportingClient.php
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
namespace Aws\MarketplaceReporting;
|
||||||
|
|
||||||
|
use Aws\AwsClient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This client is used to interact with the **AWS Marketplace Reporting Service** service.
|
||||||
|
* @method \Aws\Result getBuyerDashboard(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getBuyerDashboardAsync(array $args = [])
|
||||||
|
*/
|
||||||
|
class MarketplaceReportingClient extends AwsClient {}
|
|
@ -37,6 +37,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise describeFlowAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeFlowAsync(array $args = [])
|
||||||
* @method \Aws\Result describeFlowSourceMetadata(array $args = [])
|
* @method \Aws\Result describeFlowSourceMetadata(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise describeFlowSourceMetadataAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeFlowSourceMetadataAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeFlowSourceThumbnail(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeFlowSourceThumbnailAsync(array $args = [])
|
||||||
* @method \Aws\Result describeGateway(array $args = [])
|
* @method \Aws\Result describeGateway(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise describeGatewayAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeGatewayAsync(array $args = [])
|
||||||
* @method \Aws\Result describeGatewayInstance(array $args = [])
|
* @method \Aws\Result describeGatewayInstance(array $args = [])
|
||||||
|
|
|
@ -49,6 +49,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise listQueuesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listQueuesAsync(array $args = [])
|
||||||
* @method \Aws\Result listTagsForResource(array $args = [])
|
* @method \Aws\Result listTagsForResource(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listVersions(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listVersionsAsync(array $args = [])
|
||||||
* @method \Aws\Result putPolicy(array $args = [])
|
* @method \Aws\Result putPolicy(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise putPolicyAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise putPolicyAsync(array $args = [])
|
||||||
* @method \Aws\Result searchJobs(array $args = [])
|
* @method \Aws\Result searchJobs(array $args = [])
|
||||||
|
|
|
@ -189,5 +189,49 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise updateEventBridgeRuleTemplateAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateEventBridgeRuleTemplateAsync(array $args = [])
|
||||||
* @method \Aws\Result updateEventBridgeRuleTemplateGroup(array $args = [])
|
* @method \Aws\Result updateEventBridgeRuleTemplateGroup(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise updateEventBridgeRuleTemplateGroupAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateEventBridgeRuleTemplateGroupAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createChannelPlacementGroup(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createChannelPlacementGroupAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createCluster(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createClusterAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createNetwork(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createNetworkAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createNode(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createNodeAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createNodeRegistrationScript(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createNodeRegistrationScriptAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteChannelPlacementGroup(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteChannelPlacementGroupAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteCluster(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteClusterAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteNetwork(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteNetworkAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteNode(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteNodeAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeChannelPlacementGroup(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeChannelPlacementGroupAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeCluster(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeClusterAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeNetwork(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeNetworkAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeNode(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeNodeAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listChannelPlacementGroups(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listChannelPlacementGroupsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listClusters(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listClustersAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listNetworks(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listNetworksAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listNodes(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listNodesAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateChannelPlacementGroup(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateChannelPlacementGroupAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateCluster(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateClusterAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateNetwork(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateNetworkAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateNode(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateNodeAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateNodeState(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateNodeStateAsync(array $args = [])
|
||||||
*/
|
*/
|
||||||
class MediaLiveClient extends AwsClient {}
|
class MediaLiveClient extends AwsClient {}
|
||||||
|
|
24
vendor/aws/aws-sdk-php/src/Middleware.php
vendored
24
vendor/aws/aws-sdk-php/src/Middleware.php
vendored
|
@ -38,7 +38,7 @@ final class Middleware
|
||||||
) {
|
) {
|
||||||
return function (
|
return function (
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request = null)
|
?RequestInterface $request = null)
|
||||||
use (
|
use (
|
||||||
$handler,
|
$handler,
|
||||||
$api,
|
$api,
|
||||||
|
@ -67,13 +67,13 @@ final class Middleware
|
||||||
*
|
*
|
||||||
* @return callable
|
* @return callable
|
||||||
*/
|
*/
|
||||||
public static function validation(Service $api, Validator $validator = null)
|
public static function validation(Service $api, ?Validator $validator = null)
|
||||||
{
|
{
|
||||||
$validator = $validator ?: new Validator();
|
$validator = $validator ?: new Validator();
|
||||||
return function (callable $handler) use ($api, $validator) {
|
return function (callable $handler) use ($api, $validator) {
|
||||||
return function (
|
return function (
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request = null
|
?RequestInterface $request = null
|
||||||
) use ($api, $validator, $handler) {
|
) use ($api, $validator, $handler) {
|
||||||
if ($api->isModifiedModel()) {
|
if ($api->isModifiedModel()) {
|
||||||
$api = new Service(
|
$api = new Service(
|
||||||
|
@ -178,7 +178,7 @@ final class Middleware
|
||||||
return function (callable $handler) use ($fn) {
|
return function (callable $handler) use ($fn) {
|
||||||
return function (
|
return function (
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request = null
|
?RequestInterface $request = null
|
||||||
) use ($handler, $fn) {
|
) use ($handler, $fn) {
|
||||||
$fn($command, $request);
|
$fn($command, $request);
|
||||||
return $handler($command, $request);
|
return $handler($command, $request);
|
||||||
|
@ -204,8 +204,8 @@ final class Middleware
|
||||||
* @return callable
|
* @return callable
|
||||||
*/
|
*/
|
||||||
public static function retry(
|
public static function retry(
|
||||||
callable $decider = null,
|
?callable $decider = null,
|
||||||
callable $delay = null,
|
?callable $delay = null,
|
||||||
$stats = false
|
$stats = false
|
||||||
) {
|
) {
|
||||||
$decider = $decider ?: RetryMiddleware::createDefaultDecider();
|
$decider = $decider ?: RetryMiddleware::createDefaultDecider();
|
||||||
|
@ -253,7 +253,7 @@ final class Middleware
|
||||||
return function (callable $handler) use ($operations) {
|
return function (callable $handler) use ($operations) {
|
||||||
return function (
|
return function (
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request = null
|
?RequestInterface $request = null
|
||||||
) use ($handler, $operations) {
|
) use ($handler, $operations) {
|
||||||
if (!$request->hasHeader('Content-Type')
|
if (!$request->hasHeader('Content-Type')
|
||||||
&& in_array($command->getName(), $operations, true)
|
&& in_array($command->getName(), $operations, true)
|
||||||
|
@ -322,7 +322,7 @@ final class Middleware
|
||||||
return function (callable $handler) use ($history) {
|
return function (callable $handler) use ($history) {
|
||||||
return function (
|
return function (
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request = null
|
?RequestInterface $request = null
|
||||||
) use ($handler, $history) {
|
) use ($handler, $history) {
|
||||||
$ticket = $history->start($command, $request);
|
$ticket = $history->start($command, $request);
|
||||||
return $handler($command, $request)
|
return $handler($command, $request)
|
||||||
|
@ -354,7 +354,7 @@ final class Middleware
|
||||||
return function (callable $handler) use ($f) {
|
return function (callable $handler) use ($f) {
|
||||||
return function (
|
return function (
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request = null
|
?RequestInterface $request = null
|
||||||
) use ($handler, $f) {
|
) use ($handler, $f) {
|
||||||
return $handler($command, $f($request));
|
return $handler($command, $f($request));
|
||||||
};
|
};
|
||||||
|
@ -375,7 +375,7 @@ final class Middleware
|
||||||
return function (callable $handler) use ($f) {
|
return function (callable $handler) use ($f) {
|
||||||
return function (
|
return function (
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request = null
|
?RequestInterface $request = null
|
||||||
) use ($handler, $f) {
|
) use ($handler, $f) {
|
||||||
return $handler($f($command), $request);
|
return $handler($f($command), $request);
|
||||||
};
|
};
|
||||||
|
@ -395,7 +395,7 @@ final class Middleware
|
||||||
return function (callable $handler) use ($f) {
|
return function (callable $handler) use ($f) {
|
||||||
return function (
|
return function (
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request = null
|
?RequestInterface $request = null
|
||||||
) use ($handler, $f) {
|
) use ($handler, $f) {
|
||||||
return $handler($command, $request)->then($f);
|
return $handler($command, $request)->then($f);
|
||||||
};
|
};
|
||||||
|
@ -407,7 +407,7 @@ final class Middleware
|
||||||
return function (callable $handler) {
|
return function (callable $handler) {
|
||||||
return function (
|
return function (
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request = null
|
?RequestInterface $request = null
|
||||||
) use ($handler) {
|
) use ($handler) {
|
||||||
$start = microtime(true);
|
$start = microtime(true);
|
||||||
return $handler($command, $request)
|
return $handler($command, $request)
|
||||||
|
|
4
vendor/aws/aws-sdk-php/src/MockHandler.php
vendored
4
vendor/aws/aws-sdk-php/src/MockHandler.php
vendored
|
@ -30,8 +30,8 @@ class MockHandler implements \Countable
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
array $resultOrQueue = [],
|
array $resultOrQueue = [],
|
||||||
callable $onFulfilled = null,
|
?callable $onFulfilled = null,
|
||||||
callable $onRejected = null
|
?callable $onRejected = null
|
||||||
) {
|
) {
|
||||||
$this->queue = [];
|
$this->queue = [];
|
||||||
$this->onFulfilled = $onFulfilled;
|
$this->onFulfilled = $onFulfilled;
|
||||||
|
|
|
@ -287,7 +287,7 @@ abstract class AbstractUploadManager implements Promise\PromisorInterface
|
||||||
return function (callable $handler) use (&$errors) {
|
return function (callable $handler) use (&$errors) {
|
||||||
return function (
|
return function (
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request = null
|
?RequestInterface $request = null
|
||||||
) use ($handler, &$errors) {
|
) use ($handler, &$errors) {
|
||||||
return $handler($command, $request)->then(
|
return $handler($command, $request)->then(
|
||||||
function (ResultInterface $result) use ($command) {
|
function (ResultInterface $result) use ($command) {
|
||||||
|
|
9
vendor/aws/aws-sdk-php/src/PCS/Exception/PCSException.php
vendored
Normal file
9
vendor/aws/aws-sdk-php/src/PCS/Exception/PCSException.php
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
namespace Aws\PCS\Exception;
|
||||||
|
|
||||||
|
use Aws\Exception\AwsException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents an error interacting with the **AWS Parallel Computing Service** service.
|
||||||
|
*/
|
||||||
|
class PCSException extends AwsException {}
|
45
vendor/aws/aws-sdk-php/src/PCS/PCSClient.php
vendored
Normal file
45
vendor/aws/aws-sdk-php/src/PCS/PCSClient.php
vendored
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
<?php
|
||||||
|
namespace Aws\PCS;
|
||||||
|
|
||||||
|
use Aws\AwsClient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This client is used to interact with the **AWS Parallel Computing Service** service.
|
||||||
|
* @method \Aws\Result createCluster(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createClusterAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createComputeNodeGroup(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createComputeNodeGroupAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createQueue(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createQueueAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteCluster(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteClusterAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteComputeNodeGroup(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteComputeNodeGroupAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteQueue(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteQueueAsync(array $args = [])
|
||||||
|
* @method \Aws\Result getCluster(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getClusterAsync(array $args = [])
|
||||||
|
* @method \Aws\Result getComputeNodeGroup(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getComputeNodeGroupAsync(array $args = [])
|
||||||
|
* @method \Aws\Result getQueue(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getQueueAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listClusters(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listClustersAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listComputeNodeGroups(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listComputeNodeGroupsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listQueues(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listQueuesAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listTagsForResource(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
|
||||||
|
* @method \Aws\Result registerComputeNodeGroupInstance(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise registerComputeNodeGroupInstanceAsync(array $args = [])
|
||||||
|
* @method \Aws\Result tagResource(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
|
||||||
|
* @method \Aws\Result untagResource(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateComputeNodeGroup(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateComputeNodeGroupAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateQueue(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateQueueAsync(array $args = [])
|
||||||
|
*/
|
||||||
|
class PCSClient extends AwsClient {}
|
|
@ -145,5 +145,7 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise updateMetricAttributionAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateMetricAttributionAsync(array $args = [])
|
||||||
* @method \Aws\Result updateRecommender(array $args = [])
|
* @method \Aws\Result updateRecommender(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise updateRecommenderAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateRecommenderAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateSolution(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateSolutionAsync(array $args = [])
|
||||||
*/
|
*/
|
||||||
class PersonalizeClient extends AwsClient {}
|
class PersonalizeClient extends AwsClient {}
|
||||||
|
|
|
@ -57,6 +57,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise deleteRegistrationAttachmentAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise deleteRegistrationAttachmentAsync(array $args = [])
|
||||||
* @method \Aws\Result deleteRegistrationFieldValue(array $args = [])
|
* @method \Aws\Result deleteRegistrationFieldValue(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise deleteRegistrationFieldValueAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise deleteRegistrationFieldValueAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteResourcePolicy(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteResourcePolicyAsync(array $args = [])
|
||||||
* @method \Aws\Result deleteTextMessageSpendLimitOverride(array $args = [])
|
* @method \Aws\Result deleteTextMessageSpendLimitOverride(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise deleteTextMessageSpendLimitOverrideAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise deleteTextMessageSpendLimitOverrideAsync(array $args = [])
|
||||||
* @method \Aws\Result deleteVerifiedDestinationNumber(array $args = [])
|
* @method \Aws\Result deleteVerifiedDestinationNumber(array $args = [])
|
||||||
|
@ -109,6 +111,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise discardRegistrationVersionAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise discardRegistrationVersionAsync(array $args = [])
|
||||||
* @method \Aws\Result getProtectConfigurationCountryRuleSet(array $args = [])
|
* @method \Aws\Result getProtectConfigurationCountryRuleSet(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise getProtectConfigurationCountryRuleSetAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getProtectConfigurationCountryRuleSetAsync(array $args = [])
|
||||||
|
* @method \Aws\Result getResourcePolicy(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getResourcePolicyAsync(array $args = [])
|
||||||
* @method \Aws\Result listPoolOriginationIdentities(array $args = [])
|
* @method \Aws\Result listPoolOriginationIdentities(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listPoolOriginationIdentitiesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listPoolOriginationIdentitiesAsync(array $args = [])
|
||||||
* @method \Aws\Result listRegistrationAssociations(array $args = [])
|
* @method \Aws\Result listRegistrationAssociations(array $args = [])
|
||||||
|
@ -121,6 +125,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise putOptedOutNumberAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise putOptedOutNumberAsync(array $args = [])
|
||||||
* @method \Aws\Result putRegistrationFieldValue(array $args = [])
|
* @method \Aws\Result putRegistrationFieldValue(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise putRegistrationFieldValueAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise putRegistrationFieldValueAsync(array $args = [])
|
||||||
|
* @method \Aws\Result putResourcePolicy(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise putResourcePolicyAsync(array $args = [])
|
||||||
* @method \Aws\Result releasePhoneNumber(array $args = [])
|
* @method \Aws\Result releasePhoneNumber(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise releasePhoneNumberAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise releasePhoneNumberAsync(array $args = [])
|
||||||
* @method \Aws\Result releaseSenderId(array $args = [])
|
* @method \Aws\Result releaseSenderId(array $args = [])
|
||||||
|
|
|
@ -56,7 +56,7 @@ class PresignUrlMiddleware
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __invoke(CommandInterface $cmd, RequestInterface $request = null)
|
public function __invoke(CommandInterface $cmd, ?RequestInterface $request = null)
|
||||||
{
|
{
|
||||||
if (in_array($cmd->getName(), $this->commandPool)
|
if (in_array($cmd->getName(), $this->commandPool)
|
||||||
&& (!isset($cmd['__skip' . $cmd->getName()]))
|
&& (!isset($cmd['__skip' . $cmd->getName()]))
|
||||||
|
|
|
@ -47,6 +47,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
|
||||||
* @method \Aws\Result updateLibraryItem(array $args = [])
|
* @method \Aws\Result updateLibraryItem(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise updateLibraryItemAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateLibraryItemAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateLibraryItemMetadata(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateLibraryItemMetadataAsync(array $args = [])
|
||||||
* @method \Aws\Result updateQApp(array $args = [])
|
* @method \Aws\Result updateQApp(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise updateQAppAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateQAppAsync(array $args = [])
|
||||||
* @method \Aws\Result updateQAppSession(array $args = [])
|
* @method \Aws\Result updateQAppSession(array $args = [])
|
||||||
|
|
|
@ -163,6 +163,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise describeKeyRegistrationAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeKeyRegistrationAsync(array $args = [])
|
||||||
* @method \Aws\Result describeNamespace(array $args = [])
|
* @method \Aws\Result describeNamespace(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise describeNamespaceAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeNamespaceAsync(array $args = [])
|
||||||
|
* @method \Aws\Result describeQPersonalizationConfiguration(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise describeQPersonalizationConfigurationAsync(array $args = [])
|
||||||
* @method \Aws\Result describeRefreshSchedule(array $args = [])
|
* @method \Aws\Result describeRefreshSchedule(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise describeRefreshScheduleAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise describeRefreshScheduleAsync(array $args = [])
|
||||||
* @method \Aws\Result describeRoleCustomPermission(array $args = [])
|
* @method \Aws\Result describeRoleCustomPermission(array $args = [])
|
||||||
|
@ -219,6 +221,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise listFolderMembersAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listFolderMembersAsync(array $args = [])
|
||||||
* @method \Aws\Result listFolders(array $args = [])
|
* @method \Aws\Result listFolders(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listFoldersAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listFoldersAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listFoldersForResource(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listFoldersForResourceAsync(array $args = [])
|
||||||
* @method \Aws\Result listGroupMemberships(array $args = [])
|
* @method \Aws\Result listGroupMemberships(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listGroupMembershipsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listGroupMembershipsAsync(array $args = [])
|
||||||
* @method \Aws\Result listGroups(array $args = [])
|
* @method \Aws\Result listGroups(array $args = [])
|
||||||
|
@ -331,6 +335,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise updateKeyRegistrationAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateKeyRegistrationAsync(array $args = [])
|
||||||
* @method \Aws\Result updatePublicSharingSettings(array $args = [])
|
* @method \Aws\Result updatePublicSharingSettings(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise updatePublicSharingSettingsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updatePublicSharingSettingsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateQPersonalizationConfiguration(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateQPersonalizationConfigurationAsync(array $args = [])
|
||||||
* @method \Aws\Result updateRefreshSchedule(array $args = [])
|
* @method \Aws\Result updateRefreshSchedule(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise updateRefreshScheduleAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise updateRefreshScheduleAsync(array $args = [])
|
||||||
* @method \Aws\Result updateRoleCustomPermission(array $args = [])
|
* @method \Aws\Result updateRoleCustomPermission(array $args = [])
|
||||||
|
|
|
@ -31,6 +31,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise listIndexesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listIndexesAsync(array $args = [])
|
||||||
* @method \Aws\Result listIndexesForMembers(array $args = [])
|
* @method \Aws\Result listIndexesForMembers(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listIndexesForMembersAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listIndexesForMembersAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listResources(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listResourcesAsync(array $args = [])
|
||||||
* @method \Aws\Result listSupportedResourceTypes(array $args = [])
|
* @method \Aws\Result listSupportedResourceTypes(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listSupportedResourceTypesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listSupportedResourceTypesAsync(array $args = [])
|
||||||
* @method \Aws\Result listTagsForResource(array $args = [])
|
* @method \Aws\Result listTagsForResource(array $args = [])
|
||||||
|
|
|
@ -5,6 +5,8 @@ use Aws\AwsClient;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This client is used to interact with the **AWS Resource Groups** service.
|
* This client is used to interact with the **AWS Resource Groups** service.
|
||||||
|
* @method \Aws\Result cancelTagSyncTask(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise cancelTagSyncTaskAsync(array $args = [])
|
||||||
* @method \Aws\Result createGroup(array $args = [])
|
* @method \Aws\Result createGroup(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise createGroupAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise createGroupAsync(array $args = [])
|
||||||
* @method \Aws\Result deleteGroup(array $args = [])
|
* @method \Aws\Result deleteGroup(array $args = [])
|
||||||
|
@ -17,18 +19,26 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise getGroupConfigurationAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getGroupConfigurationAsync(array $args = [])
|
||||||
* @method \Aws\Result getGroupQuery(array $args = [])
|
* @method \Aws\Result getGroupQuery(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise getGroupQueryAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getGroupQueryAsync(array $args = [])
|
||||||
|
* @method \Aws\Result getTagSyncTask(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getTagSyncTaskAsync(array $args = [])
|
||||||
* @method \Aws\Result getTags(array $args = [])
|
* @method \Aws\Result getTags(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise getTagsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getTagsAsync(array $args = [])
|
||||||
* @method \Aws\Result groupResources(array $args = [])
|
* @method \Aws\Result groupResources(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise groupResourcesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise groupResourcesAsync(array $args = [])
|
||||||
* @method \Aws\Result listGroupResources(array $args = [])
|
* @method \Aws\Result listGroupResources(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listGroupResourcesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listGroupResourcesAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listGroupingStatuses(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listGroupingStatusesAsync(array $args = [])
|
||||||
* @method \Aws\Result listGroups(array $args = [])
|
* @method \Aws\Result listGroups(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listGroupsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listGroupsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listTagSyncTasks(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listTagSyncTasksAsync(array $args = [])
|
||||||
* @method \Aws\Result putGroupConfiguration(array $args = [])
|
* @method \Aws\Result putGroupConfiguration(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise putGroupConfigurationAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise putGroupConfigurationAsync(array $args = [])
|
||||||
* @method \Aws\Result searchResources(array $args = [])
|
* @method \Aws\Result searchResources(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise searchResourcesAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise searchResourcesAsync(array $args = [])
|
||||||
|
* @method \Aws\Result startTagSyncTask(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise startTagSyncTaskAsync(array $args = [])
|
||||||
* @method \Aws\Result tag(array $args = [])
|
* @method \Aws\Result tag(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise tagAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise tagAsync(array $args = [])
|
||||||
* @method \Aws\Result ungroupResources(array $args = [])
|
* @method \Aws\Result ungroupResources(array $args = [])
|
||||||
|
|
|
@ -162,7 +162,7 @@ class ResultPaginator implements \Iterator
|
||||||
$this->result = null;
|
$this->result = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function createNextCommand(array $args, array $nextToken = null)
|
private function createNextCommand(array $args, ?array $nextToken = null)
|
||||||
{
|
{
|
||||||
return $this->client->getCommand($this->operation, array_merge($args, ($nextToken ?: [])));
|
return $this->client->getCommand($this->operation, array_merge($args, ($nextToken ?: [])));
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,7 +87,7 @@ class RetryMiddleware
|
||||||
$retries,
|
$retries,
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request,
|
RequestInterface $request,
|
||||||
ResultInterface $result = null,
|
?ResultInterface $result = null,
|
||||||
$error = null
|
$error = null
|
||||||
) use ($maxRetries, $retryCurlErrors, $extraConfig) {
|
) use ($maxRetries, $retryCurlErrors, $extraConfig) {
|
||||||
// Allow command-level options to override this value
|
// Allow command-level options to override this value
|
||||||
|
@ -216,7 +216,7 @@ class RetryMiddleware
|
||||||
*/
|
*/
|
||||||
public function __invoke(
|
public function __invoke(
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request = null
|
?RequestInterface $request = null
|
||||||
) {
|
) {
|
||||||
$retries = 0;
|
$retries = 0;
|
||||||
$requestStats = [];
|
$requestStats = [];
|
||||||
|
|
|
@ -160,7 +160,7 @@ class Route53Client extends AwsClient
|
||||||
private function cleanIdFn()
|
private function cleanIdFn()
|
||||||
{
|
{
|
||||||
return function (callable $handler) {
|
return function (callable $handler) {
|
||||||
return function (CommandInterface $c, RequestInterface $r = null) use ($handler) {
|
return function (CommandInterface $c, ?RequestInterface $r = null) use ($handler) {
|
||||||
foreach (['Id', 'HostedZoneId', 'DelegationSetId'] as $clean) {
|
foreach (['Id', 'HostedZoneId', 'DelegationSetId'] as $clean) {
|
||||||
if ($c->hasParam($clean)) {
|
if ($c->hasParam($clean)) {
|
||||||
$c[$clean] = $this->cleanId($c[$clean]);
|
$c[$clean] = $this->cleanId($c[$clean]);
|
||||||
|
|
|
@ -36,7 +36,7 @@ class ExpiresParsingMiddleware
|
||||||
$this->nextHandler = $nextHandler;
|
$this->nextHandler = $nextHandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __invoke(CommandInterface $command, RequestInterface $request = null)
|
public function __invoke(CommandInterface $command, ?RequestInterface $request = null)
|
||||||
{
|
{
|
||||||
$next = $this->nextHandler;
|
$next = $this->nextHandler;
|
||||||
return $next($command, $request)->then(
|
return $next($command, $request)->then(
|
||||||
|
|
|
@ -37,8 +37,8 @@ final class ValidateResponseChecksumResultMutator implements S3ResultMutator
|
||||||
*/
|
*/
|
||||||
public function __invoke(
|
public function __invoke(
|
||||||
ResultInterface $result,
|
ResultInterface $result,
|
||||||
CommandInterface $command = null,
|
?CommandInterface $command = null,
|
||||||
ResponseInterface $response = null
|
?ResponseInterface $response = null
|
||||||
): ResultInterface
|
): ResultInterface
|
||||||
{
|
{
|
||||||
$operation = $this->api->getOperation($command->getName());
|
$operation = $this->api->getOperation($command->getName());
|
||||||
|
|
|
@ -37,7 +37,7 @@ class PermanentRedirectMiddleware
|
||||||
$this->nextHandler = $nextHandler;
|
$this->nextHandler = $nextHandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __invoke(CommandInterface $command, RequestInterface $request = null)
|
public function __invoke(CommandInterface $command, ?RequestInterface $request = null)
|
||||||
{
|
{
|
||||||
$next = $this->nextHandler;
|
$next = $this->nextHandler;
|
||||||
return $next($command, $request)->then(
|
return $next($command, $request)->then(
|
||||||
|
|
|
@ -35,7 +35,7 @@ class PutObjectUrlMiddleware
|
||||||
$this->nextHandler = $nextHandler;
|
$this->nextHandler = $nextHandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __invoke(CommandInterface $command, RequestInterface $request = null)
|
public function __invoke(CommandInterface $command, ?RequestInterface $request = null)
|
||||||
{
|
{
|
||||||
$next = $this->nextHandler;
|
$next = $this->nextHandler;
|
||||||
return $next($command, $request)->then(
|
return $next($command, $request)->then(
|
||||||
|
|
26
vendor/aws/aws-sdk-php/src/S3/S3Client.php
vendored
26
vendor/aws/aws-sdk-php/src/S3/S3Client.php
vendored
|
@ -234,6 +234,8 @@ use Psr\Http\Message\RequestInterface;
|
||||||
*/
|
*/
|
||||||
class S3Client extends AwsClient implements S3ClientInterface
|
class S3Client extends AwsClient implements S3ClientInterface
|
||||||
{
|
{
|
||||||
|
private const DIRECTORY_BUCKET_REGEX = '/^[a-zA-Z0-9_-]+--[a-z0-9]+-az\d+--x-s3'
|
||||||
|
.'(?!.*(?:-s3alias|--ol-s3|\.mrap))$/';
|
||||||
use S3ClientTrait;
|
use S3ClientTrait;
|
||||||
|
|
||||||
/** @var array */
|
/** @var array */
|
||||||
|
@ -574,16 +576,22 @@ class S3Client extends AwsClient implements S3ClientInterface
|
||||||
$region = $this->getRegion();
|
$region = $this->getRegion();
|
||||||
return static function (callable $handler) use ($region) {
|
return static function (callable $handler) use ($region) {
|
||||||
return function (Command $command, $request = null) use ($handler, $region) {
|
return function (Command $command, $request = null) use ($handler, $region) {
|
||||||
if ($command->getName() === 'CreateBucket') {
|
if ($command->getName() === 'CreateBucket'
|
||||||
|
&& !self::isDirectoryBucket($command['Bucket'])
|
||||||
|
) {
|
||||||
$locationConstraint = $command['CreateBucketConfiguration']['LocationConstraint']
|
$locationConstraint = $command['CreateBucketConfiguration']['LocationConstraint']
|
||||||
?? null;
|
?? null;
|
||||||
|
|
||||||
if ($locationConstraint === 'us-east-1') {
|
if ($locationConstraint === 'us-east-1') {
|
||||||
unset($command['CreateBucketConfiguration']);
|
unset($command['CreateBucketConfiguration']);
|
||||||
} elseif ('us-east-1' !== $region && empty($locationConstraint)) {
|
} elseif ('us-east-1' !== $region && empty($locationConstraint)) {
|
||||||
|
if (isset($command['CreateBucketConfiguration'])) {
|
||||||
|
$command['CreateBucketConfiguration']['LocationConstraint'] = $region;
|
||||||
|
} else {
|
||||||
$command['CreateBucketConfiguration'] = ['LocationConstraint' => $region];
|
$command['CreateBucketConfiguration'] = ['LocationConstraint' => $region];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $handler($command, $request);
|
return $handler($command, $request);
|
||||||
};
|
};
|
||||||
|
@ -620,7 +628,7 @@ class S3Client extends AwsClient implements S3ClientInterface
|
||||||
return static function (callable $handler) {
|
return static function (callable $handler) {
|
||||||
return function (
|
return function (
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request = null
|
?RequestInterface $request = null
|
||||||
) use ($handler) {
|
) use ($handler) {
|
||||||
if ($command->getName() === 'HeadObject'
|
if ($command->getName() === 'HeadObject'
|
||||||
&& !isset($command['@http']['decode_content'])
|
&& !isset($command['@http']['decode_content'])
|
||||||
|
@ -721,7 +729,7 @@ class S3Client extends AwsClient implements S3ClientInterface
|
||||||
return function (callable $handler) {
|
return function (callable $handler) {
|
||||||
return function (
|
return function (
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request = null
|
?RequestInterface $request = null
|
||||||
) use ($handler) {
|
) use ($handler) {
|
||||||
if (!empty($command['@context']['signature_version'])
|
if (!empty($command['@context']['signature_version'])
|
||||||
&& $command['@context']['signature_version'] === 'v4-s3express'
|
&& $command['@context']['signature_version'] === 'v4-s3express'
|
||||||
|
@ -858,6 +866,18 @@ class S3Client extends AwsClient implements S3ClientInterface
|
||||||
$this->clientBuiltIns[$key] = $value;
|
$this->clientBuiltIns[$key] = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determines whether a bucket is a directory bucket.
|
||||||
|
* Only considers the availability zone/suffix format
|
||||||
|
*
|
||||||
|
* @param string $bucket
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public static function isDirectoryBucket(string $bucket): bool
|
||||||
|
{
|
||||||
|
return preg_match(self::DIRECTORY_BUCKET_REGEX, $bucket) === 1;
|
||||||
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
public static function _applyRetryConfig($value, $args, HandlerList $list)
|
public static function _applyRetryConfig($value, $args, HandlerList $list)
|
||||||
{
|
{
|
||||||
|
|
|
@ -35,7 +35,7 @@ class SSECMiddleware
|
||||||
|
|
||||||
public function __invoke(
|
public function __invoke(
|
||||||
CommandInterface $command,
|
CommandInterface $command,
|
||||||
RequestInterface $request = null
|
?RequestInterface $request = null
|
||||||
) {
|
) {
|
||||||
// Allows only HTTPS connections when using SSE-C
|
// Allows only HTTPS connections when using SSE-C
|
||||||
if (($command['SSECustomerKey'] || $command['CopySourceSSECustomerKey'])
|
if (($command['SSECustomerKey'] || $command['CopySourceSSECustomerKey'])
|
||||||
|
|
|
@ -110,7 +110,7 @@ class StreamWrapper
|
||||||
public static function register(
|
public static function register(
|
||||||
S3ClientInterface $client,
|
S3ClientInterface $client,
|
||||||
$protocol = 's3',
|
$protocol = 's3',
|
||||||
CacheInterface $cache = null,
|
?CacheInterface $cache = null,
|
||||||
$v2Existence = false
|
$v2Existence = false
|
||||||
) {
|
) {
|
||||||
self::$useV2Existence = $v2Existence;
|
self::$useV2Existence = $v2Existence;
|
||||||
|
|
|
@ -141,6 +141,8 @@ use GuzzleHttp\Promise\PromiseInterface;
|
||||||
* @method \GuzzleHttp\Promise\Promise listAccessPointsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listAccessPointsAsync(array $args = [])
|
||||||
* @method \Aws\Result listAccessPointsForObjectLambda(array $args = [])
|
* @method \Aws\Result listAccessPointsForObjectLambda(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listAccessPointsForObjectLambdaAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listAccessPointsForObjectLambdaAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listCallerAccessGrants(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listCallerAccessGrantsAsync(array $args = [])
|
||||||
* @method \Aws\Result listJobs(array $args = [])
|
* @method \Aws\Result listJobs(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listJobsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listJobsAsync(array $args = [])
|
||||||
* @method \Aws\Result listMultiRegionAccessPoints(array $args = [])
|
* @method \Aws\Result listMultiRegionAccessPoints(array $args = [])
|
||||||
|
|
|
@ -5,6 +5,8 @@ use Aws\AwsClient;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This client is used to interact with the **Amazon SageMaker Metrics Service** service.
|
* This client is used to interact with the **Amazon SageMaker Metrics Service** service.
|
||||||
|
* @method \Aws\Result batchGetMetrics(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise batchGetMetricsAsync(array $args = [])
|
||||||
* @method \Aws\Result batchPutMetrics(array $args = [])
|
* @method \Aws\Result batchPutMetrics(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise batchPutMetricsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise batchPutMetricsAsync(array $args = [])
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -8,17 +8,17 @@ use Symfony\Component\Filesystem\Filesystem;
|
||||||
class Composer
|
class Composer
|
||||||
{
|
{
|
||||||
|
|
||||||
public static function removeUnusedServicesInDev(Event $event, Filesystem $filesystem = null)
|
public static function removeUnusedServicesInDev(Event $event, ?Filesystem $filesystem = null)
|
||||||
{
|
{
|
||||||
self::removeUnusedServicesWithConfig($event, $filesystem, true);
|
self::removeUnusedServicesWithConfig($event, $filesystem, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function removeUnusedServices(Event $event, Filesystem $filesystem = null)
|
public static function removeUnusedServices(Event $event, ?Filesystem $filesystem = null)
|
||||||
{
|
{
|
||||||
self::removeUnusedServicesWithConfig($event, $filesystem, false);
|
self::removeUnusedServicesWithConfig($event, $filesystem, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function removeUnusedServicesWithConfig(Event $event, Filesystem $filesystem = null, $isDev = false)
|
private static function removeUnusedServicesWithConfig(Event $event, ?Filesystem $filesystem = null, $isDev = false)
|
||||||
{
|
{
|
||||||
if ($isDev && !$event->isDevMode()){
|
if ($isDev && !$event->isDevMode()){
|
||||||
return;
|
return;
|
||||||
|
|
10
vendor/aws/aws-sdk-php/src/Sdk.php
vendored
10
vendor/aws/aws-sdk-php/src/Sdk.php
vendored
|
@ -234,6 +234,8 @@ namespace Aws;
|
||||||
* @method \Aws\MultiRegionClient createMultiRegionDirectConnect(array $args = [])
|
* @method \Aws\MultiRegionClient createMultiRegionDirectConnect(array $args = [])
|
||||||
* @method \Aws\DirectoryService\DirectoryServiceClient createDirectoryService(array $args = [])
|
* @method \Aws\DirectoryService\DirectoryServiceClient createDirectoryService(array $args = [])
|
||||||
* @method \Aws\MultiRegionClient createMultiRegionDirectoryService(array $args = [])
|
* @method \Aws\MultiRegionClient createMultiRegionDirectoryService(array $args = [])
|
||||||
|
* @method \Aws\DirectoryServiceData\DirectoryServiceDataClient createDirectoryServiceData(array $args = [])
|
||||||
|
* @method \Aws\MultiRegionClient createMultiRegionDirectoryServiceData(array $args = [])
|
||||||
* @method \Aws\DocDB\DocDBClient createDocDB(array $args = [])
|
* @method \Aws\DocDB\DocDBClient createDocDB(array $args = [])
|
||||||
* @method \Aws\MultiRegionClient createMultiRegionDocDB(array $args = [])
|
* @method \Aws\MultiRegionClient createMultiRegionDocDB(array $args = [])
|
||||||
* @method \Aws\DocDBElastic\DocDBElasticClient createDocDBElastic(array $args = [])
|
* @method \Aws\DocDBElastic\DocDBElasticClient createDocDBElastic(array $args = [])
|
||||||
|
@ -462,6 +464,8 @@ namespace Aws;
|
||||||
* @method \Aws\MultiRegionClient createMultiRegionMarketplaceEntitlementService(array $args = [])
|
* @method \Aws\MultiRegionClient createMultiRegionMarketplaceEntitlementService(array $args = [])
|
||||||
* @method \Aws\MarketplaceMetering\MarketplaceMeteringClient createMarketplaceMetering(array $args = [])
|
* @method \Aws\MarketplaceMetering\MarketplaceMeteringClient createMarketplaceMetering(array $args = [])
|
||||||
* @method \Aws\MultiRegionClient createMultiRegionMarketplaceMetering(array $args = [])
|
* @method \Aws\MultiRegionClient createMultiRegionMarketplaceMetering(array $args = [])
|
||||||
|
* @method \Aws\MarketplaceReporting\MarketplaceReportingClient createMarketplaceReporting(array $args = [])
|
||||||
|
* @method \Aws\MultiRegionClient createMultiRegionMarketplaceReporting(array $args = [])
|
||||||
* @method \Aws\MediaConnect\MediaConnectClient createMediaConnect(array $args = [])
|
* @method \Aws\MediaConnect\MediaConnectClient createMediaConnect(array $args = [])
|
||||||
* @method \Aws\MultiRegionClient createMultiRegionMediaConnect(array $args = [])
|
* @method \Aws\MultiRegionClient createMultiRegionMediaConnect(array $args = [])
|
||||||
* @method \Aws\MediaConvert\MediaConvertClient createMediaConvert(array $args = [])
|
* @method \Aws\MediaConvert\MediaConvertClient createMediaConvert(array $args = [])
|
||||||
|
@ -526,6 +530,8 @@ namespace Aws;
|
||||||
* @method \Aws\MultiRegionClient createMultiRegionOrganizations(array $args = [])
|
* @method \Aws\MultiRegionClient createMultiRegionOrganizations(array $args = [])
|
||||||
* @method \Aws\Outposts\OutpostsClient createOutposts(array $args = [])
|
* @method \Aws\Outposts\OutpostsClient createOutposts(array $args = [])
|
||||||
* @method \Aws\MultiRegionClient createMultiRegionOutposts(array $args = [])
|
* @method \Aws\MultiRegionClient createMultiRegionOutposts(array $args = [])
|
||||||
|
* @method \Aws\PCS\PCSClient createPCS(array $args = [])
|
||||||
|
* @method \Aws\MultiRegionClient createMultiRegionPCS(array $args = [])
|
||||||
* @method \Aws\PI\PIClient createPI(array $args = [])
|
* @method \Aws\PI\PIClient createPI(array $args = [])
|
||||||
* @method \Aws\MultiRegionClient createMultiRegionPI(array $args = [])
|
* @method \Aws\MultiRegionClient createMultiRegionPI(array $args = [])
|
||||||
* @method \Aws\Panorama\PanoramaClient createPanorama(array $args = [])
|
* @method \Aws\Panorama\PanoramaClient createPanorama(array $args = [])
|
||||||
|
@ -744,8 +750,6 @@ namespace Aws;
|
||||||
* @method \Aws\MultiRegionClient createMultiRegionWellArchitected(array $args = [])
|
* @method \Aws\MultiRegionClient createMultiRegionWellArchitected(array $args = [])
|
||||||
* @method \Aws\WorkDocs\WorkDocsClient createWorkDocs(array $args = [])
|
* @method \Aws\WorkDocs\WorkDocsClient createWorkDocs(array $args = [])
|
||||||
* @method \Aws\MultiRegionClient createMultiRegionWorkDocs(array $args = [])
|
* @method \Aws\MultiRegionClient createMultiRegionWorkDocs(array $args = [])
|
||||||
* @method \Aws\WorkLink\WorkLinkClient createWorkLink(array $args = [])
|
|
||||||
* @method \Aws\MultiRegionClient createMultiRegionWorkLink(array $args = [])
|
|
||||||
* @method \Aws\WorkMail\WorkMailClient createWorkMail(array $args = [])
|
* @method \Aws\WorkMail\WorkMailClient createWorkMail(array $args = [])
|
||||||
* @method \Aws\MultiRegionClient createMultiRegionWorkMail(array $args = [])
|
* @method \Aws\MultiRegionClient createMultiRegionWorkMail(array $args = [])
|
||||||
* @method \Aws\WorkMailMessageFlow\WorkMailMessageFlowClient createWorkMailMessageFlow(array $args = [])
|
* @method \Aws\WorkMailMessageFlow\WorkMailMessageFlowClient createWorkMailMessageFlow(array $args = [])
|
||||||
|
@ -775,7 +779,7 @@ namespace Aws;
|
||||||
*/
|
*/
|
||||||
class Sdk
|
class Sdk
|
||||||
{
|
{
|
||||||
const VERSION = '3.320.7';
|
const VERSION = '3.323.1';
|
||||||
|
|
||||||
/** @var array Arguments for creating clients */
|
/** @var array Arguments for creating clients */
|
||||||
private $args;
|
private $args;
|
||||||
|
|
|
@ -58,7 +58,7 @@ class S3SignatureV4 extends SignatureV4
|
||||||
CredentialsInterface $credentials,
|
CredentialsInterface $credentials,
|
||||||
RequestInterface $request,
|
RequestInterface $request,
|
||||||
$signingService,
|
$signingService,
|
||||||
SigningConfigAWS $signingConfig = null
|
?SigningConfigAWS $signingConfig = null
|
||||||
){
|
){
|
||||||
$this->verifyCRTLoaded();
|
$this->verifyCRTLoaded();
|
||||||
$credentials_provider = $this->createCRTStaticCredentialsProvider($credentials);
|
$credentials_provider = $this->createCRTStaticCredentialsProvider($credentials);
|
||||||
|
|
|
@ -508,7 +508,7 @@ class SignatureV4 implements SignatureInterface
|
||||||
CredentialsInterface $credentials,
|
CredentialsInterface $credentials,
|
||||||
RequestInterface $request,
|
RequestInterface $request,
|
||||||
$signingService,
|
$signingService,
|
||||||
SigningConfigAWS $signingConfig = null
|
?SigningConfigAWS $signingConfig = null
|
||||||
){
|
){
|
||||||
$this->verifyCRTLoaded();
|
$this->verifyCRTLoaded();
|
||||||
$signingConfig = $signingConfig ?? new SigningConfigAWS([
|
$signingConfig = $signingConfig ?? new SigningConfigAWS([
|
||||||
|
|
2
vendor/aws/aws-sdk-php/src/Sqs/SqsClient.php
vendored
2
vendor/aws/aws-sdk-php/src/Sqs/SqsClient.php
vendored
|
@ -169,7 +169,7 @@ class SqsClient extends AwsClient
|
||||||
return static function (callable $handler) {
|
return static function (callable $handler) {
|
||||||
return function (
|
return function (
|
||||||
CommandInterface $c,
|
CommandInterface $c,
|
||||||
RequestInterface $r = null
|
?RequestInterface $r = null
|
||||||
) use ($handler) {
|
) use ($handler) {
|
||||||
if ($c->getName() !== 'ReceiveMessage') {
|
if ($c->getName() !== 'ReceiveMessage') {
|
||||||
return $handler($c, $r);
|
return $handler($c, $r);
|
||||||
|
|
|
@ -7,9 +7,35 @@ use Aws\AwsClient;
|
||||||
* This client is used to interact with the **AWS Supply Chain** service.
|
* This client is used to interact with the **AWS Supply Chain** service.
|
||||||
* @method \Aws\Result createBillOfMaterialsImportJob(array $args = [])
|
* @method \Aws\Result createBillOfMaterialsImportJob(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise createBillOfMaterialsImportJobAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise createBillOfMaterialsImportJobAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createDataIntegrationFlow(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createDataIntegrationFlowAsync(array $args = [])
|
||||||
|
* @method \Aws\Result createDataLakeDataset(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise createDataLakeDatasetAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteDataIntegrationFlow(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteDataIntegrationFlowAsync(array $args = [])
|
||||||
|
* @method \Aws\Result deleteDataLakeDataset(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise deleteDataLakeDatasetAsync(array $args = [])
|
||||||
* @method \Aws\Result getBillOfMaterialsImportJob(array $args = [])
|
* @method \Aws\Result getBillOfMaterialsImportJob(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise getBillOfMaterialsImportJobAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getBillOfMaterialsImportJobAsync(array $args = [])
|
||||||
|
* @method \Aws\Result getDataIntegrationFlow(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getDataIntegrationFlowAsync(array $args = [])
|
||||||
|
* @method \Aws\Result getDataLakeDataset(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getDataLakeDatasetAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listDataIntegrationFlows(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listDataIntegrationFlowsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listDataLakeDatasets(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listDataLakeDatasetsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listTagsForResource(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
|
||||||
* @method \Aws\Result sendDataIntegrationEvent(array $args = [])
|
* @method \Aws\Result sendDataIntegrationEvent(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise sendDataIntegrationEventAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise sendDataIntegrationEventAsync(array $args = [])
|
||||||
|
* @method \Aws\Result tagResource(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
|
||||||
|
* @method \Aws\Result untagResource(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateDataIntegrationFlow(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateDataIntegrationFlowAsync(array $args = [])
|
||||||
|
* @method \Aws\Result updateDataLakeDataset(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise updateDataLakeDatasetAsync(array $args = [])
|
||||||
*/
|
*/
|
||||||
class SupplyChainClient extends AwsClient {}
|
class SupplyChainClient extends AwsClient {}
|
||||||
|
|
|
@ -37,7 +37,7 @@ class SsoTokenProvider implements RefreshableTokenProviderInterface
|
||||||
public function __construct(
|
public function __construct(
|
||||||
$profileName,
|
$profileName,
|
||||||
$configFilePath = null,
|
$configFilePath = null,
|
||||||
SSOOIDCClient $ssoOidcClient = null
|
?SSOOIDCClient $ssoOidcClient = null
|
||||||
) {
|
) {
|
||||||
$this->profileName = $this->resolveProfileName($profileName);
|
$this->profileName = $this->resolveProfileName($profileName);
|
||||||
$this->configFilePath = $this->resolveConfigFile($configFilePath);
|
$this->configFilePath = $this->resolveConfigFile($configFilePath);
|
||||||
|
|
|
@ -61,7 +61,7 @@ class TraceMiddleware
|
||||||
* headers contained in this array will be replaced with the if
|
* headers contained in this array will be replaced with the if
|
||||||
* "scrub_auth" is set to true.
|
* "scrub_auth" is set to true.
|
||||||
*/
|
*/
|
||||||
public function __construct(array $config = [], Service $service = null)
|
public function __construct(array $config = [], ?Service $service = null)
|
||||||
{
|
{
|
||||||
$this->config = $config + [
|
$this->config = $config + [
|
||||||
'logfn' => function ($value) { echo $value; },
|
'logfn' => function ($value) { echo $value; },
|
||||||
|
@ -179,7 +179,7 @@ class TraceMiddleware
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function responseArray(ResponseInterface $response = null)
|
private function responseArray(?ResponseInterface $response = null)
|
||||||
{
|
{
|
||||||
return !$response ? [] : [
|
return !$response ? [] : [
|
||||||
'instance' => spl_object_hash($response),
|
'instance' => spl_object_hash($response),
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?php
|
|
||||||
namespace Aws\WorkLink\Exception;
|
|
||||||
|
|
||||||
use Aws\Exception\AwsException;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Represents an error interacting with the **Amazon WorkLink** service.
|
|
||||||
*/
|
|
||||||
class WorkLinkException extends AwsException {}
|
|
|
@ -1,75 +0,0 @@
|
||||||
<?php
|
|
||||||
namespace Aws\WorkLink;
|
|
||||||
|
|
||||||
use Aws\AwsClient;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This client is used to interact with the **Amazon WorkLink** service.
|
|
||||||
* @method \Aws\Result associateDomain(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise associateDomainAsync(array $args = [])
|
|
||||||
* @method \Aws\Result associateWebsiteAuthorizationProvider(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise associateWebsiteAuthorizationProviderAsync(array $args = [])
|
|
||||||
* @method \Aws\Result associateWebsiteCertificateAuthority(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise associateWebsiteCertificateAuthorityAsync(array $args = [])
|
|
||||||
* @method \Aws\Result createFleet(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise createFleetAsync(array $args = [])
|
|
||||||
* @method \Aws\Result deleteFleet(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise deleteFleetAsync(array $args = [])
|
|
||||||
* @method \Aws\Result describeAuditStreamConfiguration(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise describeAuditStreamConfigurationAsync(array $args = [])
|
|
||||||
* @method \Aws\Result describeCompanyNetworkConfiguration(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise describeCompanyNetworkConfigurationAsync(array $args = [])
|
|
||||||
* @method \Aws\Result describeDevice(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise describeDeviceAsync(array $args = [])
|
|
||||||
* @method \Aws\Result describeDevicePolicyConfiguration(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise describeDevicePolicyConfigurationAsync(array $args = [])
|
|
||||||
* @method \Aws\Result describeDomain(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise describeDomainAsync(array $args = [])
|
|
||||||
* @method \Aws\Result describeFleetMetadata(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise describeFleetMetadataAsync(array $args = [])
|
|
||||||
* @method \Aws\Result describeIdentityProviderConfiguration(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise describeIdentityProviderConfigurationAsync(array $args = [])
|
|
||||||
* @method \Aws\Result describeWebsiteCertificateAuthority(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise describeWebsiteCertificateAuthorityAsync(array $args = [])
|
|
||||||
* @method \Aws\Result disassociateDomain(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise disassociateDomainAsync(array $args = [])
|
|
||||||
* @method \Aws\Result disassociateWebsiteAuthorizationProvider(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise disassociateWebsiteAuthorizationProviderAsync(array $args = [])
|
|
||||||
* @method \Aws\Result disassociateWebsiteCertificateAuthority(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise disassociateWebsiteCertificateAuthorityAsync(array $args = [])
|
|
||||||
* @method \Aws\Result listDevices(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise listDevicesAsync(array $args = [])
|
|
||||||
* @method \Aws\Result listDomains(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise listDomainsAsync(array $args = [])
|
|
||||||
* @method \Aws\Result listFleets(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise listFleetsAsync(array $args = [])
|
|
||||||
* @method \Aws\Result listTagsForResource(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
|
|
||||||
* @method \Aws\Result listWebsiteAuthorizationProviders(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise listWebsiteAuthorizationProvidersAsync(array $args = [])
|
|
||||||
* @method \Aws\Result listWebsiteCertificateAuthorities(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise listWebsiteCertificateAuthoritiesAsync(array $args = [])
|
|
||||||
* @method \Aws\Result restoreDomainAccess(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise restoreDomainAccessAsync(array $args = [])
|
|
||||||
* @method \Aws\Result revokeDomainAccess(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise revokeDomainAccessAsync(array $args = [])
|
|
||||||
* @method \Aws\Result signOutUser(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise signOutUserAsync(array $args = [])
|
|
||||||
* @method \Aws\Result tagResource(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
|
|
||||||
* @method \Aws\Result untagResource(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
|
|
||||||
* @method \Aws\Result updateAuditStreamConfiguration(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise updateAuditStreamConfigurationAsync(array $args = [])
|
|
||||||
* @method \Aws\Result updateCompanyNetworkConfiguration(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise updateCompanyNetworkConfigurationAsync(array $args = [])
|
|
||||||
* @method \Aws\Result updateDevicePolicyConfiguration(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise updateDevicePolicyConfigurationAsync(array $args = [])
|
|
||||||
* @method \Aws\Result updateDomainMetadata(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise updateDomainMetadataAsync(array $args = [])
|
|
||||||
* @method \Aws\Result updateFleetMetadata(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise updateFleetMetadataAsync(array $args = [])
|
|
||||||
* @method \Aws\Result updateIdentityProviderConfiguration(array $args = [])
|
|
||||||
* @method \GuzzleHttp\Promise\Promise updateIdentityProviderConfigurationAsync(array $args = [])
|
|
||||||
*/
|
|
||||||
class WorkLinkClient extends AwsClient {}
|
|
|
@ -61,6 +61,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise disassociateUserAccessLoggingSettingsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise disassociateUserAccessLoggingSettingsAsync(array $args = [])
|
||||||
* @method \Aws\Result disassociateUserSettings(array $args = [])
|
* @method \Aws\Result disassociateUserSettings(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise disassociateUserSettingsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise disassociateUserSettingsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result expireSession(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise expireSessionAsync(array $args = [])
|
||||||
* @method \Aws\Result getBrowserSettings(array $args = [])
|
* @method \Aws\Result getBrowserSettings(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise getBrowserSettingsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getBrowserSettingsAsync(array $args = [])
|
||||||
* @method \Aws\Result getIdentityProvider(array $args = [])
|
* @method \Aws\Result getIdentityProvider(array $args = [])
|
||||||
|
@ -73,6 +75,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise getPortalAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getPortalAsync(array $args = [])
|
||||||
* @method \Aws\Result getPortalServiceProviderMetadata(array $args = [])
|
* @method \Aws\Result getPortalServiceProviderMetadata(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise getPortalServiceProviderMetadataAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getPortalServiceProviderMetadataAsync(array $args = [])
|
||||||
|
* @method \Aws\Result getSession(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise getSessionAsync(array $args = [])
|
||||||
* @method \Aws\Result getTrustStore(array $args = [])
|
* @method \Aws\Result getTrustStore(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise getTrustStoreAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise getTrustStoreAsync(array $args = [])
|
||||||
* @method \Aws\Result getTrustStoreCertificate(array $args = [])
|
* @method \Aws\Result getTrustStoreCertificate(array $args = [])
|
||||||
|
@ -91,6 +95,8 @@ use Aws\AwsClient;
|
||||||
* @method \GuzzleHttp\Promise\Promise listNetworkSettingsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listNetworkSettingsAsync(array $args = [])
|
||||||
* @method \Aws\Result listPortals(array $args = [])
|
* @method \Aws\Result listPortals(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listPortalsAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listPortalsAsync(array $args = [])
|
||||||
|
* @method \Aws\Result listSessions(array $args = [])
|
||||||
|
* @method \GuzzleHttp\Promise\Promise listSessionsAsync(array $args = [])
|
||||||
* @method \Aws\Result listTagsForResource(array $args = [])
|
* @method \Aws\Result listTagsForResource(array $args = [])
|
||||||
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
|
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
|
||||||
* @method \Aws\Result listTrustStoreCertificates(array $args = [])
|
* @method \Aws\Result listTrustStoreCertificates(array $args = [])
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue