Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateRootUser(params *CreateRootUserParams, opts ...ClientOption) (*CreateRootUserOK, error)
- func (a *Client) CreateUser(params *CreateUserParams, opts ...ClientOption) (*CreateUserOK, error)
- func (a *Client) DeleteUser(params *DeleteUserParams, opts ...ClientOption) (*DeleteUserOK, error)
- func (a *Client) GetMyInfo(params *GetMyInfoParams, opts ...ClientOption) (*GetMyInfoOK, error)
- func (a *Client) GetUsers(params *GetUsersParams, opts ...ClientOption) (*GetUsersOK, error)
- func (a *Client) GetUsersConnection(params *GetUsersConnectionParams, opts ...ClientOption) (*GetUsersConnectionOK, error)
- func (a *Client) Login(params *LoginParams, opts ...ClientOption) (*LoginOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateUser(params *UpdateUserParams, opts ...ClientOption) (*UpdateUserOK, error)
- type ClientOption
- type ClientService
- type CreateRootUserBadRequest
- type CreateRootUserInternalServerError
- type CreateRootUserNotFound
- type CreateRootUserOK
- type CreateRootUserParams
- func NewCreateRootUserParams() *CreateRootUserParams
- func NewCreateRootUserParamsWithContext(ctx context.Context) *CreateRootUserParams
- func NewCreateRootUserParamsWithHTTPClient(client *http.Client) *CreateRootUserParams
- func NewCreateRootUserParamsWithTimeout(timeout time.Duration) *CreateRootUserParams
- func (o *CreateRootUserParams) SetContentLanguage(contentLanguage *string)
- func (o *CreateRootUserParams) SetContext(ctx context.Context)
- func (o *CreateRootUserParams) SetDefaults()
- func (o *CreateRootUserParams) SetHTTPClient(client *http.Client)
- func (o *CreateRootUserParams) SetRequestBody(requestBody *models.RootUserCreationParams)
- func (o *CreateRootUserParams) SetTimeout(timeout time.Duration)
- func (o *CreateRootUserParams) WithContentLanguage(contentLanguage *string) *CreateRootUserParams
- func (o *CreateRootUserParams) WithContext(ctx context.Context) *CreateRootUserParams
- func (o *CreateRootUserParams) WithDefaults() *CreateRootUserParams
- func (o *CreateRootUserParams) WithHTTPClient(client *http.Client) *CreateRootUserParams
- func (o *CreateRootUserParams) WithRequestBody(requestBody *models.RootUserCreationParams) *CreateRootUserParams
- func (o *CreateRootUserParams) WithTimeout(timeout time.Duration) *CreateRootUserParams
- func (o *CreateRootUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateRootUserReader
- type CreateUserBadRequest
- type CreateUserInternalServerError
- type CreateUserNotFound
- type CreateUserOK
- type CreateUserParams
- func (o *CreateUserParams) SetContentLanguage(contentLanguage *string)
- func (o *CreateUserParams) SetContext(ctx context.Context)
- func (o *CreateUserParams) SetDefaults()
- func (o *CreateUserParams) SetHTTPClient(client *http.Client)
- func (o *CreateUserParams) SetRequestBody(requestBody []*models.UserCreationParams)
- func (o *CreateUserParams) SetTimeout(timeout time.Duration)
- func (o *CreateUserParams) WithContentLanguage(contentLanguage *string) *CreateUserParams
- func (o *CreateUserParams) WithContext(ctx context.Context) *CreateUserParams
- func (o *CreateUserParams) WithDefaults() *CreateUserParams
- func (o *CreateUserParams) WithHTTPClient(client *http.Client) *CreateUserParams
- func (o *CreateUserParams) WithRequestBody(requestBody []*models.UserCreationParams) *CreateUserParams
- func (o *CreateUserParams) WithTimeout(timeout time.Duration) *CreateUserParams
- func (o *CreateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateUserReader
- type DeleteUserBadRequest
- type DeleteUserInternalServerError
- type DeleteUserNotFound
- type DeleteUserOK
- type DeleteUserParams
- func (o *DeleteUserParams) SetContentLanguage(contentLanguage *string)
- func (o *DeleteUserParams) SetContext(ctx context.Context)
- func (o *DeleteUserParams) SetDefaults()
- func (o *DeleteUserParams) SetHTTPClient(client *http.Client)
- func (o *DeleteUserParams) SetRequestBody(requestBody *models.UserDeletionParams)
- func (o *DeleteUserParams) SetTimeout(timeout time.Duration)
- func (o *DeleteUserParams) WithContentLanguage(contentLanguage *string) *DeleteUserParams
- func (o *DeleteUserParams) WithContext(ctx context.Context) *DeleteUserParams
- func (o *DeleteUserParams) WithDefaults() *DeleteUserParams
- func (o *DeleteUserParams) WithHTTPClient(client *http.Client) *DeleteUserParams
- func (o *DeleteUserParams) WithRequestBody(requestBody *models.UserDeletionParams) *DeleteUserParams
- func (o *DeleteUserParams) WithTimeout(timeout time.Duration) *DeleteUserParams
- func (o *DeleteUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteUserReader
- type GetMyInfoBadRequest
- type GetMyInfoInternalServerError
- type GetMyInfoNotFound
- type GetMyInfoOK
- type GetMyInfoParams
- func (o *GetMyInfoParams) SetContext(ctx context.Context)
- func (o *GetMyInfoParams) SetDefaults()
- func (o *GetMyInfoParams) SetHTTPClient(client *http.Client)
- func (o *GetMyInfoParams) SetTimeout(timeout time.Duration)
- func (o *GetMyInfoParams) WithContext(ctx context.Context) *GetMyInfoParams
- func (o *GetMyInfoParams) WithDefaults() *GetMyInfoParams
- func (o *GetMyInfoParams) WithHTTPClient(client *http.Client) *GetMyInfoParams
- func (o *GetMyInfoParams) WithTimeout(timeout time.Duration) *GetMyInfoParams
- func (o *GetMyInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMyInfoReader
- type GetUsersBadRequest
- type GetUsersConnectionBadRequest
- type GetUsersConnectionInternalServerError
- type GetUsersConnectionNotFound
- type GetUsersConnectionOK
- type GetUsersConnectionParams
- func NewGetUsersConnectionParams() *GetUsersConnectionParams
- func NewGetUsersConnectionParamsWithContext(ctx context.Context) *GetUsersConnectionParams
- func NewGetUsersConnectionParamsWithHTTPClient(client *http.Client) *GetUsersConnectionParams
- func NewGetUsersConnectionParamsWithTimeout(timeout time.Duration) *GetUsersConnectionParams
- func (o *GetUsersConnectionParams) SetContentLanguage(contentLanguage *string)
- func (o *GetUsersConnectionParams) SetContext(ctx context.Context)
- func (o *GetUsersConnectionParams) SetDefaults()
- func (o *GetUsersConnectionParams) SetHTTPClient(client *http.Client)
- func (o *GetUsersConnectionParams) SetRequestBody(requestBody *models.GetUsersConnectionRequestBody)
- func (o *GetUsersConnectionParams) SetTimeout(timeout time.Duration)
- func (o *GetUsersConnectionParams) WithContentLanguage(contentLanguage *string) *GetUsersConnectionParams
- func (o *GetUsersConnectionParams) WithContext(ctx context.Context) *GetUsersConnectionParams
- func (o *GetUsersConnectionParams) WithDefaults() *GetUsersConnectionParams
- func (o *GetUsersConnectionParams) WithHTTPClient(client *http.Client) *GetUsersConnectionParams
- func (o *GetUsersConnectionParams) WithRequestBody(requestBody *models.GetUsersConnectionRequestBody) *GetUsersConnectionParams
- func (o *GetUsersConnectionParams) WithTimeout(timeout time.Duration) *GetUsersConnectionParams
- func (o *GetUsersConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUsersConnectionReader
- type GetUsersInternalServerError
- type GetUsersNotFound
- type GetUsersOK
- type GetUsersParams
- func (o *GetUsersParams) SetContentLanguage(contentLanguage *string)
- func (o *GetUsersParams) SetContext(ctx context.Context)
- func (o *GetUsersParams) SetDefaults()
- func (o *GetUsersParams) SetHTTPClient(client *http.Client)
- func (o *GetUsersParams) SetRequestBody(requestBody *models.GetUsersRequestBody)
- func (o *GetUsersParams) SetTimeout(timeout time.Duration)
- func (o *GetUsersParams) WithContentLanguage(contentLanguage *string) *GetUsersParams
- func (o *GetUsersParams) WithContext(ctx context.Context) *GetUsersParams
- func (o *GetUsersParams) WithDefaults() *GetUsersParams
- func (o *GetUsersParams) WithHTTPClient(client *http.Client) *GetUsersParams
- func (o *GetUsersParams) WithRequestBody(requestBody *models.GetUsersRequestBody) *GetUsersParams
- func (o *GetUsersParams) WithTimeout(timeout time.Duration) *GetUsersParams
- func (o *GetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUsersReader
- type LoginBadRequest
- type LoginInternalServerError
- type LoginNotFound
- type LoginOK
- type LoginParams
- func (o *LoginParams) SetContentLanguage(contentLanguage *string)
- func (o *LoginParams) SetContext(ctx context.Context)
- func (o *LoginParams) SetDefaults()
- func (o *LoginParams) SetHTTPClient(client *http.Client)
- func (o *LoginParams) SetRequestBody(requestBody *models.LoginInput)
- func (o *LoginParams) SetTimeout(timeout time.Duration)
- func (o *LoginParams) WithContentLanguage(contentLanguage *string) *LoginParams
- func (o *LoginParams) WithContext(ctx context.Context) *LoginParams
- func (o *LoginParams) WithDefaults() *LoginParams
- func (o *LoginParams) WithHTTPClient(client *http.Client) *LoginParams
- func (o *LoginParams) WithRequestBody(requestBody *models.LoginInput) *LoginParams
- func (o *LoginParams) WithTimeout(timeout time.Duration) *LoginParams
- func (o *LoginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LoginReader
- type UpdateUserBadRequest
- type UpdateUserInternalServerError
- type UpdateUserNotFound
- type UpdateUserOK
- type UpdateUserParams
- func (o *UpdateUserParams) SetContentLanguage(contentLanguage *string)
- func (o *UpdateUserParams) SetContext(ctx context.Context)
- func (o *UpdateUserParams) SetDefaults()
- func (o *UpdateUserParams) SetHTTPClient(client *http.Client)
- func (o *UpdateUserParams) SetRequestBody(requestBody *models.UserUpdationParams)
- func (o *UpdateUserParams) SetTimeout(timeout time.Duration)
- func (o *UpdateUserParams) WithContentLanguage(contentLanguage *string) *UpdateUserParams
- func (o *UpdateUserParams) WithContext(ctx context.Context) *UpdateUserParams
- func (o *UpdateUserParams) WithDefaults() *UpdateUserParams
- func (o *UpdateUserParams) WithHTTPClient(client *http.Client) *UpdateUserParams
- func (o *UpdateUserParams) WithRequestBody(requestBody *models.UserUpdationParams) *UpdateUserParams
- func (o *UpdateUserParams) WithTimeout(timeout time.Duration) *UpdateUserParams
- func (o *UpdateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateUserReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for user API
func (*Client) CreateRootUser ¶
func (a *Client) CreateRootUser(params *CreateRootUserParams, opts ...ClientOption) (*CreateRootUserOK, error)
CreateRootUser create root user API
func (*Client) CreateUser ¶
func (a *Client) CreateUser(params *CreateUserParams, opts ...ClientOption) (*CreateUserOK, error)
CreateUser create user API
func (*Client) DeleteUser ¶
func (a *Client) DeleteUser(params *DeleteUserParams, opts ...ClientOption) (*DeleteUserOK, error)
DeleteUser delete user API
func (*Client) GetMyInfo ¶ added in v2.3.0
func (a *Client) GetMyInfo(params *GetMyInfoParams, opts ...ClientOption) (*GetMyInfoOK, error)
GetMyInfo get my info API
func (*Client) GetUsers ¶
func (a *Client) GetUsers(params *GetUsersParams, opts ...ClientOption) (*GetUsersOK, error)
GetUsers get users API
func (*Client) GetUsersConnection ¶
func (a *Client) GetUsersConnection(params *GetUsersConnectionParams, opts ...ClientOption) (*GetUsersConnectionOK, error)
GetUsersConnection get users connection API
func (*Client) Login ¶
func (a *Client) Login(params *LoginParams, opts ...ClientOption) (*LoginOK, error)
Login login API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateUser ¶
func (a *Client) UpdateUser(params *UpdateUserParams, opts ...ClientOption) (*UpdateUserOK, error)
UpdateUser update user API
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateRootUser(params *CreateRootUserParams, opts ...ClientOption) (*CreateRootUserOK, error) CreateUser(params *CreateUserParams, opts ...ClientOption) (*CreateUserOK, error) DeleteUser(params *DeleteUserParams, opts ...ClientOption) (*DeleteUserOK, error) GetMyInfo(params *GetMyInfoParams, opts ...ClientOption) (*GetMyInfoOK, error) GetUsers(params *GetUsersParams, opts ...ClientOption) (*GetUsersOK, error) GetUsersConnection(params *GetUsersConnectionParams, opts ...ClientOption) (*GetUsersConnectionOK, error) Login(params *LoginParams, opts ...ClientOption) (*LoginOK, error) UpdateUser(params *UpdateUserParams, opts ...ClientOption) (*UpdateUserOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new user API client.
type CreateRootUserBadRequest ¶
CreateRootUserBadRequest describes a response with status code 400, with default header values.
Bad request
func NewCreateRootUserBadRequest ¶
func NewCreateRootUserBadRequest() *CreateRootUserBadRequest
NewCreateRootUserBadRequest creates a CreateRootUserBadRequest with default headers values
func (*CreateRootUserBadRequest) Error ¶
func (o *CreateRootUserBadRequest) Error() string
func (*CreateRootUserBadRequest) GetPayload ¶
func (o *CreateRootUserBadRequest) GetPayload() *models.ErrorBody
type CreateRootUserInternalServerError ¶
CreateRootUserInternalServerError describes a response with status code 500, with default header values.
Server error
func NewCreateRootUserInternalServerError ¶
func NewCreateRootUserInternalServerError() *CreateRootUserInternalServerError
NewCreateRootUserInternalServerError creates a CreateRootUserInternalServerError with default headers values
func (*CreateRootUserInternalServerError) Error ¶
func (o *CreateRootUserInternalServerError) Error() string
func (*CreateRootUserInternalServerError) GetPayload ¶
func (o *CreateRootUserInternalServerError) GetPayload() *models.ErrorBody
type CreateRootUserNotFound ¶
CreateRootUserNotFound describes a response with status code 404, with default header values.
Not found
func NewCreateRootUserNotFound ¶
func NewCreateRootUserNotFound() *CreateRootUserNotFound
NewCreateRootUserNotFound creates a CreateRootUserNotFound with default headers values
func (*CreateRootUserNotFound) Error ¶
func (o *CreateRootUserNotFound) Error() string
func (*CreateRootUserNotFound) GetPayload ¶
func (o *CreateRootUserNotFound) GetPayload() *models.ErrorBody
type CreateRootUserOK ¶
type CreateRootUserOK struct { XTowerRequestID string Payload *models.WithTaskUser }
CreateRootUserOK describes a response with status code 200, with default header values.
CreateRootUserOK create root user o k
func NewCreateRootUserOK ¶
func NewCreateRootUserOK() *CreateRootUserOK
NewCreateRootUserOK creates a CreateRootUserOK with default headers values
func (*CreateRootUserOK) Error ¶
func (o *CreateRootUserOK) Error() string
func (*CreateRootUserOK) GetPayload ¶
func (o *CreateRootUserOK) GetPayload() *models.WithTaskUser
type CreateRootUserParams ¶
type CreateRootUserParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.RootUserCreationParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateRootUserParams contains all the parameters to send to the API endpoint
for the create root user operation. Typically these are written to a http.Request.
func NewCreateRootUserParams ¶
func NewCreateRootUserParams() *CreateRootUserParams
NewCreateRootUserParams creates a new CreateRootUserParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCreateRootUserParamsWithContext ¶
func NewCreateRootUserParamsWithContext(ctx context.Context) *CreateRootUserParams
NewCreateRootUserParamsWithContext creates a new CreateRootUserParams object with the ability to set a context for a request.
func NewCreateRootUserParamsWithHTTPClient ¶
func NewCreateRootUserParamsWithHTTPClient(client *http.Client) *CreateRootUserParams
NewCreateRootUserParamsWithHTTPClient creates a new CreateRootUserParams object with the ability to set a custom HTTPClient for a request.
func NewCreateRootUserParamsWithTimeout ¶
func NewCreateRootUserParamsWithTimeout(timeout time.Duration) *CreateRootUserParams
NewCreateRootUserParamsWithTimeout creates a new CreateRootUserParams object with the ability to set a timeout on a request.
func (*CreateRootUserParams) SetContentLanguage ¶
func (o *CreateRootUserParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the create root user params
func (*CreateRootUserParams) SetContext ¶
func (o *CreateRootUserParams) SetContext(ctx context.Context)
SetContext adds the context to the create root user params
func (*CreateRootUserParams) SetDefaults ¶
func (o *CreateRootUserParams) SetDefaults()
SetDefaults hydrates default values in the create root user params (not the query body).
All values with no default are reset to their zero value.
func (*CreateRootUserParams) SetHTTPClient ¶
func (o *CreateRootUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create root user params
func (*CreateRootUserParams) SetRequestBody ¶
func (o *CreateRootUserParams) SetRequestBody(requestBody *models.RootUserCreationParams)
SetRequestBody adds the requestBody to the create root user params
func (*CreateRootUserParams) SetTimeout ¶
func (o *CreateRootUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create root user params
func (*CreateRootUserParams) WithContentLanguage ¶
func (o *CreateRootUserParams) WithContentLanguage(contentLanguage *string) *CreateRootUserParams
WithContentLanguage adds the contentLanguage to the create root user params
func (*CreateRootUserParams) WithContext ¶
func (o *CreateRootUserParams) WithContext(ctx context.Context) *CreateRootUserParams
WithContext adds the context to the create root user params
func (*CreateRootUserParams) WithDefaults ¶
func (o *CreateRootUserParams) WithDefaults() *CreateRootUserParams
WithDefaults hydrates default values in the create root user params (not the query body).
All values with no default are reset to their zero value.
func (*CreateRootUserParams) WithHTTPClient ¶
func (o *CreateRootUserParams) WithHTTPClient(client *http.Client) *CreateRootUserParams
WithHTTPClient adds the HTTPClient to the create root user params
func (*CreateRootUserParams) WithRequestBody ¶
func (o *CreateRootUserParams) WithRequestBody(requestBody *models.RootUserCreationParams) *CreateRootUserParams
WithRequestBody adds the requestBody to the create root user params
func (*CreateRootUserParams) WithTimeout ¶
func (o *CreateRootUserParams) WithTimeout(timeout time.Duration) *CreateRootUserParams
WithTimeout adds the timeout to the create root user params
func (*CreateRootUserParams) WriteToRequest ¶
func (o *CreateRootUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateRootUserReader ¶
type CreateRootUserReader struct {
// contains filtered or unexported fields
}
CreateRootUserReader is a Reader for the CreateRootUser structure.
func (*CreateRootUserReader) ReadResponse ¶
func (o *CreateRootUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateUserBadRequest ¶
CreateUserBadRequest describes a response with status code 400, with default header values.
Bad request
func NewCreateUserBadRequest ¶
func NewCreateUserBadRequest() *CreateUserBadRequest
NewCreateUserBadRequest creates a CreateUserBadRequest with default headers values
func (*CreateUserBadRequest) Error ¶
func (o *CreateUserBadRequest) Error() string
func (*CreateUserBadRequest) GetPayload ¶
func (o *CreateUserBadRequest) GetPayload() *models.ErrorBody
type CreateUserInternalServerError ¶
CreateUserInternalServerError describes a response with status code 500, with default header values.
Server error
func NewCreateUserInternalServerError ¶
func NewCreateUserInternalServerError() *CreateUserInternalServerError
NewCreateUserInternalServerError creates a CreateUserInternalServerError with default headers values
func (*CreateUserInternalServerError) Error ¶
func (o *CreateUserInternalServerError) Error() string
func (*CreateUserInternalServerError) GetPayload ¶
func (o *CreateUserInternalServerError) GetPayload() *models.ErrorBody
type CreateUserNotFound ¶
CreateUserNotFound describes a response with status code 404, with default header values.
Not found
func NewCreateUserNotFound ¶
func NewCreateUserNotFound() *CreateUserNotFound
NewCreateUserNotFound creates a CreateUserNotFound with default headers values
func (*CreateUserNotFound) Error ¶
func (o *CreateUserNotFound) Error() string
func (*CreateUserNotFound) GetPayload ¶
func (o *CreateUserNotFound) GetPayload() *models.ErrorBody
type CreateUserOK ¶
type CreateUserOK struct { XTowerRequestID string Payload []*models.WithTaskUser }
CreateUserOK describes a response with status code 200, with default header values.
CreateUserOK create user o k
func NewCreateUserOK ¶
func NewCreateUserOK() *CreateUserOK
NewCreateUserOK creates a CreateUserOK with default headers values
func (*CreateUserOK) Error ¶
func (o *CreateUserOK) Error() string
func (*CreateUserOK) GetPayload ¶
func (o *CreateUserOK) GetPayload() []*models.WithTaskUser
type CreateUserParams ¶
type CreateUserParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody []*models.UserCreationParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateUserParams contains all the parameters to send to the API endpoint
for the create user operation. Typically these are written to a http.Request.
func NewCreateUserParams ¶
func NewCreateUserParams() *CreateUserParams
NewCreateUserParams creates a new CreateUserParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCreateUserParamsWithContext ¶
func NewCreateUserParamsWithContext(ctx context.Context) *CreateUserParams
NewCreateUserParamsWithContext creates a new CreateUserParams object with the ability to set a context for a request.
func NewCreateUserParamsWithHTTPClient ¶
func NewCreateUserParamsWithHTTPClient(client *http.Client) *CreateUserParams
NewCreateUserParamsWithHTTPClient creates a new CreateUserParams object with the ability to set a custom HTTPClient for a request.
func NewCreateUserParamsWithTimeout ¶
func NewCreateUserParamsWithTimeout(timeout time.Duration) *CreateUserParams
NewCreateUserParamsWithTimeout creates a new CreateUserParams object with the ability to set a timeout on a request.
func (*CreateUserParams) SetContentLanguage ¶
func (o *CreateUserParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the create user params
func (*CreateUserParams) SetContext ¶
func (o *CreateUserParams) SetContext(ctx context.Context)
SetContext adds the context to the create user params
func (*CreateUserParams) SetDefaults ¶
func (o *CreateUserParams) SetDefaults()
SetDefaults hydrates default values in the create user params (not the query body).
All values with no default are reset to their zero value.
func (*CreateUserParams) SetHTTPClient ¶
func (o *CreateUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create user params
func (*CreateUserParams) SetRequestBody ¶
func (o *CreateUserParams) SetRequestBody(requestBody []*models.UserCreationParams)
SetRequestBody adds the requestBody to the create user params
func (*CreateUserParams) SetTimeout ¶
func (o *CreateUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create user params
func (*CreateUserParams) WithContentLanguage ¶
func (o *CreateUserParams) WithContentLanguage(contentLanguage *string) *CreateUserParams
WithContentLanguage adds the contentLanguage to the create user params
func (*CreateUserParams) WithContext ¶
func (o *CreateUserParams) WithContext(ctx context.Context) *CreateUserParams
WithContext adds the context to the create user params
func (*CreateUserParams) WithDefaults ¶
func (o *CreateUserParams) WithDefaults() *CreateUserParams
WithDefaults hydrates default values in the create user params (not the query body).
All values with no default are reset to their zero value.
func (*CreateUserParams) WithHTTPClient ¶
func (o *CreateUserParams) WithHTTPClient(client *http.Client) *CreateUserParams
WithHTTPClient adds the HTTPClient to the create user params
func (*CreateUserParams) WithRequestBody ¶
func (o *CreateUserParams) WithRequestBody(requestBody []*models.UserCreationParams) *CreateUserParams
WithRequestBody adds the requestBody to the create user params
func (*CreateUserParams) WithTimeout ¶
func (o *CreateUserParams) WithTimeout(timeout time.Duration) *CreateUserParams
WithTimeout adds the timeout to the create user params
func (*CreateUserParams) WriteToRequest ¶
func (o *CreateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateUserReader ¶
type CreateUserReader struct {
// contains filtered or unexported fields
}
CreateUserReader is a Reader for the CreateUser structure.
func (*CreateUserReader) ReadResponse ¶
func (o *CreateUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteUserBadRequest ¶
DeleteUserBadRequest describes a response with status code 400, with default header values.
Bad request
func NewDeleteUserBadRequest ¶
func NewDeleteUserBadRequest() *DeleteUserBadRequest
NewDeleteUserBadRequest creates a DeleteUserBadRequest with default headers values
func (*DeleteUserBadRequest) Error ¶
func (o *DeleteUserBadRequest) Error() string
func (*DeleteUserBadRequest) GetPayload ¶
func (o *DeleteUserBadRequest) GetPayload() *models.ErrorBody
type DeleteUserInternalServerError ¶
DeleteUserInternalServerError describes a response with status code 500, with default header values.
Server error
func NewDeleteUserInternalServerError ¶
func NewDeleteUserInternalServerError() *DeleteUserInternalServerError
NewDeleteUserInternalServerError creates a DeleteUserInternalServerError with default headers values
func (*DeleteUserInternalServerError) Error ¶
func (o *DeleteUserInternalServerError) Error() string
func (*DeleteUserInternalServerError) GetPayload ¶
func (o *DeleteUserInternalServerError) GetPayload() *models.ErrorBody
type DeleteUserNotFound ¶
DeleteUserNotFound describes a response with status code 404, with default header values.
Not found
func NewDeleteUserNotFound ¶
func NewDeleteUserNotFound() *DeleteUserNotFound
NewDeleteUserNotFound creates a DeleteUserNotFound with default headers values
func (*DeleteUserNotFound) Error ¶
func (o *DeleteUserNotFound) Error() string
func (*DeleteUserNotFound) GetPayload ¶
func (o *DeleteUserNotFound) GetPayload() *models.ErrorBody
type DeleteUserOK ¶
type DeleteUserOK struct {
Payload []*models.WithTaskDeleteUser
}
DeleteUserOK describes a response with status code 200, with default header values.
Ok
func NewDeleteUserOK ¶
func NewDeleteUserOK() *DeleteUserOK
NewDeleteUserOK creates a DeleteUserOK with default headers values
func (*DeleteUserOK) Error ¶
func (o *DeleteUserOK) Error() string
func (*DeleteUserOK) GetPayload ¶
func (o *DeleteUserOK) GetPayload() []*models.WithTaskDeleteUser
type DeleteUserParams ¶
type DeleteUserParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.UserDeletionParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteUserParams contains all the parameters to send to the API endpoint
for the delete user operation. Typically these are written to a http.Request.
func NewDeleteUserParams ¶
func NewDeleteUserParams() *DeleteUserParams
NewDeleteUserParams creates a new DeleteUserParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDeleteUserParamsWithContext ¶
func NewDeleteUserParamsWithContext(ctx context.Context) *DeleteUserParams
NewDeleteUserParamsWithContext creates a new DeleteUserParams object with the ability to set a context for a request.
func NewDeleteUserParamsWithHTTPClient ¶
func NewDeleteUserParamsWithHTTPClient(client *http.Client) *DeleteUserParams
NewDeleteUserParamsWithHTTPClient creates a new DeleteUserParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteUserParamsWithTimeout ¶
func NewDeleteUserParamsWithTimeout(timeout time.Duration) *DeleteUserParams
NewDeleteUserParamsWithTimeout creates a new DeleteUserParams object with the ability to set a timeout on a request.
func (*DeleteUserParams) SetContentLanguage ¶
func (o *DeleteUserParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the delete user params
func (*DeleteUserParams) SetContext ¶
func (o *DeleteUserParams) SetContext(ctx context.Context)
SetContext adds the context to the delete user params
func (*DeleteUserParams) SetDefaults ¶
func (o *DeleteUserParams) SetDefaults()
SetDefaults hydrates default values in the delete user params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteUserParams) SetHTTPClient ¶
func (o *DeleteUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete user params
func (*DeleteUserParams) SetRequestBody ¶
func (o *DeleteUserParams) SetRequestBody(requestBody *models.UserDeletionParams)
SetRequestBody adds the requestBody to the delete user params
func (*DeleteUserParams) SetTimeout ¶
func (o *DeleteUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete user params
func (*DeleteUserParams) WithContentLanguage ¶
func (o *DeleteUserParams) WithContentLanguage(contentLanguage *string) *DeleteUserParams
WithContentLanguage adds the contentLanguage to the delete user params
func (*DeleteUserParams) WithContext ¶
func (o *DeleteUserParams) WithContext(ctx context.Context) *DeleteUserParams
WithContext adds the context to the delete user params
func (*DeleteUserParams) WithDefaults ¶
func (o *DeleteUserParams) WithDefaults() *DeleteUserParams
WithDefaults hydrates default values in the delete user params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteUserParams) WithHTTPClient ¶
func (o *DeleteUserParams) WithHTTPClient(client *http.Client) *DeleteUserParams
WithHTTPClient adds the HTTPClient to the delete user params
func (*DeleteUserParams) WithRequestBody ¶
func (o *DeleteUserParams) WithRequestBody(requestBody *models.UserDeletionParams) *DeleteUserParams
WithRequestBody adds the requestBody to the delete user params
func (*DeleteUserParams) WithTimeout ¶
func (o *DeleteUserParams) WithTimeout(timeout time.Duration) *DeleteUserParams
WithTimeout adds the timeout to the delete user params
func (*DeleteUserParams) WriteToRequest ¶
func (o *DeleteUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteUserReader ¶
type DeleteUserReader struct {
// contains filtered or unexported fields
}
DeleteUserReader is a Reader for the DeleteUser structure.
func (*DeleteUserReader) ReadResponse ¶
func (o *DeleteUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetMyInfoBadRequest ¶ added in v2.3.0
GetMyInfoBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetMyInfoBadRequest ¶ added in v2.3.0
func NewGetMyInfoBadRequest() *GetMyInfoBadRequest
NewGetMyInfoBadRequest creates a GetMyInfoBadRequest with default headers values
func (*GetMyInfoBadRequest) Error ¶ added in v2.3.0
func (o *GetMyInfoBadRequest) Error() string
func (*GetMyInfoBadRequest) GetPayload ¶ added in v2.3.0
func (o *GetMyInfoBadRequest) GetPayload() *models.ErrorBody
type GetMyInfoInternalServerError ¶ added in v2.3.0
GetMyInfoInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetMyInfoInternalServerError ¶ added in v2.3.0
func NewGetMyInfoInternalServerError() *GetMyInfoInternalServerError
NewGetMyInfoInternalServerError creates a GetMyInfoInternalServerError with default headers values
func (*GetMyInfoInternalServerError) Error ¶ added in v2.3.0
func (o *GetMyInfoInternalServerError) Error() string
func (*GetMyInfoInternalServerError) GetPayload ¶ added in v2.3.0
func (o *GetMyInfoInternalServerError) GetPayload() *models.ErrorBody
type GetMyInfoNotFound ¶ added in v2.3.0
GetMyInfoNotFound describes a response with status code 404, with default header values.
Not found
func NewGetMyInfoNotFound ¶ added in v2.3.0
func NewGetMyInfoNotFound() *GetMyInfoNotFound
NewGetMyInfoNotFound creates a GetMyInfoNotFound with default headers values
func (*GetMyInfoNotFound) Error ¶ added in v2.3.0
func (o *GetMyInfoNotFound) Error() string
func (*GetMyInfoNotFound) GetPayload ¶ added in v2.3.0
func (o *GetMyInfoNotFound) GetPayload() *models.ErrorBody
type GetMyInfoOK ¶ added in v2.3.0
GetMyInfoOK describes a response with status code 200, with default header values.
GetMyInfoOK get my info o k
func NewGetMyInfoOK ¶ added in v2.3.0
func NewGetMyInfoOK() *GetMyInfoOK
NewGetMyInfoOK creates a GetMyInfoOK with default headers values
func (*GetMyInfoOK) Error ¶ added in v2.3.0
func (o *GetMyInfoOK) Error() string
func (*GetMyInfoOK) GetPayload ¶ added in v2.3.0
func (o *GetMyInfoOK) GetPayload() *models.User
type GetMyInfoParams ¶ added in v2.3.0
type GetMyInfoParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetMyInfoParams contains all the parameters to send to the API endpoint
for the get my info operation. Typically these are written to a http.Request.
func NewGetMyInfoParams ¶ added in v2.3.0
func NewGetMyInfoParams() *GetMyInfoParams
NewGetMyInfoParams creates a new GetMyInfoParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetMyInfoParamsWithContext ¶ added in v2.3.0
func NewGetMyInfoParamsWithContext(ctx context.Context) *GetMyInfoParams
NewGetMyInfoParamsWithContext creates a new GetMyInfoParams object with the ability to set a context for a request.
func NewGetMyInfoParamsWithHTTPClient ¶ added in v2.3.0
func NewGetMyInfoParamsWithHTTPClient(client *http.Client) *GetMyInfoParams
NewGetMyInfoParamsWithHTTPClient creates a new GetMyInfoParams object with the ability to set a custom HTTPClient for a request.
func NewGetMyInfoParamsWithTimeout ¶ added in v2.3.0
func NewGetMyInfoParamsWithTimeout(timeout time.Duration) *GetMyInfoParams
NewGetMyInfoParamsWithTimeout creates a new GetMyInfoParams object with the ability to set a timeout on a request.
func (*GetMyInfoParams) SetContext ¶ added in v2.3.0
func (o *GetMyInfoParams) SetContext(ctx context.Context)
SetContext adds the context to the get my info params
func (*GetMyInfoParams) SetDefaults ¶ added in v2.3.0
func (o *GetMyInfoParams) SetDefaults()
SetDefaults hydrates default values in the get my info params (not the query body).
All values with no default are reset to their zero value.
func (*GetMyInfoParams) SetHTTPClient ¶ added in v2.3.0
func (o *GetMyInfoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get my info params
func (*GetMyInfoParams) SetTimeout ¶ added in v2.3.0
func (o *GetMyInfoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get my info params
func (*GetMyInfoParams) WithContext ¶ added in v2.3.0
func (o *GetMyInfoParams) WithContext(ctx context.Context) *GetMyInfoParams
WithContext adds the context to the get my info params
func (*GetMyInfoParams) WithDefaults ¶ added in v2.3.0
func (o *GetMyInfoParams) WithDefaults() *GetMyInfoParams
WithDefaults hydrates default values in the get my info params (not the query body).
All values with no default are reset to their zero value.
func (*GetMyInfoParams) WithHTTPClient ¶ added in v2.3.0
func (o *GetMyInfoParams) WithHTTPClient(client *http.Client) *GetMyInfoParams
WithHTTPClient adds the HTTPClient to the get my info params
func (*GetMyInfoParams) WithTimeout ¶ added in v2.3.0
func (o *GetMyInfoParams) WithTimeout(timeout time.Duration) *GetMyInfoParams
WithTimeout adds the timeout to the get my info params
func (*GetMyInfoParams) WriteToRequest ¶ added in v2.3.0
func (o *GetMyInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetMyInfoReader ¶ added in v2.3.0
type GetMyInfoReader struct {
// contains filtered or unexported fields
}
GetMyInfoReader is a Reader for the GetMyInfo structure.
func (*GetMyInfoReader) ReadResponse ¶ added in v2.3.0
func (o *GetMyInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUsersBadRequest ¶
GetUsersBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetUsersBadRequest ¶
func NewGetUsersBadRequest() *GetUsersBadRequest
NewGetUsersBadRequest creates a GetUsersBadRequest with default headers values
func (*GetUsersBadRequest) Error ¶
func (o *GetUsersBadRequest) Error() string
func (*GetUsersBadRequest) GetPayload ¶
func (o *GetUsersBadRequest) GetPayload() *models.ErrorBody
type GetUsersConnectionBadRequest ¶
GetUsersConnectionBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetUsersConnectionBadRequest ¶
func NewGetUsersConnectionBadRequest() *GetUsersConnectionBadRequest
NewGetUsersConnectionBadRequest creates a GetUsersConnectionBadRequest with default headers values
func (*GetUsersConnectionBadRequest) Error ¶
func (o *GetUsersConnectionBadRequest) Error() string
func (*GetUsersConnectionBadRequest) GetPayload ¶
func (o *GetUsersConnectionBadRequest) GetPayload() *models.ErrorBody
type GetUsersConnectionInternalServerError ¶
type GetUsersConnectionInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
GetUsersConnectionInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetUsersConnectionInternalServerError ¶
func NewGetUsersConnectionInternalServerError() *GetUsersConnectionInternalServerError
NewGetUsersConnectionInternalServerError creates a GetUsersConnectionInternalServerError with default headers values
func (*GetUsersConnectionInternalServerError) Error ¶
func (o *GetUsersConnectionInternalServerError) Error() string
func (*GetUsersConnectionInternalServerError) GetPayload ¶
func (o *GetUsersConnectionInternalServerError) GetPayload() *models.ErrorBody
type GetUsersConnectionNotFound ¶
GetUsersConnectionNotFound describes a response with status code 404, with default header values.
Not found
func NewGetUsersConnectionNotFound ¶
func NewGetUsersConnectionNotFound() *GetUsersConnectionNotFound
NewGetUsersConnectionNotFound creates a GetUsersConnectionNotFound with default headers values
func (*GetUsersConnectionNotFound) Error ¶
func (o *GetUsersConnectionNotFound) Error() string
func (*GetUsersConnectionNotFound) GetPayload ¶
func (o *GetUsersConnectionNotFound) GetPayload() *models.ErrorBody
type GetUsersConnectionOK ¶
type GetUsersConnectionOK struct { XTowerRequestID string Payload *models.UserConnection }
GetUsersConnectionOK describes a response with status code 200, with default header values.
GetUsersConnectionOK get users connection o k
func NewGetUsersConnectionOK ¶
func NewGetUsersConnectionOK() *GetUsersConnectionOK
NewGetUsersConnectionOK creates a GetUsersConnectionOK with default headers values
func (*GetUsersConnectionOK) Error ¶
func (o *GetUsersConnectionOK) Error() string
func (*GetUsersConnectionOK) GetPayload ¶
func (o *GetUsersConnectionOK) GetPayload() *models.UserConnection
type GetUsersConnectionParams ¶
type GetUsersConnectionParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetUsersConnectionRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetUsersConnectionParams contains all the parameters to send to the API endpoint
for the get users connection operation. Typically these are written to a http.Request.
func NewGetUsersConnectionParams ¶
func NewGetUsersConnectionParams() *GetUsersConnectionParams
NewGetUsersConnectionParams creates a new GetUsersConnectionParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetUsersConnectionParamsWithContext ¶
func NewGetUsersConnectionParamsWithContext(ctx context.Context) *GetUsersConnectionParams
NewGetUsersConnectionParamsWithContext creates a new GetUsersConnectionParams object with the ability to set a context for a request.
func NewGetUsersConnectionParamsWithHTTPClient ¶
func NewGetUsersConnectionParamsWithHTTPClient(client *http.Client) *GetUsersConnectionParams
NewGetUsersConnectionParamsWithHTTPClient creates a new GetUsersConnectionParams object with the ability to set a custom HTTPClient for a request.
func NewGetUsersConnectionParamsWithTimeout ¶
func NewGetUsersConnectionParamsWithTimeout(timeout time.Duration) *GetUsersConnectionParams
NewGetUsersConnectionParamsWithTimeout creates a new GetUsersConnectionParams object with the ability to set a timeout on a request.
func (*GetUsersConnectionParams) SetContentLanguage ¶
func (o *GetUsersConnectionParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get users connection params
func (*GetUsersConnectionParams) SetContext ¶
func (o *GetUsersConnectionParams) SetContext(ctx context.Context)
SetContext adds the context to the get users connection params
func (*GetUsersConnectionParams) SetDefaults ¶
func (o *GetUsersConnectionParams) SetDefaults()
SetDefaults hydrates default values in the get users connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetUsersConnectionParams) SetHTTPClient ¶
func (o *GetUsersConnectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get users connection params
func (*GetUsersConnectionParams) SetRequestBody ¶
func (o *GetUsersConnectionParams) SetRequestBody(requestBody *models.GetUsersConnectionRequestBody)
SetRequestBody adds the requestBody to the get users connection params
func (*GetUsersConnectionParams) SetTimeout ¶
func (o *GetUsersConnectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get users connection params
func (*GetUsersConnectionParams) WithContentLanguage ¶
func (o *GetUsersConnectionParams) WithContentLanguage(contentLanguage *string) *GetUsersConnectionParams
WithContentLanguage adds the contentLanguage to the get users connection params
func (*GetUsersConnectionParams) WithContext ¶
func (o *GetUsersConnectionParams) WithContext(ctx context.Context) *GetUsersConnectionParams
WithContext adds the context to the get users connection params
func (*GetUsersConnectionParams) WithDefaults ¶
func (o *GetUsersConnectionParams) WithDefaults() *GetUsersConnectionParams
WithDefaults hydrates default values in the get users connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetUsersConnectionParams) WithHTTPClient ¶
func (o *GetUsersConnectionParams) WithHTTPClient(client *http.Client) *GetUsersConnectionParams
WithHTTPClient adds the HTTPClient to the get users connection params
func (*GetUsersConnectionParams) WithRequestBody ¶
func (o *GetUsersConnectionParams) WithRequestBody(requestBody *models.GetUsersConnectionRequestBody) *GetUsersConnectionParams
WithRequestBody adds the requestBody to the get users connection params
func (*GetUsersConnectionParams) WithTimeout ¶
func (o *GetUsersConnectionParams) WithTimeout(timeout time.Duration) *GetUsersConnectionParams
WithTimeout adds the timeout to the get users connection params
func (*GetUsersConnectionParams) WriteToRequest ¶
func (o *GetUsersConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUsersConnectionReader ¶
type GetUsersConnectionReader struct {
// contains filtered or unexported fields
}
GetUsersConnectionReader is a Reader for the GetUsersConnection structure.
func (*GetUsersConnectionReader) ReadResponse ¶
func (o *GetUsersConnectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUsersInternalServerError ¶
GetUsersInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetUsersInternalServerError ¶
func NewGetUsersInternalServerError() *GetUsersInternalServerError
NewGetUsersInternalServerError creates a GetUsersInternalServerError with default headers values
func (*GetUsersInternalServerError) Error ¶
func (o *GetUsersInternalServerError) Error() string
func (*GetUsersInternalServerError) GetPayload ¶
func (o *GetUsersInternalServerError) GetPayload() *models.ErrorBody
type GetUsersNotFound ¶
GetUsersNotFound describes a response with status code 404, with default header values.
Not found
func NewGetUsersNotFound ¶
func NewGetUsersNotFound() *GetUsersNotFound
NewGetUsersNotFound creates a GetUsersNotFound with default headers values
func (*GetUsersNotFound) Error ¶
func (o *GetUsersNotFound) Error() string
func (*GetUsersNotFound) GetPayload ¶
func (o *GetUsersNotFound) GetPayload() *models.ErrorBody
type GetUsersOK ¶
GetUsersOK describes a response with status code 200, with default header values.
GetUsersOK get users o k
func NewGetUsersOK ¶
func NewGetUsersOK() *GetUsersOK
NewGetUsersOK creates a GetUsersOK with default headers values
func (*GetUsersOK) Error ¶
func (o *GetUsersOK) Error() string
func (*GetUsersOK) GetPayload ¶
func (o *GetUsersOK) GetPayload() []*models.User
type GetUsersParams ¶
type GetUsersParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetUsersRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetUsersParams contains all the parameters to send to the API endpoint
for the get users operation. Typically these are written to a http.Request.
func NewGetUsersParams ¶
func NewGetUsersParams() *GetUsersParams
NewGetUsersParams creates a new GetUsersParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetUsersParamsWithContext ¶
func NewGetUsersParamsWithContext(ctx context.Context) *GetUsersParams
NewGetUsersParamsWithContext creates a new GetUsersParams object with the ability to set a context for a request.
func NewGetUsersParamsWithHTTPClient ¶
func NewGetUsersParamsWithHTTPClient(client *http.Client) *GetUsersParams
NewGetUsersParamsWithHTTPClient creates a new GetUsersParams object with the ability to set a custom HTTPClient for a request.
func NewGetUsersParamsWithTimeout ¶
func NewGetUsersParamsWithTimeout(timeout time.Duration) *GetUsersParams
NewGetUsersParamsWithTimeout creates a new GetUsersParams object with the ability to set a timeout on a request.
func (*GetUsersParams) SetContentLanguage ¶
func (o *GetUsersParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get users params
func (*GetUsersParams) SetContext ¶
func (o *GetUsersParams) SetContext(ctx context.Context)
SetContext adds the context to the get users params
func (*GetUsersParams) SetDefaults ¶
func (o *GetUsersParams) SetDefaults()
SetDefaults hydrates default values in the get users params (not the query body).
All values with no default are reset to their zero value.
func (*GetUsersParams) SetHTTPClient ¶
func (o *GetUsersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get users params
func (*GetUsersParams) SetRequestBody ¶
func (o *GetUsersParams) SetRequestBody(requestBody *models.GetUsersRequestBody)
SetRequestBody adds the requestBody to the get users params
func (*GetUsersParams) SetTimeout ¶
func (o *GetUsersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get users params
func (*GetUsersParams) WithContentLanguage ¶
func (o *GetUsersParams) WithContentLanguage(contentLanguage *string) *GetUsersParams
WithContentLanguage adds the contentLanguage to the get users params
func (*GetUsersParams) WithContext ¶
func (o *GetUsersParams) WithContext(ctx context.Context) *GetUsersParams
WithContext adds the context to the get users params
func (*GetUsersParams) WithDefaults ¶
func (o *GetUsersParams) WithDefaults() *GetUsersParams
WithDefaults hydrates default values in the get users params (not the query body).
All values with no default are reset to their zero value.
func (*GetUsersParams) WithHTTPClient ¶
func (o *GetUsersParams) WithHTTPClient(client *http.Client) *GetUsersParams
WithHTTPClient adds the HTTPClient to the get users params
func (*GetUsersParams) WithRequestBody ¶
func (o *GetUsersParams) WithRequestBody(requestBody *models.GetUsersRequestBody) *GetUsersParams
WithRequestBody adds the requestBody to the get users params
func (*GetUsersParams) WithTimeout ¶
func (o *GetUsersParams) WithTimeout(timeout time.Duration) *GetUsersParams
WithTimeout adds the timeout to the get users params
func (*GetUsersParams) WriteToRequest ¶
func (o *GetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUsersReader ¶
type GetUsersReader struct {
// contains filtered or unexported fields
}
GetUsersReader is a Reader for the GetUsers structure.
func (*GetUsersReader) ReadResponse ¶
func (o *GetUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type LoginBadRequest ¶
LoginBadRequest describes a response with status code 400, with default header values.
Bad request
func NewLoginBadRequest ¶
func NewLoginBadRequest() *LoginBadRequest
NewLoginBadRequest creates a LoginBadRequest with default headers values
func (*LoginBadRequest) Error ¶
func (o *LoginBadRequest) Error() string
func (*LoginBadRequest) GetPayload ¶
func (o *LoginBadRequest) GetPayload() *models.ErrorBody
type LoginInternalServerError ¶
LoginInternalServerError describes a response with status code 500, with default header values.
Server error
func NewLoginInternalServerError ¶
func NewLoginInternalServerError() *LoginInternalServerError
NewLoginInternalServerError creates a LoginInternalServerError with default headers values
func (*LoginInternalServerError) Error ¶
func (o *LoginInternalServerError) Error() string
func (*LoginInternalServerError) GetPayload ¶
func (o *LoginInternalServerError) GetPayload() *models.ErrorBody
type LoginNotFound ¶
LoginNotFound describes a response with status code 404, with default header values.
Not found
func NewLoginNotFound ¶
func NewLoginNotFound() *LoginNotFound
NewLoginNotFound creates a LoginNotFound with default headers values
func (*LoginNotFound) Error ¶
func (o *LoginNotFound) Error() string
func (*LoginNotFound) GetPayload ¶
func (o *LoginNotFound) GetPayload() *models.ErrorBody
type LoginOK ¶
type LoginOK struct { XTowerRequestID string Payload *models.WithTaskLoginResponse }
LoginOK describes a response with status code 200, with default header values.
LoginOK login o k
func NewLoginOK ¶
func NewLoginOK() *LoginOK
NewLoginOK creates a LoginOK with default headers values
func (*LoginOK) GetPayload ¶
func (o *LoginOK) GetPayload() *models.WithTaskLoginResponse
type LoginParams ¶
type LoginParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.LoginInput Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
LoginParams contains all the parameters to send to the API endpoint
for the login operation. Typically these are written to a http.Request.
func NewLoginParams ¶
func NewLoginParams() *LoginParams
NewLoginParams creates a new LoginParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewLoginParamsWithContext ¶
func NewLoginParamsWithContext(ctx context.Context) *LoginParams
NewLoginParamsWithContext creates a new LoginParams object with the ability to set a context for a request.
func NewLoginParamsWithHTTPClient ¶
func NewLoginParamsWithHTTPClient(client *http.Client) *LoginParams
NewLoginParamsWithHTTPClient creates a new LoginParams object with the ability to set a custom HTTPClient for a request.
func NewLoginParamsWithTimeout ¶
func NewLoginParamsWithTimeout(timeout time.Duration) *LoginParams
NewLoginParamsWithTimeout creates a new LoginParams object with the ability to set a timeout on a request.
func (*LoginParams) SetContentLanguage ¶
func (o *LoginParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the login params
func (*LoginParams) SetContext ¶
func (o *LoginParams) SetContext(ctx context.Context)
SetContext adds the context to the login params
func (*LoginParams) SetDefaults ¶
func (o *LoginParams) SetDefaults()
SetDefaults hydrates default values in the login params (not the query body).
All values with no default are reset to their zero value.
func (*LoginParams) SetHTTPClient ¶
func (o *LoginParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the login params
func (*LoginParams) SetRequestBody ¶
func (o *LoginParams) SetRequestBody(requestBody *models.LoginInput)
SetRequestBody adds the requestBody to the login params
func (*LoginParams) SetTimeout ¶
func (o *LoginParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the login params
func (*LoginParams) WithContentLanguage ¶
func (o *LoginParams) WithContentLanguage(contentLanguage *string) *LoginParams
WithContentLanguage adds the contentLanguage to the login params
func (*LoginParams) WithContext ¶
func (o *LoginParams) WithContext(ctx context.Context) *LoginParams
WithContext adds the context to the login params
func (*LoginParams) WithDefaults ¶
func (o *LoginParams) WithDefaults() *LoginParams
WithDefaults hydrates default values in the login params (not the query body).
All values with no default are reset to their zero value.
func (*LoginParams) WithHTTPClient ¶
func (o *LoginParams) WithHTTPClient(client *http.Client) *LoginParams
WithHTTPClient adds the HTTPClient to the login params
func (*LoginParams) WithRequestBody ¶
func (o *LoginParams) WithRequestBody(requestBody *models.LoginInput) *LoginParams
WithRequestBody adds the requestBody to the login params
func (*LoginParams) WithTimeout ¶
func (o *LoginParams) WithTimeout(timeout time.Duration) *LoginParams
WithTimeout adds the timeout to the login params
func (*LoginParams) WriteToRequest ¶
func (o *LoginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type LoginReader ¶
type LoginReader struct {
// contains filtered or unexported fields
}
LoginReader is a Reader for the Login structure.
func (*LoginReader) ReadResponse ¶
func (o *LoginReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateUserBadRequest ¶
UpdateUserBadRequest describes a response with status code 400, with default header values.
Bad request
func NewUpdateUserBadRequest ¶
func NewUpdateUserBadRequest() *UpdateUserBadRequest
NewUpdateUserBadRequest creates a UpdateUserBadRequest with default headers values
func (*UpdateUserBadRequest) Error ¶
func (o *UpdateUserBadRequest) Error() string
func (*UpdateUserBadRequest) GetPayload ¶
func (o *UpdateUserBadRequest) GetPayload() *models.ErrorBody
type UpdateUserInternalServerError ¶
UpdateUserInternalServerError describes a response with status code 500, with default header values.
Server error
func NewUpdateUserInternalServerError ¶
func NewUpdateUserInternalServerError() *UpdateUserInternalServerError
NewUpdateUserInternalServerError creates a UpdateUserInternalServerError with default headers values
func (*UpdateUserInternalServerError) Error ¶
func (o *UpdateUserInternalServerError) Error() string
func (*UpdateUserInternalServerError) GetPayload ¶
func (o *UpdateUserInternalServerError) GetPayload() *models.ErrorBody
type UpdateUserNotFound ¶
UpdateUserNotFound describes a response with status code 404, with default header values.
Not found
func NewUpdateUserNotFound ¶
func NewUpdateUserNotFound() *UpdateUserNotFound
NewUpdateUserNotFound creates a UpdateUserNotFound with default headers values
func (*UpdateUserNotFound) Error ¶
func (o *UpdateUserNotFound) Error() string
func (*UpdateUserNotFound) GetPayload ¶
func (o *UpdateUserNotFound) GetPayload() *models.ErrorBody
type UpdateUserOK ¶
type UpdateUserOK struct { XTowerRequestID string Payload []*models.WithTaskUser }
UpdateUserOK describes a response with status code 200, with default header values.
UpdateUserOK update user o k
func NewUpdateUserOK ¶
func NewUpdateUserOK() *UpdateUserOK
NewUpdateUserOK creates a UpdateUserOK with default headers values
func (*UpdateUserOK) Error ¶
func (o *UpdateUserOK) Error() string
func (*UpdateUserOK) GetPayload ¶
func (o *UpdateUserOK) GetPayload() []*models.WithTaskUser
type UpdateUserParams ¶
type UpdateUserParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.UserUpdationParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateUserParams contains all the parameters to send to the API endpoint
for the update user operation. Typically these are written to a http.Request.
func NewUpdateUserParams ¶
func NewUpdateUserParams() *UpdateUserParams
NewUpdateUserParams creates a new UpdateUserParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewUpdateUserParamsWithContext ¶
func NewUpdateUserParamsWithContext(ctx context.Context) *UpdateUserParams
NewUpdateUserParamsWithContext creates a new UpdateUserParams object with the ability to set a context for a request.
func NewUpdateUserParamsWithHTTPClient ¶
func NewUpdateUserParamsWithHTTPClient(client *http.Client) *UpdateUserParams
NewUpdateUserParamsWithHTTPClient creates a new UpdateUserParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateUserParamsWithTimeout ¶
func NewUpdateUserParamsWithTimeout(timeout time.Duration) *UpdateUserParams
NewUpdateUserParamsWithTimeout creates a new UpdateUserParams object with the ability to set a timeout on a request.
func (*UpdateUserParams) SetContentLanguage ¶
func (o *UpdateUserParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the update user params
func (*UpdateUserParams) SetContext ¶
func (o *UpdateUserParams) SetContext(ctx context.Context)
SetContext adds the context to the update user params
func (*UpdateUserParams) SetDefaults ¶
func (o *UpdateUserParams) SetDefaults()
SetDefaults hydrates default values in the update user params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateUserParams) SetHTTPClient ¶
func (o *UpdateUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update user params
func (*UpdateUserParams) SetRequestBody ¶
func (o *UpdateUserParams) SetRequestBody(requestBody *models.UserUpdationParams)
SetRequestBody adds the requestBody to the update user params
func (*UpdateUserParams) SetTimeout ¶
func (o *UpdateUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update user params
func (*UpdateUserParams) WithContentLanguage ¶
func (o *UpdateUserParams) WithContentLanguage(contentLanguage *string) *UpdateUserParams
WithContentLanguage adds the contentLanguage to the update user params
func (*UpdateUserParams) WithContext ¶
func (o *UpdateUserParams) WithContext(ctx context.Context) *UpdateUserParams
WithContext adds the context to the update user params
func (*UpdateUserParams) WithDefaults ¶
func (o *UpdateUserParams) WithDefaults() *UpdateUserParams
WithDefaults hydrates default values in the update user params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateUserParams) WithHTTPClient ¶
func (o *UpdateUserParams) WithHTTPClient(client *http.Client) *UpdateUserParams
WithHTTPClient adds the HTTPClient to the update user params
func (*UpdateUserParams) WithRequestBody ¶
func (o *UpdateUserParams) WithRequestBody(requestBody *models.UserUpdationParams) *UpdateUserParams
WithRequestBody adds the requestBody to the update user params
func (*UpdateUserParams) WithTimeout ¶
func (o *UpdateUserParams) WithTimeout(timeout time.Duration) *UpdateUserParams
WithTimeout adds the timeout to the update user params
func (*UpdateUserParams) WriteToRequest ¶
func (o *UpdateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateUserReader ¶
type UpdateUserReader struct {
// contains filtered or unexported fields
}
UpdateUserReader is a Reader for the UpdateUser structure.
func (*UpdateUserReader) ReadResponse ¶
func (o *UpdateUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- create_root_user_parameters.go
- create_root_user_responses.go
- create_user_parameters.go
- create_user_responses.go
- delete_user_parameters.go
- delete_user_responses.go
- get_my_info_parameters.go
- get_my_info_responses.go
- get_users_connection_parameters.go
- get_users_connection_responses.go
- get_users_parameters.go
- get_users_responses.go
- login_parameters.go
- login_responses.go
- update_user_parameters.go
- update_user_responses.go
- user_client.go