Skip to content

Commit 1a44442

Browse files
Merge pull request #1965 from nextcloud/dependabot/composer/aws/aws-sdk-php-3.324.13
build(deps): Bump aws/aws-sdk-php from 3.311.2 to 3.324.13
2 parents f0d0672 + f23dee0 commit 1a44442

File tree

520 files changed

+2937
-939
lines changed

Some content is hidden

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

520 files changed

+2937
-939
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ bin
4343
# ignore docs and tests
4444
*/*/tests
4545

46+
aws/aws-crt-php/format-check.py
4647
aws/aws-sdk-php/.changes
4748

4849
brick/math/random-tests.php

aws/aws-sdk-php/src/ARCZonalShift/ARCZonalShiftClient.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
* @method \GuzzleHttp\Promise\Promise createPracticeRunConfigurationAsync(array $args = [])
1212
* @method \Aws\Result deletePracticeRunConfiguration(array $args = [])
1313
* @method \GuzzleHttp\Promise\Promise deletePracticeRunConfigurationAsync(array $args = [])
14+
* @method \Aws\Result getAutoshiftObserverNotificationStatus(array $args = [])
15+
* @method \GuzzleHttp\Promise\Promise getAutoshiftObserverNotificationStatusAsync(array $args = [])
1416
* @method \Aws\Result getManagedResource(array $args = [])
1517
* @method \GuzzleHttp\Promise\Promise getManagedResourceAsync(array $args = [])
1618
* @method \Aws\Result listAutoshifts(array $args = [])
@@ -21,6 +23,8 @@
2123
* @method \GuzzleHttp\Promise\Promise listZonalShiftsAsync(array $args = [])
2224
* @method \Aws\Result startZonalShift(array $args = [])
2325
* @method \GuzzleHttp\Promise\Promise startZonalShiftAsync(array $args = [])
26+
* @method \Aws\Result updateAutoshiftObserverNotificationStatus(array $args = [])
27+
* @method \GuzzleHttp\Promise\Promise updateAutoshiftObserverNotificationStatusAsync(array $args = [])
2428
* @method \Aws\Result updatePracticeRunConfiguration(array $args = [])
2529
* @method \GuzzleHttp\Promise\Promise updatePracticeRunConfigurationAsync(array $args = [])
2630
* @method \Aws\Result updateZonalAutoshiftConfiguration(array $args = [])

aws/aws-sdk-php/src/AccessAnalyzer/AccessAnalyzerClient.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* @method \GuzzleHttp\Promise\Promise checkAccessNotGrantedAsync(array $args = [])
1414
* @method \Aws\Result checkNoNewAccess(array $args = [])
1515
* @method \GuzzleHttp\Promise\Promise checkNoNewAccessAsync(array $args = [])
16+
* @method \Aws\Result checkNoPublicAccess(array $args = [])
17+
* @method \GuzzleHttp\Promise\Promise checkNoPublicAccessAsync(array $args = [])
1618
* @method \Aws\Result createAccessPreview(array $args = [])
1719
* @method \GuzzleHttp\Promise\Promise createAccessPreviewAsync(array $args = [])
1820
* @method \Aws\Result createAnalyzer(array $args = [])
@@ -23,6 +25,8 @@
2325
* @method \GuzzleHttp\Promise\Promise deleteAnalyzerAsync(array $args = [])
2426
* @method \Aws\Result deleteArchiveRule(array $args = [])
2527
* @method \GuzzleHttp\Promise\Promise deleteArchiveRuleAsync(array $args = [])
28+
* @method \Aws\Result generateFindingRecommendation(array $args = [])
29+
* @method \GuzzleHttp\Promise\Promise generateFindingRecommendationAsync(array $args = [])
2630
* @method \Aws\Result getAccessPreview(array $args = [])
2731
* @method \GuzzleHttp\Promise\Promise getAccessPreviewAsync(array $args = [])
2832
* @method \Aws\Result getAnalyzedResource(array $args = [])
@@ -33,6 +37,8 @@
3337
* @method \GuzzleHttp\Promise\Promise getArchiveRuleAsync(array $args = [])
3438
* @method \Aws\Result getFinding(array $args = [])
3539
* @method \GuzzleHttp\Promise\Promise getFindingAsync(array $args = [])
40+
* @method \Aws\Result getFindingRecommendation(array $args = [])
41+
* @method \GuzzleHttp\Promise\Promise getFindingRecommendationAsync(array $args = [])
3642
* @method \Aws\Result getFindingV2(array $args = [])
3743
* @method \GuzzleHttp\Promise\Promise getFindingV2Async(array $args = [])
3844
* @method \Aws\Result getGeneratedPolicy(array $args = [])

aws/aws-sdk-php/src/Api/ApiProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public function __invoke($type, $service, $version)
205205
* @param string $modelsDir Directory containing service models.
206206
* @param array $manifest The API version manifest data.
207207
*/
208-
private function __construct($modelsDir, array $manifest = null)
208+
private function __construct($modelsDir, ?array $manifest = null)
209209
{
210210
$this->manifest = $manifest;
211211
$this->modelsDir = rtrim($modelsDir, '/');

aws/aws-sdk-php/src/Api/DateTimeResult.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
*/
1414
class DateTimeResult extends \DateTime implements \JsonSerializable
1515
{
16+
private const ISO8601_NANOSECOND_REGEX = '/^(.*\.\d{6})(\d{1,3})(Z|[+-]\d{2}:\d{2})?$/';
17+
1618
/**
1719
* Create a new DateTimeResult from a unix timestamp.
1820
* The Unix epoch (or Unix time or POSIX time or Unix
@@ -60,6 +62,14 @@ public static function fromISO8601($iso8601Timestamp)
6062
throw new ParserException('Invalid timestamp value passed to DateTimeResult::fromISO8601');
6163
}
6264

65+
// Prior to 8.0.10, nanosecond precision is not supported
66+
// Reduces to microsecond precision if nanosecond precision is detected
67+
if (PHP_VERSION_ID < 80010
68+
&& preg_match(self::ISO8601_NANOSECOND_REGEX, $iso8601Timestamp, $matches)
69+
) {
70+
$iso8601Timestamp = $matches[1] . ($matches[3] ?? '');
71+
}
72+
6373
return new DateTimeResult($iso8601Timestamp);
6474
}
6575

aws/aws-sdk-php/src/Api/ErrorParser/AbstractErrorParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ abstract class AbstractErrorParser
2121
/**
2222
* @param Service $api
2323
*/
24-
public function __construct(Service $api = null)
24+
public function __construct(?Service $api = null)
2525
{
2626
$this->api = $api;
2727
}
@@ -47,7 +47,7 @@ protected function extractPayload(
4747
protected function populateShape(
4848
array &$data,
4949
ResponseInterface $response,
50-
CommandInterface $command = null
50+
?CommandInterface $command = null
5151
) {
5252
$data['body'] = [];
5353

aws/aws-sdk-php/src/Api/ErrorParser/JsonRpcErrorParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ class JsonRpcErrorParser extends AbstractErrorParser
1515

1616
private $parser;
1717

18-
public function __construct(Service $api = null, JsonParser $parser = null)
18+
public function __construct(?Service $api = null, ?JsonParser $parser = null)
1919
{
2020
parent::__construct($api);
2121
$this->parser = $parser ?: new JsonParser();
2222
}
2323

2424
public function __invoke(
2525
ResponseInterface $response,
26-
CommandInterface $command = null
26+
?CommandInterface $command = null
2727
) {
2828
$data = $this->genericHandler($response);
2929

aws/aws-sdk-php/src/Api/ErrorParser/RestJsonErrorParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ class RestJsonErrorParser extends AbstractErrorParser
1616

1717
private $parser;
1818

19-
public function __construct(Service $api = null, JsonParser $parser = null)
19+
public function __construct(?Service $api = null, ?JsonParser $parser = null)
2020
{
2121
parent::__construct($api);
2222
$this->parser = $parser ?: new JsonParser();
2323
}
2424

2525
public function __invoke(
2626
ResponseInterface $response,
27-
CommandInterface $command = null
27+
?CommandInterface $command = null
2828
) {
2929
$data = $this->genericHandler($response);
3030

aws/aws-sdk-php/src/Api/ErrorParser/XmlErrorParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ class XmlErrorParser extends AbstractErrorParser
1717

1818
protected $parser;
1919

20-
public function __construct(Service $api = null, XmlParser $parser = null)
20+
public function __construct(?Service $api = null, ?XmlParser $parser = null)
2121
{
2222
parent::__construct($api);
2323
$this->parser = $parser ?: new XmlParser();
2424
}
2525

2626
public function __invoke(
2727
ResponseInterface $response,
28-
CommandInterface $command = null
28+
?CommandInterface $command = null
2929
) {
3030
$code = (string) $response->getStatusCode();
3131

aws/aws-sdk-php/src/Api/Operation.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class Operation extends AbstractModel
1111
private $errors;
1212
private $staticContextParams = [];
1313
private $contextParams;
14+
private $operationContextParams = [];
1415

1516
public function __construct(array $definition, ShapeMap $shapeMap)
1617
{
@@ -28,6 +29,10 @@ public function __construct(array $definition, ShapeMap $shapeMap)
2829
$this->staticContextParams = $definition['staticContextParams'];
2930
}
3031

32+
if (isset($definition['operationContextParams'])) {
33+
$this->operationContextParams = $definition['operationContextParams'];
34+
}
35+
3136
parent::__construct($definition, $shapeMap);
3237
$this->contextParams = $this->setContextParams();
3338
}
@@ -124,6 +129,17 @@ public function getContextParams()
124129
return $this->contextParams;
125130
}
126131

132+
/**
133+
* Gets definition of modeled dynamic values used
134+
* for endpoint resolution
135+
*
136+
* @return array
137+
*/
138+
public function getOperationContextParams(): array
139+
{
140+
return $this->operationContextParams;
141+
}
142+
127143
private function setContextParams()
128144
{
129145
$members = $this->getInput()->getMembers();

0 commit comments

Comments
 (0)