bike

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BikeAPIAvailabilityNotModified added in v0.9.0

type BikeAPIAvailabilityNotModified struct {
}
BikeAPIAvailabilityNotModified describes a response with status code 304, with default header values.

服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content

func NewBikeAPIAvailabilityNotModified added in v0.9.0

func NewBikeAPIAvailabilityNotModified() *BikeAPIAvailabilityNotModified

NewBikeAPIAvailabilityNotModified creates a BikeAPIAvailabilityNotModified with default headers values

func (*BikeAPIAvailabilityNotModified) Error added in v0.9.0

type BikeAPIAvailabilityOK

type BikeAPIAvailabilityOK struct {
	Payload []*models.PTXServiceDTOBikeSpecificationV2BikeAvailability
}
BikeAPIAvailabilityOK describes a response with status code 200, with default header values.

Success

func NewBikeAPIAvailabilityOK

func NewBikeAPIAvailabilityOK() *BikeAPIAvailabilityOK

NewBikeAPIAvailabilityOK creates a BikeAPIAvailabilityOK with default headers values

func (*BikeAPIAvailabilityOK) Error

func (o *BikeAPIAvailabilityOK) Error() string

func (*BikeAPIAvailabilityOK) GetPayload

type BikeAPIAvailabilityParams

type BikeAPIAvailabilityParams struct {

	/* DollarFilter.

	   過濾
	*/
	DollarFilter *string

	/* DollarFormat.

	   指定來源格式
	*/
	DollarFormat string

	/* DollarOrderby.

	   排序
	*/
	DollarOrderby *string

	/* DollarSelect.

	   挑選
	*/
	DollarSelect *string

	/* DollarSkip.

	   跳過前幾筆
	*/
	DollarSkip *string

	/* DollarTop.

	   取前幾筆

	   Default: 30
	*/
	DollarTop *int64

	/* City.

	   欲查詢縣市
	*/
	City string

	/* Health.

	   加入參數'?health=true'即可查詢此API服務的健康狀態
	*/
	Health *string

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

BikeAPIAvailabilityParams contains all the parameters to send to the API endpoint

for the bike Api availability operation.

Typically these are written to a http.Request.

func NewBikeAPIAvailabilityParams

func NewBikeAPIAvailabilityParams() *BikeAPIAvailabilityParams

NewBikeAPIAvailabilityParams creates a new BikeAPIAvailabilityParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewBikeAPIAvailabilityParamsWithContext

func NewBikeAPIAvailabilityParamsWithContext(ctx context.Context) *BikeAPIAvailabilityParams

NewBikeAPIAvailabilityParamsWithContext creates a new BikeAPIAvailabilityParams object with the ability to set a context for a request.

func NewBikeAPIAvailabilityParamsWithHTTPClient

func NewBikeAPIAvailabilityParamsWithHTTPClient(client *http.Client) *BikeAPIAvailabilityParams

NewBikeAPIAvailabilityParamsWithHTTPClient creates a new BikeAPIAvailabilityParams object with the ability to set a custom HTTPClient for a request.

func NewBikeAPIAvailabilityParamsWithTimeout

func NewBikeAPIAvailabilityParamsWithTimeout(timeout time.Duration) *BikeAPIAvailabilityParams

NewBikeAPIAvailabilityParamsWithTimeout creates a new BikeAPIAvailabilityParams object with the ability to set a timeout on a request.

func (*BikeAPIAvailabilityParams) SetCity

func (o *BikeAPIAvailabilityParams) SetCity(city string)

SetCity adds the city to the bike Api availability params

func (*BikeAPIAvailabilityParams) SetContext

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

SetContext adds the context to the bike Api availability params

func (*BikeAPIAvailabilityParams) SetDefaults added in v0.9.0

func (o *BikeAPIAvailabilityParams) SetDefaults()

SetDefaults hydrates default values in the bike Api availability params (not the query body).

All values with no default are reset to their zero value.

func (*BikeAPIAvailabilityParams) SetDollarFilter

func (o *BikeAPIAvailabilityParams) SetDollarFilter(dollarFilter *string)

SetDollarFilter adds the dollarFilter to the bike Api availability params

func (*BikeAPIAvailabilityParams) SetDollarFormat

func (o *BikeAPIAvailabilityParams) SetDollarFormat(dollarFormat string)

SetDollarFormat adds the dollarFormat to the bike Api availability params

func (*BikeAPIAvailabilityParams) SetDollarOrderby

func (o *BikeAPIAvailabilityParams) SetDollarOrderby(dollarOrderby *string)

SetDollarOrderby adds the dollarOrderby to the bike Api availability params

func (*BikeAPIAvailabilityParams) SetDollarSelect

func (o *BikeAPIAvailabilityParams) SetDollarSelect(dollarSelect *string)

SetDollarSelect adds the dollarSelect to the bike Api availability params

func (*BikeAPIAvailabilityParams) SetDollarSkip

func (o *BikeAPIAvailabilityParams) SetDollarSkip(dollarSkip *string)

SetDollarSkip adds the dollarSkip to the bike Api availability params

func (*BikeAPIAvailabilityParams) SetDollarTop

func (o *BikeAPIAvailabilityParams) SetDollarTop(dollarTop *int64)

SetDollarTop adds the dollarTop to the bike Api availability params

func (*BikeAPIAvailabilityParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the bike Api availability params

func (*BikeAPIAvailabilityParams) SetHealth added in v0.12.0

func (o *BikeAPIAvailabilityParams) SetHealth(health *string)

SetHealth adds the health to the bike Api availability params

func (*BikeAPIAvailabilityParams) SetTimeout

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

SetTimeout adds the timeout to the bike Api availability params

func (*BikeAPIAvailabilityParams) WithCity

WithCity adds the city to the bike Api availability params

func (*BikeAPIAvailabilityParams) WithContext

WithContext adds the context to the bike Api availability params

func (*BikeAPIAvailabilityParams) WithDefaults added in v0.9.0

WithDefaults hydrates default values in the bike Api availability params (not the query body).

All values with no default are reset to their zero value.

func (*BikeAPIAvailabilityParams) WithDollarFilter

func (o *BikeAPIAvailabilityParams) WithDollarFilter(dollarFilter *string) *BikeAPIAvailabilityParams

WithDollarFilter adds the dollarFilter to the bike Api availability params

func (*BikeAPIAvailabilityParams) WithDollarFormat

func (o *BikeAPIAvailabilityParams) WithDollarFormat(dollarFormat string) *BikeAPIAvailabilityParams

WithDollarFormat adds the dollarFormat to the bike Api availability params

func (*BikeAPIAvailabilityParams) WithDollarOrderby

func (o *BikeAPIAvailabilityParams) WithDollarOrderby(dollarOrderby *string) *BikeAPIAvailabilityParams

WithDollarOrderby adds the dollarOrderby to the bike Api availability params

func (*BikeAPIAvailabilityParams) WithDollarSelect

func (o *BikeAPIAvailabilityParams) WithDollarSelect(dollarSelect *string) *BikeAPIAvailabilityParams

WithDollarSelect adds the dollarSelect to the bike Api availability params

func (*BikeAPIAvailabilityParams) WithDollarSkip

func (o *BikeAPIAvailabilityParams) WithDollarSkip(dollarSkip *string) *BikeAPIAvailabilityParams

WithDollarSkip adds the dollarSkip to the bike Api availability params

func (*BikeAPIAvailabilityParams) WithDollarTop

func (o *BikeAPIAvailabilityParams) WithDollarTop(dollarTop *int64) *BikeAPIAvailabilityParams

WithDollarTop adds the dollarTop to the bike Api availability params

func (*BikeAPIAvailabilityParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the bike Api availability params

func (*BikeAPIAvailabilityParams) WithHealth added in v0.12.0

WithHealth adds the health to the bike Api availability params

func (*BikeAPIAvailabilityParams) WithTimeout

WithTimeout adds the timeout to the bike Api availability params

func (*BikeAPIAvailabilityParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BikeAPIAvailabilityReader

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

BikeAPIAvailabilityReader is a Reader for the BikeAPIAvailability structure.

func (*BikeAPIAvailabilityReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BikeAPIAvailabilityStatus299 added in v0.12.0

type BikeAPIAvailabilityStatus299 struct {
	Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
BikeAPIAvailabilityStatus299 describes a response with status code 299, with default header values.

加入參數'?health=true'即可查詢此API服務的健康狀態

func NewBikeAPIAvailabilityStatus299 added in v0.12.0

func NewBikeAPIAvailabilityStatus299() *BikeAPIAvailabilityStatus299

NewBikeAPIAvailabilityStatus299 creates a BikeAPIAvailabilityStatus299 with default headers values

func (*BikeAPIAvailabilityStatus299) Error added in v0.12.0

func (*BikeAPIAvailabilityStatus299) GetPayload added in v0.12.0

type BikeAPIStationNotModified added in v0.9.0

type BikeAPIStationNotModified struct {
}
BikeAPIStationNotModified describes a response with status code 304, with default header values.

服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content

func NewBikeAPIStationNotModified added in v0.9.0

func NewBikeAPIStationNotModified() *BikeAPIStationNotModified

NewBikeAPIStationNotModified creates a BikeAPIStationNotModified with default headers values

func (*BikeAPIStationNotModified) Error added in v0.9.0

func (o *BikeAPIStationNotModified) Error() string

type BikeAPIStationOK

type BikeAPIStationOK struct {
	Payload []*models.PTXServiceDTOBikeSpecificationV2BikeStation
}
BikeAPIStationOK describes a response with status code 200, with default header values.

Success

func NewBikeAPIStationOK

func NewBikeAPIStationOK() *BikeAPIStationOK

NewBikeAPIStationOK creates a BikeAPIStationOK with default headers values

func (*BikeAPIStationOK) Error

func (o *BikeAPIStationOK) Error() string

func (*BikeAPIStationOK) GetPayload

type BikeAPIStationParams

type BikeAPIStationParams struct {

	/* DollarFilter.

	   過濾
	*/
	DollarFilter *string

	/* DollarFormat.

	   指定來源格式
	*/
	DollarFormat string

	/* DollarOrderby.

	   排序
	*/
	DollarOrderby *string

	/* DollarSelect.

	   挑選
	*/
	DollarSelect *string

	/* DollarSkip.

	   跳過前幾筆
	*/
	DollarSkip *string

	/* DollarSpatialFilter.

	   空間過濾,語法為nearby({Lat},{Lon},{DistanceInMeters}),例如nearby(25.047675, 121.517055, 100)
	*/
	DollarSpatialFilter *string

	/* DollarTop.

	   取前幾筆

	   Default: 30
	*/
	DollarTop *int64

	/* City.

	   欲查詢縣市
	*/
	City string

	/* Health.

	   加入參數'?health=true'即可查詢此API服務的健康狀態
	*/
	Health *string

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

BikeAPIStationParams contains all the parameters to send to the API endpoint

for the bike Api station operation.

Typically these are written to a http.Request.

func NewBikeAPIStationParams

func NewBikeAPIStationParams() *BikeAPIStationParams

NewBikeAPIStationParams creates a new BikeAPIStationParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewBikeAPIStationParamsWithContext

func NewBikeAPIStationParamsWithContext(ctx context.Context) *BikeAPIStationParams

NewBikeAPIStationParamsWithContext creates a new BikeAPIStationParams object with the ability to set a context for a request.

func NewBikeAPIStationParamsWithHTTPClient

func NewBikeAPIStationParamsWithHTTPClient(client *http.Client) *BikeAPIStationParams

NewBikeAPIStationParamsWithHTTPClient creates a new BikeAPIStationParams object with the ability to set a custom HTTPClient for a request.

func NewBikeAPIStationParamsWithTimeout

func NewBikeAPIStationParamsWithTimeout(timeout time.Duration) *BikeAPIStationParams

NewBikeAPIStationParamsWithTimeout creates a new BikeAPIStationParams object with the ability to set a timeout on a request.

func (*BikeAPIStationParams) SetCity

func (o *BikeAPIStationParams) SetCity(city string)

SetCity adds the city to the bike Api station params

func (*BikeAPIStationParams) SetContext

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

SetContext adds the context to the bike Api station params

func (*BikeAPIStationParams) SetDefaults added in v0.9.0

func (o *BikeAPIStationParams) SetDefaults()

SetDefaults hydrates default values in the bike Api station params (not the query body).

All values with no default are reset to their zero value.

func (*BikeAPIStationParams) SetDollarFilter

func (o *BikeAPIStationParams) SetDollarFilter(dollarFilter *string)

SetDollarFilter adds the dollarFilter to the bike Api station params

func (*BikeAPIStationParams) SetDollarFormat

func (o *BikeAPIStationParams) SetDollarFormat(dollarFormat string)

SetDollarFormat adds the dollarFormat to the bike Api station params

func (*BikeAPIStationParams) SetDollarOrderby

func (o *BikeAPIStationParams) SetDollarOrderby(dollarOrderby *string)

SetDollarOrderby adds the dollarOrderby to the bike Api station params

func (*BikeAPIStationParams) SetDollarSelect

func (o *BikeAPIStationParams) SetDollarSelect(dollarSelect *string)

SetDollarSelect adds the dollarSelect to the bike Api station params

func (*BikeAPIStationParams) SetDollarSkip

func (o *BikeAPIStationParams) SetDollarSkip(dollarSkip *string)

SetDollarSkip adds the dollarSkip to the bike Api station params

func (*BikeAPIStationParams) SetDollarSpatialFilter

func (o *BikeAPIStationParams) SetDollarSpatialFilter(dollarSpatialFilter *string)

SetDollarSpatialFilter adds the dollarSpatialFilter to the bike Api station params

func (*BikeAPIStationParams) SetDollarTop

func (o *BikeAPIStationParams) SetDollarTop(dollarTop *int64)

SetDollarTop adds the dollarTop to the bike Api station params

func (*BikeAPIStationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the bike Api station params

func (*BikeAPIStationParams) SetHealth added in v0.12.0

func (o *BikeAPIStationParams) SetHealth(health *string)

SetHealth adds the health to the bike Api station params

func (*BikeAPIStationParams) SetTimeout

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

SetTimeout adds the timeout to the bike Api station params

func (*BikeAPIStationParams) WithCity

WithCity adds the city to the bike Api station params

func (*BikeAPIStationParams) WithContext

WithContext adds the context to the bike Api station params

func (*BikeAPIStationParams) WithDefaults added in v0.9.0

func (o *BikeAPIStationParams) WithDefaults() *BikeAPIStationParams

WithDefaults hydrates default values in the bike Api station params (not the query body).

All values with no default are reset to their zero value.

func (*BikeAPIStationParams) WithDollarFilter

func (o *BikeAPIStationParams) WithDollarFilter(dollarFilter *string) *BikeAPIStationParams

WithDollarFilter adds the dollarFilter to the bike Api station params

func (*BikeAPIStationParams) WithDollarFormat

func (o *BikeAPIStationParams) WithDollarFormat(dollarFormat string) *BikeAPIStationParams

WithDollarFormat adds the dollarFormat to the bike Api station params

func (*BikeAPIStationParams) WithDollarOrderby

func (o *BikeAPIStationParams) WithDollarOrderby(dollarOrderby *string) *BikeAPIStationParams

WithDollarOrderby adds the dollarOrderby to the bike Api station params

func (*BikeAPIStationParams) WithDollarSelect

func (o *BikeAPIStationParams) WithDollarSelect(dollarSelect *string) *BikeAPIStationParams

WithDollarSelect adds the dollarSelect to the bike Api station params

func (*BikeAPIStationParams) WithDollarSkip

func (o *BikeAPIStationParams) WithDollarSkip(dollarSkip *string) *BikeAPIStationParams

WithDollarSkip adds the dollarSkip to the bike Api station params

func (*BikeAPIStationParams) WithDollarSpatialFilter

func (o *BikeAPIStationParams) WithDollarSpatialFilter(dollarSpatialFilter *string) *BikeAPIStationParams

WithDollarSpatialFilter adds the dollarSpatialFilter to the bike Api station params

func (*BikeAPIStationParams) WithDollarTop

func (o *BikeAPIStationParams) WithDollarTop(dollarTop *int64) *BikeAPIStationParams

WithDollarTop adds the dollarTop to the bike Api station params

func (*BikeAPIStationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the bike Api station params

func (*BikeAPIStationParams) WithHealth added in v0.12.0

func (o *BikeAPIStationParams) WithHealth(health *string) *BikeAPIStationParams

WithHealth adds the health to the bike Api station params

func (*BikeAPIStationParams) WithTimeout

func (o *BikeAPIStationParams) WithTimeout(timeout time.Duration) *BikeAPIStationParams

WithTimeout adds the timeout to the bike Api station params

func (*BikeAPIStationParams) WriteToRequest

func (o *BikeAPIStationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type BikeAPIStationReader

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

BikeAPIStationReader is a Reader for the BikeAPIStation structure.

func (*BikeAPIStationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BikeAPIStationStatus299 added in v0.12.0

type BikeAPIStationStatus299 struct {
	Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
BikeAPIStationStatus299 describes a response with status code 299, with default header values.

加入參數'?health=true'即可查詢此API服務的健康狀態

func NewBikeAPIStationStatus299 added in v0.12.0

func NewBikeAPIStationStatus299() *BikeAPIStationStatus299

NewBikeAPIStationStatus299 creates a BikeAPIStationStatus299 with default headers values

func (*BikeAPIStationStatus299) Error added in v0.12.0

func (o *BikeAPIStationStatus299) Error() string

func (*BikeAPIStationStatus299) GetPayload added in v0.12.0

type Client

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

Client for bike API

func (*Client) BikeAPIAvailability

BikeAPIAvailability 取得動態指定s 縣市 的公共自行車即時車位資料

取得動態指定[縣市]的公共自行車即時車位資料

func (*Client) BikeAPIStation

func (a *Client) BikeAPIStation(params *BikeAPIStationParams, opts ...ClientOption) (*BikeAPIStationOK, *BikeAPIStationStatus299, error)

BikeAPIStation 取得指定s 縣市 的公共自行車租借站位資料

取得指定[縣市]的公共自行車租借站位資料

func (*Client) CyclingAPIShape

func (a *Client) CyclingAPIShape(params *CyclingAPIShapeParams, opts ...ClientOption) (*CyclingAPIShapeOK, *CyclingAPIShapeStatus299, error)

CyclingAPIShape 取得指定縣市之自行車道路網圖資s

取得指定縣市之自行車道路網圖資

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v0.11.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.5.0

type ClientService interface {
	BikeAPIAvailability(params *BikeAPIAvailabilityParams, opts ...ClientOption) (*BikeAPIAvailabilityOK, *BikeAPIAvailabilityStatus299, error)

	BikeAPIStation(params *BikeAPIStationParams, opts ...ClientOption) (*BikeAPIStationOK, *BikeAPIStationStatus299, error)

	CyclingAPIShape(params *CyclingAPIShapeParams, opts ...ClientOption) (*CyclingAPIShapeOK, *CyclingAPIShapeStatus299, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new bike API client.

type CyclingAPIShapeNotModified added in v0.9.0

type CyclingAPIShapeNotModified struct {
}
CyclingAPIShapeNotModified describes a response with status code 304, with default header values.

服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content

func NewCyclingAPIShapeNotModified added in v0.9.0

func NewCyclingAPIShapeNotModified() *CyclingAPIShapeNotModified

NewCyclingAPIShapeNotModified creates a CyclingAPIShapeNotModified with default headers values

func (*CyclingAPIShapeNotModified) Error added in v0.9.0

type CyclingAPIShapeOK

type CyclingAPIShapeOK struct {
	Payload []*models.PTXServiceDTOBikeSpecificationV2BikeShape
}
CyclingAPIShapeOK describes a response with status code 200, with default header values.

Success

func NewCyclingAPIShapeOK

func NewCyclingAPIShapeOK() *CyclingAPIShapeOK

NewCyclingAPIShapeOK creates a CyclingAPIShapeOK with default headers values

func (*CyclingAPIShapeOK) Error

func (o *CyclingAPIShapeOK) Error() string

func (*CyclingAPIShapeOK) GetPayload

type CyclingAPIShapeParams

type CyclingAPIShapeParams struct {

	/* DollarFilter.

	   過濾
	*/
	DollarFilter *string

	/* DollarFormat.

	   指定來源格式
	*/
	DollarFormat string

	/* DollarOrderby.

	   排序
	*/
	DollarOrderby *string

	/* DollarSelect.

	   挑選
	*/
	DollarSelect *string

	/* DollarSkip.

	   跳過前幾筆
	*/
	DollarSkip *string

	/* DollarTop.

	   取前幾筆

	   Default: 30
	*/
	DollarTop *int64

	/* City.

	   欲查詢縣市
	*/
	City string

	/* Health.

	   加入參數'?health=true'即可查詢此API服務的健康狀態
	*/
	Health *string

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

CyclingAPIShapeParams contains all the parameters to send to the API endpoint

for the cycling Api shape operation.

Typically these are written to a http.Request.

func NewCyclingAPIShapeParams

func NewCyclingAPIShapeParams() *CyclingAPIShapeParams

NewCyclingAPIShapeParams creates a new CyclingAPIShapeParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCyclingAPIShapeParamsWithContext

func NewCyclingAPIShapeParamsWithContext(ctx context.Context) *CyclingAPIShapeParams

NewCyclingAPIShapeParamsWithContext creates a new CyclingAPIShapeParams object with the ability to set a context for a request.

func NewCyclingAPIShapeParamsWithHTTPClient

func NewCyclingAPIShapeParamsWithHTTPClient(client *http.Client) *CyclingAPIShapeParams

NewCyclingAPIShapeParamsWithHTTPClient creates a new CyclingAPIShapeParams object with the ability to set a custom HTTPClient for a request.

func NewCyclingAPIShapeParamsWithTimeout

func NewCyclingAPIShapeParamsWithTimeout(timeout time.Duration) *CyclingAPIShapeParams

NewCyclingAPIShapeParamsWithTimeout creates a new CyclingAPIShapeParams object with the ability to set a timeout on a request.

func (*CyclingAPIShapeParams) SetCity

func (o *CyclingAPIShapeParams) SetCity(city string)

SetCity adds the city to the cycling Api shape params

func (*CyclingAPIShapeParams) SetContext

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

SetContext adds the context to the cycling Api shape params

func (*CyclingAPIShapeParams) SetDefaults added in v0.9.0

func (o *CyclingAPIShapeParams) SetDefaults()

SetDefaults hydrates default values in the cycling Api shape params (not the query body).

All values with no default are reset to their zero value.

func (*CyclingAPIShapeParams) SetDollarFilter

func (o *CyclingAPIShapeParams) SetDollarFilter(dollarFilter *string)

SetDollarFilter adds the dollarFilter to the cycling Api shape params

func (*CyclingAPIShapeParams) SetDollarFormat

func (o *CyclingAPIShapeParams) SetDollarFormat(dollarFormat string)

SetDollarFormat adds the dollarFormat to the cycling Api shape params

func (*CyclingAPIShapeParams) SetDollarOrderby

func (o *CyclingAPIShapeParams) SetDollarOrderby(dollarOrderby *string)

SetDollarOrderby adds the dollarOrderby to the cycling Api shape params

func (*CyclingAPIShapeParams) SetDollarSelect

func (o *CyclingAPIShapeParams) SetDollarSelect(dollarSelect *string)

SetDollarSelect adds the dollarSelect to the cycling Api shape params

func (*CyclingAPIShapeParams) SetDollarSkip

func (o *CyclingAPIShapeParams) SetDollarSkip(dollarSkip *string)

SetDollarSkip adds the dollarSkip to the cycling Api shape params

func (*CyclingAPIShapeParams) SetDollarTop

func (o *CyclingAPIShapeParams) SetDollarTop(dollarTop *int64)

SetDollarTop adds the dollarTop to the cycling Api shape params

func (*CyclingAPIShapeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the cycling Api shape params

func (*CyclingAPIShapeParams) SetHealth added in v0.12.0

func (o *CyclingAPIShapeParams) SetHealth(health *string)

SetHealth adds the health to the cycling Api shape params

func (*CyclingAPIShapeParams) SetTimeout

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

SetTimeout adds the timeout to the cycling Api shape params

func (*CyclingAPIShapeParams) WithCity

WithCity adds the city to the cycling Api shape params

func (*CyclingAPIShapeParams) WithContext

WithContext adds the context to the cycling Api shape params

func (*CyclingAPIShapeParams) WithDefaults added in v0.9.0

func (o *CyclingAPIShapeParams) WithDefaults() *CyclingAPIShapeParams

WithDefaults hydrates default values in the cycling Api shape params (not the query body).

All values with no default are reset to their zero value.

func (*CyclingAPIShapeParams) WithDollarFilter

func (o *CyclingAPIShapeParams) WithDollarFilter(dollarFilter *string) *CyclingAPIShapeParams

WithDollarFilter adds the dollarFilter to the cycling Api shape params

func (*CyclingAPIShapeParams) WithDollarFormat

func (o *CyclingAPIShapeParams) WithDollarFormat(dollarFormat string) *CyclingAPIShapeParams

WithDollarFormat adds the dollarFormat to the cycling Api shape params

func (*CyclingAPIShapeParams) WithDollarOrderby

func (o *CyclingAPIShapeParams) WithDollarOrderby(dollarOrderby *string) *CyclingAPIShapeParams

WithDollarOrderby adds the dollarOrderby to the cycling Api shape params

func (*CyclingAPIShapeParams) WithDollarSelect

func (o *CyclingAPIShapeParams) WithDollarSelect(dollarSelect *string) *CyclingAPIShapeParams

WithDollarSelect adds the dollarSelect to the cycling Api shape params

func (*CyclingAPIShapeParams) WithDollarSkip

func (o *CyclingAPIShapeParams) WithDollarSkip(dollarSkip *string) *CyclingAPIShapeParams

WithDollarSkip adds the dollarSkip to the cycling Api shape params

func (*CyclingAPIShapeParams) WithDollarTop

func (o *CyclingAPIShapeParams) WithDollarTop(dollarTop *int64) *CyclingAPIShapeParams

WithDollarTop adds the dollarTop to the cycling Api shape params

func (*CyclingAPIShapeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the cycling Api shape params

func (*CyclingAPIShapeParams) WithHealth added in v0.12.0

func (o *CyclingAPIShapeParams) WithHealth(health *string) *CyclingAPIShapeParams

WithHealth adds the health to the cycling Api shape params

func (*CyclingAPIShapeParams) WithTimeout

func (o *CyclingAPIShapeParams) WithTimeout(timeout time.Duration) *CyclingAPIShapeParams

WithTimeout adds the timeout to the cycling Api shape params

func (*CyclingAPIShapeParams) WriteToRequest

func (o *CyclingAPIShapeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CyclingAPIShapeReader

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

CyclingAPIShapeReader is a Reader for the CyclingAPIShape structure.

func (*CyclingAPIShapeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CyclingAPIShapeStatus299 added in v0.12.0

type CyclingAPIShapeStatus299 struct {
	Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
CyclingAPIShapeStatus299 describes a response with status code 299, with default header values.

加入參數'?health=true'即可查詢此API服務的健康狀態

func NewCyclingAPIShapeStatus299 added in v0.12.0

func NewCyclingAPIShapeStatus299() *CyclingAPIShapeStatus299

NewCyclingAPIShapeStatus299 creates a CyclingAPIShapeStatus299 with default headers values

func (*CyclingAPIShapeStatus299) Error added in v0.12.0

func (o *CyclingAPIShapeStatus299) Error() string

func (*CyclingAPIShapeStatus299) GetPayload added in v0.12.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL