Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter) (*CreateUserCreated, error)
- func (a *Client) DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteUserOK, error)
- func (a *Client) GetCurrentUser(params *GetCurrentUserParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrentUserOK, error)
- func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOK, error)
- func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter) (*GetUsersOK, error)
- func (a *Client) ModifyPassword(params *ModifyPasswordParams, authInfo runtime.ClientAuthInfoWriter) (*ModifyPasswordAccepted, error)
- func (a *Client) ModifyUser(params *ModifyUserParams, authInfo runtime.ClientAuthInfoWriter) (*ModifyUserOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type CreateUserBadRequest
- type CreateUserCreated
- type CreateUserDefault
- type CreateUserParams
- func (o *CreateUserParams) SetAuthorization(authorization string)
- func (o *CreateUserParams) SetBody(body *models.V4CreateUserRequest)
- func (o *CreateUserParams) SetContext(ctx context.Context)
- func (o *CreateUserParams) SetEmail(email string)
- func (o *CreateUserParams) SetHTTPClient(client *http.Client)
- func (o *CreateUserParams) SetTimeout(timeout time.Duration)
- func (o *CreateUserParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *CreateUserParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *CreateUserParams) SetXRequestID(xRequestID *string)
- func (o *CreateUserParams) WithAuthorization(authorization string) *CreateUserParams
- func (o *CreateUserParams) WithBody(body *models.V4CreateUserRequest) *CreateUserParams
- func (o *CreateUserParams) WithContext(ctx context.Context) *CreateUserParams
- func (o *CreateUserParams) WithEmail(email string) *CreateUserParams
- func (o *CreateUserParams) WithHTTPClient(client *http.Client) *CreateUserParams
- func (o *CreateUserParams) WithTimeout(timeout time.Duration) *CreateUserParams
- func (o *CreateUserParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *CreateUserParams
- func (o *CreateUserParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *CreateUserParams
- func (o *CreateUserParams) WithXRequestID(xRequestID *string) *CreateUserParams
- func (o *CreateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateUserReader
- type CreateUserUnauthorized
- type DeleteUserDefault
- type DeleteUserNotFound
- type DeleteUserOK
- type DeleteUserParams
- func (o *DeleteUserParams) SetAuthorization(authorization string)
- func (o *DeleteUserParams) SetContext(ctx context.Context)
- func (o *DeleteUserParams) SetEmail(email string)
- func (o *DeleteUserParams) SetHTTPClient(client *http.Client)
- func (o *DeleteUserParams) SetTimeout(timeout time.Duration)
- func (o *DeleteUserParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *DeleteUserParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *DeleteUserParams) SetXRequestID(xRequestID *string)
- func (o *DeleteUserParams) WithAuthorization(authorization string) *DeleteUserParams
- func (o *DeleteUserParams) WithContext(ctx context.Context) *DeleteUserParams
- func (o *DeleteUserParams) WithEmail(email string) *DeleteUserParams
- func (o *DeleteUserParams) WithHTTPClient(client *http.Client) *DeleteUserParams
- func (o *DeleteUserParams) WithTimeout(timeout time.Duration) *DeleteUserParams
- func (o *DeleteUserParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *DeleteUserParams
- func (o *DeleteUserParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *DeleteUserParams
- func (o *DeleteUserParams) WithXRequestID(xRequestID *string) *DeleteUserParams
- func (o *DeleteUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteUserReader
- type DeleteUserUnauthorized
- type GetCurrentUserDefault
- type GetCurrentUserOK
- type GetCurrentUserParams
- func NewGetCurrentUserParams() *GetCurrentUserParams
- func NewGetCurrentUserParamsWithContext(ctx context.Context) *GetCurrentUserParams
- func NewGetCurrentUserParamsWithHTTPClient(client *http.Client) *GetCurrentUserParams
- func NewGetCurrentUserParamsWithTimeout(timeout time.Duration) *GetCurrentUserParams
- func (o *GetCurrentUserParams) SetAuthorization(authorization string)
- func (o *GetCurrentUserParams) SetContext(ctx context.Context)
- func (o *GetCurrentUserParams) SetHTTPClient(client *http.Client)
- func (o *GetCurrentUserParams) SetTimeout(timeout time.Duration)
- func (o *GetCurrentUserParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *GetCurrentUserParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *GetCurrentUserParams) SetXRequestID(xRequestID *string)
- func (o *GetCurrentUserParams) WithAuthorization(authorization string) *GetCurrentUserParams
- func (o *GetCurrentUserParams) WithContext(ctx context.Context) *GetCurrentUserParams
- func (o *GetCurrentUserParams) WithHTTPClient(client *http.Client) *GetCurrentUserParams
- func (o *GetCurrentUserParams) WithTimeout(timeout time.Duration) *GetCurrentUserParams
- func (o *GetCurrentUserParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetCurrentUserParams
- func (o *GetCurrentUserParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetCurrentUserParams
- func (o *GetCurrentUserParams) WithXRequestID(xRequestID *string) *GetCurrentUserParams
- func (o *GetCurrentUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCurrentUserReader
- type GetCurrentUserUnauthorized
- type GetUserDefault
- type GetUserNotFound
- type GetUserOK
- type GetUserParams
- func (o *GetUserParams) SetAuthorization(authorization string)
- func (o *GetUserParams) SetContext(ctx context.Context)
- func (o *GetUserParams) SetEmail(email string)
- func (o *GetUserParams) SetHTTPClient(client *http.Client)
- func (o *GetUserParams) SetTimeout(timeout time.Duration)
- func (o *GetUserParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *GetUserParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *GetUserParams) SetXRequestID(xRequestID *string)
- func (o *GetUserParams) WithAuthorization(authorization string) *GetUserParams
- func (o *GetUserParams) WithContext(ctx context.Context) *GetUserParams
- func (o *GetUserParams) WithEmail(email string) *GetUserParams
- func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams
- func (o *GetUserParams) WithTimeout(timeout time.Duration) *GetUserParams
- func (o *GetUserParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetUserParams
- func (o *GetUserParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetUserParams
- func (o *GetUserParams) WithXRequestID(xRequestID *string) *GetUserParams
- func (o *GetUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserReader
- type GetUserUnauthorized
- type GetUsersDefault
- type GetUsersOK
- type GetUsersParams
- func (o *GetUsersParams) SetAuthorization(authorization string)
- func (o *GetUsersParams) SetContext(ctx context.Context)
- func (o *GetUsersParams) SetHTTPClient(client *http.Client)
- func (o *GetUsersParams) SetTimeout(timeout time.Duration)
- func (o *GetUsersParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *GetUsersParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *GetUsersParams) SetXRequestID(xRequestID *string)
- func (o *GetUsersParams) WithAuthorization(authorization string) *GetUsersParams
- func (o *GetUsersParams) WithContext(ctx context.Context) *GetUsersParams
- func (o *GetUsersParams) WithHTTPClient(client *http.Client) *GetUsersParams
- func (o *GetUsersParams) WithTimeout(timeout time.Duration) *GetUsersParams
- func (o *GetUsersParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetUsersParams
- func (o *GetUsersParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetUsersParams
- func (o *GetUsersParams) WithXRequestID(xRequestID *string) *GetUsersParams
- func (o *GetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUsersReader
- type GetUsersUnauthorized
- type ModifyPasswordAccepted
- type ModifyPasswordDefault
- type ModifyPasswordNotFound
- type ModifyPasswordParams
- func NewModifyPasswordParams() *ModifyPasswordParams
- func NewModifyPasswordParamsWithContext(ctx context.Context) *ModifyPasswordParams
- func NewModifyPasswordParamsWithHTTPClient(client *http.Client) *ModifyPasswordParams
- func NewModifyPasswordParamsWithTimeout(timeout time.Duration) *ModifyPasswordParams
- func (o *ModifyPasswordParams) SetAuthorization(authorization string)
- func (o *ModifyPasswordParams) SetBody(body *models.V4ModifyUserPasswordRequest)
- func (o *ModifyPasswordParams) SetContext(ctx context.Context)
- func (o *ModifyPasswordParams) SetEmail(email string)
- func (o *ModifyPasswordParams) SetHTTPClient(client *http.Client)
- func (o *ModifyPasswordParams) SetTimeout(timeout time.Duration)
- func (o *ModifyPasswordParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *ModifyPasswordParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *ModifyPasswordParams) SetXRequestID(xRequestID *string)
- func (o *ModifyPasswordParams) WithAuthorization(authorization string) *ModifyPasswordParams
- func (o *ModifyPasswordParams) WithBody(body *models.V4ModifyUserPasswordRequest) *ModifyPasswordParams
- func (o *ModifyPasswordParams) WithContext(ctx context.Context) *ModifyPasswordParams
- func (o *ModifyPasswordParams) WithEmail(email string) *ModifyPasswordParams
- func (o *ModifyPasswordParams) WithHTTPClient(client *http.Client) *ModifyPasswordParams
- func (o *ModifyPasswordParams) WithTimeout(timeout time.Duration) *ModifyPasswordParams
- func (o *ModifyPasswordParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *ModifyPasswordParams
- func (o *ModifyPasswordParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *ModifyPasswordParams
- func (o *ModifyPasswordParams) WithXRequestID(xRequestID *string) *ModifyPasswordParams
- func (o *ModifyPasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ModifyPasswordReader
- type ModifyPasswordUnauthorized
- type ModifyUserDefault
- type ModifyUserOK
- type ModifyUserParams
- func (o *ModifyUserParams) SetAuthorization(authorization string)
- func (o *ModifyUserParams) SetBody(body *models.V4ModifyUserRequest)
- func (o *ModifyUserParams) SetContext(ctx context.Context)
- func (o *ModifyUserParams) SetEmail(email string)
- func (o *ModifyUserParams) SetHTTPClient(client *http.Client)
- func (o *ModifyUserParams) SetTimeout(timeout time.Duration)
- func (o *ModifyUserParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *ModifyUserParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *ModifyUserParams) SetXRequestID(xRequestID *string)
- func (o *ModifyUserParams) WithAuthorization(authorization string) *ModifyUserParams
- func (o *ModifyUserParams) WithBody(body *models.V4ModifyUserRequest) *ModifyUserParams
- func (o *ModifyUserParams) WithContext(ctx context.Context) *ModifyUserParams
- func (o *ModifyUserParams) WithEmail(email string) *ModifyUserParams
- func (o *ModifyUserParams) WithHTTPClient(client *http.Client) *ModifyUserParams
- func (o *ModifyUserParams) WithTimeout(timeout time.Duration) *ModifyUserParams
- func (o *ModifyUserParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *ModifyUserParams
- func (o *ModifyUserParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *ModifyUserParams
- func (o *ModifyUserParams) WithXRequestID(xRequestID *string) *ModifyUserParams
- func (o *ModifyUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ModifyUserReader
- type ModifyUserUnauthorized
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 users API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new users API client.
func (*Client) CreateUser ¶
func (a *Client) CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter) (*CreateUserCreated, error)
CreateUser creates user
Creates a users in the system. Currently this endpoint is only available to users with admin permissions.
func (*Client) DeleteUser ¶
func (a *Client) DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteUserOK, error)
DeleteUser deletes user
Deletes a users in the system. Currently this endpoint is only available to users with admin permissions.
func (*Client) GetCurrentUser ¶
func (a *Client) GetCurrentUser(params *GetCurrentUserParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrentUserOK, error)
GetCurrentUser gets current user
Returns details about the currently authenticated user
func (*Client) GetUser ¶
func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOK, error)
GetUser gets user
Returns details about a specific user
func (*Client) GetUsers ¶
func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter) (*GetUsersOK, error)
GetUsers gets users
Returns a list of all users in the system. Currently this endpoint is only available to users with admin permissions.
func (*Client) ModifyPassword ¶
func (a *Client) ModifyPassword(params *ModifyPasswordParams, authInfo runtime.ClientAuthInfoWriter) (*ModifyPasswordAccepted, error)
ModifyPassword modifies password
This operation allows you to change your password. Admins are able to change passwords of other users.
func (*Client) ModifyUser ¶
func (a *Client) ModifyUser(params *ModifyUserParams, authInfo runtime.ClientAuthInfoWriter) (*ModifyUserOK, error)
ModifyUser modifies user
This operation allows you to change details of a given user. Only administrators can edit accounts of other users.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type CreateUserBadRequest ¶
type CreateUserBadRequest struct {
Payload *models.V4GenericResponse
}
CreateUserBadRequest handles this case with default header values.
User already exists
func NewCreateUserBadRequest ¶
func NewCreateUserBadRequest() *CreateUserBadRequest
NewCreateUserBadRequest creates a CreateUserBadRequest with default headers values
func (*CreateUserBadRequest) Error ¶
func (o *CreateUserBadRequest) Error() string
type CreateUserCreated ¶
type CreateUserCreated struct {
Payload *models.V4GenericResponse
}
CreateUserCreated handles this case with default header values.
User created
func NewCreateUserCreated ¶
func NewCreateUserCreated() *CreateUserCreated
NewCreateUserCreated creates a CreateUserCreated with default headers values
func (*CreateUserCreated) Error ¶
func (o *CreateUserCreated) Error() string
type CreateUserDefault ¶
type CreateUserDefault struct { Payload *models.V4GenericResponse // contains filtered or unexported fields }
CreateUserDefault handles this case with default header values.
Error
func NewCreateUserDefault ¶
func NewCreateUserDefault(code int) *CreateUserDefault
NewCreateUserDefault creates a CreateUserDefault with default headers values
func (*CreateUserDefault) Code ¶
func (o *CreateUserDefault) Code() int
Code gets the status code for the create user default response
func (*CreateUserDefault) Error ¶
func (o *CreateUserDefault) Error() string
type CreateUserParams ¶
type CreateUserParams struct { /*Authorization As described in the [authentication](#section/Authentication) section */ Authorization string /*XGiantSwarmActivity Name of an activity to track, like "list-clusters". This allows to analyze several API requests sent in context and gives an idea on the purpose. */ XGiantSwarmActivity *string /*XGiantSwarmCmdLine If activity has been issued by a CLI, this header can contain the command line */ XGiantSwarmCmdLine *string /*XRequestID A randomly generated key that can be used to track a request throughout services of Giant Swarm. */ XRequestID *string /*Body User account details */ Body *models.V4CreateUserRequest /*Email The user's email address */ Email string 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 values initialized.
func NewCreateUserParamsWithContext ¶
func NewCreateUserParamsWithContext(ctx context.Context) *CreateUserParams
NewCreateUserParamsWithContext creates a new CreateUserParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request
func (*CreateUserParams) SetAuthorization ¶
func (o *CreateUserParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the create user params
func (*CreateUserParams) SetBody ¶
func (o *CreateUserParams) SetBody(body *models.V4CreateUserRequest)
SetBody adds the body 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) SetEmail ¶
func (o *CreateUserParams) SetEmail(email string)
SetEmail adds the email to the create user params
func (*CreateUserParams) SetHTTPClient ¶
func (o *CreateUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient 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) SetXGiantSwarmActivity ¶
func (o *CreateUserParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the create user params
func (*CreateUserParams) SetXGiantSwarmCmdLine ¶
func (o *CreateUserParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the create user params
func (*CreateUserParams) SetXRequestID ¶
func (o *CreateUserParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the create user params
func (*CreateUserParams) WithAuthorization ¶
func (o *CreateUserParams) WithAuthorization(authorization string) *CreateUserParams
WithAuthorization adds the authorization to the create user params
func (*CreateUserParams) WithBody ¶
func (o *CreateUserParams) WithBody(body *models.V4CreateUserRequest) *CreateUserParams
WithBody adds the body 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) WithEmail ¶
func (o *CreateUserParams) WithEmail(email string) *CreateUserParams
WithEmail adds the email to the create user params
func (*CreateUserParams) WithHTTPClient ¶
func (o *CreateUserParams) WithHTTPClient(client *http.Client) *CreateUserParams
WithHTTPClient adds the HTTPClient 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) WithXGiantSwarmActivity ¶
func (o *CreateUserParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *CreateUserParams
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the create user params
func (*CreateUserParams) WithXGiantSwarmCmdLine ¶
func (o *CreateUserParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *CreateUserParams
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the create user params
func (*CreateUserParams) WithXRequestID ¶
func (o *CreateUserParams) WithXRequestID(xRequestID *string) *CreateUserParams
WithXRequestID adds the xRequestID 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 CreateUserUnauthorized ¶
type CreateUserUnauthorized struct {
}CreateUserUnauthorized handles this case with default header values.
Permission denied
func NewCreateUserUnauthorized ¶
func NewCreateUserUnauthorized() *CreateUserUnauthorized
NewCreateUserUnauthorized creates a CreateUserUnauthorized with default headers values
func (*CreateUserUnauthorized) Error ¶
func (o *CreateUserUnauthorized) Error() string
type DeleteUserDefault ¶
type DeleteUserDefault struct { Payload *models.V4GenericResponse // contains filtered or unexported fields }
DeleteUserDefault handles this case with default header values.
Error
func NewDeleteUserDefault ¶
func NewDeleteUserDefault(code int) *DeleteUserDefault
NewDeleteUserDefault creates a DeleteUserDefault with default headers values
func (*DeleteUserDefault) Code ¶
func (o *DeleteUserDefault) Code() int
Code gets the status code for the delete user default response
func (*DeleteUserDefault) Error ¶
func (o *DeleteUserDefault) Error() string
type DeleteUserNotFound ¶
type DeleteUserNotFound struct {
Payload *models.V4GenericResponse
}
DeleteUserNotFound handles this case with default header values.
User not found
func NewDeleteUserNotFound ¶
func NewDeleteUserNotFound() *DeleteUserNotFound
NewDeleteUserNotFound creates a DeleteUserNotFound with default headers values
func (*DeleteUserNotFound) Error ¶
func (o *DeleteUserNotFound) Error() string
type DeleteUserOK ¶
type DeleteUserOK struct {
Payload *models.V4GenericResponse
}
DeleteUserOK handles this case with default header values.
User deleted
func NewDeleteUserOK ¶
func NewDeleteUserOK() *DeleteUserOK
NewDeleteUserOK creates a DeleteUserOK with default headers values
func (*DeleteUserOK) Error ¶
func (o *DeleteUserOK) Error() string
type DeleteUserParams ¶
type DeleteUserParams struct { /*Authorization As described in the [authentication](#section/Authentication) section */ Authorization string /*XGiantSwarmActivity Name of an activity to track, like "list-clusters". This allows to analyze several API requests sent in context and gives an idea on the purpose. */ XGiantSwarmActivity *string /*XGiantSwarmCmdLine If activity has been issued by a CLI, this header can contain the command line */ XGiantSwarmCmdLine *string /*XRequestID A randomly generated key that can be used to track a request throughout services of Giant Swarm. */ XRequestID *string /*Email The user's email address */ Email string 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 values initialized.
func NewDeleteUserParamsWithContext ¶
func NewDeleteUserParamsWithContext(ctx context.Context) *DeleteUserParams
NewDeleteUserParamsWithContext creates a new DeleteUserParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request
func (*DeleteUserParams) SetAuthorization ¶
func (o *DeleteUserParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization 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) SetEmail ¶
func (o *DeleteUserParams) SetEmail(email string)
SetEmail adds the email to the delete user params
func (*DeleteUserParams) SetHTTPClient ¶
func (o *DeleteUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient 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) SetXGiantSwarmActivity ¶
func (o *DeleteUserParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the delete user params
func (*DeleteUserParams) SetXGiantSwarmCmdLine ¶
func (o *DeleteUserParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the delete user params
func (*DeleteUserParams) SetXRequestID ¶
func (o *DeleteUserParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the delete user params
func (*DeleteUserParams) WithAuthorization ¶
func (o *DeleteUserParams) WithAuthorization(authorization string) *DeleteUserParams
WithAuthorization adds the authorization 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) WithEmail ¶
func (o *DeleteUserParams) WithEmail(email string) *DeleteUserParams
WithEmail adds the email to the delete user params
func (*DeleteUserParams) WithHTTPClient ¶
func (o *DeleteUserParams) WithHTTPClient(client *http.Client) *DeleteUserParams
WithHTTPClient adds the HTTPClient 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) WithXGiantSwarmActivity ¶
func (o *DeleteUserParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *DeleteUserParams
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the delete user params
func (*DeleteUserParams) WithXGiantSwarmCmdLine ¶
func (o *DeleteUserParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *DeleteUserParams
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the delete user params
func (*DeleteUserParams) WithXRequestID ¶
func (o *DeleteUserParams) WithXRequestID(xRequestID *string) *DeleteUserParams
WithXRequestID adds the xRequestID 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 DeleteUserUnauthorized ¶
type DeleteUserUnauthorized struct {
}DeleteUserUnauthorized handles this case with default header values.
Permission denied
func NewDeleteUserUnauthorized ¶
func NewDeleteUserUnauthorized() *DeleteUserUnauthorized
NewDeleteUserUnauthorized creates a DeleteUserUnauthorized with default headers values
func (*DeleteUserUnauthorized) Error ¶
func (o *DeleteUserUnauthorized) Error() string
type GetCurrentUserDefault ¶
type GetCurrentUserDefault struct { Payload *models.V4GenericResponse // contains filtered or unexported fields }
GetCurrentUserDefault handles this case with default header values.
Error
func NewGetCurrentUserDefault ¶
func NewGetCurrentUserDefault(code int) *GetCurrentUserDefault
NewGetCurrentUserDefault creates a GetCurrentUserDefault with default headers values
func (*GetCurrentUserDefault) Code ¶
func (o *GetCurrentUserDefault) Code() int
Code gets the status code for the get current user default response
func (*GetCurrentUserDefault) Error ¶
func (o *GetCurrentUserDefault) Error() string
type GetCurrentUserOK ¶
type GetCurrentUserOK struct {
Payload *models.V4UserListItem
}
GetCurrentUserOK handles this case with default header values.
Success
func NewGetCurrentUserOK ¶
func NewGetCurrentUserOK() *GetCurrentUserOK
NewGetCurrentUserOK creates a GetCurrentUserOK with default headers values
func (*GetCurrentUserOK) Error ¶
func (o *GetCurrentUserOK) Error() string
type GetCurrentUserParams ¶
type GetCurrentUserParams struct { /*Authorization As described in the [authentication](#section/Authentication) section */ Authorization string /*XGiantSwarmActivity Name of an activity to track, like "list-clusters". This allows to analyze several API requests sent in context and gives an idea on the purpose. */ XGiantSwarmActivity *string /*XGiantSwarmCmdLine If activity has been issued by a CLI, this header can contain the command line */ XGiantSwarmCmdLine *string /*XRequestID A randomly generated key that can be used to track a request throughout services of Giant Swarm. */ XRequestID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCurrentUserParams contains all the parameters to send to the API endpoint for the get current user operation typically these are written to a http.Request
func NewGetCurrentUserParams ¶
func NewGetCurrentUserParams() *GetCurrentUserParams
NewGetCurrentUserParams creates a new GetCurrentUserParams object with the default values initialized.
func NewGetCurrentUserParamsWithContext ¶
func NewGetCurrentUserParamsWithContext(ctx context.Context) *GetCurrentUserParams
NewGetCurrentUserParamsWithContext creates a new GetCurrentUserParams object with the default values initialized, and the ability to set a context for a request
func NewGetCurrentUserParamsWithHTTPClient ¶
func NewGetCurrentUserParamsWithHTTPClient(client *http.Client) *GetCurrentUserParams
NewGetCurrentUserParamsWithHTTPClient creates a new GetCurrentUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetCurrentUserParamsWithTimeout ¶
func NewGetCurrentUserParamsWithTimeout(timeout time.Duration) *GetCurrentUserParams
NewGetCurrentUserParamsWithTimeout creates a new GetCurrentUserParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetCurrentUserParams) SetAuthorization ¶
func (o *GetCurrentUserParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the get current user params
func (*GetCurrentUserParams) SetContext ¶
func (o *GetCurrentUserParams) SetContext(ctx context.Context)
SetContext adds the context to the get current user params
func (*GetCurrentUserParams) SetHTTPClient ¶
func (o *GetCurrentUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get current user params
func (*GetCurrentUserParams) SetTimeout ¶
func (o *GetCurrentUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get current user params
func (*GetCurrentUserParams) SetXGiantSwarmActivity ¶
func (o *GetCurrentUserParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get current user params
func (*GetCurrentUserParams) SetXGiantSwarmCmdLine ¶
func (o *GetCurrentUserParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get current user params
func (*GetCurrentUserParams) SetXRequestID ¶
func (o *GetCurrentUserParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get current user params
func (*GetCurrentUserParams) WithAuthorization ¶
func (o *GetCurrentUserParams) WithAuthorization(authorization string) *GetCurrentUserParams
WithAuthorization adds the authorization to the get current user params
func (*GetCurrentUserParams) WithContext ¶
func (o *GetCurrentUserParams) WithContext(ctx context.Context) *GetCurrentUserParams
WithContext adds the context to the get current user params
func (*GetCurrentUserParams) WithHTTPClient ¶
func (o *GetCurrentUserParams) WithHTTPClient(client *http.Client) *GetCurrentUserParams
WithHTTPClient adds the HTTPClient to the get current user params
func (*GetCurrentUserParams) WithTimeout ¶
func (o *GetCurrentUserParams) WithTimeout(timeout time.Duration) *GetCurrentUserParams
WithTimeout adds the timeout to the get current user params
func (*GetCurrentUserParams) WithXGiantSwarmActivity ¶
func (o *GetCurrentUserParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetCurrentUserParams
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get current user params
func (*GetCurrentUserParams) WithXGiantSwarmCmdLine ¶
func (o *GetCurrentUserParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetCurrentUserParams
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get current user params
func (*GetCurrentUserParams) WithXRequestID ¶
func (o *GetCurrentUserParams) WithXRequestID(xRequestID *string) *GetCurrentUserParams
WithXRequestID adds the xRequestID to the get current user params
func (*GetCurrentUserParams) WriteToRequest ¶
func (o *GetCurrentUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCurrentUserReader ¶
type GetCurrentUserReader struct {
// contains filtered or unexported fields
}
GetCurrentUserReader is a Reader for the GetCurrentUser structure.
func (*GetCurrentUserReader) ReadResponse ¶
func (o *GetCurrentUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetCurrentUserUnauthorized ¶
type GetCurrentUserUnauthorized struct {
}GetCurrentUserUnauthorized handles this case with default header values.
Permission denied
func NewGetCurrentUserUnauthorized ¶
func NewGetCurrentUserUnauthorized() *GetCurrentUserUnauthorized
NewGetCurrentUserUnauthorized creates a GetCurrentUserUnauthorized with default headers values
func (*GetCurrentUserUnauthorized) Error ¶
func (o *GetCurrentUserUnauthorized) Error() string
type GetUserDefault ¶
type GetUserDefault struct { Payload *models.V4GenericResponse // contains filtered or unexported fields }
GetUserDefault handles this case with default header values.
Error
func NewGetUserDefault ¶
func NewGetUserDefault(code int) *GetUserDefault
NewGetUserDefault creates a GetUserDefault with default headers values
func (*GetUserDefault) Code ¶
func (o *GetUserDefault) Code() int
Code gets the status code for the get user default response
func (*GetUserDefault) Error ¶
func (o *GetUserDefault) Error() string
type GetUserNotFound ¶
type GetUserNotFound struct {
Payload *models.V4GenericResponse
}
GetUserNotFound handles this case with default header values.
User not found
func NewGetUserNotFound ¶
func NewGetUserNotFound() *GetUserNotFound
NewGetUserNotFound creates a GetUserNotFound with default headers values
func (*GetUserNotFound) Error ¶
func (o *GetUserNotFound) Error() string
type GetUserOK ¶
type GetUserOK struct {
Payload *models.V4UserListItem
}
GetUserOK handles this case with default header values.
Success
func NewGetUserOK ¶
func NewGetUserOK() *GetUserOK
NewGetUserOK creates a GetUserOK with default headers values
type GetUserParams ¶
type GetUserParams struct { /*Authorization As described in the [authentication](#section/Authentication) section */ Authorization string /*XGiantSwarmActivity Name of an activity to track, like "list-clusters". This allows to analyze several API requests sent in context and gives an idea on the purpose. */ XGiantSwarmActivity *string /*XGiantSwarmCmdLine If activity has been issued by a CLI, this header can contain the command line */ XGiantSwarmCmdLine *string /*XRequestID A randomly generated key that can be used to track a request throughout services of Giant Swarm. */ XRequestID *string /*Email The user's email address */ Email string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetUserParams contains all the parameters to send to the API endpoint for the get user operation typically these are written to a http.Request
func NewGetUserParams ¶
func NewGetUserParams() *GetUserParams
NewGetUserParams creates a new GetUserParams object with the default values initialized.
func NewGetUserParamsWithContext ¶
func NewGetUserParamsWithContext(ctx context.Context) *GetUserParams
NewGetUserParamsWithContext creates a new GetUserParams object with the default values initialized, and the ability to set a context for a request
func NewGetUserParamsWithHTTPClient ¶
func NewGetUserParamsWithHTTPClient(client *http.Client) *GetUserParams
NewGetUserParamsWithHTTPClient creates a new GetUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetUserParamsWithTimeout ¶
func NewGetUserParamsWithTimeout(timeout time.Duration) *GetUserParams
NewGetUserParamsWithTimeout creates a new GetUserParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetUserParams) SetAuthorization ¶
func (o *GetUserParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the get user params
func (*GetUserParams) SetContext ¶
func (o *GetUserParams) SetContext(ctx context.Context)
SetContext adds the context to the get user params
func (*GetUserParams) SetEmail ¶
func (o *GetUserParams) SetEmail(email string)
SetEmail adds the email to the get user params
func (*GetUserParams) SetHTTPClient ¶
func (o *GetUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get user params
func (*GetUserParams) SetTimeout ¶
func (o *GetUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get user params
func (*GetUserParams) SetXGiantSwarmActivity ¶
func (o *GetUserParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get user params
func (*GetUserParams) SetXGiantSwarmCmdLine ¶
func (o *GetUserParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get user params
func (*GetUserParams) SetXRequestID ¶
func (o *GetUserParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get user params
func (*GetUserParams) WithAuthorization ¶
func (o *GetUserParams) WithAuthorization(authorization string) *GetUserParams
WithAuthorization adds the authorization to the get user params
func (*GetUserParams) WithContext ¶
func (o *GetUserParams) WithContext(ctx context.Context) *GetUserParams
WithContext adds the context to the get user params
func (*GetUserParams) WithEmail ¶
func (o *GetUserParams) WithEmail(email string) *GetUserParams
WithEmail adds the email to the get user params
func (*GetUserParams) WithHTTPClient ¶
func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams
WithHTTPClient adds the HTTPClient to the get user params
func (*GetUserParams) WithTimeout ¶
func (o *GetUserParams) WithTimeout(timeout time.Duration) *GetUserParams
WithTimeout adds the timeout to the get user params
func (*GetUserParams) WithXGiantSwarmActivity ¶
func (o *GetUserParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetUserParams
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get user params
func (*GetUserParams) WithXGiantSwarmCmdLine ¶
func (o *GetUserParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetUserParams
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get user params
func (*GetUserParams) WithXRequestID ¶
func (o *GetUserParams) WithXRequestID(xRequestID *string) *GetUserParams
WithXRequestID adds the xRequestID to the get user params
func (*GetUserParams) WriteToRequest ¶
func (o *GetUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUserReader ¶
type GetUserReader struct {
// contains filtered or unexported fields
}
GetUserReader is a Reader for the GetUser structure.
func (*GetUserReader) ReadResponse ¶
func (o *GetUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUserUnauthorized ¶
type GetUserUnauthorized struct {
}GetUserUnauthorized handles this case with default header values.
Permission denied
func NewGetUserUnauthorized ¶
func NewGetUserUnauthorized() *GetUserUnauthorized
NewGetUserUnauthorized creates a GetUserUnauthorized with default headers values
func (*GetUserUnauthorized) Error ¶
func (o *GetUserUnauthorized) Error() string
type GetUsersDefault ¶
type GetUsersDefault struct { Payload *models.V4GenericResponse // contains filtered or unexported fields }
GetUsersDefault handles this case with default header values.
Error
func NewGetUsersDefault ¶
func NewGetUsersDefault(code int) *GetUsersDefault
NewGetUsersDefault creates a GetUsersDefault with default headers values
func (*GetUsersDefault) Code ¶
func (o *GetUsersDefault) Code() int
Code gets the status code for the get users default response
func (*GetUsersDefault) Error ¶
func (o *GetUsersDefault) Error() string
type GetUsersOK ¶
type GetUsersOK struct {
Payload []*models.V4UserListItem
}
GetUsersOK handles this case with default header values.
Success
func NewGetUsersOK ¶
func NewGetUsersOK() *GetUsersOK
NewGetUsersOK creates a GetUsersOK with default headers values
func (*GetUsersOK) Error ¶
func (o *GetUsersOK) Error() string
type GetUsersParams ¶
type GetUsersParams struct { /*Authorization As described in the [authentication](#section/Authentication) section */ Authorization string /*XGiantSwarmActivity Name of an activity to track, like "list-clusters". This allows to analyze several API requests sent in context and gives an idea on the purpose. */ XGiantSwarmActivity *string /*XGiantSwarmCmdLine If activity has been issued by a CLI, this header can contain the command line */ XGiantSwarmCmdLine *string /*XRequestID A randomly generated key that can be used to track a request throughout services of Giant Swarm. */ XRequestID *string 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 values initialized.
func NewGetUsersParamsWithContext ¶
func NewGetUsersParamsWithContext(ctx context.Context) *GetUsersParams
NewGetUsersParamsWithContext creates a new GetUsersParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request
func (*GetUsersParams) SetAuthorization ¶
func (o *GetUsersParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization 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) SetHTTPClient ¶
func (o *GetUsersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient 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) SetXGiantSwarmActivity ¶
func (o *GetUsersParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get users params
func (*GetUsersParams) SetXGiantSwarmCmdLine ¶
func (o *GetUsersParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get users params
func (*GetUsersParams) SetXRequestID ¶
func (o *GetUsersParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get users params
func (*GetUsersParams) WithAuthorization ¶
func (o *GetUsersParams) WithAuthorization(authorization string) *GetUsersParams
WithAuthorization adds the authorization 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) WithHTTPClient ¶
func (o *GetUsersParams) WithHTTPClient(client *http.Client) *GetUsersParams
WithHTTPClient adds the HTTPClient 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) WithXGiantSwarmActivity ¶
func (o *GetUsersParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetUsersParams
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get users params
func (*GetUsersParams) WithXGiantSwarmCmdLine ¶
func (o *GetUsersParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetUsersParams
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get users params
func (*GetUsersParams) WithXRequestID ¶
func (o *GetUsersParams) WithXRequestID(xRequestID *string) *GetUsersParams
WithXRequestID adds the xRequestID 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 GetUsersUnauthorized ¶
type GetUsersUnauthorized struct {
}GetUsersUnauthorized handles this case with default header values.
Permission denied
func NewGetUsersUnauthorized ¶
func NewGetUsersUnauthorized() *GetUsersUnauthorized
NewGetUsersUnauthorized creates a GetUsersUnauthorized with default headers values
func (*GetUsersUnauthorized) Error ¶
func (o *GetUsersUnauthorized) Error() string
type ModifyPasswordAccepted ¶
type ModifyPasswordAccepted struct {
Payload *models.V4GenericResponse
}
ModifyPasswordAccepted handles this case with default header values.
Accepted
func NewModifyPasswordAccepted ¶
func NewModifyPasswordAccepted() *ModifyPasswordAccepted
NewModifyPasswordAccepted creates a ModifyPasswordAccepted with default headers values
func (*ModifyPasswordAccepted) Error ¶
func (o *ModifyPasswordAccepted) Error() string
type ModifyPasswordDefault ¶
type ModifyPasswordDefault struct { Payload *models.V4GenericResponse // contains filtered or unexported fields }
ModifyPasswordDefault handles this case with default header values.
Error
func NewModifyPasswordDefault ¶
func NewModifyPasswordDefault(code int) *ModifyPasswordDefault
NewModifyPasswordDefault creates a ModifyPasswordDefault with default headers values
func (*ModifyPasswordDefault) Code ¶
func (o *ModifyPasswordDefault) Code() int
Code gets the status code for the modify password default response
func (*ModifyPasswordDefault) Error ¶
func (o *ModifyPasswordDefault) Error() string
type ModifyPasswordNotFound ¶
type ModifyPasswordNotFound struct {
Payload *models.V4GenericResponse
}
ModifyPasswordNotFound handles this case with default header values.
User not found
func NewModifyPasswordNotFound ¶
func NewModifyPasswordNotFound() *ModifyPasswordNotFound
NewModifyPasswordNotFound creates a ModifyPasswordNotFound with default headers values
func (*ModifyPasswordNotFound) Error ¶
func (o *ModifyPasswordNotFound) Error() string
type ModifyPasswordParams ¶
type ModifyPasswordParams struct { /*Authorization As described in the [authentication](#section/Authentication) section */ Authorization string /*XGiantSwarmActivity Name of an activity to track, like "list-clusters". This allows to analyze several API requests sent in context and gives an idea on the purpose. */ XGiantSwarmActivity *string /*XGiantSwarmCmdLine If activity has been issued by a CLI, this header can contain the command line */ XGiantSwarmCmdLine *string /*XRequestID A randomly generated key that can be used to track a request throughout services of Giant Swarm. */ XRequestID *string /*Body Modify password request */ Body *models.V4ModifyUserPasswordRequest /*Email The user's email address */ Email string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ModifyPasswordParams contains all the parameters to send to the API endpoint for the modify password operation typically these are written to a http.Request
func NewModifyPasswordParams ¶
func NewModifyPasswordParams() *ModifyPasswordParams
NewModifyPasswordParams creates a new ModifyPasswordParams object with the default values initialized.
func NewModifyPasswordParamsWithContext ¶
func NewModifyPasswordParamsWithContext(ctx context.Context) *ModifyPasswordParams
NewModifyPasswordParamsWithContext creates a new ModifyPasswordParams object with the default values initialized, and the ability to set a context for a request
func NewModifyPasswordParamsWithHTTPClient ¶
func NewModifyPasswordParamsWithHTTPClient(client *http.Client) *ModifyPasswordParams
NewModifyPasswordParamsWithHTTPClient creates a new ModifyPasswordParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewModifyPasswordParamsWithTimeout ¶
func NewModifyPasswordParamsWithTimeout(timeout time.Duration) *ModifyPasswordParams
NewModifyPasswordParamsWithTimeout creates a new ModifyPasswordParams object with the default values initialized, and the ability to set a timeout on a request
func (*ModifyPasswordParams) SetAuthorization ¶
func (o *ModifyPasswordParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the modify password params
func (*ModifyPasswordParams) SetBody ¶
func (o *ModifyPasswordParams) SetBody(body *models.V4ModifyUserPasswordRequest)
SetBody adds the body to the modify password params
func (*ModifyPasswordParams) SetContext ¶
func (o *ModifyPasswordParams) SetContext(ctx context.Context)
SetContext adds the context to the modify password params
func (*ModifyPasswordParams) SetEmail ¶
func (o *ModifyPasswordParams) SetEmail(email string)
SetEmail adds the email to the modify password params
func (*ModifyPasswordParams) SetHTTPClient ¶
func (o *ModifyPasswordParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the modify password params
func (*ModifyPasswordParams) SetTimeout ¶
func (o *ModifyPasswordParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the modify password params
func (*ModifyPasswordParams) SetXGiantSwarmActivity ¶
func (o *ModifyPasswordParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the modify password params
func (*ModifyPasswordParams) SetXGiantSwarmCmdLine ¶
func (o *ModifyPasswordParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the modify password params
func (*ModifyPasswordParams) SetXRequestID ¶
func (o *ModifyPasswordParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the modify password params
func (*ModifyPasswordParams) WithAuthorization ¶
func (o *ModifyPasswordParams) WithAuthorization(authorization string) *ModifyPasswordParams
WithAuthorization adds the authorization to the modify password params
func (*ModifyPasswordParams) WithBody ¶
func (o *ModifyPasswordParams) WithBody(body *models.V4ModifyUserPasswordRequest) *ModifyPasswordParams
WithBody adds the body to the modify password params
func (*ModifyPasswordParams) WithContext ¶
func (o *ModifyPasswordParams) WithContext(ctx context.Context) *ModifyPasswordParams
WithContext adds the context to the modify password params
func (*ModifyPasswordParams) WithEmail ¶
func (o *ModifyPasswordParams) WithEmail(email string) *ModifyPasswordParams
WithEmail adds the email to the modify password params
func (*ModifyPasswordParams) WithHTTPClient ¶
func (o *ModifyPasswordParams) WithHTTPClient(client *http.Client) *ModifyPasswordParams
WithHTTPClient adds the HTTPClient to the modify password params
func (*ModifyPasswordParams) WithTimeout ¶
func (o *ModifyPasswordParams) WithTimeout(timeout time.Duration) *ModifyPasswordParams
WithTimeout adds the timeout to the modify password params
func (*ModifyPasswordParams) WithXGiantSwarmActivity ¶
func (o *ModifyPasswordParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *ModifyPasswordParams
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the modify password params
func (*ModifyPasswordParams) WithXGiantSwarmCmdLine ¶
func (o *ModifyPasswordParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *ModifyPasswordParams
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the modify password params
func (*ModifyPasswordParams) WithXRequestID ¶
func (o *ModifyPasswordParams) WithXRequestID(xRequestID *string) *ModifyPasswordParams
WithXRequestID adds the xRequestID to the modify password params
func (*ModifyPasswordParams) WriteToRequest ¶
func (o *ModifyPasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ModifyPasswordReader ¶
type ModifyPasswordReader struct {
// contains filtered or unexported fields
}
ModifyPasswordReader is a Reader for the ModifyPassword structure.
func (*ModifyPasswordReader) ReadResponse ¶
func (o *ModifyPasswordReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ModifyPasswordUnauthorized ¶
type ModifyPasswordUnauthorized struct {
}ModifyPasswordUnauthorized handles this case with default header values.
Permission denied
func NewModifyPasswordUnauthorized ¶
func NewModifyPasswordUnauthorized() *ModifyPasswordUnauthorized
NewModifyPasswordUnauthorized creates a ModifyPasswordUnauthorized with default headers values
func (*ModifyPasswordUnauthorized) Error ¶
func (o *ModifyPasswordUnauthorized) Error() string
type ModifyUserDefault ¶
type ModifyUserDefault struct { Payload *models.V4GenericResponse // contains filtered or unexported fields }
ModifyUserDefault handles this case with default header values.
Error
func NewModifyUserDefault ¶
func NewModifyUserDefault(code int) *ModifyUserDefault
NewModifyUserDefault creates a ModifyUserDefault with default headers values
func (*ModifyUserDefault) Code ¶
func (o *ModifyUserDefault) Code() int
Code gets the status code for the modify user default response
func (*ModifyUserDefault) Error ¶
func (o *ModifyUserDefault) Error() string
type ModifyUserOK ¶
type ModifyUserOK struct {
Payload *models.V4UserListItem
}
ModifyUserOK handles this case with default header values.
Success
func NewModifyUserOK ¶
func NewModifyUserOK() *ModifyUserOK
NewModifyUserOK creates a ModifyUserOK with default headers values
func (*ModifyUserOK) Error ¶
func (o *ModifyUserOK) Error() string
type ModifyUserParams ¶
type ModifyUserParams struct { /*Authorization As described in the [authentication](#section/Authentication) section */ Authorization string /*XGiantSwarmActivity Name of an activity to track, like "list-clusters". This allows to analyze several API requests sent in context and gives an idea on the purpose. */ XGiantSwarmActivity *string /*XGiantSwarmCmdLine If activity has been issued by a CLI, this header can contain the command line */ XGiantSwarmCmdLine *string /*XRequestID A randomly generated key that can be used to track a request throughout services of Giant Swarm. */ XRequestID *string /*Body User account details */ Body *models.V4ModifyUserRequest /*Email The user's email address */ Email string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ModifyUserParams contains all the parameters to send to the API endpoint for the modify user operation typically these are written to a http.Request
func NewModifyUserParams ¶
func NewModifyUserParams() *ModifyUserParams
NewModifyUserParams creates a new ModifyUserParams object with the default values initialized.
func NewModifyUserParamsWithContext ¶
func NewModifyUserParamsWithContext(ctx context.Context) *ModifyUserParams
NewModifyUserParamsWithContext creates a new ModifyUserParams object with the default values initialized, and the ability to set a context for a request
func NewModifyUserParamsWithHTTPClient ¶
func NewModifyUserParamsWithHTTPClient(client *http.Client) *ModifyUserParams
NewModifyUserParamsWithHTTPClient creates a new ModifyUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewModifyUserParamsWithTimeout ¶
func NewModifyUserParamsWithTimeout(timeout time.Duration) *ModifyUserParams
NewModifyUserParamsWithTimeout creates a new ModifyUserParams object with the default values initialized, and the ability to set a timeout on a request
func (*ModifyUserParams) SetAuthorization ¶
func (o *ModifyUserParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the modify user params
func (*ModifyUserParams) SetBody ¶
func (o *ModifyUserParams) SetBody(body *models.V4ModifyUserRequest)
SetBody adds the body to the modify user params
func (*ModifyUserParams) SetContext ¶
func (o *ModifyUserParams) SetContext(ctx context.Context)
SetContext adds the context to the modify user params
func (*ModifyUserParams) SetEmail ¶
func (o *ModifyUserParams) SetEmail(email string)
SetEmail adds the email to the modify user params
func (*ModifyUserParams) SetHTTPClient ¶
func (o *ModifyUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the modify user params
func (*ModifyUserParams) SetTimeout ¶
func (o *ModifyUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the modify user params
func (*ModifyUserParams) SetXGiantSwarmActivity ¶
func (o *ModifyUserParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the modify user params
func (*ModifyUserParams) SetXGiantSwarmCmdLine ¶
func (o *ModifyUserParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the modify user params
func (*ModifyUserParams) SetXRequestID ¶
func (o *ModifyUserParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the modify user params
func (*ModifyUserParams) WithAuthorization ¶
func (o *ModifyUserParams) WithAuthorization(authorization string) *ModifyUserParams
WithAuthorization adds the authorization to the modify user params
func (*ModifyUserParams) WithBody ¶
func (o *ModifyUserParams) WithBody(body *models.V4ModifyUserRequest) *ModifyUserParams
WithBody adds the body to the modify user params
func (*ModifyUserParams) WithContext ¶
func (o *ModifyUserParams) WithContext(ctx context.Context) *ModifyUserParams
WithContext adds the context to the modify user params
func (*ModifyUserParams) WithEmail ¶
func (o *ModifyUserParams) WithEmail(email string) *ModifyUserParams
WithEmail adds the email to the modify user params
func (*ModifyUserParams) WithHTTPClient ¶
func (o *ModifyUserParams) WithHTTPClient(client *http.Client) *ModifyUserParams
WithHTTPClient adds the HTTPClient to the modify user params
func (*ModifyUserParams) WithTimeout ¶
func (o *ModifyUserParams) WithTimeout(timeout time.Duration) *ModifyUserParams
WithTimeout adds the timeout to the modify user params
func (*ModifyUserParams) WithXGiantSwarmActivity ¶
func (o *ModifyUserParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *ModifyUserParams
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the modify user params
func (*ModifyUserParams) WithXGiantSwarmCmdLine ¶
func (o *ModifyUserParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *ModifyUserParams
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the modify user params
func (*ModifyUserParams) WithXRequestID ¶
func (o *ModifyUserParams) WithXRequestID(xRequestID *string) *ModifyUserParams
WithXRequestID adds the xRequestID to the modify user params
func (*ModifyUserParams) WriteToRequest ¶
func (o *ModifyUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ModifyUserReader ¶
type ModifyUserReader struct {
// contains filtered or unexported fields
}
ModifyUserReader is a Reader for the ModifyUser structure.
func (*ModifyUserReader) ReadResponse ¶
func (o *ModifyUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ModifyUserUnauthorized ¶
type ModifyUserUnauthorized struct {
}ModifyUserUnauthorized handles this case with default header values.
Permission denied
func NewModifyUserUnauthorized ¶
func NewModifyUserUnauthorized() *ModifyUserUnauthorized
NewModifyUserUnauthorized creates a ModifyUserUnauthorized with default headers values
func (*ModifyUserUnauthorized) Error ¶
func (o *ModifyUserUnauthorized) Error() string
Source Files
¶
- create_user_parameters.go
- create_user_responses.go
- delete_user_parameters.go
- delete_user_responses.go
- get_current_user_parameters.go
- get_current_user_responses.go
- get_user_parameters.go
- get_user_responses.go
- get_users_parameters.go
- get_users_responses.go
- modify_password_parameters.go
- modify_password_responses.go
- modify_user_parameters.go
- modify_user_responses.go
- users_client.go