/
idm_public_types.gen.go
45 lines (38 loc) · 1.39 KB
/
idm_public_types.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Package public_api provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
package public_api
// Error defines model for Error.
type Error struct {
Code int32 `json:"code"`
Message string `json:"message"`
}
// PostUser defines model for PostUser.
type PostUser struct {
Firstname string `json:"firstname"`
Lastname *string `json:"lastname,omitempty"`
Password string `json:"password"`
Username string `json:"username"`
}
// User defines model for User.
type User struct {
Firstname string `json:"firstname"`
Lastname *string `json:"lastname,omitempty"`
Password string `json:"password"`
Userid string `json:"userid"`
Username string `json:"username"`
}
// DeleteUserParams defines parameters for DeleteUser.
type DeleteUserParams struct {
// Username Username of the user to be deleted
Username string `form:"username" json:"username"`
}
// GetUserParams defines parameters for GetUser.
type GetUserParams struct {
// Username Username to fetch the user information
Username string `form:"username" json:"username"`
}
// PostUserJSONRequestBody defines body for PostUser for application/json ContentType.
type PostUserJSONRequestBody = PostUser
// PutUserFormdataRequestBody defines body for PutUser for application/x-www-form-urlencoded ContentType.
type PutUserFormdataRequestBody = User