routes

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 routes API

func New

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

New creates a new routes API client.

func (*Client) RoutesOneOrMoreRoutes

func (a *Client) RoutesOneOrMoreRoutes(params *RoutesOneOrMoreRoutesParams) (*RoutesOneOrMoreRoutesOK, error)

RoutesOneOrMoreRoutes views route names and numbers for all routes

func (*Client) RoutesRouteFromID

func (a *Client) RoutesRouteFromID(params *RoutesRouteFromIDParams) (*RoutesRouteFromIDOK, error)

RoutesRouteFromID views route name and number for specific route ID

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type RoutesOneOrMoreRoutesBadRequest

type RoutesOneOrMoreRoutesBadRequest struct {
	Payload *models.V3ErrorResponse
}

RoutesOneOrMoreRoutesBadRequest handles this case with default header values.

Invalid Request

func NewRoutesOneOrMoreRoutesBadRequest

func NewRoutesOneOrMoreRoutesBadRequest() *RoutesOneOrMoreRoutesBadRequest

NewRoutesOneOrMoreRoutesBadRequest creates a RoutesOneOrMoreRoutesBadRequest with default headers values

func (*RoutesOneOrMoreRoutesBadRequest) Error

func (*RoutesOneOrMoreRoutesBadRequest) GetPayload

type RoutesOneOrMoreRoutesForbidden

type RoutesOneOrMoreRoutesForbidden struct {
	Payload *models.V3ErrorResponse
}

RoutesOneOrMoreRoutesForbidden handles this case with default header values.

Access Denied

func NewRoutesOneOrMoreRoutesForbidden

func NewRoutesOneOrMoreRoutesForbidden() *RoutesOneOrMoreRoutesForbidden

NewRoutesOneOrMoreRoutesForbidden creates a RoutesOneOrMoreRoutesForbidden with default headers values

func (*RoutesOneOrMoreRoutesForbidden) Error

func (*RoutesOneOrMoreRoutesForbidden) GetPayload

type RoutesOneOrMoreRoutesOK

type RoutesOneOrMoreRoutesOK struct {
	Payload *models.V3RoutesResponse
}

RoutesOneOrMoreRoutesOK handles this case with default header values.

Route names and numbers for all routes of all route types.

func NewRoutesOneOrMoreRoutesOK

func NewRoutesOneOrMoreRoutesOK() *RoutesOneOrMoreRoutesOK

NewRoutesOneOrMoreRoutesOK creates a RoutesOneOrMoreRoutesOK with default headers values

func (*RoutesOneOrMoreRoutesOK) Error

func (o *RoutesOneOrMoreRoutesOK) Error() string

func (*RoutesOneOrMoreRoutesOK) GetPayload

type RoutesOneOrMoreRoutesParams

type RoutesOneOrMoreRoutesParams struct {

	/*Devid
	  Your developer id

	*/
	Devid *string
	/*RouteName
	  Filter by name  of route (accepts partial route name matches)

	*/
	RouteName *string
	/*RouteTypes
	  Filter by route_type; values returned via RouteTypes API

	*/
	RouteTypes []int32
	/*Signature
	  Authentication signature for request

	*/
	Signature *string
	/*Token
	  Please ignore

	*/
	Token *string

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

RoutesOneOrMoreRoutesParams contains all the parameters to send to the API endpoint for the routes one or more routes operation typically these are written to a http.Request

func NewRoutesOneOrMoreRoutesParams

func NewRoutesOneOrMoreRoutesParams() *RoutesOneOrMoreRoutesParams

NewRoutesOneOrMoreRoutesParams creates a new RoutesOneOrMoreRoutesParams object with the default values initialized.

func NewRoutesOneOrMoreRoutesParamsWithContext

func NewRoutesOneOrMoreRoutesParamsWithContext(ctx context.Context) *RoutesOneOrMoreRoutesParams

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

func NewRoutesOneOrMoreRoutesParamsWithHTTPClient

func NewRoutesOneOrMoreRoutesParamsWithHTTPClient(client *http.Client) *RoutesOneOrMoreRoutesParams

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

func NewRoutesOneOrMoreRoutesParamsWithTimeout

func NewRoutesOneOrMoreRoutesParamsWithTimeout(timeout time.Duration) *RoutesOneOrMoreRoutesParams

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

func (*RoutesOneOrMoreRoutesParams) SetContext

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

SetContext adds the context to the routes one or more routes params

func (*RoutesOneOrMoreRoutesParams) SetDevid

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

SetDevid adds the devid to the routes one or more routes params

func (*RoutesOneOrMoreRoutesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the routes one or more routes params

func (*RoutesOneOrMoreRoutesParams) SetRouteName

func (o *RoutesOneOrMoreRoutesParams) SetRouteName(routeName *string)

SetRouteName adds the routeName to the routes one or more routes params

func (*RoutesOneOrMoreRoutesParams) SetRouteTypes

func (o *RoutesOneOrMoreRoutesParams) SetRouteTypes(routeTypes []int32)

SetRouteTypes adds the routeTypes to the routes one or more routes params

func (*RoutesOneOrMoreRoutesParams) SetSignature

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

SetSignature adds the signature to the routes one or more routes params

func (*RoutesOneOrMoreRoutesParams) SetTimeout

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

SetTimeout adds the timeout to the routes one or more routes params

func (*RoutesOneOrMoreRoutesParams) SetToken

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

SetToken adds the token to the routes one or more routes params

func (*RoutesOneOrMoreRoutesParams) WithContext

WithContext adds the context to the routes one or more routes params

func (*RoutesOneOrMoreRoutesParams) WithDevid

WithDevid adds the devid to the routes one or more routes params

func (*RoutesOneOrMoreRoutesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the routes one or more routes params

func (*RoutesOneOrMoreRoutesParams) WithRouteName

func (o *RoutesOneOrMoreRoutesParams) WithRouteName(routeName *string) *RoutesOneOrMoreRoutesParams

WithRouteName adds the routeName to the routes one or more routes params

func (*RoutesOneOrMoreRoutesParams) WithRouteTypes

func (o *RoutesOneOrMoreRoutesParams) WithRouteTypes(routeTypes []int32) *RoutesOneOrMoreRoutesParams

WithRouteTypes adds the routeTypes to the routes one or more routes params

func (*RoutesOneOrMoreRoutesParams) WithSignature

func (o *RoutesOneOrMoreRoutesParams) WithSignature(signature *string) *RoutesOneOrMoreRoutesParams

WithSignature adds the signature to the routes one or more routes params

func (*RoutesOneOrMoreRoutesParams) WithTimeout

WithTimeout adds the timeout to the routes one or more routes params

func (*RoutesOneOrMoreRoutesParams) WithToken

WithToken adds the token to the routes one or more routes params

func (*RoutesOneOrMoreRoutesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RoutesOneOrMoreRoutesReader

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

RoutesOneOrMoreRoutesReader is a Reader for the RoutesOneOrMoreRoutes structure.

func (*RoutesOneOrMoreRoutesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RoutesRouteFromIDBadRequest

type RoutesRouteFromIDBadRequest struct {
	Payload *models.V3ErrorResponse
}

RoutesRouteFromIDBadRequest handles this case with default header values.

Invalid Request

func NewRoutesRouteFromIDBadRequest

func NewRoutesRouteFromIDBadRequest() *RoutesRouteFromIDBadRequest

NewRoutesRouteFromIDBadRequest creates a RoutesRouteFromIDBadRequest with default headers values

func (*RoutesRouteFromIDBadRequest) Error

func (*RoutesRouteFromIDBadRequest) GetPayload

type RoutesRouteFromIDForbidden

type RoutesRouteFromIDForbidden struct {
	Payload *models.V3ErrorResponse
}

RoutesRouteFromIDForbidden handles this case with default header values.

Access Denied

func NewRoutesRouteFromIDForbidden

func NewRoutesRouteFromIDForbidden() *RoutesRouteFromIDForbidden

NewRoutesRouteFromIDForbidden creates a RoutesRouteFromIDForbidden with default headers values

func (*RoutesRouteFromIDForbidden) Error

func (*RoutesRouteFromIDForbidden) GetPayload

type RoutesRouteFromIDOK

type RoutesRouteFromIDOK struct {
	Payload *models.V3RouteResponse
}

RoutesRouteFromIDOK handles this case with default header values.

The route name and number for the specified route ID.

func NewRoutesRouteFromIDOK

func NewRoutesRouteFromIDOK() *RoutesRouteFromIDOK

NewRoutesRouteFromIDOK creates a RoutesRouteFromIDOK with default headers values

func (*RoutesRouteFromIDOK) Error

func (o *RoutesRouteFromIDOK) Error() string

func (*RoutesRouteFromIDOK) GetPayload

func (o *RoutesRouteFromIDOK) GetPayload() *models.V3RouteResponse

type RoutesRouteFromIDParams

type RoutesRouteFromIDParams struct {

	/*Devid
	  Your developer id

	*/
	Devid *string
	/*RouteID
	  Identifier of route; values returned by Departures, Directions and Disruptions APIs

	*/
	RouteID int32
	/*Signature
	  Authentication signature for request

	*/
	Signature *string
	/*Token
	  Please ignore

	*/
	Token *string

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

RoutesRouteFromIDParams contains all the parameters to send to the API endpoint for the routes route from Id operation typically these are written to a http.Request

func NewRoutesRouteFromIDParams

func NewRoutesRouteFromIDParams() *RoutesRouteFromIDParams

NewRoutesRouteFromIDParams creates a new RoutesRouteFromIDParams object with the default values initialized.

func NewRoutesRouteFromIDParamsWithContext

func NewRoutesRouteFromIDParamsWithContext(ctx context.Context) *RoutesRouteFromIDParams

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

func NewRoutesRouteFromIDParamsWithHTTPClient

func NewRoutesRouteFromIDParamsWithHTTPClient(client *http.Client) *RoutesRouteFromIDParams

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

func NewRoutesRouteFromIDParamsWithTimeout

func NewRoutesRouteFromIDParamsWithTimeout(timeout time.Duration) *RoutesRouteFromIDParams

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

func (*RoutesRouteFromIDParams) SetContext

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

SetContext adds the context to the routes route from Id params

func (*RoutesRouteFromIDParams) SetDevid

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

SetDevid adds the devid to the routes route from Id params

func (*RoutesRouteFromIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the routes route from Id params

func (*RoutesRouteFromIDParams) SetRouteID

func (o *RoutesRouteFromIDParams) SetRouteID(routeID int32)

SetRouteID adds the routeId to the routes route from Id params

func (*RoutesRouteFromIDParams) SetSignature

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

SetSignature adds the signature to the routes route from Id params

func (*RoutesRouteFromIDParams) SetTimeout

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

SetTimeout adds the timeout to the routes route from Id params

func (*RoutesRouteFromIDParams) SetToken

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

SetToken adds the token to the routes route from Id params

func (*RoutesRouteFromIDParams) WithContext

WithContext adds the context to the routes route from Id params

func (*RoutesRouteFromIDParams) WithDevid

WithDevid adds the devid to the routes route from Id params

func (*RoutesRouteFromIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the routes route from Id params

func (*RoutesRouteFromIDParams) WithRouteID

func (o *RoutesRouteFromIDParams) WithRouteID(routeID int32) *RoutesRouteFromIDParams

WithRouteID adds the routeID to the routes route from Id params

func (*RoutesRouteFromIDParams) WithSignature

func (o *RoutesRouteFromIDParams) WithSignature(signature *string) *RoutesRouteFromIDParams

WithSignature adds the signature to the routes route from Id params

func (*RoutesRouteFromIDParams) WithTimeout

WithTimeout adds the timeout to the routes route from Id params

func (*RoutesRouteFromIDParams) WithToken

WithToken adds the token to the routes route from Id params

func (*RoutesRouteFromIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RoutesRouteFromIDReader

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

RoutesRouteFromIDReader is a Reader for the RoutesRouteFromID structure.

func (*RoutesRouteFromIDReader) ReadResponse

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