/// <remarks/> public void PutObjectInlineAsync(string Bucket, string Key, MetadataEntry[] Metadata, byte[] Data, long ContentLength, Grant[] AccessControlList, StorageClass StorageClass, bool StorageClassSpecified, string AWSAccessKeyId, System.DateTime Timestamp, bool TimestampSpecified, string Signature, string Credential) { this.PutObjectInlineAsync(Bucket, Key, Metadata, Data, ContentLength, AccessControlList, StorageClass, StorageClassSpecified, AWSAccessKeyId, Timestamp, TimestampSpecified, Signature, Credential, null); }
/// <remarks/> public void PutObjectInlineAsync(string Bucket, string Key, MetadataEntry[] Metadata, byte[] Data, long ContentLength, Grant[] AccessControlList, StorageClass StorageClass, bool StorageClassSpecified, string AWSAccessKeyId, System.DateTime Timestamp, bool TimestampSpecified, string Signature, string Credential, object userState) { if ((this.PutObjectInlineOperationCompleted == null)) { this.PutObjectInlineOperationCompleted = new System.Threading.SendOrPostCallback(this.OnPutObjectInlineOperationCompleted); } this.InvokeAsync("PutObjectInline", new object[] { Bucket, Key, Metadata, Data, ContentLength, AccessControlList, StorageClass, StorageClassSpecified, AWSAccessKeyId, Timestamp, TimestampSpecified, Signature, Credential}, this.PutObjectInlineOperationCompleted, userState); }
/// <remarks/> public void SetBucketAccessControlPolicyAsync(string Bucket, Grant[] AccessControlList, string AWSAccessKeyId, System.DateTime Timestamp, bool TimestampSpecified, string Signature, string Credential, object userState) { if ((this.SetBucketAccessControlPolicyOperationCompleted == null)) { this.SetBucketAccessControlPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetBucketAccessControlPolicyOperationCompleted); } this.InvokeAsync("SetBucketAccessControlPolicy", new object[] { Bucket, AccessControlList, AWSAccessKeyId, Timestamp, TimestampSpecified, Signature, Credential}, this.SetBucketAccessControlPolicyOperationCompleted, userState); }
/// <remarks/> public void SetBucketAccessControlPolicyAsync(string Bucket, Grant[] AccessControlList, string AWSAccessKeyId, System.DateTime Timestamp, bool TimestampSpecified, string Signature, string Credential) { this.SetBucketAccessControlPolicyAsync(Bucket, AccessControlList, AWSAccessKeyId, Timestamp, TimestampSpecified, Signature, Credential, null); }
/// <remarks/> public void CreateBucketAsync(string Bucket, Grant[] AccessControlList, string AWSAccessKeyId, System.DateTime Timestamp, bool TimestampSpecified, string Signature) { this.CreateBucketAsync(Bucket, AccessControlList, AWSAccessKeyId, Timestamp, TimestampSpecified, Signature, null); }
public SoapRequestStream(AmazonS3 service, string bucket, string key, MetadataEntry[] meta2, Grant[] acl2, string accessKeyId, DateTime time, string sig, string cred) { _service = service; _bucket = bucket; _key = key; _meta2 = meta2; _acl2 = acl2; _accessKeyId = accessKeyId; _time = time; _sig = sig; _cred = cred; _stm = new MemoryStream(); }
// *** private Grant[] ConvertGrant(AWSGrant acl) { Grant[] ret; switch(acl) { case AWSGrant.PrivateOnly: ret = null; break; case AWSGrant.PublicRead: { Group gra = new Group(); gra.URI = "http://acs.amazonaws.com/groups/global/AllUsers"; ret = new Grant[1]; ret[0] = new Grant(); ret[0].Grantee = gra; ret[0].Permission = Permission.READ; } break; case AWSGrant.PublicWrite: { Group gra = new Group(); gra.URI = "http://acs.amazonaws.com/groups/global/AllUsers"; ret = new Grant[1]; ret[0] = new Grant(); ret[0].Grantee = gra; ret[0].Permission = Permission.WRITE; } break; default: throw new ArgumentException(); } return ret; }