public void testOutputModel() { Bucket.PutBucketACLOutput outmodel = null; try { outmodel = (Bucket.PutBucketACLOutput) QSParamInvokeUtil.getOutputModel(typeof(Bucket.PutBucketACLOutput)); } catch (Exception e) { Console.WriteLine(e.Message); } Assert.AreEqual(outmodel.GetType().Name, typeof(Bucket.PutBucketACLOutput).Name); }
public void put_bucket_ACL() { // Write code here that turns the phrase above into concrete actions EvnContext evnContext = TestUtil.getEvnContext(); Bucket = new Bucket(evnContext, bucketName); Bucket.PutBucketACLInput input = new Bucket.PutBucketACLInput(); Types.ACLModel acl = new Types.ACLModel(); acl.setPermission("FULL_CONTROL"); Types.GranteeModel gm = new Types.GranteeModel(); gm.setName("QS_ALL_USERS"); gm.setType("group"); acl.setGrantee(gm); List <Types.ACLModel> aa = new List <Types.ACLModel>(); aa.Add(acl); input.setACL(aa); putBucketACLOutput = Bucket.putACL(input); }