/* * * @param InputParam * * Documentation URL: https://docs.qingcloud.com/qingstor/api/service/get.html */ public CListBucketsOutput ListBuckets(CListBucketsInput InputParam) { Dictionary <Object, Object> dictInput = new Dictionary <Object, Object>(); if (dictInput == null) { return(null); } string strURIPath = "/"; dictInput.Add(ConstDef.REQ_HEADER_ZONE, this.Zone); dictInput.Add(ConstDef.OPERATION_ID, "ListBuckets"); dictInput.Add(ConstDef.REQ_HEADER_METHOD, "GET"); dictInput.Add(ConstDef.REQ_HEADER_REQUEST_PATH, strURIPath); dictInput.Add(ConstDef.REQ_HEADER_HOST, this.Config.Host); dictInput.Add(ConstDef.REQ_HEADER_PORT, this.Config.Port); dictInput.Add(ConstDef.REQ_HEADER_PROTOCOL, this.Config.Protocol); dictInput.Add(ConstDef.REQ_HEADER_LOG_LEVEL, this.Config.LogLevel); dictInput.Add(ConstDef.REQ_HEADER_CONNECT_RETRY, this.Config.ConnectionRetry); dictInput.Add(ConstDef.REQ_HEADER_ACCESS_KEY_ID, this.Config.AccessKeyID); dictInput.Add(ConstDef.REQ_HEADER_SECRET_ACCESS_KEY, this.Config.SecretAccessKey); string strResponse = CRequest.GetInstance().Request(dictInput, InputParam); JavaScriptSerializer Serializer = new JavaScriptSerializer(); if (Serializer != null) { Serializer.MaxJsonLength = Int32.MaxValue; return(Serializer.Deserialize <CListBucketsOutput>(strResponse)); } return(null); }