Documentation ¶
Index ¶
- type Client
- type RoutesOneOrMoreRoutesBadRequest
- type RoutesOneOrMoreRoutesForbidden
- type RoutesOneOrMoreRoutesOK
- type RoutesOneOrMoreRoutesParams
- func NewRoutesOneOrMoreRoutesParams() *RoutesOneOrMoreRoutesParams
- func NewRoutesOneOrMoreRoutesParamsWithContext(ctx context.Context) *RoutesOneOrMoreRoutesParams
- func NewRoutesOneOrMoreRoutesParamsWithHTTPClient(client *http.Client) *RoutesOneOrMoreRoutesParams
- func NewRoutesOneOrMoreRoutesParamsWithTimeout(timeout time.Duration) *RoutesOneOrMoreRoutesParams
- func (o *RoutesOneOrMoreRoutesParams) SetContext(ctx context.Context)
- func (o *RoutesOneOrMoreRoutesParams) SetDevid(devid *string)
- func (o *RoutesOneOrMoreRoutesParams) SetHTTPClient(client *http.Client)
- func (o *RoutesOneOrMoreRoutesParams) SetRouteName(routeName *string)
- func (o *RoutesOneOrMoreRoutesParams) SetRouteTypes(routeTypes []int32)
- func (o *RoutesOneOrMoreRoutesParams) SetSignature(signature *string)
- func (o *RoutesOneOrMoreRoutesParams) SetTimeout(timeout time.Duration)
- func (o *RoutesOneOrMoreRoutesParams) SetToken(token *string)
- func (o *RoutesOneOrMoreRoutesParams) WithContext(ctx context.Context) *RoutesOneOrMoreRoutesParams
- func (o *RoutesOneOrMoreRoutesParams) WithDevid(devid *string) *RoutesOneOrMoreRoutesParams
- func (o *RoutesOneOrMoreRoutesParams) WithHTTPClient(client *http.Client) *RoutesOneOrMoreRoutesParams
- func (o *RoutesOneOrMoreRoutesParams) WithRouteName(routeName *string) *RoutesOneOrMoreRoutesParams
- func (o *RoutesOneOrMoreRoutesParams) WithRouteTypes(routeTypes []int32) *RoutesOneOrMoreRoutesParams
- func (o *RoutesOneOrMoreRoutesParams) WithSignature(signature *string) *RoutesOneOrMoreRoutesParams
- func (o *RoutesOneOrMoreRoutesParams) WithTimeout(timeout time.Duration) *RoutesOneOrMoreRoutesParams
- func (o *RoutesOneOrMoreRoutesParams) WithToken(token *string) *RoutesOneOrMoreRoutesParams
- func (o *RoutesOneOrMoreRoutesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RoutesOneOrMoreRoutesReader
- type RoutesRouteFromIDBadRequest
- type RoutesRouteFromIDForbidden
- type RoutesRouteFromIDOK
- type RoutesRouteFromIDParams
- func NewRoutesRouteFromIDParams() *RoutesRouteFromIDParams
- func NewRoutesRouteFromIDParamsWithContext(ctx context.Context) *RoutesRouteFromIDParams
- func NewRoutesRouteFromIDParamsWithHTTPClient(client *http.Client) *RoutesRouteFromIDParams
- func NewRoutesRouteFromIDParamsWithTimeout(timeout time.Duration) *RoutesRouteFromIDParams
- func (o *RoutesRouteFromIDParams) SetContext(ctx context.Context)
- func (o *RoutesRouteFromIDParams) SetDevid(devid *string)
- func (o *RoutesRouteFromIDParams) SetHTTPClient(client *http.Client)
- func (o *RoutesRouteFromIDParams) SetRouteID(routeID int32)
- func (o *RoutesRouteFromIDParams) SetSignature(signature *string)
- func (o *RoutesRouteFromIDParams) SetTimeout(timeout time.Duration)
- func (o *RoutesRouteFromIDParams) SetToken(token *string)
- func (o *RoutesRouteFromIDParams) WithContext(ctx context.Context) *RoutesRouteFromIDParams
- func (o *RoutesRouteFromIDParams) WithDevid(devid *string) *RoutesRouteFromIDParams
- func (o *RoutesRouteFromIDParams) WithHTTPClient(client *http.Client) *RoutesRouteFromIDParams
- func (o *RoutesRouteFromIDParams) WithRouteID(routeID int32) *RoutesRouteFromIDParams
- func (o *RoutesRouteFromIDParams) WithSignature(signature *string) *RoutesRouteFromIDParams
- func (o *RoutesRouteFromIDParams) WithTimeout(timeout time.Duration) *RoutesRouteFromIDParams
- func (o *RoutesRouteFromIDParams) WithToken(token *string) *RoutesRouteFromIDParams
- func (o *RoutesRouteFromIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RoutesRouteFromIDReader
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 (o *RoutesOneOrMoreRoutesBadRequest) Error() string
func (*RoutesOneOrMoreRoutesBadRequest) GetPayload ¶
func (o *RoutesOneOrMoreRoutesBadRequest) GetPayload() *models.V3ErrorResponse
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 (o *RoutesOneOrMoreRoutesForbidden) Error() string
func (*RoutesOneOrMoreRoutesForbidden) GetPayload ¶
func (o *RoutesOneOrMoreRoutesForbidden) GetPayload() *models.V3ErrorResponse
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 ¶
func (o *RoutesOneOrMoreRoutesOK) GetPayload() *models.V3RoutesResponse
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 ¶
func (o *RoutesOneOrMoreRoutesParams) WithContext(ctx context.Context) *RoutesOneOrMoreRoutesParams
WithContext adds the context to the routes one or more routes params
func (*RoutesOneOrMoreRoutesParams) WithDevid ¶
func (o *RoutesOneOrMoreRoutesParams) WithDevid(devid *string) *RoutesOneOrMoreRoutesParams
WithDevid adds the devid to the routes one or more routes params
func (*RoutesOneOrMoreRoutesParams) WithHTTPClient ¶
func (o *RoutesOneOrMoreRoutesParams) WithHTTPClient(client *http.Client) *RoutesOneOrMoreRoutesParams
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 ¶
func (o *RoutesOneOrMoreRoutesParams) WithTimeout(timeout time.Duration) *RoutesOneOrMoreRoutesParams
WithTimeout adds the timeout to the routes one or more routes params
func (*RoutesOneOrMoreRoutesParams) WithToken ¶
func (o *RoutesOneOrMoreRoutesParams) WithToken(token *string) *RoutesOneOrMoreRoutesParams
WithToken adds the token to the routes one or more routes params
func (*RoutesOneOrMoreRoutesParams) WriteToRequest ¶
func (o *RoutesOneOrMoreRoutesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *RoutesRouteFromIDBadRequest) Error() string
func (*RoutesRouteFromIDBadRequest) GetPayload ¶
func (o *RoutesRouteFromIDBadRequest) GetPayload() *models.V3ErrorResponse
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 (o *RoutesRouteFromIDForbidden) Error() string
func (*RoutesRouteFromIDForbidden) GetPayload ¶
func (o *RoutesRouteFromIDForbidden) GetPayload() *models.V3ErrorResponse
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 ¶
func (o *RoutesRouteFromIDParams) WithContext(ctx context.Context) *RoutesRouteFromIDParams
WithContext adds the context to the routes route from Id params
func (*RoutesRouteFromIDParams) WithDevid ¶
func (o *RoutesRouteFromIDParams) WithDevid(devid *string) *RoutesRouteFromIDParams
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 ¶
func (o *RoutesRouteFromIDParams) WithTimeout(timeout time.Duration) *RoutesRouteFromIDParams
WithTimeout adds the timeout to the routes route from Id params
func (*RoutesRouteFromIDParams) WithToken ¶
func (o *RoutesRouteFromIDParams) WithToken(token *string) *RoutesRouteFromIDParams
WithToken adds the token to the routes route from Id params
func (*RoutesRouteFromIDParams) WriteToRequest ¶
func (o *RoutesRouteFromIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.