From 0c8af4992cb0f7589dcafaad65ada12753c64594 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 23 Nov 2022 21:14:33 +0300 Subject: initial --- vendor/aws/aws-sdk-php/src/Rds/RdsClient.php | 388 +++++++++++++++++++++++++++ 1 file changed, 388 insertions(+) create mode 100644 vendor/aws/aws-sdk-php/src/Rds/RdsClient.php (limited to 'vendor/aws/aws-sdk-php/src/Rds/RdsClient.php') diff --git a/vendor/aws/aws-sdk-php/src/Rds/RdsClient.php b/vendor/aws/aws-sdk-php/src/Rds/RdsClient.php new file mode 100644 index 0000000..6df193c --- /dev/null +++ b/vendor/aws/aws-sdk-php/src/Rds/RdsClient.php @@ -0,0 +1,388 @@ +getHandlerList()->appendInit( + PresignUrlMiddleware::wrap( + $this, + $args['endpoint_provider'], + [ + 'operations' => [ + 'CopyDBSnapshot', + 'CreateDBInstanceReadReplica', + 'CopyDBClusterSnapshot', + 'CreateDBCluster', + 'StartDBInstanceAutomatedBackupsReplication' + ], + 'service' => 'rds', + 'presign_param' => 'PreSignedUrl', + 'require_different_region' => true, + ] + ), + 'rds.presigner' + ); + }; + + parent::__construct($args); + } + + /** + * @internal + * @codeCoverageIgnore + */ + public static function applyDocFilters(array $api, array $docs) + { + // Add the SourceRegion parameter + $docs['shapes']['SourceRegion']['base'] = 'A required parameter that indicates ' + . 'the region that the DB snapshot will be copied from.'; + $api['shapes']['SourceRegion'] = ['type' => 'string']; + $api['shapes']['CopyDBSnapshotMessage']['members']['SourceRegion'] = ['shape' => 'SourceRegion']; + $api['shapes']['CreateDBInstanceReadReplicaMessage']['members']['SourceRegion'] = ['shape' => 'SourceRegion']; + + // Add the DestinationRegion parameter + $docs['shapes']['DestinationRegion']['base'] + = '
The SDK will populate this ' + . 'parameter on your behalf using the configured region value of ' + . 'the client.
'; + $api['shapes']['DestinationRegion'] = ['type' => 'string']; + $api['shapes']['CopyDBSnapshotMessage']['members']['DestinationRegion'] = ['shape' => 'DestinationRegion']; + $api['shapes']['CreateDBInstanceReadReplicaMessage']['members']['DestinationRegion'] = ['shape' => 'DestinationRegion']; + + // Several parameters in presign APIs are optional. + $docs['shapes']['String']['refs']['CopyDBSnapshotMessage$PreSignedUrl'] + = '
The SDK will compute this value ' + . 'for you on your behalf.
'; + $docs['shapes']['String']['refs']['CopyDBSnapshotMessage$DestinationRegion'] + = '
The SDK will populate this ' + . 'parameter on your behalf using the configured region value of ' + . 'the client.
'; + + // Several parameters in presign APIs are optional. + $docs['shapes']['String']['refs']['CreateDBInstanceReadReplicaMessage$PreSignedUrl'] + = '
The SDK will compute this value ' + . 'for you on your behalf.
'; + $docs['shapes']['String']['refs']['CreateDBInstanceReadReplicaMessage$DestinationRegion'] + = '
The SDK will populate this ' + . 'parameter on your behalf using the configured region value of ' + . 'the client.
'; + + if ($api['metadata']['apiVersion'] != '2014-09-01') { + $api['shapes']['CopyDBClusterSnapshotMessage']['members']['SourceRegion'] = ['shape' => 'SourceRegion']; + $api['shapes']['CreateDBClusterMessage']['members']['SourceRegion'] = ['shape' => 'SourceRegion']; + + $api['shapes']['CopyDBClusterSnapshotMessage']['members']['DestinationRegion'] = ['shape' => 'DestinationRegion']; + $api['shapes']['CreateDBClusterMessage']['members']['DestinationRegion'] = ['shape' => 'DestinationRegion']; + + // Several parameters in presign APIs are optional. + $docs['shapes']['String']['refs']['CopyDBClusterSnapshotMessage$PreSignedUrl'] + = '
The SDK will compute this value ' + . 'for you on your behalf.
'; + $docs['shapes']['String']['refs']['CopyDBClusterSnapshotMessage$DestinationRegion'] + = '
The SDK will populate this ' + . 'parameter on your behalf using the configured region value of ' + . 'the client.
'; + + // Several parameters in presign APIs are optional. + $docs['shapes']['String']['refs']['CreateDBClusterMessage$PreSignedUrl'] + = '
The SDK will compute this value ' + . 'for you on your behalf.
'; + $docs['shapes']['String']['refs']['CreateDBClusterMessage$DestinationRegion'] + = '
The SDK will populate this ' + . 'parameter on your behalf using the configured region value of ' + . 'the client.
'; + } + + return [ + new Service($api, ApiProvider::defaultProvider()), + new DocModel($docs) + ]; + } +} -- cgit v1.2.3