C# Class AWSSDK.IntegrationTests.S3.S3TestUtils

Show file Open project: aws/aws-sdk-net Class Usage Examples

Public Properties

Property Type Description
TestContent string

Public Methods

Method Description
CleanBucket ( AmazonS3Client client, string bucketName ) : void
CreateBucket ( IAmazonS3 s3Client ) : string
DeleteBucketWithObjects ( IAmazonS3 s3Client, string bucketName ) : void
DeleteObjectHelper ( AmazonS3Client client, string bucketName, string key, string versionId = null ) : void
GetACLHelper ( AmazonS3Client client, string bucketName, string key ) : Amazon.S3.Model.GetACLResponse
GetFileHelper ( string fileName ) : string
GetObjectHelper ( AmazonS3Client client, string bucketName, string key ) : GetObjectResponse
ListObjectsHelper ( AmazonS3Client client, string bucketName ) : List
ListVersionsHelper ( AmazonS3Client client, string bucketName ) : List
PostObjectHelper ( AmazonS3Client client, string bucketName, string key, PostObjectRequestManipulator manipulator = null ) : PostObjectResponse

Method Details

CleanBucket() public static method

public static CleanBucket ( AmazonS3Client client, string bucketName ) : void
client Amazon.S3.AmazonS3Client
bucketName string
return void

CreateBucket() public static method

public static CreateBucket ( IAmazonS3 s3Client ) : string
s3Client IAmazonS3
return string

DeleteBucketWithObjects() public static method

public static DeleteBucketWithObjects ( IAmazonS3 s3Client, string bucketName ) : void
s3Client IAmazonS3
bucketName string
return void

DeleteObjectHelper() public static method

public static DeleteObjectHelper ( AmazonS3Client client, string bucketName, string key, string versionId = null ) : void
client Amazon.S3.AmazonS3Client
bucketName string
key string
versionId string
return void

GetACLHelper() public static method

public static GetACLHelper ( AmazonS3Client client, string bucketName, string key ) : Amazon.S3.Model.GetACLResponse
client Amazon.S3.AmazonS3Client
bucketName string
key string
return Amazon.S3.Model.GetACLResponse

GetFileHelper() public static method

public static GetFileHelper ( string fileName ) : string
fileName string
return string

GetObjectHelper() public static method

public static GetObjectHelper ( AmazonS3Client client, string bucketName, string key ) : GetObjectResponse
client Amazon.S3.AmazonS3Client
bucketName string
key string
return Amazon.S3.Model.GetObjectResponse

ListObjectsHelper() public static method

public static ListObjectsHelper ( AmazonS3Client client, string bucketName ) : List
client Amazon.S3.AmazonS3Client
bucketName string
return List

ListVersionsHelper() public static method

public static ListVersionsHelper ( AmazonS3Client client, string bucketName ) : List
client Amazon.S3.AmazonS3Client
bucketName string
return List

PostObjectHelper() public static method

public static PostObjectHelper ( AmazonS3Client client, string bucketName, string key, PostObjectRequestManipulator manipulator = null ) : PostObjectResponse
client Amazon.S3.AmazonS3Client
bucketName string
key string
manipulator PostObjectRequestManipulator
return Amazon.S3.Model.PostObjectResponse

Property Details

TestContent public static property

public static string TestContent
return string