Documentation
¶
Index ¶
- type Client
- func (a *Client) ExportUsers(params *ExportUsersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ExportUsersOK, error)
- func (a *Client) ImportUsers(params *ImportUsersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ImportUsersOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ExportUsersForbidden
- func (o *ExportUsersForbidden) Code() int
- func (o *ExportUsersForbidden) Error() string
- func (o *ExportUsersForbidden) GetPayload() *models.ErrorResponse
- func (o *ExportUsersForbidden) IsClientError() bool
- func (o *ExportUsersForbidden) IsCode(code int) bool
- func (o *ExportUsersForbidden) IsRedirect() bool
- func (o *ExportUsersForbidden) IsServerError() bool
- func (o *ExportUsersForbidden) IsSuccess() bool
- func (o *ExportUsersForbidden) String() string
- type ExportUsersInternalServerError
- func (o *ExportUsersInternalServerError) Code() int
- func (o *ExportUsersInternalServerError) Error() string
- func (o *ExportUsersInternalServerError) GetPayload() *models.ErrorResponse
- func (o *ExportUsersInternalServerError) IsClientError() bool
- func (o *ExportUsersInternalServerError) IsCode(code int) bool
- func (o *ExportUsersInternalServerError) IsRedirect() bool
- func (o *ExportUsersInternalServerError) IsServerError() bool
- func (o *ExportUsersInternalServerError) IsSuccess() bool
- func (o *ExportUsersInternalServerError) String() string
- type ExportUsersOK
- func (o *ExportUsersOK) Code() int
- func (o *ExportUsersOK) Error() string
- func (o *ExportUsersOK) GetPayload() *models.UserExportResponse
- func (o *ExportUsersOK) IsClientError() bool
- func (o *ExportUsersOK) IsCode(code int) bool
- func (o *ExportUsersOK) IsRedirect() bool
- func (o *ExportUsersOK) IsServerError() bool
- func (o *ExportUsersOK) IsSuccess() bool
- func (o *ExportUsersOK) String() string
- type ExportUsersParams
- func (o *ExportUsersParams) SetContext(ctx context.Context)
- func (o *ExportUsersParams) SetDefaults()
- func (o *ExportUsersParams) SetHTTPClient(client *http.Client)
- func (o *ExportUsersParams) SetTimeout(timeout time.Duration)
- func (o *ExportUsersParams) WithContext(ctx context.Context) *ExportUsersParams
- func (o *ExportUsersParams) WithDefaults() *ExportUsersParams
- func (o *ExportUsersParams) WithHTTPClient(client *http.Client) *ExportUsersParams
- func (o *ExportUsersParams) WithTimeout(timeout time.Duration) *ExportUsersParams
- func (o *ExportUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ExportUsersReader
- type ExportUsersUnauthorized
- func (o *ExportUsersUnauthorized) Code() int
- func (o *ExportUsersUnauthorized) Error() string
- func (o *ExportUsersUnauthorized) IsClientError() bool
- func (o *ExportUsersUnauthorized) IsCode(code int) bool
- func (o *ExportUsersUnauthorized) IsRedirect() bool
- func (o *ExportUsersUnauthorized) IsServerError() bool
- func (o *ExportUsersUnauthorized) IsSuccess() bool
- func (o *ExportUsersUnauthorized) String() string
- type ExportUsersUnprocessableEntity
- func (o *ExportUsersUnprocessableEntity) Code() int
- func (o *ExportUsersUnprocessableEntity) Error() string
- func (o *ExportUsersUnprocessableEntity) GetPayload() *models.ErrorResponse
- func (o *ExportUsersUnprocessableEntity) IsClientError() bool
- func (o *ExportUsersUnprocessableEntity) IsCode(code int) bool
- func (o *ExportUsersUnprocessableEntity) IsRedirect() bool
- func (o *ExportUsersUnprocessableEntity) IsServerError() bool
- func (o *ExportUsersUnprocessableEntity) IsSuccess() bool
- func (o *ExportUsersUnprocessableEntity) String() string
- type ImportUsersBadRequest
- func (o *ImportUsersBadRequest) Code() int
- func (o *ImportUsersBadRequest) Error() string
- func (o *ImportUsersBadRequest) GetPayload() *models.ErrorResponse
- func (o *ImportUsersBadRequest) IsClientError() bool
- func (o *ImportUsersBadRequest) IsCode(code int) bool
- func (o *ImportUsersBadRequest) IsRedirect() bool
- func (o *ImportUsersBadRequest) IsServerError() bool
- func (o *ImportUsersBadRequest) IsSuccess() bool
- func (o *ImportUsersBadRequest) String() string
- type ImportUsersForbidden
- func (o *ImportUsersForbidden) Code() int
- func (o *ImportUsersForbidden) Error() string
- func (o *ImportUsersForbidden) GetPayload() *models.ErrorResponse
- func (o *ImportUsersForbidden) IsClientError() bool
- func (o *ImportUsersForbidden) IsCode(code int) bool
- func (o *ImportUsersForbidden) IsRedirect() bool
- func (o *ImportUsersForbidden) IsServerError() bool
- func (o *ImportUsersForbidden) IsSuccess() bool
- func (o *ImportUsersForbidden) String() string
- type ImportUsersInternalServerError
- func (o *ImportUsersInternalServerError) Code() int
- func (o *ImportUsersInternalServerError) Error() string
- func (o *ImportUsersInternalServerError) GetPayload() *models.ErrorResponse
- func (o *ImportUsersInternalServerError) IsClientError() bool
- func (o *ImportUsersInternalServerError) IsCode(code int) bool
- func (o *ImportUsersInternalServerError) IsRedirect() bool
- func (o *ImportUsersInternalServerError) IsServerError() bool
- func (o *ImportUsersInternalServerError) IsSuccess() bool
- func (o *ImportUsersInternalServerError) String() string
- type ImportUsersOK
- func (o *ImportUsersOK) Code() int
- func (o *ImportUsersOK) Error() string
- func (o *ImportUsersOK) GetPayload() *models.UserImportResponse
- func (o *ImportUsersOK) IsClientError() bool
- func (o *ImportUsersOK) IsCode(code int) bool
- func (o *ImportUsersOK) IsRedirect() bool
- func (o *ImportUsersOK) IsServerError() bool
- func (o *ImportUsersOK) IsSuccess() bool
- func (o *ImportUsersOK) String() string
- type ImportUsersParams
- func (o *ImportUsersParams) SetBody(body *models.UserImportRequest)
- func (o *ImportUsersParams) SetContext(ctx context.Context)
- func (o *ImportUsersParams) SetDefaults()
- func (o *ImportUsersParams) SetHTTPClient(client *http.Client)
- func (o *ImportUsersParams) SetTimeout(timeout time.Duration)
- func (o *ImportUsersParams) WithBody(body *models.UserImportRequest) *ImportUsersParams
- func (o *ImportUsersParams) WithContext(ctx context.Context) *ImportUsersParams
- func (o *ImportUsersParams) WithDefaults() *ImportUsersParams
- func (o *ImportUsersParams) WithHTTPClient(client *http.Client) *ImportUsersParams
- func (o *ImportUsersParams) WithTimeout(timeout time.Duration) *ImportUsersParams
- func (o *ImportUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ImportUsersReader
- type ImportUsersUnauthorized
- func (o *ImportUsersUnauthorized) Code() int
- func (o *ImportUsersUnauthorized) Error() string
- func (o *ImportUsersUnauthorized) IsClientError() bool
- func (o *ImportUsersUnauthorized) IsCode(code int) bool
- func (o *ImportUsersUnauthorized) IsRedirect() bool
- func (o *ImportUsersUnauthorized) IsServerError() bool
- func (o *ImportUsersUnauthorized) IsSuccess() bool
- func (o *ImportUsersUnauthorized) String() string
- type ImportUsersUnprocessableEntity
- func (o *ImportUsersUnprocessableEntity) Code() int
- func (o *ImportUsersUnprocessableEntity) Error() string
- func (o *ImportUsersUnprocessableEntity) GetPayload() *models.ErrorResponse
- func (o *ImportUsersUnprocessableEntity) IsClientError() bool
- func (o *ImportUsersUnprocessableEntity) IsCode(code int) bool
- func (o *ImportUsersUnprocessableEntity) IsRedirect() bool
- func (o *ImportUsersUnprocessableEntity) IsServerError() bool
- func (o *ImportUsersUnprocessableEntity) IsSuccess() bool
- func (o *ImportUsersUnprocessableEntity) String() string
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 experimental API
func (*Client) ExportUsers ¶
func (a *Client) ExportUsers(params *ExportUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExportUsersOK, error)
ExportUsers exports all database user credentials
Experimental: this endpoint may change or be removed without notice. Export every database (`db` user type) user's API-key credential for migration to another cluster. Strong-key users carry their argon2id key hash; imported/weak and revoked users are reported with a null hash and a status naming why they cannot be migrated. Root users only.
func (*Client) ImportUsers ¶
func (a *Client) ImportUsers(params *ImportUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ImportUsersOK, error)
ImportUsers imports database user credentials
Experimental: this endpoint may change or be removed without notice. Recreate exported database (`db` user type) user credentials on this cluster under a target namespace. Each user is created with its original key hash so the source key keeps working. Returns a per-user result. Only strong-key records are importable. Root users only.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface {
ExportUsers(params *ExportUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExportUsersOK, error)
ImportUsers(params *ImportUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ImportUsersOK, 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 experimental API client.
type ExportUsersForbidden ¶
type ExportUsersForbidden struct {
Payload *models.ErrorResponse
}
ExportUsersForbidden describes a response with status code 403, with default header values.
Forbidden
func NewExportUsersForbidden ¶
func NewExportUsersForbidden() *ExportUsersForbidden
NewExportUsersForbidden creates a ExportUsersForbidden with default headers values
func (*ExportUsersForbidden) Code ¶
func (o *ExportUsersForbidden) Code() int
Code gets the status code for the export users forbidden response
func (*ExportUsersForbidden) Error ¶
func (o *ExportUsersForbidden) Error() string
func (*ExportUsersForbidden) GetPayload ¶
func (o *ExportUsersForbidden) GetPayload() *models.ErrorResponse
func (*ExportUsersForbidden) IsClientError ¶
func (o *ExportUsersForbidden) IsClientError() bool
IsClientError returns true when this export users forbidden response has a 4xx status code
func (*ExportUsersForbidden) IsCode ¶
func (o *ExportUsersForbidden) IsCode(code int) bool
IsCode returns true when this export users forbidden response a status code equal to that given
func (*ExportUsersForbidden) IsRedirect ¶
func (o *ExportUsersForbidden) IsRedirect() bool
IsRedirect returns true when this export users forbidden response has a 3xx status code
func (*ExportUsersForbidden) IsServerError ¶
func (o *ExportUsersForbidden) IsServerError() bool
IsServerError returns true when this export users forbidden response has a 5xx status code
func (*ExportUsersForbidden) IsSuccess ¶
func (o *ExportUsersForbidden) IsSuccess() bool
IsSuccess returns true when this export users forbidden response has a 2xx status code
func (*ExportUsersForbidden) String ¶
func (o *ExportUsersForbidden) String() string
type ExportUsersInternalServerError ¶
type ExportUsersInternalServerError struct {
Payload *models.ErrorResponse
}
ExportUsersInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewExportUsersInternalServerError ¶
func NewExportUsersInternalServerError() *ExportUsersInternalServerError
NewExportUsersInternalServerError creates a ExportUsersInternalServerError with default headers values
func (*ExportUsersInternalServerError) Code ¶
func (o *ExportUsersInternalServerError) Code() int
Code gets the status code for the export users internal server error response
func (*ExportUsersInternalServerError) Error ¶
func (o *ExportUsersInternalServerError) Error() string
func (*ExportUsersInternalServerError) GetPayload ¶
func (o *ExportUsersInternalServerError) GetPayload() *models.ErrorResponse
func (*ExportUsersInternalServerError) IsClientError ¶
func (o *ExportUsersInternalServerError) IsClientError() bool
IsClientError returns true when this export users internal server error response has a 4xx status code
func (*ExportUsersInternalServerError) IsCode ¶
func (o *ExportUsersInternalServerError) IsCode(code int) bool
IsCode returns true when this export users internal server error response a status code equal to that given
func (*ExportUsersInternalServerError) IsRedirect ¶
func (o *ExportUsersInternalServerError) IsRedirect() bool
IsRedirect returns true when this export users internal server error response has a 3xx status code
func (*ExportUsersInternalServerError) IsServerError ¶
func (o *ExportUsersInternalServerError) IsServerError() bool
IsServerError returns true when this export users internal server error response has a 5xx status code
func (*ExportUsersInternalServerError) IsSuccess ¶
func (o *ExportUsersInternalServerError) IsSuccess() bool
IsSuccess returns true when this export users internal server error response has a 2xx status code
func (*ExportUsersInternalServerError) String ¶
func (o *ExportUsersInternalServerError) String() string
type ExportUsersOK ¶
type ExportUsersOK struct {
Payload *models.UserExportResponse
}
ExportUsersOK describes a response with status code 200, with default header values.
The exported user credentials.
func NewExportUsersOK ¶
func NewExportUsersOK() *ExportUsersOK
NewExportUsersOK creates a ExportUsersOK with default headers values
func (*ExportUsersOK) Code ¶
func (o *ExportUsersOK) Code() int
Code gets the status code for the export users o k response
func (*ExportUsersOK) Error ¶
func (o *ExportUsersOK) Error() string
func (*ExportUsersOK) GetPayload ¶
func (o *ExportUsersOK) GetPayload() *models.UserExportResponse
func (*ExportUsersOK) IsClientError ¶
func (o *ExportUsersOK) IsClientError() bool
IsClientError returns true when this export users o k response has a 4xx status code
func (*ExportUsersOK) IsCode ¶
func (o *ExportUsersOK) IsCode(code int) bool
IsCode returns true when this export users o k response a status code equal to that given
func (*ExportUsersOK) IsRedirect ¶
func (o *ExportUsersOK) IsRedirect() bool
IsRedirect returns true when this export users o k response has a 3xx status code
func (*ExportUsersOK) IsServerError ¶
func (o *ExportUsersOK) IsServerError() bool
IsServerError returns true when this export users o k response has a 5xx status code
func (*ExportUsersOK) IsSuccess ¶
func (o *ExportUsersOK) IsSuccess() bool
IsSuccess returns true when this export users o k response has a 2xx status code
func (*ExportUsersOK) String ¶
func (o *ExportUsersOK) String() string
type ExportUsersParams ¶
type ExportUsersParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ExportUsersParams contains all the parameters to send to the API endpoint
for the export users operation. Typically these are written to a http.Request.
func NewExportUsersParams ¶
func NewExportUsersParams() *ExportUsersParams
NewExportUsersParams creates a new ExportUsersParams 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 NewExportUsersParamsWithContext ¶
func NewExportUsersParamsWithContext(ctx context.Context) *ExportUsersParams
NewExportUsersParamsWithContext creates a new ExportUsersParams object with the ability to set a context for a request.
func NewExportUsersParamsWithHTTPClient ¶
func NewExportUsersParamsWithHTTPClient(client *http.Client) *ExportUsersParams
NewExportUsersParamsWithHTTPClient creates a new ExportUsersParams object with the ability to set a custom HTTPClient for a request.
func NewExportUsersParamsWithTimeout ¶
func NewExportUsersParamsWithTimeout(timeout time.Duration) *ExportUsersParams
NewExportUsersParamsWithTimeout creates a new ExportUsersParams object with the ability to set a timeout on a request.
func (*ExportUsersParams) SetContext ¶
func (o *ExportUsersParams) SetContext(ctx context.Context)
SetContext adds the context to the export users params
func (*ExportUsersParams) SetDefaults ¶
func (o *ExportUsersParams) SetDefaults()
SetDefaults hydrates default values in the export users params (not the query body).
All values with no default are reset to their zero value.
func (*ExportUsersParams) SetHTTPClient ¶
func (o *ExportUsersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the export users params
func (*ExportUsersParams) SetTimeout ¶
func (o *ExportUsersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the export users params
func (*ExportUsersParams) WithContext ¶
func (o *ExportUsersParams) WithContext(ctx context.Context) *ExportUsersParams
WithContext adds the context to the export users params
func (*ExportUsersParams) WithDefaults ¶
func (o *ExportUsersParams) WithDefaults() *ExportUsersParams
WithDefaults hydrates default values in the export users params (not the query body).
All values with no default are reset to their zero value.
func (*ExportUsersParams) WithHTTPClient ¶
func (o *ExportUsersParams) WithHTTPClient(client *http.Client) *ExportUsersParams
WithHTTPClient adds the HTTPClient to the export users params
func (*ExportUsersParams) WithTimeout ¶
func (o *ExportUsersParams) WithTimeout(timeout time.Duration) *ExportUsersParams
WithTimeout adds the timeout to the export users params
func (*ExportUsersParams) WriteToRequest ¶
func (o *ExportUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ExportUsersReader ¶
type ExportUsersReader struct {
// contains filtered or unexported fields
}
ExportUsersReader is a Reader for the ExportUsers structure.
func (*ExportUsersReader) ReadResponse ¶
func (o *ExportUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ExportUsersUnauthorized ¶
type ExportUsersUnauthorized struct {
}
ExportUsersUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewExportUsersUnauthorized ¶
func NewExportUsersUnauthorized() *ExportUsersUnauthorized
NewExportUsersUnauthorized creates a ExportUsersUnauthorized with default headers values
func (*ExportUsersUnauthorized) Code ¶
func (o *ExportUsersUnauthorized) Code() int
Code gets the status code for the export users unauthorized response
func (*ExportUsersUnauthorized) Error ¶
func (o *ExportUsersUnauthorized) Error() string
func (*ExportUsersUnauthorized) IsClientError ¶
func (o *ExportUsersUnauthorized) IsClientError() bool
IsClientError returns true when this export users unauthorized response has a 4xx status code
func (*ExportUsersUnauthorized) IsCode ¶
func (o *ExportUsersUnauthorized) IsCode(code int) bool
IsCode returns true when this export users unauthorized response a status code equal to that given
func (*ExportUsersUnauthorized) IsRedirect ¶
func (o *ExportUsersUnauthorized) IsRedirect() bool
IsRedirect returns true when this export users unauthorized response has a 3xx status code
func (*ExportUsersUnauthorized) IsServerError ¶
func (o *ExportUsersUnauthorized) IsServerError() bool
IsServerError returns true when this export users unauthorized response has a 5xx status code
func (*ExportUsersUnauthorized) IsSuccess ¶
func (o *ExportUsersUnauthorized) IsSuccess() bool
IsSuccess returns true when this export users unauthorized response has a 2xx status code
func (*ExportUsersUnauthorized) String ¶
func (o *ExportUsersUnauthorized) String() string
type ExportUsersUnprocessableEntity ¶
type ExportUsersUnprocessableEntity struct {
Payload *models.ErrorResponse
}
ExportUsersUnprocessableEntity describes a response with status code 422, with default header values.
The request syntax is correct, but the server couldn't process it due to semantic issues. Please check the values in your request.
func NewExportUsersUnprocessableEntity ¶
func NewExportUsersUnprocessableEntity() *ExportUsersUnprocessableEntity
NewExportUsersUnprocessableEntity creates a ExportUsersUnprocessableEntity with default headers values
func (*ExportUsersUnprocessableEntity) Code ¶
func (o *ExportUsersUnprocessableEntity) Code() int
Code gets the status code for the export users unprocessable entity response
func (*ExportUsersUnprocessableEntity) Error ¶
func (o *ExportUsersUnprocessableEntity) Error() string
func (*ExportUsersUnprocessableEntity) GetPayload ¶
func (o *ExportUsersUnprocessableEntity) GetPayload() *models.ErrorResponse
func (*ExportUsersUnprocessableEntity) IsClientError ¶
func (o *ExportUsersUnprocessableEntity) IsClientError() bool
IsClientError returns true when this export users unprocessable entity response has a 4xx status code
func (*ExportUsersUnprocessableEntity) IsCode ¶
func (o *ExportUsersUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this export users unprocessable entity response a status code equal to that given
func (*ExportUsersUnprocessableEntity) IsRedirect ¶
func (o *ExportUsersUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this export users unprocessable entity response has a 3xx status code
func (*ExportUsersUnprocessableEntity) IsServerError ¶
func (o *ExportUsersUnprocessableEntity) IsServerError() bool
IsServerError returns true when this export users unprocessable entity response has a 5xx status code
func (*ExportUsersUnprocessableEntity) IsSuccess ¶
func (o *ExportUsersUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this export users unprocessable entity response has a 2xx status code
func (*ExportUsersUnprocessableEntity) String ¶
func (o *ExportUsersUnprocessableEntity) String() string
type ImportUsersBadRequest ¶
type ImportUsersBadRequest struct {
Payload *models.ErrorResponse
}
ImportUsersBadRequest describes a response with status code 400, with default header values.
Malformed request.
func NewImportUsersBadRequest ¶
func NewImportUsersBadRequest() *ImportUsersBadRequest
NewImportUsersBadRequest creates a ImportUsersBadRequest with default headers values
func (*ImportUsersBadRequest) Code ¶
func (o *ImportUsersBadRequest) Code() int
Code gets the status code for the import users bad request response
func (*ImportUsersBadRequest) Error ¶
func (o *ImportUsersBadRequest) Error() string
func (*ImportUsersBadRequest) GetPayload ¶
func (o *ImportUsersBadRequest) GetPayload() *models.ErrorResponse
func (*ImportUsersBadRequest) IsClientError ¶
func (o *ImportUsersBadRequest) IsClientError() bool
IsClientError returns true when this import users bad request response has a 4xx status code
func (*ImportUsersBadRequest) IsCode ¶
func (o *ImportUsersBadRequest) IsCode(code int) bool
IsCode returns true when this import users bad request response a status code equal to that given
func (*ImportUsersBadRequest) IsRedirect ¶
func (o *ImportUsersBadRequest) IsRedirect() bool
IsRedirect returns true when this import users bad request response has a 3xx status code
func (*ImportUsersBadRequest) IsServerError ¶
func (o *ImportUsersBadRequest) IsServerError() bool
IsServerError returns true when this import users bad request response has a 5xx status code
func (*ImportUsersBadRequest) IsSuccess ¶
func (o *ImportUsersBadRequest) IsSuccess() bool
IsSuccess returns true when this import users bad request response has a 2xx status code
func (*ImportUsersBadRequest) String ¶
func (o *ImportUsersBadRequest) String() string
type ImportUsersForbidden ¶
type ImportUsersForbidden struct {
Payload *models.ErrorResponse
}
ImportUsersForbidden describes a response with status code 403, with default header values.
Forbidden
func NewImportUsersForbidden ¶
func NewImportUsersForbidden() *ImportUsersForbidden
NewImportUsersForbidden creates a ImportUsersForbidden with default headers values
func (*ImportUsersForbidden) Code ¶
func (o *ImportUsersForbidden) Code() int
Code gets the status code for the import users forbidden response
func (*ImportUsersForbidden) Error ¶
func (o *ImportUsersForbidden) Error() string
func (*ImportUsersForbidden) GetPayload ¶
func (o *ImportUsersForbidden) GetPayload() *models.ErrorResponse
func (*ImportUsersForbidden) IsClientError ¶
func (o *ImportUsersForbidden) IsClientError() bool
IsClientError returns true when this import users forbidden response has a 4xx status code
func (*ImportUsersForbidden) IsCode ¶
func (o *ImportUsersForbidden) IsCode(code int) bool
IsCode returns true when this import users forbidden response a status code equal to that given
func (*ImportUsersForbidden) IsRedirect ¶
func (o *ImportUsersForbidden) IsRedirect() bool
IsRedirect returns true when this import users forbidden response has a 3xx status code
func (*ImportUsersForbidden) IsServerError ¶
func (o *ImportUsersForbidden) IsServerError() bool
IsServerError returns true when this import users forbidden response has a 5xx status code
func (*ImportUsersForbidden) IsSuccess ¶
func (o *ImportUsersForbidden) IsSuccess() bool
IsSuccess returns true when this import users forbidden response has a 2xx status code
func (*ImportUsersForbidden) String ¶
func (o *ImportUsersForbidden) String() string
type ImportUsersInternalServerError ¶
type ImportUsersInternalServerError struct {
Payload *models.ErrorResponse
}
ImportUsersInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewImportUsersInternalServerError ¶
func NewImportUsersInternalServerError() *ImportUsersInternalServerError
NewImportUsersInternalServerError creates a ImportUsersInternalServerError with default headers values
func (*ImportUsersInternalServerError) Code ¶
func (o *ImportUsersInternalServerError) Code() int
Code gets the status code for the import users internal server error response
func (*ImportUsersInternalServerError) Error ¶
func (o *ImportUsersInternalServerError) Error() string
func (*ImportUsersInternalServerError) GetPayload ¶
func (o *ImportUsersInternalServerError) GetPayload() *models.ErrorResponse
func (*ImportUsersInternalServerError) IsClientError ¶
func (o *ImportUsersInternalServerError) IsClientError() bool
IsClientError returns true when this import users internal server error response has a 4xx status code
func (*ImportUsersInternalServerError) IsCode ¶
func (o *ImportUsersInternalServerError) IsCode(code int) bool
IsCode returns true when this import users internal server error response a status code equal to that given
func (*ImportUsersInternalServerError) IsRedirect ¶
func (o *ImportUsersInternalServerError) IsRedirect() bool
IsRedirect returns true when this import users internal server error response has a 3xx status code
func (*ImportUsersInternalServerError) IsServerError ¶
func (o *ImportUsersInternalServerError) IsServerError() bool
IsServerError returns true when this import users internal server error response has a 5xx status code
func (*ImportUsersInternalServerError) IsSuccess ¶
func (o *ImportUsersInternalServerError) IsSuccess() bool
IsSuccess returns true when this import users internal server error response has a 2xx status code
func (*ImportUsersInternalServerError) String ¶
func (o *ImportUsersInternalServerError) String() string
type ImportUsersOK ¶
type ImportUsersOK struct {
Payload *models.UserImportResponse
}
ImportUsersOK describes a response with status code 200, with default header values.
The per-user import results.
func NewImportUsersOK ¶
func NewImportUsersOK() *ImportUsersOK
NewImportUsersOK creates a ImportUsersOK with default headers values
func (*ImportUsersOK) Code ¶
func (o *ImportUsersOK) Code() int
Code gets the status code for the import users o k response
func (*ImportUsersOK) Error ¶
func (o *ImportUsersOK) Error() string
func (*ImportUsersOK) GetPayload ¶
func (o *ImportUsersOK) GetPayload() *models.UserImportResponse
func (*ImportUsersOK) IsClientError ¶
func (o *ImportUsersOK) IsClientError() bool
IsClientError returns true when this import users o k response has a 4xx status code
func (*ImportUsersOK) IsCode ¶
func (o *ImportUsersOK) IsCode(code int) bool
IsCode returns true when this import users o k response a status code equal to that given
func (*ImportUsersOK) IsRedirect ¶
func (o *ImportUsersOK) IsRedirect() bool
IsRedirect returns true when this import users o k response has a 3xx status code
func (*ImportUsersOK) IsServerError ¶
func (o *ImportUsersOK) IsServerError() bool
IsServerError returns true when this import users o k response has a 5xx status code
func (*ImportUsersOK) IsSuccess ¶
func (o *ImportUsersOK) IsSuccess() bool
IsSuccess returns true when this import users o k response has a 2xx status code
func (*ImportUsersOK) String ¶
func (o *ImportUsersOK) String() string
type ImportUsersParams ¶
type ImportUsersParams struct {
// Body.
Body *models.UserImportRequest
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ImportUsersParams contains all the parameters to send to the API endpoint
for the import users operation. Typically these are written to a http.Request.
func NewImportUsersParams ¶
func NewImportUsersParams() *ImportUsersParams
NewImportUsersParams creates a new ImportUsersParams 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 NewImportUsersParamsWithContext ¶
func NewImportUsersParamsWithContext(ctx context.Context) *ImportUsersParams
NewImportUsersParamsWithContext creates a new ImportUsersParams object with the ability to set a context for a request.
func NewImportUsersParamsWithHTTPClient ¶
func NewImportUsersParamsWithHTTPClient(client *http.Client) *ImportUsersParams
NewImportUsersParamsWithHTTPClient creates a new ImportUsersParams object with the ability to set a custom HTTPClient for a request.
func NewImportUsersParamsWithTimeout ¶
func NewImportUsersParamsWithTimeout(timeout time.Duration) *ImportUsersParams
NewImportUsersParamsWithTimeout creates a new ImportUsersParams object with the ability to set a timeout on a request.
func (*ImportUsersParams) SetBody ¶
func (o *ImportUsersParams) SetBody(body *models.UserImportRequest)
SetBody adds the body to the import users params
func (*ImportUsersParams) SetContext ¶
func (o *ImportUsersParams) SetContext(ctx context.Context)
SetContext adds the context to the import users params
func (*ImportUsersParams) SetDefaults ¶
func (o *ImportUsersParams) SetDefaults()
SetDefaults hydrates default values in the import users params (not the query body).
All values with no default are reset to their zero value.
func (*ImportUsersParams) SetHTTPClient ¶
func (o *ImportUsersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the import users params
func (*ImportUsersParams) SetTimeout ¶
func (o *ImportUsersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the import users params
func (*ImportUsersParams) WithBody ¶
func (o *ImportUsersParams) WithBody(body *models.UserImportRequest) *ImportUsersParams
WithBody adds the body to the import users params
func (*ImportUsersParams) WithContext ¶
func (o *ImportUsersParams) WithContext(ctx context.Context) *ImportUsersParams
WithContext adds the context to the import users params
func (*ImportUsersParams) WithDefaults ¶
func (o *ImportUsersParams) WithDefaults() *ImportUsersParams
WithDefaults hydrates default values in the import users params (not the query body).
All values with no default are reset to their zero value.
func (*ImportUsersParams) WithHTTPClient ¶
func (o *ImportUsersParams) WithHTTPClient(client *http.Client) *ImportUsersParams
WithHTTPClient adds the HTTPClient to the import users params
func (*ImportUsersParams) WithTimeout ¶
func (o *ImportUsersParams) WithTimeout(timeout time.Duration) *ImportUsersParams
WithTimeout adds the timeout to the import users params
func (*ImportUsersParams) WriteToRequest ¶
func (o *ImportUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ImportUsersReader ¶
type ImportUsersReader struct {
// contains filtered or unexported fields
}
ImportUsersReader is a Reader for the ImportUsers structure.
func (*ImportUsersReader) ReadResponse ¶
func (o *ImportUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ImportUsersUnauthorized ¶
type ImportUsersUnauthorized struct {
}
ImportUsersUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewImportUsersUnauthorized ¶
func NewImportUsersUnauthorized() *ImportUsersUnauthorized
NewImportUsersUnauthorized creates a ImportUsersUnauthorized with default headers values
func (*ImportUsersUnauthorized) Code ¶
func (o *ImportUsersUnauthorized) Code() int
Code gets the status code for the import users unauthorized response
func (*ImportUsersUnauthorized) Error ¶
func (o *ImportUsersUnauthorized) Error() string
func (*ImportUsersUnauthorized) IsClientError ¶
func (o *ImportUsersUnauthorized) IsClientError() bool
IsClientError returns true when this import users unauthorized response has a 4xx status code
func (*ImportUsersUnauthorized) IsCode ¶
func (o *ImportUsersUnauthorized) IsCode(code int) bool
IsCode returns true when this import users unauthorized response a status code equal to that given
func (*ImportUsersUnauthorized) IsRedirect ¶
func (o *ImportUsersUnauthorized) IsRedirect() bool
IsRedirect returns true when this import users unauthorized response has a 3xx status code
func (*ImportUsersUnauthorized) IsServerError ¶
func (o *ImportUsersUnauthorized) IsServerError() bool
IsServerError returns true when this import users unauthorized response has a 5xx status code
func (*ImportUsersUnauthorized) IsSuccess ¶
func (o *ImportUsersUnauthorized) IsSuccess() bool
IsSuccess returns true when this import users unauthorized response has a 2xx status code
func (*ImportUsersUnauthorized) String ¶
func (o *ImportUsersUnauthorized) String() string
type ImportUsersUnprocessableEntity ¶
type ImportUsersUnprocessableEntity struct {
Payload *models.ErrorResponse
}
ImportUsersUnprocessableEntity describes a response with status code 422, with default header values.
The request syntax is correct, but the server couldn't process it due to semantic issues. Please check the values in your request.
func NewImportUsersUnprocessableEntity ¶
func NewImportUsersUnprocessableEntity() *ImportUsersUnprocessableEntity
NewImportUsersUnprocessableEntity creates a ImportUsersUnprocessableEntity with default headers values
func (*ImportUsersUnprocessableEntity) Code ¶
func (o *ImportUsersUnprocessableEntity) Code() int
Code gets the status code for the import users unprocessable entity response
func (*ImportUsersUnprocessableEntity) Error ¶
func (o *ImportUsersUnprocessableEntity) Error() string
func (*ImportUsersUnprocessableEntity) GetPayload ¶
func (o *ImportUsersUnprocessableEntity) GetPayload() *models.ErrorResponse
func (*ImportUsersUnprocessableEntity) IsClientError ¶
func (o *ImportUsersUnprocessableEntity) IsClientError() bool
IsClientError returns true when this import users unprocessable entity response has a 4xx status code
func (*ImportUsersUnprocessableEntity) IsCode ¶
func (o *ImportUsersUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this import users unprocessable entity response a status code equal to that given
func (*ImportUsersUnprocessableEntity) IsRedirect ¶
func (o *ImportUsersUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this import users unprocessable entity response has a 3xx status code
func (*ImportUsersUnprocessableEntity) IsServerError ¶
func (o *ImportUsersUnprocessableEntity) IsServerError() bool
IsServerError returns true when this import users unprocessable entity response has a 5xx status code
func (*ImportUsersUnprocessableEntity) IsSuccess ¶
func (o *ImportUsersUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this import users unprocessable entity response has a 2xx status code
func (*ImportUsersUnprocessableEntity) String ¶
func (o *ImportUsersUnprocessableEntity) String() string