Documentation
¶
Index ¶
- type Client
- func (a *Client) GetDistrictForTerm(params *GetDistrictForTermParams, authInfo runtime.ClientAuthInfoWriter) (*GetDistrictForTermOK, error)
- func (a *Client) GetSchoolsForTerm(params *GetSchoolsForTermParams, authInfo runtime.ClientAuthInfoWriter) (*GetSchoolsForTermOK, error)
- func (a *Client) GetSectionsForTerm(params *GetSectionsForTermParams, authInfo runtime.ClientAuthInfoWriter) (*GetSectionsForTermOK, error)
- func (a *Client) GetTerm(params *GetTermParams, authInfo runtime.ClientAuthInfoWriter) (*GetTermOK, error)
- func (a *Client) GetTerms(params *GetTermsParams, authInfo runtime.ClientAuthInfoWriter) (*GetTermsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GetDistrictForTermNotFound
- type GetDistrictForTermOK
- type GetDistrictForTermParams
- func NewGetDistrictForTermParams() *GetDistrictForTermParams
- func NewGetDistrictForTermParamsWithContext(ctx context.Context) *GetDistrictForTermParams
- func NewGetDistrictForTermParamsWithHTTPClient(client *http.Client) *GetDistrictForTermParams
- func NewGetDistrictForTermParamsWithTimeout(timeout time.Duration) *GetDistrictForTermParams
- func (o *GetDistrictForTermParams) SetContext(ctx context.Context)
- func (o *GetDistrictForTermParams) SetDefaults()
- func (o *GetDistrictForTermParams) SetHTTPClient(client *http.Client)
- func (o *GetDistrictForTermParams) SetID(id string)
- func (o *GetDistrictForTermParams) SetTimeout(timeout time.Duration)
- func (o *GetDistrictForTermParams) WithContext(ctx context.Context) *GetDistrictForTermParams
- func (o *GetDistrictForTermParams) WithDefaults() *GetDistrictForTermParams
- func (o *GetDistrictForTermParams) WithHTTPClient(client *http.Client) *GetDistrictForTermParams
- func (o *GetDistrictForTermParams) WithID(id string) *GetDistrictForTermParams
- func (o *GetDistrictForTermParams) WithTimeout(timeout time.Duration) *GetDistrictForTermParams
- func (o *GetDistrictForTermParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDistrictForTermReader
- type GetSchoolsForTermNotFound
- type GetSchoolsForTermOK
- type GetSchoolsForTermParams
- func NewGetSchoolsForTermParams() *GetSchoolsForTermParams
- func NewGetSchoolsForTermParamsWithContext(ctx context.Context) *GetSchoolsForTermParams
- func NewGetSchoolsForTermParamsWithHTTPClient(client *http.Client) *GetSchoolsForTermParams
- func NewGetSchoolsForTermParamsWithTimeout(timeout time.Duration) *GetSchoolsForTermParams
- func (o *GetSchoolsForTermParams) SetContext(ctx context.Context)
- func (o *GetSchoolsForTermParams) SetDefaults()
- func (o *GetSchoolsForTermParams) SetEndingBefore(endingBefore *string)
- func (o *GetSchoolsForTermParams) SetHTTPClient(client *http.Client)
- func (o *GetSchoolsForTermParams) SetID(id string)
- func (o *GetSchoolsForTermParams) SetLimit(limit *int64)
- func (o *GetSchoolsForTermParams) SetStartingAfter(startingAfter *string)
- func (o *GetSchoolsForTermParams) SetTimeout(timeout time.Duration)
- func (o *GetSchoolsForTermParams) WithContext(ctx context.Context) *GetSchoolsForTermParams
- func (o *GetSchoolsForTermParams) WithDefaults() *GetSchoolsForTermParams
- func (o *GetSchoolsForTermParams) WithEndingBefore(endingBefore *string) *GetSchoolsForTermParams
- func (o *GetSchoolsForTermParams) WithHTTPClient(client *http.Client) *GetSchoolsForTermParams
- func (o *GetSchoolsForTermParams) WithID(id string) *GetSchoolsForTermParams
- func (o *GetSchoolsForTermParams) WithLimit(limit *int64) *GetSchoolsForTermParams
- func (o *GetSchoolsForTermParams) WithStartingAfter(startingAfter *string) *GetSchoolsForTermParams
- func (o *GetSchoolsForTermParams) WithTimeout(timeout time.Duration) *GetSchoolsForTermParams
- func (o *GetSchoolsForTermParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSchoolsForTermReader
- type GetSectionsForTermNotFound
- type GetSectionsForTermOK
- type GetSectionsForTermParams
- func NewGetSectionsForTermParams() *GetSectionsForTermParams
- func NewGetSectionsForTermParamsWithContext(ctx context.Context) *GetSectionsForTermParams
- func NewGetSectionsForTermParamsWithHTTPClient(client *http.Client) *GetSectionsForTermParams
- func NewGetSectionsForTermParamsWithTimeout(timeout time.Duration) *GetSectionsForTermParams
- func (o *GetSectionsForTermParams) SetContext(ctx context.Context)
- func (o *GetSectionsForTermParams) SetDefaults()
- func (o *GetSectionsForTermParams) SetEndingBefore(endingBefore *string)
- func (o *GetSectionsForTermParams) SetHTTPClient(client *http.Client)
- func (o *GetSectionsForTermParams) SetID(id string)
- func (o *GetSectionsForTermParams) SetLimit(limit *int64)
- func (o *GetSectionsForTermParams) SetStartingAfter(startingAfter *string)
- func (o *GetSectionsForTermParams) SetTimeout(timeout time.Duration)
- func (o *GetSectionsForTermParams) WithContext(ctx context.Context) *GetSectionsForTermParams
- func (o *GetSectionsForTermParams) WithDefaults() *GetSectionsForTermParams
- func (o *GetSectionsForTermParams) WithEndingBefore(endingBefore *string) *GetSectionsForTermParams
- func (o *GetSectionsForTermParams) WithHTTPClient(client *http.Client) *GetSectionsForTermParams
- func (o *GetSectionsForTermParams) WithID(id string) *GetSectionsForTermParams
- func (o *GetSectionsForTermParams) WithLimit(limit *int64) *GetSectionsForTermParams
- func (o *GetSectionsForTermParams) WithStartingAfter(startingAfter *string) *GetSectionsForTermParams
- func (o *GetSectionsForTermParams) WithTimeout(timeout time.Duration) *GetSectionsForTermParams
- func (o *GetSectionsForTermParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSectionsForTermReader
- type GetTermNotFound
- type GetTermOK
- type GetTermParams
- func (o *GetTermParams) SetContext(ctx context.Context)
- func (o *GetTermParams) SetDefaults()
- func (o *GetTermParams) SetHTTPClient(client *http.Client)
- func (o *GetTermParams) SetID(id string)
- func (o *GetTermParams) SetTimeout(timeout time.Duration)
- func (o *GetTermParams) WithContext(ctx context.Context) *GetTermParams
- func (o *GetTermParams) WithDefaults() *GetTermParams
- func (o *GetTermParams) WithHTTPClient(client *http.Client) *GetTermParams
- func (o *GetTermParams) WithID(id string) *GetTermParams
- func (o *GetTermParams) WithTimeout(timeout time.Duration) *GetTermParams
- func (o *GetTermParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTermReader
- type GetTermsOK
- type GetTermsParams
- func (o *GetTermsParams) SetContext(ctx context.Context)
- func (o *GetTermsParams) SetCount(count *string)
- func (o *GetTermsParams) SetDefaults()
- func (o *GetTermsParams) SetEndingBefore(endingBefore *string)
- func (o *GetTermsParams) SetHTTPClient(client *http.Client)
- func (o *GetTermsParams) SetLimit(limit *int64)
- func (o *GetTermsParams) SetStartingAfter(startingAfter *string)
- func (o *GetTermsParams) SetTimeout(timeout time.Duration)
- func (o *GetTermsParams) WithContext(ctx context.Context) *GetTermsParams
- func (o *GetTermsParams) WithCount(count *string) *GetTermsParams
- func (o *GetTermsParams) WithDefaults() *GetTermsParams
- func (o *GetTermsParams) WithEndingBefore(endingBefore *string) *GetTermsParams
- func (o *GetTermsParams) WithHTTPClient(client *http.Client) *GetTermsParams
- func (o *GetTermsParams) WithLimit(limit *int64) *GetTermsParams
- func (o *GetTermsParams) WithStartingAfter(startingAfter *string) *GetTermsParams
- func (o *GetTermsParams) WithTimeout(timeout time.Duration) *GetTermsParams
- func (o *GetTermsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTermsReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for terms API
func (*Client) GetDistrictForTerm ¶
func (a *Client) GetDistrictForTerm(params *GetDistrictForTermParams, authInfo runtime.ClientAuthInfoWriter) (*GetDistrictForTermOK, error)
GetDistrictForTerm Returns the district for a term
func (*Client) GetSchoolsForTerm ¶
func (a *Client) GetSchoolsForTerm(params *GetSchoolsForTermParams, authInfo runtime.ClientAuthInfoWriter) (*GetSchoolsForTermOK, error)
GetSchoolsForTerm Returns the schools for a term
func (*Client) GetSectionsForTerm ¶
func (a *Client) GetSectionsForTerm(params *GetSectionsForTermParams, authInfo runtime.ClientAuthInfoWriter) (*GetSectionsForTermOK, error)
GetSectionsForTerm Returns the sections for a term
func (*Client) GetTerm ¶
func (a *Client) GetTerm(params *GetTermParams, authInfo runtime.ClientAuthInfoWriter) (*GetTermOK, error)
GetTerm Returns a specific term
func (*Client) GetTerms ¶
func (a *Client) GetTerms(params *GetTermsParams, authInfo runtime.ClientAuthInfoWriter) (*GetTermsOK, error)
GetTerms Returns a list of terms
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface {
GetDistrictForTerm(params *GetDistrictForTermParams, authInfo runtime.ClientAuthInfoWriter) (*GetDistrictForTermOK, error)
GetSchoolsForTerm(params *GetSchoolsForTermParams, authInfo runtime.ClientAuthInfoWriter) (*GetSchoolsForTermOK, error)
GetSectionsForTerm(params *GetSectionsForTermParams, authInfo runtime.ClientAuthInfoWriter) (*GetSectionsForTermOK, error)
GetTerm(params *GetTermParams, authInfo runtime.ClientAuthInfoWriter) (*GetTermOK, error)
GetTerms(params *GetTermsParams, authInfo runtime.ClientAuthInfoWriter) (*GetTermsOK, 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 terms API client.
type GetDistrictForTermNotFound ¶
GetDistrictForTermNotFound describes a response with status code 404, with default header values.
Entity Not Found
func NewGetDistrictForTermNotFound ¶
func NewGetDistrictForTermNotFound() *GetDistrictForTermNotFound
NewGetDistrictForTermNotFound creates a GetDistrictForTermNotFound with default headers values
func (*GetDistrictForTermNotFound) Error ¶
func (o *GetDistrictForTermNotFound) Error() string
func (*GetDistrictForTermNotFound) GetPayload ¶
func (o *GetDistrictForTermNotFound) GetPayload() *models.NotFound
type GetDistrictForTermOK ¶
type GetDistrictForTermOK struct {
Payload *models.DistrictResponse
}
GetDistrictForTermOK describes a response with status code 200, with default header values.
OK Response
func NewGetDistrictForTermOK ¶
func NewGetDistrictForTermOK() *GetDistrictForTermOK
NewGetDistrictForTermOK creates a GetDistrictForTermOK with default headers values
func (*GetDistrictForTermOK) Error ¶
func (o *GetDistrictForTermOK) Error() string
func (*GetDistrictForTermOK) GetPayload ¶
func (o *GetDistrictForTermOK) GetPayload() *models.DistrictResponse
type GetDistrictForTermParams ¶
type GetDistrictForTermParams struct {
// ID.
ID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetDistrictForTermParams contains all the parameters to send to the API endpoint
for the get district for term operation. Typically these are written to a http.Request.
func NewGetDistrictForTermParams ¶
func NewGetDistrictForTermParams() *GetDistrictForTermParams
NewGetDistrictForTermParams creates a new GetDistrictForTermParams 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 NewGetDistrictForTermParamsWithContext ¶
func NewGetDistrictForTermParamsWithContext(ctx context.Context) *GetDistrictForTermParams
NewGetDistrictForTermParamsWithContext creates a new GetDistrictForTermParams object with the ability to set a context for a request.
func NewGetDistrictForTermParamsWithHTTPClient ¶
func NewGetDistrictForTermParamsWithHTTPClient(client *http.Client) *GetDistrictForTermParams
NewGetDistrictForTermParamsWithHTTPClient creates a new GetDistrictForTermParams object with the ability to set a custom HTTPClient for a request.
func NewGetDistrictForTermParamsWithTimeout ¶
func NewGetDistrictForTermParamsWithTimeout(timeout time.Duration) *GetDistrictForTermParams
NewGetDistrictForTermParamsWithTimeout creates a new GetDistrictForTermParams object with the ability to set a timeout on a request.
func (*GetDistrictForTermParams) SetContext ¶
func (o *GetDistrictForTermParams) SetContext(ctx context.Context)
SetContext adds the context to the get district for term params
func (*GetDistrictForTermParams) SetDefaults ¶
func (o *GetDistrictForTermParams) SetDefaults()
SetDefaults hydrates default values in the get district for term params (not the query body).
All values with no default are reset to their zero value.
func (*GetDistrictForTermParams) SetHTTPClient ¶
func (o *GetDistrictForTermParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get district for term params
func (*GetDistrictForTermParams) SetID ¶
func (o *GetDistrictForTermParams) SetID(id string)
SetID adds the id to the get district for term params
func (*GetDistrictForTermParams) SetTimeout ¶
func (o *GetDistrictForTermParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get district for term params
func (*GetDistrictForTermParams) WithContext ¶
func (o *GetDistrictForTermParams) WithContext(ctx context.Context) *GetDistrictForTermParams
WithContext adds the context to the get district for term params
func (*GetDistrictForTermParams) WithDefaults ¶
func (o *GetDistrictForTermParams) WithDefaults() *GetDistrictForTermParams
WithDefaults hydrates default values in the get district for term params (not the query body).
All values with no default are reset to their zero value.
func (*GetDistrictForTermParams) WithHTTPClient ¶
func (o *GetDistrictForTermParams) WithHTTPClient(client *http.Client) *GetDistrictForTermParams
WithHTTPClient adds the HTTPClient to the get district for term params
func (*GetDistrictForTermParams) WithID ¶
func (o *GetDistrictForTermParams) WithID(id string) *GetDistrictForTermParams
WithID adds the id to the get district for term params
func (*GetDistrictForTermParams) WithTimeout ¶
func (o *GetDistrictForTermParams) WithTimeout(timeout time.Duration) *GetDistrictForTermParams
WithTimeout adds the timeout to the get district for term params
func (*GetDistrictForTermParams) WriteToRequest ¶
func (o *GetDistrictForTermParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetDistrictForTermReader ¶
type GetDistrictForTermReader struct {
// contains filtered or unexported fields
}
GetDistrictForTermReader is a Reader for the GetDistrictForTerm structure.
func (*GetDistrictForTermReader) ReadResponse ¶
func (o *GetDistrictForTermReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSchoolsForTermNotFound ¶
GetSchoolsForTermNotFound describes a response with status code 404, with default header values.
Entity Not Found
func NewGetSchoolsForTermNotFound ¶
func NewGetSchoolsForTermNotFound() *GetSchoolsForTermNotFound
NewGetSchoolsForTermNotFound creates a GetSchoolsForTermNotFound with default headers values
func (*GetSchoolsForTermNotFound) Error ¶
func (o *GetSchoolsForTermNotFound) Error() string
func (*GetSchoolsForTermNotFound) GetPayload ¶
func (o *GetSchoolsForTermNotFound) GetPayload() *models.NotFound
type GetSchoolsForTermOK ¶
type GetSchoolsForTermOK struct {
Payload *models.SchoolsResponse
}
GetSchoolsForTermOK describes a response with status code 200, with default header values.
OK Response
func NewGetSchoolsForTermOK ¶
func NewGetSchoolsForTermOK() *GetSchoolsForTermOK
NewGetSchoolsForTermOK creates a GetSchoolsForTermOK with default headers values
func (*GetSchoolsForTermOK) Error ¶
func (o *GetSchoolsForTermOK) Error() string
func (*GetSchoolsForTermOK) GetPayload ¶
func (o *GetSchoolsForTermOK) GetPayload() *models.SchoolsResponse
type GetSchoolsForTermParams ¶
type GetSchoolsForTermParams struct {
// EndingBefore.
EndingBefore *string
// ID.
ID string
// Limit.
Limit *int64
// StartingAfter.
StartingAfter *string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetSchoolsForTermParams contains all the parameters to send to the API endpoint
for the get schools for term operation. Typically these are written to a http.Request.
func NewGetSchoolsForTermParams ¶
func NewGetSchoolsForTermParams() *GetSchoolsForTermParams
NewGetSchoolsForTermParams creates a new GetSchoolsForTermParams 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 NewGetSchoolsForTermParamsWithContext ¶
func NewGetSchoolsForTermParamsWithContext(ctx context.Context) *GetSchoolsForTermParams
NewGetSchoolsForTermParamsWithContext creates a new GetSchoolsForTermParams object with the ability to set a context for a request.
func NewGetSchoolsForTermParamsWithHTTPClient ¶
func NewGetSchoolsForTermParamsWithHTTPClient(client *http.Client) *GetSchoolsForTermParams
NewGetSchoolsForTermParamsWithHTTPClient creates a new GetSchoolsForTermParams object with the ability to set a custom HTTPClient for a request.
func NewGetSchoolsForTermParamsWithTimeout ¶
func NewGetSchoolsForTermParamsWithTimeout(timeout time.Duration) *GetSchoolsForTermParams
NewGetSchoolsForTermParamsWithTimeout creates a new GetSchoolsForTermParams object with the ability to set a timeout on a request.
func (*GetSchoolsForTermParams) SetContext ¶
func (o *GetSchoolsForTermParams) SetContext(ctx context.Context)
SetContext adds the context to the get schools for term params
func (*GetSchoolsForTermParams) SetDefaults ¶
func (o *GetSchoolsForTermParams) SetDefaults()
SetDefaults hydrates default values in the get schools for term params (not the query body).
All values with no default are reset to their zero value.
func (*GetSchoolsForTermParams) SetEndingBefore ¶
func (o *GetSchoolsForTermParams) SetEndingBefore(endingBefore *string)
SetEndingBefore adds the endingBefore to the get schools for term params
func (*GetSchoolsForTermParams) SetHTTPClient ¶
func (o *GetSchoolsForTermParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get schools for term params
func (*GetSchoolsForTermParams) SetID ¶
func (o *GetSchoolsForTermParams) SetID(id string)
SetID adds the id to the get schools for term params
func (*GetSchoolsForTermParams) SetLimit ¶
func (o *GetSchoolsForTermParams) SetLimit(limit *int64)
SetLimit adds the limit to the get schools for term params
func (*GetSchoolsForTermParams) SetStartingAfter ¶
func (o *GetSchoolsForTermParams) SetStartingAfter(startingAfter *string)
SetStartingAfter adds the startingAfter to the get schools for term params
func (*GetSchoolsForTermParams) SetTimeout ¶
func (o *GetSchoolsForTermParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get schools for term params
func (*GetSchoolsForTermParams) WithContext ¶
func (o *GetSchoolsForTermParams) WithContext(ctx context.Context) *GetSchoolsForTermParams
WithContext adds the context to the get schools for term params
func (*GetSchoolsForTermParams) WithDefaults ¶
func (o *GetSchoolsForTermParams) WithDefaults() *GetSchoolsForTermParams
WithDefaults hydrates default values in the get schools for term params (not the query body).
All values with no default are reset to their zero value.
func (*GetSchoolsForTermParams) WithEndingBefore ¶
func (o *GetSchoolsForTermParams) WithEndingBefore(endingBefore *string) *GetSchoolsForTermParams
WithEndingBefore adds the endingBefore to the get schools for term params
func (*GetSchoolsForTermParams) WithHTTPClient ¶
func (o *GetSchoolsForTermParams) WithHTTPClient(client *http.Client) *GetSchoolsForTermParams
WithHTTPClient adds the HTTPClient to the get schools for term params
func (*GetSchoolsForTermParams) WithID ¶
func (o *GetSchoolsForTermParams) WithID(id string) *GetSchoolsForTermParams
WithID adds the id to the get schools for term params
func (*GetSchoolsForTermParams) WithLimit ¶
func (o *GetSchoolsForTermParams) WithLimit(limit *int64) *GetSchoolsForTermParams
WithLimit adds the limit to the get schools for term params
func (*GetSchoolsForTermParams) WithStartingAfter ¶
func (o *GetSchoolsForTermParams) WithStartingAfter(startingAfter *string) *GetSchoolsForTermParams
WithStartingAfter adds the startingAfter to the get schools for term params
func (*GetSchoolsForTermParams) WithTimeout ¶
func (o *GetSchoolsForTermParams) WithTimeout(timeout time.Duration) *GetSchoolsForTermParams
WithTimeout adds the timeout to the get schools for term params
func (*GetSchoolsForTermParams) WriteToRequest ¶
func (o *GetSchoolsForTermParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSchoolsForTermReader ¶
type GetSchoolsForTermReader struct {
// contains filtered or unexported fields
}
GetSchoolsForTermReader is a Reader for the GetSchoolsForTerm structure.
func (*GetSchoolsForTermReader) ReadResponse ¶
func (o *GetSchoolsForTermReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSectionsForTermNotFound ¶
GetSectionsForTermNotFound describes a response with status code 404, with default header values.
Entity Not Found
func NewGetSectionsForTermNotFound ¶
func NewGetSectionsForTermNotFound() *GetSectionsForTermNotFound
NewGetSectionsForTermNotFound creates a GetSectionsForTermNotFound with default headers values
func (*GetSectionsForTermNotFound) Error ¶
func (o *GetSectionsForTermNotFound) Error() string
func (*GetSectionsForTermNotFound) GetPayload ¶
func (o *GetSectionsForTermNotFound) GetPayload() *models.NotFound
type GetSectionsForTermOK ¶
type GetSectionsForTermOK struct {
Payload *models.SectionsResponse
}
GetSectionsForTermOK describes a response with status code 200, with default header values.
OK Response
func NewGetSectionsForTermOK ¶
func NewGetSectionsForTermOK() *GetSectionsForTermOK
NewGetSectionsForTermOK creates a GetSectionsForTermOK with default headers values
func (*GetSectionsForTermOK) Error ¶
func (o *GetSectionsForTermOK) Error() string
func (*GetSectionsForTermOK) GetPayload ¶
func (o *GetSectionsForTermOK) GetPayload() *models.SectionsResponse
type GetSectionsForTermParams ¶
type GetSectionsForTermParams struct {
// EndingBefore.
EndingBefore *string
// ID.
ID string
// Limit.
Limit *int64
// StartingAfter.
StartingAfter *string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetSectionsForTermParams contains all the parameters to send to the API endpoint
for the get sections for term operation. Typically these are written to a http.Request.
func NewGetSectionsForTermParams ¶
func NewGetSectionsForTermParams() *GetSectionsForTermParams
NewGetSectionsForTermParams creates a new GetSectionsForTermParams 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 NewGetSectionsForTermParamsWithContext ¶
func NewGetSectionsForTermParamsWithContext(ctx context.Context) *GetSectionsForTermParams
NewGetSectionsForTermParamsWithContext creates a new GetSectionsForTermParams object with the ability to set a context for a request.
func NewGetSectionsForTermParamsWithHTTPClient ¶
func NewGetSectionsForTermParamsWithHTTPClient(client *http.Client) *GetSectionsForTermParams
NewGetSectionsForTermParamsWithHTTPClient creates a new GetSectionsForTermParams object with the ability to set a custom HTTPClient for a request.
func NewGetSectionsForTermParamsWithTimeout ¶
func NewGetSectionsForTermParamsWithTimeout(timeout time.Duration) *GetSectionsForTermParams
NewGetSectionsForTermParamsWithTimeout creates a new GetSectionsForTermParams object with the ability to set a timeout on a request.
func (*GetSectionsForTermParams) SetContext ¶
func (o *GetSectionsForTermParams) SetContext(ctx context.Context)
SetContext adds the context to the get sections for term params
func (*GetSectionsForTermParams) SetDefaults ¶
func (o *GetSectionsForTermParams) SetDefaults()
SetDefaults hydrates default values in the get sections for term params (not the query body).
All values with no default are reset to their zero value.
func (*GetSectionsForTermParams) SetEndingBefore ¶
func (o *GetSectionsForTermParams) SetEndingBefore(endingBefore *string)
SetEndingBefore adds the endingBefore to the get sections for term params
func (*GetSectionsForTermParams) SetHTTPClient ¶
func (o *GetSectionsForTermParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get sections for term params
func (*GetSectionsForTermParams) SetID ¶
func (o *GetSectionsForTermParams) SetID(id string)
SetID adds the id to the get sections for term params
func (*GetSectionsForTermParams) SetLimit ¶
func (o *GetSectionsForTermParams) SetLimit(limit *int64)
SetLimit adds the limit to the get sections for term params
func (*GetSectionsForTermParams) SetStartingAfter ¶
func (o *GetSectionsForTermParams) SetStartingAfter(startingAfter *string)
SetStartingAfter adds the startingAfter to the get sections for term params
func (*GetSectionsForTermParams) SetTimeout ¶
func (o *GetSectionsForTermParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get sections for term params
func (*GetSectionsForTermParams) WithContext ¶
func (o *GetSectionsForTermParams) WithContext(ctx context.Context) *GetSectionsForTermParams
WithContext adds the context to the get sections for term params
func (*GetSectionsForTermParams) WithDefaults ¶
func (o *GetSectionsForTermParams) WithDefaults() *GetSectionsForTermParams
WithDefaults hydrates default values in the get sections for term params (not the query body).
All values with no default are reset to their zero value.
func (*GetSectionsForTermParams) WithEndingBefore ¶
func (o *GetSectionsForTermParams) WithEndingBefore(endingBefore *string) *GetSectionsForTermParams
WithEndingBefore adds the endingBefore to the get sections for term params
func (*GetSectionsForTermParams) WithHTTPClient ¶
func (o *GetSectionsForTermParams) WithHTTPClient(client *http.Client) *GetSectionsForTermParams
WithHTTPClient adds the HTTPClient to the get sections for term params
func (*GetSectionsForTermParams) WithID ¶
func (o *GetSectionsForTermParams) WithID(id string) *GetSectionsForTermParams
WithID adds the id to the get sections for term params
func (*GetSectionsForTermParams) WithLimit ¶
func (o *GetSectionsForTermParams) WithLimit(limit *int64) *GetSectionsForTermParams
WithLimit adds the limit to the get sections for term params
func (*GetSectionsForTermParams) WithStartingAfter ¶
func (o *GetSectionsForTermParams) WithStartingAfter(startingAfter *string) *GetSectionsForTermParams
WithStartingAfter adds the startingAfter to the get sections for term params
func (*GetSectionsForTermParams) WithTimeout ¶
func (o *GetSectionsForTermParams) WithTimeout(timeout time.Duration) *GetSectionsForTermParams
WithTimeout adds the timeout to the get sections for term params
func (*GetSectionsForTermParams) WriteToRequest ¶
func (o *GetSectionsForTermParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSectionsForTermReader ¶
type GetSectionsForTermReader struct {
// contains filtered or unexported fields
}
GetSectionsForTermReader is a Reader for the GetSectionsForTerm structure.
func (*GetSectionsForTermReader) ReadResponse ¶
func (o *GetSectionsForTermReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetTermNotFound ¶
GetTermNotFound describes a response with status code 404, with default header values.
Entity Not Found
func NewGetTermNotFound ¶
func NewGetTermNotFound() *GetTermNotFound
NewGetTermNotFound creates a GetTermNotFound with default headers values
func (*GetTermNotFound) Error ¶
func (o *GetTermNotFound) Error() string
func (*GetTermNotFound) GetPayload ¶
func (o *GetTermNotFound) GetPayload() *models.NotFound
type GetTermOK ¶
type GetTermOK struct {
Payload *models.TermResponse
}
GetTermOK describes a response with status code 200, with default header values.
OK Response
func NewGetTermOK ¶
func NewGetTermOK() *GetTermOK
NewGetTermOK creates a GetTermOK with default headers values
func (*GetTermOK) GetPayload ¶
func (o *GetTermOK) GetPayload() *models.TermResponse
type GetTermParams ¶
type GetTermParams struct {
// ID.
ID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetTermParams contains all the parameters to send to the API endpoint
for the get term operation. Typically these are written to a http.Request.
func NewGetTermParams ¶
func NewGetTermParams() *GetTermParams
NewGetTermParams creates a new GetTermParams 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 NewGetTermParamsWithContext ¶
func NewGetTermParamsWithContext(ctx context.Context) *GetTermParams
NewGetTermParamsWithContext creates a new GetTermParams object with the ability to set a context for a request.
func NewGetTermParamsWithHTTPClient ¶
func NewGetTermParamsWithHTTPClient(client *http.Client) *GetTermParams
NewGetTermParamsWithHTTPClient creates a new GetTermParams object with the ability to set a custom HTTPClient for a request.
func NewGetTermParamsWithTimeout ¶
func NewGetTermParamsWithTimeout(timeout time.Duration) *GetTermParams
NewGetTermParamsWithTimeout creates a new GetTermParams object with the ability to set a timeout on a request.
func (*GetTermParams) SetContext ¶
func (o *GetTermParams) SetContext(ctx context.Context)
SetContext adds the context to the get term params
func (*GetTermParams) SetDefaults ¶
func (o *GetTermParams) SetDefaults()
SetDefaults hydrates default values in the get term params (not the query body).
All values with no default are reset to their zero value.
func (*GetTermParams) SetHTTPClient ¶
func (o *GetTermParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get term params
func (*GetTermParams) SetID ¶
func (o *GetTermParams) SetID(id string)
SetID adds the id to the get term params
func (*GetTermParams) SetTimeout ¶
func (o *GetTermParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get term params
func (*GetTermParams) WithContext ¶
func (o *GetTermParams) WithContext(ctx context.Context) *GetTermParams
WithContext adds the context to the get term params
func (*GetTermParams) WithDefaults ¶
func (o *GetTermParams) WithDefaults() *GetTermParams
WithDefaults hydrates default values in the get term params (not the query body).
All values with no default are reset to their zero value.
func (*GetTermParams) WithHTTPClient ¶
func (o *GetTermParams) WithHTTPClient(client *http.Client) *GetTermParams
WithHTTPClient adds the HTTPClient to the get term params
func (*GetTermParams) WithID ¶
func (o *GetTermParams) WithID(id string) *GetTermParams
WithID adds the id to the get term params
func (*GetTermParams) WithTimeout ¶
func (o *GetTermParams) WithTimeout(timeout time.Duration) *GetTermParams
WithTimeout adds the timeout to the get term params
func (*GetTermParams) WriteToRequest ¶
func (o *GetTermParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTermReader ¶
type GetTermReader struct {
// contains filtered or unexported fields
}
GetTermReader is a Reader for the GetTerm structure.
func (*GetTermReader) ReadResponse ¶
func (o *GetTermReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetTermsOK ¶
type GetTermsOK struct {
Payload *models.TermsResponse
}
GetTermsOK describes a response with status code 200, with default header values.
OK Response
func NewGetTermsOK ¶
func NewGetTermsOK() *GetTermsOK
NewGetTermsOK creates a GetTermsOK with default headers values
func (*GetTermsOK) Error ¶
func (o *GetTermsOK) Error() string
func (*GetTermsOK) GetPayload ¶
func (o *GetTermsOK) GetPayload() *models.TermsResponse
type GetTermsParams ¶
type GetTermsParams struct {
// Count.
Count *string
// EndingBefore.
EndingBefore *string
// Limit.
Limit *int64
// StartingAfter.
StartingAfter *string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetTermsParams contains all the parameters to send to the API endpoint
for the get terms operation. Typically these are written to a http.Request.
func NewGetTermsParams ¶
func NewGetTermsParams() *GetTermsParams
NewGetTermsParams creates a new GetTermsParams 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 NewGetTermsParamsWithContext ¶
func NewGetTermsParamsWithContext(ctx context.Context) *GetTermsParams
NewGetTermsParamsWithContext creates a new GetTermsParams object with the ability to set a context for a request.
func NewGetTermsParamsWithHTTPClient ¶
func NewGetTermsParamsWithHTTPClient(client *http.Client) *GetTermsParams
NewGetTermsParamsWithHTTPClient creates a new GetTermsParams object with the ability to set a custom HTTPClient for a request.
func NewGetTermsParamsWithTimeout ¶
func NewGetTermsParamsWithTimeout(timeout time.Duration) *GetTermsParams
NewGetTermsParamsWithTimeout creates a new GetTermsParams object with the ability to set a timeout on a request.
func (*GetTermsParams) SetContext ¶
func (o *GetTermsParams) SetContext(ctx context.Context)
SetContext adds the context to the get terms params
func (*GetTermsParams) SetCount ¶
func (o *GetTermsParams) SetCount(count *string)
SetCount adds the count to the get terms params
func (*GetTermsParams) SetDefaults ¶
func (o *GetTermsParams) SetDefaults()
SetDefaults hydrates default values in the get terms params (not the query body).
All values with no default are reset to their zero value.
func (*GetTermsParams) SetEndingBefore ¶
func (o *GetTermsParams) SetEndingBefore(endingBefore *string)
SetEndingBefore adds the endingBefore to the get terms params
func (*GetTermsParams) SetHTTPClient ¶
func (o *GetTermsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get terms params
func (*GetTermsParams) SetLimit ¶
func (o *GetTermsParams) SetLimit(limit *int64)
SetLimit adds the limit to the get terms params
func (*GetTermsParams) SetStartingAfter ¶
func (o *GetTermsParams) SetStartingAfter(startingAfter *string)
SetStartingAfter adds the startingAfter to the get terms params
func (*GetTermsParams) SetTimeout ¶
func (o *GetTermsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get terms params
func (*GetTermsParams) WithContext ¶
func (o *GetTermsParams) WithContext(ctx context.Context) *GetTermsParams
WithContext adds the context to the get terms params
func (*GetTermsParams) WithCount ¶
func (o *GetTermsParams) WithCount(count *string) *GetTermsParams
WithCount adds the count to the get terms params
func (*GetTermsParams) WithDefaults ¶
func (o *GetTermsParams) WithDefaults() *GetTermsParams
WithDefaults hydrates default values in the get terms params (not the query body).
All values with no default are reset to their zero value.
func (*GetTermsParams) WithEndingBefore ¶
func (o *GetTermsParams) WithEndingBefore(endingBefore *string) *GetTermsParams
WithEndingBefore adds the endingBefore to the get terms params
func (*GetTermsParams) WithHTTPClient ¶
func (o *GetTermsParams) WithHTTPClient(client *http.Client) *GetTermsParams
WithHTTPClient adds the HTTPClient to the get terms params
func (*GetTermsParams) WithLimit ¶
func (o *GetTermsParams) WithLimit(limit *int64) *GetTermsParams
WithLimit adds the limit to the get terms params
func (*GetTermsParams) WithStartingAfter ¶
func (o *GetTermsParams) WithStartingAfter(startingAfter *string) *GetTermsParams
WithStartingAfter adds the startingAfter to the get terms params
func (*GetTermsParams) WithTimeout ¶
func (o *GetTermsParams) WithTimeout(timeout time.Duration) *GetTermsParams
WithTimeout adds the timeout to the get terms params
func (*GetTermsParams) WriteToRequest ¶
func (o *GetTermsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTermsReader ¶
type GetTermsReader struct {
// contains filtered or unexported fields
}
GetTermsReader is a Reader for the GetTerms structure.
func (*GetTermsReader) ReadResponse ¶
func (o *GetTermsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- get_district_for_term_parameters.go
- get_district_for_term_responses.go
- get_schools_for_term_parameters.go
- get_schools_for_term_responses.go
- get_sections_for_term_parameters.go
- get_sections_for_term_responses.go
- get_term_parameters.go
- get_term_responses.go
- get_terms_parameters.go
- get_terms_responses.go
- terms_client.go