updated-packages

This commit is contained in:
RafficMohammed
2023-01-08 00:13:22 +05:30
parent 3ff7df7487
commit da241bacb6
12659 changed files with 563377 additions and 510538 deletions

View File

@@ -8,30 +8,78 @@ use Aws\AwsClient;
*
* @method \Aws\Result addTags(array $args = [])
* @method \GuzzleHttp\Promise\Promise addTagsAsync(array $args = [])
* @method \Aws\Result cancelQuery(array $args = [])
* @method \GuzzleHttp\Promise\Promise cancelQueryAsync(array $args = [])
* @method \Aws\Result createEventDataStore(array $args = [])
* @method \GuzzleHttp\Promise\Promise createEventDataStoreAsync(array $args = [])
* @method \Aws\Result createTrail(array $args = [])
* @method \GuzzleHttp\Promise\Promise createTrailAsync(array $args = [])
* @method \Aws\Result deleteEventDataStore(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteEventDataStoreAsync(array $args = [])
* @method \Aws\Result deleteTrail(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteTrailAsync(array $args = [])
* @method \Aws\Result deregisterOrganizationDelegatedAdmin(array $args = [])
* @method \GuzzleHttp\Promise\Promise deregisterOrganizationDelegatedAdminAsync(array $args = [])
* @method \Aws\Result describeQuery(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeQueryAsync(array $args = [])
* @method \Aws\Result describeTrails(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeTrailsAsync(array $args = [])
* @method \Aws\Result getChannel(array $args = [])
* @method \GuzzleHttp\Promise\Promise getChannelAsync(array $args = [])
* @method \Aws\Result getEventDataStore(array $args = [])
* @method \GuzzleHttp\Promise\Promise getEventDataStoreAsync(array $args = [])
* @method \Aws\Result getEventSelectors(array $args = [])
* @method \GuzzleHttp\Promise\Promise getEventSelectorsAsync(array $args = [])
* @method \Aws\Result getImport(array $args = [])
* @method \GuzzleHttp\Promise\Promise getImportAsync(array $args = [])
* @method \Aws\Result getInsightSelectors(array $args = [])
* @method \GuzzleHttp\Promise\Promise getInsightSelectorsAsync(array $args = [])
* @method \Aws\Result getQueryResults(array $args = [])
* @method \GuzzleHttp\Promise\Promise getQueryResultsAsync(array $args = [])
* @method \Aws\Result getTrail(array $args = [])
* @method \GuzzleHttp\Promise\Promise getTrailAsync(array $args = [])
* @method \Aws\Result getTrailStatus(array $args = [])
* @method \GuzzleHttp\Promise\Promise getTrailStatusAsync(array $args = [])
* @method \Aws\Result listChannels(array $args = [])
* @method \GuzzleHttp\Promise\Promise listChannelsAsync(array $args = [])
* @method \Aws\Result listEventDataStores(array $args = [])
* @method \GuzzleHttp\Promise\Promise listEventDataStoresAsync(array $args = [])
* @method \Aws\Result listImportFailures(array $args = [])
* @method \GuzzleHttp\Promise\Promise listImportFailuresAsync(array $args = [])
* @method \Aws\Result listImports(array $args = [])
* @method \GuzzleHttp\Promise\Promise listImportsAsync(array $args = [])
* @method \Aws\Result listPublicKeys(array $args = [])
* @method \GuzzleHttp\Promise\Promise listPublicKeysAsync(array $args = [])
* @method \Aws\Result listQueries(array $args = [])
* @method \GuzzleHttp\Promise\Promise listQueriesAsync(array $args = [])
* @method \Aws\Result listTags(array $args = [])
* @method \GuzzleHttp\Promise\Promise listTagsAsync(array $args = [])
* @method \Aws\Result listTrails(array $args = [])
* @method \GuzzleHttp\Promise\Promise listTrailsAsync(array $args = [])
* @method \Aws\Result lookupEvents(array $args = [])
* @method \GuzzleHttp\Promise\Promise lookupEventsAsync(array $args = [])
* @method \Aws\Result putEventSelectors(array $args = [])
* @method \GuzzleHttp\Promise\Promise putEventSelectorsAsync(array $args = [])
* @method \Aws\Result putInsightSelectors(array $args = [])
* @method \GuzzleHttp\Promise\Promise putInsightSelectorsAsync(array $args = [])
* @method \Aws\Result registerOrganizationDelegatedAdmin(array $args = [])
* @method \GuzzleHttp\Promise\Promise registerOrganizationDelegatedAdminAsync(array $args = [])
* @method \Aws\Result removeTags(array $args = [])
* @method \GuzzleHttp\Promise\Promise removeTagsAsync(array $args = [])
* @method \Aws\Result restoreEventDataStore(array $args = [])
* @method \GuzzleHttp\Promise\Promise restoreEventDataStoreAsync(array $args = [])
* @method \Aws\Result startImport(array $args = [])
* @method \GuzzleHttp\Promise\Promise startImportAsync(array $args = [])
* @method \Aws\Result startLogging(array $args = [])
* @method \GuzzleHttp\Promise\Promise startLoggingAsync(array $args = [])
* @method \Aws\Result startQuery(array $args = [])
* @method \GuzzleHttp\Promise\Promise startQueryAsync(array $args = [])
* @method \Aws\Result stopImport(array $args = [])
* @method \GuzzleHttp\Promise\Promise stopImportAsync(array $args = [])
* @method \Aws\Result stopLogging(array $args = [])
* @method \GuzzleHttp\Promise\Promise stopLoggingAsync(array $args = [])
* @method \Aws\Result updateEventDataStore(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateEventDataStoreAsync(array $args = [])
* @method \Aws\Result updateTrail(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateTrailAsync(array $args = [])
*/

View File

@@ -127,6 +127,7 @@ class LogFileIterator extends \IteratorIterator
*
* @return array|bool
*/
#[\ReturnTypeWillChange]
public function current()
{
if ($object = parent::current()) {
@@ -208,7 +209,7 @@ class LogFileIterator extends \IteratorIterator
/**
* Normalizes a date value to a unix timestamp
*
* @param string|\DateTime|int $date
* @param int|string|\DateTimeInterface $date
*
* @return int
* @throws \InvalidArgumentException if the value cannot be converted to
@@ -218,7 +219,7 @@ class LogFileIterator extends \IteratorIterator
{
if (is_string($date)) {
$date = strtotime($date);
} elseif ($date instanceof \DateTime) {
} elseif ($date instanceof \DateTimeInterface) {
$date = $date->format('U');
} elseif (!is_int($date)) {
throw new \InvalidArgumentException('Date values must be a '

View File

@@ -10,7 +10,7 @@ use Aws\S3\S3Client;
* CloudTrail log files contain data about your AWS API calls and are stored in
* Amazon S3. The log files are gzipped and contain structured data in JSON
* format. This class will automatically ungzip and decode the data, and return
* the data as a array of log records
* the data as an array of log records
*/
class LogFileReader
{

View File

@@ -110,11 +110,13 @@ class LogRecordIterator implements \OuterIterator
*
* @return array|false
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->valid() ? $this->records[$this->recordIndex] : false;
}
#[\ReturnTypeWillChange]
public function next()
{
$this->recordIndex++;
@@ -131,6 +133,7 @@ class LogRecordIterator implements \OuterIterator
}
}
#[\ReturnTypeWillChange]
public function key()
{
if ($logFile = $this->logFileIterator->current()) {
@@ -140,17 +143,20 @@ class LogRecordIterator implements \OuterIterator
return null;
}
#[\ReturnTypeWillChange]
public function valid()
{
return isset($this->records[$this->recordIndex]);
}
#[\ReturnTypeWillChange]
public function rewind()
{
$this->logFileIterator->rewind();
$this->loadRecordsFromCurrentLogFile();
}
#[\ReturnTypeWillChange]
public function getInnerIterator()
{
return $this->logFileIterator;