public void initService() { EvnContext evnContext = TestUtil.getEvnContext(); storSerivce = new QingStor(evnContext); Console.WriteLine("test : initService"); }
public void initialize_the_bucket_CORS() { // Write code here that turns the phrase above into concrete actions EvnContext evnContext = TestUtil.getEvnContext(); Bucket = new Bucket(evnContext, bucketName); }
public void delete_bucket_CORS() { // Write code here that turns the phrase above into concrete actions EvnContext evnContext = TestUtil.getEvnContext(); Bucket = new Bucket(evnContext, bucketName); deleteBucketCORSOutput = Bucket.deleteCORS(); }
public void get_bucket_policy() { // Write code here that turns the phrase above into concrete actions EvnContext evnContext = TestUtil.getEvnContext(); Bucket = new Bucket(evnContext, bucketName); getBucketPolicyOutput = Bucket.getPolicy(); }
public void list_buckets() { // Write code here that turns the phrase above into concrete actions EvnContext evnContext = TestUtil.getEvnContext(); storSerivce = new QingStor(evnContext); listOutput = storSerivce.listBuckets(new QingStor.ListBucketsInput()); }
public void initialize_QingStor_service() { // Write code here that turns the phrase above into concrete actions EvnContext evnContext = TestUtil.getEvnContext(); storSerivce = new QingStor(evnContext); Console.WriteLine("test : initService"); }
public void put_bucket_policy(String arg1) { // Write code here that turns the phrase above into concrete actions EvnContext evnContext = TestUtil.getEvnContext(); Bucket = new Bucket(evnContext, bucketName); Bucket.PutBucketPolicyInput input = new Bucket.PutBucketPolicyInput(); input.setBodyInput(arg1); putBucketPolicyOutput = Bucket.putPolicy(input); }
public void initialize_the_object_with_key(String arg1) { // Write code here that turns the phrase above into concrete actions EvnContext evnContext = TestUtil.getEvnContext(); subService = new Bucket(evnContext, bucketName); evnContext.setLog_level(QSConstant.LOGGER_INFO); Bucket.PutObjectInput input = new Bucket.PutObjectInput(); //objectOutput = subService.PutObject(arg1,input); test_object = arg1; }
public void put_bucket_CORS(String arg1) { // Write code here that turns the phrase above into concrete actions EvnContext evnContext = TestUtil.getEvnContext(); Bucket = new Bucket(evnContext, bucketName); Bucket.PutBucketCORSInput input = new Bucket.PutBucketCORSInput(); List <Object> cors = new List <Object>(); input.setBodyInput(arg1); putBucketCORSOutput = Bucket.putCORS(input); }
public void put_bucket_external_mirror(String arg1) { // Write code here that turns the phrase above into concrete actions EvnContext evnContext = TestUtil.getEvnContext(); Bucket = new Bucket(evnContext, bucketName); Bucket.PutBucketExternalMirrorInput input = new Bucket.PutBucketExternalMirrorInput(); string obj = QSJSONUtil.convertJSONObject(arg1); input.setSourceSite(QSJSONUtil.toString(obj, "source_site")); putBucketExternalMirrorOutput = Bucket.putExternalMirror(input); }
public void initiate_multipart_upload_with_key(String arg1) { // Write code here that turns the phrase above into concrete actions EvnContext evnContext = TestUtil.getEvnContext(); Bucket = new Bucket(evnContext, bucketName); Bucket.InitiateMultipartUploadInput input = new Bucket.InitiateMultipartUploadInput(); //input.setContentType(apkContentType); initOutput = Bucket.initiateMultipartUpload(arg1, input); multipart_upload_name = arg1; multipart_upload_id = initOutput.getUploadID(); }
public void put_object_with_key(String arg1) { // Write code here that turns the phrase above into concrete actions EvnContext evnContext = TestUtil.getEvnContext(); evnContext.setLog_level(QSConstant.LOGGER_INFO); subService = new Bucket(evnContext, bucketName); Bucket.PutObjectInput input = new Bucket.PutObjectInput(); FileStream f = new FileStream("D:\\2.txt", FileMode.Open); input.setBodyInputFile(f); input.setContentLength((int)f.Length); test_object = chinesePrefix + arg1 + chineseSuffix; putObjectOutput = subService.putObject(test_object, input); }
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); }