private static void KeystoneListDomainPermissionsForGroup(IamClient iamClient)
        {
            var keystoneListDomainPermissionsForGroupRequest = new KeystoneListDomainPermissionsForGroupRequest()
            {
                GroupId = ""
            };

            try
            {
                var keystoneListDomainPermissionsForGroupResponse =
                    iamClient.KeystoneListDomainPermissionsForGroup(keystoneListDomainPermissionsForGroupRequest);
                foreach (var role in keystoneListDomainPermissionsForGroupResponse.Roles)
                {
                    Console.WriteLine(JsonConvert.SerializeObject(role));
                }
            }
            catch (RequestTimeoutException requestTimeoutException)
            {
                Console.WriteLine(requestTimeoutException.ErrorMessage);
            }
            catch (ServiceResponseException clientRequestException)
            {
                Console.WriteLine(clientRequestException.HttpStatusCode);
                Console.WriteLine(clientRequestException.ErrorCode);
                Console.WriteLine(clientRequestException.ErrorMsg);
            }
            catch (ConnectionException connectionException)
            {
                Console.WriteLine(connectionException.ErrorMessage);
            }
        }
        /// <summary>
        /// 查询全局服务中的用户组权限
        /// </summary>
        public KeystoneListDomainPermissionsForGroupResponse KeystoneListDomainPermissionsForGroup(KeystoneListDomainPermissionsForGroupRequest keystoneListDomainPermissionsForGroupRequest)
        {
            Dictionary <string, string> urlParam = new Dictionary <string, string>();

            urlParam.Add("domain_id", keystoneListDomainPermissionsForGroupRequest.DomainId.ToString());
            urlParam.Add("group_id", keystoneListDomainPermissionsForGroupRequest.GroupId.ToString());
            string      urlPath  = HttpUtils.AddUrlPath("/v3/domains/{domain_id}/groups/{group_id}/roles", urlParam);
            SdkRequest  request  = HttpUtils.InitSdkRequest(urlPath, keystoneListDomainPermissionsForGroupRequest);
            SdkResponse response = DoHttpRequest("GET", request);

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