Documentation ¶
Index ¶
- type Client
- func (a *Client) DirectionsForDirection(params *DirectionsForDirectionParams) (*DirectionsForDirectionOK, error)
- func (a *Client) DirectionsForDirectionAndType(params *DirectionsForDirectionAndTypeParams) (*DirectionsForDirectionAndTypeOK, error)
- func (a *Client) DirectionsForRoute(params *DirectionsForRouteParams) (*DirectionsForRouteOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type DirectionsForDirectionAndTypeBadRequest
- type DirectionsForDirectionAndTypeForbidden
- type DirectionsForDirectionAndTypeOK
- type DirectionsForDirectionAndTypeParams
- func NewDirectionsForDirectionAndTypeParams() *DirectionsForDirectionAndTypeParams
- func NewDirectionsForDirectionAndTypeParamsWithContext(ctx context.Context) *DirectionsForDirectionAndTypeParams
- func NewDirectionsForDirectionAndTypeParamsWithHTTPClient(client *http.Client) *DirectionsForDirectionAndTypeParams
- func NewDirectionsForDirectionAndTypeParamsWithTimeout(timeout time.Duration) *DirectionsForDirectionAndTypeParams
- func (o *DirectionsForDirectionAndTypeParams) SetContext(ctx context.Context)
- func (o *DirectionsForDirectionAndTypeParams) SetDevid(devid *string)
- func (o *DirectionsForDirectionAndTypeParams) SetDirectionID(directionID int32)
- func (o *DirectionsForDirectionAndTypeParams) SetHTTPClient(client *http.Client)
- func (o *DirectionsForDirectionAndTypeParams) SetRouteType(routeType int32)
- func (o *DirectionsForDirectionAndTypeParams) SetSignature(signature *string)
- func (o *DirectionsForDirectionAndTypeParams) SetTimeout(timeout time.Duration)
- func (o *DirectionsForDirectionAndTypeParams) SetToken(token *string)
- func (o *DirectionsForDirectionAndTypeParams) WithContext(ctx context.Context) *DirectionsForDirectionAndTypeParams
- func (o *DirectionsForDirectionAndTypeParams) WithDevid(devid *string) *DirectionsForDirectionAndTypeParams
- func (o *DirectionsForDirectionAndTypeParams) WithDirectionID(directionID int32) *DirectionsForDirectionAndTypeParams
- func (o *DirectionsForDirectionAndTypeParams) WithHTTPClient(client *http.Client) *DirectionsForDirectionAndTypeParams
- func (o *DirectionsForDirectionAndTypeParams) WithRouteType(routeType int32) *DirectionsForDirectionAndTypeParams
- func (o *DirectionsForDirectionAndTypeParams) WithSignature(signature *string) *DirectionsForDirectionAndTypeParams
- func (o *DirectionsForDirectionAndTypeParams) WithTimeout(timeout time.Duration) *DirectionsForDirectionAndTypeParams
- func (o *DirectionsForDirectionAndTypeParams) WithToken(token *string) *DirectionsForDirectionAndTypeParams
- func (o *DirectionsForDirectionAndTypeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DirectionsForDirectionAndTypeReader
- type DirectionsForDirectionBadRequest
- type DirectionsForDirectionForbidden
- type DirectionsForDirectionOK
- type DirectionsForDirectionParams
- func NewDirectionsForDirectionParams() *DirectionsForDirectionParams
- func NewDirectionsForDirectionParamsWithContext(ctx context.Context) *DirectionsForDirectionParams
- func NewDirectionsForDirectionParamsWithHTTPClient(client *http.Client) *DirectionsForDirectionParams
- func NewDirectionsForDirectionParamsWithTimeout(timeout time.Duration) *DirectionsForDirectionParams
- func (o *DirectionsForDirectionParams) SetContext(ctx context.Context)
- func (o *DirectionsForDirectionParams) SetDevid(devid *string)
- func (o *DirectionsForDirectionParams) SetDirectionID(directionID int32)
- func (o *DirectionsForDirectionParams) SetHTTPClient(client *http.Client)
- func (o *DirectionsForDirectionParams) SetSignature(signature *string)
- func (o *DirectionsForDirectionParams) SetTimeout(timeout time.Duration)
- func (o *DirectionsForDirectionParams) SetToken(token *string)
- func (o *DirectionsForDirectionParams) WithContext(ctx context.Context) *DirectionsForDirectionParams
- func (o *DirectionsForDirectionParams) WithDevid(devid *string) *DirectionsForDirectionParams
- func (o *DirectionsForDirectionParams) WithDirectionID(directionID int32) *DirectionsForDirectionParams
- func (o *DirectionsForDirectionParams) WithHTTPClient(client *http.Client) *DirectionsForDirectionParams
- func (o *DirectionsForDirectionParams) WithSignature(signature *string) *DirectionsForDirectionParams
- func (o *DirectionsForDirectionParams) WithTimeout(timeout time.Duration) *DirectionsForDirectionParams
- func (o *DirectionsForDirectionParams) WithToken(token *string) *DirectionsForDirectionParams
- func (o *DirectionsForDirectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DirectionsForDirectionReader
- type DirectionsForRouteBadRequest
- type DirectionsForRouteForbidden
- type DirectionsForRouteOK
- type DirectionsForRouteParams
- func NewDirectionsForRouteParams() *DirectionsForRouteParams
- func NewDirectionsForRouteParamsWithContext(ctx context.Context) *DirectionsForRouteParams
- func NewDirectionsForRouteParamsWithHTTPClient(client *http.Client) *DirectionsForRouteParams
- func NewDirectionsForRouteParamsWithTimeout(timeout time.Duration) *DirectionsForRouteParams
- func (o *DirectionsForRouteParams) SetContext(ctx context.Context)
- func (o *DirectionsForRouteParams) SetDevid(devid *string)
- func (o *DirectionsForRouteParams) SetHTTPClient(client *http.Client)
- func (o *DirectionsForRouteParams) SetRouteID(routeID int32)
- func (o *DirectionsForRouteParams) SetSignature(signature *string)
- func (o *DirectionsForRouteParams) SetTimeout(timeout time.Duration)
- func (o *DirectionsForRouteParams) SetToken(token *string)
- func (o *DirectionsForRouteParams) WithContext(ctx context.Context) *DirectionsForRouteParams
- func (o *DirectionsForRouteParams) WithDevid(devid *string) *DirectionsForRouteParams
- func (o *DirectionsForRouteParams) WithHTTPClient(client *http.Client) *DirectionsForRouteParams
- func (o *DirectionsForRouteParams) WithRouteID(routeID int32) *DirectionsForRouteParams
- func (o *DirectionsForRouteParams) WithSignature(signature *string) *DirectionsForRouteParams
- func (o *DirectionsForRouteParams) WithTimeout(timeout time.Duration) *DirectionsForRouteParams
- func (o *DirectionsForRouteParams) WithToken(token *string) *DirectionsForRouteParams
- func (o *DirectionsForRouteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DirectionsForRouteReader
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 directions API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new directions API client.
func (*Client) DirectionsForDirection ¶
func (a *Client) DirectionsForDirection(params *DirectionsForDirectionParams) (*DirectionsForDirectionOK, error)
DirectionsForDirection views all routes for a direction of travel
func (*Client) DirectionsForDirectionAndType ¶
func (a *Client) DirectionsForDirectionAndType(params *DirectionsForDirectionAndTypeParams) (*DirectionsForDirectionAndTypeOK, error)
DirectionsForDirectionAndType views all routes of a particular type for a direction of travel
func (*Client) DirectionsForRoute ¶
func (a *Client) DirectionsForRoute(params *DirectionsForRouteParams) (*DirectionsForRouteOK, error)
DirectionsForRoute views directions that a route travels in
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type DirectionsForDirectionAndTypeBadRequest ¶
type DirectionsForDirectionAndTypeBadRequest struct {
Payload *models.V3ErrorResponse
}
DirectionsForDirectionAndTypeBadRequest handles this case with default header values.
Invalid Request
func NewDirectionsForDirectionAndTypeBadRequest ¶
func NewDirectionsForDirectionAndTypeBadRequest() *DirectionsForDirectionAndTypeBadRequest
NewDirectionsForDirectionAndTypeBadRequest creates a DirectionsForDirectionAndTypeBadRequest with default headers values
func (*DirectionsForDirectionAndTypeBadRequest) Error ¶
func (o *DirectionsForDirectionAndTypeBadRequest) Error() string
func (*DirectionsForDirectionAndTypeBadRequest) GetPayload ¶
func (o *DirectionsForDirectionAndTypeBadRequest) GetPayload() *models.V3ErrorResponse
type DirectionsForDirectionAndTypeForbidden ¶
type DirectionsForDirectionAndTypeForbidden struct {
Payload *models.V3ErrorResponse
}
DirectionsForDirectionAndTypeForbidden handles this case with default header values.
Access Denied
func NewDirectionsForDirectionAndTypeForbidden ¶
func NewDirectionsForDirectionAndTypeForbidden() *DirectionsForDirectionAndTypeForbidden
NewDirectionsForDirectionAndTypeForbidden creates a DirectionsForDirectionAndTypeForbidden with default headers values
func (*DirectionsForDirectionAndTypeForbidden) Error ¶
func (o *DirectionsForDirectionAndTypeForbidden) Error() string
func (*DirectionsForDirectionAndTypeForbidden) GetPayload ¶
func (o *DirectionsForDirectionAndTypeForbidden) GetPayload() *models.V3ErrorResponse
type DirectionsForDirectionAndTypeOK ¶
type DirectionsForDirectionAndTypeOK struct {
Payload *models.V3DirectionsResponse
}
DirectionsForDirectionAndTypeOK handles this case with default header values.
All routes of the specified route type that travel in the specified direction.
func NewDirectionsForDirectionAndTypeOK ¶
func NewDirectionsForDirectionAndTypeOK() *DirectionsForDirectionAndTypeOK
NewDirectionsForDirectionAndTypeOK creates a DirectionsForDirectionAndTypeOK with default headers values
func (*DirectionsForDirectionAndTypeOK) Error ¶
func (o *DirectionsForDirectionAndTypeOK) Error() string
func (*DirectionsForDirectionAndTypeOK) GetPayload ¶
func (o *DirectionsForDirectionAndTypeOK) GetPayload() *models.V3DirectionsResponse
type DirectionsForDirectionAndTypeParams ¶
type DirectionsForDirectionAndTypeParams struct { /*Devid Your developer id */ Devid *string /*DirectionID Identifier of direction of travel; values returned by Directions API - /v3/directions/route/{route_id} */ DirectionID int32 /*RouteType Number identifying transport mode; values returned via RouteTypes API */ RouteType int32 /*Signature Authentication signature for request */ Signature *string /*Token Please ignore */ Token *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DirectionsForDirectionAndTypeParams contains all the parameters to send to the API endpoint for the directions for direction and type operation typically these are written to a http.Request
func NewDirectionsForDirectionAndTypeParams ¶
func NewDirectionsForDirectionAndTypeParams() *DirectionsForDirectionAndTypeParams
NewDirectionsForDirectionAndTypeParams creates a new DirectionsForDirectionAndTypeParams object with the default values initialized.
func NewDirectionsForDirectionAndTypeParamsWithContext ¶
func NewDirectionsForDirectionAndTypeParamsWithContext(ctx context.Context) *DirectionsForDirectionAndTypeParams
NewDirectionsForDirectionAndTypeParamsWithContext creates a new DirectionsForDirectionAndTypeParams object with the default values initialized, and the ability to set a context for a request
func NewDirectionsForDirectionAndTypeParamsWithHTTPClient ¶
func NewDirectionsForDirectionAndTypeParamsWithHTTPClient(client *http.Client) *DirectionsForDirectionAndTypeParams
NewDirectionsForDirectionAndTypeParamsWithHTTPClient creates a new DirectionsForDirectionAndTypeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDirectionsForDirectionAndTypeParamsWithTimeout ¶
func NewDirectionsForDirectionAndTypeParamsWithTimeout(timeout time.Duration) *DirectionsForDirectionAndTypeParams
NewDirectionsForDirectionAndTypeParamsWithTimeout creates a new DirectionsForDirectionAndTypeParams object with the default values initialized, and the ability to set a timeout on a request
func (*DirectionsForDirectionAndTypeParams) SetContext ¶
func (o *DirectionsForDirectionAndTypeParams) SetContext(ctx context.Context)
SetContext adds the context to the directions for direction and type params
func (*DirectionsForDirectionAndTypeParams) SetDevid ¶
func (o *DirectionsForDirectionAndTypeParams) SetDevid(devid *string)
SetDevid adds the devid to the directions for direction and type params
func (*DirectionsForDirectionAndTypeParams) SetDirectionID ¶
func (o *DirectionsForDirectionAndTypeParams) SetDirectionID(directionID int32)
SetDirectionID adds the directionId to the directions for direction and type params
func (*DirectionsForDirectionAndTypeParams) SetHTTPClient ¶
func (o *DirectionsForDirectionAndTypeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the directions for direction and type params
func (*DirectionsForDirectionAndTypeParams) SetRouteType ¶
func (o *DirectionsForDirectionAndTypeParams) SetRouteType(routeType int32)
SetRouteType adds the routeType to the directions for direction and type params
func (*DirectionsForDirectionAndTypeParams) SetSignature ¶
func (o *DirectionsForDirectionAndTypeParams) SetSignature(signature *string)
SetSignature adds the signature to the directions for direction and type params
func (*DirectionsForDirectionAndTypeParams) SetTimeout ¶
func (o *DirectionsForDirectionAndTypeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the directions for direction and type params
func (*DirectionsForDirectionAndTypeParams) SetToken ¶
func (o *DirectionsForDirectionAndTypeParams) SetToken(token *string)
SetToken adds the token to the directions for direction and type params
func (*DirectionsForDirectionAndTypeParams) WithContext ¶
func (o *DirectionsForDirectionAndTypeParams) WithContext(ctx context.Context) *DirectionsForDirectionAndTypeParams
WithContext adds the context to the directions for direction and type params
func (*DirectionsForDirectionAndTypeParams) WithDevid ¶
func (o *DirectionsForDirectionAndTypeParams) WithDevid(devid *string) *DirectionsForDirectionAndTypeParams
WithDevid adds the devid to the directions for direction and type params
func (*DirectionsForDirectionAndTypeParams) WithDirectionID ¶
func (o *DirectionsForDirectionAndTypeParams) WithDirectionID(directionID int32) *DirectionsForDirectionAndTypeParams
WithDirectionID adds the directionID to the directions for direction and type params
func (*DirectionsForDirectionAndTypeParams) WithHTTPClient ¶
func (o *DirectionsForDirectionAndTypeParams) WithHTTPClient(client *http.Client) *DirectionsForDirectionAndTypeParams
WithHTTPClient adds the HTTPClient to the directions for direction and type params
func (*DirectionsForDirectionAndTypeParams) WithRouteType ¶
func (o *DirectionsForDirectionAndTypeParams) WithRouteType(routeType int32) *DirectionsForDirectionAndTypeParams
WithRouteType adds the routeType to the directions for direction and type params
func (*DirectionsForDirectionAndTypeParams) WithSignature ¶
func (o *DirectionsForDirectionAndTypeParams) WithSignature(signature *string) *DirectionsForDirectionAndTypeParams
WithSignature adds the signature to the directions for direction and type params
func (*DirectionsForDirectionAndTypeParams) WithTimeout ¶
func (o *DirectionsForDirectionAndTypeParams) WithTimeout(timeout time.Duration) *DirectionsForDirectionAndTypeParams
WithTimeout adds the timeout to the directions for direction and type params
func (*DirectionsForDirectionAndTypeParams) WithToken ¶
func (o *DirectionsForDirectionAndTypeParams) WithToken(token *string) *DirectionsForDirectionAndTypeParams
WithToken adds the token to the directions for direction and type params
func (*DirectionsForDirectionAndTypeParams) WriteToRequest ¶
func (o *DirectionsForDirectionAndTypeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DirectionsForDirectionAndTypeReader ¶
type DirectionsForDirectionAndTypeReader struct {
// contains filtered or unexported fields
}
DirectionsForDirectionAndTypeReader is a Reader for the DirectionsForDirectionAndType structure.
func (*DirectionsForDirectionAndTypeReader) ReadResponse ¶
func (o *DirectionsForDirectionAndTypeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DirectionsForDirectionBadRequest ¶
type DirectionsForDirectionBadRequest struct {
Payload *models.V3ErrorResponse
}
DirectionsForDirectionBadRequest handles this case with default header values.
Invalid Request
func NewDirectionsForDirectionBadRequest ¶
func NewDirectionsForDirectionBadRequest() *DirectionsForDirectionBadRequest
NewDirectionsForDirectionBadRequest creates a DirectionsForDirectionBadRequest with default headers values
func (*DirectionsForDirectionBadRequest) Error ¶
func (o *DirectionsForDirectionBadRequest) Error() string
func (*DirectionsForDirectionBadRequest) GetPayload ¶
func (o *DirectionsForDirectionBadRequest) GetPayload() *models.V3ErrorResponse
type DirectionsForDirectionForbidden ¶
type DirectionsForDirectionForbidden struct {
Payload *models.V3ErrorResponse
}
DirectionsForDirectionForbidden handles this case with default header values.
Access Denied
func NewDirectionsForDirectionForbidden ¶
func NewDirectionsForDirectionForbidden() *DirectionsForDirectionForbidden
NewDirectionsForDirectionForbidden creates a DirectionsForDirectionForbidden with default headers values
func (*DirectionsForDirectionForbidden) Error ¶
func (o *DirectionsForDirectionForbidden) Error() string
func (*DirectionsForDirectionForbidden) GetPayload ¶
func (o *DirectionsForDirectionForbidden) GetPayload() *models.V3ErrorResponse
type DirectionsForDirectionOK ¶
type DirectionsForDirectionOK struct {
Payload *models.V3DirectionsResponse
}
DirectionsForDirectionOK handles this case with default header values.
All routes that travel in the specified direction.
func NewDirectionsForDirectionOK ¶
func NewDirectionsForDirectionOK() *DirectionsForDirectionOK
NewDirectionsForDirectionOK creates a DirectionsForDirectionOK with default headers values
func (*DirectionsForDirectionOK) Error ¶
func (o *DirectionsForDirectionOK) Error() string
func (*DirectionsForDirectionOK) GetPayload ¶
func (o *DirectionsForDirectionOK) GetPayload() *models.V3DirectionsResponse
type DirectionsForDirectionParams ¶
type DirectionsForDirectionParams struct { /*Devid Your developer id */ Devid *string /*DirectionID Identifier of direction of travel; values returned by Directions API - /v3/directions/route/{route_id} */ DirectionID int32 /*Signature Authentication signature for request */ Signature *string /*Token Please ignore */ Token *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DirectionsForDirectionParams contains all the parameters to send to the API endpoint for the directions for direction operation typically these are written to a http.Request
func NewDirectionsForDirectionParams ¶
func NewDirectionsForDirectionParams() *DirectionsForDirectionParams
NewDirectionsForDirectionParams creates a new DirectionsForDirectionParams object with the default values initialized.
func NewDirectionsForDirectionParamsWithContext ¶
func NewDirectionsForDirectionParamsWithContext(ctx context.Context) *DirectionsForDirectionParams
NewDirectionsForDirectionParamsWithContext creates a new DirectionsForDirectionParams object with the default values initialized, and the ability to set a context for a request
func NewDirectionsForDirectionParamsWithHTTPClient ¶
func NewDirectionsForDirectionParamsWithHTTPClient(client *http.Client) *DirectionsForDirectionParams
NewDirectionsForDirectionParamsWithHTTPClient creates a new DirectionsForDirectionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDirectionsForDirectionParamsWithTimeout ¶
func NewDirectionsForDirectionParamsWithTimeout(timeout time.Duration) *DirectionsForDirectionParams
NewDirectionsForDirectionParamsWithTimeout creates a new DirectionsForDirectionParams object with the default values initialized, and the ability to set a timeout on a request
func (*DirectionsForDirectionParams) SetContext ¶
func (o *DirectionsForDirectionParams) SetContext(ctx context.Context)
SetContext adds the context to the directions for direction params
func (*DirectionsForDirectionParams) SetDevid ¶
func (o *DirectionsForDirectionParams) SetDevid(devid *string)
SetDevid adds the devid to the directions for direction params
func (*DirectionsForDirectionParams) SetDirectionID ¶
func (o *DirectionsForDirectionParams) SetDirectionID(directionID int32)
SetDirectionID adds the directionId to the directions for direction params
func (*DirectionsForDirectionParams) SetHTTPClient ¶
func (o *DirectionsForDirectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the directions for direction params
func (*DirectionsForDirectionParams) SetSignature ¶
func (o *DirectionsForDirectionParams) SetSignature(signature *string)
SetSignature adds the signature to the directions for direction params
func (*DirectionsForDirectionParams) SetTimeout ¶
func (o *DirectionsForDirectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the directions for direction params
func (*DirectionsForDirectionParams) SetToken ¶
func (o *DirectionsForDirectionParams) SetToken(token *string)
SetToken adds the token to the directions for direction params
func (*DirectionsForDirectionParams) WithContext ¶
func (o *DirectionsForDirectionParams) WithContext(ctx context.Context) *DirectionsForDirectionParams
WithContext adds the context to the directions for direction params
func (*DirectionsForDirectionParams) WithDevid ¶
func (o *DirectionsForDirectionParams) WithDevid(devid *string) *DirectionsForDirectionParams
WithDevid adds the devid to the directions for direction params
func (*DirectionsForDirectionParams) WithDirectionID ¶
func (o *DirectionsForDirectionParams) WithDirectionID(directionID int32) *DirectionsForDirectionParams
WithDirectionID adds the directionID to the directions for direction params
func (*DirectionsForDirectionParams) WithHTTPClient ¶
func (o *DirectionsForDirectionParams) WithHTTPClient(client *http.Client) *DirectionsForDirectionParams
WithHTTPClient adds the HTTPClient to the directions for direction params
func (*DirectionsForDirectionParams) WithSignature ¶
func (o *DirectionsForDirectionParams) WithSignature(signature *string) *DirectionsForDirectionParams
WithSignature adds the signature to the directions for direction params
func (*DirectionsForDirectionParams) WithTimeout ¶
func (o *DirectionsForDirectionParams) WithTimeout(timeout time.Duration) *DirectionsForDirectionParams
WithTimeout adds the timeout to the directions for direction params
func (*DirectionsForDirectionParams) WithToken ¶
func (o *DirectionsForDirectionParams) WithToken(token *string) *DirectionsForDirectionParams
WithToken adds the token to the directions for direction params
func (*DirectionsForDirectionParams) WriteToRequest ¶
func (o *DirectionsForDirectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DirectionsForDirectionReader ¶
type DirectionsForDirectionReader struct {
// contains filtered or unexported fields
}
DirectionsForDirectionReader is a Reader for the DirectionsForDirection structure.
func (*DirectionsForDirectionReader) ReadResponse ¶
func (o *DirectionsForDirectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DirectionsForRouteBadRequest ¶
type DirectionsForRouteBadRequest struct {
Payload *models.V3ErrorResponse
}
DirectionsForRouteBadRequest handles this case with default header values.
Invalid Request
func NewDirectionsForRouteBadRequest ¶
func NewDirectionsForRouteBadRequest() *DirectionsForRouteBadRequest
NewDirectionsForRouteBadRequest creates a DirectionsForRouteBadRequest with default headers values
func (*DirectionsForRouteBadRequest) Error ¶
func (o *DirectionsForRouteBadRequest) Error() string
func (*DirectionsForRouteBadRequest) GetPayload ¶
func (o *DirectionsForRouteBadRequest) GetPayload() *models.V3ErrorResponse
type DirectionsForRouteForbidden ¶
type DirectionsForRouteForbidden struct {
Payload *models.V3ErrorResponse
}
DirectionsForRouteForbidden handles this case with default header values.
Access Denied
func NewDirectionsForRouteForbidden ¶
func NewDirectionsForRouteForbidden() *DirectionsForRouteForbidden
NewDirectionsForRouteForbidden creates a DirectionsForRouteForbidden with default headers values
func (*DirectionsForRouteForbidden) Error ¶
func (o *DirectionsForRouteForbidden) Error() string
func (*DirectionsForRouteForbidden) GetPayload ¶
func (o *DirectionsForRouteForbidden) GetPayload() *models.V3ErrorResponse
type DirectionsForRouteOK ¶
type DirectionsForRouteOK struct {
Payload *models.V3DirectionsResponse
}
DirectionsForRouteOK handles this case with default header values.
The directions that a specified route travels in.
func NewDirectionsForRouteOK ¶
func NewDirectionsForRouteOK() *DirectionsForRouteOK
NewDirectionsForRouteOK creates a DirectionsForRouteOK with default headers values
func (*DirectionsForRouteOK) Error ¶
func (o *DirectionsForRouteOK) Error() string
func (*DirectionsForRouteOK) GetPayload ¶
func (o *DirectionsForRouteOK) GetPayload() *models.V3DirectionsResponse
type DirectionsForRouteParams ¶
type DirectionsForRouteParams struct { /*Devid Your developer id */ Devid *string /*RouteID Identifier of route; values returned by Routes API - v3/routes */ 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 }
DirectionsForRouteParams contains all the parameters to send to the API endpoint for the directions for route operation typically these are written to a http.Request
func NewDirectionsForRouteParams ¶
func NewDirectionsForRouteParams() *DirectionsForRouteParams
NewDirectionsForRouteParams creates a new DirectionsForRouteParams object with the default values initialized.
func NewDirectionsForRouteParamsWithContext ¶
func NewDirectionsForRouteParamsWithContext(ctx context.Context) *DirectionsForRouteParams
NewDirectionsForRouteParamsWithContext creates a new DirectionsForRouteParams object with the default values initialized, and the ability to set a context for a request
func NewDirectionsForRouteParamsWithHTTPClient ¶
func NewDirectionsForRouteParamsWithHTTPClient(client *http.Client) *DirectionsForRouteParams
NewDirectionsForRouteParamsWithHTTPClient creates a new DirectionsForRouteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDirectionsForRouteParamsWithTimeout ¶
func NewDirectionsForRouteParamsWithTimeout(timeout time.Duration) *DirectionsForRouteParams
NewDirectionsForRouteParamsWithTimeout creates a new DirectionsForRouteParams object with the default values initialized, and the ability to set a timeout on a request
func (*DirectionsForRouteParams) SetContext ¶
func (o *DirectionsForRouteParams) SetContext(ctx context.Context)
SetContext adds the context to the directions for route params
func (*DirectionsForRouteParams) SetDevid ¶
func (o *DirectionsForRouteParams) SetDevid(devid *string)
SetDevid adds the devid to the directions for route params
func (*DirectionsForRouteParams) SetHTTPClient ¶
func (o *DirectionsForRouteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the directions for route params
func (*DirectionsForRouteParams) SetRouteID ¶
func (o *DirectionsForRouteParams) SetRouteID(routeID int32)
SetRouteID adds the routeId to the directions for route params
func (*DirectionsForRouteParams) SetSignature ¶
func (o *DirectionsForRouteParams) SetSignature(signature *string)
SetSignature adds the signature to the directions for route params
func (*DirectionsForRouteParams) SetTimeout ¶
func (o *DirectionsForRouteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the directions for route params
func (*DirectionsForRouteParams) SetToken ¶
func (o *DirectionsForRouteParams) SetToken(token *string)
SetToken adds the token to the directions for route params
func (*DirectionsForRouteParams) WithContext ¶
func (o *DirectionsForRouteParams) WithContext(ctx context.Context) *DirectionsForRouteParams
WithContext adds the context to the directions for route params
func (*DirectionsForRouteParams) WithDevid ¶
func (o *DirectionsForRouteParams) WithDevid(devid *string) *DirectionsForRouteParams
WithDevid adds the devid to the directions for route params
func (*DirectionsForRouteParams) WithHTTPClient ¶
func (o *DirectionsForRouteParams) WithHTTPClient(client *http.Client) *DirectionsForRouteParams
WithHTTPClient adds the HTTPClient to the directions for route params
func (*DirectionsForRouteParams) WithRouteID ¶
func (o *DirectionsForRouteParams) WithRouteID(routeID int32) *DirectionsForRouteParams
WithRouteID adds the routeID to the directions for route params
func (*DirectionsForRouteParams) WithSignature ¶
func (o *DirectionsForRouteParams) WithSignature(signature *string) *DirectionsForRouteParams
WithSignature adds the signature to the directions for route params
func (*DirectionsForRouteParams) WithTimeout ¶
func (o *DirectionsForRouteParams) WithTimeout(timeout time.Duration) *DirectionsForRouteParams
WithTimeout adds the timeout to the directions for route params
func (*DirectionsForRouteParams) WithToken ¶
func (o *DirectionsForRouteParams) WithToken(token *string) *DirectionsForRouteParams
WithToken adds the token to the directions for route params
func (*DirectionsForRouteParams) WriteToRequest ¶
func (o *DirectionsForRouteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DirectionsForRouteReader ¶
type DirectionsForRouteReader struct {
// contains filtered or unexported fields
}
DirectionsForRouteReader is a Reader for the DirectionsForRoute structure.
func (*DirectionsForRouteReader) ReadResponse ¶
func (o *DirectionsForRouteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.