NewPutAdminUsersUserIdRequestWithBody generates requests for PutAdminUsersUserId with any type of body
(server string, userId openapi_types.UUID, contentType string, body io.Reader)
| 1063 | |
| 1064 | // NewPutAdminUsersUserIdRequestWithBody generates requests for PutAdminUsersUserId with any type of body |
| 1065 | func NewPutAdminUsersUserIdRequestWithBody(server string, userId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { |
| 1066 | var err error |
| 1067 | |
| 1068 | var pathParam0 string |
| 1069 | |
| 1070 | pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) |
| 1071 | if err != nil { |
| 1072 | return nil, err |
| 1073 | } |
| 1074 | |
| 1075 | serverURL, err := url.Parse(server) |
| 1076 | if err != nil { |
| 1077 | return nil, err |
| 1078 | } |
| 1079 | |
| 1080 | operationPath := fmt.Sprintf("/admin/users/%s", pathParam0) |
| 1081 | if operationPath[0] == '/' { |
| 1082 | operationPath = "." + operationPath |
| 1083 | } |
| 1084 | |
| 1085 | queryURL, err := serverURL.Parse(operationPath) |
| 1086 | if err != nil { |
| 1087 | return nil, err |
| 1088 | } |
| 1089 | |
| 1090 | req, err := http.NewRequest("PUT", queryURL.String(), body) |
| 1091 | if err != nil { |
| 1092 | return nil, err |
| 1093 | } |
| 1094 | |
| 1095 | req.Header.Add("Content-Type", contentType) |
| 1096 | |
| 1097 | return req, nil |
| 1098 | } |
| 1099 | |
| 1100 | // NewGetAdminUsersUserIdFactorsRequest generates requests for GetAdminUsersUserIdFactors |
| 1101 | func NewGetAdminUsersUserIdFactorsRequest(server string, userId openapi_types.UUID) (*http.Request, error) { |
no test coverage detected
searching dependent graphs…