patterns

package
v0.0.0-...-6ca850d Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: MIT 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 patterns API

func New

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

New creates a new patterns API client.

func (*Client) PatternsGetPatternByRun

func (a *Client) PatternsGetPatternByRun(params *PatternsGetPatternByRunParams) (*PatternsGetPatternByRunOK, error)

PatternsGetPatternByRun views the stopping pattern for a specific trip service run

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type PatternsGetPatternByRunBadRequest

type PatternsGetPatternByRunBadRequest struct {
	Payload *models.V3ErrorResponse
}

PatternsGetPatternByRunBadRequest handles this case with default header values.

Invalid Request

func NewPatternsGetPatternByRunBadRequest

func NewPatternsGetPatternByRunBadRequest() *PatternsGetPatternByRunBadRequest

NewPatternsGetPatternByRunBadRequest creates a PatternsGetPatternByRunBadRequest with default headers values

func (*PatternsGetPatternByRunBadRequest) Error

func (*PatternsGetPatternByRunBadRequest) GetPayload

type PatternsGetPatternByRunForbidden

type PatternsGetPatternByRunForbidden struct {
	Payload *models.V3ErrorResponse
}

PatternsGetPatternByRunForbidden handles this case with default header values.

Access Denied

func NewPatternsGetPatternByRunForbidden

func NewPatternsGetPatternByRunForbidden() *PatternsGetPatternByRunForbidden

NewPatternsGetPatternByRunForbidden creates a PatternsGetPatternByRunForbidden with default headers values

func (*PatternsGetPatternByRunForbidden) Error

func (*PatternsGetPatternByRunForbidden) GetPayload

type PatternsGetPatternByRunOK

type PatternsGetPatternByRunOK struct {
	Payload *models.V3StoppingPattern
}

PatternsGetPatternByRunOK handles this case with default header values.

The stopping pattern of the specified trip/service run and route type.

func NewPatternsGetPatternByRunOK

func NewPatternsGetPatternByRunOK() *PatternsGetPatternByRunOK

NewPatternsGetPatternByRunOK creates a PatternsGetPatternByRunOK with default headers values

func (*PatternsGetPatternByRunOK) Error

func (o *PatternsGetPatternByRunOK) Error() string

func (*PatternsGetPatternByRunOK) GetPayload

type PatternsGetPatternByRunParams

type PatternsGetPatternByRunParams struct {

	/*DateUtc
	  Filter by the date and time of the request (ISO 8601 UTC format)

	*/
	DateUtc *strfmt.DateTime
	/*Devid
	  Your developer id

	*/
	Devid *string
	/*Expand
	  Objects to be returned in full (i.e. expanded) - options include: all, stop, route, run, direction, disruption. By default disruptions are expanded.

	*/
	Expand []string
	/*RouteType
	  Number identifying transport mode; values returned via RouteTypes API

	*/
	RouteType int32
	/*RunID
	  Identifier of a trip/service run; values returned by Runs API - /v3/route/{route_id} and Departures API

	*/
	RunID int32
	/*Signature
	  Authentication signature for request

	*/
	Signature *string
	/*StopID
	  Filter by stop_id; values returned by Stops API

	*/
	StopID *int32
	/*Token
	  Please ignore

	*/
	Token *string

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

PatternsGetPatternByRunParams contains all the parameters to send to the API endpoint for the patterns get pattern by run operation typically these are written to a http.Request

func NewPatternsGetPatternByRunParams

func NewPatternsGetPatternByRunParams() *PatternsGetPatternByRunParams

NewPatternsGetPatternByRunParams creates a new PatternsGetPatternByRunParams object with the default values initialized.

func NewPatternsGetPatternByRunParamsWithContext

func NewPatternsGetPatternByRunParamsWithContext(ctx context.Context) *PatternsGetPatternByRunParams

NewPatternsGetPatternByRunParamsWithContext creates a new PatternsGetPatternByRunParams object with the default values initialized, and the ability to set a context for a request

func NewPatternsGetPatternByRunParamsWithHTTPClient

func NewPatternsGetPatternByRunParamsWithHTTPClient(client *http.Client) *PatternsGetPatternByRunParams

NewPatternsGetPatternByRunParamsWithHTTPClient creates a new PatternsGetPatternByRunParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPatternsGetPatternByRunParamsWithTimeout

func NewPatternsGetPatternByRunParamsWithTimeout(timeout time.Duration) *PatternsGetPatternByRunParams

NewPatternsGetPatternByRunParamsWithTimeout creates a new PatternsGetPatternByRunParams object with the default values initialized, and the ability to set a timeout on a request

func (*PatternsGetPatternByRunParams) SetContext

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

SetContext adds the context to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) SetDateUtc

func (o *PatternsGetPatternByRunParams) SetDateUtc(dateUtc *strfmt.DateTime)

SetDateUtc adds the dateUtc to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) SetDevid

func (o *PatternsGetPatternByRunParams) SetDevid(devid *string)

SetDevid adds the devid to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) SetExpand

func (o *PatternsGetPatternByRunParams) SetExpand(expand []string)

SetExpand adds the expand to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) SetRouteType

func (o *PatternsGetPatternByRunParams) SetRouteType(routeType int32)

SetRouteType adds the routeType to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) SetRunID

func (o *PatternsGetPatternByRunParams) SetRunID(runID int32)

SetRunID adds the runId to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) SetSignature

func (o *PatternsGetPatternByRunParams) SetSignature(signature *string)

SetSignature adds the signature to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) SetStopID

func (o *PatternsGetPatternByRunParams) SetStopID(stopID *int32)

SetStopID adds the stopId to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) SetTimeout

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

SetTimeout adds the timeout to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) SetToken

func (o *PatternsGetPatternByRunParams) SetToken(token *string)

SetToken adds the token to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) WithContext

WithContext adds the context to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) WithDateUtc

WithDateUtc adds the dateUtc to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) WithDevid

WithDevid adds the devid to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) WithExpand

WithExpand adds the expand to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) WithRouteType

WithRouteType adds the routeType to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) WithRunID

WithRunID adds the runID to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) WithSignature

WithSignature adds the signature to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) WithStopID

WithStopID adds the stopID to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) WithTimeout

WithTimeout adds the timeout to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) WithToken

WithToken adds the token to the patterns get pattern by run params

func (*PatternsGetPatternByRunParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatternsGetPatternByRunReader

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

PatternsGetPatternByRunReader is a Reader for the PatternsGetPatternByRun structure.

func (*PatternsGetPatternByRunReader) ReadResponse

func (o *PatternsGetPatternByRunReader) 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