auth_v1

package
v0.0.0-...-13a6dad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangePasswordDefault

type ChangePasswordDefault struct {
	Payload *service_model.RuntimeError
	// contains filtered or unexported fields
}
ChangePasswordDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewChangePasswordDefault

func NewChangePasswordDefault(code int) *ChangePasswordDefault

NewChangePasswordDefault creates a ChangePasswordDefault with default headers values

func (*ChangePasswordDefault) Code

func (o *ChangePasswordDefault) Code() int

Code gets the status code for the change password default response

func (*ChangePasswordDefault) Error

func (o *ChangePasswordDefault) Error() string

func (*ChangePasswordDefault) GetPayload

type ChangePasswordForbidden

type ChangePasswordForbidden struct {
	Payload interface{}
}
ChangePasswordForbidden describes a response with status code 403, with default header values.

You don't have permission to access the resource.

func NewChangePasswordForbidden

func NewChangePasswordForbidden() *ChangePasswordForbidden

NewChangePasswordForbidden creates a ChangePasswordForbidden with default headers values

func (*ChangePasswordForbidden) Error

func (o *ChangePasswordForbidden) Error() string

func (*ChangePasswordForbidden) GetPayload

func (o *ChangePasswordForbidden) GetPayload() interface{}

type ChangePasswordNoContent

type ChangePasswordNoContent struct {
	Payload interface{}
}
ChangePasswordNoContent describes a response with status code 204, with default header values.

No content.

func NewChangePasswordNoContent

func NewChangePasswordNoContent() *ChangePasswordNoContent

NewChangePasswordNoContent creates a ChangePasswordNoContent with default headers values

func (*ChangePasswordNoContent) Error

func (o *ChangePasswordNoContent) Error() string

func (*ChangePasswordNoContent) GetPayload

func (o *ChangePasswordNoContent) GetPayload() interface{}

type ChangePasswordNotFound

type ChangePasswordNotFound struct {
	Payload interface{}
}
ChangePasswordNotFound describes a response with status code 404, with default header values.

Resource does not exist.

func NewChangePasswordNotFound

func NewChangePasswordNotFound() *ChangePasswordNotFound

NewChangePasswordNotFound creates a ChangePasswordNotFound with default headers values

func (*ChangePasswordNotFound) Error

func (o *ChangePasswordNotFound) Error() string

func (*ChangePasswordNotFound) GetPayload

func (o *ChangePasswordNotFound) GetPayload() interface{}

type ChangePasswordOK

type ChangePasswordOK struct {
}
ChangePasswordOK describes a response with status code 200, with default header values.

A successful response.

func NewChangePasswordOK

func NewChangePasswordOK() *ChangePasswordOK

NewChangePasswordOK creates a ChangePasswordOK with default headers values

func (*ChangePasswordOK) Error

func (o *ChangePasswordOK) Error() string

type ChangePasswordParams

type ChangePasswordParams struct {

	// Body.
	Body *service_model.V1PasswordChange

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ChangePasswordParams contains all the parameters to send to the API endpoint

for the change password operation.

Typically these are written to a http.Request.

func NewChangePasswordParams

func NewChangePasswordParams() *ChangePasswordParams

NewChangePasswordParams creates a new ChangePasswordParams 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 NewChangePasswordParamsWithContext

func NewChangePasswordParamsWithContext(ctx context.Context) *ChangePasswordParams

NewChangePasswordParamsWithContext creates a new ChangePasswordParams object with the ability to set a context for a request.

func NewChangePasswordParamsWithHTTPClient

func NewChangePasswordParamsWithHTTPClient(client *http.Client) *ChangePasswordParams

NewChangePasswordParamsWithHTTPClient creates a new ChangePasswordParams object with the ability to set a custom HTTPClient for a request.

func NewChangePasswordParamsWithTimeout

func NewChangePasswordParamsWithTimeout(timeout time.Duration) *ChangePasswordParams

NewChangePasswordParamsWithTimeout creates a new ChangePasswordParams object with the ability to set a timeout on a request.

func (*ChangePasswordParams) SetBody

SetBody adds the body to the change password params

func (*ChangePasswordParams) SetContext

func (o *ChangePasswordParams) SetContext(ctx context.Context)

SetContext adds the context to the change password params

func (*ChangePasswordParams) SetDefaults

func (o *ChangePasswordParams) SetDefaults()

SetDefaults hydrates default values in the change password params (not the query body).

All values with no default are reset to their zero value.

func (*ChangePasswordParams) SetHTTPClient

func (o *ChangePasswordParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the change password params

func (*ChangePasswordParams) SetTimeout

func (o *ChangePasswordParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the change password params

func (*ChangePasswordParams) WithBody

WithBody adds the body to the change password params

func (*ChangePasswordParams) WithContext

WithContext adds the context to the change password params

func (*ChangePasswordParams) WithDefaults

func (o *ChangePasswordParams) WithDefaults() *ChangePasswordParams

WithDefaults hydrates default values in the change password params (not the query body).

All values with no default are reset to their zero value.

func (*ChangePasswordParams) WithHTTPClient

func (o *ChangePasswordParams) WithHTTPClient(client *http.Client) *ChangePasswordParams

WithHTTPClient adds the HTTPClient to the change password params

func (*ChangePasswordParams) WithTimeout

func (o *ChangePasswordParams) WithTimeout(timeout time.Duration) *ChangePasswordParams

WithTimeout adds the timeout to the change password params

func (*ChangePasswordParams) WriteToRequest

func (o *ChangePasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ChangePasswordReader

type ChangePasswordReader struct {
	// contains filtered or unexported fields
}

ChangePasswordReader is a Reader for the ChangePassword structure.

func (*ChangePasswordReader) ReadResponse

func (o *ChangePasswordReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for auth v1 API

func (*Client) ChangePassword

ChangePassword changes password

func (*Client) Login

func (a *Client) Login(params *LoginParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LoginOK, *LoginNoContent, error)

Login logins

func (*Client) ResetPassword

ResetPassword resets password

func (*Client) ResetPasswordConfirm

ResetPasswordConfirm resets password confirm

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) Signup

func (a *Client) Signup(params *SignupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SignupOK, *SignupNoContent, error)

Signup signups

func (*Client) Trial

func (a *Client) Trial(params *TrialParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TrialOK, *TrialNoContent, error)

Trial trials start

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new auth v1 API client.

type LoginDefault

type LoginDefault struct {
	Payload *service_model.RuntimeError
	// contains filtered or unexported fields
}
LoginDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewLoginDefault

func NewLoginDefault(code int) *LoginDefault

NewLoginDefault creates a LoginDefault with default headers values

func (*LoginDefault) Code

func (o *LoginDefault) Code() int

Code gets the status code for the login default response

func (*LoginDefault) Error

func (o *LoginDefault) Error() string

func (*LoginDefault) GetPayload

func (o *LoginDefault) GetPayload() *service_model.RuntimeError

type LoginForbidden

type LoginForbidden struct {
	Payload interface{}
}
LoginForbidden describes a response with status code 403, with default header values.

You don't have permission to access the resource.

func NewLoginForbidden

func NewLoginForbidden() *LoginForbidden

NewLoginForbidden creates a LoginForbidden with default headers values

func (*LoginForbidden) Error

func (o *LoginForbidden) Error() string

func (*LoginForbidden) GetPayload

func (o *LoginForbidden) GetPayload() interface{}

type LoginNoContent

type LoginNoContent struct {
	Payload interface{}
}
LoginNoContent describes a response with status code 204, with default header values.

No content.

func NewLoginNoContent

func NewLoginNoContent() *LoginNoContent

NewLoginNoContent creates a LoginNoContent with default headers values

func (*LoginNoContent) Error

func (o *LoginNoContent) Error() string

func (*LoginNoContent) GetPayload

func (o *LoginNoContent) GetPayload() interface{}

type LoginNotFound

type LoginNotFound struct {
	Payload interface{}
}
LoginNotFound describes a response with status code 404, with default header values.

Resource does not exist.

func NewLoginNotFound

func NewLoginNotFound() *LoginNotFound

NewLoginNotFound creates a LoginNotFound with default headers values

func (*LoginNotFound) Error

func (o *LoginNotFound) Error() string

func (*LoginNotFound) GetPayload

func (o *LoginNotFound) GetPayload() interface{}

type LoginOK

type LoginOK struct {
	Payload *service_model.V1Auth
}
LoginOK describes a response with status code 200, with default header values.

A successful response.

func NewLoginOK

func NewLoginOK() *LoginOK

NewLoginOK creates a LoginOK with default headers values

func (*LoginOK) Error

func (o *LoginOK) Error() string

func (*LoginOK) GetPayload

func (o *LoginOK) GetPayload() *service_model.V1Auth

type LoginParams

type LoginParams struct {

	// Body.
	Body *service_model.V1Credentials

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

LoginParams contains all the parameters to send to the API endpoint

for the login operation.

Typically these are written to a http.Request.

func NewLoginParams

func NewLoginParams() *LoginParams

NewLoginParams creates a new LoginParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewLoginParamsWithContext

func NewLoginParamsWithContext(ctx context.Context) *LoginParams

NewLoginParamsWithContext creates a new LoginParams object with the ability to set a context for a request.

func NewLoginParamsWithHTTPClient

func NewLoginParamsWithHTTPClient(client *http.Client) *LoginParams

NewLoginParamsWithHTTPClient creates a new LoginParams object with the ability to set a custom HTTPClient for a request.

func NewLoginParamsWithTimeout

func NewLoginParamsWithTimeout(timeout time.Duration) *LoginParams

NewLoginParamsWithTimeout creates a new LoginParams object with the ability to set a timeout on a request.

func (*LoginParams) SetBody

func (o *LoginParams) SetBody(body *service_model.V1Credentials)

SetBody adds the body to the login params

func (*LoginParams) SetContext

func (o *LoginParams) SetContext(ctx context.Context)

SetContext adds the context to the login params

func (*LoginParams) SetDefaults

func (o *LoginParams) SetDefaults()

SetDefaults hydrates default values in the login params (not the query body).

All values with no default are reset to their zero value.

func (*LoginParams) SetHTTPClient

func (o *LoginParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the login params

func (*LoginParams) SetTimeout

func (o *LoginParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the login params

func (*LoginParams) WithBody

func (o *LoginParams) WithBody(body *service_model.V1Credentials) *LoginParams

WithBody adds the body to the login params

func (*LoginParams) WithContext

func (o *LoginParams) WithContext(ctx context.Context) *LoginParams

WithContext adds the context to the login params

func (*LoginParams) WithDefaults

func (o *LoginParams) WithDefaults() *LoginParams

WithDefaults hydrates default values in the login params (not the query body).

All values with no default are reset to their zero value.

func (*LoginParams) WithHTTPClient

func (o *LoginParams) WithHTTPClient(client *http.Client) *LoginParams

WithHTTPClient adds the HTTPClient to the login params

func (*LoginParams) WithTimeout

func (o *LoginParams) WithTimeout(timeout time.Duration) *LoginParams

WithTimeout adds the timeout to the login params

func (*LoginParams) WriteToRequest

func (o *LoginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type LoginReader

type LoginReader struct {
	// contains filtered or unexported fields
}

LoginReader is a Reader for the Login structure.

func (*LoginReader) ReadResponse

func (o *LoginReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ResetPasswordConfirmDefault

type ResetPasswordConfirmDefault struct {
	Payload *service_model.RuntimeError
	// contains filtered or unexported fields
}
ResetPasswordConfirmDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewResetPasswordConfirmDefault

func NewResetPasswordConfirmDefault(code int) *ResetPasswordConfirmDefault

NewResetPasswordConfirmDefault creates a ResetPasswordConfirmDefault with default headers values

func (*ResetPasswordConfirmDefault) Code

func (o *ResetPasswordConfirmDefault) Code() int

Code gets the status code for the reset password confirm default response

func (*ResetPasswordConfirmDefault) Error

func (*ResetPasswordConfirmDefault) GetPayload

type ResetPasswordConfirmForbidden

type ResetPasswordConfirmForbidden struct {
	Payload interface{}
}
ResetPasswordConfirmForbidden describes a response with status code 403, with default header values.

You don't have permission to access the resource.

func NewResetPasswordConfirmForbidden

func NewResetPasswordConfirmForbidden() *ResetPasswordConfirmForbidden

NewResetPasswordConfirmForbidden creates a ResetPasswordConfirmForbidden with default headers values

func (*ResetPasswordConfirmForbidden) Error

func (*ResetPasswordConfirmForbidden) GetPayload

func (o *ResetPasswordConfirmForbidden) GetPayload() interface{}

type ResetPasswordConfirmNoContent

type ResetPasswordConfirmNoContent struct {
	Payload interface{}
}
ResetPasswordConfirmNoContent describes a response with status code 204, with default header values.

No content.

func NewResetPasswordConfirmNoContent

func NewResetPasswordConfirmNoContent() *ResetPasswordConfirmNoContent

NewResetPasswordConfirmNoContent creates a ResetPasswordConfirmNoContent with default headers values

func (*ResetPasswordConfirmNoContent) Error

func (*ResetPasswordConfirmNoContent) GetPayload

func (o *ResetPasswordConfirmNoContent) GetPayload() interface{}

type ResetPasswordConfirmNotFound

type ResetPasswordConfirmNotFound struct {
	Payload interface{}
}
ResetPasswordConfirmNotFound describes a response with status code 404, with default header values.

Resource does not exist.

func NewResetPasswordConfirmNotFound

func NewResetPasswordConfirmNotFound() *ResetPasswordConfirmNotFound

NewResetPasswordConfirmNotFound creates a ResetPasswordConfirmNotFound with default headers values

func (*ResetPasswordConfirmNotFound) Error

func (*ResetPasswordConfirmNotFound) GetPayload

func (o *ResetPasswordConfirmNotFound) GetPayload() interface{}

type ResetPasswordConfirmOK

type ResetPasswordConfirmOK struct {
	Payload *service_model.V1Auth
}
ResetPasswordConfirmOK describes a response with status code 200, with default header values.

A successful response.

func NewResetPasswordConfirmOK

func NewResetPasswordConfirmOK() *ResetPasswordConfirmOK

NewResetPasswordConfirmOK creates a ResetPasswordConfirmOK with default headers values

func (*ResetPasswordConfirmOK) Error

func (o *ResetPasswordConfirmOK) Error() string

func (*ResetPasswordConfirmOK) GetPayload

func (o *ResetPasswordConfirmOK) GetPayload() *service_model.V1Auth

type ResetPasswordConfirmParams

type ResetPasswordConfirmParams struct {

	// Body.
	Body *service_model.V1PasswordChange

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ResetPasswordConfirmParams contains all the parameters to send to the API endpoint

for the reset password confirm operation.

Typically these are written to a http.Request.

func NewResetPasswordConfirmParams

func NewResetPasswordConfirmParams() *ResetPasswordConfirmParams

NewResetPasswordConfirmParams creates a new ResetPasswordConfirmParams 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 NewResetPasswordConfirmParamsWithContext

func NewResetPasswordConfirmParamsWithContext(ctx context.Context) *ResetPasswordConfirmParams

NewResetPasswordConfirmParamsWithContext creates a new ResetPasswordConfirmParams object with the ability to set a context for a request.

func NewResetPasswordConfirmParamsWithHTTPClient

func NewResetPasswordConfirmParamsWithHTTPClient(client *http.Client) *ResetPasswordConfirmParams

NewResetPasswordConfirmParamsWithHTTPClient creates a new ResetPasswordConfirmParams object with the ability to set a custom HTTPClient for a request.

func NewResetPasswordConfirmParamsWithTimeout

func NewResetPasswordConfirmParamsWithTimeout(timeout time.Duration) *ResetPasswordConfirmParams

NewResetPasswordConfirmParamsWithTimeout creates a new ResetPasswordConfirmParams object with the ability to set a timeout on a request.

func (*ResetPasswordConfirmParams) SetBody

SetBody adds the body to the reset password confirm params

func (*ResetPasswordConfirmParams) SetContext

func (o *ResetPasswordConfirmParams) SetContext(ctx context.Context)

SetContext adds the context to the reset password confirm params

func (*ResetPasswordConfirmParams) SetDefaults

func (o *ResetPasswordConfirmParams) SetDefaults()

SetDefaults hydrates default values in the reset password confirm params (not the query body).

All values with no default are reset to their zero value.

func (*ResetPasswordConfirmParams) SetHTTPClient

func (o *ResetPasswordConfirmParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the reset password confirm params

func (*ResetPasswordConfirmParams) SetTimeout

func (o *ResetPasswordConfirmParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the reset password confirm params

func (*ResetPasswordConfirmParams) WithBody

WithBody adds the body to the reset password confirm params

func (*ResetPasswordConfirmParams) WithContext

WithContext adds the context to the reset password confirm params

func (*ResetPasswordConfirmParams) WithDefaults

WithDefaults hydrates default values in the reset password confirm params (not the query body).

All values with no default are reset to their zero value.

func (*ResetPasswordConfirmParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the reset password confirm params

func (*ResetPasswordConfirmParams) WithTimeout

WithTimeout adds the timeout to the reset password confirm params

func (*ResetPasswordConfirmParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ResetPasswordConfirmReader

type ResetPasswordConfirmReader struct {
	// contains filtered or unexported fields
}

ResetPasswordConfirmReader is a Reader for the ResetPasswordConfirm structure.

func (*ResetPasswordConfirmReader) ReadResponse

func (o *ResetPasswordConfirmReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ResetPasswordDefault

type ResetPasswordDefault struct {
	Payload *service_model.RuntimeError
	// contains filtered or unexported fields
}
ResetPasswordDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewResetPasswordDefault

func NewResetPasswordDefault(code int) *ResetPasswordDefault

NewResetPasswordDefault creates a ResetPasswordDefault with default headers values

func (*ResetPasswordDefault) Code

func (o *ResetPasswordDefault) Code() int

Code gets the status code for the reset password default response

func (*ResetPasswordDefault) Error

func (o *ResetPasswordDefault) Error() string

func (*ResetPasswordDefault) GetPayload

type ResetPasswordForbidden

type ResetPasswordForbidden struct {
	Payload interface{}
}
ResetPasswordForbidden describes a response with status code 403, with default header values.

You don't have permission to access the resource.

func NewResetPasswordForbidden

func NewResetPasswordForbidden() *ResetPasswordForbidden

NewResetPasswordForbidden creates a ResetPasswordForbidden with default headers values

func (*ResetPasswordForbidden) Error

func (o *ResetPasswordForbidden) Error() string

func (*ResetPasswordForbidden) GetPayload

func (o *ResetPasswordForbidden) GetPayload() interface{}

type ResetPasswordNoContent

type ResetPasswordNoContent struct {
	Payload interface{}
}
ResetPasswordNoContent describes a response with status code 204, with default header values.

No content.

func NewResetPasswordNoContent

func NewResetPasswordNoContent() *ResetPasswordNoContent

NewResetPasswordNoContent creates a ResetPasswordNoContent with default headers values

func (*ResetPasswordNoContent) Error

func (o *ResetPasswordNoContent) Error() string

func (*ResetPasswordNoContent) GetPayload

func (o *ResetPasswordNoContent) GetPayload() interface{}

type ResetPasswordNotFound

type ResetPasswordNotFound struct {
	Payload interface{}
}
ResetPasswordNotFound describes a response with status code 404, with default header values.

Resource does not exist.

func NewResetPasswordNotFound

func NewResetPasswordNotFound() *ResetPasswordNotFound

NewResetPasswordNotFound creates a ResetPasswordNotFound with default headers values

func (*ResetPasswordNotFound) Error

func (o *ResetPasswordNotFound) Error() string

func (*ResetPasswordNotFound) GetPayload

func (o *ResetPasswordNotFound) GetPayload() interface{}

type ResetPasswordOK

type ResetPasswordOK struct {
}
ResetPasswordOK describes a response with status code 200, with default header values.

A successful response.

func NewResetPasswordOK

func NewResetPasswordOK() *ResetPasswordOK

NewResetPasswordOK creates a ResetPasswordOK with default headers values

func (*ResetPasswordOK) Error

func (o *ResetPasswordOK) Error() string

type ResetPasswordParams

type ResetPasswordParams struct {

	// Body.
	Body *service_model.V1UserEmail

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ResetPasswordParams contains all the parameters to send to the API endpoint

for the reset password operation.

Typically these are written to a http.Request.

func NewResetPasswordParams

func NewResetPasswordParams() *ResetPasswordParams

NewResetPasswordParams creates a new ResetPasswordParams 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 NewResetPasswordParamsWithContext

func NewResetPasswordParamsWithContext(ctx context.Context) *ResetPasswordParams

NewResetPasswordParamsWithContext creates a new ResetPasswordParams object with the ability to set a context for a request.

func NewResetPasswordParamsWithHTTPClient

func NewResetPasswordParamsWithHTTPClient(client *http.Client) *ResetPasswordParams

NewResetPasswordParamsWithHTTPClient creates a new ResetPasswordParams object with the ability to set a custom HTTPClient for a request.

func NewResetPasswordParamsWithTimeout

func NewResetPasswordParamsWithTimeout(timeout time.Duration) *ResetPasswordParams

NewResetPasswordParamsWithTimeout creates a new ResetPasswordParams object with the ability to set a timeout on a request.

func (*ResetPasswordParams) SetBody

func (o *ResetPasswordParams) SetBody(body *service_model.V1UserEmail)

SetBody adds the body to the reset password params

func (*ResetPasswordParams) SetContext

func (o *ResetPasswordParams) SetContext(ctx context.Context)

SetContext adds the context to the reset password params

func (*ResetPasswordParams) SetDefaults

func (o *ResetPasswordParams) SetDefaults()

SetDefaults hydrates default values in the reset password params (not the query body).

All values with no default are reset to their zero value.

func (*ResetPasswordParams) SetHTTPClient

func (o *ResetPasswordParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the reset password params

func (*ResetPasswordParams) SetTimeout

func (o *ResetPasswordParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the reset password params

func (*ResetPasswordParams) WithBody

WithBody adds the body to the reset password params

func (*ResetPasswordParams) WithContext

WithContext adds the context to the reset password params

func (*ResetPasswordParams) WithDefaults

func (o *ResetPasswordParams) WithDefaults() *ResetPasswordParams

WithDefaults hydrates default values in the reset password params (not the query body).

All values with no default are reset to their zero value.

func (*ResetPasswordParams) WithHTTPClient

func (o *ResetPasswordParams) WithHTTPClient(client *http.Client) *ResetPasswordParams

WithHTTPClient adds the HTTPClient to the reset password params

func (*ResetPasswordParams) WithTimeout

func (o *ResetPasswordParams) WithTimeout(timeout time.Duration) *ResetPasswordParams

WithTimeout adds the timeout to the reset password params

func (*ResetPasswordParams) WriteToRequest

func (o *ResetPasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ResetPasswordReader

type ResetPasswordReader struct {
	// contains filtered or unexported fields
}

ResetPasswordReader is a Reader for the ResetPassword structure.

func (*ResetPasswordReader) ReadResponse

func (o *ResetPasswordReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SignupDefault

type SignupDefault struct {
	Payload *service_model.RuntimeError
	// contains filtered or unexported fields
}
SignupDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewSignupDefault

func NewSignupDefault(code int) *SignupDefault

NewSignupDefault creates a SignupDefault with default headers values

func (*SignupDefault) Code

func (o *SignupDefault) Code() int

Code gets the status code for the signup default response

func (*SignupDefault) Error

func (o *SignupDefault) Error() string

func (*SignupDefault) GetPayload

func (o *SignupDefault) GetPayload() *service_model.RuntimeError

type SignupForbidden

type SignupForbidden struct {
	Payload interface{}
}
SignupForbidden describes a response with status code 403, with default header values.

You don't have permission to access the resource.

func NewSignupForbidden

func NewSignupForbidden() *SignupForbidden

NewSignupForbidden creates a SignupForbidden with default headers values

func (*SignupForbidden) Error

func (o *SignupForbidden) Error() string

func (*SignupForbidden) GetPayload

func (o *SignupForbidden) GetPayload() interface{}

type SignupNoContent

type SignupNoContent struct {
	Payload interface{}
}
SignupNoContent describes a response with status code 204, with default header values.

No content.

func NewSignupNoContent

func NewSignupNoContent() *SignupNoContent

NewSignupNoContent creates a SignupNoContent with default headers values

func (*SignupNoContent) Error

func (o *SignupNoContent) Error() string

func (*SignupNoContent) GetPayload

func (o *SignupNoContent) GetPayload() interface{}

type SignupNotFound

type SignupNotFound struct {
	Payload interface{}
}
SignupNotFound describes a response with status code 404, with default header values.

Resource does not exist.

func NewSignupNotFound

func NewSignupNotFound() *SignupNotFound

NewSignupNotFound creates a SignupNotFound with default headers values

func (*SignupNotFound) Error

func (o *SignupNotFound) Error() string

func (*SignupNotFound) GetPayload

func (o *SignupNotFound) GetPayload() interface{}

type SignupOK

type SignupOK struct {
	Payload *service_model.V1Auth
}
SignupOK describes a response with status code 200, with default header values.

A successful response.

func NewSignupOK

func NewSignupOK() *SignupOK

NewSignupOK creates a SignupOK with default headers values

func (*SignupOK) Error

func (o *SignupOK) Error() string

func (*SignupOK) GetPayload

func (o *SignupOK) GetPayload() *service_model.V1Auth

type SignupParams

type SignupParams struct {

	// Body.
	Body *service_model.V1UserSingup

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SignupParams contains all the parameters to send to the API endpoint

for the signup operation.

Typically these are written to a http.Request.

func NewSignupParams

func NewSignupParams() *SignupParams

NewSignupParams creates a new SignupParams 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 NewSignupParamsWithContext

func NewSignupParamsWithContext(ctx context.Context) *SignupParams

NewSignupParamsWithContext creates a new SignupParams object with the ability to set a context for a request.

func NewSignupParamsWithHTTPClient

func NewSignupParamsWithHTTPClient(client *http.Client) *SignupParams

NewSignupParamsWithHTTPClient creates a new SignupParams object with the ability to set a custom HTTPClient for a request.

func NewSignupParamsWithTimeout

func NewSignupParamsWithTimeout(timeout time.Duration) *SignupParams

NewSignupParamsWithTimeout creates a new SignupParams object with the ability to set a timeout on a request.

func (*SignupParams) SetBody

func (o *SignupParams) SetBody(body *service_model.V1UserSingup)

SetBody adds the body to the signup params

func (*SignupParams) SetContext

func (o *SignupParams) SetContext(ctx context.Context)

SetContext adds the context to the signup params

func (*SignupParams) SetDefaults

func (o *SignupParams) SetDefaults()

SetDefaults hydrates default values in the signup params (not the query body).

All values with no default are reset to their zero value.

func (*SignupParams) SetHTTPClient

func (o *SignupParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the signup params

func (*SignupParams) SetTimeout

func (o *SignupParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the signup params

func (*SignupParams) WithBody

WithBody adds the body to the signup params

func (*SignupParams) WithContext

func (o *SignupParams) WithContext(ctx context.Context) *SignupParams

WithContext adds the context to the signup params

func (*SignupParams) WithDefaults

func (o *SignupParams) WithDefaults() *SignupParams

WithDefaults hydrates default values in the signup params (not the query body).

All values with no default are reset to their zero value.

func (*SignupParams) WithHTTPClient

func (o *SignupParams) WithHTTPClient(client *http.Client) *SignupParams

WithHTTPClient adds the HTTPClient to the signup params

func (*SignupParams) WithTimeout

func (o *SignupParams) WithTimeout(timeout time.Duration) *SignupParams

WithTimeout adds the timeout to the signup params

func (*SignupParams) WriteToRequest

func (o *SignupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SignupReader

type SignupReader struct {
	// contains filtered or unexported fields
}

SignupReader is a Reader for the Signup structure.

func (*SignupReader) ReadResponse

func (o *SignupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type TrialDefault

type TrialDefault struct {
	Payload *service_model.RuntimeError
	// contains filtered or unexported fields
}
TrialDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewTrialDefault

func NewTrialDefault(code int) *TrialDefault

NewTrialDefault creates a TrialDefault with default headers values

func (*TrialDefault) Code

func (o *TrialDefault) Code() int

Code gets the status code for the trial default response

func (*TrialDefault) Error

func (o *TrialDefault) Error() string

func (*TrialDefault) GetPayload

func (o *TrialDefault) GetPayload() *service_model.RuntimeError

type TrialForbidden

type TrialForbidden struct {
	Payload interface{}
}
TrialForbidden describes a response with status code 403, with default header values.

You don't have permission to access the resource.

func NewTrialForbidden

func NewTrialForbidden() *TrialForbidden

NewTrialForbidden creates a TrialForbidden with default headers values

func (*TrialForbidden) Error

func (o *TrialForbidden) Error() string

func (*TrialForbidden) GetPayload

func (o *TrialForbidden) GetPayload() interface{}

type TrialNoContent

type TrialNoContent struct {
	Payload interface{}
}
TrialNoContent describes a response with status code 204, with default header values.

No content.

func NewTrialNoContent

func NewTrialNoContent() *TrialNoContent

NewTrialNoContent creates a TrialNoContent with default headers values

func (*TrialNoContent) Error

func (o *TrialNoContent) Error() string

func (*TrialNoContent) GetPayload

func (o *TrialNoContent) GetPayload() interface{}

type TrialNotFound

type TrialNotFound struct {
	Payload interface{}
}
TrialNotFound describes a response with status code 404, with default header values.

Resource does not exist.

func NewTrialNotFound

func NewTrialNotFound() *TrialNotFound

NewTrialNotFound creates a TrialNotFound with default headers values

func (*TrialNotFound) Error

func (o *TrialNotFound) Error() string

func (*TrialNotFound) GetPayload

func (o *TrialNotFound) GetPayload() interface{}

type TrialOK

type TrialOK struct {
}
TrialOK describes a response with status code 200, with default header values.

A successful response.

func NewTrialOK

func NewTrialOK() *TrialOK

NewTrialOK creates a TrialOK with default headers values

func (*TrialOK) Error

func (o *TrialOK) Error() string

type TrialParams

type TrialParams struct {

	// Body.
	Body *service_model.V1TrialStart

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

TrialParams contains all the parameters to send to the API endpoint

for the trial operation.

Typically these are written to a http.Request.

func NewTrialParams

func NewTrialParams() *TrialParams

NewTrialParams creates a new TrialParams 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 NewTrialParamsWithContext

func NewTrialParamsWithContext(ctx context.Context) *TrialParams

NewTrialParamsWithContext creates a new TrialParams object with the ability to set a context for a request.

func NewTrialParamsWithHTTPClient

func NewTrialParamsWithHTTPClient(client *http.Client) *TrialParams

NewTrialParamsWithHTTPClient creates a new TrialParams object with the ability to set a custom HTTPClient for a request.

func NewTrialParamsWithTimeout

func NewTrialParamsWithTimeout(timeout time.Duration) *TrialParams

NewTrialParamsWithTimeout creates a new TrialParams object with the ability to set a timeout on a request.

func (*TrialParams) SetBody

func (o *TrialParams) SetBody(body *service_model.V1TrialStart)

SetBody adds the body to the trial params

func (*TrialParams) SetContext

func (o *TrialParams) SetContext(ctx context.Context)

SetContext adds the context to the trial params

func (*TrialParams) SetDefaults

func (o *TrialParams) SetDefaults()

SetDefaults hydrates default values in the trial params (not the query body).

All values with no default are reset to their zero value.

func (*TrialParams) SetHTTPClient

func (o *TrialParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the trial params

func (*TrialParams) SetTimeout

func (o *TrialParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the trial params

func (*TrialParams) WithBody

func (o *TrialParams) WithBody(body *service_model.V1TrialStart) *TrialParams

WithBody adds the body to the trial params

func (*TrialParams) WithContext

func (o *TrialParams) WithContext(ctx context.Context) *TrialParams

WithContext adds the context to the trial params

func (*TrialParams) WithDefaults

func (o *TrialParams) WithDefaults() *TrialParams

WithDefaults hydrates default values in the trial params (not the query body).

All values with no default are reset to their zero value.

func (*TrialParams) WithHTTPClient

func (o *TrialParams) WithHTTPClient(client *http.Client) *TrialParams

WithHTTPClient adds the HTTPClient to the trial params

func (*TrialParams) WithTimeout

func (o *TrialParams) WithTimeout(timeout time.Duration) *TrialParams

WithTimeout adds the timeout to the trial params

func (*TrialParams) WriteToRequest

func (o *TrialParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type TrialReader

type TrialReader struct {
	// contains filtered or unexported fields
}

TrialReader is a Reader for the Trial structure.

func (*TrialReader) ReadResponse

func (o *TrialReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL