operations

package
v0.0.0-...-57762c0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAccountConflict

type AddAccountConflict struct {
}

AddAccountConflict describes a response with status code 409, with default header values.

Account already exists

func NewAddAccountConflict

func NewAddAccountConflict() *AddAccountConflict

NewAddAccountConflict creates a AddAccountConflict with default headers values

func (*AddAccountConflict) Code

func (o *AddAccountConflict) Code() int

Code gets the status code for the add account conflict response

func (*AddAccountConflict) Error

func (o *AddAccountConflict) Error() string

func (*AddAccountConflict) IsClientError

func (o *AddAccountConflict) IsClientError() bool

IsClientError returns true when this add account conflict response has a 4xx status code

func (*AddAccountConflict) IsCode

func (o *AddAccountConflict) IsCode(code int) bool

IsCode returns true when this add account conflict response a status code equal to that given

func (*AddAccountConflict) IsRedirect

func (o *AddAccountConflict) IsRedirect() bool

IsRedirect returns true when this add account conflict response has a 3xx status code

func (*AddAccountConflict) IsServerError

func (o *AddAccountConflict) IsServerError() bool

IsServerError returns true when this add account conflict response has a 5xx status code

func (*AddAccountConflict) IsSuccess

func (o *AddAccountConflict) IsSuccess() bool

IsSuccess returns true when this add account conflict response has a 2xx status code

func (*AddAccountConflict) String

func (o *AddAccountConflict) String() string

type AddAccountCreated

type AddAccountCreated struct {
	Payload *models.Account
}

AddAccountCreated describes a response with status code 201, with default header values.

Account added Successfully

func NewAddAccountCreated

func NewAddAccountCreated() *AddAccountCreated

NewAddAccountCreated creates a AddAccountCreated with default headers values

func (*AddAccountCreated) Code

func (o *AddAccountCreated) Code() int

Code gets the status code for the add account created response

func (*AddAccountCreated) Error

func (o *AddAccountCreated) Error() string

func (*AddAccountCreated) GetPayload

func (o *AddAccountCreated) GetPayload() *models.Account

func (*AddAccountCreated) IsClientError

func (o *AddAccountCreated) IsClientError() bool

IsClientError returns true when this add account created response has a 4xx status code

func (*AddAccountCreated) IsCode

func (o *AddAccountCreated) IsCode(code int) bool

IsCode returns true when this add account created response a status code equal to that given

func (*AddAccountCreated) IsRedirect

func (o *AddAccountCreated) IsRedirect() bool

IsRedirect returns true when this add account created response has a 3xx status code

func (*AddAccountCreated) IsServerError

func (o *AddAccountCreated) IsServerError() bool

IsServerError returns true when this add account created response has a 5xx status code

func (*AddAccountCreated) IsSuccess

func (o *AddAccountCreated) IsSuccess() bool

IsSuccess returns true when this add account created response has a 2xx status code

func (*AddAccountCreated) String

func (o *AddAccountCreated) String() string

type AddAccountInternalServerError

type AddAccountInternalServerError struct {
}

AddAccountInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewAddAccountInternalServerError

func NewAddAccountInternalServerError() *AddAccountInternalServerError

NewAddAccountInternalServerError creates a AddAccountInternalServerError with default headers values

func (*AddAccountInternalServerError) Code

Code gets the status code for the add account internal server error response

func (*AddAccountInternalServerError) Error

func (*AddAccountInternalServerError) IsClientError

func (o *AddAccountInternalServerError) IsClientError() bool

IsClientError returns true when this add account internal server error response has a 4xx status code

func (*AddAccountInternalServerError) IsCode

func (o *AddAccountInternalServerError) IsCode(code int) bool

IsCode returns true when this add account internal server error response a status code equal to that given

func (*AddAccountInternalServerError) IsRedirect

func (o *AddAccountInternalServerError) IsRedirect() bool

IsRedirect returns true when this add account internal server error response has a 3xx status code

func (*AddAccountInternalServerError) IsServerError

func (o *AddAccountInternalServerError) IsServerError() bool

IsServerError returns true when this add account internal server error response has a 5xx status code

func (*AddAccountInternalServerError) IsSuccess

func (o *AddAccountInternalServerError) IsSuccess() bool

IsSuccess returns true when this add account internal server error response has a 2xx status code

func (*AddAccountInternalServerError) String

type AddAccountParams

type AddAccountParams struct {

	/* Account.

	   Account to be added
	*/
	Account *models.Account

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

AddAccountParams contains all the parameters to send to the API endpoint

for the add account operation.

Typically these are written to a http.Request.

func NewAddAccountParams

func NewAddAccountParams() *AddAccountParams

NewAddAccountParams creates a new AddAccountParams 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 NewAddAccountParamsWithContext

func NewAddAccountParamsWithContext(ctx context.Context) *AddAccountParams

NewAddAccountParamsWithContext creates a new AddAccountParams object with the ability to set a context for a request.

func NewAddAccountParamsWithHTTPClient

func NewAddAccountParamsWithHTTPClient(client *http.Client) *AddAccountParams

NewAddAccountParamsWithHTTPClient creates a new AddAccountParams object with the ability to set a custom HTTPClient for a request.

func NewAddAccountParamsWithTimeout

func NewAddAccountParamsWithTimeout(timeout time.Duration) *AddAccountParams

NewAddAccountParamsWithTimeout creates a new AddAccountParams object with the ability to set a timeout on a request.

func (*AddAccountParams) SetAccount

func (o *AddAccountParams) SetAccount(account *models.Account)

SetAccount adds the account to the add account params

func (*AddAccountParams) SetContext

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

SetContext adds the context to the add account params

func (*AddAccountParams) SetDefaults

func (o *AddAccountParams) SetDefaults()

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

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

func (*AddAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add account params

func (*AddAccountParams) SetTimeout

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

SetTimeout adds the timeout to the add account params

func (*AddAccountParams) WithAccount

func (o *AddAccountParams) WithAccount(account *models.Account) *AddAccountParams

WithAccount adds the account to the add account params

func (*AddAccountParams) WithContext

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

WithContext adds the context to the add account params

func (*AddAccountParams) WithDefaults

func (o *AddAccountParams) WithDefaults() *AddAccountParams

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

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

func (*AddAccountParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add account params

func (*AddAccountParams) WithTimeout

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

WithTimeout adds the timeout to the add account params

func (*AddAccountParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddAccountReader

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

AddAccountReader is a Reader for the AddAccount structure.

func (*AddAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddClassConflict

type AddClassConflict struct {
}

AddClassConflict describes a response with status code 409, with default header values.

Class already exists

func NewAddClassConflict

func NewAddClassConflict() *AddClassConflict

NewAddClassConflict creates a AddClassConflict with default headers values

func (*AddClassConflict) Code

func (o *AddClassConflict) Code() int

Code gets the status code for the add class conflict response

func (*AddClassConflict) Error

func (o *AddClassConflict) Error() string

func (*AddClassConflict) IsClientError

func (o *AddClassConflict) IsClientError() bool

IsClientError returns true when this add class conflict response has a 4xx status code

func (*AddClassConflict) IsCode

func (o *AddClassConflict) IsCode(code int) bool

IsCode returns true when this add class conflict response a status code equal to that given

func (*AddClassConflict) IsRedirect

func (o *AddClassConflict) IsRedirect() bool

IsRedirect returns true when this add class conflict response has a 3xx status code

func (*AddClassConflict) IsServerError

func (o *AddClassConflict) IsServerError() bool

IsServerError returns true when this add class conflict response has a 5xx status code

func (*AddClassConflict) IsSuccess

func (o *AddClassConflict) IsSuccess() bool

IsSuccess returns true when this add class conflict response has a 2xx status code

func (*AddClassConflict) String

func (o *AddClassConflict) String() string

type AddClassCreated

type AddClassCreated struct {
	Payload *models.Class
}

AddClassCreated describes a response with status code 201, with default header values.

Class added Successfully

func NewAddClassCreated

func NewAddClassCreated() *AddClassCreated

NewAddClassCreated creates a AddClassCreated with default headers values

func (*AddClassCreated) Code

func (o *AddClassCreated) Code() int

Code gets the status code for the add class created response

func (*AddClassCreated) Error

func (o *AddClassCreated) Error() string

func (*AddClassCreated) GetPayload

func (o *AddClassCreated) GetPayload() *models.Class

func (*AddClassCreated) IsClientError

func (o *AddClassCreated) IsClientError() bool

IsClientError returns true when this add class created response has a 4xx status code

func (*AddClassCreated) IsCode

func (o *AddClassCreated) IsCode(code int) bool

IsCode returns true when this add class created response a status code equal to that given

func (*AddClassCreated) IsRedirect

func (o *AddClassCreated) IsRedirect() bool

IsRedirect returns true when this add class created response has a 3xx status code

func (*AddClassCreated) IsServerError

func (o *AddClassCreated) IsServerError() bool

IsServerError returns true when this add class created response has a 5xx status code

func (*AddClassCreated) IsSuccess

func (o *AddClassCreated) IsSuccess() bool

IsSuccess returns true when this add class created response has a 2xx status code

func (*AddClassCreated) String

func (o *AddClassCreated) String() string

type AddClassInternalServerError

type AddClassInternalServerError struct {
}

AddClassInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewAddClassInternalServerError

func NewAddClassInternalServerError() *AddClassInternalServerError

NewAddClassInternalServerError creates a AddClassInternalServerError with default headers values

func (*AddClassInternalServerError) Code

func (o *AddClassInternalServerError) Code() int

Code gets the status code for the add class internal server error response

func (*AddClassInternalServerError) Error

func (*AddClassInternalServerError) IsClientError

func (o *AddClassInternalServerError) IsClientError() bool

IsClientError returns true when this add class internal server error response has a 4xx status code

func (*AddClassInternalServerError) IsCode

func (o *AddClassInternalServerError) IsCode(code int) bool

IsCode returns true when this add class internal server error response a status code equal to that given

func (*AddClassInternalServerError) IsRedirect

func (o *AddClassInternalServerError) IsRedirect() bool

IsRedirect returns true when this add class internal server error response has a 3xx status code

func (*AddClassInternalServerError) IsServerError

func (o *AddClassInternalServerError) IsServerError() bool

IsServerError returns true when this add class internal server error response has a 5xx status code

func (*AddClassInternalServerError) IsSuccess

func (o *AddClassInternalServerError) IsSuccess() bool

IsSuccess returns true when this add class internal server error response has a 2xx status code

func (*AddClassInternalServerError) String

func (o *AddClassInternalServerError) String() string

type AddClassParams

type AddClassParams struct {

	/* Class.

	   Class to be added
	*/
	Class *models.Class

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

AddClassParams contains all the parameters to send to the API endpoint

for the add class operation.

Typically these are written to a http.Request.

func NewAddClassParams

func NewAddClassParams() *AddClassParams

NewAddClassParams creates a new AddClassParams 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 NewAddClassParamsWithContext

func NewAddClassParamsWithContext(ctx context.Context) *AddClassParams

NewAddClassParamsWithContext creates a new AddClassParams object with the ability to set a context for a request.

func NewAddClassParamsWithHTTPClient

func NewAddClassParamsWithHTTPClient(client *http.Client) *AddClassParams

NewAddClassParamsWithHTTPClient creates a new AddClassParams object with the ability to set a custom HTTPClient for a request.

func NewAddClassParamsWithTimeout

func NewAddClassParamsWithTimeout(timeout time.Duration) *AddClassParams

NewAddClassParamsWithTimeout creates a new AddClassParams object with the ability to set a timeout on a request.

func (*AddClassParams) SetClass

func (o *AddClassParams) SetClass(class *models.Class)

SetClass adds the class to the add class params

func (*AddClassParams) SetContext

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

SetContext adds the context to the add class params

func (*AddClassParams) SetDefaults

func (o *AddClassParams) SetDefaults()

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

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

func (*AddClassParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add class params

func (*AddClassParams) SetTimeout

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

SetTimeout adds the timeout to the add class params

func (*AddClassParams) WithClass

func (o *AddClassParams) WithClass(class *models.Class) *AddClassParams

WithClass adds the class to the add class params

func (*AddClassParams) WithContext

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

WithContext adds the context to the add class params

func (*AddClassParams) WithDefaults

func (o *AddClassParams) WithDefaults() *AddClassParams

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

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

func (*AddClassParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add class params

func (*AddClassParams) WithTimeout

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

WithTimeout adds the timeout to the add class params

func (*AddClassParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddClassReader

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

AddClassReader is a Reader for the AddClass structure.

func (*AddClassReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddOrRemoveStudentBody

type AddOrRemoveStudentBody struct {

	// add
	Add bool `json:"Add,omitempty"`

	// student ID
	StudentID int64 `json:"StudentID,omitempty"`
}

AddOrRemoveStudentBody add or remove student body swagger:model AddOrRemoveStudentBody

func (*AddOrRemoveStudentBody) ContextValidate

func (o *AddOrRemoveStudentBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this add or remove student body based on context it is used

func (*AddOrRemoveStudentBody) MarshalBinary

func (o *AddOrRemoveStudentBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddOrRemoveStudentBody) UnmarshalBinary

func (o *AddOrRemoveStudentBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddOrRemoveStudentBody) Validate

func (o *AddOrRemoveStudentBody) Validate(formats strfmt.Registry) error

Validate validates this add or remove student body

type AddOrRemoveStudentInternalServerError

type AddOrRemoveStudentInternalServerError struct {
}

AddOrRemoveStudentInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewAddOrRemoveStudentInternalServerError

func NewAddOrRemoveStudentInternalServerError() *AddOrRemoveStudentInternalServerError

NewAddOrRemoveStudentInternalServerError creates a AddOrRemoveStudentInternalServerError with default headers values

func (*AddOrRemoveStudentInternalServerError) Code

Code gets the status code for the add or remove student internal server error response

func (*AddOrRemoveStudentInternalServerError) Error

func (*AddOrRemoveStudentInternalServerError) IsClientError

func (o *AddOrRemoveStudentInternalServerError) IsClientError() bool

IsClientError returns true when this add or remove student internal server error response has a 4xx status code

func (*AddOrRemoveStudentInternalServerError) IsCode

IsCode returns true when this add or remove student internal server error response a status code equal to that given

func (*AddOrRemoveStudentInternalServerError) IsRedirect

IsRedirect returns true when this add or remove student internal server error response has a 3xx status code

func (*AddOrRemoveStudentInternalServerError) IsServerError

func (o *AddOrRemoveStudentInternalServerError) IsServerError() bool

IsServerError returns true when this add or remove student internal server error response has a 5xx status code

func (*AddOrRemoveStudentInternalServerError) IsSuccess

IsSuccess returns true when this add or remove student internal server error response has a 2xx status code

func (*AddOrRemoveStudentInternalServerError) String

type AddOrRemoveStudentNotFound

type AddOrRemoveStudentNotFound struct {
}

AddOrRemoveStudentNotFound describes a response with status code 404, with default header values.

Class Not found!

func NewAddOrRemoveStudentNotFound

func NewAddOrRemoveStudentNotFound() *AddOrRemoveStudentNotFound

NewAddOrRemoveStudentNotFound creates a AddOrRemoveStudentNotFound with default headers values

func (*AddOrRemoveStudentNotFound) Code

func (o *AddOrRemoveStudentNotFound) Code() int

Code gets the status code for the add or remove student not found response

func (*AddOrRemoveStudentNotFound) Error

func (*AddOrRemoveStudentNotFound) IsClientError

func (o *AddOrRemoveStudentNotFound) IsClientError() bool

IsClientError returns true when this add or remove student not found response has a 4xx status code

func (*AddOrRemoveStudentNotFound) IsCode

func (o *AddOrRemoveStudentNotFound) IsCode(code int) bool

IsCode returns true when this add or remove student not found response a status code equal to that given

func (*AddOrRemoveStudentNotFound) IsRedirect

func (o *AddOrRemoveStudentNotFound) IsRedirect() bool

IsRedirect returns true when this add or remove student not found response has a 3xx status code

func (*AddOrRemoveStudentNotFound) IsServerError

func (o *AddOrRemoveStudentNotFound) IsServerError() bool

IsServerError returns true when this add or remove student not found response has a 5xx status code

func (*AddOrRemoveStudentNotFound) IsSuccess

func (o *AddOrRemoveStudentNotFound) IsSuccess() bool

IsSuccess returns true when this add or remove student not found response has a 2xx status code

func (*AddOrRemoveStudentNotFound) String

func (o *AddOrRemoveStudentNotFound) String() string

type AddOrRemoveStudentOK

type AddOrRemoveStudentOK struct {
	Payload int64
}

AddOrRemoveStudentOK describes a response with status code 200, with default header values.

Student added/removed to Class

func NewAddOrRemoveStudentOK

func NewAddOrRemoveStudentOK() *AddOrRemoveStudentOK

NewAddOrRemoveStudentOK creates a AddOrRemoveStudentOK with default headers values

func (*AddOrRemoveStudentOK) Code

func (o *AddOrRemoveStudentOK) Code() int

Code gets the status code for the add or remove student o k response

func (*AddOrRemoveStudentOK) Error

func (o *AddOrRemoveStudentOK) Error() string

func (*AddOrRemoveStudentOK) GetPayload

func (o *AddOrRemoveStudentOK) GetPayload() int64

func (*AddOrRemoveStudentOK) IsClientError

func (o *AddOrRemoveStudentOK) IsClientError() bool

IsClientError returns true when this add or remove student o k response has a 4xx status code

func (*AddOrRemoveStudentOK) IsCode

func (o *AddOrRemoveStudentOK) IsCode(code int) bool

IsCode returns true when this add or remove student o k response a status code equal to that given

func (*AddOrRemoveStudentOK) IsRedirect

func (o *AddOrRemoveStudentOK) IsRedirect() bool

IsRedirect returns true when this add or remove student o k response has a 3xx status code

func (*AddOrRemoveStudentOK) IsServerError

func (o *AddOrRemoveStudentOK) IsServerError() bool

IsServerError returns true when this add or remove student o k response has a 5xx status code

func (*AddOrRemoveStudentOK) IsSuccess

func (o *AddOrRemoveStudentOK) IsSuccess() bool

IsSuccess returns true when this add or remove student o k response has a 2xx status code

func (*AddOrRemoveStudentOK) String

func (o *AddOrRemoveStudentOK) String() string

type AddOrRemoveStudentParams

type AddOrRemoveStudentParams struct {

	/* ID.

	   Class ID
	*/
	ID int64

	/* Student.

	   The object containing ID of Student to be added or removed with operation
	*/
	Student AddOrRemoveStudentBody

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

AddOrRemoveStudentParams contains all the parameters to send to the API endpoint

for the add or remove student operation.

Typically these are written to a http.Request.

func NewAddOrRemoveStudentParams

func NewAddOrRemoveStudentParams() *AddOrRemoveStudentParams

NewAddOrRemoveStudentParams creates a new AddOrRemoveStudentParams 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 NewAddOrRemoveStudentParamsWithContext

func NewAddOrRemoveStudentParamsWithContext(ctx context.Context) *AddOrRemoveStudentParams

NewAddOrRemoveStudentParamsWithContext creates a new AddOrRemoveStudentParams object with the ability to set a context for a request.

func NewAddOrRemoveStudentParamsWithHTTPClient

func NewAddOrRemoveStudentParamsWithHTTPClient(client *http.Client) *AddOrRemoveStudentParams

NewAddOrRemoveStudentParamsWithHTTPClient creates a new AddOrRemoveStudentParams object with the ability to set a custom HTTPClient for a request.

func NewAddOrRemoveStudentParamsWithTimeout

func NewAddOrRemoveStudentParamsWithTimeout(timeout time.Duration) *AddOrRemoveStudentParams

NewAddOrRemoveStudentParamsWithTimeout creates a new AddOrRemoveStudentParams object with the ability to set a timeout on a request.

func (*AddOrRemoveStudentParams) SetContext

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

SetContext adds the context to the add or remove student params

func (*AddOrRemoveStudentParams) SetDefaults

func (o *AddOrRemoveStudentParams) SetDefaults()

SetDefaults hydrates default values in the add or remove student params (not the query body).

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

func (*AddOrRemoveStudentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add or remove student params

func (*AddOrRemoveStudentParams) SetID

func (o *AddOrRemoveStudentParams) SetID(id int64)

SetID adds the id to the add or remove student params

func (*AddOrRemoveStudentParams) SetStudent

func (o *AddOrRemoveStudentParams) SetStudent(student AddOrRemoveStudentBody)

SetStudent adds the student to the add or remove student params

func (*AddOrRemoveStudentParams) SetTimeout

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

SetTimeout adds the timeout to the add or remove student params

func (*AddOrRemoveStudentParams) WithContext

WithContext adds the context to the add or remove student params

func (*AddOrRemoveStudentParams) WithDefaults

WithDefaults hydrates default values in the add or remove student params (not the query body).

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

func (*AddOrRemoveStudentParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add or remove student params

func (*AddOrRemoveStudentParams) WithID

WithID adds the id to the add or remove student params

func (*AddOrRemoveStudentParams) WithStudent

WithStudent adds the student to the add or remove student params

func (*AddOrRemoveStudentParams) WithTimeout

WithTimeout adds the timeout to the add or remove student params

func (*AddOrRemoveStudentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AddOrRemoveStudentReader

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

AddOrRemoveStudentReader is a Reader for the AddOrRemoveStudent structure.

func (*AddOrRemoveStudentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddStudentConflict

type AddStudentConflict struct {
}

AddStudentConflict describes a response with status code 409, with default header values.

Student already exists

func NewAddStudentConflict

func NewAddStudentConflict() *AddStudentConflict

NewAddStudentConflict creates a AddStudentConflict with default headers values

func (*AddStudentConflict) Code

func (o *AddStudentConflict) Code() int

Code gets the status code for the add student conflict response

func (*AddStudentConflict) Error

func (o *AddStudentConflict) Error() string

func (*AddStudentConflict) IsClientError

func (o *AddStudentConflict) IsClientError() bool

IsClientError returns true when this add student conflict response has a 4xx status code

func (*AddStudentConflict) IsCode

func (o *AddStudentConflict) IsCode(code int) bool

IsCode returns true when this add student conflict response a status code equal to that given

func (*AddStudentConflict) IsRedirect

func (o *AddStudentConflict) IsRedirect() bool

IsRedirect returns true when this add student conflict response has a 3xx status code

func (*AddStudentConflict) IsServerError

func (o *AddStudentConflict) IsServerError() bool

IsServerError returns true when this add student conflict response has a 5xx status code

func (*AddStudentConflict) IsSuccess

func (o *AddStudentConflict) IsSuccess() bool

IsSuccess returns true when this add student conflict response has a 2xx status code

func (*AddStudentConflict) String

func (o *AddStudentConflict) String() string

type AddStudentCreated

type AddStudentCreated struct {
	Payload *models.Student
}

AddStudentCreated describes a response with status code 201, with default header values.

Student added Successfully

func NewAddStudentCreated

func NewAddStudentCreated() *AddStudentCreated

NewAddStudentCreated creates a AddStudentCreated with default headers values

func (*AddStudentCreated) Code

func (o *AddStudentCreated) Code() int

Code gets the status code for the add student created response

func (*AddStudentCreated) Error

func (o *AddStudentCreated) Error() string

func (*AddStudentCreated) GetPayload

func (o *AddStudentCreated) GetPayload() *models.Student

func (*AddStudentCreated) IsClientError

func (o *AddStudentCreated) IsClientError() bool

IsClientError returns true when this add student created response has a 4xx status code

func (*AddStudentCreated) IsCode

func (o *AddStudentCreated) IsCode(code int) bool

IsCode returns true when this add student created response a status code equal to that given

func (*AddStudentCreated) IsRedirect

func (o *AddStudentCreated) IsRedirect() bool

IsRedirect returns true when this add student created response has a 3xx status code

func (*AddStudentCreated) IsServerError

func (o *AddStudentCreated) IsServerError() bool

IsServerError returns true when this add student created response has a 5xx status code

func (*AddStudentCreated) IsSuccess

func (o *AddStudentCreated) IsSuccess() bool

IsSuccess returns true when this add student created response has a 2xx status code

func (*AddStudentCreated) String

func (o *AddStudentCreated) String() string

type AddStudentInternalServerError

type AddStudentInternalServerError struct {
}

AddStudentInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewAddStudentInternalServerError

func NewAddStudentInternalServerError() *AddStudentInternalServerError

NewAddStudentInternalServerError creates a AddStudentInternalServerError with default headers values

func (*AddStudentInternalServerError) Code

Code gets the status code for the add student internal server error response

func (*AddStudentInternalServerError) Error

func (*AddStudentInternalServerError) IsClientError

func (o *AddStudentInternalServerError) IsClientError() bool

IsClientError returns true when this add student internal server error response has a 4xx status code

func (*AddStudentInternalServerError) IsCode

func (o *AddStudentInternalServerError) IsCode(code int) bool

IsCode returns true when this add student internal server error response a status code equal to that given

func (*AddStudentInternalServerError) IsRedirect

func (o *AddStudentInternalServerError) IsRedirect() bool

IsRedirect returns true when this add student internal server error response has a 3xx status code

func (*AddStudentInternalServerError) IsServerError

func (o *AddStudentInternalServerError) IsServerError() bool

IsServerError returns true when this add student internal server error response has a 5xx status code

func (*AddStudentInternalServerError) IsSuccess

func (o *AddStudentInternalServerError) IsSuccess() bool

IsSuccess returns true when this add student internal server error response has a 2xx status code

func (*AddStudentInternalServerError) String

type AddStudentParams

type AddStudentParams struct {

	/* Student.

	   Student to be added
	*/
	Student *models.Student

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

AddStudentParams contains all the parameters to send to the API endpoint

for the add student operation.

Typically these are written to a http.Request.

func NewAddStudentParams

func NewAddStudentParams() *AddStudentParams

NewAddStudentParams creates a new AddStudentParams 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 NewAddStudentParamsWithContext

func NewAddStudentParamsWithContext(ctx context.Context) *AddStudentParams

NewAddStudentParamsWithContext creates a new AddStudentParams object with the ability to set a context for a request.

func NewAddStudentParamsWithHTTPClient

func NewAddStudentParamsWithHTTPClient(client *http.Client) *AddStudentParams

NewAddStudentParamsWithHTTPClient creates a new AddStudentParams object with the ability to set a custom HTTPClient for a request.

func NewAddStudentParamsWithTimeout

func NewAddStudentParamsWithTimeout(timeout time.Duration) *AddStudentParams

NewAddStudentParamsWithTimeout creates a new AddStudentParams object with the ability to set a timeout on a request.

func (*AddStudentParams) SetContext

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

SetContext adds the context to the add student params

func (*AddStudentParams) SetDefaults

func (o *AddStudentParams) SetDefaults()

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

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

func (*AddStudentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add student params

func (*AddStudentParams) SetStudent

func (o *AddStudentParams) SetStudent(student *models.Student)

SetStudent adds the student to the add student params

func (*AddStudentParams) SetTimeout

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

SetTimeout adds the timeout to the add student params

func (*AddStudentParams) WithContext

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

WithContext adds the context to the add student params

func (*AddStudentParams) WithDefaults

func (o *AddStudentParams) WithDefaults() *AddStudentParams

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

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

func (*AddStudentParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add student params

func (*AddStudentParams) WithStudent

func (o *AddStudentParams) WithStudent(student *models.Student) *AddStudentParams

WithStudent adds the student to the add student params

func (*AddStudentParams) WithTimeout

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

WithTimeout adds the timeout to the add student params

func (*AddStudentParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddStudentReader

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

AddStudentReader is a Reader for the AddStudent structure.

func (*AddStudentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddSubjectConflict

type AddSubjectConflict struct {
}

AddSubjectConflict describes a response with status code 409, with default header values.

Subject already exists

func NewAddSubjectConflict

func NewAddSubjectConflict() *AddSubjectConflict

NewAddSubjectConflict creates a AddSubjectConflict with default headers values

func (*AddSubjectConflict) Code

func (o *AddSubjectConflict) Code() int

Code gets the status code for the add subject conflict response

func (*AddSubjectConflict) Error

func (o *AddSubjectConflict) Error() string

func (*AddSubjectConflict) IsClientError

func (o *AddSubjectConflict) IsClientError() bool

IsClientError returns true when this add subject conflict response has a 4xx status code

func (*AddSubjectConflict) IsCode

func (o *AddSubjectConflict) IsCode(code int) bool

IsCode returns true when this add subject conflict response a status code equal to that given

func (*AddSubjectConflict) IsRedirect

func (o *AddSubjectConflict) IsRedirect() bool

IsRedirect returns true when this add subject conflict response has a 3xx status code

func (*AddSubjectConflict) IsServerError

func (o *AddSubjectConflict) IsServerError() bool

IsServerError returns true when this add subject conflict response has a 5xx status code

func (*AddSubjectConflict) IsSuccess

func (o *AddSubjectConflict) IsSuccess() bool

IsSuccess returns true when this add subject conflict response has a 2xx status code

func (*AddSubjectConflict) String

func (o *AddSubjectConflict) String() string

type AddSubjectCreated

type AddSubjectCreated struct {
	Payload *models.Subject
}

AddSubjectCreated describes a response with status code 201, with default header values.

Subject added Successfully

func NewAddSubjectCreated

func NewAddSubjectCreated() *AddSubjectCreated

NewAddSubjectCreated creates a AddSubjectCreated with default headers values

func (*AddSubjectCreated) Code

func (o *AddSubjectCreated) Code() int

Code gets the status code for the add subject created response

func (*AddSubjectCreated) Error

func (o *AddSubjectCreated) Error() string

func (*AddSubjectCreated) GetPayload

func (o *AddSubjectCreated) GetPayload() *models.Subject

func (*AddSubjectCreated) IsClientError

func (o *AddSubjectCreated) IsClientError() bool

IsClientError returns true when this add subject created response has a 4xx status code

func (*AddSubjectCreated) IsCode

func (o *AddSubjectCreated) IsCode(code int) bool

IsCode returns true when this add subject created response a status code equal to that given

func (*AddSubjectCreated) IsRedirect

func (o *AddSubjectCreated) IsRedirect() bool

IsRedirect returns true when this add subject created response has a 3xx status code

func (*AddSubjectCreated) IsServerError

func (o *AddSubjectCreated) IsServerError() bool

IsServerError returns true when this add subject created response has a 5xx status code

func (*AddSubjectCreated) IsSuccess

func (o *AddSubjectCreated) IsSuccess() bool

IsSuccess returns true when this add subject created response has a 2xx status code

func (*AddSubjectCreated) String

func (o *AddSubjectCreated) String() string

type AddSubjectInternalServerError

type AddSubjectInternalServerError struct {
}

AddSubjectInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewAddSubjectInternalServerError

func NewAddSubjectInternalServerError() *AddSubjectInternalServerError

NewAddSubjectInternalServerError creates a AddSubjectInternalServerError with default headers values

func (*AddSubjectInternalServerError) Code

Code gets the status code for the add subject internal server error response

func (*AddSubjectInternalServerError) Error

func (*AddSubjectInternalServerError) IsClientError

func (o *AddSubjectInternalServerError) IsClientError() bool

IsClientError returns true when this add subject internal server error response has a 4xx status code

func (*AddSubjectInternalServerError) IsCode

func (o *AddSubjectInternalServerError) IsCode(code int) bool

IsCode returns true when this add subject internal server error response a status code equal to that given

func (*AddSubjectInternalServerError) IsRedirect

func (o *AddSubjectInternalServerError) IsRedirect() bool

IsRedirect returns true when this add subject internal server error response has a 3xx status code

func (*AddSubjectInternalServerError) IsServerError

func (o *AddSubjectInternalServerError) IsServerError() bool

IsServerError returns true when this add subject internal server error response has a 5xx status code

func (*AddSubjectInternalServerError) IsSuccess

func (o *AddSubjectInternalServerError) IsSuccess() bool

IsSuccess returns true when this add subject internal server error response has a 2xx status code

func (*AddSubjectInternalServerError) String

type AddSubjectParams

type AddSubjectParams struct {

	/* Subject.

	   Subject to be added
	*/
	Subject *models.Subject

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

AddSubjectParams contains all the parameters to send to the API endpoint

for the add subject operation.

Typically these are written to a http.Request.

func NewAddSubjectParams

func NewAddSubjectParams() *AddSubjectParams

NewAddSubjectParams creates a new AddSubjectParams 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 NewAddSubjectParamsWithContext

func NewAddSubjectParamsWithContext(ctx context.Context) *AddSubjectParams

NewAddSubjectParamsWithContext creates a new AddSubjectParams object with the ability to set a context for a request.

func NewAddSubjectParamsWithHTTPClient

func NewAddSubjectParamsWithHTTPClient(client *http.Client) *AddSubjectParams

NewAddSubjectParamsWithHTTPClient creates a new AddSubjectParams object with the ability to set a custom HTTPClient for a request.

func NewAddSubjectParamsWithTimeout

func NewAddSubjectParamsWithTimeout(timeout time.Duration) *AddSubjectParams

NewAddSubjectParamsWithTimeout creates a new AddSubjectParams object with the ability to set a timeout on a request.

func (*AddSubjectParams) SetContext

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

SetContext adds the context to the add subject params

func (*AddSubjectParams) SetDefaults

func (o *AddSubjectParams) SetDefaults()

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

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

func (*AddSubjectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add subject params

func (*AddSubjectParams) SetSubject

func (o *AddSubjectParams) SetSubject(subject *models.Subject)

SetSubject adds the subject to the add subject params

func (*AddSubjectParams) SetTimeout

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

SetTimeout adds the timeout to the add subject params

func (*AddSubjectParams) WithContext

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

WithContext adds the context to the add subject params

func (*AddSubjectParams) WithDefaults

func (o *AddSubjectParams) WithDefaults() *AddSubjectParams

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

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

func (*AddSubjectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add subject params

func (*AddSubjectParams) WithSubject

func (o *AddSubjectParams) WithSubject(subject *models.Subject) *AddSubjectParams

WithSubject adds the subject to the add subject params

func (*AddSubjectParams) WithTimeout

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

WithTimeout adds the timeout to the add subject params

func (*AddSubjectParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddSubjectReader

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

AddSubjectReader is a Reader for the AddSubject structure.

func (*AddSubjectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddTeacherConflict

type AddTeacherConflict struct {
}

AddTeacherConflict describes a response with status code 409, with default header values.

Teacher already exists

func NewAddTeacherConflict

func NewAddTeacherConflict() *AddTeacherConflict

NewAddTeacherConflict creates a AddTeacherConflict with default headers values

func (*AddTeacherConflict) Code

func (o *AddTeacherConflict) Code() int

Code gets the status code for the add teacher conflict response

func (*AddTeacherConflict) Error

func (o *AddTeacherConflict) Error() string

func (*AddTeacherConflict) IsClientError

func (o *AddTeacherConflict) IsClientError() bool

IsClientError returns true when this add teacher conflict response has a 4xx status code

func (*AddTeacherConflict) IsCode

func (o *AddTeacherConflict) IsCode(code int) bool

IsCode returns true when this add teacher conflict response a status code equal to that given

func (*AddTeacherConflict) IsRedirect

func (o *AddTeacherConflict) IsRedirect() bool

IsRedirect returns true when this add teacher conflict response has a 3xx status code

func (*AddTeacherConflict) IsServerError

func (o *AddTeacherConflict) IsServerError() bool

IsServerError returns true when this add teacher conflict response has a 5xx status code

func (*AddTeacherConflict) IsSuccess

func (o *AddTeacherConflict) IsSuccess() bool

IsSuccess returns true when this add teacher conflict response has a 2xx status code

func (*AddTeacherConflict) String

func (o *AddTeacherConflict) String() string

type AddTeacherCreated

type AddTeacherCreated struct {
	Payload *models.Teacher
}

AddTeacherCreated describes a response with status code 201, with default header values.

Teacher registered Successfully!

func NewAddTeacherCreated

func NewAddTeacherCreated() *AddTeacherCreated

NewAddTeacherCreated creates a AddTeacherCreated with default headers values

func (*AddTeacherCreated) Code

func (o *AddTeacherCreated) Code() int

Code gets the status code for the add teacher created response

func (*AddTeacherCreated) Error

func (o *AddTeacherCreated) Error() string

func (*AddTeacherCreated) GetPayload

func (o *AddTeacherCreated) GetPayload() *models.Teacher

func (*AddTeacherCreated) IsClientError

func (o *AddTeacherCreated) IsClientError() bool

IsClientError returns true when this add teacher created response has a 4xx status code

func (*AddTeacherCreated) IsCode

func (o *AddTeacherCreated) IsCode(code int) bool

IsCode returns true when this add teacher created response a status code equal to that given

func (*AddTeacherCreated) IsRedirect

func (o *AddTeacherCreated) IsRedirect() bool

IsRedirect returns true when this add teacher created response has a 3xx status code

func (*AddTeacherCreated) IsServerError

func (o *AddTeacherCreated) IsServerError() bool

IsServerError returns true when this add teacher created response has a 5xx status code

func (*AddTeacherCreated) IsSuccess

func (o *AddTeacherCreated) IsSuccess() bool

IsSuccess returns true when this add teacher created response has a 2xx status code

func (*AddTeacherCreated) String

func (o *AddTeacherCreated) String() string

type AddTeacherInternalServerError

type AddTeacherInternalServerError struct {
}

AddTeacherInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewAddTeacherInternalServerError

func NewAddTeacherInternalServerError() *AddTeacherInternalServerError

NewAddTeacherInternalServerError creates a AddTeacherInternalServerError with default headers values

func (*AddTeacherInternalServerError) Code

Code gets the status code for the add teacher internal server error response

func (*AddTeacherInternalServerError) Error

func (*AddTeacherInternalServerError) IsClientError

func (o *AddTeacherInternalServerError) IsClientError() bool

IsClientError returns true when this add teacher internal server error response has a 4xx status code

func (*AddTeacherInternalServerError) IsCode

func (o *AddTeacherInternalServerError) IsCode(code int) bool

IsCode returns true when this add teacher internal server error response a status code equal to that given

func (*AddTeacherInternalServerError) IsRedirect

func (o *AddTeacherInternalServerError) IsRedirect() bool

IsRedirect returns true when this add teacher internal server error response has a 3xx status code

func (*AddTeacherInternalServerError) IsServerError

func (o *AddTeacherInternalServerError) IsServerError() bool

IsServerError returns true when this add teacher internal server error response has a 5xx status code

func (*AddTeacherInternalServerError) IsSuccess

func (o *AddTeacherInternalServerError) IsSuccess() bool

IsSuccess returns true when this add teacher internal server error response has a 2xx status code

func (*AddTeacherInternalServerError) String

type AddTeacherParams

type AddTeacherParams struct {

	/* Teacher.

	   Teacher Registration Data
	*/
	Teacher *models.Teacher

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

AddTeacherParams contains all the parameters to send to the API endpoint

for the add teacher operation.

Typically these are written to a http.Request.

func NewAddTeacherParams

func NewAddTeacherParams() *AddTeacherParams

NewAddTeacherParams creates a new AddTeacherParams 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 NewAddTeacherParamsWithContext

func NewAddTeacherParamsWithContext(ctx context.Context) *AddTeacherParams

NewAddTeacherParamsWithContext creates a new AddTeacherParams object with the ability to set a context for a request.

func NewAddTeacherParamsWithHTTPClient

func NewAddTeacherParamsWithHTTPClient(client *http.Client) *AddTeacherParams

NewAddTeacherParamsWithHTTPClient creates a new AddTeacherParams object with the ability to set a custom HTTPClient for a request.

func NewAddTeacherParamsWithTimeout

func NewAddTeacherParamsWithTimeout(timeout time.Duration) *AddTeacherParams

NewAddTeacherParamsWithTimeout creates a new AddTeacherParams object with the ability to set a timeout on a request.

func (*AddTeacherParams) SetContext

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

SetContext adds the context to the add teacher params

func (*AddTeacherParams) SetDefaults

func (o *AddTeacherParams) SetDefaults()

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

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

func (*AddTeacherParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add teacher params

func (*AddTeacherParams) SetTeacher

func (o *AddTeacherParams) SetTeacher(teacher *models.Teacher)

SetTeacher adds the teacher to the add teacher params

func (*AddTeacherParams) SetTimeout

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

SetTimeout adds the timeout to the add teacher params

func (*AddTeacherParams) WithContext

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

WithContext adds the context to the add teacher params

func (*AddTeacherParams) WithDefaults

func (o *AddTeacherParams) WithDefaults() *AddTeacherParams

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

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

func (*AddTeacherParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add teacher params

func (*AddTeacherParams) WithTeacher

func (o *AddTeacherParams) WithTeacher(teacher *models.Teacher) *AddTeacherParams

WithTeacher adds the teacher to the add teacher params

func (*AddTeacherParams) WithTimeout

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

WithTimeout adds the timeout to the add teacher params

func (*AddTeacherParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddTeacherReader

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

AddTeacherReader is a Reader for the AddTeacher structure.

func (*AddTeacherReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AssignClassBody

type AssignClassBody struct {

	// class ID
	ClassID int64 `json:"ClassID,omitempty"`
}

AssignClassBody assign class body swagger:model AssignClassBody

func (*AssignClassBody) ContextValidate

func (o *AssignClassBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this assign class body based on context it is used

func (*AssignClassBody) MarshalBinary

func (o *AssignClassBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AssignClassBody) UnmarshalBinary

func (o *AssignClassBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AssignClassBody) Validate

func (o *AssignClassBody) Validate(formats strfmt.Registry) error

Validate validates this assign class body

type AssignClassInternalServerError

type AssignClassInternalServerError struct {
}

AssignClassInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewAssignClassInternalServerError

func NewAssignClassInternalServerError() *AssignClassInternalServerError

NewAssignClassInternalServerError creates a AssignClassInternalServerError with default headers values

func (*AssignClassInternalServerError) Code

Code gets the status code for the assign class internal server error response

func (*AssignClassInternalServerError) Error

func (*AssignClassInternalServerError) IsClientError

func (o *AssignClassInternalServerError) IsClientError() bool

IsClientError returns true when this assign class internal server error response has a 4xx status code

func (*AssignClassInternalServerError) IsCode

func (o *AssignClassInternalServerError) IsCode(code int) bool

IsCode returns true when this assign class internal server error response a status code equal to that given

func (*AssignClassInternalServerError) IsRedirect

func (o *AssignClassInternalServerError) IsRedirect() bool

IsRedirect returns true when this assign class internal server error response has a 3xx status code

func (*AssignClassInternalServerError) IsServerError

func (o *AssignClassInternalServerError) IsServerError() bool

IsServerError returns true when this assign class internal server error response has a 5xx status code

func (*AssignClassInternalServerError) IsSuccess

func (o *AssignClassInternalServerError) IsSuccess() bool

IsSuccess returns true when this assign class internal server error response has a 2xx status code

func (*AssignClassInternalServerError) String

type AssignClassNotFound

type AssignClassNotFound struct {
}

AssignClassNotFound describes a response with status code 404, with default header values.

Subject Not found!

func NewAssignClassNotFound

func NewAssignClassNotFound() *AssignClassNotFound

NewAssignClassNotFound creates a AssignClassNotFound with default headers values

func (*AssignClassNotFound) Code

func (o *AssignClassNotFound) Code() int

Code gets the status code for the assign class not found response

func (*AssignClassNotFound) Error

func (o *AssignClassNotFound) Error() string

func (*AssignClassNotFound) IsClientError

func (o *AssignClassNotFound) IsClientError() bool

IsClientError returns true when this assign class not found response has a 4xx status code

func (*AssignClassNotFound) IsCode

func (o *AssignClassNotFound) IsCode(code int) bool

IsCode returns true when this assign class not found response a status code equal to that given

func (*AssignClassNotFound) IsRedirect

func (o *AssignClassNotFound) IsRedirect() bool

IsRedirect returns true when this assign class not found response has a 3xx status code

func (*AssignClassNotFound) IsServerError

func (o *AssignClassNotFound) IsServerError() bool

IsServerError returns true when this assign class not found response has a 5xx status code

func (*AssignClassNotFound) IsSuccess

func (o *AssignClassNotFound) IsSuccess() bool

IsSuccess returns true when this assign class not found response has a 2xx status code

func (*AssignClassNotFound) String

func (o *AssignClassNotFound) String() string

type AssignClassOK

type AssignClassOK struct {
	Payload int64
}

AssignClassOK describes a response with status code 200, with default header values.

Subject successfully assigned to Class

func NewAssignClassOK

func NewAssignClassOK() *AssignClassOK

NewAssignClassOK creates a AssignClassOK with default headers values

func (*AssignClassOK) Code

func (o *AssignClassOK) Code() int

Code gets the status code for the assign class o k response

func (*AssignClassOK) Error

func (o *AssignClassOK) Error() string

func (*AssignClassOK) GetPayload

func (o *AssignClassOK) GetPayload() int64

func (*AssignClassOK) IsClientError

func (o *AssignClassOK) IsClientError() bool

IsClientError returns true when this assign class o k response has a 4xx status code

func (*AssignClassOK) IsCode

func (o *AssignClassOK) IsCode(code int) bool

IsCode returns true when this assign class o k response a status code equal to that given

func (*AssignClassOK) IsRedirect

func (o *AssignClassOK) IsRedirect() bool

IsRedirect returns true when this assign class o k response has a 3xx status code

func (*AssignClassOK) IsServerError

func (o *AssignClassOK) IsServerError() bool

IsServerError returns true when this assign class o k response has a 5xx status code

func (*AssignClassOK) IsSuccess

func (o *AssignClassOK) IsSuccess() bool

IsSuccess returns true when this assign class o k response has a 2xx status code

func (*AssignClassOK) String

func (o *AssignClassOK) String() string

type AssignClassParams

type AssignClassParams struct {

	/* ID.

	   Subject ID
	*/
	ID int64

	/* Class.

	   The object containing ID of the class to be assigned
	*/
	Class AssignClassBody

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

AssignClassParams contains all the parameters to send to the API endpoint

for the assign class operation.

Typically these are written to a http.Request.

func NewAssignClassParams

func NewAssignClassParams() *AssignClassParams

NewAssignClassParams creates a new AssignClassParams 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 NewAssignClassParamsWithContext

func NewAssignClassParamsWithContext(ctx context.Context) *AssignClassParams

NewAssignClassParamsWithContext creates a new AssignClassParams object with the ability to set a context for a request.

func NewAssignClassParamsWithHTTPClient

func NewAssignClassParamsWithHTTPClient(client *http.Client) *AssignClassParams

NewAssignClassParamsWithHTTPClient creates a new AssignClassParams object with the ability to set a custom HTTPClient for a request.

func NewAssignClassParamsWithTimeout

func NewAssignClassParamsWithTimeout(timeout time.Duration) *AssignClassParams

NewAssignClassParamsWithTimeout creates a new AssignClassParams object with the ability to set a timeout on a request.

func (*AssignClassParams) SetClass

func (o *AssignClassParams) SetClass(class AssignClassBody)

SetClass adds the class to the assign class params

func (*AssignClassParams) SetContext

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

SetContext adds the context to the assign class params

func (*AssignClassParams) SetDefaults

func (o *AssignClassParams) SetDefaults()

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

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

func (*AssignClassParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the assign class params

func (*AssignClassParams) SetID

func (o *AssignClassParams) SetID(id int64)

SetID adds the id to the assign class params

func (*AssignClassParams) SetTimeout

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

SetTimeout adds the timeout to the assign class params

func (*AssignClassParams) WithClass

WithClass adds the class to the assign class params

func (*AssignClassParams) WithContext

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

WithContext adds the context to the assign class params

func (*AssignClassParams) WithDefaults

func (o *AssignClassParams) WithDefaults() *AssignClassParams

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

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

func (*AssignClassParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the assign class params

func (*AssignClassParams) WithID

func (o *AssignClassParams) WithID(id int64) *AssignClassParams

WithID adds the id to the assign class params

func (*AssignClassParams) WithTimeout

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

WithTimeout adds the timeout to the assign class params

func (*AssignClassParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AssignClassReader

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

AssignClassReader is a Reader for the AssignClass structure.

func (*AssignClassReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AssignSubjectToStudentBody

type AssignSubjectToStudentBody struct {

	// assign
	Assign bool `json:"Assign,omitempty"`

	// subject ID
	SubjectID int64 `json:"SubjectID,omitempty"`
}

AssignSubjectToStudentBody assign subject to student body swagger:model AssignSubjectToStudentBody

func (*AssignSubjectToStudentBody) ContextValidate

func (o *AssignSubjectToStudentBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this assign subject to student body based on context it is used

func (*AssignSubjectToStudentBody) MarshalBinary

func (o *AssignSubjectToStudentBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AssignSubjectToStudentBody) UnmarshalBinary

func (o *AssignSubjectToStudentBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AssignSubjectToStudentBody) Validate

func (o *AssignSubjectToStudentBody) Validate(formats strfmt.Registry) error

Validate validates this assign subject to student body

type AssignSubjectToStudentInternalServerError

type AssignSubjectToStudentInternalServerError struct {
}

AssignSubjectToStudentInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewAssignSubjectToStudentInternalServerError

func NewAssignSubjectToStudentInternalServerError() *AssignSubjectToStudentInternalServerError

NewAssignSubjectToStudentInternalServerError creates a AssignSubjectToStudentInternalServerError with default headers values

func (*AssignSubjectToStudentInternalServerError) Code

Code gets the status code for the assign subject to student internal server error response

func (*AssignSubjectToStudentInternalServerError) Error

func (*AssignSubjectToStudentInternalServerError) IsClientError

IsClientError returns true when this assign subject to student internal server error response has a 4xx status code

func (*AssignSubjectToStudentInternalServerError) IsCode

IsCode returns true when this assign subject to student internal server error response a status code equal to that given

func (*AssignSubjectToStudentInternalServerError) IsRedirect

IsRedirect returns true when this assign subject to student internal server error response has a 3xx status code

func (*AssignSubjectToStudentInternalServerError) IsServerError

IsServerError returns true when this assign subject to student internal server error response has a 5xx status code

func (*AssignSubjectToStudentInternalServerError) IsSuccess

IsSuccess returns true when this assign subject to student internal server error response has a 2xx status code

func (*AssignSubjectToStudentInternalServerError) String

type AssignSubjectToStudentNotFound

type AssignSubjectToStudentNotFound struct {
}

AssignSubjectToStudentNotFound describes a response with status code 404, with default header values.

Student Not found!

func NewAssignSubjectToStudentNotFound

func NewAssignSubjectToStudentNotFound() *AssignSubjectToStudentNotFound

NewAssignSubjectToStudentNotFound creates a AssignSubjectToStudentNotFound with default headers values

func (*AssignSubjectToStudentNotFound) Code

Code gets the status code for the assign subject to student not found response

func (*AssignSubjectToStudentNotFound) Error

func (*AssignSubjectToStudentNotFound) IsClientError

func (o *AssignSubjectToStudentNotFound) IsClientError() bool

IsClientError returns true when this assign subject to student not found response has a 4xx status code

func (*AssignSubjectToStudentNotFound) IsCode

func (o *AssignSubjectToStudentNotFound) IsCode(code int) bool

IsCode returns true when this assign subject to student not found response a status code equal to that given

func (*AssignSubjectToStudentNotFound) IsRedirect

func (o *AssignSubjectToStudentNotFound) IsRedirect() bool

IsRedirect returns true when this assign subject to student not found response has a 3xx status code

func (*AssignSubjectToStudentNotFound) IsServerError

func (o *AssignSubjectToStudentNotFound) IsServerError() bool

IsServerError returns true when this assign subject to student not found response has a 5xx status code

func (*AssignSubjectToStudentNotFound) IsSuccess

func (o *AssignSubjectToStudentNotFound) IsSuccess() bool

IsSuccess returns true when this assign subject to student not found response has a 2xx status code

func (*AssignSubjectToStudentNotFound) String

type AssignSubjectToStudentOK

type AssignSubjectToStudentOK struct {
	Payload int64
}

AssignSubjectToStudentOK describes a response with status code 200, with default header values.

Subject assigned/de-assigned to Student

func NewAssignSubjectToStudentOK

func NewAssignSubjectToStudentOK() *AssignSubjectToStudentOK

NewAssignSubjectToStudentOK creates a AssignSubjectToStudentOK with default headers values

func (*AssignSubjectToStudentOK) Code

func (o *AssignSubjectToStudentOK) Code() int

Code gets the status code for the assign subject to student o k response

func (*AssignSubjectToStudentOK) Error

func (o *AssignSubjectToStudentOK) Error() string

func (*AssignSubjectToStudentOK) GetPayload

func (o *AssignSubjectToStudentOK) GetPayload() int64

func (*AssignSubjectToStudentOK) IsClientError

func (o *AssignSubjectToStudentOK) IsClientError() bool

IsClientError returns true when this assign subject to student o k response has a 4xx status code

func (*AssignSubjectToStudentOK) IsCode

func (o *AssignSubjectToStudentOK) IsCode(code int) bool

IsCode returns true when this assign subject to student o k response a status code equal to that given

func (*AssignSubjectToStudentOK) IsRedirect

func (o *AssignSubjectToStudentOK) IsRedirect() bool

IsRedirect returns true when this assign subject to student o k response has a 3xx status code

func (*AssignSubjectToStudentOK) IsServerError

func (o *AssignSubjectToStudentOK) IsServerError() bool

IsServerError returns true when this assign subject to student o k response has a 5xx status code

func (*AssignSubjectToStudentOK) IsSuccess

func (o *AssignSubjectToStudentOK) IsSuccess() bool

IsSuccess returns true when this assign subject to student o k response has a 2xx status code

func (*AssignSubjectToStudentOK) String

func (o *AssignSubjectToStudentOK) String() string

type AssignSubjectToStudentParams

type AssignSubjectToStudentParams struct {

	/* ID.

	   Student ID
	*/
	ID int64

	/* Subject.

	   The object containing ID of subject to be assigned
	*/
	Subject AssignSubjectToStudentBody

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

AssignSubjectToStudentParams contains all the parameters to send to the API endpoint

for the assign subject to student operation.

Typically these are written to a http.Request.

func NewAssignSubjectToStudentParams

func NewAssignSubjectToStudentParams() *AssignSubjectToStudentParams

NewAssignSubjectToStudentParams creates a new AssignSubjectToStudentParams 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 NewAssignSubjectToStudentParamsWithContext

func NewAssignSubjectToStudentParamsWithContext(ctx context.Context) *AssignSubjectToStudentParams

NewAssignSubjectToStudentParamsWithContext creates a new AssignSubjectToStudentParams object with the ability to set a context for a request.

func NewAssignSubjectToStudentParamsWithHTTPClient

func NewAssignSubjectToStudentParamsWithHTTPClient(client *http.Client) *AssignSubjectToStudentParams

NewAssignSubjectToStudentParamsWithHTTPClient creates a new AssignSubjectToStudentParams object with the ability to set a custom HTTPClient for a request.

func NewAssignSubjectToStudentParamsWithTimeout

func NewAssignSubjectToStudentParamsWithTimeout(timeout time.Duration) *AssignSubjectToStudentParams

NewAssignSubjectToStudentParamsWithTimeout creates a new AssignSubjectToStudentParams object with the ability to set a timeout on a request.

func (*AssignSubjectToStudentParams) SetContext

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

SetContext adds the context to the assign subject to student params

func (*AssignSubjectToStudentParams) SetDefaults

func (o *AssignSubjectToStudentParams) SetDefaults()

SetDefaults hydrates default values in the assign subject to student params (not the query body).

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

func (*AssignSubjectToStudentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the assign subject to student params

func (*AssignSubjectToStudentParams) SetID

func (o *AssignSubjectToStudentParams) SetID(id int64)

SetID adds the id to the assign subject to student params

func (*AssignSubjectToStudentParams) SetSubject

SetSubject adds the subject to the assign subject to student params

func (*AssignSubjectToStudentParams) SetTimeout

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

SetTimeout adds the timeout to the assign subject to student params

func (*AssignSubjectToStudentParams) WithContext

WithContext adds the context to the assign subject to student params

func (*AssignSubjectToStudentParams) WithDefaults

WithDefaults hydrates default values in the assign subject to student params (not the query body).

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

func (*AssignSubjectToStudentParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the assign subject to student params

func (*AssignSubjectToStudentParams) WithID

WithID adds the id to the assign subject to student params

func (*AssignSubjectToStudentParams) WithSubject

WithSubject adds the subject to the assign subject to student params

func (*AssignSubjectToStudentParams) WithTimeout

WithTimeout adds the timeout to the assign subject to student params

func (*AssignSubjectToStudentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AssignSubjectToStudentReader

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

AssignSubjectToStudentReader is a Reader for the AssignSubjectToStudent structure.

func (*AssignSubjectToStudentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AssignSubjectToTeacherBody

type AssignSubjectToTeacherBody struct {

	// subject ID
	SubjectID int64 `json:"SubjectID,omitempty"`
}

AssignSubjectToTeacherBody assign subject to teacher body swagger:model AssignSubjectToTeacherBody

func (*AssignSubjectToTeacherBody) ContextValidate

func (o *AssignSubjectToTeacherBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this assign subject to teacher body based on context it is used

func (*AssignSubjectToTeacherBody) MarshalBinary

func (o *AssignSubjectToTeacherBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AssignSubjectToTeacherBody) UnmarshalBinary

func (o *AssignSubjectToTeacherBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AssignSubjectToTeacherBody) Validate

func (o *AssignSubjectToTeacherBody) Validate(formats strfmt.Registry) error

Validate validates this assign subject to teacher body

type AssignSubjectToTeacherInternalServerError

type AssignSubjectToTeacherInternalServerError struct {
}

AssignSubjectToTeacherInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewAssignSubjectToTeacherInternalServerError

func NewAssignSubjectToTeacherInternalServerError() *AssignSubjectToTeacherInternalServerError

NewAssignSubjectToTeacherInternalServerError creates a AssignSubjectToTeacherInternalServerError with default headers values

func (*AssignSubjectToTeacherInternalServerError) Code

Code gets the status code for the assign subject to teacher internal server error response

func (*AssignSubjectToTeacherInternalServerError) Error

func (*AssignSubjectToTeacherInternalServerError) IsClientError

IsClientError returns true when this assign subject to teacher internal server error response has a 4xx status code

func (*AssignSubjectToTeacherInternalServerError) IsCode

IsCode returns true when this assign subject to teacher internal server error response a status code equal to that given

func (*AssignSubjectToTeacherInternalServerError) IsRedirect

IsRedirect returns true when this assign subject to teacher internal server error response has a 3xx status code

func (*AssignSubjectToTeacherInternalServerError) IsServerError

IsServerError returns true when this assign subject to teacher internal server error response has a 5xx status code

func (*AssignSubjectToTeacherInternalServerError) IsSuccess

IsSuccess returns true when this assign subject to teacher internal server error response has a 2xx status code

func (*AssignSubjectToTeacherInternalServerError) String

type AssignSubjectToTeacherNotFound

type AssignSubjectToTeacherNotFound struct {
}

AssignSubjectToTeacherNotFound describes a response with status code 404, with default header values.

Teacher not found!

func NewAssignSubjectToTeacherNotFound

func NewAssignSubjectToTeacherNotFound() *AssignSubjectToTeacherNotFound

NewAssignSubjectToTeacherNotFound creates a AssignSubjectToTeacherNotFound with default headers values

func (*AssignSubjectToTeacherNotFound) Code

Code gets the status code for the assign subject to teacher not found response

func (*AssignSubjectToTeacherNotFound) Error

func (*AssignSubjectToTeacherNotFound) IsClientError

func (o *AssignSubjectToTeacherNotFound) IsClientError() bool

IsClientError returns true when this assign subject to teacher not found response has a 4xx status code

func (*AssignSubjectToTeacherNotFound) IsCode

func (o *AssignSubjectToTeacherNotFound) IsCode(code int) bool

IsCode returns true when this assign subject to teacher not found response a status code equal to that given

func (*AssignSubjectToTeacherNotFound) IsRedirect

func (o *AssignSubjectToTeacherNotFound) IsRedirect() bool

IsRedirect returns true when this assign subject to teacher not found response has a 3xx status code

func (*AssignSubjectToTeacherNotFound) IsServerError

func (o *AssignSubjectToTeacherNotFound) IsServerError() bool

IsServerError returns true when this assign subject to teacher not found response has a 5xx status code

func (*AssignSubjectToTeacherNotFound) IsSuccess

func (o *AssignSubjectToTeacherNotFound) IsSuccess() bool

IsSuccess returns true when this assign subject to teacher not found response has a 2xx status code

func (*AssignSubjectToTeacherNotFound) String

type AssignSubjectToTeacherOK

type AssignSubjectToTeacherOK struct {
	Payload int64
}

AssignSubjectToTeacherOK describes a response with status code 200, with default header values.

Subject assigned to Teacher

func NewAssignSubjectToTeacherOK

func NewAssignSubjectToTeacherOK() *AssignSubjectToTeacherOK

NewAssignSubjectToTeacherOK creates a AssignSubjectToTeacherOK with default headers values

func (*AssignSubjectToTeacherOK) Code

func (o *AssignSubjectToTeacherOK) Code() int

Code gets the status code for the assign subject to teacher o k response

func (*AssignSubjectToTeacherOK) Error

func (o *AssignSubjectToTeacherOK) Error() string

func (*AssignSubjectToTeacherOK) GetPayload

func (o *AssignSubjectToTeacherOK) GetPayload() int64

func (*AssignSubjectToTeacherOK) IsClientError

func (o *AssignSubjectToTeacherOK) IsClientError() bool

IsClientError returns true when this assign subject to teacher o k response has a 4xx status code

func (*AssignSubjectToTeacherOK) IsCode

func (o *AssignSubjectToTeacherOK) IsCode(code int) bool

IsCode returns true when this assign subject to teacher o k response a status code equal to that given

func (*AssignSubjectToTeacherOK) IsRedirect

func (o *AssignSubjectToTeacherOK) IsRedirect() bool

IsRedirect returns true when this assign subject to teacher o k response has a 3xx status code

func (*AssignSubjectToTeacherOK) IsServerError

func (o *AssignSubjectToTeacherOK) IsServerError() bool

IsServerError returns true when this assign subject to teacher o k response has a 5xx status code

func (*AssignSubjectToTeacherOK) IsSuccess

func (o *AssignSubjectToTeacherOK) IsSuccess() bool

IsSuccess returns true when this assign subject to teacher o k response has a 2xx status code

func (*AssignSubjectToTeacherOK) String

func (o *AssignSubjectToTeacherOK) String() string

type AssignSubjectToTeacherParams

type AssignSubjectToTeacherParams struct {

	/* ID.

	   Teacher ID
	*/
	ID int64

	/* Subject.

	   The object containing ID of the subject to be assigned
	*/
	Subject AssignSubjectToTeacherBody

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

AssignSubjectToTeacherParams contains all the parameters to send to the API endpoint

for the assign subject to teacher operation.

Typically these are written to a http.Request.

func NewAssignSubjectToTeacherParams

func NewAssignSubjectToTeacherParams() *AssignSubjectToTeacherParams

NewAssignSubjectToTeacherParams creates a new AssignSubjectToTeacherParams 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 NewAssignSubjectToTeacherParamsWithContext

func NewAssignSubjectToTeacherParamsWithContext(ctx context.Context) *AssignSubjectToTeacherParams

NewAssignSubjectToTeacherParamsWithContext creates a new AssignSubjectToTeacherParams object with the ability to set a context for a request.

func NewAssignSubjectToTeacherParamsWithHTTPClient

func NewAssignSubjectToTeacherParamsWithHTTPClient(client *http.Client) *AssignSubjectToTeacherParams

NewAssignSubjectToTeacherParamsWithHTTPClient creates a new AssignSubjectToTeacherParams object with the ability to set a custom HTTPClient for a request.

func NewAssignSubjectToTeacherParamsWithTimeout

func NewAssignSubjectToTeacherParamsWithTimeout(timeout time.Duration) *AssignSubjectToTeacherParams

NewAssignSubjectToTeacherParamsWithTimeout creates a new AssignSubjectToTeacherParams object with the ability to set a timeout on a request.

func (*AssignSubjectToTeacherParams) SetContext

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

SetContext adds the context to the assign subject to teacher params

func (*AssignSubjectToTeacherParams) SetDefaults

func (o *AssignSubjectToTeacherParams) SetDefaults()

SetDefaults hydrates default values in the assign subject to teacher params (not the query body).

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

func (*AssignSubjectToTeacherParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the assign subject to teacher params

func (*AssignSubjectToTeacherParams) SetID

func (o *AssignSubjectToTeacherParams) SetID(id int64)

SetID adds the id to the assign subject to teacher params

func (*AssignSubjectToTeacherParams) SetSubject

SetSubject adds the subject to the assign subject to teacher params

func (*AssignSubjectToTeacherParams) SetTimeout

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

SetTimeout adds the timeout to the assign subject to teacher params

func (*AssignSubjectToTeacherParams) WithContext

WithContext adds the context to the assign subject to teacher params

func (*AssignSubjectToTeacherParams) WithDefaults

WithDefaults hydrates default values in the assign subject to teacher params (not the query body).

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

func (*AssignSubjectToTeacherParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the assign subject to teacher params

func (*AssignSubjectToTeacherParams) WithID

WithID adds the id to the assign subject to teacher params

func (*AssignSubjectToTeacherParams) WithSubject

WithSubject adds the subject to the assign subject to teacher params

func (*AssignSubjectToTeacherParams) WithTimeout

WithTimeout adds the timeout to the assign subject to teacher params

func (*AssignSubjectToTeacherParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AssignSubjectToTeacherReader

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

AssignSubjectToTeacherReader is a Reader for the AssignSubjectToTeacher structure.

func (*AssignSubjectToTeacherReader) ReadResponse

func (o *AssignSubjectToTeacherReader) 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 operations API

func (*Client) AddAccount

func (a *Client) AddAccount(params *AddAccountParams, opts ...ClientOption) (*AddAccountCreated, error)

AddAccount add account API

func (*Client) AddClass

func (a *Client) AddClass(params *AddClassParams, opts ...ClientOption) (*AddClassCreated, error)

AddClass add class API

func (*Client) AddOrRemoveStudent

func (a *Client) AddOrRemoveStudent(params *AddOrRemoveStudentParams, opts ...ClientOption) (*AddOrRemoveStudentOK, error)

AddOrRemoveStudent add or remove student API

func (*Client) AddStudent

func (a *Client) AddStudent(params *AddStudentParams, opts ...ClientOption) (*AddStudentCreated, error)

AddStudent add student API

func (*Client) AddSubject

func (a *Client) AddSubject(params *AddSubjectParams, opts ...ClientOption) (*AddSubjectCreated, error)

AddSubject add subject API

func (*Client) AddTeacher

func (a *Client) AddTeacher(params *AddTeacherParams, opts ...ClientOption) (*AddTeacherCreated, error)

AddTeacher add teacher API

func (*Client) AssignClass

func (a *Client) AssignClass(params *AssignClassParams, opts ...ClientOption) (*AssignClassOK, error)

AssignClass assign class API

func (*Client) AssignSubjectToStudent

func (a *Client) AssignSubjectToStudent(params *AssignSubjectToStudentParams, opts ...ClientOption) (*AssignSubjectToStudentOK, error)

AssignSubjectToStudent assign subject to student API

func (*Client) AssignSubjectToTeacher

func (a *Client) AssignSubjectToTeacher(params *AssignSubjectToTeacherParams, opts ...ClientOption) (*AssignSubjectToTeacherOK, error)

AssignSubjectToTeacher assign subject to teacher API

func (*Client) DeleteAccount

func (a *Client) DeleteAccount(params *DeleteAccountParams, opts ...ClientOption) (*DeleteAccountNoContent, error)

DeleteAccount delete account API

func (*Client) DeleteClass

func (a *Client) DeleteClass(params *DeleteClassParams, opts ...ClientOption) (*DeleteClassNoContent, error)

DeleteClass delete class API

func (*Client) DeleteStudent

func (a *Client) DeleteStudent(params *DeleteStudentParams, opts ...ClientOption) (*DeleteStudentNoContent, error)

DeleteStudent delete student API

func (*Client) DeleteSubject

func (a *Client) DeleteSubject(params *DeleteSubjectParams, opts ...ClientOption) (*DeleteSubjectNoContent, error)

DeleteSubject delete subject API

func (*Client) DeleteTeacher

func (a *Client) DeleteTeacher(params *DeleteTeacherParams, opts ...ClientOption) (*DeleteTeacherNoContent, error)

DeleteTeacher delete teacher API

func (*Client) GetAccountByID

func (a *Client) GetAccountByID(params *GetAccountByIDParams, opts ...ClientOption) (*GetAccountByIDOK, error)

GetAccountByID get account by ID API

func (*Client) GetAccounts

func (a *Client) GetAccounts(params *GetAccountsParams, opts ...ClientOption) (*GetAccountsOK, error)

GetAccounts Get all Accounts

func (*Client) GetClassByID

func (a *Client) GetClassByID(params *GetClassByIDParams, opts ...ClientOption) (*GetClassByIDOK, error)

GetClassByID get class by ID API

func (*Client) GetClassOfTeacher

func (a *Client) GetClassOfTeacher(params *GetClassOfTeacherParams, opts ...ClientOption) (*GetClassOfTeacherOK, error)

GetClassOfTeacher get class of teacher API

func (*Client) GetClasses

func (a *Client) GetClasses(params *GetClassesParams, opts ...ClientOption) (*GetClassesOK, error)

GetClasses Get all Classes

func (*Client) GetClassesOfStudent

func (a *Client) GetClassesOfStudent(params *GetClassesOfStudentParams, opts ...ClientOption) (*GetClassesOfStudentOK, error)

GetClassesOfStudent get classes of student API

func (*Client) GetDefaultedStudentAccounts

func (a *Client) GetDefaultedStudentAccounts(params *GetDefaultedStudentAccountsParams, opts ...ClientOption) (*GetDefaultedStudentAccountsOK, error)

GetDefaultedStudentAccounts Get Defaulted Student Accounts

func (*Client) GetStudentAccounts

func (a *Client) GetStudentAccounts(params *GetStudentAccountsParams, opts ...ClientOption) (*GetStudentAccountsOK, error)

GetStudentAccounts Get all Student Accounts

func (*Client) GetStudentByID

func (a *Client) GetStudentByID(params *GetStudentByIDParams, opts ...ClientOption) (*GetStudentByIDOK, error)

GetStudentByID get student by ID API

func (*Client) GetStudents

func (a *Client) GetStudents(params *GetStudentsParams, opts ...ClientOption) (*GetStudentsOK, error)

GetStudents Get all Students

func (*Client) GetStudentsOfClass

func (a *Client) GetStudentsOfClass(params *GetStudentsOfClassParams, opts ...ClientOption) (*GetStudentsOfClassOK, error)

GetStudentsOfClass get students of class API

func (*Client) GetStudentsOfSubject

func (a *Client) GetStudentsOfSubject(params *GetStudentsOfSubjectParams, opts ...ClientOption) (*GetStudentsOfSubjectOK, error)

GetStudentsOfSubject get students of subject API

func (*Client) GetStudentsOfTeacher

func (a *Client) GetStudentsOfTeacher(params *GetStudentsOfTeacherParams, opts ...ClientOption) (*GetStudentsOfTeacherOK, error)

GetStudentsOfTeacher get students of teacher API

func (*Client) GetSubjectByID

func (a *Client) GetSubjectByID(params *GetSubjectByIDParams, opts ...ClientOption) (*GetSubjectByIDOK, error)

GetSubjectByID get subject by ID API

func (*Client) GetSubjects

func (a *Client) GetSubjects(params *GetSubjectsParams, opts ...ClientOption) (*GetSubjectsOK, error)

GetSubjects Get all Subjects

func (*Client) GetSubjectsOfClass

func (a *Client) GetSubjectsOfClass(params *GetSubjectsOfClassParams, opts ...ClientOption) (*GetSubjectsOfClassOK, error)

GetSubjectsOfClass get subjects of class API

func (*Client) GetSubjectsOfStudent

func (a *Client) GetSubjectsOfStudent(params *GetSubjectsOfStudentParams, opts ...ClientOption) (*GetSubjectsOfStudentOK, error)

GetSubjectsOfStudent get subjects of student API

func (*Client) GetTeacherAccounts

func (a *Client) GetTeacherAccounts(params *GetTeacherAccountsParams, opts ...ClientOption) (*GetTeacherAccountsOK, error)

GetTeacherAccounts Get all Teacher Accounts

func (*Client) GetTeacherByID

func (a *Client) GetTeacherByID(params *GetTeacherByIDParams, opts ...ClientOption) (*GetTeacherByIDOK, error)

GetTeacherByID get teacher by ID API

func (*Client) GetTeacherOfSubject

func (a *Client) GetTeacherOfSubject(params *GetTeacherOfSubjectParams, opts ...ClientOption) (*GetTeacherOfSubjectOK, error)

GetTeacherOfSubject get teacher of subject API

func (*Client) GetTeachers

func (a *Client) GetTeachers(params *GetTeachersParams, opts ...ClientOption) (*GetTeachersOK, error)

GetTeachers Get all Teachers

func (*Client) GetTeachersOfClass

func (a *Client) GetTeachersOfClass(params *GetTeachersOfClassParams, opts ...ClientOption) (*GetTeachersOfClassOK, error)

GetTeachersOfClass get teachers of class API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateAccount

func (a *Client) UpdateAccount(params *UpdateAccountParams, opts ...ClientOption) (*UpdateAccountOK, error)

UpdateAccount update account API

func (*Client) UpdateClassName

func (a *Client) UpdateClassName(params *UpdateClassNameParams, opts ...ClientOption) (*UpdateClassNameOK, error)

UpdateClassName update class name API

func (*Client) UpdateGPA

func (a *Client) UpdateGPA(params *UpdateGPAParams, opts ...ClientOption) (*UpdateGPAOK, error)

UpdateGPA update g p a API

func (*Client) UpdateStudentName

func (a *Client) UpdateStudentName(params *UpdateStudentNameParams, opts ...ClientOption) (*UpdateStudentNameOK, error)

UpdateStudentName update student name API

func (*Client) UpdateSubjectName

func (a *Client) UpdateSubjectName(params *UpdateSubjectNameParams, opts ...ClientOption) (*UpdateSubjectNameOK, error)

UpdateSubjectName update subject name API

func (*Client) UpdateTeacherName

func (a *Client) UpdateTeacherName(params *UpdateTeacherNameParams, opts ...ClientOption) (*UpdateTeacherNameOK, error)

UpdateTeacherName update teacher name API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	AddAccount(params *AddAccountParams, opts ...ClientOption) (*AddAccountCreated, error)

	AddClass(params *AddClassParams, opts ...ClientOption) (*AddClassCreated, error)

	AddOrRemoveStudent(params *AddOrRemoveStudentParams, opts ...ClientOption) (*AddOrRemoveStudentOK, error)

	AddStudent(params *AddStudentParams, opts ...ClientOption) (*AddStudentCreated, error)

	AddSubject(params *AddSubjectParams, opts ...ClientOption) (*AddSubjectCreated, error)

	AddTeacher(params *AddTeacherParams, opts ...ClientOption) (*AddTeacherCreated, error)

	AssignClass(params *AssignClassParams, opts ...ClientOption) (*AssignClassOK, error)

	AssignSubjectToStudent(params *AssignSubjectToStudentParams, opts ...ClientOption) (*AssignSubjectToStudentOK, error)

	AssignSubjectToTeacher(params *AssignSubjectToTeacherParams, opts ...ClientOption) (*AssignSubjectToTeacherOK, error)

	DeleteAccount(params *DeleteAccountParams, opts ...ClientOption) (*DeleteAccountNoContent, error)

	DeleteClass(params *DeleteClassParams, opts ...ClientOption) (*DeleteClassNoContent, error)

	DeleteStudent(params *DeleteStudentParams, opts ...ClientOption) (*DeleteStudentNoContent, error)

	DeleteSubject(params *DeleteSubjectParams, opts ...ClientOption) (*DeleteSubjectNoContent, error)

	DeleteTeacher(params *DeleteTeacherParams, opts ...ClientOption) (*DeleteTeacherNoContent, error)

	GetAccountByID(params *GetAccountByIDParams, opts ...ClientOption) (*GetAccountByIDOK, error)

	GetAccounts(params *GetAccountsParams, opts ...ClientOption) (*GetAccountsOK, error)

	GetClassByID(params *GetClassByIDParams, opts ...ClientOption) (*GetClassByIDOK, error)

	GetClassOfTeacher(params *GetClassOfTeacherParams, opts ...ClientOption) (*GetClassOfTeacherOK, error)

	GetClasses(params *GetClassesParams, opts ...ClientOption) (*GetClassesOK, error)

	GetClassesOfStudent(params *GetClassesOfStudentParams, opts ...ClientOption) (*GetClassesOfStudentOK, error)

	GetDefaultedStudentAccounts(params *GetDefaultedStudentAccountsParams, opts ...ClientOption) (*GetDefaultedStudentAccountsOK, error)

	GetStudentAccounts(params *GetStudentAccountsParams, opts ...ClientOption) (*GetStudentAccountsOK, error)

	GetStudentByID(params *GetStudentByIDParams, opts ...ClientOption) (*GetStudentByIDOK, error)

	GetStudents(params *GetStudentsParams, opts ...ClientOption) (*GetStudentsOK, error)

	GetStudentsOfClass(params *GetStudentsOfClassParams, opts ...ClientOption) (*GetStudentsOfClassOK, error)

	GetStudentsOfSubject(params *GetStudentsOfSubjectParams, opts ...ClientOption) (*GetStudentsOfSubjectOK, error)

	GetStudentsOfTeacher(params *GetStudentsOfTeacherParams, opts ...ClientOption) (*GetStudentsOfTeacherOK, error)

	GetSubjectByID(params *GetSubjectByIDParams, opts ...ClientOption) (*GetSubjectByIDOK, error)

	GetSubjects(params *GetSubjectsParams, opts ...ClientOption) (*GetSubjectsOK, error)

	GetSubjectsOfClass(params *GetSubjectsOfClassParams, opts ...ClientOption) (*GetSubjectsOfClassOK, error)

	GetSubjectsOfStudent(params *GetSubjectsOfStudentParams, opts ...ClientOption) (*GetSubjectsOfStudentOK, error)

	GetTeacherAccounts(params *GetTeacherAccountsParams, opts ...ClientOption) (*GetTeacherAccountsOK, error)

	GetTeacherByID(params *GetTeacherByIDParams, opts ...ClientOption) (*GetTeacherByIDOK, error)

	GetTeacherOfSubject(params *GetTeacherOfSubjectParams, opts ...ClientOption) (*GetTeacherOfSubjectOK, error)

	GetTeachers(params *GetTeachersParams, opts ...ClientOption) (*GetTeachersOK, error)

	GetTeachersOfClass(params *GetTeachersOfClassParams, opts ...ClientOption) (*GetTeachersOfClassOK, error)

	UpdateAccount(params *UpdateAccountParams, opts ...ClientOption) (*UpdateAccountOK, error)

	UpdateClassName(params *UpdateClassNameParams, opts ...ClientOption) (*UpdateClassNameOK, error)

	UpdateGPA(params *UpdateGPAParams, opts ...ClientOption) (*UpdateGPAOK, error)

	UpdateStudentName(params *UpdateStudentNameParams, opts ...ClientOption) (*UpdateStudentNameOK, error)

	UpdateSubjectName(params *UpdateSubjectNameParams, opts ...ClientOption) (*UpdateSubjectNameOK, error)

	UpdateTeacherName(params *UpdateTeacherNameParams, opts ...ClientOption) (*UpdateTeacherNameOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new operations API client.

type DeleteAccountInternalServerError

type DeleteAccountInternalServerError struct {
}

DeleteAccountInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewDeleteAccountInternalServerError

func NewDeleteAccountInternalServerError() *DeleteAccountInternalServerError

NewDeleteAccountInternalServerError creates a DeleteAccountInternalServerError with default headers values

func (*DeleteAccountInternalServerError) Code

Code gets the status code for the delete account internal server error response

func (*DeleteAccountInternalServerError) Error

func (*DeleteAccountInternalServerError) IsClientError

func (o *DeleteAccountInternalServerError) IsClientError() bool

IsClientError returns true when this delete account internal server error response has a 4xx status code

func (*DeleteAccountInternalServerError) IsCode

func (o *DeleteAccountInternalServerError) IsCode(code int) bool

IsCode returns true when this delete account internal server error response a status code equal to that given

func (*DeleteAccountInternalServerError) IsRedirect

func (o *DeleteAccountInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete account internal server error response has a 3xx status code

func (*DeleteAccountInternalServerError) IsServerError

func (o *DeleteAccountInternalServerError) IsServerError() bool

IsServerError returns true when this delete account internal server error response has a 5xx status code

func (*DeleteAccountInternalServerError) IsSuccess

func (o *DeleteAccountInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete account internal server error response has a 2xx status code

func (*DeleteAccountInternalServerError) String

type DeleteAccountNoContent

type DeleteAccountNoContent struct {
}

DeleteAccountNoContent describes a response with status code 204, with default header values.

Account Deleted Successfully!

func NewDeleteAccountNoContent

func NewDeleteAccountNoContent() *DeleteAccountNoContent

NewDeleteAccountNoContent creates a DeleteAccountNoContent with default headers values

func (*DeleteAccountNoContent) Code

func (o *DeleteAccountNoContent) Code() int

Code gets the status code for the delete account no content response

func (*DeleteAccountNoContent) Error

func (o *DeleteAccountNoContent) Error() string

func (*DeleteAccountNoContent) IsClientError

func (o *DeleteAccountNoContent) IsClientError() bool

IsClientError returns true when this delete account no content response has a 4xx status code

func (*DeleteAccountNoContent) IsCode

func (o *DeleteAccountNoContent) IsCode(code int) bool

IsCode returns true when this delete account no content response a status code equal to that given

func (*DeleteAccountNoContent) IsRedirect

func (o *DeleteAccountNoContent) IsRedirect() bool

IsRedirect returns true when this delete account no content response has a 3xx status code

func (*DeleteAccountNoContent) IsServerError

func (o *DeleteAccountNoContent) IsServerError() bool

IsServerError returns true when this delete account no content response has a 5xx status code

func (*DeleteAccountNoContent) IsSuccess

func (o *DeleteAccountNoContent) IsSuccess() bool

IsSuccess returns true when this delete account no content response has a 2xx status code

func (*DeleteAccountNoContent) String

func (o *DeleteAccountNoContent) String() string

type DeleteAccountNotFound

type DeleteAccountNotFound struct {
}

DeleteAccountNotFound describes a response with status code 404, with default header values.

Account not found

func NewDeleteAccountNotFound

func NewDeleteAccountNotFound() *DeleteAccountNotFound

NewDeleteAccountNotFound creates a DeleteAccountNotFound with default headers values

func (*DeleteAccountNotFound) Code

func (o *DeleteAccountNotFound) Code() int

Code gets the status code for the delete account not found response

func (*DeleteAccountNotFound) Error

func (o *DeleteAccountNotFound) Error() string

func (*DeleteAccountNotFound) IsClientError

func (o *DeleteAccountNotFound) IsClientError() bool

IsClientError returns true when this delete account not found response has a 4xx status code

func (*DeleteAccountNotFound) IsCode

func (o *DeleteAccountNotFound) IsCode(code int) bool

IsCode returns true when this delete account not found response a status code equal to that given

func (*DeleteAccountNotFound) IsRedirect

func (o *DeleteAccountNotFound) IsRedirect() bool

IsRedirect returns true when this delete account not found response has a 3xx status code

func (*DeleteAccountNotFound) IsServerError

func (o *DeleteAccountNotFound) IsServerError() bool

IsServerError returns true when this delete account not found response has a 5xx status code

func (*DeleteAccountNotFound) IsSuccess

func (o *DeleteAccountNotFound) IsSuccess() bool

IsSuccess returns true when this delete account not found response has a 2xx status code

func (*DeleteAccountNotFound) String

func (o *DeleteAccountNotFound) String() string

type DeleteAccountParams

type DeleteAccountParams struct {

	/* ID.

	   ID of the Account
	*/
	ID int64

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

DeleteAccountParams contains all the parameters to send to the API endpoint

for the delete account operation.

Typically these are written to a http.Request.

func NewDeleteAccountParams

func NewDeleteAccountParams() *DeleteAccountParams

NewDeleteAccountParams creates a new DeleteAccountParams 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 NewDeleteAccountParamsWithContext

func NewDeleteAccountParamsWithContext(ctx context.Context) *DeleteAccountParams

NewDeleteAccountParamsWithContext creates a new DeleteAccountParams object with the ability to set a context for a request.

func NewDeleteAccountParamsWithHTTPClient

func NewDeleteAccountParamsWithHTTPClient(client *http.Client) *DeleteAccountParams

NewDeleteAccountParamsWithHTTPClient creates a new DeleteAccountParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAccountParamsWithTimeout

func NewDeleteAccountParamsWithTimeout(timeout time.Duration) *DeleteAccountParams

NewDeleteAccountParamsWithTimeout creates a new DeleteAccountParams object with the ability to set a timeout on a request.

func (*DeleteAccountParams) SetContext

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

SetContext adds the context to the delete account params

func (*DeleteAccountParams) SetDefaults

func (o *DeleteAccountParams) SetDefaults()

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

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

func (*DeleteAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete account params

func (*DeleteAccountParams) SetID

func (o *DeleteAccountParams) SetID(id int64)

SetID adds the id to the delete account params

func (*DeleteAccountParams) SetTimeout

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

SetTimeout adds the timeout to the delete account params

func (*DeleteAccountParams) WithContext

WithContext adds the context to the delete account params

func (*DeleteAccountParams) WithDefaults

func (o *DeleteAccountParams) WithDefaults() *DeleteAccountParams

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

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

func (*DeleteAccountParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete account params

func (*DeleteAccountParams) WithID

WithID adds the id to the delete account params

func (*DeleteAccountParams) WithTimeout

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

WithTimeout adds the timeout to the delete account params

func (*DeleteAccountParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteAccountReader

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

DeleteAccountReader is a Reader for the DeleteAccount structure.

func (*DeleteAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteClassInternalServerError

type DeleteClassInternalServerError struct {
}

DeleteClassInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewDeleteClassInternalServerError

func NewDeleteClassInternalServerError() *DeleteClassInternalServerError

NewDeleteClassInternalServerError creates a DeleteClassInternalServerError with default headers values

func (*DeleteClassInternalServerError) Code

Code gets the status code for the delete class internal server error response

func (*DeleteClassInternalServerError) Error

func (*DeleteClassInternalServerError) IsClientError

func (o *DeleteClassInternalServerError) IsClientError() bool

IsClientError returns true when this delete class internal server error response has a 4xx status code

func (*DeleteClassInternalServerError) IsCode

func (o *DeleteClassInternalServerError) IsCode(code int) bool

IsCode returns true when this delete class internal server error response a status code equal to that given

func (*DeleteClassInternalServerError) IsRedirect

func (o *DeleteClassInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete class internal server error response has a 3xx status code

func (*DeleteClassInternalServerError) IsServerError

func (o *DeleteClassInternalServerError) IsServerError() bool

IsServerError returns true when this delete class internal server error response has a 5xx status code

func (*DeleteClassInternalServerError) IsSuccess

func (o *DeleteClassInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete class internal server error response has a 2xx status code

func (*DeleteClassInternalServerError) String

type DeleteClassNoContent

type DeleteClassNoContent struct {
}

DeleteClassNoContent describes a response with status code 204, with default header values.

Class Deleted Successfully!

func NewDeleteClassNoContent

func NewDeleteClassNoContent() *DeleteClassNoContent

NewDeleteClassNoContent creates a DeleteClassNoContent with default headers values

func (*DeleteClassNoContent) Code

func (o *DeleteClassNoContent) Code() int

Code gets the status code for the delete class no content response

func (*DeleteClassNoContent) Error

func (o *DeleteClassNoContent) Error() string

func (*DeleteClassNoContent) IsClientError

func (o *DeleteClassNoContent) IsClientError() bool

IsClientError returns true when this delete class no content response has a 4xx status code

func (*DeleteClassNoContent) IsCode

func (o *DeleteClassNoContent) IsCode(code int) bool

IsCode returns true when this delete class no content response a status code equal to that given

func (*DeleteClassNoContent) IsRedirect

func (o *DeleteClassNoContent) IsRedirect() bool

IsRedirect returns true when this delete class no content response has a 3xx status code

func (*DeleteClassNoContent) IsServerError

func (o *DeleteClassNoContent) IsServerError() bool

IsServerError returns true when this delete class no content response has a 5xx status code

func (*DeleteClassNoContent) IsSuccess

func (o *DeleteClassNoContent) IsSuccess() bool

IsSuccess returns true when this delete class no content response has a 2xx status code

func (*DeleteClassNoContent) String

func (o *DeleteClassNoContent) String() string

type DeleteClassNotFound

type DeleteClassNotFound struct {
}

DeleteClassNotFound describes a response with status code 404, with default header values.

Class not found

func NewDeleteClassNotFound

func NewDeleteClassNotFound() *DeleteClassNotFound

NewDeleteClassNotFound creates a DeleteClassNotFound with default headers values

func (*DeleteClassNotFound) Code

func (o *DeleteClassNotFound) Code() int

Code gets the status code for the delete class not found response

func (*DeleteClassNotFound) Error

func (o *DeleteClassNotFound) Error() string

func (*DeleteClassNotFound) IsClientError

func (o *DeleteClassNotFound) IsClientError() bool

IsClientError returns true when this delete class not found response has a 4xx status code

func (*DeleteClassNotFound) IsCode

func (o *DeleteClassNotFound) IsCode(code int) bool

IsCode returns true when this delete class not found response a status code equal to that given

func (*DeleteClassNotFound) IsRedirect

func (o *DeleteClassNotFound) IsRedirect() bool

IsRedirect returns true when this delete class not found response has a 3xx status code

func (*DeleteClassNotFound) IsServerError

func (o *DeleteClassNotFound) IsServerError() bool

IsServerError returns true when this delete class not found response has a 5xx status code

func (*DeleteClassNotFound) IsSuccess

func (o *DeleteClassNotFound) IsSuccess() bool

IsSuccess returns true when this delete class not found response has a 2xx status code

func (*DeleteClassNotFound) String

func (o *DeleteClassNotFound) String() string

type DeleteClassParams

type DeleteClassParams struct {

	/* ID.

	   ID of the Class
	*/
	ID int64

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

DeleteClassParams contains all the parameters to send to the API endpoint

for the delete class operation.

Typically these are written to a http.Request.

func NewDeleteClassParams

func NewDeleteClassParams() *DeleteClassParams

NewDeleteClassParams creates a new DeleteClassParams 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 NewDeleteClassParamsWithContext

func NewDeleteClassParamsWithContext(ctx context.Context) *DeleteClassParams

NewDeleteClassParamsWithContext creates a new DeleteClassParams object with the ability to set a context for a request.

func NewDeleteClassParamsWithHTTPClient

func NewDeleteClassParamsWithHTTPClient(client *http.Client) *DeleteClassParams

NewDeleteClassParamsWithHTTPClient creates a new DeleteClassParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteClassParamsWithTimeout

func NewDeleteClassParamsWithTimeout(timeout time.Duration) *DeleteClassParams

NewDeleteClassParamsWithTimeout creates a new DeleteClassParams object with the ability to set a timeout on a request.

func (*DeleteClassParams) SetContext

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

SetContext adds the context to the delete class params

func (*DeleteClassParams) SetDefaults

func (o *DeleteClassParams) SetDefaults()

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

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

func (*DeleteClassParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete class params

func (*DeleteClassParams) SetID

func (o *DeleteClassParams) SetID(id int64)

SetID adds the id to the delete class params

func (*DeleteClassParams) SetTimeout

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

SetTimeout adds the timeout to the delete class params

func (*DeleteClassParams) WithContext

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

WithContext adds the context to the delete class params

func (*DeleteClassParams) WithDefaults

func (o *DeleteClassParams) WithDefaults() *DeleteClassParams

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

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

func (*DeleteClassParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete class params

func (*DeleteClassParams) WithID

func (o *DeleteClassParams) WithID(id int64) *DeleteClassParams

WithID adds the id to the delete class params

func (*DeleteClassParams) WithTimeout

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

WithTimeout adds the timeout to the delete class params

func (*DeleteClassParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteClassReader

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

DeleteClassReader is a Reader for the DeleteClass structure.

func (*DeleteClassReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteStudentInternalServerError

type DeleteStudentInternalServerError struct {
}

DeleteStudentInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewDeleteStudentInternalServerError

func NewDeleteStudentInternalServerError() *DeleteStudentInternalServerError

NewDeleteStudentInternalServerError creates a DeleteStudentInternalServerError with default headers values

func (*DeleteStudentInternalServerError) Code

Code gets the status code for the delete student internal server error response

func (*DeleteStudentInternalServerError) Error

func (*DeleteStudentInternalServerError) IsClientError

func (o *DeleteStudentInternalServerError) IsClientError() bool

IsClientError returns true when this delete student internal server error response has a 4xx status code

func (*DeleteStudentInternalServerError) IsCode

func (o *DeleteStudentInternalServerError) IsCode(code int) bool

IsCode returns true when this delete student internal server error response a status code equal to that given

func (*DeleteStudentInternalServerError) IsRedirect

func (o *DeleteStudentInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete student internal server error response has a 3xx status code

func (*DeleteStudentInternalServerError) IsServerError

func (o *DeleteStudentInternalServerError) IsServerError() bool

IsServerError returns true when this delete student internal server error response has a 5xx status code

func (*DeleteStudentInternalServerError) IsSuccess

func (o *DeleteStudentInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete student internal server error response has a 2xx status code

func (*DeleteStudentInternalServerError) String

type DeleteStudentNoContent

type DeleteStudentNoContent struct {
}

DeleteStudentNoContent describes a response with status code 204, with default header values.

Student Deleted Successfully!

func NewDeleteStudentNoContent

func NewDeleteStudentNoContent() *DeleteStudentNoContent

NewDeleteStudentNoContent creates a DeleteStudentNoContent with default headers values

func (*DeleteStudentNoContent) Code

func (o *DeleteStudentNoContent) Code() int

Code gets the status code for the delete student no content response

func (*DeleteStudentNoContent) Error

func (o *DeleteStudentNoContent) Error() string

func (*DeleteStudentNoContent) IsClientError

func (o *DeleteStudentNoContent) IsClientError() bool

IsClientError returns true when this delete student no content response has a 4xx status code

func (*DeleteStudentNoContent) IsCode

func (o *DeleteStudentNoContent) IsCode(code int) bool

IsCode returns true when this delete student no content response a status code equal to that given

func (*DeleteStudentNoContent) IsRedirect

func (o *DeleteStudentNoContent) IsRedirect() bool

IsRedirect returns true when this delete student no content response has a 3xx status code

func (*DeleteStudentNoContent) IsServerError

func (o *DeleteStudentNoContent) IsServerError() bool

IsServerError returns true when this delete student no content response has a 5xx status code

func (*DeleteStudentNoContent) IsSuccess

func (o *DeleteStudentNoContent) IsSuccess() bool

IsSuccess returns true when this delete student no content response has a 2xx status code

func (*DeleteStudentNoContent) String

func (o *DeleteStudentNoContent) String() string

type DeleteStudentNotFound

type DeleteStudentNotFound struct {
}

DeleteStudentNotFound describes a response with status code 404, with default header values.

Student not found

func NewDeleteStudentNotFound

func NewDeleteStudentNotFound() *DeleteStudentNotFound

NewDeleteStudentNotFound creates a DeleteStudentNotFound with default headers values

func (*DeleteStudentNotFound) Code

func (o *DeleteStudentNotFound) Code() int

Code gets the status code for the delete student not found response

func (*DeleteStudentNotFound) Error

func (o *DeleteStudentNotFound) Error() string

func (*DeleteStudentNotFound) IsClientError

func (o *DeleteStudentNotFound) IsClientError() bool

IsClientError returns true when this delete student not found response has a 4xx status code

func (*DeleteStudentNotFound) IsCode

func (o *DeleteStudentNotFound) IsCode(code int) bool

IsCode returns true when this delete student not found response a status code equal to that given

func (*DeleteStudentNotFound) IsRedirect

func (o *DeleteStudentNotFound) IsRedirect() bool

IsRedirect returns true when this delete student not found response has a 3xx status code

func (*DeleteStudentNotFound) IsServerError

func (o *DeleteStudentNotFound) IsServerError() bool

IsServerError returns true when this delete student not found response has a 5xx status code

func (*DeleteStudentNotFound) IsSuccess

func (o *DeleteStudentNotFound) IsSuccess() bool

IsSuccess returns true when this delete student not found response has a 2xx status code

func (*DeleteStudentNotFound) String

func (o *DeleteStudentNotFound) String() string

type DeleteStudentParams

type DeleteStudentParams struct {

	/* ID.

	   ID of the Student
	*/
	ID int64

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

DeleteStudentParams contains all the parameters to send to the API endpoint

for the delete student operation.

Typically these are written to a http.Request.

func NewDeleteStudentParams

func NewDeleteStudentParams() *DeleteStudentParams

NewDeleteStudentParams creates a new DeleteStudentParams 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 NewDeleteStudentParamsWithContext

func NewDeleteStudentParamsWithContext(ctx context.Context) *DeleteStudentParams

NewDeleteStudentParamsWithContext creates a new DeleteStudentParams object with the ability to set a context for a request.

func NewDeleteStudentParamsWithHTTPClient

func NewDeleteStudentParamsWithHTTPClient(client *http.Client) *DeleteStudentParams

NewDeleteStudentParamsWithHTTPClient creates a new DeleteStudentParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteStudentParamsWithTimeout

func NewDeleteStudentParamsWithTimeout(timeout time.Duration) *DeleteStudentParams

NewDeleteStudentParamsWithTimeout creates a new DeleteStudentParams object with the ability to set a timeout on a request.

func (*DeleteStudentParams) SetContext

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

SetContext adds the context to the delete student params

func (*DeleteStudentParams) SetDefaults

func (o *DeleteStudentParams) SetDefaults()

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

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

func (*DeleteStudentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete student params

func (*DeleteStudentParams) SetID

func (o *DeleteStudentParams) SetID(id int64)

SetID adds the id to the delete student params

func (*DeleteStudentParams) SetTimeout

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

SetTimeout adds the timeout to the delete student params

func (*DeleteStudentParams) WithContext

WithContext adds the context to the delete student params

func (*DeleteStudentParams) WithDefaults

func (o *DeleteStudentParams) WithDefaults() *DeleteStudentParams

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

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

func (*DeleteStudentParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete student params

func (*DeleteStudentParams) WithID

WithID adds the id to the delete student params

func (*DeleteStudentParams) WithTimeout

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

WithTimeout adds the timeout to the delete student params

func (*DeleteStudentParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteStudentReader

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

DeleteStudentReader is a Reader for the DeleteStudent structure.

func (*DeleteStudentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteSubjectInternalServerError

type DeleteSubjectInternalServerError struct {
}

DeleteSubjectInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewDeleteSubjectInternalServerError

func NewDeleteSubjectInternalServerError() *DeleteSubjectInternalServerError

NewDeleteSubjectInternalServerError creates a DeleteSubjectInternalServerError with default headers values

func (*DeleteSubjectInternalServerError) Code

Code gets the status code for the delete subject internal server error response

func (*DeleteSubjectInternalServerError) Error

func (*DeleteSubjectInternalServerError) IsClientError

func (o *DeleteSubjectInternalServerError) IsClientError() bool

IsClientError returns true when this delete subject internal server error response has a 4xx status code

func (*DeleteSubjectInternalServerError) IsCode

func (o *DeleteSubjectInternalServerError) IsCode(code int) bool

IsCode returns true when this delete subject internal server error response a status code equal to that given

func (*DeleteSubjectInternalServerError) IsRedirect

func (o *DeleteSubjectInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete subject internal server error response has a 3xx status code

func (*DeleteSubjectInternalServerError) IsServerError

func (o *DeleteSubjectInternalServerError) IsServerError() bool

IsServerError returns true when this delete subject internal server error response has a 5xx status code

func (*DeleteSubjectInternalServerError) IsSuccess

func (o *DeleteSubjectInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete subject internal server error response has a 2xx status code

func (*DeleteSubjectInternalServerError) String

type DeleteSubjectNoContent

type DeleteSubjectNoContent struct {
}

DeleteSubjectNoContent describes a response with status code 204, with default header values.

Subject Deleted Successfully!

func NewDeleteSubjectNoContent

func NewDeleteSubjectNoContent() *DeleteSubjectNoContent

NewDeleteSubjectNoContent creates a DeleteSubjectNoContent with default headers values

func (*DeleteSubjectNoContent) Code

func (o *DeleteSubjectNoContent) Code() int

Code gets the status code for the delete subject no content response

func (*DeleteSubjectNoContent) Error

func (o *DeleteSubjectNoContent) Error() string

func (*DeleteSubjectNoContent) IsClientError

func (o *DeleteSubjectNoContent) IsClientError() bool

IsClientError returns true when this delete subject no content response has a 4xx status code

func (*DeleteSubjectNoContent) IsCode

func (o *DeleteSubjectNoContent) IsCode(code int) bool

IsCode returns true when this delete subject no content response a status code equal to that given

func (*DeleteSubjectNoContent) IsRedirect

func (o *DeleteSubjectNoContent) IsRedirect() bool

IsRedirect returns true when this delete subject no content response has a 3xx status code

func (*DeleteSubjectNoContent) IsServerError

func (o *DeleteSubjectNoContent) IsServerError() bool

IsServerError returns true when this delete subject no content response has a 5xx status code

func (*DeleteSubjectNoContent) IsSuccess

func (o *DeleteSubjectNoContent) IsSuccess() bool

IsSuccess returns true when this delete subject no content response has a 2xx status code

func (*DeleteSubjectNoContent) String

func (o *DeleteSubjectNoContent) String() string

type DeleteSubjectNotFound

type DeleteSubjectNotFound struct {
}

DeleteSubjectNotFound describes a response with status code 404, with default header values.

Subject not found

func NewDeleteSubjectNotFound

func NewDeleteSubjectNotFound() *DeleteSubjectNotFound

NewDeleteSubjectNotFound creates a DeleteSubjectNotFound with default headers values

func (*DeleteSubjectNotFound) Code

func (o *DeleteSubjectNotFound) Code() int

Code gets the status code for the delete subject not found response

func (*DeleteSubjectNotFound) Error

func (o *DeleteSubjectNotFound) Error() string

func (*DeleteSubjectNotFound) IsClientError

func (o *DeleteSubjectNotFound) IsClientError() bool

IsClientError returns true when this delete subject not found response has a 4xx status code

func (*DeleteSubjectNotFound) IsCode

func (o *DeleteSubjectNotFound) IsCode(code int) bool

IsCode returns true when this delete subject not found response a status code equal to that given

func (*DeleteSubjectNotFound) IsRedirect

func (o *DeleteSubjectNotFound) IsRedirect() bool

IsRedirect returns true when this delete subject not found response has a 3xx status code

func (*DeleteSubjectNotFound) IsServerError

func (o *DeleteSubjectNotFound) IsServerError() bool

IsServerError returns true when this delete subject not found response has a 5xx status code

func (*DeleteSubjectNotFound) IsSuccess

func (o *DeleteSubjectNotFound) IsSuccess() bool

IsSuccess returns true when this delete subject not found response has a 2xx status code

func (*DeleteSubjectNotFound) String

func (o *DeleteSubjectNotFound) String() string

type DeleteSubjectParams

type DeleteSubjectParams struct {

	/* ID.

	   ID of the Subject
	*/
	ID int64

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

DeleteSubjectParams contains all the parameters to send to the API endpoint

for the delete subject operation.

Typically these are written to a http.Request.

func NewDeleteSubjectParams

func NewDeleteSubjectParams() *DeleteSubjectParams

NewDeleteSubjectParams creates a new DeleteSubjectParams 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 NewDeleteSubjectParamsWithContext

func NewDeleteSubjectParamsWithContext(ctx context.Context) *DeleteSubjectParams

NewDeleteSubjectParamsWithContext creates a new DeleteSubjectParams object with the ability to set a context for a request.

func NewDeleteSubjectParamsWithHTTPClient

func NewDeleteSubjectParamsWithHTTPClient(client *http.Client) *DeleteSubjectParams

NewDeleteSubjectParamsWithHTTPClient creates a new DeleteSubjectParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteSubjectParamsWithTimeout

func NewDeleteSubjectParamsWithTimeout(timeout time.Duration) *DeleteSubjectParams

NewDeleteSubjectParamsWithTimeout creates a new DeleteSubjectParams object with the ability to set a timeout on a request.

func (*DeleteSubjectParams) SetContext

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

SetContext adds the context to the delete subject params

func (*DeleteSubjectParams) SetDefaults

func (o *DeleteSubjectParams) SetDefaults()

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

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

func (*DeleteSubjectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete subject params

func (*DeleteSubjectParams) SetID

func (o *DeleteSubjectParams) SetID(id int64)

SetID adds the id to the delete subject params

func (*DeleteSubjectParams) SetTimeout

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

SetTimeout adds the timeout to the delete subject params

func (*DeleteSubjectParams) WithContext

WithContext adds the context to the delete subject params

func (*DeleteSubjectParams) WithDefaults

func (o *DeleteSubjectParams) WithDefaults() *DeleteSubjectParams

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

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

func (*DeleteSubjectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete subject params

func (*DeleteSubjectParams) WithID

WithID adds the id to the delete subject params

func (*DeleteSubjectParams) WithTimeout

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

WithTimeout adds the timeout to the delete subject params

func (*DeleteSubjectParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteSubjectReader

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

DeleteSubjectReader is a Reader for the DeleteSubject structure.

func (*DeleteSubjectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteTeacherInternalServerError

type DeleteTeacherInternalServerError struct {
}

DeleteTeacherInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewDeleteTeacherInternalServerError

func NewDeleteTeacherInternalServerError() *DeleteTeacherInternalServerError

NewDeleteTeacherInternalServerError creates a DeleteTeacherInternalServerError with default headers values

func (*DeleteTeacherInternalServerError) Code

Code gets the status code for the delete teacher internal server error response

func (*DeleteTeacherInternalServerError) Error

func (*DeleteTeacherInternalServerError) IsClientError

func (o *DeleteTeacherInternalServerError) IsClientError() bool

IsClientError returns true when this delete teacher internal server error response has a 4xx status code

func (*DeleteTeacherInternalServerError) IsCode

func (o *DeleteTeacherInternalServerError) IsCode(code int) bool

IsCode returns true when this delete teacher internal server error response a status code equal to that given

func (*DeleteTeacherInternalServerError) IsRedirect

func (o *DeleteTeacherInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete teacher internal server error response has a 3xx status code

func (*DeleteTeacherInternalServerError) IsServerError

func (o *DeleteTeacherInternalServerError) IsServerError() bool

IsServerError returns true when this delete teacher internal server error response has a 5xx status code

func (*DeleteTeacherInternalServerError) IsSuccess

func (o *DeleteTeacherInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete teacher internal server error response has a 2xx status code

func (*DeleteTeacherInternalServerError) String

type DeleteTeacherNoContent

type DeleteTeacherNoContent struct {
}

DeleteTeacherNoContent describes a response with status code 204, with default header values.

Teacher Deleted Successfully!

func NewDeleteTeacherNoContent

func NewDeleteTeacherNoContent() *DeleteTeacherNoContent

NewDeleteTeacherNoContent creates a DeleteTeacherNoContent with default headers values

func (*DeleteTeacherNoContent) Code

func (o *DeleteTeacherNoContent) Code() int

Code gets the status code for the delete teacher no content response

func (*DeleteTeacherNoContent) Error

func (o *DeleteTeacherNoContent) Error() string

func (*DeleteTeacherNoContent) IsClientError

func (o *DeleteTeacherNoContent) IsClientError() bool

IsClientError returns true when this delete teacher no content response has a 4xx status code

func (*DeleteTeacherNoContent) IsCode

func (o *DeleteTeacherNoContent) IsCode(code int) bool

IsCode returns true when this delete teacher no content response a status code equal to that given

func (*DeleteTeacherNoContent) IsRedirect

func (o *DeleteTeacherNoContent) IsRedirect() bool

IsRedirect returns true when this delete teacher no content response has a 3xx status code

func (*DeleteTeacherNoContent) IsServerError

func (o *DeleteTeacherNoContent) IsServerError() bool

IsServerError returns true when this delete teacher no content response has a 5xx status code

func (*DeleteTeacherNoContent) IsSuccess

func (o *DeleteTeacherNoContent) IsSuccess() bool

IsSuccess returns true when this delete teacher no content response has a 2xx status code

func (*DeleteTeacherNoContent) String

func (o *DeleteTeacherNoContent) String() string

type DeleteTeacherNotFound

type DeleteTeacherNotFound struct {
}

DeleteTeacherNotFound describes a response with status code 404, with default header values.

Teacher not found

func NewDeleteTeacherNotFound

func NewDeleteTeacherNotFound() *DeleteTeacherNotFound

NewDeleteTeacherNotFound creates a DeleteTeacherNotFound with default headers values

func (*DeleteTeacherNotFound) Code

func (o *DeleteTeacherNotFound) Code() int

Code gets the status code for the delete teacher not found response

func (*DeleteTeacherNotFound) Error

func (o *DeleteTeacherNotFound) Error() string

func (*DeleteTeacherNotFound) IsClientError

func (o *DeleteTeacherNotFound) IsClientError() bool

IsClientError returns true when this delete teacher not found response has a 4xx status code

func (*DeleteTeacherNotFound) IsCode

func (o *DeleteTeacherNotFound) IsCode(code int) bool

IsCode returns true when this delete teacher not found response a status code equal to that given

func (*DeleteTeacherNotFound) IsRedirect

func (o *DeleteTeacherNotFound) IsRedirect() bool

IsRedirect returns true when this delete teacher not found response has a 3xx status code

func (*DeleteTeacherNotFound) IsServerError

func (o *DeleteTeacherNotFound) IsServerError() bool

IsServerError returns true when this delete teacher not found response has a 5xx status code

func (*DeleteTeacherNotFound) IsSuccess

func (o *DeleteTeacherNotFound) IsSuccess() bool

IsSuccess returns true when this delete teacher not found response has a 2xx status code

func (*DeleteTeacherNotFound) String

func (o *DeleteTeacherNotFound) String() string

type DeleteTeacherParams

type DeleteTeacherParams struct {

	/* ID.

	   ID of the Teacher
	*/
	ID int64

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

DeleteTeacherParams contains all the parameters to send to the API endpoint

for the delete teacher operation.

Typically these are written to a http.Request.

func NewDeleteTeacherParams

func NewDeleteTeacherParams() *DeleteTeacherParams

NewDeleteTeacherParams creates a new DeleteTeacherParams 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 NewDeleteTeacherParamsWithContext

func NewDeleteTeacherParamsWithContext(ctx context.Context) *DeleteTeacherParams

NewDeleteTeacherParamsWithContext creates a new DeleteTeacherParams object with the ability to set a context for a request.

func NewDeleteTeacherParamsWithHTTPClient

func NewDeleteTeacherParamsWithHTTPClient(client *http.Client) *DeleteTeacherParams

NewDeleteTeacherParamsWithHTTPClient creates a new DeleteTeacherParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteTeacherParamsWithTimeout

func NewDeleteTeacherParamsWithTimeout(timeout time.Duration) *DeleteTeacherParams

NewDeleteTeacherParamsWithTimeout creates a new DeleteTeacherParams object with the ability to set a timeout on a request.

func (*DeleteTeacherParams) SetContext

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

SetContext adds the context to the delete teacher params

func (*DeleteTeacherParams) SetDefaults

func (o *DeleteTeacherParams) SetDefaults()

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

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

func (*DeleteTeacherParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete teacher params

func (*DeleteTeacherParams) SetID

func (o *DeleteTeacherParams) SetID(id int64)

SetID adds the id to the delete teacher params

func (*DeleteTeacherParams) SetTimeout

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

SetTimeout adds the timeout to the delete teacher params

func (*DeleteTeacherParams) WithContext

WithContext adds the context to the delete teacher params

func (*DeleteTeacherParams) WithDefaults

func (o *DeleteTeacherParams) WithDefaults() *DeleteTeacherParams

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

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

func (*DeleteTeacherParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete teacher params

func (*DeleteTeacherParams) WithID

WithID adds the id to the delete teacher params

func (*DeleteTeacherParams) WithTimeout

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

WithTimeout adds the timeout to the delete teacher params

func (*DeleteTeacherParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteTeacherReader

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

DeleteTeacherReader is a Reader for the DeleteTeacher structure.

func (*DeleteTeacherReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAccountByIDInternalServerError

type GetAccountByIDInternalServerError struct {
}

GetAccountByIDInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetAccountByIDInternalServerError

func NewGetAccountByIDInternalServerError() *GetAccountByIDInternalServerError

NewGetAccountByIDInternalServerError creates a GetAccountByIDInternalServerError with default headers values

func (*GetAccountByIDInternalServerError) Code

Code gets the status code for the get account by Id internal server error response

func (*GetAccountByIDInternalServerError) Error

func (*GetAccountByIDInternalServerError) IsClientError

func (o *GetAccountByIDInternalServerError) IsClientError() bool

IsClientError returns true when this get account by Id internal server error response has a 4xx status code

func (*GetAccountByIDInternalServerError) IsCode

func (o *GetAccountByIDInternalServerError) IsCode(code int) bool

IsCode returns true when this get account by Id internal server error response a status code equal to that given

func (*GetAccountByIDInternalServerError) IsRedirect

func (o *GetAccountByIDInternalServerError) IsRedirect() bool

IsRedirect returns true when this get account by Id internal server error response has a 3xx status code

func (*GetAccountByIDInternalServerError) IsServerError

func (o *GetAccountByIDInternalServerError) IsServerError() bool

IsServerError returns true when this get account by Id internal server error response has a 5xx status code

func (*GetAccountByIDInternalServerError) IsSuccess

func (o *GetAccountByIDInternalServerError) IsSuccess() bool

IsSuccess returns true when this get account by Id internal server error response has a 2xx status code

func (*GetAccountByIDInternalServerError) String

type GetAccountByIDNotFound

type GetAccountByIDNotFound struct {
}

GetAccountByIDNotFound describes a response with status code 404, with default header values.

Account not found

func NewGetAccountByIDNotFound

func NewGetAccountByIDNotFound() *GetAccountByIDNotFound

NewGetAccountByIDNotFound creates a GetAccountByIDNotFound with default headers values

func (*GetAccountByIDNotFound) Code

func (o *GetAccountByIDNotFound) Code() int

Code gets the status code for the get account by Id not found response

func (*GetAccountByIDNotFound) Error

func (o *GetAccountByIDNotFound) Error() string

func (*GetAccountByIDNotFound) IsClientError

func (o *GetAccountByIDNotFound) IsClientError() bool

IsClientError returns true when this get account by Id not found response has a 4xx status code

func (*GetAccountByIDNotFound) IsCode

func (o *GetAccountByIDNotFound) IsCode(code int) bool

IsCode returns true when this get account by Id not found response a status code equal to that given

func (*GetAccountByIDNotFound) IsRedirect

func (o *GetAccountByIDNotFound) IsRedirect() bool

IsRedirect returns true when this get account by Id not found response has a 3xx status code

func (*GetAccountByIDNotFound) IsServerError

func (o *GetAccountByIDNotFound) IsServerError() bool

IsServerError returns true when this get account by Id not found response has a 5xx status code

func (*GetAccountByIDNotFound) IsSuccess

func (o *GetAccountByIDNotFound) IsSuccess() bool

IsSuccess returns true when this get account by Id not found response has a 2xx status code

func (*GetAccountByIDNotFound) String

func (o *GetAccountByIDNotFound) String() string

type GetAccountByIDOK

type GetAccountByIDOK struct {
	Payload *models.Account
}

GetAccountByIDOK describes a response with status code 200, with default header values.

Account response

func NewGetAccountByIDOK

func NewGetAccountByIDOK() *GetAccountByIDOK

NewGetAccountByIDOK creates a GetAccountByIDOK with default headers values

func (*GetAccountByIDOK) Code

func (o *GetAccountByIDOK) Code() int

Code gets the status code for the get account by Id o k response

func (*GetAccountByIDOK) Error

func (o *GetAccountByIDOK) Error() string

func (*GetAccountByIDOK) GetPayload

func (o *GetAccountByIDOK) GetPayload() *models.Account

func (*GetAccountByIDOK) IsClientError

func (o *GetAccountByIDOK) IsClientError() bool

IsClientError returns true when this get account by Id o k response has a 4xx status code

func (*GetAccountByIDOK) IsCode

func (o *GetAccountByIDOK) IsCode(code int) bool

IsCode returns true when this get account by Id o k response a status code equal to that given

func (*GetAccountByIDOK) IsRedirect

func (o *GetAccountByIDOK) IsRedirect() bool

IsRedirect returns true when this get account by Id o k response has a 3xx status code

func (*GetAccountByIDOK) IsServerError

func (o *GetAccountByIDOK) IsServerError() bool

IsServerError returns true when this get account by Id o k response has a 5xx status code

func (*GetAccountByIDOK) IsSuccess

func (o *GetAccountByIDOK) IsSuccess() bool

IsSuccess returns true when this get account by Id o k response has a 2xx status code

func (*GetAccountByIDOK) String

func (o *GetAccountByIDOK) String() string

type GetAccountByIDParams

type GetAccountByIDParams struct {

	/* ID.

	   ID of the Account
	*/
	ID int64

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

GetAccountByIDParams contains all the parameters to send to the API endpoint

for the get account by ID operation.

Typically these are written to a http.Request.

func NewGetAccountByIDParams

func NewGetAccountByIDParams() *GetAccountByIDParams

NewGetAccountByIDParams creates a new GetAccountByIDParams 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 NewGetAccountByIDParamsWithContext

func NewGetAccountByIDParamsWithContext(ctx context.Context) *GetAccountByIDParams

NewGetAccountByIDParamsWithContext creates a new GetAccountByIDParams object with the ability to set a context for a request.

func NewGetAccountByIDParamsWithHTTPClient

func NewGetAccountByIDParamsWithHTTPClient(client *http.Client) *GetAccountByIDParams

NewGetAccountByIDParamsWithHTTPClient creates a new GetAccountByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetAccountByIDParamsWithTimeout

func NewGetAccountByIDParamsWithTimeout(timeout time.Duration) *GetAccountByIDParams

NewGetAccountByIDParamsWithTimeout creates a new GetAccountByIDParams object with the ability to set a timeout on a request.

func (*GetAccountByIDParams) SetContext

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

SetContext adds the context to the get account by ID params

func (*GetAccountByIDParams) SetDefaults

func (o *GetAccountByIDParams) SetDefaults()

SetDefaults hydrates default values in the get account by ID params (not the query body).

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

func (*GetAccountByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get account by ID params

func (*GetAccountByIDParams) SetID

func (o *GetAccountByIDParams) SetID(id int64)

SetID adds the id to the get account by ID params

func (*GetAccountByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get account by ID params

func (*GetAccountByIDParams) WithContext

WithContext adds the context to the get account by ID params

func (*GetAccountByIDParams) WithDefaults

func (o *GetAccountByIDParams) WithDefaults() *GetAccountByIDParams

WithDefaults hydrates default values in the get account by ID params (not the query body).

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

func (*GetAccountByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get account by ID params

func (*GetAccountByIDParams) WithID

WithID adds the id to the get account by ID params

func (*GetAccountByIDParams) WithTimeout

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

WithTimeout adds the timeout to the get account by ID params

func (*GetAccountByIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAccountByIDReader

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

GetAccountByIDReader is a Reader for the GetAccountByID structure.

func (*GetAccountByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAccountsInternalServerError

type GetAccountsInternalServerError struct {
}

GetAccountsInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetAccountsInternalServerError

func NewGetAccountsInternalServerError() *GetAccountsInternalServerError

NewGetAccountsInternalServerError creates a GetAccountsInternalServerError with default headers values

func (*GetAccountsInternalServerError) Code

Code gets the status code for the get accounts internal server error response

func (*GetAccountsInternalServerError) Error

func (*GetAccountsInternalServerError) IsClientError

func (o *GetAccountsInternalServerError) IsClientError() bool

IsClientError returns true when this get accounts internal server error response has a 4xx status code

func (*GetAccountsInternalServerError) IsCode

func (o *GetAccountsInternalServerError) IsCode(code int) bool

IsCode returns true when this get accounts internal server error response a status code equal to that given

func (*GetAccountsInternalServerError) IsRedirect

func (o *GetAccountsInternalServerError) IsRedirect() bool

IsRedirect returns true when this get accounts internal server error response has a 3xx status code

func (*GetAccountsInternalServerError) IsServerError

func (o *GetAccountsInternalServerError) IsServerError() bool

IsServerError returns true when this get accounts internal server error response has a 5xx status code

func (*GetAccountsInternalServerError) IsSuccess

func (o *GetAccountsInternalServerError) IsSuccess() bool

IsSuccess returns true when this get accounts internal server error response has a 2xx status code

func (*GetAccountsInternalServerError) String

type GetAccountsNotFound

type GetAccountsNotFound struct {
}

GetAccountsNotFound describes a response with status code 404, with default header values.

Account not found

func NewGetAccountsNotFound

func NewGetAccountsNotFound() *GetAccountsNotFound

NewGetAccountsNotFound creates a GetAccountsNotFound with default headers values

func (*GetAccountsNotFound) Code

func (o *GetAccountsNotFound) Code() int

Code gets the status code for the get accounts not found response

func (*GetAccountsNotFound) Error

func (o *GetAccountsNotFound) Error() string

func (*GetAccountsNotFound) IsClientError

func (o *GetAccountsNotFound) IsClientError() bool

IsClientError returns true when this get accounts not found response has a 4xx status code

func (*GetAccountsNotFound) IsCode

func (o *GetAccountsNotFound) IsCode(code int) bool

IsCode returns true when this get accounts not found response a status code equal to that given

func (*GetAccountsNotFound) IsRedirect

func (o *GetAccountsNotFound) IsRedirect() bool

IsRedirect returns true when this get accounts not found response has a 3xx status code

func (*GetAccountsNotFound) IsServerError

func (o *GetAccountsNotFound) IsServerError() bool

IsServerError returns true when this get accounts not found response has a 5xx status code

func (*GetAccountsNotFound) IsSuccess

func (o *GetAccountsNotFound) IsSuccess() bool

IsSuccess returns true when this get accounts not found response has a 2xx status code

func (*GetAccountsNotFound) String

func (o *GetAccountsNotFound) String() string

type GetAccountsOK

type GetAccountsOK struct {
	Payload []*models.Account
}

GetAccountsOK describes a response with status code 200, with default header values.

Accounts' response

func NewGetAccountsOK

func NewGetAccountsOK() *GetAccountsOK

NewGetAccountsOK creates a GetAccountsOK with default headers values

func (*GetAccountsOK) Code

func (o *GetAccountsOK) Code() int

Code gets the status code for the get accounts o k response

func (*GetAccountsOK) Error

func (o *GetAccountsOK) Error() string

func (*GetAccountsOK) GetPayload

func (o *GetAccountsOK) GetPayload() []*models.Account

func (*GetAccountsOK) IsClientError

func (o *GetAccountsOK) IsClientError() bool

IsClientError returns true when this get accounts o k response has a 4xx status code

func (*GetAccountsOK) IsCode

func (o *GetAccountsOK) IsCode(code int) bool

IsCode returns true when this get accounts o k response a status code equal to that given

func (*GetAccountsOK) IsRedirect

func (o *GetAccountsOK) IsRedirect() bool

IsRedirect returns true when this get accounts o k response has a 3xx status code

func (*GetAccountsOK) IsServerError

func (o *GetAccountsOK) IsServerError() bool

IsServerError returns true when this get accounts o k response has a 5xx status code

func (*GetAccountsOK) IsSuccess

func (o *GetAccountsOK) IsSuccess() bool

IsSuccess returns true when this get accounts o k response has a 2xx status code

func (*GetAccountsOK) String

func (o *GetAccountsOK) String() string

type GetAccountsParams

type GetAccountsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetAccountsParams contains all the parameters to send to the API endpoint

for the get accounts operation.

Typically these are written to a http.Request.

func NewGetAccountsParams

func NewGetAccountsParams() *GetAccountsParams

NewGetAccountsParams creates a new GetAccountsParams 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 NewGetAccountsParamsWithContext

func NewGetAccountsParamsWithContext(ctx context.Context) *GetAccountsParams

NewGetAccountsParamsWithContext creates a new GetAccountsParams object with the ability to set a context for a request.

func NewGetAccountsParamsWithHTTPClient

func NewGetAccountsParamsWithHTTPClient(client *http.Client) *GetAccountsParams

NewGetAccountsParamsWithHTTPClient creates a new GetAccountsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAccountsParamsWithTimeout

func NewGetAccountsParamsWithTimeout(timeout time.Duration) *GetAccountsParams

NewGetAccountsParamsWithTimeout creates a new GetAccountsParams object with the ability to set a timeout on a request.

func (*GetAccountsParams) SetContext

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

SetContext adds the context to the get accounts params

func (*GetAccountsParams) SetDefaults

func (o *GetAccountsParams) SetDefaults()

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

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

func (*GetAccountsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get accounts params

func (*GetAccountsParams) SetTimeout

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

SetTimeout adds the timeout to the get accounts params

func (*GetAccountsParams) WithContext

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

WithContext adds the context to the get accounts params

func (*GetAccountsParams) WithDefaults

func (o *GetAccountsParams) WithDefaults() *GetAccountsParams

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

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

func (*GetAccountsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get accounts params

func (*GetAccountsParams) WithTimeout

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

WithTimeout adds the timeout to the get accounts params

func (*GetAccountsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAccountsReader

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

GetAccountsReader is a Reader for the GetAccounts structure.

func (*GetAccountsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetClassByIDInternalServerError

type GetClassByIDInternalServerError struct {
}

GetClassByIDInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetClassByIDInternalServerError

func NewGetClassByIDInternalServerError() *GetClassByIDInternalServerError

NewGetClassByIDInternalServerError creates a GetClassByIDInternalServerError with default headers values

func (*GetClassByIDInternalServerError) Code

Code gets the status code for the get class by Id internal server error response

func (*GetClassByIDInternalServerError) Error

func (*GetClassByIDInternalServerError) IsClientError

func (o *GetClassByIDInternalServerError) IsClientError() bool

IsClientError returns true when this get class by Id internal server error response has a 4xx status code

func (*GetClassByIDInternalServerError) IsCode

func (o *GetClassByIDInternalServerError) IsCode(code int) bool

IsCode returns true when this get class by Id internal server error response a status code equal to that given

func (*GetClassByIDInternalServerError) IsRedirect

func (o *GetClassByIDInternalServerError) IsRedirect() bool

IsRedirect returns true when this get class by Id internal server error response has a 3xx status code

func (*GetClassByIDInternalServerError) IsServerError

func (o *GetClassByIDInternalServerError) IsServerError() bool

IsServerError returns true when this get class by Id internal server error response has a 5xx status code

func (*GetClassByIDInternalServerError) IsSuccess

func (o *GetClassByIDInternalServerError) IsSuccess() bool

IsSuccess returns true when this get class by Id internal server error response has a 2xx status code

func (*GetClassByIDInternalServerError) String

type GetClassByIDNotFound

type GetClassByIDNotFound struct {
}

GetClassByIDNotFound describes a response with status code 404, with default header values.

Class not found

func NewGetClassByIDNotFound

func NewGetClassByIDNotFound() *GetClassByIDNotFound

NewGetClassByIDNotFound creates a GetClassByIDNotFound with default headers values

func (*GetClassByIDNotFound) Code

func (o *GetClassByIDNotFound) Code() int

Code gets the status code for the get class by Id not found response

func (*GetClassByIDNotFound) Error

func (o *GetClassByIDNotFound) Error() string

func (*GetClassByIDNotFound) IsClientError

func (o *GetClassByIDNotFound) IsClientError() bool

IsClientError returns true when this get class by Id not found response has a 4xx status code

func (*GetClassByIDNotFound) IsCode

func (o *GetClassByIDNotFound) IsCode(code int) bool

IsCode returns true when this get class by Id not found response a status code equal to that given

func (*GetClassByIDNotFound) IsRedirect

func (o *GetClassByIDNotFound) IsRedirect() bool

IsRedirect returns true when this get class by Id not found response has a 3xx status code

func (*GetClassByIDNotFound) IsServerError

func (o *GetClassByIDNotFound) IsServerError() bool

IsServerError returns true when this get class by Id not found response has a 5xx status code

func (*GetClassByIDNotFound) IsSuccess

func (o *GetClassByIDNotFound) IsSuccess() bool

IsSuccess returns true when this get class by Id not found response has a 2xx status code

func (*GetClassByIDNotFound) String

func (o *GetClassByIDNotFound) String() string

type GetClassByIDOK

type GetClassByIDOK struct {
	Payload *models.Class
}

GetClassByIDOK describes a response with status code 200, with default header values.

Class response

func NewGetClassByIDOK

func NewGetClassByIDOK() *GetClassByIDOK

NewGetClassByIDOK creates a GetClassByIDOK with default headers values

func (*GetClassByIDOK) Code

func (o *GetClassByIDOK) Code() int

Code gets the status code for the get class by Id o k response

func (*GetClassByIDOK) Error

func (o *GetClassByIDOK) Error() string

func (*GetClassByIDOK) GetPayload

func (o *GetClassByIDOK) GetPayload() *models.Class

func (*GetClassByIDOK) IsClientError

func (o *GetClassByIDOK) IsClientError() bool

IsClientError returns true when this get class by Id o k response has a 4xx status code

func (*GetClassByIDOK) IsCode

func (o *GetClassByIDOK) IsCode(code int) bool

IsCode returns true when this get class by Id o k response a status code equal to that given

func (*GetClassByIDOK) IsRedirect

func (o *GetClassByIDOK) IsRedirect() bool

IsRedirect returns true when this get class by Id o k response has a 3xx status code

func (*GetClassByIDOK) IsServerError

func (o *GetClassByIDOK) IsServerError() bool

IsServerError returns true when this get class by Id o k response has a 5xx status code

func (*GetClassByIDOK) IsSuccess

func (o *GetClassByIDOK) IsSuccess() bool

IsSuccess returns true when this get class by Id o k response has a 2xx status code

func (*GetClassByIDOK) String

func (o *GetClassByIDOK) String() string

type GetClassByIDParams

type GetClassByIDParams struct {

	/* ID.

	   ID of the Class
	*/
	ID int64

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

GetClassByIDParams contains all the parameters to send to the API endpoint

for the get class by ID operation.

Typically these are written to a http.Request.

func NewGetClassByIDParams

func NewGetClassByIDParams() *GetClassByIDParams

NewGetClassByIDParams creates a new GetClassByIDParams 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 NewGetClassByIDParamsWithContext

func NewGetClassByIDParamsWithContext(ctx context.Context) *GetClassByIDParams

NewGetClassByIDParamsWithContext creates a new GetClassByIDParams object with the ability to set a context for a request.

func NewGetClassByIDParamsWithHTTPClient

func NewGetClassByIDParamsWithHTTPClient(client *http.Client) *GetClassByIDParams

NewGetClassByIDParamsWithHTTPClient creates a new GetClassByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetClassByIDParamsWithTimeout

func NewGetClassByIDParamsWithTimeout(timeout time.Duration) *GetClassByIDParams

NewGetClassByIDParamsWithTimeout creates a new GetClassByIDParams object with the ability to set a timeout on a request.

func (*GetClassByIDParams) SetContext

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

SetContext adds the context to the get class by ID params

func (*GetClassByIDParams) SetDefaults

func (o *GetClassByIDParams) SetDefaults()

SetDefaults hydrates default values in the get class by ID params (not the query body).

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

func (*GetClassByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get class by ID params

func (*GetClassByIDParams) SetID

func (o *GetClassByIDParams) SetID(id int64)

SetID adds the id to the get class by ID params

func (*GetClassByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get class by ID params

func (*GetClassByIDParams) WithContext

WithContext adds the context to the get class by ID params

func (*GetClassByIDParams) WithDefaults

func (o *GetClassByIDParams) WithDefaults() *GetClassByIDParams

WithDefaults hydrates default values in the get class by ID params (not the query body).

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

func (*GetClassByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get class by ID params

func (*GetClassByIDParams) WithID

WithID adds the id to the get class by ID params

func (*GetClassByIDParams) WithTimeout

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

WithTimeout adds the timeout to the get class by ID params

func (*GetClassByIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetClassByIDReader

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

GetClassByIDReader is a Reader for the GetClassByID structure.

func (*GetClassByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetClassOfTeacherInternalServerError

type GetClassOfTeacherInternalServerError struct {
}

GetClassOfTeacherInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetClassOfTeacherInternalServerError

func NewGetClassOfTeacherInternalServerError() *GetClassOfTeacherInternalServerError

NewGetClassOfTeacherInternalServerError creates a GetClassOfTeacherInternalServerError with default headers values

func (*GetClassOfTeacherInternalServerError) Code

Code gets the status code for the get class of teacher internal server error response

func (*GetClassOfTeacherInternalServerError) Error

func (*GetClassOfTeacherInternalServerError) IsClientError

func (o *GetClassOfTeacherInternalServerError) IsClientError() bool

IsClientError returns true when this get class of teacher internal server error response has a 4xx status code

func (*GetClassOfTeacherInternalServerError) IsCode

IsCode returns true when this get class of teacher internal server error response a status code equal to that given

func (*GetClassOfTeacherInternalServerError) IsRedirect

IsRedirect returns true when this get class of teacher internal server error response has a 3xx status code

func (*GetClassOfTeacherInternalServerError) IsServerError

func (o *GetClassOfTeacherInternalServerError) IsServerError() bool

IsServerError returns true when this get class of teacher internal server error response has a 5xx status code

func (*GetClassOfTeacherInternalServerError) IsSuccess

IsSuccess returns true when this get class of teacher internal server error response has a 2xx status code

func (*GetClassOfTeacherInternalServerError) String

type GetClassOfTeacherNotFound

type GetClassOfTeacherNotFound struct {
}

GetClassOfTeacherNotFound describes a response with status code 404, with default header values.

Class not found

func NewGetClassOfTeacherNotFound

func NewGetClassOfTeacherNotFound() *GetClassOfTeacherNotFound

NewGetClassOfTeacherNotFound creates a GetClassOfTeacherNotFound with default headers values

func (*GetClassOfTeacherNotFound) Code

func (o *GetClassOfTeacherNotFound) Code() int

Code gets the status code for the get class of teacher not found response

func (*GetClassOfTeacherNotFound) Error

func (o *GetClassOfTeacherNotFound) Error() string

func (*GetClassOfTeacherNotFound) IsClientError

func (o *GetClassOfTeacherNotFound) IsClientError() bool

IsClientError returns true when this get class of teacher not found response has a 4xx status code

func (*GetClassOfTeacherNotFound) IsCode

func (o *GetClassOfTeacherNotFound) IsCode(code int) bool

IsCode returns true when this get class of teacher not found response a status code equal to that given

func (*GetClassOfTeacherNotFound) IsRedirect

func (o *GetClassOfTeacherNotFound) IsRedirect() bool

IsRedirect returns true when this get class of teacher not found response has a 3xx status code

func (*GetClassOfTeacherNotFound) IsServerError

func (o *GetClassOfTeacherNotFound) IsServerError() bool

IsServerError returns true when this get class of teacher not found response has a 5xx status code

func (*GetClassOfTeacherNotFound) IsSuccess

func (o *GetClassOfTeacherNotFound) IsSuccess() bool

IsSuccess returns true when this get class of teacher not found response has a 2xx status code

func (*GetClassOfTeacherNotFound) String

func (o *GetClassOfTeacherNotFound) String() string

type GetClassOfTeacherOK

type GetClassOfTeacherOK struct {
	Payload *models.Class
}

GetClassOfTeacherOK describes a response with status code 200, with default header values.

Teacher's Class response

func NewGetClassOfTeacherOK

func NewGetClassOfTeacherOK() *GetClassOfTeacherOK

NewGetClassOfTeacherOK creates a GetClassOfTeacherOK with default headers values

func (*GetClassOfTeacherOK) Code

func (o *GetClassOfTeacherOK) Code() int

Code gets the status code for the get class of teacher o k response

func (*GetClassOfTeacherOK) Error

func (o *GetClassOfTeacherOK) Error() string

func (*GetClassOfTeacherOK) GetPayload

func (o *GetClassOfTeacherOK) GetPayload() *models.Class

func (*GetClassOfTeacherOK) IsClientError

func (o *GetClassOfTeacherOK) IsClientError() bool

IsClientError returns true when this get class of teacher o k response has a 4xx status code

func (*GetClassOfTeacherOK) IsCode

func (o *GetClassOfTeacherOK) IsCode(code int) bool

IsCode returns true when this get class of teacher o k response a status code equal to that given

func (*GetClassOfTeacherOK) IsRedirect

func (o *GetClassOfTeacherOK) IsRedirect() bool

IsRedirect returns true when this get class of teacher o k response has a 3xx status code

func (*GetClassOfTeacherOK) IsServerError

func (o *GetClassOfTeacherOK) IsServerError() bool

IsServerError returns true when this get class of teacher o k response has a 5xx status code

func (*GetClassOfTeacherOK) IsSuccess

func (o *GetClassOfTeacherOK) IsSuccess() bool

IsSuccess returns true when this get class of teacher o k response has a 2xx status code

func (*GetClassOfTeacherOK) String

func (o *GetClassOfTeacherOK) String() string

type GetClassOfTeacherParams

type GetClassOfTeacherParams struct {

	/* ID.

	   The ID of the Teacher
	*/
	ID int64

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

GetClassOfTeacherParams contains all the parameters to send to the API endpoint

for the get class of teacher operation.

Typically these are written to a http.Request.

func NewGetClassOfTeacherParams

func NewGetClassOfTeacherParams() *GetClassOfTeacherParams

NewGetClassOfTeacherParams creates a new GetClassOfTeacherParams 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 NewGetClassOfTeacherParamsWithContext

func NewGetClassOfTeacherParamsWithContext(ctx context.Context) *GetClassOfTeacherParams

NewGetClassOfTeacherParamsWithContext creates a new GetClassOfTeacherParams object with the ability to set a context for a request.

func NewGetClassOfTeacherParamsWithHTTPClient

func NewGetClassOfTeacherParamsWithHTTPClient(client *http.Client) *GetClassOfTeacherParams

NewGetClassOfTeacherParamsWithHTTPClient creates a new GetClassOfTeacherParams object with the ability to set a custom HTTPClient for a request.

func NewGetClassOfTeacherParamsWithTimeout

func NewGetClassOfTeacherParamsWithTimeout(timeout time.Duration) *GetClassOfTeacherParams

NewGetClassOfTeacherParamsWithTimeout creates a new GetClassOfTeacherParams object with the ability to set a timeout on a request.

func (*GetClassOfTeacherParams) SetContext

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

SetContext adds the context to the get class of teacher params

func (*GetClassOfTeacherParams) SetDefaults

func (o *GetClassOfTeacherParams) SetDefaults()

SetDefaults hydrates default values in the get class of teacher params (not the query body).

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

func (*GetClassOfTeacherParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get class of teacher params

func (*GetClassOfTeacherParams) SetID

func (o *GetClassOfTeacherParams) SetID(id int64)

SetID adds the id to the get class of teacher params

func (*GetClassOfTeacherParams) SetTimeout

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

SetTimeout adds the timeout to the get class of teacher params

func (*GetClassOfTeacherParams) WithContext

WithContext adds the context to the get class of teacher params

func (*GetClassOfTeacherParams) WithDefaults

WithDefaults hydrates default values in the get class of teacher params (not the query body).

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

func (*GetClassOfTeacherParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get class of teacher params

func (*GetClassOfTeacherParams) WithID

WithID adds the id to the get class of teacher params

func (*GetClassOfTeacherParams) WithTimeout

WithTimeout adds the timeout to the get class of teacher params

func (*GetClassOfTeacherParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetClassOfTeacherReader

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

GetClassOfTeacherReader is a Reader for the GetClassOfTeacher structure.

func (*GetClassOfTeacherReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetClassesInternalServerError

type GetClassesInternalServerError struct {
}

GetClassesInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetClassesInternalServerError

func NewGetClassesInternalServerError() *GetClassesInternalServerError

NewGetClassesInternalServerError creates a GetClassesInternalServerError with default headers values

func (*GetClassesInternalServerError) Code

Code gets the status code for the get classes internal server error response

func (*GetClassesInternalServerError) Error

func (*GetClassesInternalServerError) IsClientError

func (o *GetClassesInternalServerError) IsClientError() bool

IsClientError returns true when this get classes internal server error response has a 4xx status code

func (*GetClassesInternalServerError) IsCode

func (o *GetClassesInternalServerError) IsCode(code int) bool

IsCode returns true when this get classes internal server error response a status code equal to that given

func (*GetClassesInternalServerError) IsRedirect

func (o *GetClassesInternalServerError) IsRedirect() bool

IsRedirect returns true when this get classes internal server error response has a 3xx status code

func (*GetClassesInternalServerError) IsServerError

func (o *GetClassesInternalServerError) IsServerError() bool

IsServerError returns true when this get classes internal server error response has a 5xx status code

func (*GetClassesInternalServerError) IsSuccess

func (o *GetClassesInternalServerError) IsSuccess() bool

IsSuccess returns true when this get classes internal server error response has a 2xx status code

func (*GetClassesInternalServerError) String

type GetClassesNotFound

type GetClassesNotFound struct {
}

GetClassesNotFound describes a response with status code 404, with default header values.

Class not found

func NewGetClassesNotFound

func NewGetClassesNotFound() *GetClassesNotFound

NewGetClassesNotFound creates a GetClassesNotFound with default headers values

func (*GetClassesNotFound) Code

func (o *GetClassesNotFound) Code() int

Code gets the status code for the get classes not found response

func (*GetClassesNotFound) Error

func (o *GetClassesNotFound) Error() string

func (*GetClassesNotFound) IsClientError

func (o *GetClassesNotFound) IsClientError() bool

IsClientError returns true when this get classes not found response has a 4xx status code

func (*GetClassesNotFound) IsCode

func (o *GetClassesNotFound) IsCode(code int) bool

IsCode returns true when this get classes not found response a status code equal to that given

func (*GetClassesNotFound) IsRedirect

func (o *GetClassesNotFound) IsRedirect() bool

IsRedirect returns true when this get classes not found response has a 3xx status code

func (*GetClassesNotFound) IsServerError

func (o *GetClassesNotFound) IsServerError() bool

IsServerError returns true when this get classes not found response has a 5xx status code

func (*GetClassesNotFound) IsSuccess

func (o *GetClassesNotFound) IsSuccess() bool

IsSuccess returns true when this get classes not found response has a 2xx status code

func (*GetClassesNotFound) String

func (o *GetClassesNotFound) String() string

type GetClassesOK

type GetClassesOK struct {
	Payload []*models.Class
}

GetClassesOK describes a response with status code 200, with default header values.

Classes' response

func NewGetClassesOK

func NewGetClassesOK() *GetClassesOK

NewGetClassesOK creates a GetClassesOK with default headers values

func (*GetClassesOK) Code

func (o *GetClassesOK) Code() int

Code gets the status code for the get classes o k response

func (*GetClassesOK) Error

func (o *GetClassesOK) Error() string

func (*GetClassesOK) GetPayload

func (o *GetClassesOK) GetPayload() []*models.Class

func (*GetClassesOK) IsClientError

func (o *GetClassesOK) IsClientError() bool

IsClientError returns true when this get classes o k response has a 4xx status code

func (*GetClassesOK) IsCode

func (o *GetClassesOK) IsCode(code int) bool

IsCode returns true when this get classes o k response a status code equal to that given

func (*GetClassesOK) IsRedirect

func (o *GetClassesOK) IsRedirect() bool

IsRedirect returns true when this get classes o k response has a 3xx status code

func (*GetClassesOK) IsServerError

func (o *GetClassesOK) IsServerError() bool

IsServerError returns true when this get classes o k response has a 5xx status code

func (*GetClassesOK) IsSuccess

func (o *GetClassesOK) IsSuccess() bool

IsSuccess returns true when this get classes o k response has a 2xx status code

func (*GetClassesOK) String

func (o *GetClassesOK) String() string

type GetClassesOfStudentInternalServerError

type GetClassesOfStudentInternalServerError struct {
}

GetClassesOfStudentInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetClassesOfStudentInternalServerError

func NewGetClassesOfStudentInternalServerError() *GetClassesOfStudentInternalServerError

NewGetClassesOfStudentInternalServerError creates a GetClassesOfStudentInternalServerError with default headers values

func (*GetClassesOfStudentInternalServerError) Code

Code gets the status code for the get classes of student internal server error response

func (*GetClassesOfStudentInternalServerError) Error

func (*GetClassesOfStudentInternalServerError) IsClientError

func (o *GetClassesOfStudentInternalServerError) IsClientError() bool

IsClientError returns true when this get classes of student internal server error response has a 4xx status code

func (*GetClassesOfStudentInternalServerError) IsCode

IsCode returns true when this get classes of student internal server error response a status code equal to that given

func (*GetClassesOfStudentInternalServerError) IsRedirect

IsRedirect returns true when this get classes of student internal server error response has a 3xx status code

func (*GetClassesOfStudentInternalServerError) IsServerError

func (o *GetClassesOfStudentInternalServerError) IsServerError() bool

IsServerError returns true when this get classes of student internal server error response has a 5xx status code

func (*GetClassesOfStudentInternalServerError) IsSuccess

IsSuccess returns true when this get classes of student internal server error response has a 2xx status code

func (*GetClassesOfStudentInternalServerError) String

type GetClassesOfStudentNotFound

type GetClassesOfStudentNotFound struct {
}

GetClassesOfStudentNotFound describes a response with status code 404, with default header values.

Student not found

func NewGetClassesOfStudentNotFound

func NewGetClassesOfStudentNotFound() *GetClassesOfStudentNotFound

NewGetClassesOfStudentNotFound creates a GetClassesOfStudentNotFound with default headers values

func (*GetClassesOfStudentNotFound) Code

func (o *GetClassesOfStudentNotFound) Code() int

Code gets the status code for the get classes of student not found response

func (*GetClassesOfStudentNotFound) Error

func (*GetClassesOfStudentNotFound) IsClientError

func (o *GetClassesOfStudentNotFound) IsClientError() bool

IsClientError returns true when this get classes of student not found response has a 4xx status code

func (*GetClassesOfStudentNotFound) IsCode

func (o *GetClassesOfStudentNotFound) IsCode(code int) bool

IsCode returns true when this get classes of student not found response a status code equal to that given

func (*GetClassesOfStudentNotFound) IsRedirect

func (o *GetClassesOfStudentNotFound) IsRedirect() bool

IsRedirect returns true when this get classes of student not found response has a 3xx status code

func (*GetClassesOfStudentNotFound) IsServerError

func (o *GetClassesOfStudentNotFound) IsServerError() bool

IsServerError returns true when this get classes of student not found response has a 5xx status code

func (*GetClassesOfStudentNotFound) IsSuccess

func (o *GetClassesOfStudentNotFound) IsSuccess() bool

IsSuccess returns true when this get classes of student not found response has a 2xx status code

func (*GetClassesOfStudentNotFound) String

func (o *GetClassesOfStudentNotFound) String() string

type GetClassesOfStudentOK

type GetClassesOfStudentOK struct {
	Payload []*models.Class
}

GetClassesOfStudentOK describes a response with status code 200, with default header values.

Student's Class as response

func NewGetClassesOfStudentOK

func NewGetClassesOfStudentOK() *GetClassesOfStudentOK

NewGetClassesOfStudentOK creates a GetClassesOfStudentOK with default headers values

func (*GetClassesOfStudentOK) Code

func (o *GetClassesOfStudentOK) Code() int

Code gets the status code for the get classes of student o k response

func (*GetClassesOfStudentOK) Error

func (o *GetClassesOfStudentOK) Error() string

func (*GetClassesOfStudentOK) GetPayload

func (o *GetClassesOfStudentOK) GetPayload() []*models.Class

func (*GetClassesOfStudentOK) IsClientError

func (o *GetClassesOfStudentOK) IsClientError() bool

IsClientError returns true when this get classes of student o k response has a 4xx status code

func (*GetClassesOfStudentOK) IsCode

func (o *GetClassesOfStudentOK) IsCode(code int) bool

IsCode returns true when this get classes of student o k response a status code equal to that given

func (*GetClassesOfStudentOK) IsRedirect

func (o *GetClassesOfStudentOK) IsRedirect() bool

IsRedirect returns true when this get classes of student o k response has a 3xx status code

func (*GetClassesOfStudentOK) IsServerError

func (o *GetClassesOfStudentOK) IsServerError() bool

IsServerError returns true when this get classes of student o k response has a 5xx status code

func (*GetClassesOfStudentOK) IsSuccess

func (o *GetClassesOfStudentOK) IsSuccess() bool

IsSuccess returns true when this get classes of student o k response has a 2xx status code

func (*GetClassesOfStudentOK) String

func (o *GetClassesOfStudentOK) String() string

type GetClassesOfStudentParams

type GetClassesOfStudentParams struct {

	/* ID.

	   The ID of the Student
	*/
	ID int64

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

GetClassesOfStudentParams contains all the parameters to send to the API endpoint

for the get classes of student operation.

Typically these are written to a http.Request.

func NewGetClassesOfStudentParams

func NewGetClassesOfStudentParams() *GetClassesOfStudentParams

NewGetClassesOfStudentParams creates a new GetClassesOfStudentParams 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 NewGetClassesOfStudentParamsWithContext

func NewGetClassesOfStudentParamsWithContext(ctx context.Context) *GetClassesOfStudentParams

NewGetClassesOfStudentParamsWithContext creates a new GetClassesOfStudentParams object with the ability to set a context for a request.

func NewGetClassesOfStudentParamsWithHTTPClient

func NewGetClassesOfStudentParamsWithHTTPClient(client *http.Client) *GetClassesOfStudentParams

NewGetClassesOfStudentParamsWithHTTPClient creates a new GetClassesOfStudentParams object with the ability to set a custom HTTPClient for a request.

func NewGetClassesOfStudentParamsWithTimeout

func NewGetClassesOfStudentParamsWithTimeout(timeout time.Duration) *GetClassesOfStudentParams

NewGetClassesOfStudentParamsWithTimeout creates a new GetClassesOfStudentParams object with the ability to set a timeout on a request.

func (*GetClassesOfStudentParams) SetContext

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

SetContext adds the context to the get classes of student params

func (*GetClassesOfStudentParams) SetDefaults

func (o *GetClassesOfStudentParams) SetDefaults()

SetDefaults hydrates default values in the get classes of student params (not the query body).

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

func (*GetClassesOfStudentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get classes of student params

func (*GetClassesOfStudentParams) SetID

func (o *GetClassesOfStudentParams) SetID(id int64)

SetID adds the id to the get classes of student params

func (*GetClassesOfStudentParams) SetTimeout

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

SetTimeout adds the timeout to the get classes of student params

func (*GetClassesOfStudentParams) WithContext

WithContext adds the context to the get classes of student params

func (*GetClassesOfStudentParams) WithDefaults

WithDefaults hydrates default values in the get classes of student params (not the query body).

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

func (*GetClassesOfStudentParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get classes of student params

func (*GetClassesOfStudentParams) WithID

WithID adds the id to the get classes of student params

func (*GetClassesOfStudentParams) WithTimeout

WithTimeout adds the timeout to the get classes of student params

func (*GetClassesOfStudentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetClassesOfStudentReader

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

GetClassesOfStudentReader is a Reader for the GetClassesOfStudent structure.

func (*GetClassesOfStudentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetClassesParams

type GetClassesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetClassesParams contains all the parameters to send to the API endpoint

for the get classes operation.

Typically these are written to a http.Request.

func NewGetClassesParams

func NewGetClassesParams() *GetClassesParams

NewGetClassesParams creates a new GetClassesParams 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 NewGetClassesParamsWithContext

func NewGetClassesParamsWithContext(ctx context.Context) *GetClassesParams

NewGetClassesParamsWithContext creates a new GetClassesParams object with the ability to set a context for a request.

func NewGetClassesParamsWithHTTPClient

func NewGetClassesParamsWithHTTPClient(client *http.Client) *GetClassesParams

NewGetClassesParamsWithHTTPClient creates a new GetClassesParams object with the ability to set a custom HTTPClient for a request.

func NewGetClassesParamsWithTimeout

func NewGetClassesParamsWithTimeout(timeout time.Duration) *GetClassesParams

NewGetClassesParamsWithTimeout creates a new GetClassesParams object with the ability to set a timeout on a request.

func (*GetClassesParams) SetContext

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

SetContext adds the context to the get classes params

func (*GetClassesParams) SetDefaults

func (o *GetClassesParams) SetDefaults()

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

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

func (*GetClassesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get classes params

func (*GetClassesParams) SetTimeout

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

SetTimeout adds the timeout to the get classes params

func (*GetClassesParams) WithContext

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

WithContext adds the context to the get classes params

func (*GetClassesParams) WithDefaults

func (o *GetClassesParams) WithDefaults() *GetClassesParams

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

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

func (*GetClassesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get classes params

func (*GetClassesParams) WithTimeout

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

WithTimeout adds the timeout to the get classes params

func (*GetClassesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetClassesReader

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

GetClassesReader is a Reader for the GetClasses structure.

func (*GetClassesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDefaultedStudentAccountsInternalServerError

type GetDefaultedStudentAccountsInternalServerError struct {
}

GetDefaultedStudentAccountsInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetDefaultedStudentAccountsInternalServerError

func NewGetDefaultedStudentAccountsInternalServerError() *GetDefaultedStudentAccountsInternalServerError

NewGetDefaultedStudentAccountsInternalServerError creates a GetDefaultedStudentAccountsInternalServerError with default headers values

func (*GetDefaultedStudentAccountsInternalServerError) Code

Code gets the status code for the get defaulted student accounts internal server error response

func (*GetDefaultedStudentAccountsInternalServerError) Error

func (*GetDefaultedStudentAccountsInternalServerError) IsClientError

IsClientError returns true when this get defaulted student accounts internal server error response has a 4xx status code

func (*GetDefaultedStudentAccountsInternalServerError) IsCode

IsCode returns true when this get defaulted student accounts internal server error response a status code equal to that given

func (*GetDefaultedStudentAccountsInternalServerError) IsRedirect

IsRedirect returns true when this get defaulted student accounts internal server error response has a 3xx status code

func (*GetDefaultedStudentAccountsInternalServerError) IsServerError

IsServerError returns true when this get defaulted student accounts internal server error response has a 5xx status code

func (*GetDefaultedStudentAccountsInternalServerError) IsSuccess

IsSuccess returns true when this get defaulted student accounts internal server error response has a 2xx status code

func (*GetDefaultedStudentAccountsInternalServerError) String

type GetDefaultedStudentAccountsNotFound

type GetDefaultedStudentAccountsNotFound struct {
}

GetDefaultedStudentAccountsNotFound describes a response with status code 404, with default header values.

Default Student Account not found

func NewGetDefaultedStudentAccountsNotFound

func NewGetDefaultedStudentAccountsNotFound() *GetDefaultedStudentAccountsNotFound

NewGetDefaultedStudentAccountsNotFound creates a GetDefaultedStudentAccountsNotFound with default headers values

func (*GetDefaultedStudentAccountsNotFound) Code

Code gets the status code for the get defaulted student accounts not found response

func (*GetDefaultedStudentAccountsNotFound) Error

func (*GetDefaultedStudentAccountsNotFound) IsClientError

func (o *GetDefaultedStudentAccountsNotFound) IsClientError() bool

IsClientError returns true when this get defaulted student accounts not found response has a 4xx status code

func (*GetDefaultedStudentAccountsNotFound) IsCode

IsCode returns true when this get defaulted student accounts not found response a status code equal to that given

func (*GetDefaultedStudentAccountsNotFound) IsRedirect

func (o *GetDefaultedStudentAccountsNotFound) IsRedirect() bool

IsRedirect returns true when this get defaulted student accounts not found response has a 3xx status code

func (*GetDefaultedStudentAccountsNotFound) IsServerError

func (o *GetDefaultedStudentAccountsNotFound) IsServerError() bool

IsServerError returns true when this get defaulted student accounts not found response has a 5xx status code

func (*GetDefaultedStudentAccountsNotFound) IsSuccess

IsSuccess returns true when this get defaulted student accounts not found response has a 2xx status code

func (*GetDefaultedStudentAccountsNotFound) String

type GetDefaultedStudentAccountsOK

type GetDefaultedStudentAccountsOK struct {
	Payload []*models.Account
}

GetDefaultedStudentAccountsOK describes a response with status code 200, with default header values.

Defaulted Student Accounts' response

func NewGetDefaultedStudentAccountsOK

func NewGetDefaultedStudentAccountsOK() *GetDefaultedStudentAccountsOK

NewGetDefaultedStudentAccountsOK creates a GetDefaultedStudentAccountsOK with default headers values

func (*GetDefaultedStudentAccountsOK) Code

Code gets the status code for the get defaulted student accounts o k response

func (*GetDefaultedStudentAccountsOK) Error

func (*GetDefaultedStudentAccountsOK) GetPayload

func (o *GetDefaultedStudentAccountsOK) GetPayload() []*models.Account

func (*GetDefaultedStudentAccountsOK) IsClientError

func (o *GetDefaultedStudentAccountsOK) IsClientError() bool

IsClientError returns true when this get defaulted student accounts o k response has a 4xx status code

func (*GetDefaultedStudentAccountsOK) IsCode

func (o *GetDefaultedStudentAccountsOK) IsCode(code int) bool

IsCode returns true when this get defaulted student accounts o k response a status code equal to that given

func (*GetDefaultedStudentAccountsOK) IsRedirect

func (o *GetDefaultedStudentAccountsOK) IsRedirect() bool

IsRedirect returns true when this get defaulted student accounts o k response has a 3xx status code

func (*GetDefaultedStudentAccountsOK) IsServerError

func (o *GetDefaultedStudentAccountsOK) IsServerError() bool

IsServerError returns true when this get defaulted student accounts o k response has a 5xx status code

func (*GetDefaultedStudentAccountsOK) IsSuccess

func (o *GetDefaultedStudentAccountsOK) IsSuccess() bool

IsSuccess returns true when this get defaulted student accounts o k response has a 2xx status code

func (*GetDefaultedStudentAccountsOK) String

type GetDefaultedStudentAccountsParams

type GetDefaultedStudentAccountsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetDefaultedStudentAccountsParams contains all the parameters to send to the API endpoint

for the get defaulted student accounts operation.

Typically these are written to a http.Request.

func NewGetDefaultedStudentAccountsParams

func NewGetDefaultedStudentAccountsParams() *GetDefaultedStudentAccountsParams

NewGetDefaultedStudentAccountsParams creates a new GetDefaultedStudentAccountsParams 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 NewGetDefaultedStudentAccountsParamsWithContext

func NewGetDefaultedStudentAccountsParamsWithContext(ctx context.Context) *GetDefaultedStudentAccountsParams

NewGetDefaultedStudentAccountsParamsWithContext creates a new GetDefaultedStudentAccountsParams object with the ability to set a context for a request.

func NewGetDefaultedStudentAccountsParamsWithHTTPClient

func NewGetDefaultedStudentAccountsParamsWithHTTPClient(client *http.Client) *GetDefaultedStudentAccountsParams

NewGetDefaultedStudentAccountsParamsWithHTTPClient creates a new GetDefaultedStudentAccountsParams object with the ability to set a custom HTTPClient for a request.

func NewGetDefaultedStudentAccountsParamsWithTimeout

func NewGetDefaultedStudentAccountsParamsWithTimeout(timeout time.Duration) *GetDefaultedStudentAccountsParams

NewGetDefaultedStudentAccountsParamsWithTimeout creates a new GetDefaultedStudentAccountsParams object with the ability to set a timeout on a request.

func (*GetDefaultedStudentAccountsParams) SetContext

SetContext adds the context to the get defaulted student accounts params

func (*GetDefaultedStudentAccountsParams) SetDefaults

func (o *GetDefaultedStudentAccountsParams) SetDefaults()

SetDefaults hydrates default values in the get defaulted student accounts params (not the query body).

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

func (*GetDefaultedStudentAccountsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get defaulted student accounts params

func (*GetDefaultedStudentAccountsParams) SetTimeout

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

SetTimeout adds the timeout to the get defaulted student accounts params

func (*GetDefaultedStudentAccountsParams) WithContext

WithContext adds the context to the get defaulted student accounts params

func (*GetDefaultedStudentAccountsParams) WithDefaults

WithDefaults hydrates default values in the get defaulted student accounts params (not the query body).

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

func (*GetDefaultedStudentAccountsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get defaulted student accounts params

func (*GetDefaultedStudentAccountsParams) WithTimeout

WithTimeout adds the timeout to the get defaulted student accounts params

func (*GetDefaultedStudentAccountsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDefaultedStudentAccountsReader

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

GetDefaultedStudentAccountsReader is a Reader for the GetDefaultedStudentAccounts structure.

func (*GetDefaultedStudentAccountsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetStudentAccountsInternalServerError

type GetStudentAccountsInternalServerError struct {
}

GetStudentAccountsInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetStudentAccountsInternalServerError

func NewGetStudentAccountsInternalServerError() *GetStudentAccountsInternalServerError

NewGetStudentAccountsInternalServerError creates a GetStudentAccountsInternalServerError with default headers values

func (*GetStudentAccountsInternalServerError) Code

Code gets the status code for the get student accounts internal server error response

func (*GetStudentAccountsInternalServerError) Error

func (*GetStudentAccountsInternalServerError) IsClientError

func (o *GetStudentAccountsInternalServerError) IsClientError() bool

IsClientError returns true when this get student accounts internal server error response has a 4xx status code

func (*GetStudentAccountsInternalServerError) IsCode

IsCode returns true when this get student accounts internal server error response a status code equal to that given

func (*GetStudentAccountsInternalServerError) IsRedirect

IsRedirect returns true when this get student accounts internal server error response has a 3xx status code

func (*GetStudentAccountsInternalServerError) IsServerError

func (o *GetStudentAccountsInternalServerError) IsServerError() bool

IsServerError returns true when this get student accounts internal server error response has a 5xx status code

func (*GetStudentAccountsInternalServerError) IsSuccess

IsSuccess returns true when this get student accounts internal server error response has a 2xx status code

func (*GetStudentAccountsInternalServerError) String

type GetStudentAccountsNotFound

type GetStudentAccountsNotFound struct {
}

GetStudentAccountsNotFound describes a response with status code 404, with default header values.

Student Account not found

func NewGetStudentAccountsNotFound

func NewGetStudentAccountsNotFound() *GetStudentAccountsNotFound

NewGetStudentAccountsNotFound creates a GetStudentAccountsNotFound with default headers values

func (*GetStudentAccountsNotFound) Code

func (o *GetStudentAccountsNotFound) Code() int

Code gets the status code for the get student accounts not found response

func (*GetStudentAccountsNotFound) Error

func (*GetStudentAccountsNotFound) IsClientError

func (o *GetStudentAccountsNotFound) IsClientError() bool

IsClientError returns true when this get student accounts not found response has a 4xx status code

func (*GetStudentAccountsNotFound) IsCode

func (o *GetStudentAccountsNotFound) IsCode(code int) bool

IsCode returns true when this get student accounts not found response a status code equal to that given

func (*GetStudentAccountsNotFound) IsRedirect

func (o *GetStudentAccountsNotFound) IsRedirect() bool

IsRedirect returns true when this get student accounts not found response has a 3xx status code

func (*GetStudentAccountsNotFound) IsServerError

func (o *GetStudentAccountsNotFound) IsServerError() bool

IsServerError returns true when this get student accounts not found response has a 5xx status code

func (*GetStudentAccountsNotFound) IsSuccess

func (o *GetStudentAccountsNotFound) IsSuccess() bool

IsSuccess returns true when this get student accounts not found response has a 2xx status code

func (*GetStudentAccountsNotFound) String

func (o *GetStudentAccountsNotFound) String() string

type GetStudentAccountsOK

type GetStudentAccountsOK struct {
	Payload []*models.Account
}

GetStudentAccountsOK describes a response with status code 200, with default header values.

Student Accounts' response

func NewGetStudentAccountsOK

func NewGetStudentAccountsOK() *GetStudentAccountsOK

NewGetStudentAccountsOK creates a GetStudentAccountsOK with default headers values

func (*GetStudentAccountsOK) Code

func (o *GetStudentAccountsOK) Code() int

Code gets the status code for the get student accounts o k response

func (*GetStudentAccountsOK) Error

func (o *GetStudentAccountsOK) Error() string

func (*GetStudentAccountsOK) GetPayload

func (o *GetStudentAccountsOK) GetPayload() []*models.Account

func (*GetStudentAccountsOK) IsClientError

func (o *GetStudentAccountsOK) IsClientError() bool

IsClientError returns true when this get student accounts o k response has a 4xx status code

func (*GetStudentAccountsOK) IsCode

func (o *GetStudentAccountsOK) IsCode(code int) bool

IsCode returns true when this get student accounts o k response a status code equal to that given

func (*GetStudentAccountsOK) IsRedirect

func (o *GetStudentAccountsOK) IsRedirect() bool

IsRedirect returns true when this get student accounts o k response has a 3xx status code

func (*GetStudentAccountsOK) IsServerError

func (o *GetStudentAccountsOK) IsServerError() bool

IsServerError returns true when this get student accounts o k response has a 5xx status code

func (*GetStudentAccountsOK) IsSuccess

func (o *GetStudentAccountsOK) IsSuccess() bool

IsSuccess returns true when this get student accounts o k response has a 2xx status code

func (*GetStudentAccountsOK) String

func (o *GetStudentAccountsOK) String() string

type GetStudentAccountsParams

type GetStudentAccountsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetStudentAccountsParams contains all the parameters to send to the API endpoint

for the get student accounts operation.

Typically these are written to a http.Request.

func NewGetStudentAccountsParams

func NewGetStudentAccountsParams() *GetStudentAccountsParams

NewGetStudentAccountsParams creates a new GetStudentAccountsParams 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 NewGetStudentAccountsParamsWithContext

func NewGetStudentAccountsParamsWithContext(ctx context.Context) *GetStudentAccountsParams

NewGetStudentAccountsParamsWithContext creates a new GetStudentAccountsParams object with the ability to set a context for a request.

func NewGetStudentAccountsParamsWithHTTPClient

func NewGetStudentAccountsParamsWithHTTPClient(client *http.Client) *GetStudentAccountsParams

NewGetStudentAccountsParamsWithHTTPClient creates a new GetStudentAccountsParams object with the ability to set a custom HTTPClient for a request.

func NewGetStudentAccountsParamsWithTimeout

func NewGetStudentAccountsParamsWithTimeout(timeout time.Duration) *GetStudentAccountsParams

NewGetStudentAccountsParamsWithTimeout creates a new GetStudentAccountsParams object with the ability to set a timeout on a request.

func (*GetStudentAccountsParams) SetContext

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

SetContext adds the context to the get student accounts params

func (*GetStudentAccountsParams) SetDefaults

func (o *GetStudentAccountsParams) SetDefaults()

SetDefaults hydrates default values in the get student accounts params (not the query body).

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

func (*GetStudentAccountsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get student accounts params

func (*GetStudentAccountsParams) SetTimeout

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

SetTimeout adds the timeout to the get student accounts params

func (*GetStudentAccountsParams) WithContext

WithContext adds the context to the get student accounts params

func (*GetStudentAccountsParams) WithDefaults

WithDefaults hydrates default values in the get student accounts params (not the query body).

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

func (*GetStudentAccountsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get student accounts params

func (*GetStudentAccountsParams) WithTimeout

WithTimeout adds the timeout to the get student accounts params

func (*GetStudentAccountsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetStudentAccountsReader

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

GetStudentAccountsReader is a Reader for the GetStudentAccounts structure.

func (*GetStudentAccountsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetStudentByIDInternalServerError

type GetStudentByIDInternalServerError struct {
}

GetStudentByIDInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetStudentByIDInternalServerError

func NewGetStudentByIDInternalServerError() *GetStudentByIDInternalServerError

NewGetStudentByIDInternalServerError creates a GetStudentByIDInternalServerError with default headers values

func (*GetStudentByIDInternalServerError) Code

Code gets the status code for the get student by Id internal server error response

func (*GetStudentByIDInternalServerError) Error

func (*GetStudentByIDInternalServerError) IsClientError

func (o *GetStudentByIDInternalServerError) IsClientError() bool

IsClientError returns true when this get student by Id internal server error response has a 4xx status code

func (*GetStudentByIDInternalServerError) IsCode

func (o *GetStudentByIDInternalServerError) IsCode(code int) bool

IsCode returns true when this get student by Id internal server error response a status code equal to that given

func (*GetStudentByIDInternalServerError) IsRedirect

func (o *GetStudentByIDInternalServerError) IsRedirect() bool

IsRedirect returns true when this get student by Id internal server error response has a 3xx status code

func (*GetStudentByIDInternalServerError) IsServerError

func (o *GetStudentByIDInternalServerError) IsServerError() bool

IsServerError returns true when this get student by Id internal server error response has a 5xx status code

func (*GetStudentByIDInternalServerError) IsSuccess

func (o *GetStudentByIDInternalServerError) IsSuccess() bool

IsSuccess returns true when this get student by Id internal server error response has a 2xx status code

func (*GetStudentByIDInternalServerError) String

type GetStudentByIDNotFound

type GetStudentByIDNotFound struct {
}

GetStudentByIDNotFound describes a response with status code 404, with default header values.

Student not found

func NewGetStudentByIDNotFound

func NewGetStudentByIDNotFound() *GetStudentByIDNotFound

NewGetStudentByIDNotFound creates a GetStudentByIDNotFound with default headers values

func (*GetStudentByIDNotFound) Code

func (o *GetStudentByIDNotFound) Code() int

Code gets the status code for the get student by Id not found response

func (*GetStudentByIDNotFound) Error

func (o *GetStudentByIDNotFound) Error() string

func (*GetStudentByIDNotFound) IsClientError

func (o *GetStudentByIDNotFound) IsClientError() bool

IsClientError returns true when this get student by Id not found response has a 4xx status code

func (*GetStudentByIDNotFound) IsCode

func (o *GetStudentByIDNotFound) IsCode(code int) bool

IsCode returns true when this get student by Id not found response a status code equal to that given

func (*GetStudentByIDNotFound) IsRedirect

func (o *GetStudentByIDNotFound) IsRedirect() bool

IsRedirect returns true when this get student by Id not found response has a 3xx status code

func (*GetStudentByIDNotFound) IsServerError

func (o *GetStudentByIDNotFound) IsServerError() bool

IsServerError returns true when this get student by Id not found response has a 5xx status code

func (*GetStudentByIDNotFound) IsSuccess

func (o *GetStudentByIDNotFound) IsSuccess() bool

IsSuccess returns true when this get student by Id not found response has a 2xx status code

func (*GetStudentByIDNotFound) String

func (o *GetStudentByIDNotFound) String() string

type GetStudentByIDOK

type GetStudentByIDOK struct {
	Payload *models.Student
}

GetStudentByIDOK describes a response with status code 200, with default header values.

Student response

func NewGetStudentByIDOK

func NewGetStudentByIDOK() *GetStudentByIDOK

NewGetStudentByIDOK creates a GetStudentByIDOK with default headers values

func (*GetStudentByIDOK) Code

func (o *GetStudentByIDOK) Code() int

Code gets the status code for the get student by Id o k response

func (*GetStudentByIDOK) Error

func (o *GetStudentByIDOK) Error() string

func (*GetStudentByIDOK) GetPayload

func (o *GetStudentByIDOK) GetPayload() *models.Student

func (*GetStudentByIDOK) IsClientError

func (o *GetStudentByIDOK) IsClientError() bool

IsClientError returns true when this get student by Id o k response has a 4xx status code

func (*GetStudentByIDOK) IsCode

func (o *GetStudentByIDOK) IsCode(code int) bool

IsCode returns true when this get student by Id o k response a status code equal to that given

func (*GetStudentByIDOK) IsRedirect

func (o *GetStudentByIDOK) IsRedirect() bool

IsRedirect returns true when this get student by Id o k response has a 3xx status code

func (*GetStudentByIDOK) IsServerError

func (o *GetStudentByIDOK) IsServerError() bool

IsServerError returns true when this get student by Id o k response has a 5xx status code

func (*GetStudentByIDOK) IsSuccess

func (o *GetStudentByIDOK) IsSuccess() bool

IsSuccess returns true when this get student by Id o k response has a 2xx status code

func (*GetStudentByIDOK) String

func (o *GetStudentByIDOK) String() string

type GetStudentByIDParams

type GetStudentByIDParams struct {

	/* ID.

	   ID of the Student
	*/
	ID int64

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

GetStudentByIDParams contains all the parameters to send to the API endpoint

for the get student by ID operation.

Typically these are written to a http.Request.

func NewGetStudentByIDParams

func NewGetStudentByIDParams() *GetStudentByIDParams

NewGetStudentByIDParams creates a new GetStudentByIDParams 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 NewGetStudentByIDParamsWithContext

func NewGetStudentByIDParamsWithContext(ctx context.Context) *GetStudentByIDParams

NewGetStudentByIDParamsWithContext creates a new GetStudentByIDParams object with the ability to set a context for a request.

func NewGetStudentByIDParamsWithHTTPClient

func NewGetStudentByIDParamsWithHTTPClient(client *http.Client) *GetStudentByIDParams

NewGetStudentByIDParamsWithHTTPClient creates a new GetStudentByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetStudentByIDParamsWithTimeout

func NewGetStudentByIDParamsWithTimeout(timeout time.Duration) *GetStudentByIDParams

NewGetStudentByIDParamsWithTimeout creates a new GetStudentByIDParams object with the ability to set a timeout on a request.

func (*GetStudentByIDParams) SetContext

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

SetContext adds the context to the get student by ID params

func (*GetStudentByIDParams) SetDefaults

func (o *GetStudentByIDParams) SetDefaults()

SetDefaults hydrates default values in the get student by ID params (not the query body).

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

func (*GetStudentByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get student by ID params

func (*GetStudentByIDParams) SetID

func (o *GetStudentByIDParams) SetID(id int64)

SetID adds the id to the get student by ID params

func (*GetStudentByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get student by ID params

func (*GetStudentByIDParams) WithContext

WithContext adds the context to the get student by ID params

func (*GetStudentByIDParams) WithDefaults

func (o *GetStudentByIDParams) WithDefaults() *GetStudentByIDParams

WithDefaults hydrates default values in the get student by ID params (not the query body).

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

func (*GetStudentByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get student by ID params

func (*GetStudentByIDParams) WithID

WithID adds the id to the get student by ID params

func (*GetStudentByIDParams) WithTimeout

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

WithTimeout adds the timeout to the get student by ID params

func (*GetStudentByIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetStudentByIDReader

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

GetStudentByIDReader is a Reader for the GetStudentByID structure.

func (*GetStudentByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetStudentsInternalServerError

type GetStudentsInternalServerError struct {
}

GetStudentsInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetStudentsInternalServerError

func NewGetStudentsInternalServerError() *GetStudentsInternalServerError

NewGetStudentsInternalServerError creates a GetStudentsInternalServerError with default headers values

func (*GetStudentsInternalServerError) Code

Code gets the status code for the get students internal server error response

func (*GetStudentsInternalServerError) Error

func (*GetStudentsInternalServerError) IsClientError

func (o *GetStudentsInternalServerError) IsClientError() bool

IsClientError returns true when this get students internal server error response has a 4xx status code

func (*GetStudentsInternalServerError) IsCode

func (o *GetStudentsInternalServerError) IsCode(code int) bool

IsCode returns true when this get students internal server error response a status code equal to that given

func (*GetStudentsInternalServerError) IsRedirect

func (o *GetStudentsInternalServerError) IsRedirect() bool

IsRedirect returns true when this get students internal server error response has a 3xx status code

func (*GetStudentsInternalServerError) IsServerError

func (o *GetStudentsInternalServerError) IsServerError() bool

IsServerError returns true when this get students internal server error response has a 5xx status code

func (*GetStudentsInternalServerError) IsSuccess

func (o *GetStudentsInternalServerError) IsSuccess() bool

IsSuccess returns true when this get students internal server error response has a 2xx status code

func (*GetStudentsInternalServerError) String

type GetStudentsNotFound

type GetStudentsNotFound struct {
}

GetStudentsNotFound describes a response with status code 404, with default header values.

Students not found

func NewGetStudentsNotFound

func NewGetStudentsNotFound() *GetStudentsNotFound

NewGetStudentsNotFound creates a GetStudentsNotFound with default headers values

func (*GetStudentsNotFound) Code

func (o *GetStudentsNotFound) Code() int

Code gets the status code for the get students not found response

func (*GetStudentsNotFound) Error

func (o *GetStudentsNotFound) Error() string

func (*GetStudentsNotFound) IsClientError

func (o *GetStudentsNotFound) IsClientError() bool

IsClientError returns true when this get students not found response has a 4xx status code

func (*GetStudentsNotFound) IsCode

func (o *GetStudentsNotFound) IsCode(code int) bool

IsCode returns true when this get students not found response a status code equal to that given

func (*GetStudentsNotFound) IsRedirect

func (o *GetStudentsNotFound) IsRedirect() bool

IsRedirect returns true when this get students not found response has a 3xx status code

func (*GetStudentsNotFound) IsServerError

func (o *GetStudentsNotFound) IsServerError() bool

IsServerError returns true when this get students not found response has a 5xx status code

func (*GetStudentsNotFound) IsSuccess

func (o *GetStudentsNotFound) IsSuccess() bool

IsSuccess returns true when this get students not found response has a 2xx status code

func (*GetStudentsNotFound) String

func (o *GetStudentsNotFound) String() string

type GetStudentsOK

type GetStudentsOK struct {
	Payload []*models.Student
}

GetStudentsOK describes a response with status code 200, with default header values.

Students' response

func NewGetStudentsOK

func NewGetStudentsOK() *GetStudentsOK

NewGetStudentsOK creates a GetStudentsOK with default headers values

func (*GetStudentsOK) Code

func (o *GetStudentsOK) Code() int

Code gets the status code for the get students o k response

func (*GetStudentsOK) Error

func (o *GetStudentsOK) Error() string

func (*GetStudentsOK) GetPayload

func (o *GetStudentsOK) GetPayload() []*models.Student

func (*GetStudentsOK) IsClientError

func (o *GetStudentsOK) IsClientError() bool

IsClientError returns true when this get students o k response has a 4xx status code

func (*GetStudentsOK) IsCode

func (o *GetStudentsOK) IsCode(code int) bool

IsCode returns true when this get students o k response a status code equal to that given

func (*GetStudentsOK) IsRedirect

func (o *GetStudentsOK) IsRedirect() bool

IsRedirect returns true when this get students o k response has a 3xx status code

func (*GetStudentsOK) IsServerError

func (o *GetStudentsOK) IsServerError() bool

IsServerError returns true when this get students o k response has a 5xx status code

func (*GetStudentsOK) IsSuccess

func (o *GetStudentsOK) IsSuccess() bool

IsSuccess returns true when this get students o k response has a 2xx status code

func (*GetStudentsOK) String

func (o *GetStudentsOK) String() string

type GetStudentsOfClassInternalServerError

type GetStudentsOfClassInternalServerError struct {
}

GetStudentsOfClassInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetStudentsOfClassInternalServerError

func NewGetStudentsOfClassInternalServerError() *GetStudentsOfClassInternalServerError

NewGetStudentsOfClassInternalServerError creates a GetStudentsOfClassInternalServerError with default headers values

func (*GetStudentsOfClassInternalServerError) Code

Code gets the status code for the get students of class internal server error response

func (*GetStudentsOfClassInternalServerError) Error

func (*GetStudentsOfClassInternalServerError) IsClientError

func (o *GetStudentsOfClassInternalServerError) IsClientError() bool

IsClientError returns true when this get students of class internal server error response has a 4xx status code

func (*GetStudentsOfClassInternalServerError) IsCode

IsCode returns true when this get students of class internal server error response a status code equal to that given

func (*GetStudentsOfClassInternalServerError) IsRedirect

IsRedirect returns true when this get students of class internal server error response has a 3xx status code

func (*GetStudentsOfClassInternalServerError) IsServerError

func (o *GetStudentsOfClassInternalServerError) IsServerError() bool

IsServerError returns true when this get students of class internal server error response has a 5xx status code

func (*GetStudentsOfClassInternalServerError) IsSuccess

IsSuccess returns true when this get students of class internal server error response has a 2xx status code

func (*GetStudentsOfClassInternalServerError) String

type GetStudentsOfClassNotFound

type GetStudentsOfClassNotFound struct {
}

GetStudentsOfClassNotFound describes a response with status code 404, with default header values.

Class not found

func NewGetStudentsOfClassNotFound

func NewGetStudentsOfClassNotFound() *GetStudentsOfClassNotFound

NewGetStudentsOfClassNotFound creates a GetStudentsOfClassNotFound with default headers values

func (*GetStudentsOfClassNotFound) Code

func (o *GetStudentsOfClassNotFound) Code() int

Code gets the status code for the get students of class not found response

func (*GetStudentsOfClassNotFound) Error

func (*GetStudentsOfClassNotFound) IsClientError

func (o *GetStudentsOfClassNotFound) IsClientError() bool

IsClientError returns true when this get students of class not found response has a 4xx status code

func (*GetStudentsOfClassNotFound) IsCode

func (o *GetStudentsOfClassNotFound) IsCode(code int) bool

IsCode returns true when this get students of class not found response a status code equal to that given

func (*GetStudentsOfClassNotFound) IsRedirect

func (o *GetStudentsOfClassNotFound) IsRedirect() bool

IsRedirect returns true when this get students of class not found response has a 3xx status code

func (*GetStudentsOfClassNotFound) IsServerError

func (o *GetStudentsOfClassNotFound) IsServerError() bool

IsServerError returns true when this get students of class not found response has a 5xx status code

func (*GetStudentsOfClassNotFound) IsSuccess

func (o *GetStudentsOfClassNotFound) IsSuccess() bool

IsSuccess returns true when this get students of class not found response has a 2xx status code

func (*GetStudentsOfClassNotFound) String

func (o *GetStudentsOfClassNotFound) String() string

type GetStudentsOfClassOK

type GetStudentsOfClassOK struct {
	Payload []*models.Student
}

GetStudentsOfClassOK describes a response with status code 200, with default header values.

Class' Students as response

func NewGetStudentsOfClassOK

func NewGetStudentsOfClassOK() *GetStudentsOfClassOK

NewGetStudentsOfClassOK creates a GetStudentsOfClassOK with default headers values

func (*GetStudentsOfClassOK) Code

func (o *GetStudentsOfClassOK) Code() int

Code gets the status code for the get students of class o k response

func (*GetStudentsOfClassOK) Error

func (o *GetStudentsOfClassOK) Error() string

func (*GetStudentsOfClassOK) GetPayload

func (o *GetStudentsOfClassOK) GetPayload() []*models.Student

func (*GetStudentsOfClassOK) IsClientError

func (o *GetStudentsOfClassOK) IsClientError() bool

IsClientError returns true when this get students of class o k response has a 4xx status code

func (*GetStudentsOfClassOK) IsCode

func (o *GetStudentsOfClassOK) IsCode(code int) bool

IsCode returns true when this get students of class o k response a status code equal to that given

func (*GetStudentsOfClassOK) IsRedirect

func (o *GetStudentsOfClassOK) IsRedirect() bool

IsRedirect returns true when this get students of class o k response has a 3xx status code

func (*GetStudentsOfClassOK) IsServerError

func (o *GetStudentsOfClassOK) IsServerError() bool

IsServerError returns true when this get students of class o k response has a 5xx status code

func (*GetStudentsOfClassOK) IsSuccess

func (o *GetStudentsOfClassOK) IsSuccess() bool

IsSuccess returns true when this get students of class o k response has a 2xx status code

func (*GetStudentsOfClassOK) String

func (o *GetStudentsOfClassOK) String() string

type GetStudentsOfClassParams

type GetStudentsOfClassParams struct {

	/* ID.

	   The ID of the Class
	*/
	ID int64

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

GetStudentsOfClassParams contains all the parameters to send to the API endpoint

for the get students of class operation.

Typically these are written to a http.Request.

func NewGetStudentsOfClassParams

func NewGetStudentsOfClassParams() *GetStudentsOfClassParams

NewGetStudentsOfClassParams creates a new GetStudentsOfClassParams 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 NewGetStudentsOfClassParamsWithContext

func NewGetStudentsOfClassParamsWithContext(ctx context.Context) *GetStudentsOfClassParams

NewGetStudentsOfClassParamsWithContext creates a new GetStudentsOfClassParams object with the ability to set a context for a request.

func NewGetStudentsOfClassParamsWithHTTPClient

func NewGetStudentsOfClassParamsWithHTTPClient(client *http.Client) *GetStudentsOfClassParams

NewGetStudentsOfClassParamsWithHTTPClient creates a new GetStudentsOfClassParams object with the ability to set a custom HTTPClient for a request.

func NewGetStudentsOfClassParamsWithTimeout

func NewGetStudentsOfClassParamsWithTimeout(timeout time.Duration) *GetStudentsOfClassParams

NewGetStudentsOfClassParamsWithTimeout creates a new GetStudentsOfClassParams object with the ability to set a timeout on a request.

func (*GetStudentsOfClassParams) SetContext

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

SetContext adds the context to the get students of class params

func (*GetStudentsOfClassParams) SetDefaults

func (o *GetStudentsOfClassParams) SetDefaults()

SetDefaults hydrates default values in the get students of class params (not the query body).

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

func (*GetStudentsOfClassParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get students of class params

func (*GetStudentsOfClassParams) SetID

func (o *GetStudentsOfClassParams) SetID(id int64)

SetID adds the id to the get students of class params

func (*GetStudentsOfClassParams) SetTimeout

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

SetTimeout adds the timeout to the get students of class params

func (*GetStudentsOfClassParams) WithContext

WithContext adds the context to the get students of class params

func (*GetStudentsOfClassParams) WithDefaults

WithDefaults hydrates default values in the get students of class params (not the query body).

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

func (*GetStudentsOfClassParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get students of class params

func (*GetStudentsOfClassParams) WithID

WithID adds the id to the get students of class params

func (*GetStudentsOfClassParams) WithTimeout

WithTimeout adds the timeout to the get students of class params

func (*GetStudentsOfClassParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetStudentsOfClassReader

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

GetStudentsOfClassReader is a Reader for the GetStudentsOfClass structure.

func (*GetStudentsOfClassReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetStudentsOfSubjectInternalServerError

type GetStudentsOfSubjectInternalServerError struct {
}

GetStudentsOfSubjectInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetStudentsOfSubjectInternalServerError

func NewGetStudentsOfSubjectInternalServerError() *GetStudentsOfSubjectInternalServerError

NewGetStudentsOfSubjectInternalServerError creates a GetStudentsOfSubjectInternalServerError with default headers values

func (*GetStudentsOfSubjectInternalServerError) Code

Code gets the status code for the get students of subject internal server error response

func (*GetStudentsOfSubjectInternalServerError) Error

func (*GetStudentsOfSubjectInternalServerError) IsClientError

func (o *GetStudentsOfSubjectInternalServerError) IsClientError() bool

IsClientError returns true when this get students of subject internal server error response has a 4xx status code

func (*GetStudentsOfSubjectInternalServerError) IsCode

IsCode returns true when this get students of subject internal server error response a status code equal to that given

func (*GetStudentsOfSubjectInternalServerError) IsRedirect

IsRedirect returns true when this get students of subject internal server error response has a 3xx status code

func (*GetStudentsOfSubjectInternalServerError) IsServerError

func (o *GetStudentsOfSubjectInternalServerError) IsServerError() bool

IsServerError returns true when this get students of subject internal server error response has a 5xx status code

func (*GetStudentsOfSubjectInternalServerError) IsSuccess

IsSuccess returns true when this get students of subject internal server error response has a 2xx status code

func (*GetStudentsOfSubjectInternalServerError) String

type GetStudentsOfSubjectNotFound

type GetStudentsOfSubjectNotFound struct {
}

GetStudentsOfSubjectNotFound describes a response with status code 404, with default header values.

Subject not found

func NewGetStudentsOfSubjectNotFound

func NewGetStudentsOfSubjectNotFound() *GetStudentsOfSubjectNotFound

NewGetStudentsOfSubjectNotFound creates a GetStudentsOfSubjectNotFound with default headers values

func (*GetStudentsOfSubjectNotFound) Code

Code gets the status code for the get students of subject not found response

func (*GetStudentsOfSubjectNotFound) Error

func (*GetStudentsOfSubjectNotFound) IsClientError

func (o *GetStudentsOfSubjectNotFound) IsClientError() bool

IsClientError returns true when this get students of subject not found response has a 4xx status code

func (*GetStudentsOfSubjectNotFound) IsCode

func (o *GetStudentsOfSubjectNotFound) IsCode(code int) bool

IsCode returns true when this get students of subject not found response a status code equal to that given

func (*GetStudentsOfSubjectNotFound) IsRedirect

func (o *GetStudentsOfSubjectNotFound) IsRedirect() bool

IsRedirect returns true when this get students of subject not found response has a 3xx status code

func (*GetStudentsOfSubjectNotFound) IsServerError

func (o *GetStudentsOfSubjectNotFound) IsServerError() bool

IsServerError returns true when this get students of subject not found response has a 5xx status code

func (*GetStudentsOfSubjectNotFound) IsSuccess

func (o *GetStudentsOfSubjectNotFound) IsSuccess() bool

IsSuccess returns true when this get students of subject not found response has a 2xx status code

func (*GetStudentsOfSubjectNotFound) String

type GetStudentsOfSubjectOK

type GetStudentsOfSubjectOK struct {
	Payload []*models.Student
}

GetStudentsOfSubjectOK describes a response with status code 200, with default header values.

Subject's Students response

func NewGetStudentsOfSubjectOK

func NewGetStudentsOfSubjectOK() *GetStudentsOfSubjectOK

NewGetStudentsOfSubjectOK creates a GetStudentsOfSubjectOK with default headers values

func (*GetStudentsOfSubjectOK) Code

func (o *GetStudentsOfSubjectOK) Code() int

Code gets the status code for the get students of subject o k response

func (*GetStudentsOfSubjectOK) Error

func (o *GetStudentsOfSubjectOK) Error() string

func (*GetStudentsOfSubjectOK) GetPayload

func (o *GetStudentsOfSubjectOK) GetPayload() []*models.Student

func (*GetStudentsOfSubjectOK) IsClientError

func (o *GetStudentsOfSubjectOK) IsClientError() bool

IsClientError returns true when this get students of subject o k response has a 4xx status code

func (*GetStudentsOfSubjectOK) IsCode

func (o *GetStudentsOfSubjectOK) IsCode(code int) bool

IsCode returns true when this get students of subject o k response a status code equal to that given

func (*GetStudentsOfSubjectOK) IsRedirect

func (o *GetStudentsOfSubjectOK) IsRedirect() bool

IsRedirect returns true when this get students of subject o k response has a 3xx status code

func (*GetStudentsOfSubjectOK) IsServerError

func (o *GetStudentsOfSubjectOK) IsServerError() bool

IsServerError returns true when this get students of subject o k response has a 5xx status code

func (*GetStudentsOfSubjectOK) IsSuccess

func (o *GetStudentsOfSubjectOK) IsSuccess() bool

IsSuccess returns true when this get students of subject o k response has a 2xx status code

func (*GetStudentsOfSubjectOK) String

func (o *GetStudentsOfSubjectOK) String() string

type GetStudentsOfSubjectParams

type GetStudentsOfSubjectParams struct {

	/* ID.

	   The ID of the Subject
	*/
	ID int64

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

GetStudentsOfSubjectParams contains all the parameters to send to the API endpoint

for the get students of subject operation.

Typically these are written to a http.Request.

func NewGetStudentsOfSubjectParams

func NewGetStudentsOfSubjectParams() *GetStudentsOfSubjectParams

NewGetStudentsOfSubjectParams creates a new GetStudentsOfSubjectParams 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 NewGetStudentsOfSubjectParamsWithContext

func NewGetStudentsOfSubjectParamsWithContext(ctx context.Context) *GetStudentsOfSubjectParams

NewGetStudentsOfSubjectParamsWithContext creates a new GetStudentsOfSubjectParams object with the ability to set a context for a request.

func NewGetStudentsOfSubjectParamsWithHTTPClient

func NewGetStudentsOfSubjectParamsWithHTTPClient(client *http.Client) *GetStudentsOfSubjectParams

NewGetStudentsOfSubjectParamsWithHTTPClient creates a new GetStudentsOfSubjectParams object with the ability to set a custom HTTPClient for a request.

func NewGetStudentsOfSubjectParamsWithTimeout

func NewGetStudentsOfSubjectParamsWithTimeout(timeout time.Duration) *GetStudentsOfSubjectParams

NewGetStudentsOfSubjectParamsWithTimeout creates a new GetStudentsOfSubjectParams object with the ability to set a timeout on a request.

func (*GetStudentsOfSubjectParams) SetContext

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

SetContext adds the context to the get students of subject params

func (*GetStudentsOfSubjectParams) SetDefaults

func (o *GetStudentsOfSubjectParams) SetDefaults()

SetDefaults hydrates default values in the get students of subject params (not the query body).

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

func (*GetStudentsOfSubjectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get students of subject params

func (*GetStudentsOfSubjectParams) SetID

func (o *GetStudentsOfSubjectParams) SetID(id int64)

SetID adds the id to the get students of subject params

func (*GetStudentsOfSubjectParams) SetTimeout

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

SetTimeout adds the timeout to the get students of subject params

func (*GetStudentsOfSubjectParams) WithContext

WithContext adds the context to the get students of subject params

func (*GetStudentsOfSubjectParams) WithDefaults

WithDefaults hydrates default values in the get students of subject params (not the query body).

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

func (*GetStudentsOfSubjectParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get students of subject params

func (*GetStudentsOfSubjectParams) WithID

WithID adds the id to the get students of subject params

func (*GetStudentsOfSubjectParams) WithTimeout

WithTimeout adds the timeout to the get students of subject params

func (*GetStudentsOfSubjectParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetStudentsOfSubjectReader

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

GetStudentsOfSubjectReader is a Reader for the GetStudentsOfSubject structure.

func (*GetStudentsOfSubjectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetStudentsOfTeacherInternalServerError

type GetStudentsOfTeacherInternalServerError struct {
}

GetStudentsOfTeacherInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetStudentsOfTeacherInternalServerError

func NewGetStudentsOfTeacherInternalServerError() *GetStudentsOfTeacherInternalServerError

NewGetStudentsOfTeacherInternalServerError creates a GetStudentsOfTeacherInternalServerError with default headers values

func (*GetStudentsOfTeacherInternalServerError) Code

Code gets the status code for the get students of teacher internal server error response

func (*GetStudentsOfTeacherInternalServerError) Error

func (*GetStudentsOfTeacherInternalServerError) IsClientError

func (o *GetStudentsOfTeacherInternalServerError) IsClientError() bool

IsClientError returns true when this get students of teacher internal server error response has a 4xx status code

func (*GetStudentsOfTeacherInternalServerError) IsCode

IsCode returns true when this get students of teacher internal server error response a status code equal to that given

func (*GetStudentsOfTeacherInternalServerError) IsRedirect

IsRedirect returns true when this get students of teacher internal server error response has a 3xx status code

func (*GetStudentsOfTeacherInternalServerError) IsServerError

func (o *GetStudentsOfTeacherInternalServerError) IsServerError() bool

IsServerError returns true when this get students of teacher internal server error response has a 5xx status code

func (*GetStudentsOfTeacherInternalServerError) IsSuccess

IsSuccess returns true when this get students of teacher internal server error response has a 2xx status code

func (*GetStudentsOfTeacherInternalServerError) String

type GetStudentsOfTeacherNotFound

type GetStudentsOfTeacherNotFound struct {
}

GetStudentsOfTeacherNotFound describes a response with status code 404, with default header values.

Teacher not found

func NewGetStudentsOfTeacherNotFound

func NewGetStudentsOfTeacherNotFound() *GetStudentsOfTeacherNotFound

NewGetStudentsOfTeacherNotFound creates a GetStudentsOfTeacherNotFound with default headers values

func (*GetStudentsOfTeacherNotFound) Code

Code gets the status code for the get students of teacher not found response

func (*GetStudentsOfTeacherNotFound) Error

func (*GetStudentsOfTeacherNotFound) IsClientError

func (o *GetStudentsOfTeacherNotFound) IsClientError() bool

IsClientError returns true when this get students of teacher not found response has a 4xx status code

func (*GetStudentsOfTeacherNotFound) IsCode

func (o *GetStudentsOfTeacherNotFound) IsCode(code int) bool

IsCode returns true when this get students of teacher not found response a status code equal to that given

func (*GetStudentsOfTeacherNotFound) IsRedirect

func (o *GetStudentsOfTeacherNotFound) IsRedirect() bool

IsRedirect returns true when this get students of teacher not found response has a 3xx status code

func (*GetStudentsOfTeacherNotFound) IsServerError

func (o *GetStudentsOfTeacherNotFound) IsServerError() bool

IsServerError returns true when this get students of teacher not found response has a 5xx status code

func (*GetStudentsOfTeacherNotFound) IsSuccess

func (o *GetStudentsOfTeacherNotFound) IsSuccess() bool

IsSuccess returns true when this get students of teacher not found response has a 2xx status code

func (*GetStudentsOfTeacherNotFound) String

type GetStudentsOfTeacherOK

type GetStudentsOfTeacherOK struct {
	Payload []*models.Student
}

GetStudentsOfTeacherOK describes a response with status code 200, with default header values.

Teacher's Students response

func NewGetStudentsOfTeacherOK

func NewGetStudentsOfTeacherOK() *GetStudentsOfTeacherOK

NewGetStudentsOfTeacherOK creates a GetStudentsOfTeacherOK with default headers values

func (*GetStudentsOfTeacherOK) Code

func (o *GetStudentsOfTeacherOK) Code() int

Code gets the status code for the get students of teacher o k response

func (*GetStudentsOfTeacherOK) Error

func (o *GetStudentsOfTeacherOK) Error() string

func (*GetStudentsOfTeacherOK) GetPayload

func (o *GetStudentsOfTeacherOK) GetPayload() []*models.Student

func (*GetStudentsOfTeacherOK) IsClientError

func (o *GetStudentsOfTeacherOK) IsClientError() bool

IsClientError returns true when this get students of teacher o k response has a 4xx status code

func (*GetStudentsOfTeacherOK) IsCode

func (o *GetStudentsOfTeacherOK) IsCode(code int) bool

IsCode returns true when this get students of teacher o k response a status code equal to that given

func (*GetStudentsOfTeacherOK) IsRedirect

func (o *GetStudentsOfTeacherOK) IsRedirect() bool

IsRedirect returns true when this get students of teacher o k response has a 3xx status code

func (*GetStudentsOfTeacherOK) IsServerError

func (o *GetStudentsOfTeacherOK) IsServerError() bool

IsServerError returns true when this get students of teacher o k response has a 5xx status code

func (*GetStudentsOfTeacherOK) IsSuccess

func (o *GetStudentsOfTeacherOK) IsSuccess() bool

IsSuccess returns true when this get students of teacher o k response has a 2xx status code

func (*GetStudentsOfTeacherOK) String

func (o *GetStudentsOfTeacherOK) String() string

type GetStudentsOfTeacherParams

type GetStudentsOfTeacherParams struct {

	/* ID.

	   The ID of the Teacher
	*/
	ID int64

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

GetStudentsOfTeacherParams contains all the parameters to send to the API endpoint

for the get students of teacher operation.

Typically these are written to a http.Request.

func NewGetStudentsOfTeacherParams

func NewGetStudentsOfTeacherParams() *GetStudentsOfTeacherParams

NewGetStudentsOfTeacherParams creates a new GetStudentsOfTeacherParams 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 NewGetStudentsOfTeacherParamsWithContext

func NewGetStudentsOfTeacherParamsWithContext(ctx context.Context) *GetStudentsOfTeacherParams

NewGetStudentsOfTeacherParamsWithContext creates a new GetStudentsOfTeacherParams object with the ability to set a context for a request.

func NewGetStudentsOfTeacherParamsWithHTTPClient

func NewGetStudentsOfTeacherParamsWithHTTPClient(client *http.Client) *GetStudentsOfTeacherParams

NewGetStudentsOfTeacherParamsWithHTTPClient creates a new GetStudentsOfTeacherParams object with the ability to set a custom HTTPClient for a request.

func NewGetStudentsOfTeacherParamsWithTimeout

func NewGetStudentsOfTeacherParamsWithTimeout(timeout time.Duration) *GetStudentsOfTeacherParams

NewGetStudentsOfTeacherParamsWithTimeout creates a new GetStudentsOfTeacherParams object with the ability to set a timeout on a request.

func (*GetStudentsOfTeacherParams) SetContext

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

SetContext adds the context to the get students of teacher params

func (*GetStudentsOfTeacherParams) SetDefaults

func (o *GetStudentsOfTeacherParams) SetDefaults()

SetDefaults hydrates default values in the get students of teacher params (not the query body).

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

func (*GetStudentsOfTeacherParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get students of teacher params

func (*GetStudentsOfTeacherParams) SetID

func (o *GetStudentsOfTeacherParams) SetID(id int64)

SetID adds the id to the get students of teacher params

func (*GetStudentsOfTeacherParams) SetTimeout

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

SetTimeout adds the timeout to the get students of teacher params

func (*GetStudentsOfTeacherParams) WithContext

WithContext adds the context to the get students of teacher params

func (*GetStudentsOfTeacherParams) WithDefaults

WithDefaults hydrates default values in the get students of teacher params (not the query body).

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

func (*GetStudentsOfTeacherParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get students of teacher params

func (*GetStudentsOfTeacherParams) WithID

WithID adds the id to the get students of teacher params

func (*GetStudentsOfTeacherParams) WithTimeout

WithTimeout adds the timeout to the get students of teacher params

func (*GetStudentsOfTeacherParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetStudentsOfTeacherReader

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

GetStudentsOfTeacherReader is a Reader for the GetStudentsOfTeacher structure.

func (*GetStudentsOfTeacherReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetStudentsParams

type GetStudentsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetStudentsParams contains all the parameters to send to the API endpoint

for the get students operation.

Typically these are written to a http.Request.

func NewGetStudentsParams

func NewGetStudentsParams() *GetStudentsParams

NewGetStudentsParams creates a new GetStudentsParams 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 NewGetStudentsParamsWithContext

func NewGetStudentsParamsWithContext(ctx context.Context) *GetStudentsParams

NewGetStudentsParamsWithContext creates a new GetStudentsParams object with the ability to set a context for a request.

func NewGetStudentsParamsWithHTTPClient

func NewGetStudentsParamsWithHTTPClient(client *http.Client) *GetStudentsParams

NewGetStudentsParamsWithHTTPClient creates a new GetStudentsParams object with the ability to set a custom HTTPClient for a request.

func NewGetStudentsParamsWithTimeout

func NewGetStudentsParamsWithTimeout(timeout time.Duration) *GetStudentsParams

NewGetStudentsParamsWithTimeout creates a new GetStudentsParams object with the ability to set a timeout on a request.

func (*GetStudentsParams) SetContext

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

SetContext adds the context to the get students params

func (*GetStudentsParams) SetDefaults

func (o *GetStudentsParams) SetDefaults()

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

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

func (*GetStudentsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get students params

func (*GetStudentsParams) SetTimeout

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

SetTimeout adds the timeout to the get students params

func (*GetStudentsParams) WithContext

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

WithContext adds the context to the get students params

func (*GetStudentsParams) WithDefaults

func (o *GetStudentsParams) WithDefaults() *GetStudentsParams

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

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

func (*GetStudentsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get students params

func (*GetStudentsParams) WithTimeout

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

WithTimeout adds the timeout to the get students params

func (*GetStudentsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetStudentsReader

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

GetStudentsReader is a Reader for the GetStudents structure.

func (*GetStudentsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSubjectByIDInternalServerError

type GetSubjectByIDInternalServerError struct {
}

GetSubjectByIDInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetSubjectByIDInternalServerError

func NewGetSubjectByIDInternalServerError() *GetSubjectByIDInternalServerError

NewGetSubjectByIDInternalServerError creates a GetSubjectByIDInternalServerError with default headers values

func (*GetSubjectByIDInternalServerError) Code

Code gets the status code for the get subject by Id internal server error response

func (*GetSubjectByIDInternalServerError) Error

func (*GetSubjectByIDInternalServerError) IsClientError

func (o *GetSubjectByIDInternalServerError) IsClientError() bool

IsClientError returns true when this get subject by Id internal server error response has a 4xx status code

func (*GetSubjectByIDInternalServerError) IsCode

func (o *GetSubjectByIDInternalServerError) IsCode(code int) bool

IsCode returns true when this get subject by Id internal server error response a status code equal to that given

func (*GetSubjectByIDInternalServerError) IsRedirect

func (o *GetSubjectByIDInternalServerError) IsRedirect() bool

IsRedirect returns true when this get subject by Id internal server error response has a 3xx status code

func (*GetSubjectByIDInternalServerError) IsServerError

func (o *GetSubjectByIDInternalServerError) IsServerError() bool

IsServerError returns true when this get subject by Id internal server error response has a 5xx status code

func (*GetSubjectByIDInternalServerError) IsSuccess

func (o *GetSubjectByIDInternalServerError) IsSuccess() bool

IsSuccess returns true when this get subject by Id internal server error response has a 2xx status code

func (*GetSubjectByIDInternalServerError) String

type GetSubjectByIDNotFound

type GetSubjectByIDNotFound struct {
}

GetSubjectByIDNotFound describes a response with status code 404, with default header values.

Subject not found

func NewGetSubjectByIDNotFound

func NewGetSubjectByIDNotFound() *GetSubjectByIDNotFound

NewGetSubjectByIDNotFound creates a GetSubjectByIDNotFound with default headers values

func (*GetSubjectByIDNotFound) Code

func (o *GetSubjectByIDNotFound) Code() int

Code gets the status code for the get subject by Id not found response

func (*GetSubjectByIDNotFound) Error

func (o *GetSubjectByIDNotFound) Error() string

func (*GetSubjectByIDNotFound) IsClientError

func (o *GetSubjectByIDNotFound) IsClientError() bool

IsClientError returns true when this get subject by Id not found response has a 4xx status code

func (*GetSubjectByIDNotFound) IsCode

func (o *GetSubjectByIDNotFound) IsCode(code int) bool

IsCode returns true when this get subject by Id not found response a status code equal to that given

func (*GetSubjectByIDNotFound) IsRedirect

func (o *GetSubjectByIDNotFound) IsRedirect() bool

IsRedirect returns true when this get subject by Id not found response has a 3xx status code

func (*GetSubjectByIDNotFound) IsServerError

func (o *GetSubjectByIDNotFound) IsServerError() bool

IsServerError returns true when this get subject by Id not found response has a 5xx status code

func (*GetSubjectByIDNotFound) IsSuccess

func (o *GetSubjectByIDNotFound) IsSuccess() bool

IsSuccess returns true when this get subject by Id not found response has a 2xx status code

func (*GetSubjectByIDNotFound) String

func (o *GetSubjectByIDNotFound) String() string

type GetSubjectByIDOK

type GetSubjectByIDOK struct {
	Payload *models.Subject
}

GetSubjectByIDOK describes a response with status code 200, with default header values.

Subject response

func NewGetSubjectByIDOK

func NewGetSubjectByIDOK() *GetSubjectByIDOK

NewGetSubjectByIDOK creates a GetSubjectByIDOK with default headers values

func (*GetSubjectByIDOK) Code

func (o *GetSubjectByIDOK) Code() int

Code gets the status code for the get subject by Id o k response

func (*GetSubjectByIDOK) Error

func (o *GetSubjectByIDOK) Error() string

func (*GetSubjectByIDOK) GetPayload

func (o *GetSubjectByIDOK) GetPayload() *models.Subject

func (*GetSubjectByIDOK) IsClientError

func (o *GetSubjectByIDOK) IsClientError() bool

IsClientError returns true when this get subject by Id o k response has a 4xx status code

func (*GetSubjectByIDOK) IsCode

func (o *GetSubjectByIDOK) IsCode(code int) bool

IsCode returns true when this get subject by Id o k response a status code equal to that given

func (*GetSubjectByIDOK) IsRedirect

func (o *GetSubjectByIDOK) IsRedirect() bool

IsRedirect returns true when this get subject by Id o k response has a 3xx status code

func (*GetSubjectByIDOK) IsServerError

func (o *GetSubjectByIDOK) IsServerError() bool

IsServerError returns true when this get subject by Id o k response has a 5xx status code

func (*GetSubjectByIDOK) IsSuccess

func (o *GetSubjectByIDOK) IsSuccess() bool

IsSuccess returns true when this get subject by Id o k response has a 2xx status code

func (*GetSubjectByIDOK) String

func (o *GetSubjectByIDOK) String() string

type GetSubjectByIDParams

type GetSubjectByIDParams struct {

	/* ID.

	   ID of the Subject
	*/
	ID int64

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

GetSubjectByIDParams contains all the parameters to send to the API endpoint

for the get subject by ID operation.

Typically these are written to a http.Request.

func NewGetSubjectByIDParams

func NewGetSubjectByIDParams() *GetSubjectByIDParams

NewGetSubjectByIDParams creates a new GetSubjectByIDParams 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 NewGetSubjectByIDParamsWithContext

func NewGetSubjectByIDParamsWithContext(ctx context.Context) *GetSubjectByIDParams

NewGetSubjectByIDParamsWithContext creates a new GetSubjectByIDParams object with the ability to set a context for a request.

func NewGetSubjectByIDParamsWithHTTPClient

func NewGetSubjectByIDParamsWithHTTPClient(client *http.Client) *GetSubjectByIDParams

NewGetSubjectByIDParamsWithHTTPClient creates a new GetSubjectByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetSubjectByIDParamsWithTimeout

func NewGetSubjectByIDParamsWithTimeout(timeout time.Duration) *GetSubjectByIDParams

NewGetSubjectByIDParamsWithTimeout creates a new GetSubjectByIDParams object with the ability to set a timeout on a request.

func (*GetSubjectByIDParams) SetContext

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

SetContext adds the context to the get subject by ID params

func (*GetSubjectByIDParams) SetDefaults

func (o *GetSubjectByIDParams) SetDefaults()

SetDefaults hydrates default values in the get subject by ID params (not the query body).

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

func (*GetSubjectByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get subject by ID params

func (*GetSubjectByIDParams) SetID

func (o *GetSubjectByIDParams) SetID(id int64)

SetID adds the id to the get subject by ID params

func (*GetSubjectByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get subject by ID params

func (*GetSubjectByIDParams) WithContext

WithContext adds the context to the get subject by ID params

func (*GetSubjectByIDParams) WithDefaults

func (o *GetSubjectByIDParams) WithDefaults() *GetSubjectByIDParams

WithDefaults hydrates default values in the get subject by ID params (not the query body).

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

func (*GetSubjectByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get subject by ID params

func (*GetSubjectByIDParams) WithID

WithID adds the id to the get subject by ID params

func (*GetSubjectByIDParams) WithTimeout

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

WithTimeout adds the timeout to the get subject by ID params

func (*GetSubjectByIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSubjectByIDReader

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

GetSubjectByIDReader is a Reader for the GetSubjectByID structure.

func (*GetSubjectByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSubjectsInternalServerError

type GetSubjectsInternalServerError struct {
}

GetSubjectsInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetSubjectsInternalServerError

func NewGetSubjectsInternalServerError() *GetSubjectsInternalServerError

NewGetSubjectsInternalServerError creates a GetSubjectsInternalServerError with default headers values

func (*GetSubjectsInternalServerError) Code

Code gets the status code for the get subjects internal server error response

func (*GetSubjectsInternalServerError) Error

func (*GetSubjectsInternalServerError) IsClientError

func (o *GetSubjectsInternalServerError) IsClientError() bool

IsClientError returns true when this get subjects internal server error response has a 4xx status code

func (*GetSubjectsInternalServerError) IsCode

func (o *GetSubjectsInternalServerError) IsCode(code int) bool

IsCode returns true when this get subjects internal server error response a status code equal to that given

func (*GetSubjectsInternalServerError) IsRedirect

func (o *GetSubjectsInternalServerError) IsRedirect() bool

IsRedirect returns true when this get subjects internal server error response has a 3xx status code

func (*GetSubjectsInternalServerError) IsServerError

func (o *GetSubjectsInternalServerError) IsServerError() bool

IsServerError returns true when this get subjects internal server error response has a 5xx status code

func (*GetSubjectsInternalServerError) IsSuccess

func (o *GetSubjectsInternalServerError) IsSuccess() bool

IsSuccess returns true when this get subjects internal server error response has a 2xx status code

func (*GetSubjectsInternalServerError) String

type GetSubjectsNotFound

type GetSubjectsNotFound struct {
}

GetSubjectsNotFound describes a response with status code 404, with default header values.

Subjects not found

func NewGetSubjectsNotFound

func NewGetSubjectsNotFound() *GetSubjectsNotFound

NewGetSubjectsNotFound creates a GetSubjectsNotFound with default headers values

func (*GetSubjectsNotFound) Code

func (o *GetSubjectsNotFound) Code() int

Code gets the status code for the get subjects not found response

func (*GetSubjectsNotFound) Error

func (o *GetSubjectsNotFound) Error() string

func (*GetSubjectsNotFound) IsClientError

func (o *GetSubjectsNotFound) IsClientError() bool

IsClientError returns true when this get subjects not found response has a 4xx status code

func (*GetSubjectsNotFound) IsCode

func (o *GetSubjectsNotFound) IsCode(code int) bool

IsCode returns true when this get subjects not found response a status code equal to that given

func (*GetSubjectsNotFound) IsRedirect

func (o *GetSubjectsNotFound) IsRedirect() bool

IsRedirect returns true when this get subjects not found response has a 3xx status code

func (*GetSubjectsNotFound) IsServerError

func (o *GetSubjectsNotFound) IsServerError() bool

IsServerError returns true when this get subjects not found response has a 5xx status code

func (*GetSubjectsNotFound) IsSuccess

func (o *GetSubjectsNotFound) IsSuccess() bool

IsSuccess returns true when this get subjects not found response has a 2xx status code

func (*GetSubjectsNotFound) String

func (o *GetSubjectsNotFound) String() string

type GetSubjectsOK

type GetSubjectsOK struct {
	Payload []*models.Subject
}

GetSubjectsOK describes a response with status code 200, with default header values.

Subjects' response

func NewGetSubjectsOK

func NewGetSubjectsOK() *GetSubjectsOK

NewGetSubjectsOK creates a GetSubjectsOK with default headers values

func (*GetSubjectsOK) Code

func (o *GetSubjectsOK) Code() int

Code gets the status code for the get subjects o k response

func (*GetSubjectsOK) Error

func (o *GetSubjectsOK) Error() string

func (*GetSubjectsOK) GetPayload

func (o *GetSubjectsOK) GetPayload() []*models.Subject

func (*GetSubjectsOK) IsClientError

func (o *GetSubjectsOK) IsClientError() bool

IsClientError returns true when this get subjects o k response has a 4xx status code

func (*GetSubjectsOK) IsCode

func (o *GetSubjectsOK) IsCode(code int) bool

IsCode returns true when this get subjects o k response a status code equal to that given

func (*GetSubjectsOK) IsRedirect

func (o *GetSubjectsOK) IsRedirect() bool

IsRedirect returns true when this get subjects o k response has a 3xx status code

func (*GetSubjectsOK) IsServerError

func (o *GetSubjectsOK) IsServerError() bool

IsServerError returns true when this get subjects o k response has a 5xx status code

func (*GetSubjectsOK) IsSuccess

func (o *GetSubjectsOK) IsSuccess() bool

IsSuccess returns true when this get subjects o k response has a 2xx status code

func (*GetSubjectsOK) String

func (o *GetSubjectsOK) String() string

type GetSubjectsOfClassInternalServerError

type GetSubjectsOfClassInternalServerError struct {
}

GetSubjectsOfClassInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetSubjectsOfClassInternalServerError

func NewGetSubjectsOfClassInternalServerError() *GetSubjectsOfClassInternalServerError

NewGetSubjectsOfClassInternalServerError creates a GetSubjectsOfClassInternalServerError with default headers values

func (*GetSubjectsOfClassInternalServerError) Code

Code gets the status code for the get subjects of class internal server error response

func (*GetSubjectsOfClassInternalServerError) Error

func (*GetSubjectsOfClassInternalServerError) IsClientError

func (o *GetSubjectsOfClassInternalServerError) IsClientError() bool

IsClientError returns true when this get subjects of class internal server error response has a 4xx status code

func (*GetSubjectsOfClassInternalServerError) IsCode

IsCode returns true when this get subjects of class internal server error response a status code equal to that given

func (*GetSubjectsOfClassInternalServerError) IsRedirect

IsRedirect returns true when this get subjects of class internal server error response has a 3xx status code

func (*GetSubjectsOfClassInternalServerError) IsServerError

func (o *GetSubjectsOfClassInternalServerError) IsServerError() bool

IsServerError returns true when this get subjects of class internal server error response has a 5xx status code

func (*GetSubjectsOfClassInternalServerError) IsSuccess

IsSuccess returns true when this get subjects of class internal server error response has a 2xx status code

func (*GetSubjectsOfClassInternalServerError) String

type GetSubjectsOfClassNotFound

type GetSubjectsOfClassNotFound struct {
}

GetSubjectsOfClassNotFound describes a response with status code 404, with default header values.

Class not found

func NewGetSubjectsOfClassNotFound

func NewGetSubjectsOfClassNotFound() *GetSubjectsOfClassNotFound

NewGetSubjectsOfClassNotFound creates a GetSubjectsOfClassNotFound with default headers values

func (*GetSubjectsOfClassNotFound) Code

func (o *GetSubjectsOfClassNotFound) Code() int

Code gets the status code for the get subjects of class not found response

func (*GetSubjectsOfClassNotFound) Error

func (*GetSubjectsOfClassNotFound) IsClientError

func (o *GetSubjectsOfClassNotFound) IsClientError() bool

IsClientError returns true when this get subjects of class not found response has a 4xx status code

func (*GetSubjectsOfClassNotFound) IsCode

func (o *GetSubjectsOfClassNotFound) IsCode(code int) bool

IsCode returns true when this get subjects of class not found response a status code equal to that given

func (*GetSubjectsOfClassNotFound) IsRedirect

func (o *GetSubjectsOfClassNotFound) IsRedirect() bool

IsRedirect returns true when this get subjects of class not found response has a 3xx status code

func (*GetSubjectsOfClassNotFound) IsServerError

func (o *GetSubjectsOfClassNotFound) IsServerError() bool

IsServerError returns true when this get subjects of class not found response has a 5xx status code

func (*GetSubjectsOfClassNotFound) IsSuccess

func (o *GetSubjectsOfClassNotFound) IsSuccess() bool

IsSuccess returns true when this get subjects of class not found response has a 2xx status code

func (*GetSubjectsOfClassNotFound) String

func (o *GetSubjectsOfClassNotFound) String() string

type GetSubjectsOfClassOK

type GetSubjectsOfClassOK struct {
	Payload []*models.Subject
}

GetSubjectsOfClassOK describes a response with status code 200, with default header values.

Class' Subjects as response

func NewGetSubjectsOfClassOK

func NewGetSubjectsOfClassOK() *GetSubjectsOfClassOK

NewGetSubjectsOfClassOK creates a GetSubjectsOfClassOK with default headers values

func (*GetSubjectsOfClassOK) Code

func (o *GetSubjectsOfClassOK) Code() int

Code gets the status code for the get subjects of class o k response

func (*GetSubjectsOfClassOK) Error

func (o *GetSubjectsOfClassOK) Error() string

func (*GetSubjectsOfClassOK) GetPayload

func (o *GetSubjectsOfClassOK) GetPayload() []*models.Subject

func (*GetSubjectsOfClassOK) IsClientError

func (o *GetSubjectsOfClassOK) IsClientError() bool

IsClientError returns true when this get subjects of class o k response has a 4xx status code

func (*GetSubjectsOfClassOK) IsCode

func (o *GetSubjectsOfClassOK) IsCode(code int) bool

IsCode returns true when this get subjects of class o k response a status code equal to that given

func (*GetSubjectsOfClassOK) IsRedirect

func (o *GetSubjectsOfClassOK) IsRedirect() bool

IsRedirect returns true when this get subjects of class o k response has a 3xx status code

func (*GetSubjectsOfClassOK) IsServerError

func (o *GetSubjectsOfClassOK) IsServerError() bool

IsServerError returns true when this get subjects of class o k response has a 5xx status code

func (*GetSubjectsOfClassOK) IsSuccess

func (o *GetSubjectsOfClassOK) IsSuccess() bool

IsSuccess returns true when this get subjects of class o k response has a 2xx status code

func (*GetSubjectsOfClassOK) String

func (o *GetSubjectsOfClassOK) String() string

type GetSubjectsOfClassParams

type GetSubjectsOfClassParams struct {

	/* ID.

	   The ID of the Class
	*/
	ID int64

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

GetSubjectsOfClassParams contains all the parameters to send to the API endpoint

for the get subjects of class operation.

Typically these are written to a http.Request.

func NewGetSubjectsOfClassParams

func NewGetSubjectsOfClassParams() *GetSubjectsOfClassParams

NewGetSubjectsOfClassParams creates a new GetSubjectsOfClassParams 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 NewGetSubjectsOfClassParamsWithContext

func NewGetSubjectsOfClassParamsWithContext(ctx context.Context) *GetSubjectsOfClassParams

NewGetSubjectsOfClassParamsWithContext creates a new GetSubjectsOfClassParams object with the ability to set a context for a request.

func NewGetSubjectsOfClassParamsWithHTTPClient

func NewGetSubjectsOfClassParamsWithHTTPClient(client *http.Client) *GetSubjectsOfClassParams

NewGetSubjectsOfClassParamsWithHTTPClient creates a new GetSubjectsOfClassParams object with the ability to set a custom HTTPClient for a request.

func NewGetSubjectsOfClassParamsWithTimeout

func NewGetSubjectsOfClassParamsWithTimeout(timeout time.Duration) *GetSubjectsOfClassParams

NewGetSubjectsOfClassParamsWithTimeout creates a new GetSubjectsOfClassParams object with the ability to set a timeout on a request.

func (*GetSubjectsOfClassParams) SetContext

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

SetContext adds the context to the get subjects of class params

func (*GetSubjectsOfClassParams) SetDefaults

func (o *GetSubjectsOfClassParams) SetDefaults()

SetDefaults hydrates default values in the get subjects of class params (not the query body).

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

func (*GetSubjectsOfClassParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get subjects of class params

func (*GetSubjectsOfClassParams) SetID

func (o *GetSubjectsOfClassParams) SetID(id int64)

SetID adds the id to the get subjects of class params

func (*GetSubjectsOfClassParams) SetTimeout

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

SetTimeout adds the timeout to the get subjects of class params

func (*GetSubjectsOfClassParams) WithContext

WithContext adds the context to the get subjects of class params

func (*GetSubjectsOfClassParams) WithDefaults

WithDefaults hydrates default values in the get subjects of class params (not the query body).

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

func (*GetSubjectsOfClassParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get subjects of class params

func (*GetSubjectsOfClassParams) WithID

WithID adds the id to the get subjects of class params

func (*GetSubjectsOfClassParams) WithTimeout

WithTimeout adds the timeout to the get subjects of class params

func (*GetSubjectsOfClassParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSubjectsOfClassReader

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

GetSubjectsOfClassReader is a Reader for the GetSubjectsOfClass structure.

func (*GetSubjectsOfClassReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSubjectsOfStudentInternalServerError

type GetSubjectsOfStudentInternalServerError struct {
}

GetSubjectsOfStudentInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetSubjectsOfStudentInternalServerError

func NewGetSubjectsOfStudentInternalServerError() *GetSubjectsOfStudentInternalServerError

NewGetSubjectsOfStudentInternalServerError creates a GetSubjectsOfStudentInternalServerError with default headers values

func (*GetSubjectsOfStudentInternalServerError) Code

Code gets the status code for the get subjects of student internal server error response

func (*GetSubjectsOfStudentInternalServerError) Error

func (*GetSubjectsOfStudentInternalServerError) IsClientError

func (o *GetSubjectsOfStudentInternalServerError) IsClientError() bool

IsClientError returns true when this get subjects of student internal server error response has a 4xx status code

func (*GetSubjectsOfStudentInternalServerError) IsCode

IsCode returns true when this get subjects of student internal server error response a status code equal to that given

func (*GetSubjectsOfStudentInternalServerError) IsRedirect

IsRedirect returns true when this get subjects of student internal server error response has a 3xx status code

func (*GetSubjectsOfStudentInternalServerError) IsServerError

func (o *GetSubjectsOfStudentInternalServerError) IsServerError() bool

IsServerError returns true when this get subjects of student internal server error response has a 5xx status code

func (*GetSubjectsOfStudentInternalServerError) IsSuccess

IsSuccess returns true when this get subjects of student internal server error response has a 2xx status code

func (*GetSubjectsOfStudentInternalServerError) String

type GetSubjectsOfStudentNotFound

type GetSubjectsOfStudentNotFound struct {
}

GetSubjectsOfStudentNotFound describes a response with status code 404, with default header values.

Student not found

func NewGetSubjectsOfStudentNotFound

func NewGetSubjectsOfStudentNotFound() *GetSubjectsOfStudentNotFound

NewGetSubjectsOfStudentNotFound creates a GetSubjectsOfStudentNotFound with default headers values

func (*GetSubjectsOfStudentNotFound) Code

Code gets the status code for the get subjects of student not found response

func (*GetSubjectsOfStudentNotFound) Error

func (*GetSubjectsOfStudentNotFound) IsClientError

func (o *GetSubjectsOfStudentNotFound) IsClientError() bool

IsClientError returns true when this get subjects of student not found response has a 4xx status code

func (*GetSubjectsOfStudentNotFound) IsCode

func (o *GetSubjectsOfStudentNotFound) IsCode(code int) bool

IsCode returns true when this get subjects of student not found response a status code equal to that given

func (*GetSubjectsOfStudentNotFound) IsRedirect

func (o *GetSubjectsOfStudentNotFound) IsRedirect() bool

IsRedirect returns true when this get subjects of student not found response has a 3xx status code

func (*GetSubjectsOfStudentNotFound) IsServerError

func (o *GetSubjectsOfStudentNotFound) IsServerError() bool

IsServerError returns true when this get subjects of student not found response has a 5xx status code

func (*GetSubjectsOfStudentNotFound) IsSuccess

func (o *GetSubjectsOfStudentNotFound) IsSuccess() bool

IsSuccess returns true when this get subjects of student not found response has a 2xx status code

func (*GetSubjectsOfStudentNotFound) String

type GetSubjectsOfStudentOK

type GetSubjectsOfStudentOK struct {
	Payload []*models.Subject
}

GetSubjectsOfStudentOK describes a response with status code 200, with default header values.

Student's Subjects as response

func NewGetSubjectsOfStudentOK

func NewGetSubjectsOfStudentOK() *GetSubjectsOfStudentOK

NewGetSubjectsOfStudentOK creates a GetSubjectsOfStudentOK with default headers values

func (*GetSubjectsOfStudentOK) Code

func (o *GetSubjectsOfStudentOK) Code() int

Code gets the status code for the get subjects of student o k response

func (*GetSubjectsOfStudentOK) Error

func (o *GetSubjectsOfStudentOK) Error() string

func (*GetSubjectsOfStudentOK) GetPayload

func (o *GetSubjectsOfStudentOK) GetPayload() []*models.Subject

func (*GetSubjectsOfStudentOK) IsClientError

func (o *GetSubjectsOfStudentOK) IsClientError() bool

IsClientError returns true when this get subjects of student o k response has a 4xx status code

func (*GetSubjectsOfStudentOK) IsCode

func (o *GetSubjectsOfStudentOK) IsCode(code int) bool

IsCode returns true when this get subjects of student o k response a status code equal to that given

func (*GetSubjectsOfStudentOK) IsRedirect

func (o *GetSubjectsOfStudentOK) IsRedirect() bool

IsRedirect returns true when this get subjects of student o k response has a 3xx status code

func (*GetSubjectsOfStudentOK) IsServerError

func (o *GetSubjectsOfStudentOK) IsServerError() bool

IsServerError returns true when this get subjects of student o k response has a 5xx status code

func (*GetSubjectsOfStudentOK) IsSuccess

func (o *GetSubjectsOfStudentOK) IsSuccess() bool

IsSuccess returns true when this get subjects of student o k response has a 2xx status code

func (*GetSubjectsOfStudentOK) String

func (o *GetSubjectsOfStudentOK) String() string

type GetSubjectsOfStudentParams

type GetSubjectsOfStudentParams struct {

	/* ID.

	   The ID of the Student
	*/
	ID int64

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

GetSubjectsOfStudentParams contains all the parameters to send to the API endpoint

for the get subjects of student operation.

Typically these are written to a http.Request.

func NewGetSubjectsOfStudentParams

func NewGetSubjectsOfStudentParams() *GetSubjectsOfStudentParams

NewGetSubjectsOfStudentParams creates a new GetSubjectsOfStudentParams 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 NewGetSubjectsOfStudentParamsWithContext

func NewGetSubjectsOfStudentParamsWithContext(ctx context.Context) *GetSubjectsOfStudentParams

NewGetSubjectsOfStudentParamsWithContext creates a new GetSubjectsOfStudentParams object with the ability to set a context for a request.

func NewGetSubjectsOfStudentParamsWithHTTPClient

func NewGetSubjectsOfStudentParamsWithHTTPClient(client *http.Client) *GetSubjectsOfStudentParams

NewGetSubjectsOfStudentParamsWithHTTPClient creates a new GetSubjectsOfStudentParams object with the ability to set a custom HTTPClient for a request.

func NewGetSubjectsOfStudentParamsWithTimeout

func NewGetSubjectsOfStudentParamsWithTimeout(timeout time.Duration) *GetSubjectsOfStudentParams

NewGetSubjectsOfStudentParamsWithTimeout creates a new GetSubjectsOfStudentParams object with the ability to set a timeout on a request.

func (*GetSubjectsOfStudentParams) SetContext

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

SetContext adds the context to the get subjects of student params

func (*GetSubjectsOfStudentParams) SetDefaults

func (o *GetSubjectsOfStudentParams) SetDefaults()

SetDefaults hydrates default values in the get subjects of student params (not the query body).

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

func (*GetSubjectsOfStudentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get subjects of student params

func (*GetSubjectsOfStudentParams) SetID

func (o *GetSubjectsOfStudentParams) SetID(id int64)

SetID adds the id to the get subjects of student params

func (*GetSubjectsOfStudentParams) SetTimeout

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

SetTimeout adds the timeout to the get subjects of student params

func (*GetSubjectsOfStudentParams) WithContext

WithContext adds the context to the get subjects of student params

func (*GetSubjectsOfStudentParams) WithDefaults

WithDefaults hydrates default values in the get subjects of student params (not the query body).

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

func (*GetSubjectsOfStudentParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get subjects of student params

func (*GetSubjectsOfStudentParams) WithID

WithID adds the id to the get subjects of student params

func (*GetSubjectsOfStudentParams) WithTimeout

WithTimeout adds the timeout to the get subjects of student params

func (*GetSubjectsOfStudentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSubjectsOfStudentReader

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

GetSubjectsOfStudentReader is a Reader for the GetSubjectsOfStudent structure.

func (*GetSubjectsOfStudentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSubjectsParams

type GetSubjectsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetSubjectsParams contains all the parameters to send to the API endpoint

for the get subjects operation.

Typically these are written to a http.Request.

func NewGetSubjectsParams

func NewGetSubjectsParams() *GetSubjectsParams

NewGetSubjectsParams creates a new GetSubjectsParams 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 NewGetSubjectsParamsWithContext

func NewGetSubjectsParamsWithContext(ctx context.Context) *GetSubjectsParams

NewGetSubjectsParamsWithContext creates a new GetSubjectsParams object with the ability to set a context for a request.

func NewGetSubjectsParamsWithHTTPClient

func NewGetSubjectsParamsWithHTTPClient(client *http.Client) *GetSubjectsParams

NewGetSubjectsParamsWithHTTPClient creates a new GetSubjectsParams object with the ability to set a custom HTTPClient for a request.

func NewGetSubjectsParamsWithTimeout

func NewGetSubjectsParamsWithTimeout(timeout time.Duration) *GetSubjectsParams

NewGetSubjectsParamsWithTimeout creates a new GetSubjectsParams object with the ability to set a timeout on a request.

func (*GetSubjectsParams) SetContext

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

SetContext adds the context to the get subjects params

func (*GetSubjectsParams) SetDefaults

func (o *GetSubjectsParams) SetDefaults()

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

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

func (*GetSubjectsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get subjects params

func (*GetSubjectsParams) SetTimeout

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

SetTimeout adds the timeout to the get subjects params

func (*GetSubjectsParams) WithContext

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

WithContext adds the context to the get subjects params

func (*GetSubjectsParams) WithDefaults

func (o *GetSubjectsParams) WithDefaults() *GetSubjectsParams

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

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

func (*GetSubjectsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get subjects params

func (*GetSubjectsParams) WithTimeout

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

WithTimeout adds the timeout to the get subjects params

func (*GetSubjectsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSubjectsReader

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

GetSubjectsReader is a Reader for the GetSubjects structure.

func (*GetSubjectsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTeacherAccountsInternalServerError

type GetTeacherAccountsInternalServerError struct {
}

GetTeacherAccountsInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetTeacherAccountsInternalServerError

func NewGetTeacherAccountsInternalServerError() *GetTeacherAccountsInternalServerError

NewGetTeacherAccountsInternalServerError creates a GetTeacherAccountsInternalServerError with default headers values

func (*GetTeacherAccountsInternalServerError) Code

Code gets the status code for the get teacher accounts internal server error response

func (*GetTeacherAccountsInternalServerError) Error

func (*GetTeacherAccountsInternalServerError) IsClientError

func (o *GetTeacherAccountsInternalServerError) IsClientError() bool

IsClientError returns true when this get teacher accounts internal server error response has a 4xx status code

func (*GetTeacherAccountsInternalServerError) IsCode

IsCode returns true when this get teacher accounts internal server error response a status code equal to that given

func (*GetTeacherAccountsInternalServerError) IsRedirect

IsRedirect returns true when this get teacher accounts internal server error response has a 3xx status code

func (*GetTeacherAccountsInternalServerError) IsServerError

func (o *GetTeacherAccountsInternalServerError) IsServerError() bool

IsServerError returns true when this get teacher accounts internal server error response has a 5xx status code

func (*GetTeacherAccountsInternalServerError) IsSuccess

IsSuccess returns true when this get teacher accounts internal server error response has a 2xx status code

func (*GetTeacherAccountsInternalServerError) String

type GetTeacherAccountsNotFound

type GetTeacherAccountsNotFound struct {
}

GetTeacherAccountsNotFound describes a response with status code 404, with default header values.

Teacher Account not found

func NewGetTeacherAccountsNotFound

func NewGetTeacherAccountsNotFound() *GetTeacherAccountsNotFound

NewGetTeacherAccountsNotFound creates a GetTeacherAccountsNotFound with default headers values

func (*GetTeacherAccountsNotFound) Code

func (o *GetTeacherAccountsNotFound) Code() int

Code gets the status code for the get teacher accounts not found response

func (*GetTeacherAccountsNotFound) Error

func (*GetTeacherAccountsNotFound) IsClientError

func (o *GetTeacherAccountsNotFound) IsClientError() bool

IsClientError returns true when this get teacher accounts not found response has a 4xx status code

func (*GetTeacherAccountsNotFound) IsCode

func (o *GetTeacherAccountsNotFound) IsCode(code int) bool

IsCode returns true when this get teacher accounts not found response a status code equal to that given

func (*GetTeacherAccountsNotFound) IsRedirect

func (o *GetTeacherAccountsNotFound) IsRedirect() bool

IsRedirect returns true when this get teacher accounts not found response has a 3xx status code

func (*GetTeacherAccountsNotFound) IsServerError

func (o *GetTeacherAccountsNotFound) IsServerError() bool

IsServerError returns true when this get teacher accounts not found response has a 5xx status code

func (*GetTeacherAccountsNotFound) IsSuccess

func (o *GetTeacherAccountsNotFound) IsSuccess() bool

IsSuccess returns true when this get teacher accounts not found response has a 2xx status code

func (*GetTeacherAccountsNotFound) String

func (o *GetTeacherAccountsNotFound) String() string

type GetTeacherAccountsOK

type GetTeacherAccountsOK struct {
	Payload []*models.Account
}

GetTeacherAccountsOK describes a response with status code 200, with default header values.

Teacher Accounts' response

func NewGetTeacherAccountsOK

func NewGetTeacherAccountsOK() *GetTeacherAccountsOK

NewGetTeacherAccountsOK creates a GetTeacherAccountsOK with default headers values

func (*GetTeacherAccountsOK) Code

func (o *GetTeacherAccountsOK) Code() int

Code gets the status code for the get teacher accounts o k response

func (*GetTeacherAccountsOK) Error

func (o *GetTeacherAccountsOK) Error() string

func (*GetTeacherAccountsOK) GetPayload

func (o *GetTeacherAccountsOK) GetPayload() []*models.Account

func (*GetTeacherAccountsOK) IsClientError

func (o *GetTeacherAccountsOK) IsClientError() bool

IsClientError returns true when this get teacher accounts o k response has a 4xx status code

func (*GetTeacherAccountsOK) IsCode

func (o *GetTeacherAccountsOK) IsCode(code int) bool

IsCode returns true when this get teacher accounts o k response a status code equal to that given

func (*GetTeacherAccountsOK) IsRedirect

func (o *GetTeacherAccountsOK) IsRedirect() bool

IsRedirect returns true when this get teacher accounts o k response has a 3xx status code

func (*GetTeacherAccountsOK) IsServerError

func (o *GetTeacherAccountsOK) IsServerError() bool

IsServerError returns true when this get teacher accounts o k response has a 5xx status code

func (*GetTeacherAccountsOK) IsSuccess

func (o *GetTeacherAccountsOK) IsSuccess() bool

IsSuccess returns true when this get teacher accounts o k response has a 2xx status code

func (*GetTeacherAccountsOK) String

func (o *GetTeacherAccountsOK) String() string

type GetTeacherAccountsParams

type GetTeacherAccountsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetTeacherAccountsParams contains all the parameters to send to the API endpoint

for the get teacher accounts operation.

Typically these are written to a http.Request.

func NewGetTeacherAccountsParams

func NewGetTeacherAccountsParams() *GetTeacherAccountsParams

NewGetTeacherAccountsParams creates a new GetTeacherAccountsParams 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 NewGetTeacherAccountsParamsWithContext

func NewGetTeacherAccountsParamsWithContext(ctx context.Context) *GetTeacherAccountsParams

NewGetTeacherAccountsParamsWithContext creates a new GetTeacherAccountsParams object with the ability to set a context for a request.

func NewGetTeacherAccountsParamsWithHTTPClient

func NewGetTeacherAccountsParamsWithHTTPClient(client *http.Client) *GetTeacherAccountsParams

NewGetTeacherAccountsParamsWithHTTPClient creates a new GetTeacherAccountsParams object with the ability to set a custom HTTPClient for a request.

func NewGetTeacherAccountsParamsWithTimeout

func NewGetTeacherAccountsParamsWithTimeout(timeout time.Duration) *GetTeacherAccountsParams

NewGetTeacherAccountsParamsWithTimeout creates a new GetTeacherAccountsParams object with the ability to set a timeout on a request.

func (*GetTeacherAccountsParams) SetContext

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

SetContext adds the context to the get teacher accounts params

func (*GetTeacherAccountsParams) SetDefaults

func (o *GetTeacherAccountsParams) SetDefaults()

SetDefaults hydrates default values in the get teacher accounts params (not the query body).

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

func (*GetTeacherAccountsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get teacher accounts params

func (*GetTeacherAccountsParams) SetTimeout

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

SetTimeout adds the timeout to the get teacher accounts params

func (*GetTeacherAccountsParams) WithContext

WithContext adds the context to the get teacher accounts params

func (*GetTeacherAccountsParams) WithDefaults

WithDefaults hydrates default values in the get teacher accounts params (not the query body).

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

func (*GetTeacherAccountsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get teacher accounts params

func (*GetTeacherAccountsParams) WithTimeout

WithTimeout adds the timeout to the get teacher accounts params

func (*GetTeacherAccountsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTeacherAccountsReader

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

GetTeacherAccountsReader is a Reader for the GetTeacherAccounts structure.

func (*GetTeacherAccountsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTeacherByIDInternalServerError

type GetTeacherByIDInternalServerError struct {
}

GetTeacherByIDInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetTeacherByIDInternalServerError

func NewGetTeacherByIDInternalServerError() *GetTeacherByIDInternalServerError

NewGetTeacherByIDInternalServerError creates a GetTeacherByIDInternalServerError with default headers values

func (*GetTeacherByIDInternalServerError) Code

Code gets the status code for the get teacher by Id internal server error response

func (*GetTeacherByIDInternalServerError) Error

func (*GetTeacherByIDInternalServerError) IsClientError

func (o *GetTeacherByIDInternalServerError) IsClientError() bool

IsClientError returns true when this get teacher by Id internal server error response has a 4xx status code

func (*GetTeacherByIDInternalServerError) IsCode

func (o *GetTeacherByIDInternalServerError) IsCode(code int) bool

IsCode returns true when this get teacher by Id internal server error response a status code equal to that given

func (*GetTeacherByIDInternalServerError) IsRedirect

func (o *GetTeacherByIDInternalServerError) IsRedirect() bool

IsRedirect returns true when this get teacher by Id internal server error response has a 3xx status code

func (*GetTeacherByIDInternalServerError) IsServerError

func (o *GetTeacherByIDInternalServerError) IsServerError() bool

IsServerError returns true when this get teacher by Id internal server error response has a 5xx status code

func (*GetTeacherByIDInternalServerError) IsSuccess

func (o *GetTeacherByIDInternalServerError) IsSuccess() bool

IsSuccess returns true when this get teacher by Id internal server error response has a 2xx status code

func (*GetTeacherByIDInternalServerError) String

type GetTeacherByIDNotFound

type GetTeacherByIDNotFound struct {
}

GetTeacherByIDNotFound describes a response with status code 404, with default header values.

Teacher not found

func NewGetTeacherByIDNotFound

func NewGetTeacherByIDNotFound() *GetTeacherByIDNotFound

NewGetTeacherByIDNotFound creates a GetTeacherByIDNotFound with default headers values

func (*GetTeacherByIDNotFound) Code

func (o *GetTeacherByIDNotFound) Code() int

Code gets the status code for the get teacher by Id not found response

func (*GetTeacherByIDNotFound) Error

func (o *GetTeacherByIDNotFound) Error() string

func (*GetTeacherByIDNotFound) IsClientError

func (o *GetTeacherByIDNotFound) IsClientError() bool

IsClientError returns true when this get teacher by Id not found response has a 4xx status code

func (*GetTeacherByIDNotFound) IsCode

func (o *GetTeacherByIDNotFound) IsCode(code int) bool

IsCode returns true when this get teacher by Id not found response a status code equal to that given

func (*GetTeacherByIDNotFound) IsRedirect

func (o *GetTeacherByIDNotFound) IsRedirect() bool

IsRedirect returns true when this get teacher by Id not found response has a 3xx status code

func (*GetTeacherByIDNotFound) IsServerError

func (o *GetTeacherByIDNotFound) IsServerError() bool

IsServerError returns true when this get teacher by Id not found response has a 5xx status code

func (*GetTeacherByIDNotFound) IsSuccess

func (o *GetTeacherByIDNotFound) IsSuccess() bool

IsSuccess returns true when this get teacher by Id not found response has a 2xx status code

func (*GetTeacherByIDNotFound) String

func (o *GetTeacherByIDNotFound) String() string

type GetTeacherByIDOK

type GetTeacherByIDOK struct {
	Payload *models.Teacher
}

GetTeacherByIDOK describes a response with status code 200, with default header values.

Teacher response

func NewGetTeacherByIDOK

func NewGetTeacherByIDOK() *GetTeacherByIDOK

NewGetTeacherByIDOK creates a GetTeacherByIDOK with default headers values

func (*GetTeacherByIDOK) Code

func (o *GetTeacherByIDOK) Code() int

Code gets the status code for the get teacher by Id o k response

func (*GetTeacherByIDOK) Error

func (o *GetTeacherByIDOK) Error() string

func (*GetTeacherByIDOK) GetPayload

func (o *GetTeacherByIDOK) GetPayload() *models.Teacher

func (*GetTeacherByIDOK) IsClientError

func (o *GetTeacherByIDOK) IsClientError() bool

IsClientError returns true when this get teacher by Id o k response has a 4xx status code

func (*GetTeacherByIDOK) IsCode

func (o *GetTeacherByIDOK) IsCode(code int) bool

IsCode returns true when this get teacher by Id o k response a status code equal to that given

func (*GetTeacherByIDOK) IsRedirect

func (o *GetTeacherByIDOK) IsRedirect() bool

IsRedirect returns true when this get teacher by Id o k response has a 3xx status code

func (*GetTeacherByIDOK) IsServerError

func (o *GetTeacherByIDOK) IsServerError() bool

IsServerError returns true when this get teacher by Id o k response has a 5xx status code

func (*GetTeacherByIDOK) IsSuccess

func (o *GetTeacherByIDOK) IsSuccess() bool

IsSuccess returns true when this get teacher by Id o k response has a 2xx status code

func (*GetTeacherByIDOK) String

func (o *GetTeacherByIDOK) String() string

type GetTeacherByIDParams

type GetTeacherByIDParams struct {

	/* ID.

	   ID of the Teacher
	*/
	ID int64

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

GetTeacherByIDParams contains all the parameters to send to the API endpoint

for the get teacher by ID operation.

Typically these are written to a http.Request.

func NewGetTeacherByIDParams

func NewGetTeacherByIDParams() *GetTeacherByIDParams

NewGetTeacherByIDParams creates a new GetTeacherByIDParams 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 NewGetTeacherByIDParamsWithContext

func NewGetTeacherByIDParamsWithContext(ctx context.Context) *GetTeacherByIDParams

NewGetTeacherByIDParamsWithContext creates a new GetTeacherByIDParams object with the ability to set a context for a request.

func NewGetTeacherByIDParamsWithHTTPClient

func NewGetTeacherByIDParamsWithHTTPClient(client *http.Client) *GetTeacherByIDParams

NewGetTeacherByIDParamsWithHTTPClient creates a new GetTeacherByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetTeacherByIDParamsWithTimeout

func NewGetTeacherByIDParamsWithTimeout(timeout time.Duration) *GetTeacherByIDParams

NewGetTeacherByIDParamsWithTimeout creates a new GetTeacherByIDParams object with the ability to set a timeout on a request.

func (*GetTeacherByIDParams) SetContext

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

SetContext adds the context to the get teacher by ID params

func (*GetTeacherByIDParams) SetDefaults

func (o *GetTeacherByIDParams) SetDefaults()

SetDefaults hydrates default values in the get teacher by ID params (not the query body).

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

func (*GetTeacherByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get teacher by ID params

func (*GetTeacherByIDParams) SetID

func (o *GetTeacherByIDParams) SetID(id int64)

SetID adds the id to the get teacher by ID params

func (*GetTeacherByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get teacher by ID params

func (*GetTeacherByIDParams) WithContext

WithContext adds the context to the get teacher by ID params

func (*GetTeacherByIDParams) WithDefaults

func (o *GetTeacherByIDParams) WithDefaults() *GetTeacherByIDParams

WithDefaults hydrates default values in the get teacher by ID params (not the query body).

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

func (*GetTeacherByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get teacher by ID params

func (*GetTeacherByIDParams) WithID

WithID adds the id to the get teacher by ID params

func (*GetTeacherByIDParams) WithTimeout

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

WithTimeout adds the timeout to the get teacher by ID params

func (*GetTeacherByIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTeacherByIDReader

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

GetTeacherByIDReader is a Reader for the GetTeacherByID structure.

func (*GetTeacherByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTeacherOfSubjectInternalServerError

type GetTeacherOfSubjectInternalServerError struct {
}

GetTeacherOfSubjectInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetTeacherOfSubjectInternalServerError

func NewGetTeacherOfSubjectInternalServerError() *GetTeacherOfSubjectInternalServerError

NewGetTeacherOfSubjectInternalServerError creates a GetTeacherOfSubjectInternalServerError with default headers values

func (*GetTeacherOfSubjectInternalServerError) Code

Code gets the status code for the get teacher of subject internal server error response

func (*GetTeacherOfSubjectInternalServerError) Error

func (*GetTeacherOfSubjectInternalServerError) IsClientError

func (o *GetTeacherOfSubjectInternalServerError) IsClientError() bool

IsClientError returns true when this get teacher of subject internal server error response has a 4xx status code

func (*GetTeacherOfSubjectInternalServerError) IsCode

IsCode returns true when this get teacher of subject internal server error response a status code equal to that given

func (*GetTeacherOfSubjectInternalServerError) IsRedirect

IsRedirect returns true when this get teacher of subject internal server error response has a 3xx status code

func (*GetTeacherOfSubjectInternalServerError) IsServerError

func (o *GetTeacherOfSubjectInternalServerError) IsServerError() bool

IsServerError returns true when this get teacher of subject internal server error response has a 5xx status code

func (*GetTeacherOfSubjectInternalServerError) IsSuccess

IsSuccess returns true when this get teacher of subject internal server error response has a 2xx status code

func (*GetTeacherOfSubjectInternalServerError) String

type GetTeacherOfSubjectNotFound

type GetTeacherOfSubjectNotFound struct {
}

GetTeacherOfSubjectNotFound describes a response with status code 404, with default header values.

Subject not found

func NewGetTeacherOfSubjectNotFound

func NewGetTeacherOfSubjectNotFound() *GetTeacherOfSubjectNotFound

NewGetTeacherOfSubjectNotFound creates a GetTeacherOfSubjectNotFound with default headers values

func (*GetTeacherOfSubjectNotFound) Code

func (o *GetTeacherOfSubjectNotFound) Code() int

Code gets the status code for the get teacher of subject not found response

func (*GetTeacherOfSubjectNotFound) Error

func (*GetTeacherOfSubjectNotFound) IsClientError

func (o *GetTeacherOfSubjectNotFound) IsClientError() bool

IsClientError returns true when this get teacher of subject not found response has a 4xx status code

func (*GetTeacherOfSubjectNotFound) IsCode

func (o *GetTeacherOfSubjectNotFound) IsCode(code int) bool

IsCode returns true when this get teacher of subject not found response a status code equal to that given

func (*GetTeacherOfSubjectNotFound) IsRedirect

func (o *GetTeacherOfSubjectNotFound) IsRedirect() bool

IsRedirect returns true when this get teacher of subject not found response has a 3xx status code

func (*GetTeacherOfSubjectNotFound) IsServerError

func (o *GetTeacherOfSubjectNotFound) IsServerError() bool

IsServerError returns true when this get teacher of subject not found response has a 5xx status code

func (*GetTeacherOfSubjectNotFound) IsSuccess

func (o *GetTeacherOfSubjectNotFound) IsSuccess() bool

IsSuccess returns true when this get teacher of subject not found response has a 2xx status code

func (*GetTeacherOfSubjectNotFound) String

func (o *GetTeacherOfSubjectNotFound) String() string

type GetTeacherOfSubjectOK

type GetTeacherOfSubjectOK struct {
	Payload *models.Teacher
}

GetTeacherOfSubjectOK describes a response with status code 200, with default header values.

Subject's Teacher as response

func NewGetTeacherOfSubjectOK

func NewGetTeacherOfSubjectOK() *GetTeacherOfSubjectOK

NewGetTeacherOfSubjectOK creates a GetTeacherOfSubjectOK with default headers values

func (*GetTeacherOfSubjectOK) Code

func (o *GetTeacherOfSubjectOK) Code() int

Code gets the status code for the get teacher of subject o k response

func (*GetTeacherOfSubjectOK) Error

func (o *GetTeacherOfSubjectOK) Error() string

func (*GetTeacherOfSubjectOK) GetPayload

func (o *GetTeacherOfSubjectOK) GetPayload() *models.Teacher

func (*GetTeacherOfSubjectOK) IsClientError

func (o *GetTeacherOfSubjectOK) IsClientError() bool

IsClientError returns true when this get teacher of subject o k response has a 4xx status code

func (*GetTeacherOfSubjectOK) IsCode

func (o *GetTeacherOfSubjectOK) IsCode(code int) bool

IsCode returns true when this get teacher of subject o k response a status code equal to that given

func (*GetTeacherOfSubjectOK) IsRedirect

func (o *GetTeacherOfSubjectOK) IsRedirect() bool

IsRedirect returns true when this get teacher of subject o k response has a 3xx status code

func (*GetTeacherOfSubjectOK) IsServerError

func (o *GetTeacherOfSubjectOK) IsServerError() bool

IsServerError returns true when this get teacher of subject o k response has a 5xx status code

func (*GetTeacherOfSubjectOK) IsSuccess

func (o *GetTeacherOfSubjectOK) IsSuccess() bool

IsSuccess returns true when this get teacher of subject o k response has a 2xx status code

func (*GetTeacherOfSubjectOK) String

func (o *GetTeacherOfSubjectOK) String() string

type GetTeacherOfSubjectParams

type GetTeacherOfSubjectParams struct {

	/* ID.

	   The ID of the Subject
	*/
	ID int64

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

GetTeacherOfSubjectParams contains all the parameters to send to the API endpoint

for the get teacher of subject operation.

Typically these are written to a http.Request.

func NewGetTeacherOfSubjectParams

func NewGetTeacherOfSubjectParams() *GetTeacherOfSubjectParams

NewGetTeacherOfSubjectParams creates a new GetTeacherOfSubjectParams 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 NewGetTeacherOfSubjectParamsWithContext

func NewGetTeacherOfSubjectParamsWithContext(ctx context.Context) *GetTeacherOfSubjectParams

NewGetTeacherOfSubjectParamsWithContext creates a new GetTeacherOfSubjectParams object with the ability to set a context for a request.

func NewGetTeacherOfSubjectParamsWithHTTPClient

func NewGetTeacherOfSubjectParamsWithHTTPClient(client *http.Client) *GetTeacherOfSubjectParams

NewGetTeacherOfSubjectParamsWithHTTPClient creates a new GetTeacherOfSubjectParams object with the ability to set a custom HTTPClient for a request.

func NewGetTeacherOfSubjectParamsWithTimeout

func NewGetTeacherOfSubjectParamsWithTimeout(timeout time.Duration) *GetTeacherOfSubjectParams

NewGetTeacherOfSubjectParamsWithTimeout creates a new GetTeacherOfSubjectParams object with the ability to set a timeout on a request.

func (*GetTeacherOfSubjectParams) SetContext

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

SetContext adds the context to the get teacher of subject params

func (*GetTeacherOfSubjectParams) SetDefaults

func (o *GetTeacherOfSubjectParams) SetDefaults()

SetDefaults hydrates default values in the get teacher of subject params (not the query body).

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

func (*GetTeacherOfSubjectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get teacher of subject params

func (*GetTeacherOfSubjectParams) SetID

func (o *GetTeacherOfSubjectParams) SetID(id int64)

SetID adds the id to the get teacher of subject params

func (*GetTeacherOfSubjectParams) SetTimeout

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

SetTimeout adds the timeout to the get teacher of subject params

func (*GetTeacherOfSubjectParams) WithContext

WithContext adds the context to the get teacher of subject params

func (*GetTeacherOfSubjectParams) WithDefaults

WithDefaults hydrates default values in the get teacher of subject params (not the query body).

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

func (*GetTeacherOfSubjectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get teacher of subject params

func (*GetTeacherOfSubjectParams) WithID

WithID adds the id to the get teacher of subject params

func (*GetTeacherOfSubjectParams) WithTimeout

WithTimeout adds the timeout to the get teacher of subject params

func (*GetTeacherOfSubjectParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTeacherOfSubjectReader

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

GetTeacherOfSubjectReader is a Reader for the GetTeacherOfSubject structure.

func (*GetTeacherOfSubjectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTeachersInternalServerError

type GetTeachersInternalServerError struct {
}

GetTeachersInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetTeachersInternalServerError

func NewGetTeachersInternalServerError() *GetTeachersInternalServerError

NewGetTeachersInternalServerError creates a GetTeachersInternalServerError with default headers values

func (*GetTeachersInternalServerError) Code

Code gets the status code for the get teachers internal server error response

func (*GetTeachersInternalServerError) Error

func (*GetTeachersInternalServerError) IsClientError

func (o *GetTeachersInternalServerError) IsClientError() bool

IsClientError returns true when this get teachers internal server error response has a 4xx status code

func (*GetTeachersInternalServerError) IsCode

func (o *GetTeachersInternalServerError) IsCode(code int) bool

IsCode returns true when this get teachers internal server error response a status code equal to that given

func (*GetTeachersInternalServerError) IsRedirect

func (o *GetTeachersInternalServerError) IsRedirect() bool

IsRedirect returns true when this get teachers internal server error response has a 3xx status code

func (*GetTeachersInternalServerError) IsServerError

func (o *GetTeachersInternalServerError) IsServerError() bool

IsServerError returns true when this get teachers internal server error response has a 5xx status code

func (*GetTeachersInternalServerError) IsSuccess

func (o *GetTeachersInternalServerError) IsSuccess() bool

IsSuccess returns true when this get teachers internal server error response has a 2xx status code

func (*GetTeachersInternalServerError) String

type GetTeachersNotFound

type GetTeachersNotFound struct {
}

GetTeachersNotFound describes a response with status code 404, with default header values.

Teachers not found

func NewGetTeachersNotFound

func NewGetTeachersNotFound() *GetTeachersNotFound

NewGetTeachersNotFound creates a GetTeachersNotFound with default headers values

func (*GetTeachersNotFound) Code

func (o *GetTeachersNotFound) Code() int

Code gets the status code for the get teachers not found response

func (*GetTeachersNotFound) Error

func (o *GetTeachersNotFound) Error() string

func (*GetTeachersNotFound) IsClientError

func (o *GetTeachersNotFound) IsClientError() bool

IsClientError returns true when this get teachers not found response has a 4xx status code

func (*GetTeachersNotFound) IsCode

func (o *GetTeachersNotFound) IsCode(code int) bool

IsCode returns true when this get teachers not found response a status code equal to that given

func (*GetTeachersNotFound) IsRedirect

func (o *GetTeachersNotFound) IsRedirect() bool

IsRedirect returns true when this get teachers not found response has a 3xx status code

func (*GetTeachersNotFound) IsServerError

func (o *GetTeachersNotFound) IsServerError() bool

IsServerError returns true when this get teachers not found response has a 5xx status code

func (*GetTeachersNotFound) IsSuccess

func (o *GetTeachersNotFound) IsSuccess() bool

IsSuccess returns true when this get teachers not found response has a 2xx status code

func (*GetTeachersNotFound) String

func (o *GetTeachersNotFound) String() string

type GetTeachersOK

type GetTeachersOK struct {
	Payload []*models.Teacher
}

GetTeachersOK describes a response with status code 200, with default header values.

Teachers' response

func NewGetTeachersOK

func NewGetTeachersOK() *GetTeachersOK

NewGetTeachersOK creates a GetTeachersOK with default headers values

func (*GetTeachersOK) Code

func (o *GetTeachersOK) Code() int

Code gets the status code for the get teachers o k response

func (*GetTeachersOK) Error

func (o *GetTeachersOK) Error() string

func (*GetTeachersOK) GetPayload

func (o *GetTeachersOK) GetPayload() []*models.Teacher

func (*GetTeachersOK) IsClientError

func (o *GetTeachersOK) IsClientError() bool

IsClientError returns true when this get teachers o k response has a 4xx status code

func (*GetTeachersOK) IsCode

func (o *GetTeachersOK) IsCode(code int) bool

IsCode returns true when this get teachers o k response a status code equal to that given

func (*GetTeachersOK) IsRedirect

func (o *GetTeachersOK) IsRedirect() bool

IsRedirect returns true when this get teachers o k response has a 3xx status code

func (*GetTeachersOK) IsServerError

func (o *GetTeachersOK) IsServerError() bool

IsServerError returns true when this get teachers o k response has a 5xx status code

func (*GetTeachersOK) IsSuccess

func (o *GetTeachersOK) IsSuccess() bool

IsSuccess returns true when this get teachers o k response has a 2xx status code

func (*GetTeachersOK) String

func (o *GetTeachersOK) String() string

type GetTeachersOfClassInternalServerError

type GetTeachersOfClassInternalServerError struct {
}

GetTeachersOfClassInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetTeachersOfClassInternalServerError

func NewGetTeachersOfClassInternalServerError() *GetTeachersOfClassInternalServerError

NewGetTeachersOfClassInternalServerError creates a GetTeachersOfClassInternalServerError with default headers values

func (*GetTeachersOfClassInternalServerError) Code

Code gets the status code for the get teachers of class internal server error response

func (*GetTeachersOfClassInternalServerError) Error

func (*GetTeachersOfClassInternalServerError) IsClientError

func (o *GetTeachersOfClassInternalServerError) IsClientError() bool

IsClientError returns true when this get teachers of class internal server error response has a 4xx status code

func (*GetTeachersOfClassInternalServerError) IsCode

IsCode returns true when this get teachers of class internal server error response a status code equal to that given

func (*GetTeachersOfClassInternalServerError) IsRedirect

IsRedirect returns true when this get teachers of class internal server error response has a 3xx status code

func (*GetTeachersOfClassInternalServerError) IsServerError

func (o *GetTeachersOfClassInternalServerError) IsServerError() bool

IsServerError returns true when this get teachers of class internal server error response has a 5xx status code

func (*GetTeachersOfClassInternalServerError) IsSuccess

IsSuccess returns true when this get teachers of class internal server error response has a 2xx status code

func (*GetTeachersOfClassInternalServerError) String

type GetTeachersOfClassNotFound

type GetTeachersOfClassNotFound struct {
}

GetTeachersOfClassNotFound describes a response with status code 404, with default header values.

Class not found

func NewGetTeachersOfClassNotFound

func NewGetTeachersOfClassNotFound() *GetTeachersOfClassNotFound

NewGetTeachersOfClassNotFound creates a GetTeachersOfClassNotFound with default headers values

func (*GetTeachersOfClassNotFound) Code

func (o *GetTeachersOfClassNotFound) Code() int

Code gets the status code for the get teachers of class not found response

func (*GetTeachersOfClassNotFound) Error

func (*GetTeachersOfClassNotFound) IsClientError

func (o *GetTeachersOfClassNotFound) IsClientError() bool

IsClientError returns true when this get teachers of class not found response has a 4xx status code

func (*GetTeachersOfClassNotFound) IsCode

func (o *GetTeachersOfClassNotFound) IsCode(code int) bool

IsCode returns true when this get teachers of class not found response a status code equal to that given

func (*GetTeachersOfClassNotFound) IsRedirect

func (o *GetTeachersOfClassNotFound) IsRedirect() bool

IsRedirect returns true when this get teachers of class not found response has a 3xx status code

func (*GetTeachersOfClassNotFound) IsServerError

func (o *GetTeachersOfClassNotFound) IsServerError() bool

IsServerError returns true when this get teachers of class not found response has a 5xx status code

func (*GetTeachersOfClassNotFound) IsSuccess

func (o *GetTeachersOfClassNotFound) IsSuccess() bool

IsSuccess returns true when this get teachers of class not found response has a 2xx status code

func (*GetTeachersOfClassNotFound) String

func (o *GetTeachersOfClassNotFound) String() string

type GetTeachersOfClassOK

type GetTeachersOfClassOK struct {
	Payload []*models.Teacher
}

GetTeachersOfClassOK describes a response with status code 200, with default header values.

Class' Teachers as response

func NewGetTeachersOfClassOK

func NewGetTeachersOfClassOK() *GetTeachersOfClassOK

NewGetTeachersOfClassOK creates a GetTeachersOfClassOK with default headers values

func (*GetTeachersOfClassOK) Code

func (o *GetTeachersOfClassOK) Code() int

Code gets the status code for the get teachers of class o k response

func (*GetTeachersOfClassOK) Error

func (o *GetTeachersOfClassOK) Error() string

func (*GetTeachersOfClassOK) GetPayload

func (o *GetTeachersOfClassOK) GetPayload() []*models.Teacher

func (*GetTeachersOfClassOK) IsClientError

func (o *GetTeachersOfClassOK) IsClientError() bool

IsClientError returns true when this get teachers of class o k response has a 4xx status code

func (*GetTeachersOfClassOK) IsCode

func (o *GetTeachersOfClassOK) IsCode(code int) bool

IsCode returns true when this get teachers of class o k response a status code equal to that given

func (*GetTeachersOfClassOK) IsRedirect

func (o *GetTeachersOfClassOK) IsRedirect() bool

IsRedirect returns true when this get teachers of class o k response has a 3xx status code

func (*GetTeachersOfClassOK) IsServerError

func (o *GetTeachersOfClassOK) IsServerError() bool

IsServerError returns true when this get teachers of class o k response has a 5xx status code

func (*GetTeachersOfClassOK) IsSuccess

func (o *GetTeachersOfClassOK) IsSuccess() bool

IsSuccess returns true when this get teachers of class o k response has a 2xx status code

func (*GetTeachersOfClassOK) String

func (o *GetTeachersOfClassOK) String() string

type GetTeachersOfClassParams

type GetTeachersOfClassParams struct {

	/* ID.

	   The ID of the Class
	*/
	ID int64

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

GetTeachersOfClassParams contains all the parameters to send to the API endpoint

for the get teachers of class operation.

Typically these are written to a http.Request.

func NewGetTeachersOfClassParams

func NewGetTeachersOfClassParams() *GetTeachersOfClassParams

NewGetTeachersOfClassParams creates a new GetTeachersOfClassParams 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 NewGetTeachersOfClassParamsWithContext

func NewGetTeachersOfClassParamsWithContext(ctx context.Context) *GetTeachersOfClassParams

NewGetTeachersOfClassParamsWithContext creates a new GetTeachersOfClassParams object with the ability to set a context for a request.

func NewGetTeachersOfClassParamsWithHTTPClient

func NewGetTeachersOfClassParamsWithHTTPClient(client *http.Client) *GetTeachersOfClassParams

NewGetTeachersOfClassParamsWithHTTPClient creates a new GetTeachersOfClassParams object with the ability to set a custom HTTPClient for a request.

func NewGetTeachersOfClassParamsWithTimeout

func NewGetTeachersOfClassParamsWithTimeout(timeout time.Duration) *GetTeachersOfClassParams

NewGetTeachersOfClassParamsWithTimeout creates a new GetTeachersOfClassParams object with the ability to set a timeout on a request.

func (*GetTeachersOfClassParams) SetContext

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

SetContext adds the context to the get teachers of class params

func (*GetTeachersOfClassParams) SetDefaults

func (o *GetTeachersOfClassParams) SetDefaults()

SetDefaults hydrates default values in the get teachers of class params (not the query body).

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

func (*GetTeachersOfClassParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get teachers of class params

func (*GetTeachersOfClassParams) SetID

func (o *GetTeachersOfClassParams) SetID(id int64)

SetID adds the id to the get teachers of class params

func (*GetTeachersOfClassParams) SetTimeout

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

SetTimeout adds the timeout to the get teachers of class params

func (*GetTeachersOfClassParams) WithContext

WithContext adds the context to the get teachers of class params

func (*GetTeachersOfClassParams) WithDefaults

WithDefaults hydrates default values in the get teachers of class params (not the query body).

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

func (*GetTeachersOfClassParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get teachers of class params

func (*GetTeachersOfClassParams) WithID

WithID adds the id to the get teachers of class params

func (*GetTeachersOfClassParams) WithTimeout

WithTimeout adds the timeout to the get teachers of class params

func (*GetTeachersOfClassParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTeachersOfClassReader

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

GetTeachersOfClassReader is a Reader for the GetTeachersOfClass structure.

func (*GetTeachersOfClassReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTeachersParams

type GetTeachersParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetTeachersParams contains all the parameters to send to the API endpoint

for the get teachers operation.

Typically these are written to a http.Request.

func NewGetTeachersParams

func NewGetTeachersParams() *GetTeachersParams

NewGetTeachersParams creates a new GetTeachersParams 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 NewGetTeachersParamsWithContext

func NewGetTeachersParamsWithContext(ctx context.Context) *GetTeachersParams

NewGetTeachersParamsWithContext creates a new GetTeachersParams object with the ability to set a context for a request.

func NewGetTeachersParamsWithHTTPClient

func NewGetTeachersParamsWithHTTPClient(client *http.Client) *GetTeachersParams

NewGetTeachersParamsWithHTTPClient creates a new GetTeachersParams object with the ability to set a custom HTTPClient for a request.

func NewGetTeachersParamsWithTimeout

func NewGetTeachersParamsWithTimeout(timeout time.Duration) *GetTeachersParams

NewGetTeachersParamsWithTimeout creates a new GetTeachersParams object with the ability to set a timeout on a request.

func (*GetTeachersParams) SetContext

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

SetContext adds the context to the get teachers params

func (*GetTeachersParams) SetDefaults

func (o *GetTeachersParams) SetDefaults()

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

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

func (*GetTeachersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get teachers params

func (*GetTeachersParams) SetTimeout

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

SetTimeout adds the timeout to the get teachers params

func (*GetTeachersParams) WithContext

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

WithContext adds the context to the get teachers params

func (*GetTeachersParams) WithDefaults

func (o *GetTeachersParams) WithDefaults() *GetTeachersParams

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

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

func (*GetTeachersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get teachers params

func (*GetTeachersParams) WithTimeout

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

WithTimeout adds the timeout to the get teachers params

func (*GetTeachersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTeachersReader

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

GetTeachersReader is a Reader for the GetTeachers structure.

func (*GetTeachersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateAccountInternalServerError

type UpdateAccountInternalServerError struct {
}

UpdateAccountInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewUpdateAccountInternalServerError

func NewUpdateAccountInternalServerError() *UpdateAccountInternalServerError

NewUpdateAccountInternalServerError creates a UpdateAccountInternalServerError with default headers values

func (*UpdateAccountInternalServerError) Code

Code gets the status code for the update account internal server error response

func (*UpdateAccountInternalServerError) Error

func (*UpdateAccountInternalServerError) IsClientError

func (o *UpdateAccountInternalServerError) IsClientError() bool

IsClientError returns true when this update account internal server error response has a 4xx status code

func (*UpdateAccountInternalServerError) IsCode

func (o *UpdateAccountInternalServerError) IsCode(code int) bool

IsCode returns true when this update account internal server error response a status code equal to that given

func (*UpdateAccountInternalServerError) IsRedirect

func (o *UpdateAccountInternalServerError) IsRedirect() bool

IsRedirect returns true when this update account internal server error response has a 3xx status code

func (*UpdateAccountInternalServerError) IsServerError

func (o *UpdateAccountInternalServerError) IsServerError() bool

IsServerError returns true when this update account internal server error response has a 5xx status code

func (*UpdateAccountInternalServerError) IsSuccess

func (o *UpdateAccountInternalServerError) IsSuccess() bool

IsSuccess returns true when this update account internal server error response has a 2xx status code

func (*UpdateAccountInternalServerError) String

type UpdateAccountNotFound

type UpdateAccountNotFound struct {
}

UpdateAccountNotFound describes a response with status code 404, with default header values.

Account not found!

func NewUpdateAccountNotFound

func NewUpdateAccountNotFound() *UpdateAccountNotFound

NewUpdateAccountNotFound creates a UpdateAccountNotFound with default headers values

func (*UpdateAccountNotFound) Code

func (o *UpdateAccountNotFound) Code() int

Code gets the status code for the update account not found response

func (*UpdateAccountNotFound) Error

func (o *UpdateAccountNotFound) Error() string

func (*UpdateAccountNotFound) IsClientError

func (o *UpdateAccountNotFound) IsClientError() bool

IsClientError returns true when this update account not found response has a 4xx status code

func (*UpdateAccountNotFound) IsCode

func (o *UpdateAccountNotFound) IsCode(code int) bool

IsCode returns true when this update account not found response a status code equal to that given

func (*UpdateAccountNotFound) IsRedirect

func (o *UpdateAccountNotFound) IsRedirect() bool

IsRedirect returns true when this update account not found response has a 3xx status code

func (*UpdateAccountNotFound) IsServerError

func (o *UpdateAccountNotFound) IsServerError() bool

IsServerError returns true when this update account not found response has a 5xx status code

func (*UpdateAccountNotFound) IsSuccess

func (o *UpdateAccountNotFound) IsSuccess() bool

IsSuccess returns true when this update account not found response has a 2xx status code

func (*UpdateAccountNotFound) String

func (o *UpdateAccountNotFound) String() string

type UpdateAccountOK

type UpdateAccountOK struct {
	Payload *models.Account
}

UpdateAccountOK describes a response with status code 200, with default header values.

Account updated

func NewUpdateAccountOK

func NewUpdateAccountOK() *UpdateAccountOK

NewUpdateAccountOK creates a UpdateAccountOK with default headers values

func (*UpdateAccountOK) Code

func (o *UpdateAccountOK) Code() int

Code gets the status code for the update account o k response

func (*UpdateAccountOK) Error

func (o *UpdateAccountOK) Error() string

func (*UpdateAccountOK) GetPayload

func (o *UpdateAccountOK) GetPayload() *models.Account

func (*UpdateAccountOK) IsClientError

func (o *UpdateAccountOK) IsClientError() bool

IsClientError returns true when this update account o k response has a 4xx status code

func (*UpdateAccountOK) IsCode

func (o *UpdateAccountOK) IsCode(code int) bool

IsCode returns true when this update account o k response a status code equal to that given

func (*UpdateAccountOK) IsRedirect

func (o *UpdateAccountOK) IsRedirect() bool

IsRedirect returns true when this update account o k response has a 3xx status code

func (*UpdateAccountOK) IsServerError

func (o *UpdateAccountOK) IsServerError() bool

IsServerError returns true when this update account o k response has a 5xx status code

func (*UpdateAccountOK) IsSuccess

func (o *UpdateAccountOK) IsSuccess() bool

IsSuccess returns true when this update account o k response has a 2xx status code

func (*UpdateAccountOK) String

func (o *UpdateAccountOK) String() string

type UpdateAccountParams

type UpdateAccountParams struct {

	/* Account.

	   Account details
	*/
	Account *models.Account

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

UpdateAccountParams contains all the parameters to send to the API endpoint

for the update account operation.

Typically these are written to a http.Request.

func NewUpdateAccountParams

func NewUpdateAccountParams() *UpdateAccountParams

NewUpdateAccountParams creates a new UpdateAccountParams 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 NewUpdateAccountParamsWithContext

func NewUpdateAccountParamsWithContext(ctx context.Context) *UpdateAccountParams

NewUpdateAccountParamsWithContext creates a new UpdateAccountParams object with the ability to set a context for a request.

func NewUpdateAccountParamsWithHTTPClient

func NewUpdateAccountParamsWithHTTPClient(client *http.Client) *UpdateAccountParams

NewUpdateAccountParamsWithHTTPClient creates a new UpdateAccountParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateAccountParamsWithTimeout

func NewUpdateAccountParamsWithTimeout(timeout time.Duration) *UpdateAccountParams

NewUpdateAccountParamsWithTimeout creates a new UpdateAccountParams object with the ability to set a timeout on a request.

func (*UpdateAccountParams) SetAccount

func (o *UpdateAccountParams) SetAccount(account *models.Account)

SetAccount adds the account to the update account params

func (*UpdateAccountParams) SetContext

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

SetContext adds the context to the update account params

func (*UpdateAccountParams) SetDefaults

func (o *UpdateAccountParams) SetDefaults()

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

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

func (*UpdateAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update account params

func (*UpdateAccountParams) SetTimeout

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

SetTimeout adds the timeout to the update account params

func (*UpdateAccountParams) WithAccount

func (o *UpdateAccountParams) WithAccount(account *models.Account) *UpdateAccountParams

WithAccount adds the account to the update account params

func (*UpdateAccountParams) WithContext

WithContext adds the context to the update account params

func (*UpdateAccountParams) WithDefaults

func (o *UpdateAccountParams) WithDefaults() *UpdateAccountParams

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

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

func (*UpdateAccountParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update account params

func (*UpdateAccountParams) WithTimeout

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

WithTimeout adds the timeout to the update account params

func (*UpdateAccountParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateAccountReader

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

UpdateAccountReader is a Reader for the UpdateAccount structure.

func (*UpdateAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateClassNameBody

type UpdateClassNameBody struct {

	// name
	Name string `json:"Name,omitempty"`
}

UpdateClassNameBody update class name body swagger:model UpdateClassNameBody

func (*UpdateClassNameBody) ContextValidate

func (o *UpdateClassNameBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update class name body based on context it is used

func (*UpdateClassNameBody) MarshalBinary

func (o *UpdateClassNameBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateClassNameBody) UnmarshalBinary

func (o *UpdateClassNameBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateClassNameBody) Validate

func (o *UpdateClassNameBody) Validate(formats strfmt.Registry) error

Validate validates this update class name body

type UpdateClassNameInternalServerError

type UpdateClassNameInternalServerError struct {
}

UpdateClassNameInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewUpdateClassNameInternalServerError

func NewUpdateClassNameInternalServerError() *UpdateClassNameInternalServerError

NewUpdateClassNameInternalServerError creates a UpdateClassNameInternalServerError with default headers values

func (*UpdateClassNameInternalServerError) Code

Code gets the status code for the update class name internal server error response

func (*UpdateClassNameInternalServerError) Error

func (*UpdateClassNameInternalServerError) IsClientError

func (o *UpdateClassNameInternalServerError) IsClientError() bool

IsClientError returns true when this update class name internal server error response has a 4xx status code

func (*UpdateClassNameInternalServerError) IsCode

IsCode returns true when this update class name internal server error response a status code equal to that given

func (*UpdateClassNameInternalServerError) IsRedirect

func (o *UpdateClassNameInternalServerError) IsRedirect() bool

IsRedirect returns true when this update class name internal server error response has a 3xx status code

func (*UpdateClassNameInternalServerError) IsServerError

func (o *UpdateClassNameInternalServerError) IsServerError() bool

IsServerError returns true when this update class name internal server error response has a 5xx status code

func (*UpdateClassNameInternalServerError) IsSuccess

IsSuccess returns true when this update class name internal server error response has a 2xx status code

func (*UpdateClassNameInternalServerError) String

type UpdateClassNameNotFound

type UpdateClassNameNotFound struct {
}

UpdateClassNameNotFound describes a response with status code 404, with default header values.

Class not found!

func NewUpdateClassNameNotFound

func NewUpdateClassNameNotFound() *UpdateClassNameNotFound

NewUpdateClassNameNotFound creates a UpdateClassNameNotFound with default headers values

func (*UpdateClassNameNotFound) Code

func (o *UpdateClassNameNotFound) Code() int

Code gets the status code for the update class name not found response

func (*UpdateClassNameNotFound) Error

func (o *UpdateClassNameNotFound) Error() string

func (*UpdateClassNameNotFound) IsClientError

func (o *UpdateClassNameNotFound) IsClientError() bool

IsClientError returns true when this update class name not found response has a 4xx status code

func (*UpdateClassNameNotFound) IsCode

func (o *UpdateClassNameNotFound) IsCode(code int) bool

IsCode returns true when this update class name not found response a status code equal to that given

func (*UpdateClassNameNotFound) IsRedirect

func (o *UpdateClassNameNotFound) IsRedirect() bool

IsRedirect returns true when this update class name not found response has a 3xx status code

func (*UpdateClassNameNotFound) IsServerError

func (o *UpdateClassNameNotFound) IsServerError() bool

IsServerError returns true when this update class name not found response has a 5xx status code

func (*UpdateClassNameNotFound) IsSuccess

func (o *UpdateClassNameNotFound) IsSuccess() bool

IsSuccess returns true when this update class name not found response has a 2xx status code

func (*UpdateClassNameNotFound) String

func (o *UpdateClassNameNotFound) String() string

type UpdateClassNameOK

type UpdateClassNameOK struct {
	Payload int64
}

UpdateClassNameOK describes a response with status code 200, with default header values.

Class Name updated Successfully!

func NewUpdateClassNameOK

func NewUpdateClassNameOK() *UpdateClassNameOK

NewUpdateClassNameOK creates a UpdateClassNameOK with default headers values

func (*UpdateClassNameOK) Code

func (o *UpdateClassNameOK) Code() int

Code gets the status code for the update class name o k response

func (*UpdateClassNameOK) Error

func (o *UpdateClassNameOK) Error() string

func (*UpdateClassNameOK) GetPayload

func (o *UpdateClassNameOK) GetPayload() int64

func (*UpdateClassNameOK) IsClientError

func (o *UpdateClassNameOK) IsClientError() bool

IsClientError returns true when this update class name o k response has a 4xx status code

func (*UpdateClassNameOK) IsCode

func (o *UpdateClassNameOK) IsCode(code int) bool

IsCode returns true when this update class name o k response a status code equal to that given

func (*UpdateClassNameOK) IsRedirect

func (o *UpdateClassNameOK) IsRedirect() bool

IsRedirect returns true when this update class name o k response has a 3xx status code

func (*UpdateClassNameOK) IsServerError

func (o *UpdateClassNameOK) IsServerError() bool

IsServerError returns true when this update class name o k response has a 5xx status code

func (*UpdateClassNameOK) IsSuccess

func (o *UpdateClassNameOK) IsSuccess() bool

IsSuccess returns true when this update class name o k response has a 2xx status code

func (*UpdateClassNameOK) String

func (o *UpdateClassNameOK) String() string

type UpdateClassNameParams

type UpdateClassNameParams struct {

	/* ID.

	   Class ID
	*/
	ID int64

	/* Name.

	   Updated Name to be stored
	*/
	Name UpdateClassNameBody

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

UpdateClassNameParams contains all the parameters to send to the API endpoint

for the update class name operation.

Typically these are written to a http.Request.

func NewUpdateClassNameParams

func NewUpdateClassNameParams() *UpdateClassNameParams

NewUpdateClassNameParams creates a new UpdateClassNameParams 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 NewUpdateClassNameParamsWithContext

func NewUpdateClassNameParamsWithContext(ctx context.Context) *UpdateClassNameParams

NewUpdateClassNameParamsWithContext creates a new UpdateClassNameParams object with the ability to set a context for a request.

func NewUpdateClassNameParamsWithHTTPClient

func NewUpdateClassNameParamsWithHTTPClient(client *http.Client) *UpdateClassNameParams

NewUpdateClassNameParamsWithHTTPClient creates a new UpdateClassNameParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateClassNameParamsWithTimeout

func NewUpdateClassNameParamsWithTimeout(timeout time.Duration) *UpdateClassNameParams

NewUpdateClassNameParamsWithTimeout creates a new UpdateClassNameParams object with the ability to set a timeout on a request.

func (*UpdateClassNameParams) SetContext

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

SetContext adds the context to the update class name params

func (*UpdateClassNameParams) SetDefaults

func (o *UpdateClassNameParams) SetDefaults()

SetDefaults hydrates default values in the update class name params (not the query body).

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

func (*UpdateClassNameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update class name params

func (*UpdateClassNameParams) SetID

func (o *UpdateClassNameParams) SetID(id int64)

SetID adds the id to the update class name params

func (*UpdateClassNameParams) SetName

func (o *UpdateClassNameParams) SetName(name UpdateClassNameBody)

SetName adds the name to the update class name params

func (*UpdateClassNameParams) SetTimeout

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

SetTimeout adds the timeout to the update class name params

func (*UpdateClassNameParams) WithContext

WithContext adds the context to the update class name params

func (*UpdateClassNameParams) WithDefaults

func (o *UpdateClassNameParams) WithDefaults() *UpdateClassNameParams

WithDefaults hydrates default values in the update class name params (not the query body).

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

func (*UpdateClassNameParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update class name params

func (*UpdateClassNameParams) WithID

WithID adds the id to the update class name params

func (*UpdateClassNameParams) WithName

WithName adds the name to the update class name params

func (*UpdateClassNameParams) WithTimeout

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

WithTimeout adds the timeout to the update class name params

func (*UpdateClassNameParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateClassNameReader

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

UpdateClassNameReader is a Reader for the UpdateClassName structure.

func (*UpdateClassNameReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateGPABody

type UpdateGPABody struct {

	// g p a
	GPA float64 `json:"GPA,omitempty"`
}

UpdateGPABody update g p a body swagger:model UpdateGPABody

func (*UpdateGPABody) ContextValidate

func (o *UpdateGPABody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update g p a body based on context it is used

func (*UpdateGPABody) MarshalBinary

func (o *UpdateGPABody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateGPABody) UnmarshalBinary

func (o *UpdateGPABody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateGPABody) Validate

func (o *UpdateGPABody) Validate(formats strfmt.Registry) error

Validate validates this update g p a body

type UpdateGPAInternalServerError

type UpdateGPAInternalServerError struct {
}

UpdateGPAInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewUpdateGPAInternalServerError

func NewUpdateGPAInternalServerError() *UpdateGPAInternalServerError

NewUpdateGPAInternalServerError creates a UpdateGPAInternalServerError with default headers values

func (*UpdateGPAInternalServerError) Code

Code gets the status code for the update g p a internal server error response

func (*UpdateGPAInternalServerError) Error

func (*UpdateGPAInternalServerError) IsClientError

func (o *UpdateGPAInternalServerError) IsClientError() bool

IsClientError returns true when this update g p a internal server error response has a 4xx status code

func (*UpdateGPAInternalServerError) IsCode

func (o *UpdateGPAInternalServerError) IsCode(code int) bool

IsCode returns true when this update g p a internal server error response a status code equal to that given

func (*UpdateGPAInternalServerError) IsRedirect

func (o *UpdateGPAInternalServerError) IsRedirect() bool

IsRedirect returns true when this update g p a internal server error response has a 3xx status code

func (*UpdateGPAInternalServerError) IsServerError

func (o *UpdateGPAInternalServerError) IsServerError() bool

IsServerError returns true when this update g p a internal server error response has a 5xx status code

func (*UpdateGPAInternalServerError) IsSuccess

func (o *UpdateGPAInternalServerError) IsSuccess() bool

IsSuccess returns true when this update g p a internal server error response has a 2xx status code

func (*UpdateGPAInternalServerError) String

type UpdateGPANotFound

type UpdateGPANotFound struct {
}

UpdateGPANotFound describes a response with status code 404, with default header values.

Student Not found!

func NewUpdateGPANotFound

func NewUpdateGPANotFound() *UpdateGPANotFound

NewUpdateGPANotFound creates a UpdateGPANotFound with default headers values

func (*UpdateGPANotFound) Code

func (o *UpdateGPANotFound) Code() int

Code gets the status code for the update g p a not found response

func (*UpdateGPANotFound) Error

func (o *UpdateGPANotFound) Error() string

func (*UpdateGPANotFound) IsClientError

func (o *UpdateGPANotFound) IsClientError() bool

IsClientError returns true when this update g p a not found response has a 4xx status code

func (*UpdateGPANotFound) IsCode

func (o *UpdateGPANotFound) IsCode(code int) bool

IsCode returns true when this update g p a not found response a status code equal to that given

func (*UpdateGPANotFound) IsRedirect

func (o *UpdateGPANotFound) IsRedirect() bool

IsRedirect returns true when this update g p a not found response has a 3xx status code

func (*UpdateGPANotFound) IsServerError

func (o *UpdateGPANotFound) IsServerError() bool

IsServerError returns true when this update g p a not found response has a 5xx status code

func (*UpdateGPANotFound) IsSuccess

func (o *UpdateGPANotFound) IsSuccess() bool

IsSuccess returns true when this update g p a not found response has a 2xx status code

func (*UpdateGPANotFound) String

func (o *UpdateGPANotFound) String() string

type UpdateGPAOK

type UpdateGPAOK struct {
	Payload int64
}

UpdateGPAOK describes a response with status code 200, with default header values.

GPA assigned to Student

func NewUpdateGPAOK

func NewUpdateGPAOK() *UpdateGPAOK

NewUpdateGPAOK creates a UpdateGPAOK with default headers values

func (*UpdateGPAOK) Code

func (o *UpdateGPAOK) Code() int

Code gets the status code for the update g p a o k response

func (*UpdateGPAOK) Error

func (o *UpdateGPAOK) Error() string

func (*UpdateGPAOK) GetPayload

func (o *UpdateGPAOK) GetPayload() int64

func (*UpdateGPAOK) IsClientError

func (o *UpdateGPAOK) IsClientError() bool

IsClientError returns true when this update g p a o k response has a 4xx status code

func (*UpdateGPAOK) IsCode

func (o *UpdateGPAOK) IsCode(code int) bool

IsCode returns true when this update g p a o k response a status code equal to that given

func (*UpdateGPAOK) IsRedirect

func (o *UpdateGPAOK) IsRedirect() bool

IsRedirect returns true when this update g p a o k response has a 3xx status code

func (*UpdateGPAOK) IsServerError

func (o *UpdateGPAOK) IsServerError() bool

IsServerError returns true when this update g p a o k response has a 5xx status code

func (*UpdateGPAOK) IsSuccess

func (o *UpdateGPAOK) IsSuccess() bool

IsSuccess returns true when this update g p a o k response has a 2xx status code

func (*UpdateGPAOK) String

func (o *UpdateGPAOK) String() string

type UpdateGPAParams

type UpdateGPAParams struct {

	/* ID.

	   Student ID
	*/
	ID int64

	/* Gpa.

	   The object containing gpa to be assigned
	*/
	Gpa UpdateGPABody

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

UpdateGPAParams contains all the parameters to send to the API endpoint

for the update g p a operation.

Typically these are written to a http.Request.

func NewUpdateGPAParams

func NewUpdateGPAParams() *UpdateGPAParams

NewUpdateGPAParams creates a new UpdateGPAParams 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 NewUpdateGPAParamsWithContext

func NewUpdateGPAParamsWithContext(ctx context.Context) *UpdateGPAParams

NewUpdateGPAParamsWithContext creates a new UpdateGPAParams object with the ability to set a context for a request.

func NewUpdateGPAParamsWithHTTPClient

func NewUpdateGPAParamsWithHTTPClient(client *http.Client) *UpdateGPAParams

NewUpdateGPAParamsWithHTTPClient creates a new UpdateGPAParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateGPAParamsWithTimeout

func NewUpdateGPAParamsWithTimeout(timeout time.Duration) *UpdateGPAParams

NewUpdateGPAParamsWithTimeout creates a new UpdateGPAParams object with the ability to set a timeout on a request.

func (*UpdateGPAParams) SetContext

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

SetContext adds the context to the update g p a params

func (*UpdateGPAParams) SetDefaults

func (o *UpdateGPAParams) SetDefaults()

SetDefaults hydrates default values in the update g p a params (not the query body).

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

func (*UpdateGPAParams) SetGpa

func (o *UpdateGPAParams) SetGpa(gpa UpdateGPABody)

SetGpa adds the gpa to the update g p a params

func (*UpdateGPAParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update g p a params

func (*UpdateGPAParams) SetID

func (o *UpdateGPAParams) SetID(id int64)

SetID adds the id to the update g p a params

func (*UpdateGPAParams) SetTimeout

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

SetTimeout adds the timeout to the update g p a params

func (*UpdateGPAParams) WithContext

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

WithContext adds the context to the update g p a params

func (*UpdateGPAParams) WithDefaults

func (o *UpdateGPAParams) WithDefaults() *UpdateGPAParams

WithDefaults hydrates default values in the update g p a params (not the query body).

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

func (*UpdateGPAParams) WithGpa

WithGpa adds the gpa to the update g p a params

func (*UpdateGPAParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update g p a params

func (*UpdateGPAParams) WithID

func (o *UpdateGPAParams) WithID(id int64) *UpdateGPAParams

WithID adds the id to the update g p a params

func (*UpdateGPAParams) WithTimeout

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

WithTimeout adds the timeout to the update g p a params

func (*UpdateGPAParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateGPAReader

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

UpdateGPAReader is a Reader for the UpdateGPA structure.

func (*UpdateGPAReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateStudentNameBody

type UpdateStudentNameBody struct {

	// name
	Name string `json:"Name,omitempty"`
}

UpdateStudentNameBody update student name body swagger:model UpdateStudentNameBody

func (*UpdateStudentNameBody) ContextValidate

func (o *UpdateStudentNameBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update student name body based on context it is used

func (*UpdateStudentNameBody) MarshalBinary

func (o *UpdateStudentNameBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateStudentNameBody) UnmarshalBinary

func (o *UpdateStudentNameBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateStudentNameBody) Validate

func (o *UpdateStudentNameBody) Validate(formats strfmt.Registry) error

Validate validates this update student name body

type UpdateStudentNameInternalServerError

type UpdateStudentNameInternalServerError struct {
}

UpdateStudentNameInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewUpdateStudentNameInternalServerError

func NewUpdateStudentNameInternalServerError() *UpdateStudentNameInternalServerError

NewUpdateStudentNameInternalServerError creates a UpdateStudentNameInternalServerError with default headers values

func (*UpdateStudentNameInternalServerError) Code

Code gets the status code for the update student name internal server error response

func (*UpdateStudentNameInternalServerError) Error

func (*UpdateStudentNameInternalServerError) IsClientError

func (o *UpdateStudentNameInternalServerError) IsClientError() bool

IsClientError returns true when this update student name internal server error response has a 4xx status code

func (*UpdateStudentNameInternalServerError) IsCode

IsCode returns true when this update student name internal server error response a status code equal to that given

func (*UpdateStudentNameInternalServerError) IsRedirect

IsRedirect returns true when this update student name internal server error response has a 3xx status code

func (*UpdateStudentNameInternalServerError) IsServerError

func (o *UpdateStudentNameInternalServerError) IsServerError() bool

IsServerError returns true when this update student name internal server error response has a 5xx status code

func (*UpdateStudentNameInternalServerError) IsSuccess

IsSuccess returns true when this update student name internal server error response has a 2xx status code

func (*UpdateStudentNameInternalServerError) String

type UpdateStudentNameNotFound

type UpdateStudentNameNotFound struct {
}

UpdateStudentNameNotFound describes a response with status code 404, with default header values.

Student not found!

func NewUpdateStudentNameNotFound

func NewUpdateStudentNameNotFound() *UpdateStudentNameNotFound

NewUpdateStudentNameNotFound creates a UpdateStudentNameNotFound with default headers values

func (*UpdateStudentNameNotFound) Code

func (o *UpdateStudentNameNotFound) Code() int

Code gets the status code for the update student name not found response

func (*UpdateStudentNameNotFound) Error

func (o *UpdateStudentNameNotFound) Error() string

func (*UpdateStudentNameNotFound) IsClientError

func (o *UpdateStudentNameNotFound) IsClientError() bool

IsClientError returns true when this update student name not found response has a 4xx status code

func (*UpdateStudentNameNotFound) IsCode

func (o *UpdateStudentNameNotFound) IsCode(code int) bool

IsCode returns true when this update student name not found response a status code equal to that given

func (*UpdateStudentNameNotFound) IsRedirect

func (o *UpdateStudentNameNotFound) IsRedirect() bool

IsRedirect returns true when this update student name not found response has a 3xx status code

func (*UpdateStudentNameNotFound) IsServerError

func (o *UpdateStudentNameNotFound) IsServerError() bool

IsServerError returns true when this update student name not found response has a 5xx status code

func (*UpdateStudentNameNotFound) IsSuccess

func (o *UpdateStudentNameNotFound) IsSuccess() bool

IsSuccess returns true when this update student name not found response has a 2xx status code

func (*UpdateStudentNameNotFound) String

func (o *UpdateStudentNameNotFound) String() string

type UpdateStudentNameOK

type UpdateStudentNameOK struct {
	Payload int64
}

UpdateStudentNameOK describes a response with status code 200, with default header values.

Student Name updated Successfully!

func NewUpdateStudentNameOK

func NewUpdateStudentNameOK() *UpdateStudentNameOK

NewUpdateStudentNameOK creates a UpdateStudentNameOK with default headers values

func (*UpdateStudentNameOK) Code

func (o *UpdateStudentNameOK) Code() int

Code gets the status code for the update student name o k response

func (*UpdateStudentNameOK) Error

func (o *UpdateStudentNameOK) Error() string

func (*UpdateStudentNameOK) GetPayload

func (o *UpdateStudentNameOK) GetPayload() int64

func (*UpdateStudentNameOK) IsClientError

func (o *UpdateStudentNameOK) IsClientError() bool

IsClientError returns true when this update student name o k response has a 4xx status code

func (*UpdateStudentNameOK) IsCode

func (o *UpdateStudentNameOK) IsCode(code int) bool

IsCode returns true when this update student name o k response a status code equal to that given

func (*UpdateStudentNameOK) IsRedirect

func (o *UpdateStudentNameOK) IsRedirect() bool

IsRedirect returns true when this update student name o k response has a 3xx status code

func (*UpdateStudentNameOK) IsServerError

func (o *UpdateStudentNameOK) IsServerError() bool

IsServerError returns true when this update student name o k response has a 5xx status code

func (*UpdateStudentNameOK) IsSuccess

func (o *UpdateStudentNameOK) IsSuccess() bool

IsSuccess returns true when this update student name o k response has a 2xx status code

func (*UpdateStudentNameOK) String

func (o *UpdateStudentNameOK) String() string

type UpdateStudentNameParams

type UpdateStudentNameParams struct {

	/* ID.

	   Student ID
	*/
	ID int64

	/* Name.

	   Updated Name to be stored
	*/
	Name UpdateStudentNameBody

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

UpdateStudentNameParams contains all the parameters to send to the API endpoint

for the update student name operation.

Typically these are written to a http.Request.

func NewUpdateStudentNameParams

func NewUpdateStudentNameParams() *UpdateStudentNameParams

NewUpdateStudentNameParams creates a new UpdateStudentNameParams 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 NewUpdateStudentNameParamsWithContext

func NewUpdateStudentNameParamsWithContext(ctx context.Context) *UpdateStudentNameParams

NewUpdateStudentNameParamsWithContext creates a new UpdateStudentNameParams object with the ability to set a context for a request.

func NewUpdateStudentNameParamsWithHTTPClient

func NewUpdateStudentNameParamsWithHTTPClient(client *http.Client) *UpdateStudentNameParams

NewUpdateStudentNameParamsWithHTTPClient creates a new UpdateStudentNameParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateStudentNameParamsWithTimeout

func NewUpdateStudentNameParamsWithTimeout(timeout time.Duration) *UpdateStudentNameParams

NewUpdateStudentNameParamsWithTimeout creates a new UpdateStudentNameParams object with the ability to set a timeout on a request.

func (*UpdateStudentNameParams) SetContext

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

SetContext adds the context to the update student name params

func (*UpdateStudentNameParams) SetDefaults

func (o *UpdateStudentNameParams) SetDefaults()

SetDefaults hydrates default values in the update student name params (not the query body).

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

func (*UpdateStudentNameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update student name params

func (*UpdateStudentNameParams) SetID

func (o *UpdateStudentNameParams) SetID(id int64)

SetID adds the id to the update student name params

func (*UpdateStudentNameParams) SetName

SetName adds the name to the update student name params

func (*UpdateStudentNameParams) SetTimeout

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

SetTimeout adds the timeout to the update student name params

func (*UpdateStudentNameParams) WithContext

WithContext adds the context to the update student name params

func (*UpdateStudentNameParams) WithDefaults

WithDefaults hydrates default values in the update student name params (not the query body).

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

func (*UpdateStudentNameParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update student name params

func (*UpdateStudentNameParams) WithID

WithID adds the id to the update student name params

func (*UpdateStudentNameParams) WithName

WithName adds the name to the update student name params

func (*UpdateStudentNameParams) WithTimeout

WithTimeout adds the timeout to the update student name params

func (*UpdateStudentNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateStudentNameReader

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

UpdateStudentNameReader is a Reader for the UpdateStudentName structure.

func (*UpdateStudentNameReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateSubjectNameBody

type UpdateSubjectNameBody struct {

	// name
	Name string `json:"Name,omitempty"`
}

UpdateSubjectNameBody update subject name body swagger:model UpdateSubjectNameBody

func (*UpdateSubjectNameBody) ContextValidate

func (o *UpdateSubjectNameBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update subject name body based on context it is used

func (*UpdateSubjectNameBody) MarshalBinary

func (o *UpdateSubjectNameBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateSubjectNameBody) UnmarshalBinary

func (o *UpdateSubjectNameBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateSubjectNameBody) Validate

func (o *UpdateSubjectNameBody) Validate(formats strfmt.Registry) error

Validate validates this update subject name body

type UpdateSubjectNameInternalServerError

type UpdateSubjectNameInternalServerError struct {
}

UpdateSubjectNameInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewUpdateSubjectNameInternalServerError

func NewUpdateSubjectNameInternalServerError() *UpdateSubjectNameInternalServerError

NewUpdateSubjectNameInternalServerError creates a UpdateSubjectNameInternalServerError with default headers values

func (*UpdateSubjectNameInternalServerError) Code

Code gets the status code for the update subject name internal server error response

func (*UpdateSubjectNameInternalServerError) Error

func (*UpdateSubjectNameInternalServerError) IsClientError

func (o *UpdateSubjectNameInternalServerError) IsClientError() bool

IsClientError returns true when this update subject name internal server error response has a 4xx status code

func (*UpdateSubjectNameInternalServerError) IsCode

IsCode returns true when this update subject name internal server error response a status code equal to that given

func (*UpdateSubjectNameInternalServerError) IsRedirect

IsRedirect returns true when this update subject name internal server error response has a 3xx status code

func (*UpdateSubjectNameInternalServerError) IsServerError

func (o *UpdateSubjectNameInternalServerError) IsServerError() bool

IsServerError returns true when this update subject name internal server error response has a 5xx status code

func (*UpdateSubjectNameInternalServerError) IsSuccess

IsSuccess returns true when this update subject name internal server error response has a 2xx status code

func (*UpdateSubjectNameInternalServerError) String

type UpdateSubjectNameNotFound

type UpdateSubjectNameNotFound struct {
}

UpdateSubjectNameNotFound describes a response with status code 404, with default header values.

Subject not found!

func NewUpdateSubjectNameNotFound

func NewUpdateSubjectNameNotFound() *UpdateSubjectNameNotFound

NewUpdateSubjectNameNotFound creates a UpdateSubjectNameNotFound with default headers values

func (*UpdateSubjectNameNotFound) Code

func (o *UpdateSubjectNameNotFound) Code() int

Code gets the status code for the update subject name not found response

func (*UpdateSubjectNameNotFound) Error

func (o *UpdateSubjectNameNotFound) Error() string

func (*UpdateSubjectNameNotFound) IsClientError

func (o *UpdateSubjectNameNotFound) IsClientError() bool

IsClientError returns true when this update subject name not found response has a 4xx status code

func (*UpdateSubjectNameNotFound) IsCode

func (o *UpdateSubjectNameNotFound) IsCode(code int) bool

IsCode returns true when this update subject name not found response a status code equal to that given

func (*UpdateSubjectNameNotFound) IsRedirect

func (o *UpdateSubjectNameNotFound) IsRedirect() bool

IsRedirect returns true when this update subject name not found response has a 3xx status code

func (*UpdateSubjectNameNotFound) IsServerError

func (o *UpdateSubjectNameNotFound) IsServerError() bool

IsServerError returns true when this update subject name not found response has a 5xx status code

func (*UpdateSubjectNameNotFound) IsSuccess

func (o *UpdateSubjectNameNotFound) IsSuccess() bool

IsSuccess returns true when this update subject name not found response has a 2xx status code

func (*UpdateSubjectNameNotFound) String

func (o *UpdateSubjectNameNotFound) String() string

type UpdateSubjectNameOK

type UpdateSubjectNameOK struct {
	Payload int64
}

UpdateSubjectNameOK describes a response with status code 200, with default header values.

Subject Name updated Successfully!

func NewUpdateSubjectNameOK

func NewUpdateSubjectNameOK() *UpdateSubjectNameOK

NewUpdateSubjectNameOK creates a UpdateSubjectNameOK with default headers values

func (*UpdateSubjectNameOK) Code

func (o *UpdateSubjectNameOK) Code() int

Code gets the status code for the update subject name o k response

func (*UpdateSubjectNameOK) Error

func (o *UpdateSubjectNameOK) Error() string

func (*UpdateSubjectNameOK) GetPayload

func (o *UpdateSubjectNameOK) GetPayload() int64

func (*UpdateSubjectNameOK) IsClientError

func (o *UpdateSubjectNameOK) IsClientError() bool

IsClientError returns true when this update subject name o k response has a 4xx status code

func (*UpdateSubjectNameOK) IsCode

func (o *UpdateSubjectNameOK) IsCode(code int) bool

IsCode returns true when this update subject name o k response a status code equal to that given

func (*UpdateSubjectNameOK) IsRedirect

func (o *UpdateSubjectNameOK) IsRedirect() bool

IsRedirect returns true when this update subject name o k response has a 3xx status code

func (*UpdateSubjectNameOK) IsServerError

func (o *UpdateSubjectNameOK) IsServerError() bool

IsServerError returns true when this update subject name o k response has a 5xx status code

func (*UpdateSubjectNameOK) IsSuccess

func (o *UpdateSubjectNameOK) IsSuccess() bool

IsSuccess returns true when this update subject name o k response has a 2xx status code

func (*UpdateSubjectNameOK) String

func (o *UpdateSubjectNameOK) String() string

type UpdateSubjectNameParams

type UpdateSubjectNameParams struct {

	/* ID.

	   Subject ID
	*/
	ID int64

	/* Name.

	   Updated Name to be stored
	*/
	Name UpdateSubjectNameBody

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

UpdateSubjectNameParams contains all the parameters to send to the API endpoint

for the update subject name operation.

Typically these are written to a http.Request.

func NewUpdateSubjectNameParams

func NewUpdateSubjectNameParams() *UpdateSubjectNameParams

NewUpdateSubjectNameParams creates a new UpdateSubjectNameParams 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 NewUpdateSubjectNameParamsWithContext

func NewUpdateSubjectNameParamsWithContext(ctx context.Context) *UpdateSubjectNameParams

NewUpdateSubjectNameParamsWithContext creates a new UpdateSubjectNameParams object with the ability to set a context for a request.

func NewUpdateSubjectNameParamsWithHTTPClient

func NewUpdateSubjectNameParamsWithHTTPClient(client *http.Client) *UpdateSubjectNameParams

NewUpdateSubjectNameParamsWithHTTPClient creates a new UpdateSubjectNameParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateSubjectNameParamsWithTimeout

func NewUpdateSubjectNameParamsWithTimeout(timeout time.Duration) *UpdateSubjectNameParams

NewUpdateSubjectNameParamsWithTimeout creates a new UpdateSubjectNameParams object with the ability to set a timeout on a request.

func (*UpdateSubjectNameParams) SetContext

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

SetContext adds the context to the update subject name params

func (*UpdateSubjectNameParams) SetDefaults

func (o *UpdateSubjectNameParams) SetDefaults()

SetDefaults hydrates default values in the update subject name params (not the query body).

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

func (*UpdateSubjectNameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update subject name params

func (*UpdateSubjectNameParams) SetID

func (o *UpdateSubjectNameParams) SetID(id int64)

SetID adds the id to the update subject name params

func (*UpdateSubjectNameParams) SetName

SetName adds the name to the update subject name params

func (*UpdateSubjectNameParams) SetTimeout

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

SetTimeout adds the timeout to the update subject name params

func (*UpdateSubjectNameParams) WithContext

WithContext adds the context to the update subject name params

func (*UpdateSubjectNameParams) WithDefaults

WithDefaults hydrates default values in the update subject name params (not the query body).

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

func (*UpdateSubjectNameParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update subject name params

func (*UpdateSubjectNameParams) WithID

WithID adds the id to the update subject name params

func (*UpdateSubjectNameParams) WithName

WithName adds the name to the update subject name params

func (*UpdateSubjectNameParams) WithTimeout

WithTimeout adds the timeout to the update subject name params

func (*UpdateSubjectNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateSubjectNameReader

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

UpdateSubjectNameReader is a Reader for the UpdateSubjectName structure.

func (*UpdateSubjectNameReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateTeacherNameBody

type UpdateTeacherNameBody struct {

	// name
	Name string `json:"Name,omitempty"`
}

UpdateTeacherNameBody update teacher name body swagger:model UpdateTeacherNameBody

func (*UpdateTeacherNameBody) ContextValidate

func (o *UpdateTeacherNameBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update teacher name body based on context it is used

func (*UpdateTeacherNameBody) MarshalBinary

func (o *UpdateTeacherNameBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateTeacherNameBody) UnmarshalBinary

func (o *UpdateTeacherNameBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateTeacherNameBody) Validate

func (o *UpdateTeacherNameBody) Validate(formats strfmt.Registry) error

Validate validates this update teacher name body

type UpdateTeacherNameInternalServerError

type UpdateTeacherNameInternalServerError struct {
}

UpdateTeacherNameInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewUpdateTeacherNameInternalServerError

func NewUpdateTeacherNameInternalServerError() *UpdateTeacherNameInternalServerError

NewUpdateTeacherNameInternalServerError creates a UpdateTeacherNameInternalServerError with default headers values

func (*UpdateTeacherNameInternalServerError) Code

Code gets the status code for the update teacher name internal server error response

func (*UpdateTeacherNameInternalServerError) Error

func (*UpdateTeacherNameInternalServerError) IsClientError

func (o *UpdateTeacherNameInternalServerError) IsClientError() bool

IsClientError returns true when this update teacher name internal server error response has a 4xx status code

func (*UpdateTeacherNameInternalServerError) IsCode

IsCode returns true when this update teacher name internal server error response a status code equal to that given

func (*UpdateTeacherNameInternalServerError) IsRedirect

IsRedirect returns true when this update teacher name internal server error response has a 3xx status code

func (*UpdateTeacherNameInternalServerError) IsServerError

func (o *UpdateTeacherNameInternalServerError) IsServerError() bool

IsServerError returns true when this update teacher name internal server error response has a 5xx status code

func (*UpdateTeacherNameInternalServerError) IsSuccess

IsSuccess returns true when this update teacher name internal server error response has a 2xx status code

func (*UpdateTeacherNameInternalServerError) String

type UpdateTeacherNameNotFound

type UpdateTeacherNameNotFound struct {
}

UpdateTeacherNameNotFound describes a response with status code 404, with default header values.

Teacher not found!

func NewUpdateTeacherNameNotFound

func NewUpdateTeacherNameNotFound() *UpdateTeacherNameNotFound

NewUpdateTeacherNameNotFound creates a UpdateTeacherNameNotFound with default headers values

func (*UpdateTeacherNameNotFound) Code

func (o *UpdateTeacherNameNotFound) Code() int

Code gets the status code for the update teacher name not found response

func (*UpdateTeacherNameNotFound) Error

func (o *UpdateTeacherNameNotFound) Error() string

func (*UpdateTeacherNameNotFound) IsClientError

func (o *UpdateTeacherNameNotFound) IsClientError() bool

IsClientError returns true when this update teacher name not found response has a 4xx status code

func (*UpdateTeacherNameNotFound) IsCode

func (o *UpdateTeacherNameNotFound) IsCode(code int) bool

IsCode returns true when this update teacher name not found response a status code equal to that given

func (*UpdateTeacherNameNotFound) IsRedirect

func (o *UpdateTeacherNameNotFound) IsRedirect() bool

IsRedirect returns true when this update teacher name not found response has a 3xx status code

func (*UpdateTeacherNameNotFound) IsServerError

func (o *UpdateTeacherNameNotFound) IsServerError() bool

IsServerError returns true when this update teacher name not found response has a 5xx status code

func (*UpdateTeacherNameNotFound) IsSuccess

func (o *UpdateTeacherNameNotFound) IsSuccess() bool

IsSuccess returns true when this update teacher name not found response has a 2xx status code

func (*UpdateTeacherNameNotFound) String

func (o *UpdateTeacherNameNotFound) String() string

type UpdateTeacherNameOK

type UpdateTeacherNameOK struct {
	Payload int64
}

UpdateTeacherNameOK describes a response with status code 200, with default header values.

Teacher updated

func NewUpdateTeacherNameOK

func NewUpdateTeacherNameOK() *UpdateTeacherNameOK

NewUpdateTeacherNameOK creates a UpdateTeacherNameOK with default headers values

func (*UpdateTeacherNameOK) Code

func (o *UpdateTeacherNameOK) Code() int

Code gets the status code for the update teacher name o k response

func (*UpdateTeacherNameOK) Error

func (o *UpdateTeacherNameOK) Error() string

func (*UpdateTeacherNameOK) GetPayload

func (o *UpdateTeacherNameOK) GetPayload() int64

func (*UpdateTeacherNameOK) IsClientError

func (o *UpdateTeacherNameOK) IsClientError() bool

IsClientError returns true when this update teacher name o k response has a 4xx status code

func (*UpdateTeacherNameOK) IsCode

func (o *UpdateTeacherNameOK) IsCode(code int) bool

IsCode returns true when this update teacher name o k response a status code equal to that given

func (*UpdateTeacherNameOK) IsRedirect

func (o *UpdateTeacherNameOK) IsRedirect() bool

IsRedirect returns true when this update teacher name o k response has a 3xx status code

func (*UpdateTeacherNameOK) IsServerError

func (o *UpdateTeacherNameOK) IsServerError() bool

IsServerError returns true when this update teacher name o k response has a 5xx status code

func (*UpdateTeacherNameOK) IsSuccess

func (o *UpdateTeacherNameOK) IsSuccess() bool

IsSuccess returns true when this update teacher name o k response has a 2xx status code

func (*UpdateTeacherNameOK) String

func (o *UpdateTeacherNameOK) String() string

type UpdateTeacherNameParams

type UpdateTeacherNameParams struct {

	/* ID.

	   Teacher ID
	*/
	ID int64

	/* Name.

	   Updated Name to be stored
	*/
	Name UpdateTeacherNameBody

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

UpdateTeacherNameParams contains all the parameters to send to the API endpoint

for the update teacher name operation.

Typically these are written to a http.Request.

func NewUpdateTeacherNameParams

func NewUpdateTeacherNameParams() *UpdateTeacherNameParams

NewUpdateTeacherNameParams creates a new UpdateTeacherNameParams 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 NewUpdateTeacherNameParamsWithContext

func NewUpdateTeacherNameParamsWithContext(ctx context.Context) *UpdateTeacherNameParams

NewUpdateTeacherNameParamsWithContext creates a new UpdateTeacherNameParams object with the ability to set a context for a request.

func NewUpdateTeacherNameParamsWithHTTPClient

func NewUpdateTeacherNameParamsWithHTTPClient(client *http.Client) *UpdateTeacherNameParams

NewUpdateTeacherNameParamsWithHTTPClient creates a new UpdateTeacherNameParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateTeacherNameParamsWithTimeout

func NewUpdateTeacherNameParamsWithTimeout(timeout time.Duration) *UpdateTeacherNameParams

NewUpdateTeacherNameParamsWithTimeout creates a new UpdateTeacherNameParams object with the ability to set a timeout on a request.

func (*UpdateTeacherNameParams) SetContext

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

SetContext adds the context to the update teacher name params

func (*UpdateTeacherNameParams) SetDefaults

func (o *UpdateTeacherNameParams) SetDefaults()

SetDefaults hydrates default values in the update teacher name params (not the query body).

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

func (*UpdateTeacherNameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update teacher name params

func (*UpdateTeacherNameParams) SetID

func (o *UpdateTeacherNameParams) SetID(id int64)

SetID adds the id to the update teacher name params

func (*UpdateTeacherNameParams) SetName

SetName adds the name to the update teacher name params

func (*UpdateTeacherNameParams) SetTimeout

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

SetTimeout adds the timeout to the update teacher name params

func (*UpdateTeacherNameParams) WithContext

WithContext adds the context to the update teacher name params

func (*UpdateTeacherNameParams) WithDefaults

WithDefaults hydrates default values in the update teacher name params (not the query body).

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

func (*UpdateTeacherNameParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update teacher name params

func (*UpdateTeacherNameParams) WithID

WithID adds the id to the update teacher name params

func (*UpdateTeacherNameParams) WithName

WithName adds the name to the update teacher name params

func (*UpdateTeacherNameParams) WithTimeout

WithTimeout adds the timeout to the update teacher name params

func (*UpdateTeacherNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateTeacherNameReader

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

UpdateTeacherNameReader is a Reader for the UpdateTeacherName structure.

func (*UpdateTeacherNameReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Source Files

Jump to

Keyboard shortcuts

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