/// <summary> /// 查询配额详情 /// </summary> public ShowQuotaResponse ShowQuota(ShowQuotaRequest showQuotaRequest) { Dictionary <string, string> urlParam = new Dictionary <string, string>(); string urlPath = HttpUtils.AddUrlPath("/v3/{project_id}/elb/quotas", urlParam); SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", showQuotaRequest); HttpResponseMessage response = DoHttpRequestSync("GET", request); return(JsonUtils.DeSerialize <ShowQuotaResponse>(response)); }
/// <summary> /// 查询配额 /// </summary> public async Task <ShowQuotaResponse> ShowQuotaAsync(ShowQuotaRequest showQuotaRequest) { Dictionary <string, string> urlParam = new Dictionary <string, string>(); string urlPath = HttpUtils.AddUrlPath("/v1/{project_id}/quotas", urlParam); SdkRequest request = HttpUtils.InitSdkRequest(urlPath, showQuotaRequest); HttpResponseMessage response = await DoHttpRequestAsync("GET", request); return(JsonUtils.DeSerialize <ShowQuotaResponse>(response)); }