Documentation
ΒΆ
Overview ΒΆ
Package sdk provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ΒΆ
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func NewDeleteClientsClientIdClientUsersUserIdRequest(server string, clientId int, userId int) (*http.Request, error)
- func NewDeleteClientsClientIdTokensTokenIdRequest(server string, clientId int, tokenId int) (*http.Request, error)
- func NewGetActivityLogLoginsRequest(server string, params *GetActivityLogLoginsParams) (*http.Request, error)
- func NewGetAuthJwtClientsClientIdLoginRequest(server string, clientId int) (*http.Request, error)
- func NewGetClientsClientIdClientUsersUserIdRequest(server string, clientId int, userId int) (*http.Request, error)
- func NewGetClientsClientIdTokensRequest(server string, clientId int, params *GetClientsClientIdTokensParams) (*http.Request, error)
- func NewGetClientsClientIdTokensTokenIdRequest(server string, clientId int, tokenId int) (*http.Request, error)
- func NewGetClientsMeRequest(server string) (*http.Request, error)
- func NewGetUsersRequest(server string, params *GetUsersParams) (*http.Request, error)
- func NewGetUsersUserIdRequest(server string, userId int) (*http.Request, error)
- func NewPatchUsersUserIdRequest(server string, userId int, body PatchUsersUserIdJSONRequestBody) (*http.Request, error)
- func NewPatchUsersUserIdRequestWithBody(server string, userId int, contentType string, body io.Reader) (*http.Request, error)
- func NewPostAuthJwtLoginRequest(server string, body PostAuthJwtLoginJSONRequestBody) (*http.Request, error)
- func NewPostAuthJwtLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostAuthJwtRefreshRequest(server string, body PostAuthJwtRefreshJSONRequestBody) (*http.Request, error)
- func NewPostAuthJwtRefreshRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostAuthPasswordForgotRequest(server string, body PostAuthPasswordForgotJSONRequestBody) (*http.Request, error)
- func NewPostAuthPasswordForgotRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostClientsClientIdTokensRequest(server string, clientId int, body PostClientsClientIdTokensJSONRequestBody) (*http.Request, error)
- func NewPostClientsClientIdTokensRequestWithBody(server string, clientId int, contentType string, body io.Reader) (*http.Request, error)
- func NewPostClientsCreateRequest(server string, body PostClientsCreateJSONRequestBody) (*http.Request, error)
- func NewPostClientsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostClientsInviteUserRequest(server string, body PostClientsInviteUserJSONRequestBody) (*http.Request, error)
- func NewPostClientsInviteUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutClientsClientIdClientUsersUserIdRequest(server string, clientId int, userId int, ...) (*http.Request, error)
- func NewPutClientsClientIdClientUsersUserIdRequestWithBody(server string, clientId int, userId int, contentType string, body io.Reader) (*http.Request, error)
- func NewPutUsersUserIdEmailRequest(server string, userId int, body PutUsersUserIdEmailJSONRequestBody) (*http.Request, error)
- func NewPutUsersUserIdEmailRequestWithBody(server string, userId int, contentType string, body io.Reader) (*http.Request, error)
- func NewPutUsersUserIdPasswordRequest(server string, userId int, body PutUsersUserIdPasswordJSONRequestBody) (*http.Request, error)
- func NewPutUsersUserIdPasswordRequestWithBody(server string, userId int, contentType string, body io.Reader) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type ClientInterface
- type ClientOption
- type ClientSDK
- func (c *ClientSDK) DeleteClientsClientIdClientUsersUserId(ctx context.Context, clientId int, userId int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *ClientSDK) DeleteClientsClientIdTokensTokenId(ctx context.Context, clientId int, tokenId int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *ClientSDK) GetActivityLogLogins(ctx context.Context, params *GetActivityLogLoginsParams, ...) (*http.Response, error)
- func (c *ClientSDK) GetAuthJwtClientsClientIdLogin(ctx context.Context, clientId int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *ClientSDK) GetClientsClientIdClientUsersUserId(ctx context.Context, clientId int, userId int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *ClientSDK) GetClientsClientIdTokens(ctx context.Context, clientId int, params *GetClientsClientIdTokensParams, ...) (*http.Response, error)
- func (c *ClientSDK) GetClientsClientIdTokensTokenId(ctx context.Context, clientId int, tokenId int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *ClientSDK) GetClientsMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *ClientSDK) GetUsers(ctx context.Context, params *GetUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *ClientSDK) GetUsersUserId(ctx context.Context, userId int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *ClientSDK) PatchUsersUserId(ctx context.Context, userId int, body PatchUsersUserIdJSONRequestBody, ...) (*http.Response, error)
- func (c *ClientSDK) PatchUsersUserIdWithBody(ctx context.Context, userId int, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *ClientSDK) PostAuthJwtLogin(ctx context.Context, body PostAuthJwtLoginJSONRequestBody, ...) (*http.Response, error)
- func (c *ClientSDK) PostAuthJwtLoginWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *ClientSDK) PostAuthJwtRefresh(ctx context.Context, body PostAuthJwtRefreshJSONRequestBody, ...) (*http.Response, error)
- func (c *ClientSDK) PostAuthJwtRefreshWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *ClientSDK) PostAuthPasswordForgot(ctx context.Context, body PostAuthPasswordForgotJSONRequestBody, ...) (*http.Response, error)
- func (c *ClientSDK) PostAuthPasswordForgotWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *ClientSDK) PostClientsClientIdTokens(ctx context.Context, clientId int, ...) (*http.Response, error)
- func (c *ClientSDK) PostClientsClientIdTokensWithBody(ctx context.Context, clientId int, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *ClientSDK) PostClientsCreate(ctx context.Context, body PostClientsCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *ClientSDK) PostClientsCreateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *ClientSDK) PostClientsInviteUser(ctx context.Context, body PostClientsInviteUserJSONRequestBody, ...) (*http.Response, error)
- func (c *ClientSDK) PostClientsInviteUserWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *ClientSDK) PutClientsClientIdClientUsersUserId(ctx context.Context, clientId int, userId int, ...) (*http.Response, error)
- func (c *ClientSDK) PutClientsClientIdClientUsersUserIdWithBody(ctx context.Context, clientId int, userId int, contentType string, ...) (*http.Response, error)
- func (c *ClientSDK) PutUsersUserIdEmail(ctx context.Context, userId int, body PutUsersUserIdEmailJSONRequestBody, ...) (*http.Response, error)
- func (c *ClientSDK) PutUsersUserIdEmailWithBody(ctx context.Context, userId int, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *ClientSDK) PutUsersUserIdPassword(ctx context.Context, userId int, body PutUsersUserIdPasswordJSONRequestBody, ...) (*http.Response, error)
- func (c *ClientSDK) PutUsersUserIdPasswordWithBody(ctx context.Context, userId int, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteClientsClientIdClientUsersUserIdWithResponse(ctx context.Context, clientId int, userId int, reqEditors ...RequestEditorFn) (*DeleteClientsClientIdClientUsersUserIdResponse, error)
- func (c *ClientWithResponses) DeleteClientsClientIdTokensTokenIdWithResponse(ctx context.Context, clientId int, tokenId int, reqEditors ...RequestEditorFn) (*DeleteClientsClientIdTokensTokenIdResponse, error)
- func (c *ClientWithResponses) GetActivityLogLoginsWithResponse(ctx context.Context, params *GetActivityLogLoginsParams, ...) (*GetActivityLogLoginsResponse, error)
- func (c *ClientWithResponses) GetAuthJwtClientsClientIdLoginWithResponse(ctx context.Context, clientId int, reqEditors ...RequestEditorFn) (*GetAuthJwtClientsClientIdLoginResponse, error)
- func (c *ClientWithResponses) GetClientsClientIdClientUsersUserIdWithResponse(ctx context.Context, clientId int, userId int, reqEditors ...RequestEditorFn) (*GetClientsClientIdClientUsersUserIdResponse, error)
- func (c *ClientWithResponses) GetClientsClientIdTokensTokenIdWithResponse(ctx context.Context, clientId int, tokenId int, reqEditors ...RequestEditorFn) (*GetClientsClientIdTokensTokenIdResponse, error)
- func (c *ClientWithResponses) GetClientsClientIdTokensWithResponse(ctx context.Context, clientId int, params *GetClientsClientIdTokensParams, ...) (*GetClientsClientIdTokensResponse, error)
- func (c *ClientWithResponses) GetClientsMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetClientsMeResponse, error)
- func (c *ClientWithResponses) GetUsersUserIdWithResponse(ctx context.Context, userId int, reqEditors ...RequestEditorFn) (*GetUsersUserIdResponse, error)
- func (c *ClientWithResponses) GetUsersWithResponse(ctx context.Context, params *GetUsersParams, reqEditors ...RequestEditorFn) (*GetUsersResponse, error)
- func (c *ClientWithResponses) PatchUsersUserIdWithBodyWithResponse(ctx context.Context, userId int, contentType string, body io.Reader, ...) (*PatchUsersUserIdResponse, error)
- func (c *ClientWithResponses) PatchUsersUserIdWithResponse(ctx context.Context, userId int, body PatchUsersUserIdJSONRequestBody, ...) (*PatchUsersUserIdResponse, error)
- func (c *ClientWithResponses) PostAuthJwtLoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostAuthJwtLoginResponse, error)
- func (c *ClientWithResponses) PostAuthJwtLoginWithResponse(ctx context.Context, body PostAuthJwtLoginJSONRequestBody, ...) (*PostAuthJwtLoginResponse, error)
- func (c *ClientWithResponses) PostAuthJwtRefreshWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostAuthJwtRefreshResponse, error)
- func (c *ClientWithResponses) PostAuthJwtRefreshWithResponse(ctx context.Context, body PostAuthJwtRefreshJSONRequestBody, ...) (*PostAuthJwtRefreshResponse, error)
- func (c *ClientWithResponses) PostAuthPasswordForgotWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostAuthPasswordForgotResponse, error)
- func (c *ClientWithResponses) PostAuthPasswordForgotWithResponse(ctx context.Context, body PostAuthPasswordForgotJSONRequestBody, ...) (*PostAuthPasswordForgotResponse, error)
- func (c *ClientWithResponses) PostClientsClientIdTokensWithBodyWithResponse(ctx context.Context, clientId int, contentType string, body io.Reader, ...) (*PostClientsClientIdTokensResponse, error)
- func (c *ClientWithResponses) PostClientsClientIdTokensWithResponse(ctx context.Context, clientId int, ...) (*PostClientsClientIdTokensResponse, error)
- func (c *ClientWithResponses) PostClientsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostClientsCreateResponse, error)
- func (c *ClientWithResponses) PostClientsCreateWithResponse(ctx context.Context, body PostClientsCreateJSONRequestBody, ...) (*PostClientsCreateResponse, error)
- func (c *ClientWithResponses) PostClientsInviteUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostClientsInviteUserResponse, error)
- func (c *ClientWithResponses) PostClientsInviteUserWithResponse(ctx context.Context, body PostClientsInviteUserJSONRequestBody, ...) (*PostClientsInviteUserResponse, error)
- func (c *ClientWithResponses) PutClientsClientIdClientUsersUserIdWithBodyWithResponse(ctx context.Context, clientId int, userId int, contentType string, ...) (*PutClientsClientIdClientUsersUserIdResponse, error)
- func (c *ClientWithResponses) PutClientsClientIdClientUsersUserIdWithResponse(ctx context.Context, clientId int, userId int, ...) (*PutClientsClientIdClientUsersUserIdResponse, error)
- func (c *ClientWithResponses) PutUsersUserIdEmailWithBodyWithResponse(ctx context.Context, userId int, contentType string, body io.Reader, ...) (*PutUsersUserIdEmailResponse, error)
- func (c *ClientWithResponses) PutUsersUserIdEmailWithResponse(ctx context.Context, userId int, body PutUsersUserIdEmailJSONRequestBody, ...) (*PutUsersUserIdEmailResponse, error)
- func (c *ClientWithResponses) PutUsersUserIdPasswordWithBodyWithResponse(ctx context.Context, userId int, contentType string, body io.Reader, ...) (*PutUsersUserIdPasswordResponse, error)
- func (c *ClientWithResponses) PutUsersUserIdPasswordWithResponse(ctx context.Context, userId int, body PutUsersUserIdPasswordJSONRequestBody, ...) (*PutUsersUserIdPasswordResponse, error)
- type ClientWithResponsesInterface
- type DeleteClientsClientIdClientUsersUserId4030
- type DeleteClientsClientIdClientUsersUserId4031
- type DeleteClientsClientIdClientUsersUserIdResponse
- type DeleteClientsClientIdTokensTokenIdResponse
- type GetActivityLogLogins4000
- type GetActivityLogLogins4001
- type GetActivityLogLoginsParams
- type GetActivityLogLoginsResponse
- type GetAuthJwtClientsClientIdLoginResponse
- type GetClientsClientIdClientUsersUserId200UserRoleName
- type GetClientsClientIdClientUsersUserIdResponse
- type GetClientsClientIdTokens200ClientUserRoleName
- type GetClientsClientIdTokensParams
- type GetClientsClientIdTokensResponse
- type GetClientsClientIdTokensTokenId200ClientUserRoleName
- type GetClientsClientIdTokensTokenIdResponse
- type GetClientsMe200Capabilities
- type GetClientsMe200ServiceStatusesCDNStatus
- type GetClientsMe200ServiceStatusesCLOUDStatus
- type GetClientsMe200ServiceStatusesDDOSStatus
- type GetClientsMe200ServiceStatusesDNSStatus
- type GetClientsMe200ServiceStatusesSTORAGEStatus
- type GetClientsMe200ServiceStatusesSTREAMINGStatus
- type GetClientsMe200SignupProcess
- type GetClientsMe200Status
- type GetClientsMe200UsersAuthTypes
- type GetClientsMe200UsersGroupsName
- type GetClientsMe200UsersLang
- type GetClientsMeResponse
- type GetUsers2000
- type GetUsers2001
- type GetUsersParams
- type GetUsersResponse
- type GetUsersUserId200AuthTypes
- type GetUsersUserId200GroupsName
- type GetUsersUserId200Lang
- type GetUsersUserId200UserType
- type GetUsersUserIdResponse
- type HttpRequestDoer
- type PatchUsersUserId200AuthTypes
- type PatchUsersUserId200GroupsName
- type PatchUsersUserId200Lang
- type PatchUsersUserId200UserType
- type PatchUsersUserId4000
- type PatchUsersUserId4001
- type PatchUsersUserIdJSONBody
- type PatchUsersUserIdJSONBodyAuthTypes
- type PatchUsersUserIdJSONBodyGroupsName
- type PatchUsersUserIdJSONBodyLang
- type PatchUsersUserIdJSONBodyUserType
- type PatchUsersUserIdJSONRequestBody
- type PatchUsersUserIdResponse
- type PostAuthJwtLogin4000
- type PostAuthJwtLogin4001
- type PostAuthJwtLogin4002
- type PostAuthJwtLogin4002ErrorsErrors
- type PostAuthJwtLoginJSONBody
- type PostAuthJwtLoginJSONRequestBody
- type PostAuthJwtLoginResponse
- type PostAuthJwtRefresh4000
- type PostAuthJwtRefreshJSONBody
- type PostAuthJwtRefreshJSONRequestBody
- type PostAuthJwtRefreshResponse
- type PostAuthPasswordForgot4000
- type PostAuthPasswordForgotJSONBody
- type PostAuthPasswordForgotJSONRequestBody
- type PostAuthPasswordForgotResponse
- type PostClientsClientIdTokens4000
- type PostClientsClientIdTokens4001
- type PostClientsClientIdTokensJSONBody
- type PostClientsClientIdTokensJSONBodyClientUserRoleName
- type PostClientsClientIdTokensJSONRequestBody
- type PostClientsClientIdTokensResponse
- type PostClientsCreate4000
- type PostClientsCreateJSONBody
- type PostClientsCreateJSONRequestBody
- type PostClientsCreateResponse
- type PostClientsInviteUser4000
- type PostClientsInviteUserJSONBody
- type PostClientsInviteUserJSONBodyLang
- type PostClientsInviteUserJSONBodyUserRoleName
- type PostClientsInviteUserJSONRequestBody
- type PostClientsInviteUserResponse
- type PutClientsClientIdClientUsersUserIdJSONBody
- type PutClientsClientIdClientUsersUserIdJSONBodyUserRoleName
- type PutClientsClientIdClientUsersUserIdJSONRequestBody
- type PutClientsClientIdClientUsersUserIdResponse
- type PutUsersUserIdEmail4000
- type PutUsersUserIdEmail4001
- type PutUsersUserIdEmail4002
- type PutUsersUserIdEmail4003
- type PutUsersUserIdEmailJSONBody
- type PutUsersUserIdEmailJSONRequestBody
- type PutUsersUserIdEmailResponse
- type PutUsersUserIdPassword4000
- type PutUsersUserIdPasswordJSONBody
- type PutUsersUserIdPasswordJSONRequestBody
- type PutUsersUserIdPasswordResponse
- type RequestEditorFn
Constants ΒΆ
const (
BearerScopes = "Bearer.Scopes"
)
Variables ΒΆ
This section is empty.
Functions ΒΆ
func GetSwagger ΒΆ
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func NewDeleteClientsClientIdClientUsersUserIdRequest ΒΆ
func NewDeleteClientsClientIdClientUsersUserIdRequest(server string, clientId int, userId int) (*http.Request, error)
NewDeleteClientsClientIdClientUsersUserIdRequest generates requests for DeleteClientsClientIdClientUsersUserId
func NewDeleteClientsClientIdTokensTokenIdRequest ΒΆ
func NewDeleteClientsClientIdTokensTokenIdRequest(server string, clientId int, tokenId int) (*http.Request, error)
NewDeleteClientsClientIdTokensTokenIdRequest generates requests for DeleteClientsClientIdTokensTokenId
func NewGetActivityLogLoginsRequest ΒΆ
func NewGetActivityLogLoginsRequest(server string, params *GetActivityLogLoginsParams) (*http.Request, error)
NewGetActivityLogLoginsRequest generates requests for GetActivityLogLogins
func NewGetAuthJwtClientsClientIdLoginRequest ΒΆ
NewGetAuthJwtClientsClientIdLoginRequest generates requests for GetAuthJwtClientsClientIdLogin
func NewGetClientsClientIdClientUsersUserIdRequest ΒΆ
func NewGetClientsClientIdClientUsersUserIdRequest(server string, clientId int, userId int) (*http.Request, error)
NewGetClientsClientIdClientUsersUserIdRequest generates requests for GetClientsClientIdClientUsersUserId
func NewGetClientsClientIdTokensRequest ΒΆ
func NewGetClientsClientIdTokensRequest(server string, clientId int, params *GetClientsClientIdTokensParams) (*http.Request, error)
NewGetClientsClientIdTokensRequest generates requests for GetClientsClientIdTokens
func NewGetClientsClientIdTokensTokenIdRequest ΒΆ
func NewGetClientsClientIdTokensTokenIdRequest(server string, clientId int, tokenId int) (*http.Request, error)
NewGetClientsClientIdTokensTokenIdRequest generates requests for GetClientsClientIdTokensTokenId
func NewGetClientsMeRequest ΒΆ
NewGetClientsMeRequest generates requests for GetClientsMe
func NewGetUsersRequest ΒΆ
func NewGetUsersRequest(server string, params *GetUsersParams) (*http.Request, error)
NewGetUsersRequest generates requests for GetUsers
func NewGetUsersUserIdRequest ΒΆ
NewGetUsersUserIdRequest generates requests for GetUsersUserId
func NewPatchUsersUserIdRequest ΒΆ
func NewPatchUsersUserIdRequest(server string, userId int, body PatchUsersUserIdJSONRequestBody) (*http.Request, error)
NewPatchUsersUserIdRequest calls the generic PatchUsersUserId builder with application/json body
func NewPatchUsersUserIdRequestWithBody ΒΆ
func NewPatchUsersUserIdRequestWithBody(server string, userId int, contentType string, body io.Reader) (*http.Request, error)
NewPatchUsersUserIdRequestWithBody generates requests for PatchUsersUserId with any type of body
func NewPostAuthJwtLoginRequest ΒΆ
func NewPostAuthJwtLoginRequest(server string, body PostAuthJwtLoginJSONRequestBody) (*http.Request, error)
NewPostAuthJwtLoginRequest calls the generic PostAuthJwtLogin builder with application/json body
func NewPostAuthJwtLoginRequestWithBody ΒΆ
func NewPostAuthJwtLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostAuthJwtLoginRequestWithBody generates requests for PostAuthJwtLogin with any type of body
func NewPostAuthJwtRefreshRequest ΒΆ
func NewPostAuthJwtRefreshRequest(server string, body PostAuthJwtRefreshJSONRequestBody) (*http.Request, error)
NewPostAuthJwtRefreshRequest calls the generic PostAuthJwtRefresh builder with application/json body
func NewPostAuthJwtRefreshRequestWithBody ΒΆ
func NewPostAuthJwtRefreshRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostAuthJwtRefreshRequestWithBody generates requests for PostAuthJwtRefresh with any type of body
func NewPostAuthPasswordForgotRequest ΒΆ
func NewPostAuthPasswordForgotRequest(server string, body PostAuthPasswordForgotJSONRequestBody) (*http.Request, error)
NewPostAuthPasswordForgotRequest calls the generic PostAuthPasswordForgot builder with application/json body
func NewPostAuthPasswordForgotRequestWithBody ΒΆ
func NewPostAuthPasswordForgotRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostAuthPasswordForgotRequestWithBody generates requests for PostAuthPasswordForgot with any type of body
func NewPostClientsClientIdTokensRequest ΒΆ
func NewPostClientsClientIdTokensRequest(server string, clientId int, body PostClientsClientIdTokensJSONRequestBody) (*http.Request, error)
NewPostClientsClientIdTokensRequest calls the generic PostClientsClientIdTokens builder with application/json body
func NewPostClientsClientIdTokensRequestWithBody ΒΆ
func NewPostClientsClientIdTokensRequestWithBody(server string, clientId int, contentType string, body io.Reader) (*http.Request, error)
NewPostClientsClientIdTokensRequestWithBody generates requests for PostClientsClientIdTokens with any type of body
func NewPostClientsCreateRequest ΒΆ
func NewPostClientsCreateRequest(server string, body PostClientsCreateJSONRequestBody) (*http.Request, error)
NewPostClientsCreateRequest calls the generic PostClientsCreate builder with application/json body
func NewPostClientsCreateRequestWithBody ΒΆ
func NewPostClientsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostClientsCreateRequestWithBody generates requests for PostClientsCreate with any type of body
func NewPostClientsInviteUserRequest ΒΆ
func NewPostClientsInviteUserRequest(server string, body PostClientsInviteUserJSONRequestBody) (*http.Request, error)
NewPostClientsInviteUserRequest calls the generic PostClientsInviteUser builder with application/json body
func NewPostClientsInviteUserRequestWithBody ΒΆ
func NewPostClientsInviteUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostClientsInviteUserRequestWithBody generates requests for PostClientsInviteUser with any type of body
func NewPutClientsClientIdClientUsersUserIdRequest ΒΆ
func NewPutClientsClientIdClientUsersUserIdRequest(server string, clientId int, userId int, body PutClientsClientIdClientUsersUserIdJSONRequestBody) (*http.Request, error)
NewPutClientsClientIdClientUsersUserIdRequest calls the generic PutClientsClientIdClientUsersUserId builder with application/json body
func NewPutClientsClientIdClientUsersUserIdRequestWithBody ΒΆ
func NewPutClientsClientIdClientUsersUserIdRequestWithBody(server string, clientId int, userId int, contentType string, body io.Reader) (*http.Request, error)
NewPutClientsClientIdClientUsersUserIdRequestWithBody generates requests for PutClientsClientIdClientUsersUserId with any type of body
func NewPutUsersUserIdEmailRequest ΒΆ
func NewPutUsersUserIdEmailRequest(server string, userId int, body PutUsersUserIdEmailJSONRequestBody) (*http.Request, error)
NewPutUsersUserIdEmailRequest calls the generic PutUsersUserIdEmail builder with application/json body
func NewPutUsersUserIdEmailRequestWithBody ΒΆ
func NewPutUsersUserIdEmailRequestWithBody(server string, userId int, contentType string, body io.Reader) (*http.Request, error)
NewPutUsersUserIdEmailRequestWithBody generates requests for PutUsersUserIdEmail with any type of body
func NewPutUsersUserIdPasswordRequest ΒΆ
func NewPutUsersUserIdPasswordRequest(server string, userId int, body PutUsersUserIdPasswordJSONRequestBody) (*http.Request, error)
NewPutUsersUserIdPasswordRequest calls the generic PutUsersUserIdPassword builder with application/json body
Types ΒΆ
type ClientInterface ΒΆ
type ClientInterface interface {
// GetActivityLogLogins request
GetActivityLogLogins(ctx context.Context, params *GetActivityLogLoginsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAuthJwtClientsClientIdLogin request
GetAuthJwtClientsClientIdLogin(ctx context.Context, clientId int, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostAuthJwtLoginWithBody request with any body
PostAuthJwtLoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostAuthJwtLogin(ctx context.Context, body PostAuthJwtLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostAuthJwtRefreshWithBody request with any body
PostAuthJwtRefreshWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostAuthJwtRefresh(ctx context.Context, body PostAuthJwtRefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostAuthPasswordForgotWithBody request with any body
PostAuthPasswordForgotWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostAuthPasswordForgot(ctx context.Context, body PostAuthPasswordForgotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostClientsCreateWithBody request with any body
PostClientsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostClientsCreate(ctx context.Context, body PostClientsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostClientsInviteUserWithBody request with any body
PostClientsInviteUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostClientsInviteUser(ctx context.Context, body PostClientsInviteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetClientsMe request
GetClientsMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteClientsClientIdClientUsersUserId request
DeleteClientsClientIdClientUsersUserId(ctx context.Context, clientId int, userId int, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetClientsClientIdClientUsersUserId request
GetClientsClientIdClientUsersUserId(ctx context.Context, clientId int, userId int, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutClientsClientIdClientUsersUserIdWithBody request with any body
PutClientsClientIdClientUsersUserIdWithBody(ctx context.Context, clientId int, userId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PutClientsClientIdClientUsersUserId(ctx context.Context, clientId int, userId int, body PutClientsClientIdClientUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetClientsClientIdTokens request
GetClientsClientIdTokens(ctx context.Context, clientId int, params *GetClientsClientIdTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostClientsClientIdTokensWithBody request with any body
PostClientsClientIdTokensWithBody(ctx context.Context, clientId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostClientsClientIdTokens(ctx context.Context, clientId int, body PostClientsClientIdTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteClientsClientIdTokensTokenId request
DeleteClientsClientIdTokensTokenId(ctx context.Context, clientId int, tokenId int, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetClientsClientIdTokensTokenId request
GetClientsClientIdTokensTokenId(ctx context.Context, clientId int, tokenId int, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUsers request
GetUsers(ctx context.Context, params *GetUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUsersUserId request
GetUsersUserId(ctx context.Context, userId int, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchUsersUserIdWithBody request with any body
PatchUsersUserIdWithBody(ctx context.Context, userId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchUsersUserId(ctx context.Context, userId int, body PatchUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutUsersUserIdEmailWithBody request with any body
PutUsersUserIdEmailWithBody(ctx context.Context, userId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PutUsersUserIdEmail(ctx context.Context, userId int, body PutUsersUserIdEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutUsersUserIdPasswordWithBody request with any body
PutUsersUserIdPasswordWithBody(ctx context.Context, userId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PutUsersUserIdPassword(ctx context.Context, userId int, body PutUsersUserIdPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ΒΆ
ClientOption allows setting custom parameters during construction
func WithBaseURL ΒΆ
func WithBaseURL(baseURL string) ClientOption
WithBaseURL overrides the baseURL.
func WithHTTPClient ΒΆ
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ΒΆ
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientSDK ΒΆ
type ClientSDK struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
ClientSDK which conforms to the OpenAPI3 specification for this service.
func NewClient ΒΆ
func NewClient(server string, opts ...ClientOption) (*ClientSDK, error)
Creates a new ClientSDK, with reasonable defaults
func (*ClientSDK) DeleteClientsClientIdClientUsersUserId ΒΆ
func (*ClientSDK) DeleteClientsClientIdTokensTokenId ΒΆ
func (*ClientSDK) GetActivityLogLogins ΒΆ
func (c *ClientSDK) GetActivityLogLogins(ctx context.Context, params *GetActivityLogLoginsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*ClientSDK) GetAuthJwtClientsClientIdLogin ΒΆ
func (*ClientSDK) GetClientsClientIdClientUsersUserId ΒΆ
func (*ClientSDK) GetClientsClientIdTokens ΒΆ
func (c *ClientSDK) GetClientsClientIdTokens(ctx context.Context, clientId int, params *GetClientsClientIdTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*ClientSDK) GetClientsClientIdTokensTokenId ΒΆ
func (*ClientSDK) GetClientsMe ΒΆ
func (*ClientSDK) GetUsers ΒΆ
func (c *ClientSDK) GetUsers(ctx context.Context, params *GetUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*ClientSDK) GetUsersUserId ΒΆ
func (*ClientSDK) PatchUsersUserId ΒΆ
func (c *ClientSDK) PatchUsersUserId(ctx context.Context, userId int, body PatchUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*ClientSDK) PatchUsersUserIdWithBody ΒΆ
func (*ClientSDK) PostAuthJwtLogin ΒΆ
func (c *ClientSDK) PostAuthJwtLogin(ctx context.Context, body PostAuthJwtLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*ClientSDK) PostAuthJwtLoginWithBody ΒΆ
func (*ClientSDK) PostAuthJwtRefresh ΒΆ
func (c *ClientSDK) PostAuthJwtRefresh(ctx context.Context, body PostAuthJwtRefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*ClientSDK) PostAuthJwtRefreshWithBody ΒΆ
func (*ClientSDK) PostAuthPasswordForgot ΒΆ
func (c *ClientSDK) PostAuthPasswordForgot(ctx context.Context, body PostAuthPasswordForgotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*ClientSDK) PostAuthPasswordForgotWithBody ΒΆ
func (*ClientSDK) PostClientsClientIdTokens ΒΆ
func (c *ClientSDK) PostClientsClientIdTokens(ctx context.Context, clientId int, body PostClientsClientIdTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*ClientSDK) PostClientsClientIdTokensWithBody ΒΆ
func (*ClientSDK) PostClientsCreate ΒΆ
func (c *ClientSDK) PostClientsCreate(ctx context.Context, body PostClientsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*ClientSDK) PostClientsCreateWithBody ΒΆ
func (*ClientSDK) PostClientsInviteUser ΒΆ
func (c *ClientSDK) PostClientsInviteUser(ctx context.Context, body PostClientsInviteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*ClientSDK) PostClientsInviteUserWithBody ΒΆ
func (*ClientSDK) PutClientsClientIdClientUsersUserId ΒΆ
func (c *ClientSDK) PutClientsClientIdClientUsersUserId(ctx context.Context, clientId int, userId int, body PutClientsClientIdClientUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*ClientSDK) PutClientsClientIdClientUsersUserIdWithBody ΒΆ
func (*ClientSDK) PutUsersUserIdEmail ΒΆ
func (c *ClientSDK) PutUsersUserIdEmail(ctx context.Context, userId int, body PutUsersUserIdEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*ClientSDK) PutUsersUserIdEmailWithBody ΒΆ
func (*ClientSDK) PutUsersUserIdPassword ΒΆ
func (c *ClientSDK) PutUsersUserIdPassword(ctx context.Context, userId int, body PutUsersUserIdPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientWithResponses ΒΆ
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ΒΆ
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) DeleteClientsClientIdClientUsersUserIdWithResponse ΒΆ
func (c *ClientWithResponses) DeleteClientsClientIdClientUsersUserIdWithResponse(ctx context.Context, clientId int, userId int, reqEditors ...RequestEditorFn) (*DeleteClientsClientIdClientUsersUserIdResponse, error)
DeleteClientsClientIdClientUsersUserIdWithResponse request returning *DeleteClientsClientIdClientUsersUserIdResponse
func (*ClientWithResponses) DeleteClientsClientIdTokensTokenIdWithResponse ΒΆ
func (c *ClientWithResponses) DeleteClientsClientIdTokensTokenIdWithResponse(ctx context.Context, clientId int, tokenId int, reqEditors ...RequestEditorFn) (*DeleteClientsClientIdTokensTokenIdResponse, error)
DeleteClientsClientIdTokensTokenIdWithResponse request returning *DeleteClientsClientIdTokensTokenIdResponse
func (*ClientWithResponses) GetActivityLogLoginsWithResponse ΒΆ
func (c *ClientWithResponses) GetActivityLogLoginsWithResponse(ctx context.Context, params *GetActivityLogLoginsParams, reqEditors ...RequestEditorFn) (*GetActivityLogLoginsResponse, error)
GetActivityLogLoginsWithResponse request returning *GetActivityLogLoginsResponse
func (*ClientWithResponses) GetAuthJwtClientsClientIdLoginWithResponse ΒΆ
func (c *ClientWithResponses) GetAuthJwtClientsClientIdLoginWithResponse(ctx context.Context, clientId int, reqEditors ...RequestEditorFn) (*GetAuthJwtClientsClientIdLoginResponse, error)
GetAuthJwtClientsClientIdLoginWithResponse request returning *GetAuthJwtClientsClientIdLoginResponse
func (*ClientWithResponses) GetClientsClientIdClientUsersUserIdWithResponse ΒΆ
func (c *ClientWithResponses) GetClientsClientIdClientUsersUserIdWithResponse(ctx context.Context, clientId int, userId int, reqEditors ...RequestEditorFn) (*GetClientsClientIdClientUsersUserIdResponse, error)
GetClientsClientIdClientUsersUserIdWithResponse request returning *GetClientsClientIdClientUsersUserIdResponse
func (*ClientWithResponses) GetClientsClientIdTokensTokenIdWithResponse ΒΆ
func (c *ClientWithResponses) GetClientsClientIdTokensTokenIdWithResponse(ctx context.Context, clientId int, tokenId int, reqEditors ...RequestEditorFn) (*GetClientsClientIdTokensTokenIdResponse, error)
GetClientsClientIdTokensTokenIdWithResponse request returning *GetClientsClientIdTokensTokenIdResponse
func (*ClientWithResponses) GetClientsClientIdTokensWithResponse ΒΆ
func (c *ClientWithResponses) GetClientsClientIdTokensWithResponse(ctx context.Context, clientId int, params *GetClientsClientIdTokensParams, reqEditors ...RequestEditorFn) (*GetClientsClientIdTokensResponse, error)
GetClientsClientIdTokensWithResponse request returning *GetClientsClientIdTokensResponse
func (*ClientWithResponses) GetClientsMeWithResponse ΒΆ
func (c *ClientWithResponses) GetClientsMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetClientsMeResponse, error)
GetClientsMeWithResponse request returning *GetClientsMeResponse
func (*ClientWithResponses) GetUsersUserIdWithResponse ΒΆ
func (c *ClientWithResponses) GetUsersUserIdWithResponse(ctx context.Context, userId int, reqEditors ...RequestEditorFn) (*GetUsersUserIdResponse, error)
GetUsersUserIdWithResponse request returning *GetUsersUserIdResponse
func (*ClientWithResponses) GetUsersWithResponse ΒΆ
func (c *ClientWithResponses) GetUsersWithResponse(ctx context.Context, params *GetUsersParams, reqEditors ...RequestEditorFn) (*GetUsersResponse, error)
GetUsersWithResponse request returning *GetUsersResponse
func (*ClientWithResponses) PatchUsersUserIdWithBodyWithResponse ΒΆ
func (c *ClientWithResponses) PatchUsersUserIdWithBodyWithResponse(ctx context.Context, userId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchUsersUserIdResponse, error)
PatchUsersUserIdWithBodyWithResponse request with arbitrary body returning *PatchUsersUserIdResponse
func (*ClientWithResponses) PatchUsersUserIdWithResponse ΒΆ
func (c *ClientWithResponses) PatchUsersUserIdWithResponse(ctx context.Context, userId int, body PatchUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchUsersUserIdResponse, error)
func (*ClientWithResponses) PostAuthJwtLoginWithBodyWithResponse ΒΆ
func (c *ClientWithResponses) PostAuthJwtLoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAuthJwtLoginResponse, error)
PostAuthJwtLoginWithBodyWithResponse request with arbitrary body returning *PostAuthJwtLoginResponse
func (*ClientWithResponses) PostAuthJwtLoginWithResponse ΒΆ
func (c *ClientWithResponses) PostAuthJwtLoginWithResponse(ctx context.Context, body PostAuthJwtLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAuthJwtLoginResponse, error)
func (*ClientWithResponses) PostAuthJwtRefreshWithBodyWithResponse ΒΆ
func (c *ClientWithResponses) PostAuthJwtRefreshWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAuthJwtRefreshResponse, error)
PostAuthJwtRefreshWithBodyWithResponse request with arbitrary body returning *PostAuthJwtRefreshResponse
func (*ClientWithResponses) PostAuthJwtRefreshWithResponse ΒΆ
func (c *ClientWithResponses) PostAuthJwtRefreshWithResponse(ctx context.Context, body PostAuthJwtRefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAuthJwtRefreshResponse, error)
func (*ClientWithResponses) PostAuthPasswordForgotWithBodyWithResponse ΒΆ
func (c *ClientWithResponses) PostAuthPasswordForgotWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAuthPasswordForgotResponse, error)
PostAuthPasswordForgotWithBodyWithResponse request with arbitrary body returning *PostAuthPasswordForgotResponse
func (*ClientWithResponses) PostAuthPasswordForgotWithResponse ΒΆ
func (c *ClientWithResponses) PostAuthPasswordForgotWithResponse(ctx context.Context, body PostAuthPasswordForgotJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAuthPasswordForgotResponse, error)
func (*ClientWithResponses) PostClientsClientIdTokensWithBodyWithResponse ΒΆ
func (c *ClientWithResponses) PostClientsClientIdTokensWithBodyWithResponse(ctx context.Context, clientId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostClientsClientIdTokensResponse, error)
PostClientsClientIdTokensWithBodyWithResponse request with arbitrary body returning *PostClientsClientIdTokensResponse
func (*ClientWithResponses) PostClientsClientIdTokensWithResponse ΒΆ
func (c *ClientWithResponses) PostClientsClientIdTokensWithResponse(ctx context.Context, clientId int, body PostClientsClientIdTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*PostClientsClientIdTokensResponse, error)
func (*ClientWithResponses) PostClientsCreateWithBodyWithResponse ΒΆ
func (c *ClientWithResponses) PostClientsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostClientsCreateResponse, error)
PostClientsCreateWithBodyWithResponse request with arbitrary body returning *PostClientsCreateResponse
func (*ClientWithResponses) PostClientsCreateWithResponse ΒΆ
func (c *ClientWithResponses) PostClientsCreateWithResponse(ctx context.Context, body PostClientsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostClientsCreateResponse, error)
func (*ClientWithResponses) PostClientsInviteUserWithBodyWithResponse ΒΆ
func (c *ClientWithResponses) PostClientsInviteUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostClientsInviteUserResponse, error)
PostClientsInviteUserWithBodyWithResponse request with arbitrary body returning *PostClientsInviteUserResponse
func (*ClientWithResponses) PostClientsInviteUserWithResponse ΒΆ
func (c *ClientWithResponses) PostClientsInviteUserWithResponse(ctx context.Context, body PostClientsInviteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*PostClientsInviteUserResponse, error)
func (*ClientWithResponses) PutClientsClientIdClientUsersUserIdWithBodyWithResponse ΒΆ
func (c *ClientWithResponses) PutClientsClientIdClientUsersUserIdWithBodyWithResponse(ctx context.Context, clientId int, userId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutClientsClientIdClientUsersUserIdResponse, error)
PutClientsClientIdClientUsersUserIdWithBodyWithResponse request with arbitrary body returning *PutClientsClientIdClientUsersUserIdResponse
func (*ClientWithResponses) PutClientsClientIdClientUsersUserIdWithResponse ΒΆ
func (c *ClientWithResponses) PutClientsClientIdClientUsersUserIdWithResponse(ctx context.Context, clientId int, userId int, body PutClientsClientIdClientUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutClientsClientIdClientUsersUserIdResponse, error)
func (*ClientWithResponses) PutUsersUserIdEmailWithBodyWithResponse ΒΆ
func (c *ClientWithResponses) PutUsersUserIdEmailWithBodyWithResponse(ctx context.Context, userId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutUsersUserIdEmailResponse, error)
PutUsersUserIdEmailWithBodyWithResponse request with arbitrary body returning *PutUsersUserIdEmailResponse
func (*ClientWithResponses) PutUsersUserIdEmailWithResponse ΒΆ
func (c *ClientWithResponses) PutUsersUserIdEmailWithResponse(ctx context.Context, userId int, body PutUsersUserIdEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*PutUsersUserIdEmailResponse, error)
func (*ClientWithResponses) PutUsersUserIdPasswordWithBodyWithResponse ΒΆ
func (c *ClientWithResponses) PutUsersUserIdPasswordWithBodyWithResponse(ctx context.Context, userId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutUsersUserIdPasswordResponse, error)
PutUsersUserIdPasswordWithBodyWithResponse request with arbitrary body returning *PutUsersUserIdPasswordResponse
func (*ClientWithResponses) PutUsersUserIdPasswordWithResponse ΒΆ
func (c *ClientWithResponses) PutUsersUserIdPasswordWithResponse(ctx context.Context, userId int, body PutUsersUserIdPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*PutUsersUserIdPasswordResponse, error)
type ClientWithResponsesInterface ΒΆ
type ClientWithResponsesInterface interface {
// GetActivityLogLoginsWithResponse request
GetActivityLogLoginsWithResponse(ctx context.Context, params *GetActivityLogLoginsParams, reqEditors ...RequestEditorFn) (*GetActivityLogLoginsResponse, error)
// GetAuthJwtClientsClientIdLoginWithResponse request
GetAuthJwtClientsClientIdLoginWithResponse(ctx context.Context, clientId int, reqEditors ...RequestEditorFn) (*GetAuthJwtClientsClientIdLoginResponse, error)
// PostAuthJwtLoginWithBodyWithResponse request with any body
PostAuthJwtLoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAuthJwtLoginResponse, error)
PostAuthJwtLoginWithResponse(ctx context.Context, body PostAuthJwtLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAuthJwtLoginResponse, error)
// PostAuthJwtRefreshWithBodyWithResponse request with any body
PostAuthJwtRefreshWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAuthJwtRefreshResponse, error)
PostAuthJwtRefreshWithResponse(ctx context.Context, body PostAuthJwtRefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAuthJwtRefreshResponse, error)
// PostAuthPasswordForgotWithBodyWithResponse request with any body
PostAuthPasswordForgotWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAuthPasswordForgotResponse, error)
PostAuthPasswordForgotWithResponse(ctx context.Context, body PostAuthPasswordForgotJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAuthPasswordForgotResponse, error)
// PostClientsCreateWithBodyWithResponse request with any body
PostClientsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostClientsCreateResponse, error)
PostClientsCreateWithResponse(ctx context.Context, body PostClientsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostClientsCreateResponse, error)
// PostClientsInviteUserWithBodyWithResponse request with any body
PostClientsInviteUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostClientsInviteUserResponse, error)
PostClientsInviteUserWithResponse(ctx context.Context, body PostClientsInviteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*PostClientsInviteUserResponse, error)
// GetClientsMeWithResponse request
GetClientsMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetClientsMeResponse, error)
// DeleteClientsClientIdClientUsersUserIdWithResponse request
DeleteClientsClientIdClientUsersUserIdWithResponse(ctx context.Context, clientId int, userId int, reqEditors ...RequestEditorFn) (*DeleteClientsClientIdClientUsersUserIdResponse, error)
// GetClientsClientIdClientUsersUserIdWithResponse request
GetClientsClientIdClientUsersUserIdWithResponse(ctx context.Context, clientId int, userId int, reqEditors ...RequestEditorFn) (*GetClientsClientIdClientUsersUserIdResponse, error)
// PutClientsClientIdClientUsersUserIdWithBodyWithResponse request with any body
PutClientsClientIdClientUsersUserIdWithBodyWithResponse(ctx context.Context, clientId int, userId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutClientsClientIdClientUsersUserIdResponse, error)
PutClientsClientIdClientUsersUserIdWithResponse(ctx context.Context, clientId int, userId int, body PutClientsClientIdClientUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutClientsClientIdClientUsersUserIdResponse, error)
// GetClientsClientIdTokensWithResponse request
GetClientsClientIdTokensWithResponse(ctx context.Context, clientId int, params *GetClientsClientIdTokensParams, reqEditors ...RequestEditorFn) (*GetClientsClientIdTokensResponse, error)
// PostClientsClientIdTokensWithBodyWithResponse request with any body
PostClientsClientIdTokensWithBodyWithResponse(ctx context.Context, clientId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostClientsClientIdTokensResponse, error)
PostClientsClientIdTokensWithResponse(ctx context.Context, clientId int, body PostClientsClientIdTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*PostClientsClientIdTokensResponse, error)
// DeleteClientsClientIdTokensTokenIdWithResponse request
DeleteClientsClientIdTokensTokenIdWithResponse(ctx context.Context, clientId int, tokenId int, reqEditors ...RequestEditorFn) (*DeleteClientsClientIdTokensTokenIdResponse, error)
// GetClientsClientIdTokensTokenIdWithResponse request
GetClientsClientIdTokensTokenIdWithResponse(ctx context.Context, clientId int, tokenId int, reqEditors ...RequestEditorFn) (*GetClientsClientIdTokensTokenIdResponse, error)
// GetUsersWithResponse request
GetUsersWithResponse(ctx context.Context, params *GetUsersParams, reqEditors ...RequestEditorFn) (*GetUsersResponse, error)
// GetUsersUserIdWithResponse request
GetUsersUserIdWithResponse(ctx context.Context, userId int, reqEditors ...RequestEditorFn) (*GetUsersUserIdResponse, error)
// PatchUsersUserIdWithBodyWithResponse request with any body
PatchUsersUserIdWithBodyWithResponse(ctx context.Context, userId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchUsersUserIdResponse, error)
PatchUsersUserIdWithResponse(ctx context.Context, userId int, body PatchUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchUsersUserIdResponse, error)
// PutUsersUserIdEmailWithBodyWithResponse request with any body
PutUsersUserIdEmailWithBodyWithResponse(ctx context.Context, userId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutUsersUserIdEmailResponse, error)
PutUsersUserIdEmailWithResponse(ctx context.Context, userId int, body PutUsersUserIdEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*PutUsersUserIdEmailResponse, error)
// PutUsersUserIdPasswordWithBodyWithResponse request with any body
PutUsersUserIdPasswordWithBodyWithResponse(ctx context.Context, userId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutUsersUserIdPasswordResponse, error)
PutUsersUserIdPasswordWithResponse(ctx context.Context, userId int, body PutUsersUserIdPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*PutUsersUserIdPasswordResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type DeleteClientsClientIdClientUsersUserId4030 ΒΆ
type DeleteClientsClientIdClientUsersUserId4030 = map[string]interface{}
type DeleteClientsClientIdClientUsersUserId4031 ΒΆ
type DeleteClientsClientIdClientUsersUserId4031 struct {
// Message The specified user has API tokens.
// Please [delete API tokens](#tag/API-Tokens/paths/~1clients~1{clientId}~1tokens~1{tokenId}/delete) before the user deleting.
Message *string `json:"message,omitempty"`
}
type DeleteClientsClientIdClientUsersUserIdResponse ΒΆ
type DeleteClientsClientIdClientUsersUserIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON403 *struct {
// contains filtered or unexported fields
}
}
func ParseDeleteClientsClientIdClientUsersUserIdResponse ΒΆ
func ParseDeleteClientsClientIdClientUsersUserIdResponse(rsp *http.Response) (*DeleteClientsClientIdClientUsersUserIdResponse, error)
ParseDeleteClientsClientIdClientUsersUserIdResponse parses an HTTP response from a DeleteClientsClientIdClientUsersUserIdWithResponse call
func (DeleteClientsClientIdClientUsersUserIdResponse) Status ΒΆ
func (r DeleteClientsClientIdClientUsersUserIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteClientsClientIdClientUsersUserIdResponse) StatusCode ΒΆ
func (r DeleteClientsClientIdClientUsersUserIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteClientsClientIdTokensTokenIdResponse ΒΆ
func ParseDeleteClientsClientIdTokensTokenIdResponse ΒΆ
func ParseDeleteClientsClientIdTokensTokenIdResponse(rsp *http.Response) (*DeleteClientsClientIdTokensTokenIdResponse, error)
ParseDeleteClientsClientIdTokensTokenIdResponse parses an HTTP response from a DeleteClientsClientIdTokensTokenIdWithResponse call
func (DeleteClientsClientIdTokensTokenIdResponse) Status ΒΆ
func (r DeleteClientsClientIdTokensTokenIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteClientsClientIdTokensTokenIdResponse) StatusCode ΒΆ
func (r DeleteClientsClientIdTokensTokenIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetActivityLogLogins4001 ΒΆ
type GetActivityLogLogins4001 struct {
// Message This message describes error if json schema from your request is invalid.
Message *string `json:"message,omitempty"`
}
type GetActivityLogLoginsParams ΒΆ
type GetActivityLogLoginsParams struct {
// Limit The maximum number of items.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// Offset Offset relative to the beginning of list.
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}
GetActivityLogLoginsParams defines parameters for GetActivityLogLogins.
type GetActivityLogLoginsResponse ΒΆ
type GetActivityLogLoginsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// Count Total number of users
Count *float32 `json:"count,omitempty"`
// Next URL to the next users slice
Next *string `json:"next,omitempty"`
// Previous URL to the previous users slice
Previous *string `json:"previous,omitempty"`
Result *interface{} `json:"result,omitempty"`
}
JSON400 *struct {
// contains filtered or unexported fields
}
}
func ParseGetActivityLogLoginsResponse ΒΆ
func ParseGetActivityLogLoginsResponse(rsp *http.Response) (*GetActivityLogLoginsResponse, error)
ParseGetActivityLogLoginsResponse parses an HTTP response from a GetActivityLogLoginsWithResponse call
func (GetActivityLogLoginsResponse) Status ΒΆ
func (r GetActivityLogLoginsResponse) Status() string
Status returns HTTPResponse.Status
func (GetActivityLogLoginsResponse) StatusCode ΒΆ
func (r GetActivityLogLoginsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAuthJwtClientsClientIdLoginResponse ΒΆ
type GetAuthJwtClientsClientIdLoginResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// Access Use this token to access API.
Access *string `json:"access,omitempty"`
// Refresh Use this token to refresh the access token via
// [`/auth/jwt/refresh`](#tag/Account/paths/~1auth~1jwt~1refresh/post) method.
Refresh *string `json:"refresh,omitempty"`
}
}
func ParseGetAuthJwtClientsClientIdLoginResponse ΒΆ
func ParseGetAuthJwtClientsClientIdLoginResponse(rsp *http.Response) (*GetAuthJwtClientsClientIdLoginResponse, error)
ParseGetAuthJwtClientsClientIdLoginResponse parses an HTTP response from a GetAuthJwtClientsClientIdLoginWithResponse call
func (GetAuthJwtClientsClientIdLoginResponse) Status ΒΆ
func (r GetAuthJwtClientsClientIdLoginResponse) Status() string
Status returns HTTPResponse.Status
func (GetAuthJwtClientsClientIdLoginResponse) StatusCode ΒΆ
func (r GetAuthJwtClientsClientIdLoginResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetClientsClientIdClientUsersUserId200UserRoleName ΒΆ
type GetClientsClientIdClientUsersUserId200UserRoleName string
type GetClientsClientIdClientUsersUserIdResponse ΒΆ
type GetClientsClientIdClientUsersUserIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
UserRole *struct {
// Id Group's ID: Possible values are: <br> <ul> <li>1 - Administrators <li>2 - Users <li>5 - Engineers <li>3009 - Purge and Prefetch only (API+Web) <li>3022 - Purge and Prefetch only (API)
Id *int `json:"id,omitempty"`
// Name Group's name.
Name *GetClientsClientIdClientUsersUserId200UserRoleName `json:"name,omitempty"`
} `json:"user_role,omitempty"`
}
}
func ParseGetClientsClientIdClientUsersUserIdResponse ΒΆ
func ParseGetClientsClientIdClientUsersUserIdResponse(rsp *http.Response) (*GetClientsClientIdClientUsersUserIdResponse, error)
ParseGetClientsClientIdClientUsersUserIdResponse parses an HTTP response from a GetClientsClientIdClientUsersUserIdWithResponse call
func (GetClientsClientIdClientUsersUserIdResponse) Status ΒΆ
func (r GetClientsClientIdClientUsersUserIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetClientsClientIdClientUsersUserIdResponse) StatusCode ΒΆ
func (r GetClientsClientIdClientUsersUserIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetClientsClientIdTokens200ClientUserRoleName ΒΆ
type GetClientsClientIdTokens200ClientUserRoleName string
type GetClientsClientIdTokensParams ΒΆ
type GetClientsClientIdTokensParams struct {
// Role Group's ID. Possible values are: <br> <ul> <li>1 - Administrators <li>2 - Users <li>5 - Engineers <li>3009 - Purge and Prefetch only (API+Web) <li>3022 - Purge and Prefetch only (API) </ul> Example, <i>&role=Engineers</i>
Role *string `form:"role,omitempty" json:"role,omitempty"`
// IssuedBy User's ID. Use to get API tokens issued by a particular user. <br> Example, <i>&issued_by=1234</i>
IssuedBy *int `form:"issued_by,omitempty" json:"issued_by,omitempty"`
// NotIssuedBy User's ID. Use to get API tokens issued by anyone except a particular user. <br> Example, <i>¬_issued_by=1234</i>
NotIssuedBy *int `form:"not_issued_by,omitempty" json:"not_issued_by,omitempty"`
// Deleted The state of API tokens included in the response. <br> Two possible values: <br> <ul> <li> True - API token was not deleted. <li> False - API token was deleted. </ul> Example, <i>&deleted=True</i>
Deleted *bool `form:"deleted,omitempty" json:"deleted,omitempty"`
}
GetClientsClientIdTokensParams defines parameters for GetClientsClientIdTokens.
type GetClientsClientIdTokensResponse ΒΆ
type GetClientsClientIdTokensResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]struct {
// ClientUser API token role and issuer data.
ClientUser struct {
// ClientId Account's ID.
ClientId *int `json:"client_id,omitempty"`
// Deleted Deletion flag. If true, then the API token was deleted.
Deleted *bool `json:"deleted,omitempty"`
Role *struct {
// Id Group's ID: Possible values are: <br> <ul> <li>1 - Administrators <li>2 - Users <li>5 - Engineers <li>3009 - Purge and Prefetch only (API+Web) <li>3022 - Purge and Prefetch only (API)
Id *int `json:"id,omitempty"`
// Name Group's name.
Name *GetClientsClientIdTokens200ClientUserRoleName `json:"name,omitempty"`
} `json:"role,omitempty"`
// UserEmail User's email who issued the API token.
UserEmail *string `json:"user_email,omitempty"`
// UserId User's ID who issued the API token.
UserId *int `json:"user_id,omitempty"`
// UserName User's name who issued the API token.
UserName *string `json:"user_name,omitempty"`
} `json:"client_user"`
// Created Date when the API token was issued (ISO 8086/RFC 3339 format), UTC.
Created *string `json:"created,omitempty"`
// Deleted Deletion flag. If true, then the API token was deleted.
Deleted *bool `json:"deleted,omitempty"`
// Description API token description.
Description *string `json:"description,omitempty"`
// ExpDate Date when the API token becomes expired (ISO 8086/RFC 3339 format), UTC.
// If null, then the API token will never expire.
ExpDate *string `json:"exp_date,omitempty"`
// Expired Expiration flag. If true, then the API token has expired.
// When an API token expires it will be automatically deleted.
Expired *bool `json:"expired,omitempty"`
// Id API token ID.
Id *int `json:"id,omitempty"`
// LastUsage Date when the API token was last used (ISO 8086/RFC 3339 format), UTC.
LastUsage *string `json:"last_usage,omitempty"`
// Name API token name.
Name string `json:"name"`
}
}
func ParseGetClientsClientIdTokensResponse ΒΆ
func ParseGetClientsClientIdTokensResponse(rsp *http.Response) (*GetClientsClientIdTokensResponse, error)
ParseGetClientsClientIdTokensResponse parses an HTTP response from a GetClientsClientIdTokensWithResponse call
func (GetClientsClientIdTokensResponse) Status ΒΆ
func (r GetClientsClientIdTokensResponse) Status() string
Status returns HTTPResponse.Status
func (GetClientsClientIdTokensResponse) StatusCode ΒΆ
func (r GetClientsClientIdTokensResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetClientsClientIdTokensTokenId200ClientUserRoleName ΒΆ
type GetClientsClientIdTokensTokenId200ClientUserRoleName string
type GetClientsClientIdTokensTokenIdResponse ΒΆ
type GetClientsClientIdTokensTokenIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// ClientUser API token role and issuer data.
ClientUser struct {
// ClientId Account's ID.
ClientId *int `json:"client_id,omitempty"`
// Deleted Deletion flag. If true, then the API token was deleted.
Deleted *bool `json:"deleted,omitempty"`
Role *struct {
// Id Group's ID: Possible values are: <br> <ul> <li>1 - Administrators <li>2 - Users <li>5 - Engineers <li>3009 - Purge and Prefetch only (API+Web) <li>3022 - Purge and Prefetch only (API)
Id *int `json:"id,omitempty"`
// Name Group's name.
Name *GetClientsClientIdTokensTokenId200ClientUserRoleName `json:"name,omitempty"`
} `json:"role,omitempty"`
// UserEmail User's email who issued the API token.
UserEmail *string `json:"user_email,omitempty"`
// UserId User's ID who issued the API token.
UserId *int `json:"user_id,omitempty"`
// UserName User's name who issued the API token.
UserName *string `json:"user_name,omitempty"`
} `json:"client_user"`
// Created Date when the API token was issued (ISO 8086/RFC 3339 format), UTC.
Created *string `json:"created,omitempty"`
// Deleted Deletion flag. If true, then the API token was deleted.
Deleted *bool `json:"deleted,omitempty"`
// Description API token description.
Description *string `json:"description,omitempty"`
// ExpDate Date when the API token becomes expired (ISO 8086/RFC 3339 format), UTC.
// If null, then the API token will never expire.
ExpDate *string `json:"exp_date,omitempty"`
// Expired Expiration flag. If true, then the API token has expired.
// When an API token expires it will be automatically deleted.
Expired *bool `json:"expired,omitempty"`
// Id API token ID.
Id *int `json:"id,omitempty"`
// LastUsage Date when the API token was last used (ISO 8086/RFC 3339 format), UTC.
LastUsage *string `json:"last_usage,omitempty"`
// Name API token name.
Name string `json:"name"`
}
}
func ParseGetClientsClientIdTokensTokenIdResponse ΒΆ
func ParseGetClientsClientIdTokensTokenIdResponse(rsp *http.Response) (*GetClientsClientIdTokensTokenIdResponse, error)
ParseGetClientsClientIdTokensTokenIdResponse parses an HTTP response from a GetClientsClientIdTokensTokenIdWithResponse call
func (GetClientsClientIdTokensTokenIdResponse) Status ΒΆ
func (r GetClientsClientIdTokensTokenIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetClientsClientIdTokensTokenIdResponse) StatusCode ΒΆ
func (r GetClientsClientIdTokensTokenIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetClientsMe200Capabilities ΒΆ
type GetClientsMe200Capabilities string
type GetClientsMe200ServiceStatusesCDNStatus ΒΆ
type GetClientsMe200ServiceStatusesCDNStatus string
type GetClientsMe200ServiceStatusesCLOUDStatus ΒΆ
type GetClientsMe200ServiceStatusesCLOUDStatus string
type GetClientsMe200ServiceStatusesDDOSStatus ΒΆ
type GetClientsMe200ServiceStatusesDDOSStatus string
type GetClientsMe200ServiceStatusesDNSStatus ΒΆ
type GetClientsMe200ServiceStatusesDNSStatus string
type GetClientsMe200ServiceStatusesSTORAGEStatus ΒΆ
type GetClientsMe200ServiceStatusesSTORAGEStatus string
type GetClientsMe200ServiceStatusesSTREAMINGStatus ΒΆ
type GetClientsMe200ServiceStatusesSTREAMINGStatus string
type GetClientsMe200SignupProcess ΒΆ
type GetClientsMe200SignupProcess string
type GetClientsMe200Status ΒΆ
type GetClientsMe200Status string
type GetClientsMe200UsersAuthTypes ΒΆ
type GetClientsMe200UsersAuthTypes string
type GetClientsMe200UsersGroupsName ΒΆ
type GetClientsMe200UsersGroupsName string
type GetClientsMe200UsersLang ΒΆ
type GetClientsMe200UsersLang string
type GetClientsMeResponse ΒΆ
type GetClientsMeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// BillType System field. Billing type of the account.
BillType *string `json:"bill_type,omitempty"`
// Capabilities System field. List of services available for the account.
Capabilities *[]GetClientsMe200Capabilities `json:"capabilities,omitempty"`
// CompanyName The company name.
CompanyName *string `json:"companyName,omitempty"`
// CountryCode System field. The company country (ISO 3166-1 alpha-2 format).
CountryCode *string `json:"country_code,omitempty"`
// CurrentUser ID of the current user.
CurrentUser *int `json:"currentUser,omitempty"`
// CustomId The account custom ID.
CustomId *string `json:"custom_id"`
// Deleted The field shows the status of the account:
// - `true` β the account has been deleted
// - `false` β the account is not deleted
Deleted *bool `json:"deleted,omitempty"`
// Email The account email.
Email *openapi_types.Email `json:"email,omitempty"`
// EntryBaseDomain System field. Control panel domain.
EntryBaseDomain *string `json:"entryBaseDomain"`
// FreeFeatures An object of arrays which contains information about free features available for the requested account.
FreeFeatures *struct {
CDN *[]struct {
// CreateDate Date and time when the feature was activated (ISO 8086/RFC 3339 format).
CreateDate *string `json:"create_date,omitempty"`
// FeatureId Feature ID.
FeatureId *int `json:"feature_id,omitempty"`
// FreeFeatureId Internal feature activation ID.
FreeFeatureId *int `json:"free_feature_id,omitempty"`
// Name Name of the feature.
Name *string `json:"name,omitempty"`
Service *interface{} `json:"service,omitempty"`
} `json:"CDN,omitempty"`
CLOUD *[]struct {
// CreateDate Date and time when the feature was activated (ISO 8086/RFC 3339 format).
CreateDate *string `json:"create_date,omitempty"`
// FeatureId Feature ID.
FeatureId *int `json:"feature_id,omitempty"`
// FreeFeatureId Internal feature activation ID.
FreeFeatureId *int `json:"free_feature_id,omitempty"`
// Name Name of the feature.
Name *string `json:"name,omitempty"`
Service *interface{} `json:"service,omitempty"`
} `json:"CLOUD,omitempty"`
DDOS *[]struct {
// CreateDate Date and time when the feature was activated (ISO 8086/RFC 3339 format).
CreateDate *string `json:"create_date,omitempty"`
// FeatureId Feature ID.
FeatureId *int `json:"feature_id,omitempty"`
// FreeFeatureId Internal feature activation ID.
FreeFeatureId *int `json:"free_feature_id,omitempty"`
// Name Name of the feature.
Name *string `json:"name,omitempty"`
Service *interface{} `json:"service,omitempty"`
} `json:"DDOS,omitempty"`
DNS *[]struct {
// CreateDate Date and time when the feature was activated (ISO 8086/RFC 3339 format).
CreateDate *string `json:"create_date,omitempty"`
// FeatureId Feature ID.
FeatureId *int `json:"feature_id,omitempty"`
// FreeFeatureId Internal feature activation ID.
FreeFeatureId *int `json:"free_feature_id,omitempty"`
// Name Name of the feature.
Name *string `json:"name,omitempty"`
Service *interface{} `json:"service,omitempty"`
} `json:"DNS,omitempty"`
STORAGE *[]struct {
// CreateDate Date and time when the feature was activated (ISO 8086/RFC 3339 format).
CreateDate *string `json:"create_date,omitempty"`
// FeatureId Feature ID.
FeatureId *int `json:"feature_id,omitempty"`
// FreeFeatureId Internal feature activation ID.
FreeFeatureId *int `json:"free_feature_id,omitempty"`
// Name Name of the feature.
Name *string `json:"name,omitempty"`
Service *interface{} `json:"service,omitempty"`
} `json:"STORAGE,omitempty"`
STREAMING *[]struct {
// CreateDate Date and time when the feature was activated (ISO 8086/RFC 3339 format).
CreateDate *string `json:"create_date,omitempty"`
// FeatureId Feature ID.
FeatureId *int `json:"feature_id,omitempty"`
// FreeFeatureId Internal feature activation ID.
FreeFeatureId *int `json:"free_feature_id,omitempty"`
// Name Name of the feature.
Name *string `json:"name,omitempty"`
Service *interface{} `json:"service,omitempty"`
} `json:"STREAMING,omitempty"`
} `json:"freeFeatures,omitempty"`
// HasActiveAdmin System field.
HasActiveAdmin *bool `json:"has_active_admin,omitempty"`
// Id The account ID.
Id *int `json:"id,omitempty"`
// IsTest System field:
// - `true` β a test account;
// - `false` β a production account.
IsTest *bool `json:"is_test,omitempty"`
// Name Name of a user who registered the requested account.
Name *string `json:"name"`
// PaidFeatures An object of arrays which contains information about paid features available for the requested account.
PaidFeatures *struct {
CDN *[]struct {
// CreateDate Date and time when the feature was activated (ISO 8086/RFC 3339 format).
CreateDate *string `json:"create_date,omitempty"`
// FeatureId Feature ID.
FeatureId *int `json:"feature_id,omitempty"`
// Name Name of the feature.
Name *string `json:"name,omitempty"`
// PaidFeatureId Internal feature activation ID.
PaidFeatureId *int `json:"paid_feature_id,omitempty"`
Service *interface{} `json:"service,omitempty"`
} `json:"CDN,omitempty"`
CLOUD *[]struct {
// CreateDate Date and time when the feature was activated (ISO 8086/RFC 3339 format).
CreateDate *string `json:"create_date,omitempty"`
// FeatureId Feature ID.
FeatureId *int `json:"feature_id,omitempty"`
// Name Name of the feature.
Name *string `json:"name,omitempty"`
// PaidFeatureId Internal feature activation ID.
PaidFeatureId *int `json:"paid_feature_id,omitempty"`
Service *interface{} `json:"service,omitempty"`
} `json:"CLOUD,omitempty"`
DDOS *[]struct {
// CreateDate Date and time when the feature was activated (ISO 8086/RFC 3339 format).
CreateDate *string `json:"create_date,omitempty"`
// FeatureId Feature ID.
FeatureId *int `json:"feature_id,omitempty"`
// Name Name of the feature.
Name *string `json:"name,omitempty"`
// PaidFeatureId Internal feature activation ID.
PaidFeatureId *int `json:"paid_feature_id,omitempty"`
Service *interface{} `json:"service,omitempty"`
} `json:"DDOS,omitempty"`
DNS *[]struct {
// CreateDate Date and time when the feature was activated (ISO 8086/RFC 3339 format).
CreateDate *string `json:"create_date,omitempty"`
// FeatureId Feature ID.
FeatureId *int `json:"feature_id,omitempty"`
// Name Name of the feature.
Name *string `json:"name,omitempty"`
// PaidFeatureId Internal feature activation ID.
PaidFeatureId *int `json:"paid_feature_id,omitempty"`
Service *interface{} `json:"service,omitempty"`
} `json:"DNS,omitempty"`
STORAGE *[]struct {
// CreateDate Date and time when the feature was activated (ISO 8086/RFC 3339 format).
CreateDate *string `json:"create_date,omitempty"`
// FeatureId Feature ID.
FeatureId *int `json:"feature_id,omitempty"`
// Name Name of the feature.
Name *string `json:"name,omitempty"`
// PaidFeatureId Internal feature activation ID.
PaidFeatureId *int `json:"paid_feature_id,omitempty"`
Service *interface{} `json:"service,omitempty"`
} `json:"STORAGE,omitempty"`
STREAMING *[]struct {
// CreateDate Date and time when the feature was activated (ISO 8086/RFC 3339 format).
CreateDate *string `json:"create_date,omitempty"`
// FeatureId Feature ID.
FeatureId *int `json:"feature_id,omitempty"`
// Name Name of the feature.
Name *string `json:"name,omitempty"`
// PaidFeatureId Internal feature activation ID.
PaidFeatureId *int `json:"paid_feature_id,omitempty"`
Service *interface{} `json:"service,omitempty"`
} `json:"STREAMING,omitempty"`
} `json:"paidFeatures,omitempty"`
// Phone Phone of a user who registered the requested account.
Phone *string `json:"phone"`
// ServiceStatuses An object of arrays which contains information about all services available for the requested account.
ServiceStatuses *struct {
CDN *struct {
// Enabled `true` - service is available in the Control Panel.
Enabled *bool `json:"enabled,omitempty"`
// Status Status of the service.
Status *GetClientsMe200ServiceStatusesCDNStatus `json:"status,omitempty"`
} `json:"CDN,omitempty"`
CLOUD *struct {
// Enabled `true` - service is available in the Control Panel.
Enabled *bool `json:"enabled,omitempty"`
// Status Status of the service.
Status *GetClientsMe200ServiceStatusesCLOUDStatus `json:"status,omitempty"`
} `json:"CLOUD,omitempty"`
DDOS *struct {
// Enabled `true` - service is available in the Control Panel.
Enabled *bool `json:"enabled,omitempty"`
// Status Status of the service.
Status *GetClientsMe200ServiceStatusesDDOSStatus `json:"status,omitempty"`
} `json:"DDOS,omitempty"`
DNS *struct {
// Enabled `true` - service is available in the Control Panel.
Enabled *bool `json:"enabled,omitempty"`
// Status Status of the service.
Status *GetClientsMe200ServiceStatusesDNSStatus `json:"status,omitempty"`
} `json:"DNS,omitempty"`
STORAGE *struct {
// Enabled `true` - service is available in the Control Panel.
Enabled *bool `json:"enabled,omitempty"`
// Status Status of the service.
Status *GetClientsMe200ServiceStatusesSTORAGEStatus `json:"status,omitempty"`
} `json:"STORAGE,omitempty"`
STREAMING *struct {
// Enabled `true` - service is available in the Control Panel.
Enabled *bool `json:"enabled,omitempty"`
// Status Status of the service.
Status *GetClientsMe200ServiceStatusesSTREAMINGStatus `json:"status,omitempty"`
} `json:"STREAMING,omitempty"`
} `json:"serviceStatuses,omitempty"`
// SignupProcess System field. Type of the account registration process.
SignupProcess *GetClientsMe200SignupProcess `json:"signup_process"`
// Status Status of the account.
Status *GetClientsMe200Status `json:"status,omitempty"`
// Users List of account users.
Users *[]struct {
// Activated Email confirmation:
// - `true` β user confirmed the email;
// - `false` β user did not confirm the email.
Activated *bool `json:"activated,omitempty"`
// AuthTypes System field. List of auth types available for the account.
AuthTypes *[]GetClientsMe200UsersAuthTypes `json:"auth_types,omitempty"`
// Client User's account ID.
Client *float32 `json:"client,omitempty"`
// Company User's company.
Company *string `json:"company,omitempty"`
// Deleted Deletion flag. If `true` then user was deleted.
Deleted *bool `json:"deleted,omitempty"`
// Email User's email address.
Email *openapi_types.Email `json:"email,omitempty"`
// Groups User's group in the current account.
//
// IAM supports 5 groups:
//
// - Users
// - Administrators
// - Engineers
// - Purge and Prefetch only (API)
// - Purge and Prefetch only (API+Web)
Groups *[]struct {
// Id Group's ID: Possible values are: <br> <ul> <li>1 - Administrators <li>2 - Users <li>5 - Engineers <li>3009 - Purge and Prefetch only (API+Web) <li>3022 - Purge and Prefetch only (API)
Id *int `json:"id,omitempty"`
// Name Group's name.
Name *GetClientsMe200UsersGroupsName `json:"name,omitempty"`
} `json:"groups,omitempty"`
// Id User's ID.
Id *int `json:"id,omitempty"`
// Lang User's language.
//
// Defines language of the control panel and email messages.
Lang *GetClientsMe200UsersLang `json:"lang,omitempty"`
// Name User's name.
Name *string `json:"name"`
// Phone User's phone.
Phone *string `json:"phone"`
// Reseller Services provider ID.
Reseller *int `json:"reseller,omitempty"`
// SsoAuth SSO authentication flag. If `true` then user can login via SAML SSO.
SsoAuth *bool `json:"sso_auth,omitempty"`
// TwoFa Two-step verification:
// - `true` β user enabled two-step verification;
// - `false` β user disabled two-step verification.
TwoFa *bool `json:"two_fa,omitempty"`
} `json:"users,omitempty"`
// Website The company website.
Website *string `json:"website,omitempty"`
}
}
func ParseGetClientsMeResponse ΒΆ
func ParseGetClientsMeResponse(rsp *http.Response) (*GetClientsMeResponse, error)
ParseGetClientsMeResponse parses an HTTP response from a GetClientsMeWithResponse call
func (GetClientsMeResponse) Status ΒΆ
func (r GetClientsMeResponse) Status() string
Status returns HTTPResponse.Status
func (GetClientsMeResponse) StatusCode ΒΆ
func (r GetClientsMeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUsers2000 ΒΆ
type GetUsers2000 = []interface{}
type GetUsers2001 ΒΆ
type GetUsers2001 struct {
// Count Total number of users
Count *float32 `json:"count,omitempty"`
// Next URL to the next users slice
Next *string `json:"next,omitempty"`
// Previous URL to the previous users slice
Previous *string `json:"previous,omitempty"`
Result *interface{} `json:"result,omitempty"`
}
type GetUsersParams ΒΆ
type GetUsersParams struct {
// Limit The maximum number of items.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// Offset Offset relative to the beginning of list.
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}
GetUsersParams defines parameters for GetUsers.
type GetUsersResponse ΒΆ
type GetUsersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// contains filtered or unexported fields
}
}
func ParseGetUsersResponse ΒΆ
func ParseGetUsersResponse(rsp *http.Response) (*GetUsersResponse, error)
ParseGetUsersResponse parses an HTTP response from a GetUsersWithResponse call
func (GetUsersResponse) Status ΒΆ
func (r GetUsersResponse) Status() string
Status returns HTTPResponse.Status
func (GetUsersResponse) StatusCode ΒΆ
func (r GetUsersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUsersUserId200AuthTypes ΒΆ
type GetUsersUserId200AuthTypes string
type GetUsersUserId200GroupsName ΒΆ
type GetUsersUserId200GroupsName string
type GetUsersUserId200Lang ΒΆ
type GetUsersUserId200Lang string
type GetUsersUserId200UserType ΒΆ
type GetUsersUserId200UserType string
type GetUsersUserIdResponse ΒΆ
type GetUsersUserIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// Activated Email confirmation:
// - `true` β user confirmed the email;
// - `false` β user did not confirm the email.
Activated *bool `json:"activated,omitempty"`
// AuthTypes System field. List of auth types available for the account.
AuthTypes *[]GetUsersUserId200AuthTypes `json:"auth_types,omitempty"`
// Client User's account ID.
Client *float32 `json:"client,omitempty"`
// ClientAndRoles List of user's clients. User can access to one or more clients.
ClientAndRoles *[]struct {
ClientCompanyName string `json:"client_company_name"`
ClientId int `json:"client_id"`
// UserId User's ID.
UserId int `json:"user_id"`
// UserRoles User role in this client.
UserRoles []string `json:"user_roles"`
} `json:"client_and_roles,omitempty"`
// Company User's company.
Company *string `json:"company,omitempty"`
// Deleted Deletion flag. If `true` then user was deleted.
Deleted *bool `json:"deleted,omitempty"`
// Email User's email address.
Email *openapi_types.Email `json:"email,omitempty"`
// Groups User's group in the current account.
//
// IAM supports 5 groups:
//
// - Users
// - Administrators
// - Engineers
// - Purge and Prefetch only (API)
// - Purge and Prefetch only (API+Web)
Groups *[]struct {
// Id Group's ID: Possible values are: <br> <ul> <li>1 - Administrators <li>2 - Users <li>5 - Engineers <li>3009 - Purge and Prefetch only (API+Web) <li>3022 - Purge and Prefetch only (API)
Id *int `json:"id,omitempty"`
// Name Group's name.
Name *GetUsersUserId200GroupsName `json:"name,omitempty"`
} `json:"groups,omitempty"`
// Id User's ID.
Id *int `json:"id,omitempty"`
// IsActive User activity flag.
IsActive *bool `json:"is_active,omitempty"`
// Lang User's language.
//
// Defines language of the control panel and email messages.
Lang *GetUsersUserId200Lang `json:"lang,omitempty"`
// Name User's name.
Name *string `json:"name"`
// Phone User's phone.
Phone *string `json:"phone"`
// Reseller Services provider ID.
Reseller *int `json:"reseller,omitempty"`
// SsoAuth SSO authentication flag. If `true` then user can login via SAML SSO.
SsoAuth *bool `json:"sso_auth,omitempty"`
// TwoFa Two-step verification:
// - `true` β user enabled two-step verification;
// - `false` β user disabled two-step verification.
TwoFa *bool `json:"two_fa,omitempty"`
// UserType User's type.
UserType *GetUsersUserId200UserType `json:"user_type,omitempty"`
}
}
func ParseGetUsersUserIdResponse ΒΆ
func ParseGetUsersUserIdResponse(rsp *http.Response) (*GetUsersUserIdResponse, error)
ParseGetUsersUserIdResponse parses an HTTP response from a GetUsersUserIdWithResponse call
func (GetUsersUserIdResponse) Status ΒΆ
func (r GetUsersUserIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetUsersUserIdResponse) StatusCode ΒΆ
func (r GetUsersUserIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ΒΆ
Doer performs HTTP requests.
The standard http.Client implements this interface.
type PatchUsersUserId200AuthTypes ΒΆ
type PatchUsersUserId200AuthTypes string
type PatchUsersUserId200GroupsName ΒΆ
type PatchUsersUserId200GroupsName string
type PatchUsersUserId200Lang ΒΆ
type PatchUsersUserId200Lang string
type PatchUsersUserId200UserType ΒΆ
type PatchUsersUserId200UserType string
type PatchUsersUserId4000 ΒΆ
type PatchUsersUserId4001 ΒΆ
type PatchUsersUserId4001 struct {
// Message This message describes error if json schema from your request is invalid.
Message *string `json:"message,omitempty"`
}
type PatchUsersUserIdJSONBody ΒΆ
type PatchUsersUserIdJSONBody struct {
// Activated Email confirmation:
// - `true` β user confirmed the email;
// - `false` β user did not confirm the email.
Activated *bool `json:"activated,omitempty"`
// AuthTypes System field. List of auth types available for the account.
AuthTypes *[]PatchUsersUserIdJSONBodyAuthTypes `json:"auth_types,omitempty"`
// Client User's account ID.
Client *float32 `json:"client,omitempty"`
// Company User's company.
Company *string `json:"company,omitempty"`
// Deleted Deletion flag. If `true` then user was deleted.
Deleted *bool `json:"deleted,omitempty"`
// Email User's email address.
Email *openapi_types.Email `json:"email,omitempty"`
// Groups User's group in the current account.
//
// IAM supports 5 groups:
//
// - Users
// - Administrators
// - Engineers
// - Purge and Prefetch only (API)
// - Purge and Prefetch only (API+Web)
Groups *[]struct {
// Id Group's ID: Possible values are: <br> <ul> <li>1 - Administrators <li>2 - Users <li>5 - Engineers <li>3009 - Purge and Prefetch only (API+Web) <li>3022 - Purge and Prefetch only (API)
Id *int `json:"id,omitempty"`
// Name Group's name.
Name *PatchUsersUserIdJSONBodyGroupsName `json:"name,omitempty"`
} `json:"groups,omitempty"`
// Id User's ID.
Id *int `json:"id,omitempty"`
// Lang User's language.
//
// Defines language of the control panel and email messages.
Lang *PatchUsersUserIdJSONBodyLang `json:"lang,omitempty"`
// Name User's name.
Name *string `json:"name"`
// Phone User's phone.
Phone *string `json:"phone"`
// Reseller Services provider ID.
Reseller *int `json:"reseller,omitempty"`
// SsoAuth SSO authentication flag. If `true` then user can login via SAML SSO.
SsoAuth *bool `json:"sso_auth,omitempty"`
// TwoFa Two-step verification:
// - `true` β user enabled two-step verification;
// - `false` β user disabled two-step verification.
TwoFa *bool `json:"two_fa,omitempty"`
// UserType User's type.
UserType *PatchUsersUserIdJSONBodyUserType `json:"user_type,omitempty"`
}
PatchUsersUserIdJSONBody defines parameters for PatchUsersUserId.
type PatchUsersUserIdJSONBodyAuthTypes ΒΆ
type PatchUsersUserIdJSONBodyAuthTypes string
PatchUsersUserIdJSONBodyAuthTypes defines parameters for PatchUsersUserId.
const ( PatchUsersUserIdJSONBodyAuthTypesGithub PatchUsersUserIdJSONBodyAuthTypes = "github" PatchUsersUserIdJSONBodyAuthTypesGoogleOauth2 PatchUsersUserIdJSONBodyAuthTypes = "google-oauth2" PatchUsersUserIdJSONBodyAuthTypesPassword PatchUsersUserIdJSONBodyAuthTypes = "password" PatchUsersUserIdJSONBodyAuthTypesSso PatchUsersUserIdJSONBodyAuthTypes = "sso" )
Defines values for PatchUsersUserIdJSONBodyAuthTypes.
type PatchUsersUserIdJSONBodyGroupsName ΒΆ
type PatchUsersUserIdJSONBodyGroupsName string
PatchUsersUserIdJSONBodyGroupsName defines parameters for PatchUsersUserId.
const ( PatchUsersUserIdJSONBodyGroupsNameAdministrators PatchUsersUserIdJSONBodyGroupsName = "Administrators" PatchUsersUserIdJSONBodyGroupsNameEngineers PatchUsersUserIdJSONBodyGroupsName = "Engineers" PatchUsersUserIdJSONBodyGroupsNamePurgeAndPrefetchOnlyAPI PatchUsersUserIdJSONBodyGroupsName = "Purge and Prefetch only (API)" PatchUsersUserIdJSONBodyGroupsNamePurgeAndPrefetchOnlyAPIWeb PatchUsersUserIdJSONBodyGroupsName = "Purge and Prefetch only (API+Web)" PatchUsersUserIdJSONBodyGroupsNameUsers PatchUsersUserIdJSONBodyGroupsName = "Users" )
Defines values for PatchUsersUserIdJSONBodyGroupsName.
type PatchUsersUserIdJSONBodyLang ΒΆ
type PatchUsersUserIdJSONBodyLang string
PatchUsersUserIdJSONBodyLang defines parameters for PatchUsersUserId.
const ( PatchUsersUserIdJSONBodyLangAz PatchUsersUserIdJSONBodyLang = "az" PatchUsersUserIdJSONBodyLangDe PatchUsersUserIdJSONBodyLang = "de" PatchUsersUserIdJSONBodyLangEn PatchUsersUserIdJSONBodyLang = "en" PatchUsersUserIdJSONBodyLangRu PatchUsersUserIdJSONBodyLang = "ru" PatchUsersUserIdJSONBodyLangZh PatchUsersUserIdJSONBodyLang = "zh" )
Defines values for PatchUsersUserIdJSONBodyLang.
type PatchUsersUserIdJSONBodyUserType ΒΆ
type PatchUsersUserIdJSONBodyUserType string
PatchUsersUserIdJSONBodyUserType defines parameters for PatchUsersUserId.
const (
PatchUsersUserIdJSONBodyUserTypeCommon PatchUsersUserIdJSONBodyUserType = "common"
)
Defines values for PatchUsersUserIdJSONBodyUserType.
type PatchUsersUserIdJSONRequestBody ΒΆ
type PatchUsersUserIdJSONRequestBody PatchUsersUserIdJSONBody
PatchUsersUserIdJSONRequestBody defines body for PatchUsersUserId for application/json ContentType.
type PatchUsersUserIdResponse ΒΆ
type PatchUsersUserIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// Activated Email confirmation:
// - `true` β user confirmed the email;
// - `false` β user did not confirm the email.
Activated *bool `json:"activated,omitempty"`
// AuthTypes System field. List of auth types available for the account.
AuthTypes *[]PatchUsersUserId200AuthTypes `json:"auth_types,omitempty"`
// Client User's account ID.
Client *float32 `json:"client,omitempty"`
// ClientAndRoles List of user's clients. User can access to one or more clients.
ClientAndRoles *[]struct {
ClientCompanyName string `json:"client_company_name"`
ClientId int `json:"client_id"`
// UserId User's ID.
UserId int `json:"user_id"`
// UserRoles User role in this client.
UserRoles []string `json:"user_roles"`
} `json:"client_and_roles,omitempty"`
// Company User's company.
Company *string `json:"company,omitempty"`
// Deleted Deletion flag. If `true` then user was deleted.
Deleted *bool `json:"deleted,omitempty"`
// Email User's email address.
Email *openapi_types.Email `json:"email,omitempty"`
// Groups User's group in the current account.
//
// IAM supports 5 groups:
//
// - Users
// - Administrators
// - Engineers
// - Purge and Prefetch only (API)
// - Purge and Prefetch only (API+Web)
Groups *[]struct {
// Id Group's ID: Possible values are: <br> <ul> <li>1 - Administrators <li>2 - Users <li>5 - Engineers <li>3009 - Purge and Prefetch only (API+Web) <li>3022 - Purge and Prefetch only (API)
Id *int `json:"id,omitempty"`
// Name Group's name.
Name *PatchUsersUserId200GroupsName `json:"name,omitempty"`
} `json:"groups,omitempty"`
// Id User's ID.
Id *int `json:"id,omitempty"`
// IsActive User activity flag.
IsActive *bool `json:"is_active,omitempty"`
// Lang User's language.
//
// Defines language of the control panel and email messages.
Lang *PatchUsersUserId200Lang `json:"lang,omitempty"`
// Name User's name.
Name *string `json:"name"`
// Phone User's phone.
Phone *string `json:"phone"`
// Reseller Services provider ID.
Reseller *int `json:"reseller,omitempty"`
// SsoAuth SSO authentication flag. If `true` then user can login via SAML SSO.
SsoAuth *bool `json:"sso_auth,omitempty"`
// TwoFa Two-step verification:
// - `true` β user enabled two-step verification;
// - `false` β user disabled two-step verification.
TwoFa *bool `json:"two_fa,omitempty"`
// UserType User's type.
UserType *PatchUsersUserId200UserType `json:"user_type,omitempty"`
}
JSON400 *struct {
// contains filtered or unexported fields
}
}
func ParsePatchUsersUserIdResponse ΒΆ
func ParsePatchUsersUserIdResponse(rsp *http.Response) (*PatchUsersUserIdResponse, error)
ParsePatchUsersUserIdResponse parses an HTTP response from a PatchUsersUserIdWithResponse call
func (PatchUsersUserIdResponse) Status ΒΆ
func (r PatchUsersUserIdResponse) Status() string
Status returns HTTPResponse.Status
func (PatchUsersUserIdResponse) StatusCode ΒΆ
func (r PatchUsersUserIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostAuthJwtLogin4000 ΒΆ
type PostAuthJwtLogin4001 ΒΆ
type PostAuthJwtLogin4001 struct {
// Message This message describes error if json schema from your request is invalid.
Message *string `json:"message,omitempty"`
}
type PostAuthJwtLogin4002 ΒΆ
type PostAuthJwtLogin4002 struct {
// Errors Username or password is incorrect. Check you username and password and try again.
Errors *struct {
Errors *[]PostAuthJwtLogin4002ErrorsErrors `json:"errors,omitempty"`
} `json:"errors,omitempty"`
}
type PostAuthJwtLogin4002ErrorsErrors ΒΆ
type PostAuthJwtLogin4002ErrorsErrors string
type PostAuthJwtLoginJSONBody ΒΆ
type PostAuthJwtLoginJSONBody struct {
// OneTimePassword User's authenticator passcode in case of enabled 2fa.
OneTimePassword *string `json:"one_time_password,omitempty"`
// Password User's password.
Password string `json:"password"`
// Username User's email address.
Username string `json:"username"`
}
PostAuthJwtLoginJSONBody defines parameters for PostAuthJwtLogin.
type PostAuthJwtLoginJSONRequestBody ΒΆ
type PostAuthJwtLoginJSONRequestBody PostAuthJwtLoginJSONBody
PostAuthJwtLoginJSONRequestBody defines body for PostAuthJwtLogin for application/json ContentType.
type PostAuthJwtLoginResponse ΒΆ
type PostAuthJwtLoginResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// Access Use this token to access API.
Access *string `json:"access,omitempty"`
// Refresh Use this token to refresh the access token via
// [`/auth/jwt/refresh`](#tag/Account/paths/~1auth~1jwt~1refresh/post) method.
Refresh *string `json:"refresh,omitempty"`
}
JSON400 *struct {
// contains filtered or unexported fields
}
}
func ParsePostAuthJwtLoginResponse ΒΆ
func ParsePostAuthJwtLoginResponse(rsp *http.Response) (*PostAuthJwtLoginResponse, error)
ParsePostAuthJwtLoginResponse parses an HTTP response from a PostAuthJwtLoginWithResponse call
func (PostAuthJwtLoginResponse) Status ΒΆ
func (r PostAuthJwtLoginResponse) Status() string
Status returns HTTPResponse.Status
func (PostAuthJwtLoginResponse) StatusCode ΒΆ
func (r PostAuthJwtLoginResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostAuthJwtRefresh4000 ΒΆ
type PostAuthJwtRefreshJSONBody ΒΆ
type PostAuthJwtRefreshJSONBody struct {
// Refresh Use this token to refresh the access token via
// [`/auth/jwt/refresh`](#tag/Account/paths/~1auth~1jwt~1refresh/post) method.
Refresh string `json:"refresh"`
}
PostAuthJwtRefreshJSONBody defines parameters for PostAuthJwtRefresh.
type PostAuthJwtRefreshJSONRequestBody ΒΆ
type PostAuthJwtRefreshJSONRequestBody PostAuthJwtRefreshJSONBody
PostAuthJwtRefreshJSONRequestBody defines body for PostAuthJwtRefresh for application/json ContentType.
type PostAuthJwtRefreshResponse ΒΆ
type PostAuthJwtRefreshResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// Access Use this token to access API.
Access *string `json:"access,omitempty"`
// Refresh Use this token to refresh the access token via
// [`/auth/jwt/refresh`](#tag/Account/paths/~1auth~1jwt~1refresh/post) method.
Refresh *string `json:"refresh,omitempty"`
}
JSON400 *struct {
// contains filtered or unexported fields
}
}
func ParsePostAuthJwtRefreshResponse ΒΆ
func ParsePostAuthJwtRefreshResponse(rsp *http.Response) (*PostAuthJwtRefreshResponse, error)
ParsePostAuthJwtRefreshResponse parses an HTTP response from a PostAuthJwtRefreshWithResponse call
func (PostAuthJwtRefreshResponse) Status ΒΆ
func (r PostAuthJwtRefreshResponse) Status() string
Status returns HTTPResponse.Status
func (PostAuthJwtRefreshResponse) StatusCode ΒΆ
func (r PostAuthJwtRefreshResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostAuthPasswordForgotJSONBody ΒΆ
type PostAuthPasswordForgotJSONBody struct {
// Email User's email address.
Email openapi_types.Email `json:"email"`
}
PostAuthPasswordForgotJSONBody defines parameters for PostAuthPasswordForgot.
type PostAuthPasswordForgotJSONRequestBody ΒΆ
type PostAuthPasswordForgotJSONRequestBody PostAuthPasswordForgotJSONBody
PostAuthPasswordForgotJSONRequestBody defines body for PostAuthPasswordForgot for application/json ContentType.
type PostAuthPasswordForgotResponse ΒΆ
type PostAuthPasswordForgotResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *struct {
// contains filtered or unexported fields
}
}
func ParsePostAuthPasswordForgotResponse ΒΆ
func ParsePostAuthPasswordForgotResponse(rsp *http.Response) (*PostAuthPasswordForgotResponse, error)
ParsePostAuthPasswordForgotResponse parses an HTTP response from a PostAuthPasswordForgotWithResponse call
func (PostAuthPasswordForgotResponse) Status ΒΆ
func (r PostAuthPasswordForgotResponse) Status() string
Status returns HTTPResponse.Status
func (PostAuthPasswordForgotResponse) StatusCode ΒΆ
func (r PostAuthPasswordForgotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostClientsClientIdTokens4000 ΒΆ
type PostClientsClientIdTokens4000 struct {
// Errors The specified role does not exist. Please check the role name.
Errors *map[string]interface{} `json:"errors,omitempty"`
}
type PostClientsClientIdTokens4001 ΒΆ
type PostClientsClientIdTokens4001 struct {
// Errors The specified role is higher than yours. Try using another role.
Errors *map[string]interface{} `json:"errors,omitempty"`
}
type PostClientsClientIdTokensJSONBody ΒΆ
type PostClientsClientIdTokensJSONBody struct {
// ClientUser API token role.
ClientUser struct {
Role *struct {
// Id Group's ID: Possible values are: <br> <ul> <li>1 - Administrators <li>2 - Users <li>5 - Engineers <li>3009 - Purge and Prefetch only (API+Web) <li>3022 - Purge and Prefetch only (API)
Id *int `json:"id,omitempty"`
// Name Group's name.
Name *PostClientsClientIdTokensJSONBodyClientUserRoleName `json:"name,omitempty"`
} `json:"role,omitempty"`
} `json:"client_user"`
// Description API token description.
Description *string `json:"description,omitempty"`
// ExpDate Date when the API token becomes expired (ISO 8086/RFC 3339 format), UTC.
// If null, then the API token will never expire.
ExpDate *string `json:"exp_date"`
// Name API token name.
Name string `json:"name"`
}
PostClientsClientIdTokensJSONBody defines parameters for PostClientsClientIdTokens.
type PostClientsClientIdTokensJSONBodyClientUserRoleName ΒΆ
type PostClientsClientIdTokensJSONBodyClientUserRoleName string
PostClientsClientIdTokensJSONBodyClientUserRoleName defines parameters for PostClientsClientIdTokens.
const ( PostClientsClientIdTokensJSONBodyClientUserRoleNameAdministrators PostClientsClientIdTokensJSONBodyClientUserRoleName = "Administrators" PostClientsClientIdTokensJSONBodyClientUserRoleNameEngineers PostClientsClientIdTokensJSONBodyClientUserRoleName = "Engineers" PostClientsClientIdTokensJSONBodyClientUserRoleNamePurgeAndPrefetchOnlyAPI PostClientsClientIdTokensJSONBodyClientUserRoleName = "Purge and Prefetch only (API)" PostClientsClientIdTokensJSONBodyClientUserRoleNamePurgeAndPrefetchOnlyAPIWeb PostClientsClientIdTokensJSONBodyClientUserRoleName = "Purge and Prefetch only (API+Web)" PostClientsClientIdTokensJSONBodyClientUserRoleNameUsers PostClientsClientIdTokensJSONBodyClientUserRoleName = "Users" )
Defines values for PostClientsClientIdTokensJSONBodyClientUserRoleName.
type PostClientsClientIdTokensJSONRequestBody ΒΆ
type PostClientsClientIdTokensJSONRequestBody PostClientsClientIdTokensJSONBody
PostClientsClientIdTokensJSONRequestBody defines body for PostClientsClientIdTokens for application/json ContentType.
type PostClientsClientIdTokensResponse ΒΆ
type PostClientsClientIdTokensResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// Token API token.
// Copy it, because you will not be able to get it again.
// We do not store tokens. All responsibility for token storage and usage is on the issuer.
Token *string `json:"token,omitempty"`
}
JSON400 *struct {
// contains filtered or unexported fields
}
}
func ParsePostClientsClientIdTokensResponse ΒΆ
func ParsePostClientsClientIdTokensResponse(rsp *http.Response) (*PostClientsClientIdTokensResponse, error)
ParsePostClientsClientIdTokensResponse parses an HTTP response from a PostClientsClientIdTokensWithResponse call
func (PostClientsClientIdTokensResponse) Status ΒΆ
func (r PostClientsClientIdTokensResponse) Status() string
Status returns HTTPResponse.Status
func (PostClientsClientIdTokensResponse) StatusCode ΒΆ
func (r PostClientsClientIdTokensResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostClientsCreate4000 ΒΆ
type PostClientsCreateJSONBody ΒΆ
type PostClientsCreateJSONBody struct {
// Company The company name.
Company string `json:"company"`
// Id The ID of the created account.
Id *int `json:"id,omitempty"`
}
PostClientsCreateJSONBody defines parameters for PostClientsCreate.
type PostClientsCreateJSONRequestBody ΒΆ
type PostClientsCreateJSONRequestBody PostClientsCreateJSONBody
PostClientsCreateJSONRequestBody defines body for PostClientsCreate for application/json ContentType.
type PostClientsCreateResponse ΒΆ
type PostClientsCreateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *struct {
// Company The company name.
Company string `json:"company"`
// Id The ID of the created account.
Id *int `json:"id,omitempty"`
}
JSON400 *struct {
// contains filtered or unexported fields
}
}
func ParsePostClientsCreateResponse ΒΆ
func ParsePostClientsCreateResponse(rsp *http.Response) (*PostClientsCreateResponse, error)
ParsePostClientsCreateResponse parses an HTTP response from a PostClientsCreateWithResponse call
func (PostClientsCreateResponse) Status ΒΆ
func (r PostClientsCreateResponse) Status() string
Status returns HTTPResponse.Status
func (PostClientsCreateResponse) StatusCode ΒΆ
func (r PostClientsCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostClientsInviteUserJSONBody ΒΆ
type PostClientsInviteUserJSONBody struct {
// ClientId ID of account.
ClientId int `json:"client_id"`
// Email User email.
Email openapi_types.Email `json:"email"`
// Lang User's language.
//
// Defines language of the control panel and email messages.
Lang *PostClientsInviteUserJSONBodyLang `json:"lang,omitempty"`
// Name User name.
Name *string `json:"name,omitempty"`
UserRole struct {
// Id Group's ID: Possible values are: <br> <ul> <li>1 - Administrators <li>2 - Users <li>5 - Engineers <li>3009 - Purge and Prefetch only (API+Web) <li>3022 - Purge and Prefetch only (API)
Id *int `json:"id,omitempty"`
// Name Group's name.
Name *PostClientsInviteUserJSONBodyUserRoleName `json:"name,omitempty"`
} `json:"user_role"`
}
PostClientsInviteUserJSONBody defines parameters for PostClientsInviteUser.
type PostClientsInviteUserJSONBodyLang ΒΆ
type PostClientsInviteUserJSONBodyLang string
PostClientsInviteUserJSONBodyLang defines parameters for PostClientsInviteUser.
const ( PostClientsInviteUserJSONBodyLangAz PostClientsInviteUserJSONBodyLang = "az" PostClientsInviteUserJSONBodyLangDe PostClientsInviteUserJSONBodyLang = "de" PostClientsInviteUserJSONBodyLangEn PostClientsInviteUserJSONBodyLang = "en" PostClientsInviteUserJSONBodyLangRu PostClientsInviteUserJSONBodyLang = "ru" PostClientsInviteUserJSONBodyLangZh PostClientsInviteUserJSONBodyLang = "zh" )
Defines values for PostClientsInviteUserJSONBodyLang.
type PostClientsInviteUserJSONBodyUserRoleName ΒΆ
type PostClientsInviteUserJSONBodyUserRoleName string
PostClientsInviteUserJSONBodyUserRoleName defines parameters for PostClientsInviteUser.
const ( PostClientsInviteUserJSONBodyUserRoleNameAdministrators PostClientsInviteUserJSONBodyUserRoleName = "Administrators" PostClientsInviteUserJSONBodyUserRoleNameEngineers PostClientsInviteUserJSONBodyUserRoleName = "Engineers" PostClientsInviteUserJSONBodyUserRoleNamePurgeAndPrefetchOnlyAPI PostClientsInviteUserJSONBodyUserRoleName = "Purge and Prefetch only (API)" PostClientsInviteUserJSONBodyUserRoleNamePurgeAndPrefetchOnlyAPIWeb PostClientsInviteUserJSONBodyUserRoleName = "Purge and Prefetch only (API+Web)" PostClientsInviteUserJSONBodyUserRoleNameUsers PostClientsInviteUserJSONBodyUserRoleName = "Users" )
Defines values for PostClientsInviteUserJSONBodyUserRoleName.
type PostClientsInviteUserJSONRequestBody ΒΆ
type PostClientsInviteUserJSONRequestBody PostClientsInviteUserJSONBody
PostClientsInviteUserJSONRequestBody defines body for PostClientsInviteUser for application/json ContentType.
type PostClientsInviteUserResponse ΒΆ
type PostClientsInviteUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// Status Status of the invitation.
Status *string `json:"status,omitempty"`
// UserId Invited user ID.
UserId *int `json:"user_id,omitempty"`
}
JSON400 *struct {
// contains filtered or unexported fields
}
}
func ParsePostClientsInviteUserResponse ΒΆ
func ParsePostClientsInviteUserResponse(rsp *http.Response) (*PostClientsInviteUserResponse, error)
ParsePostClientsInviteUserResponse parses an HTTP response from a PostClientsInviteUserWithResponse call
func (PostClientsInviteUserResponse) Status ΒΆ
func (r PostClientsInviteUserResponse) Status() string
Status returns HTTPResponse.Status
func (PostClientsInviteUserResponse) StatusCode ΒΆ
func (r PostClientsInviteUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutClientsClientIdClientUsersUserIdJSONBody ΒΆ
type PutClientsClientIdClientUsersUserIdJSONBody struct {
UserRole *struct {
// Id Group's ID: Possible values are: <br> <ul> <li>1 - Administrators <li>2 - Users <li>5 - Engineers <li>3009 - Purge and Prefetch only (API+Web) <li>3022 - Purge and Prefetch only (API)
Id *int `json:"id,omitempty"`
// Name Group's name.
Name *PutClientsClientIdClientUsersUserIdJSONBodyUserRoleName `json:"name,omitempty"`
} `json:"user_role,omitempty"`
}
PutClientsClientIdClientUsersUserIdJSONBody defines parameters for PutClientsClientIdClientUsersUserId.
type PutClientsClientIdClientUsersUserIdJSONBodyUserRoleName ΒΆ
type PutClientsClientIdClientUsersUserIdJSONBodyUserRoleName string
PutClientsClientIdClientUsersUserIdJSONBodyUserRoleName defines parameters for PutClientsClientIdClientUsersUserId.
const ( PutClientsClientIdClientUsersUserIdJSONBodyUserRoleNameAdministrators PutClientsClientIdClientUsersUserIdJSONBodyUserRoleName = "Administrators" PutClientsClientIdClientUsersUserIdJSONBodyUserRoleNameEngineers PutClientsClientIdClientUsersUserIdJSONBodyUserRoleName = "Engineers" PutClientsClientIdClientUsersUserIdJSONBodyUserRoleNamePurgeAndPrefetchOnlyAPI PutClientsClientIdClientUsersUserIdJSONBodyUserRoleName = "Purge and Prefetch only (API)" PutClientsClientIdClientUsersUserIdJSONBodyUserRoleNamePurgeAndPrefetchOnlyAPIWeb PutClientsClientIdClientUsersUserIdJSONBodyUserRoleName = "Purge and Prefetch only (API+Web)" PutClientsClientIdClientUsersUserIdJSONBodyUserRoleNameUsers PutClientsClientIdClientUsersUserIdJSONBodyUserRoleName = "Users" )
Defines values for PutClientsClientIdClientUsersUserIdJSONBodyUserRoleName.
type PutClientsClientIdClientUsersUserIdJSONRequestBody ΒΆ
type PutClientsClientIdClientUsersUserIdJSONRequestBody PutClientsClientIdClientUsersUserIdJSONBody
PutClientsClientIdClientUsersUserIdJSONRequestBody defines body for PutClientsClientIdClientUsersUserId for application/json ContentType.
type PutClientsClientIdClientUsersUserIdResponse ΒΆ
type PutClientsClientIdClientUsersUserIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *struct {
// Errors This object contains error descriptions per field from your request.
Errors *struct {
// PropertyName Error list for a specific field.
PropertyName *[]string `json:"property_name,omitempty"`
} `json:"errors,omitempty"`
}
}
func ParsePutClientsClientIdClientUsersUserIdResponse ΒΆ
func ParsePutClientsClientIdClientUsersUserIdResponse(rsp *http.Response) (*PutClientsClientIdClientUsersUserIdResponse, error)
ParsePutClientsClientIdClientUsersUserIdResponse parses an HTTP response from a PutClientsClientIdClientUsersUserIdWithResponse call
func (PutClientsClientIdClientUsersUserIdResponse) Status ΒΆ
func (r PutClientsClientIdClientUsersUserIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutClientsClientIdClientUsersUserIdResponse) StatusCode ΒΆ
func (r PutClientsClientIdClientUsersUserIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutUsersUserIdEmail4000 ΒΆ
type PutUsersUserIdEmail4000 = []struct {
Errors *struct {
// NewEmail Same email address.
NewEmail *string `json:"new_email,omitempty"`
} `json:"errors,omitempty"`
}
type PutUsersUserIdEmail4001 ΒΆ
type PutUsersUserIdEmail4001 = []struct {
Errors *struct {
// NewEmail Enter a valid email address
NewEmail *string `json:"new_email,omitempty"`
} `json:"errors,omitempty"`
}
type PutUsersUserIdEmail4002 ΒΆ
type PutUsersUserIdEmail4002 = []struct {
Errors *struct {
// NewEmail Client with email {new_email} already exists.
NewEmail *string `json:"new_email,omitempty"`
} `json:"errors,omitempty"`
}
type PutUsersUserIdEmail4003 ΒΆ
type PutUsersUserIdEmail4003 = []struct {
Errors *struct {
// Password Password is incorrect.
Password *string `json:"password,omitempty"`
} `json:"errors,omitempty"`
}
type PutUsersUserIdEmailJSONBody ΒΆ
type PutUsersUserIdEmailJSONBody struct {
// NewEmail User's new email.
NewEmail string `json:"new_email"`
// Password User's password for approve.
Password string `json:"password"`
}
PutUsersUserIdEmailJSONBody defines parameters for PutUsersUserIdEmail.
type PutUsersUserIdEmailJSONRequestBody ΒΆ
type PutUsersUserIdEmailJSONRequestBody PutUsersUserIdEmailJSONBody
PutUsersUserIdEmailJSONRequestBody defines body for PutUsersUserIdEmail for application/json ContentType.
type PutUsersUserIdEmailResponse ΒΆ
type PutUsersUserIdEmailResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// NewEmail User's new email.
NewEmail *string `json:"new_email,omitempty"`
}
JSON400 *struct {
// contains filtered or unexported fields
}
}
func ParsePutUsersUserIdEmailResponse ΒΆ
func ParsePutUsersUserIdEmailResponse(rsp *http.Response) (*PutUsersUserIdEmailResponse, error)
ParsePutUsersUserIdEmailResponse parses an HTTP response from a PutUsersUserIdEmailWithResponse call
func (PutUsersUserIdEmailResponse) Status ΒΆ
func (r PutUsersUserIdEmailResponse) Status() string
Status returns HTTPResponse.Status
func (PutUsersUserIdEmailResponse) StatusCode ΒΆ
func (r PutUsersUserIdEmailResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutUsersUserIdPasswordJSONBody ΒΆ
type PutUsersUserIdPasswordJSONBody struct {
// Double Confirm your new password.
Double string `json:"double"`
// New Your new password.
New string `json:"new"`
// Old Your old password.
Old string `json:"old"`
}
PutUsersUserIdPasswordJSONBody defines parameters for PutUsersUserIdPassword.
type PutUsersUserIdPasswordJSONRequestBody ΒΆ
type PutUsersUserIdPasswordJSONRequestBody PutUsersUserIdPasswordJSONBody
PutUsersUserIdPasswordJSONRequestBody defines body for PutUsersUserIdPassword for application/json ContentType.
type PutUsersUserIdPasswordResponse ΒΆ
type PutUsersUserIdPasswordResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// Access Use this token to access API.
Access *string `json:"access,omitempty"`
// Refresh Use this token to refresh the access token via
// [`/auth/jwt/refresh`](#tag/Account/paths/~1auth~1jwt~1refresh/post) method.
Refresh *string `json:"refresh,omitempty"`
}
JSON400 *struct {
// contains filtered or unexported fields
}
}
func ParsePutUsersUserIdPasswordResponse ΒΆ
func ParsePutUsersUserIdPasswordResponse(rsp *http.Response) (*PutUsersUserIdPasswordResponse, error)
ParsePutUsersUserIdPasswordResponse parses an HTTP response from a PutUsersUserIdPasswordWithResponse call
func (PutUsersUserIdPasswordResponse) Status ΒΆ
func (r PutUsersUserIdPasswordResponse) Status() string
Status returns HTTPResponse.Status
func (PutUsersUserIdPasswordResponse) StatusCode ΒΆ
func (r PutUsersUserIdPasswordResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode