public Task PutObjectCannedAcl(ObjectCannedAcl acl) { return(UploadAsync($"{nameof(PutObjectCannedAcl)}-{acl}", req => req.Acl = acl)); }
public Upload WithAccessControl(ObjectCannedAcl acl) { _request.Acl = acl; return(this); }
public async Task PutObjectCannedAcl(S3Provider _, string bucket, ISimpleClient client, ObjectCannedAcl acl) { PutObjectResponse resp = await client.PutObjectAsync(bucket, $"{nameof(PutObjectCannedAcl)}-{acl}", null, r => r.Acl = acl); Assert.Equal(200, resp.StatusCode); }
public Task UploadWithCannedAcl(ObjectCannedAcl acl) { return(UploadTransferAsync($"{nameof(UploadWithCannedAcl)}-{acl}", upload => upload.WithAccessControl(acl))); }
public Task CannedAcl(ObjectCannedAcl acl) { return(UploadAsync($"{nameof(CannedAcl)}-{acl}", request => request.Acl = acl)); }