-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
packages/amplify_core/lib/src/types/storage/copy_buckets.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import 'package:amplify_core/amplify_core.dart'; | ||
|
||
/// Presents storage buckets for a copy operation. | ||
class CopyBuckets with AWSSerializable<Map<String, Object?>> { | ||
/// Creates a [CopyBuckets] with [source] and [destination] buckets. | ||
const CopyBuckets({ | ||
required this.source, | ||
required this.destination, | ||
}); | ||
|
||
/// Creates a [CopyBuckets] with the same [bucket] for the [source] and [destination]. | ||
CopyBuckets.sameBucket(StorageBucket bucket) | ||
: source = bucket, | ||
destination = bucket; | ||
|
||
final StorageBucket source; | ||
final StorageBucket destination; | ||
|
||
@override | ||
Map<String, Object?> toJson() => { | ||
'source': source.toJson(), | ||
'destination': destination.toJson(), | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters