/// <summary> /// 查询IAM用户所属用户组 /// </summary> public KeystoneListGroupsForUserResponse KeystoneListGroupsForUser(KeystoneListGroupsForUserRequest keystoneListGroupsForUserRequest) { Dictionary <string, string> urlParam = new Dictionary <string, string>(); urlParam.Add("user_id", keystoneListGroupsForUserRequest.UserId.ToString()); string urlPath = HttpUtils.AddUrlPath("/v3/users/{user_id}/groups", urlParam); SdkRequest request = HttpUtils.InitSdkRequest(urlPath, keystoneListGroupsForUserRequest); SdkResponse response = DoHttpRequest("GET", request); return(JsonUtils.DeSerialize <KeystoneListGroupsForUserResponse>(response)); }