Exemple #1
0
        /// <summary>
        /// 查询项目标签
        /// </summary>
        public async Task <ShowProjectTagsResponse> ShowProjectTagsAsync(ShowProjectTagsRequest showProjectTagsRequest)
        {
            Dictionary <string, string> urlParam = new Dictionary <string, string>();
            string              urlPath          = HttpUtils.AddUrlPath("/v2/{project_id}/rabbitmq/tags", urlParam);
            SdkRequest          request          = HttpUtils.InitSdkRequest(urlPath, showProjectTagsRequest);
            HttpResponseMessage response         = await DoHttpRequestAsync("GET", request);

            return(JsonUtils.DeSerialize <ShowProjectTagsResponse>(response));
        }
Exemple #2
0
        /// <summary>
        /// 查询项目标签
        /// </summary>
        public ShowProjectTagsResponse ShowProjectTags(ShowProjectTagsRequest showProjectTagsRequest)
        {
            Dictionary <string, string> urlParam = new Dictionary <string, string>();
            string              urlPath          = HttpUtils.AddUrlPath("/v2/{project_id}/kafka/tags", urlParam);
            SdkRequest          request          = HttpUtils.InitSdkRequest(urlPath, showProjectTagsRequest);
            HttpResponseMessage response         = DoHttpRequestSync("GET", request);

            return(JsonUtils.DeSerialize <ShowProjectTagsResponse>(response));
        }