Documentation ¶
Index ¶
- type Client
- func (a *Client) DeparturesGetForStop(params *DeparturesGetForStopParams) (*DeparturesGetForStopOK, error)
- func (a *Client) DeparturesGetForStopAndRoute(params *DeparturesGetForStopAndRouteParams) (*DeparturesGetForStopAndRouteOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type DeparturesGetForStopAndRouteBadRequest
- type DeparturesGetForStopAndRouteForbidden
- type DeparturesGetForStopAndRouteOK
- type DeparturesGetForStopAndRouteParams
- func NewDeparturesGetForStopAndRouteParams() *DeparturesGetForStopAndRouteParams
- func NewDeparturesGetForStopAndRouteParamsWithContext(ctx context.Context) *DeparturesGetForStopAndRouteParams
- func NewDeparturesGetForStopAndRouteParamsWithHTTPClient(client *http.Client) *DeparturesGetForStopAndRouteParams
- func NewDeparturesGetForStopAndRouteParamsWithTimeout(timeout time.Duration) *DeparturesGetForStopAndRouteParams
- func (o *DeparturesGetForStopAndRouteParams) SetContext(ctx context.Context)
- func (o *DeparturesGetForStopAndRouteParams) SetDateUtc(dateUtc *strfmt.DateTime)
- func (o *DeparturesGetForStopAndRouteParams) SetDevid(devid *string)
- func (o *DeparturesGetForStopAndRouteParams) SetDirectionID(directionID *int32)
- func (o *DeparturesGetForStopAndRouteParams) SetExpand(expand []string)
- func (o *DeparturesGetForStopAndRouteParams) SetGtfs(gtfs *bool)
- func (o *DeparturesGetForStopAndRouteParams) SetHTTPClient(client *http.Client)
- func (o *DeparturesGetForStopAndRouteParams) SetIncludeCancelled(includeCancelled *bool)
- func (o *DeparturesGetForStopAndRouteParams) SetLookBackwards(lookBackwards *bool)
- func (o *DeparturesGetForStopAndRouteParams) SetMaxResults(maxResults *int32)
- func (o *DeparturesGetForStopAndRouteParams) SetRouteID(routeID string)
- func (o *DeparturesGetForStopAndRouteParams) SetRouteType(routeType int32)
- func (o *DeparturesGetForStopAndRouteParams) SetSignature(signature *string)
- func (o *DeparturesGetForStopAndRouteParams) SetStopID(stopID int32)
- func (o *DeparturesGetForStopAndRouteParams) SetTimeout(timeout time.Duration)
- func (o *DeparturesGetForStopAndRouteParams) SetToken(token *string)
- func (o *DeparturesGetForStopAndRouteParams) WithContext(ctx context.Context) *DeparturesGetForStopAndRouteParams
- func (o *DeparturesGetForStopAndRouteParams) WithDateUtc(dateUtc *strfmt.DateTime) *DeparturesGetForStopAndRouteParams
- func (o *DeparturesGetForStopAndRouteParams) WithDevid(devid *string) *DeparturesGetForStopAndRouteParams
- func (o *DeparturesGetForStopAndRouteParams) WithDirectionID(directionID *int32) *DeparturesGetForStopAndRouteParams
- func (o *DeparturesGetForStopAndRouteParams) WithExpand(expand []string) *DeparturesGetForStopAndRouteParams
- func (o *DeparturesGetForStopAndRouteParams) WithGtfs(gtfs *bool) *DeparturesGetForStopAndRouteParams
- func (o *DeparturesGetForStopAndRouteParams) WithHTTPClient(client *http.Client) *DeparturesGetForStopAndRouteParams
- func (o *DeparturesGetForStopAndRouteParams) WithIncludeCancelled(includeCancelled *bool) *DeparturesGetForStopAndRouteParams
- func (o *DeparturesGetForStopAndRouteParams) WithLookBackwards(lookBackwards *bool) *DeparturesGetForStopAndRouteParams
- func (o *DeparturesGetForStopAndRouteParams) WithMaxResults(maxResults *int32) *DeparturesGetForStopAndRouteParams
- func (o *DeparturesGetForStopAndRouteParams) WithRouteID(routeID string) *DeparturesGetForStopAndRouteParams
- func (o *DeparturesGetForStopAndRouteParams) WithRouteType(routeType int32) *DeparturesGetForStopAndRouteParams
- func (o *DeparturesGetForStopAndRouteParams) WithSignature(signature *string) *DeparturesGetForStopAndRouteParams
- func (o *DeparturesGetForStopAndRouteParams) WithStopID(stopID int32) *DeparturesGetForStopAndRouteParams
- func (o *DeparturesGetForStopAndRouteParams) WithTimeout(timeout time.Duration) *DeparturesGetForStopAndRouteParams
- func (o *DeparturesGetForStopAndRouteParams) WithToken(token *string) *DeparturesGetForStopAndRouteParams
- func (o *DeparturesGetForStopAndRouteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeparturesGetForStopAndRouteReader
- type DeparturesGetForStopBadRequest
- type DeparturesGetForStopForbidden
- type DeparturesGetForStopOK
- type DeparturesGetForStopParams
- func NewDeparturesGetForStopParams() *DeparturesGetForStopParams
- func NewDeparturesGetForStopParamsWithContext(ctx context.Context) *DeparturesGetForStopParams
- func NewDeparturesGetForStopParamsWithHTTPClient(client *http.Client) *DeparturesGetForStopParams
- func NewDeparturesGetForStopParamsWithTimeout(timeout time.Duration) *DeparturesGetForStopParams
- func (o *DeparturesGetForStopParams) SetContext(ctx context.Context)
- func (o *DeparturesGetForStopParams) SetDateUtc(dateUtc *strfmt.DateTime)
- func (o *DeparturesGetForStopParams) SetDevid(devid *string)
- func (o *DeparturesGetForStopParams) SetDirectionID(directionID *int32)
- func (o *DeparturesGetForStopParams) SetExpand(expand []string)
- func (o *DeparturesGetForStopParams) SetGtfs(gtfs *bool)
- func (o *DeparturesGetForStopParams) SetHTTPClient(client *http.Client)
- func (o *DeparturesGetForStopParams) SetIncludeCancelled(includeCancelled *bool)
- func (o *DeparturesGetForStopParams) SetLookBackwards(lookBackwards *bool)
- func (o *DeparturesGetForStopParams) SetMaxResults(maxResults *int32)
- func (o *DeparturesGetForStopParams) SetPlatformNumbers(platformNumbers []int32)
- func (o *DeparturesGetForStopParams) SetRouteType(routeType int32)
- func (o *DeparturesGetForStopParams) SetSignature(signature *string)
- func (o *DeparturesGetForStopParams) SetStopID(stopID int32)
- func (o *DeparturesGetForStopParams) SetTimeout(timeout time.Duration)
- func (o *DeparturesGetForStopParams) SetToken(token *string)
- func (o *DeparturesGetForStopParams) WithContext(ctx context.Context) *DeparturesGetForStopParams
- func (o *DeparturesGetForStopParams) WithDateUtc(dateUtc *strfmt.DateTime) *DeparturesGetForStopParams
- func (o *DeparturesGetForStopParams) WithDevid(devid *string) *DeparturesGetForStopParams
- func (o *DeparturesGetForStopParams) WithDirectionID(directionID *int32) *DeparturesGetForStopParams
- func (o *DeparturesGetForStopParams) WithExpand(expand []string) *DeparturesGetForStopParams
- func (o *DeparturesGetForStopParams) WithGtfs(gtfs *bool) *DeparturesGetForStopParams
- func (o *DeparturesGetForStopParams) WithHTTPClient(client *http.Client) *DeparturesGetForStopParams
- func (o *DeparturesGetForStopParams) WithIncludeCancelled(includeCancelled *bool) *DeparturesGetForStopParams
- func (o *DeparturesGetForStopParams) WithLookBackwards(lookBackwards *bool) *DeparturesGetForStopParams
- func (o *DeparturesGetForStopParams) WithMaxResults(maxResults *int32) *DeparturesGetForStopParams
- func (o *DeparturesGetForStopParams) WithPlatformNumbers(platformNumbers []int32) *DeparturesGetForStopParams
- func (o *DeparturesGetForStopParams) WithRouteType(routeType int32) *DeparturesGetForStopParams
- func (o *DeparturesGetForStopParams) WithSignature(signature *string) *DeparturesGetForStopParams
- func (o *DeparturesGetForStopParams) WithStopID(stopID int32) *DeparturesGetForStopParams
- func (o *DeparturesGetForStopParams) WithTimeout(timeout time.Duration) *DeparturesGetForStopParams
- func (o *DeparturesGetForStopParams) WithToken(token *string) *DeparturesGetForStopParams
- func (o *DeparturesGetForStopParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeparturesGetForStopReader
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 departures API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new departures API client.
func (*Client) DeparturesGetForStop ¶
func (a *Client) DeparturesGetForStop(params *DeparturesGetForStopParams) (*DeparturesGetForStopOK, error)
DeparturesGetForStop views departures for all routes from a stop
func (*Client) DeparturesGetForStopAndRoute ¶
func (a *Client) DeparturesGetForStopAndRoute(params *DeparturesGetForStopAndRouteParams) (*DeparturesGetForStopAndRouteOK, error)
DeparturesGetForStopAndRoute views departures for a specific route from a stop
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type DeparturesGetForStopAndRouteBadRequest ¶
type DeparturesGetForStopAndRouteBadRequest struct {
Payload *models.V3ErrorResponse
}
DeparturesGetForStopAndRouteBadRequest handles this case with default header values.
Invalid Request
func NewDeparturesGetForStopAndRouteBadRequest ¶
func NewDeparturesGetForStopAndRouteBadRequest() *DeparturesGetForStopAndRouteBadRequest
NewDeparturesGetForStopAndRouteBadRequest creates a DeparturesGetForStopAndRouteBadRequest with default headers values
func (*DeparturesGetForStopAndRouteBadRequest) Error ¶
func (o *DeparturesGetForStopAndRouteBadRequest) Error() string
func (*DeparturesGetForStopAndRouteBadRequest) GetPayload ¶
func (o *DeparturesGetForStopAndRouteBadRequest) GetPayload() *models.V3ErrorResponse
type DeparturesGetForStopAndRouteForbidden ¶
type DeparturesGetForStopAndRouteForbidden struct {
Payload *models.V3ErrorResponse
}
DeparturesGetForStopAndRouteForbidden handles this case with default header values.
Access Denied
func NewDeparturesGetForStopAndRouteForbidden ¶
func NewDeparturesGetForStopAndRouteForbidden() *DeparturesGetForStopAndRouteForbidden
NewDeparturesGetForStopAndRouteForbidden creates a DeparturesGetForStopAndRouteForbidden with default headers values
func (*DeparturesGetForStopAndRouteForbidden) Error ¶
func (o *DeparturesGetForStopAndRouteForbidden) Error() string
func (*DeparturesGetForStopAndRouteForbidden) GetPayload ¶
func (o *DeparturesGetForStopAndRouteForbidden) GetPayload() *models.V3ErrorResponse
type DeparturesGetForStopAndRouteOK ¶
type DeparturesGetForStopAndRouteOK struct {
Payload *models.V3DeparturesResponse
}
DeparturesGetForStopAndRouteOK handles this case with default header values.
Service departures from the specified stop for the specified route (and route type); departures are timetabled and real-time (if applicable).
func NewDeparturesGetForStopAndRouteOK ¶
func NewDeparturesGetForStopAndRouteOK() *DeparturesGetForStopAndRouteOK
NewDeparturesGetForStopAndRouteOK creates a DeparturesGetForStopAndRouteOK with default headers values
func (*DeparturesGetForStopAndRouteOK) Error ¶
func (o *DeparturesGetForStopAndRouteOK) Error() string
func (*DeparturesGetForStopAndRouteOK) GetPayload ¶
func (o *DeparturesGetForStopAndRouteOK) GetPayload() *models.V3DeparturesResponse
type DeparturesGetForStopAndRouteParams ¶
type DeparturesGetForStopAndRouteParams struct { /*DateUtc Filter by the date and time of the request (ISO 8601 UTC format) (default = current date and time) */ DateUtc *strfmt.DateTime /*Devid Your developer id */ Devid *string /*DirectionID Filter by identifier of direction of travel; values returned by Directions API - /v3/directions/route/{route_id} */ DirectionID *int32 /*Expand List objects to be returned in full (i.e. expanded) - options include: all, stop, route, run, direction, disruption */ Expand []string /*Gtfs Indicates that stop_id parameter will accept "GTFS stop_id" data */ Gtfs *bool /*IncludeCancelled Indicates if cancelled services (if they exist) are returned (default = false) - metropolitan train only */ IncludeCancelled *bool /*LookBackwards Indicates if filtering runs (and their departures) to those that arrive at destination before date_utc (default = false). Requires max_results > 0. */ LookBackwards *bool /*MaxResults Maximum number of results returned */ MaxResults *int32 /*RouteID Identifier of route; values returned by Routes API - v3/routes */ RouteID string /*RouteType Number identifying transport mode; values returned via RouteTypes API */ RouteType int32 /*Signature Authentication signature for request */ Signature *string /*StopID Identifier of stop; values returned by Stops API */ StopID int32 /*Token Please ignore */ Token *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeparturesGetForStopAndRouteParams contains all the parameters to send to the API endpoint for the departures get for stop and route operation typically these are written to a http.Request
func NewDeparturesGetForStopAndRouteParams ¶
func NewDeparturesGetForStopAndRouteParams() *DeparturesGetForStopAndRouteParams
NewDeparturesGetForStopAndRouteParams creates a new DeparturesGetForStopAndRouteParams object with the default values initialized.
func NewDeparturesGetForStopAndRouteParamsWithContext ¶
func NewDeparturesGetForStopAndRouteParamsWithContext(ctx context.Context) *DeparturesGetForStopAndRouteParams
NewDeparturesGetForStopAndRouteParamsWithContext creates a new DeparturesGetForStopAndRouteParams object with the default values initialized, and the ability to set a context for a request
func NewDeparturesGetForStopAndRouteParamsWithHTTPClient ¶
func NewDeparturesGetForStopAndRouteParamsWithHTTPClient(client *http.Client) *DeparturesGetForStopAndRouteParams
NewDeparturesGetForStopAndRouteParamsWithHTTPClient creates a new DeparturesGetForStopAndRouteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeparturesGetForStopAndRouteParamsWithTimeout ¶
func NewDeparturesGetForStopAndRouteParamsWithTimeout(timeout time.Duration) *DeparturesGetForStopAndRouteParams
NewDeparturesGetForStopAndRouteParamsWithTimeout creates a new DeparturesGetForStopAndRouteParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeparturesGetForStopAndRouteParams) SetContext ¶
func (o *DeparturesGetForStopAndRouteParams) SetContext(ctx context.Context)
SetContext adds the context to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) SetDateUtc ¶
func (o *DeparturesGetForStopAndRouteParams) SetDateUtc(dateUtc *strfmt.DateTime)
SetDateUtc adds the dateUtc to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) SetDevid ¶
func (o *DeparturesGetForStopAndRouteParams) SetDevid(devid *string)
SetDevid adds the devid to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) SetDirectionID ¶
func (o *DeparturesGetForStopAndRouteParams) SetDirectionID(directionID *int32)
SetDirectionID adds the directionId to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) SetExpand ¶
func (o *DeparturesGetForStopAndRouteParams) SetExpand(expand []string)
SetExpand adds the expand to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) SetGtfs ¶
func (o *DeparturesGetForStopAndRouteParams) SetGtfs(gtfs *bool)
SetGtfs adds the gtfs to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) SetHTTPClient ¶
func (o *DeparturesGetForStopAndRouteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) SetIncludeCancelled ¶
func (o *DeparturesGetForStopAndRouteParams) SetIncludeCancelled(includeCancelled *bool)
SetIncludeCancelled adds the includeCancelled to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) SetLookBackwards ¶
func (o *DeparturesGetForStopAndRouteParams) SetLookBackwards(lookBackwards *bool)
SetLookBackwards adds the lookBackwards to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) SetMaxResults ¶
func (o *DeparturesGetForStopAndRouteParams) SetMaxResults(maxResults *int32)
SetMaxResults adds the maxResults to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) SetRouteID ¶
func (o *DeparturesGetForStopAndRouteParams) SetRouteID(routeID string)
SetRouteID adds the routeId to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) SetRouteType ¶
func (o *DeparturesGetForStopAndRouteParams) SetRouteType(routeType int32)
SetRouteType adds the routeType to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) SetSignature ¶
func (o *DeparturesGetForStopAndRouteParams) SetSignature(signature *string)
SetSignature adds the signature to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) SetStopID ¶
func (o *DeparturesGetForStopAndRouteParams) SetStopID(stopID int32)
SetStopID adds the stopId to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) SetTimeout ¶
func (o *DeparturesGetForStopAndRouteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) SetToken ¶
func (o *DeparturesGetForStopAndRouteParams) SetToken(token *string)
SetToken adds the token to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) WithContext ¶
func (o *DeparturesGetForStopAndRouteParams) WithContext(ctx context.Context) *DeparturesGetForStopAndRouteParams
WithContext adds the context to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) WithDateUtc ¶
func (o *DeparturesGetForStopAndRouteParams) WithDateUtc(dateUtc *strfmt.DateTime) *DeparturesGetForStopAndRouteParams
WithDateUtc adds the dateUtc to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) WithDevid ¶
func (o *DeparturesGetForStopAndRouteParams) WithDevid(devid *string) *DeparturesGetForStopAndRouteParams
WithDevid adds the devid to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) WithDirectionID ¶
func (o *DeparturesGetForStopAndRouteParams) WithDirectionID(directionID *int32) *DeparturesGetForStopAndRouteParams
WithDirectionID adds the directionID to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) WithExpand ¶
func (o *DeparturesGetForStopAndRouteParams) WithExpand(expand []string) *DeparturesGetForStopAndRouteParams
WithExpand adds the expand to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) WithGtfs ¶
func (o *DeparturesGetForStopAndRouteParams) WithGtfs(gtfs *bool) *DeparturesGetForStopAndRouteParams
WithGtfs adds the gtfs to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) WithHTTPClient ¶
func (o *DeparturesGetForStopAndRouteParams) WithHTTPClient(client *http.Client) *DeparturesGetForStopAndRouteParams
WithHTTPClient adds the HTTPClient to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) WithIncludeCancelled ¶
func (o *DeparturesGetForStopAndRouteParams) WithIncludeCancelled(includeCancelled *bool) *DeparturesGetForStopAndRouteParams
WithIncludeCancelled adds the includeCancelled to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) WithLookBackwards ¶
func (o *DeparturesGetForStopAndRouteParams) WithLookBackwards(lookBackwards *bool) *DeparturesGetForStopAndRouteParams
WithLookBackwards adds the lookBackwards to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) WithMaxResults ¶
func (o *DeparturesGetForStopAndRouteParams) WithMaxResults(maxResults *int32) *DeparturesGetForStopAndRouteParams
WithMaxResults adds the maxResults to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) WithRouteID ¶
func (o *DeparturesGetForStopAndRouteParams) WithRouteID(routeID string) *DeparturesGetForStopAndRouteParams
WithRouteID adds the routeID to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) WithRouteType ¶
func (o *DeparturesGetForStopAndRouteParams) WithRouteType(routeType int32) *DeparturesGetForStopAndRouteParams
WithRouteType adds the routeType to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) WithSignature ¶
func (o *DeparturesGetForStopAndRouteParams) WithSignature(signature *string) *DeparturesGetForStopAndRouteParams
WithSignature adds the signature to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) WithStopID ¶
func (o *DeparturesGetForStopAndRouteParams) WithStopID(stopID int32) *DeparturesGetForStopAndRouteParams
WithStopID adds the stopID to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) WithTimeout ¶
func (o *DeparturesGetForStopAndRouteParams) WithTimeout(timeout time.Duration) *DeparturesGetForStopAndRouteParams
WithTimeout adds the timeout to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) WithToken ¶
func (o *DeparturesGetForStopAndRouteParams) WithToken(token *string) *DeparturesGetForStopAndRouteParams
WithToken adds the token to the departures get for stop and route params
func (*DeparturesGetForStopAndRouteParams) WriteToRequest ¶
func (o *DeparturesGetForStopAndRouteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeparturesGetForStopAndRouteReader ¶
type DeparturesGetForStopAndRouteReader struct {
// contains filtered or unexported fields
}
DeparturesGetForStopAndRouteReader is a Reader for the DeparturesGetForStopAndRoute structure.
func (*DeparturesGetForStopAndRouteReader) ReadResponse ¶
func (o *DeparturesGetForStopAndRouteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeparturesGetForStopBadRequest ¶
type DeparturesGetForStopBadRequest struct {
Payload *models.V3ErrorResponse
}
DeparturesGetForStopBadRequest handles this case with default header values.
Invalid Request
func NewDeparturesGetForStopBadRequest ¶
func NewDeparturesGetForStopBadRequest() *DeparturesGetForStopBadRequest
NewDeparturesGetForStopBadRequest creates a DeparturesGetForStopBadRequest with default headers values
func (*DeparturesGetForStopBadRequest) Error ¶
func (o *DeparturesGetForStopBadRequest) Error() string
func (*DeparturesGetForStopBadRequest) GetPayload ¶
func (o *DeparturesGetForStopBadRequest) GetPayload() *models.V3ErrorResponse
type DeparturesGetForStopForbidden ¶
type DeparturesGetForStopForbidden struct {
Payload *models.V3ErrorResponse
}
DeparturesGetForStopForbidden handles this case with default header values.
Access Denied
func NewDeparturesGetForStopForbidden ¶
func NewDeparturesGetForStopForbidden() *DeparturesGetForStopForbidden
NewDeparturesGetForStopForbidden creates a DeparturesGetForStopForbidden with default headers values
func (*DeparturesGetForStopForbidden) Error ¶
func (o *DeparturesGetForStopForbidden) Error() string
func (*DeparturesGetForStopForbidden) GetPayload ¶
func (o *DeparturesGetForStopForbidden) GetPayload() *models.V3ErrorResponse
type DeparturesGetForStopOK ¶
type DeparturesGetForStopOK struct {
Payload *models.V3DeparturesResponse
}
DeparturesGetForStopOK handles this case with default header values.
Service departures from the specified stop for all routes of the specified route type; departures are timetabled and real-time (if applicable).
func NewDeparturesGetForStopOK ¶
func NewDeparturesGetForStopOK() *DeparturesGetForStopOK
NewDeparturesGetForStopOK creates a DeparturesGetForStopOK with default headers values
func (*DeparturesGetForStopOK) Error ¶
func (o *DeparturesGetForStopOK) Error() string
func (*DeparturesGetForStopOK) GetPayload ¶
func (o *DeparturesGetForStopOK) GetPayload() *models.V3DeparturesResponse
type DeparturesGetForStopParams ¶
type DeparturesGetForStopParams struct { /*DateUtc Filter by the date and time of the request (ISO 8601 UTC format) (default = current date and time) */ DateUtc *strfmt.DateTime /*Devid Your developer id */ Devid *string /*DirectionID Filter by identifier of direction of travel; values returned by Directions API - /v3/directions/route/{route_id} */ DirectionID *int32 /*Expand List objects to be returned in full (i.e. expanded) - options include: all, stop, route, run, direction, disruption */ Expand []string /*Gtfs Indicates that stop_id parameter will accept "GTFS stop_id" data */ Gtfs *bool /*IncludeCancelled Indicates if cancelled services (if they exist) are returned (default = false) - metropolitan train only */ IncludeCancelled *bool /*LookBackwards Indicates if filtering runs (and their departures) to those that arrive at destination before date_utc (default = false). Requires max_results > 0. */ LookBackwards *bool /*MaxResults Maximum number of results returned */ MaxResults *int32 /*PlatformNumbers Filter by platform number at stop */ PlatformNumbers []int32 /*RouteType Number identifying transport mode; values returned via RouteTypes API */ RouteType int32 /*Signature Authentication signature for request */ Signature *string /*StopID Identifier of stop; values returned by Stops API */ StopID int32 /*Token Please ignore */ Token *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeparturesGetForStopParams contains all the parameters to send to the API endpoint for the departures get for stop operation typically these are written to a http.Request
func NewDeparturesGetForStopParams ¶
func NewDeparturesGetForStopParams() *DeparturesGetForStopParams
NewDeparturesGetForStopParams creates a new DeparturesGetForStopParams object with the default values initialized.
func NewDeparturesGetForStopParamsWithContext ¶
func NewDeparturesGetForStopParamsWithContext(ctx context.Context) *DeparturesGetForStopParams
NewDeparturesGetForStopParamsWithContext creates a new DeparturesGetForStopParams object with the default values initialized, and the ability to set a context for a request
func NewDeparturesGetForStopParamsWithHTTPClient ¶
func NewDeparturesGetForStopParamsWithHTTPClient(client *http.Client) *DeparturesGetForStopParams
NewDeparturesGetForStopParamsWithHTTPClient creates a new DeparturesGetForStopParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeparturesGetForStopParamsWithTimeout ¶
func NewDeparturesGetForStopParamsWithTimeout(timeout time.Duration) *DeparturesGetForStopParams
NewDeparturesGetForStopParamsWithTimeout creates a new DeparturesGetForStopParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeparturesGetForStopParams) SetContext ¶
func (o *DeparturesGetForStopParams) SetContext(ctx context.Context)
SetContext adds the context to the departures get for stop params
func (*DeparturesGetForStopParams) SetDateUtc ¶
func (o *DeparturesGetForStopParams) SetDateUtc(dateUtc *strfmt.DateTime)
SetDateUtc adds the dateUtc to the departures get for stop params
func (*DeparturesGetForStopParams) SetDevid ¶
func (o *DeparturesGetForStopParams) SetDevid(devid *string)
SetDevid adds the devid to the departures get for stop params
func (*DeparturesGetForStopParams) SetDirectionID ¶
func (o *DeparturesGetForStopParams) SetDirectionID(directionID *int32)
SetDirectionID adds the directionId to the departures get for stop params
func (*DeparturesGetForStopParams) SetExpand ¶
func (o *DeparturesGetForStopParams) SetExpand(expand []string)
SetExpand adds the expand to the departures get for stop params
func (*DeparturesGetForStopParams) SetGtfs ¶
func (o *DeparturesGetForStopParams) SetGtfs(gtfs *bool)
SetGtfs adds the gtfs to the departures get for stop params
func (*DeparturesGetForStopParams) SetHTTPClient ¶
func (o *DeparturesGetForStopParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the departures get for stop params
func (*DeparturesGetForStopParams) SetIncludeCancelled ¶
func (o *DeparturesGetForStopParams) SetIncludeCancelled(includeCancelled *bool)
SetIncludeCancelled adds the includeCancelled to the departures get for stop params
func (*DeparturesGetForStopParams) SetLookBackwards ¶
func (o *DeparturesGetForStopParams) SetLookBackwards(lookBackwards *bool)
SetLookBackwards adds the lookBackwards to the departures get for stop params
func (*DeparturesGetForStopParams) SetMaxResults ¶
func (o *DeparturesGetForStopParams) SetMaxResults(maxResults *int32)
SetMaxResults adds the maxResults to the departures get for stop params
func (*DeparturesGetForStopParams) SetPlatformNumbers ¶
func (o *DeparturesGetForStopParams) SetPlatformNumbers(platformNumbers []int32)
SetPlatformNumbers adds the platformNumbers to the departures get for stop params
func (*DeparturesGetForStopParams) SetRouteType ¶
func (o *DeparturesGetForStopParams) SetRouteType(routeType int32)
SetRouteType adds the routeType to the departures get for stop params
func (*DeparturesGetForStopParams) SetSignature ¶
func (o *DeparturesGetForStopParams) SetSignature(signature *string)
SetSignature adds the signature to the departures get for stop params
func (*DeparturesGetForStopParams) SetStopID ¶
func (o *DeparturesGetForStopParams) SetStopID(stopID int32)
SetStopID adds the stopId to the departures get for stop params
func (*DeparturesGetForStopParams) SetTimeout ¶
func (o *DeparturesGetForStopParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the departures get for stop params
func (*DeparturesGetForStopParams) SetToken ¶
func (o *DeparturesGetForStopParams) SetToken(token *string)
SetToken adds the token to the departures get for stop params
func (*DeparturesGetForStopParams) WithContext ¶
func (o *DeparturesGetForStopParams) WithContext(ctx context.Context) *DeparturesGetForStopParams
WithContext adds the context to the departures get for stop params
func (*DeparturesGetForStopParams) WithDateUtc ¶
func (o *DeparturesGetForStopParams) WithDateUtc(dateUtc *strfmt.DateTime) *DeparturesGetForStopParams
WithDateUtc adds the dateUtc to the departures get for stop params
func (*DeparturesGetForStopParams) WithDevid ¶
func (o *DeparturesGetForStopParams) WithDevid(devid *string) *DeparturesGetForStopParams
WithDevid adds the devid to the departures get for stop params
func (*DeparturesGetForStopParams) WithDirectionID ¶
func (o *DeparturesGetForStopParams) WithDirectionID(directionID *int32) *DeparturesGetForStopParams
WithDirectionID adds the directionID to the departures get for stop params
func (*DeparturesGetForStopParams) WithExpand ¶
func (o *DeparturesGetForStopParams) WithExpand(expand []string) *DeparturesGetForStopParams
WithExpand adds the expand to the departures get for stop params
func (*DeparturesGetForStopParams) WithGtfs ¶
func (o *DeparturesGetForStopParams) WithGtfs(gtfs *bool) *DeparturesGetForStopParams
WithGtfs adds the gtfs to the departures get for stop params
func (*DeparturesGetForStopParams) WithHTTPClient ¶
func (o *DeparturesGetForStopParams) WithHTTPClient(client *http.Client) *DeparturesGetForStopParams
WithHTTPClient adds the HTTPClient to the departures get for stop params
func (*DeparturesGetForStopParams) WithIncludeCancelled ¶
func (o *DeparturesGetForStopParams) WithIncludeCancelled(includeCancelled *bool) *DeparturesGetForStopParams
WithIncludeCancelled adds the includeCancelled to the departures get for stop params
func (*DeparturesGetForStopParams) WithLookBackwards ¶
func (o *DeparturesGetForStopParams) WithLookBackwards(lookBackwards *bool) *DeparturesGetForStopParams
WithLookBackwards adds the lookBackwards to the departures get for stop params
func (*DeparturesGetForStopParams) WithMaxResults ¶
func (o *DeparturesGetForStopParams) WithMaxResults(maxResults *int32) *DeparturesGetForStopParams
WithMaxResults adds the maxResults to the departures get for stop params
func (*DeparturesGetForStopParams) WithPlatformNumbers ¶
func (o *DeparturesGetForStopParams) WithPlatformNumbers(platformNumbers []int32) *DeparturesGetForStopParams
WithPlatformNumbers adds the platformNumbers to the departures get for stop params
func (*DeparturesGetForStopParams) WithRouteType ¶
func (o *DeparturesGetForStopParams) WithRouteType(routeType int32) *DeparturesGetForStopParams
WithRouteType adds the routeType to the departures get for stop params
func (*DeparturesGetForStopParams) WithSignature ¶
func (o *DeparturesGetForStopParams) WithSignature(signature *string) *DeparturesGetForStopParams
WithSignature adds the signature to the departures get for stop params
func (*DeparturesGetForStopParams) WithStopID ¶
func (o *DeparturesGetForStopParams) WithStopID(stopID int32) *DeparturesGetForStopParams
WithStopID adds the stopID to the departures get for stop params
func (*DeparturesGetForStopParams) WithTimeout ¶
func (o *DeparturesGetForStopParams) WithTimeout(timeout time.Duration) *DeparturesGetForStopParams
WithTimeout adds the timeout to the departures get for stop params
func (*DeparturesGetForStopParams) WithToken ¶
func (o *DeparturesGetForStopParams) WithToken(token *string) *DeparturesGetForStopParams
WithToken adds the token to the departures get for stop params
func (*DeparturesGetForStopParams) WriteToRequest ¶
func (o *DeparturesGetForStopParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeparturesGetForStopReader ¶
type DeparturesGetForStopReader struct {
// contains filtered or unexported fields
}
DeparturesGetForStopReader is a Reader for the DeparturesGetForStop structure.
func (*DeparturesGetForStopReader) ReadResponse ¶
func (o *DeparturesGetForStopReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.