terms

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 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 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

type GetDistrictForTermNotFound struct {
	Payload *models.NotFound
}
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 (*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

WithContext adds the context to the get district for term params

func (*GetDistrictForTermParams) WithDefaults

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

WithID adds the id to the get district for term params

func (*GetDistrictForTermParams) WithTimeout

WithTimeout adds the timeout to the get district for term params

func (*GetDistrictForTermParams) WriteToRequest

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

type GetSchoolsForTermNotFound struct {
	Payload *models.NotFound
}
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

WithContext adds the context to the get schools for term params

func (*GetSchoolsForTermParams) WithDefaults

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

WithID adds the id to the get schools for term params

func (*GetSchoolsForTermParams) WithLimit

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

WithTimeout adds the timeout to the get schools for term params

func (*GetSchoolsForTermParams) WriteToRequest

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

type GetSectionsForTermNotFound struct {
	Payload *models.NotFound
}
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 (*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

WithContext adds the context to the get sections for term params

func (*GetSectionsForTermParams) WithDefaults

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

WithID adds the id to the get sections for term params

func (*GetSectionsForTermParams) WithLimit

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

WithTimeout adds the timeout to the get sections for term params

func (*GetSectionsForTermParams) WriteToRequest

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

type GetTermNotFound struct {
	Payload *models.NotFound
}
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) Error

func (o *GetTermOK) Error() string

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.

Jump to

Keyboard shortcuts

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