Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetWitnessServicesBadRequest
- type GetWitnessServicesInternalServerError
- type GetWitnessServicesNotFound
- type GetWitnessServicesOK
- type GetWitnessServicesParams
- func NewGetWitnessServicesParams() *GetWitnessServicesParams
- func NewGetWitnessServicesParamsWithContext(ctx context.Context) *GetWitnessServicesParams
- func NewGetWitnessServicesParamsWithHTTPClient(client *http.Client) *GetWitnessServicesParams
- func NewGetWitnessServicesParamsWithTimeout(timeout time.Duration) *GetWitnessServicesParams
- func (o *GetWitnessServicesParams) SetContentLanguage(contentLanguage *string)
- func (o *GetWitnessServicesParams) SetContext(ctx context.Context)
- func (o *GetWitnessServicesParams) SetDefaults()
- func (o *GetWitnessServicesParams) SetHTTPClient(client *http.Client)
- func (o *GetWitnessServicesParams) SetRequestBody(requestBody *models.GetWitnessServicesRequestBody)
- func (o *GetWitnessServicesParams) SetTimeout(timeout time.Duration)
- func (o *GetWitnessServicesParams) WithContentLanguage(contentLanguage *string) *GetWitnessServicesParams
- func (o *GetWitnessServicesParams) WithContext(ctx context.Context) *GetWitnessServicesParams
- func (o *GetWitnessServicesParams) WithDefaults() *GetWitnessServicesParams
- func (o *GetWitnessServicesParams) WithHTTPClient(client *http.Client) *GetWitnessServicesParams
- func (o *GetWitnessServicesParams) WithRequestBody(requestBody *models.GetWitnessServicesRequestBody) *GetWitnessServicesParams
- func (o *GetWitnessServicesParams) WithTimeout(timeout time.Duration) *GetWitnessServicesParams
- func (o *GetWitnessServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWitnessServicesReader
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 witness service API
func (*Client) GetWitnessServices ¶
func (a *Client) GetWitnessServices(params *GetWitnessServicesParams, opts ...ClientOption) (*GetWitnessServicesOK, error)
GetWitnessServices get witness services API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetWitnessServices(params *GetWitnessServicesParams, opts ...ClientOption) (*GetWitnessServicesOK, 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 witness service API client.
type GetWitnessServicesBadRequest ¶
GetWitnessServicesBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetWitnessServicesBadRequest ¶
func NewGetWitnessServicesBadRequest() *GetWitnessServicesBadRequest
NewGetWitnessServicesBadRequest creates a GetWitnessServicesBadRequest with default headers values
func (*GetWitnessServicesBadRequest) Error ¶
func (o *GetWitnessServicesBadRequest) Error() string
func (*GetWitnessServicesBadRequest) GetPayload ¶
func (o *GetWitnessServicesBadRequest) GetPayload() *models.ErrorBody
type GetWitnessServicesInternalServerError ¶
type GetWitnessServicesInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
GetWitnessServicesInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetWitnessServicesInternalServerError ¶
func NewGetWitnessServicesInternalServerError() *GetWitnessServicesInternalServerError
NewGetWitnessServicesInternalServerError creates a GetWitnessServicesInternalServerError with default headers values
func (*GetWitnessServicesInternalServerError) Error ¶
func (o *GetWitnessServicesInternalServerError) Error() string
func (*GetWitnessServicesInternalServerError) GetPayload ¶
func (o *GetWitnessServicesInternalServerError) GetPayload() *models.ErrorBody
type GetWitnessServicesNotFound ¶
GetWitnessServicesNotFound describes a response with status code 404, with default header values.
Not found
func NewGetWitnessServicesNotFound ¶
func NewGetWitnessServicesNotFound() *GetWitnessServicesNotFound
NewGetWitnessServicesNotFound creates a GetWitnessServicesNotFound with default headers values
func (*GetWitnessServicesNotFound) Error ¶
func (o *GetWitnessServicesNotFound) Error() string
func (*GetWitnessServicesNotFound) GetPayload ¶
func (o *GetWitnessServicesNotFound) GetPayload() *models.ErrorBody
type GetWitnessServicesOK ¶
type GetWitnessServicesOK struct { XTowerRequestID string Payload []*models.WitnessService }
GetWitnessServicesOK describes a response with status code 200, with default header values.
GetWitnessServicesOK get witness services o k
func NewGetWitnessServicesOK ¶
func NewGetWitnessServicesOK() *GetWitnessServicesOK
NewGetWitnessServicesOK creates a GetWitnessServicesOK with default headers values
func (*GetWitnessServicesOK) Error ¶
func (o *GetWitnessServicesOK) Error() string
func (*GetWitnessServicesOK) GetPayload ¶
func (o *GetWitnessServicesOK) GetPayload() []*models.WitnessService
type GetWitnessServicesParams ¶
type GetWitnessServicesParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetWitnessServicesRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWitnessServicesParams contains all the parameters to send to the API endpoint
for the get witness services operation. Typically these are written to a http.Request.
func NewGetWitnessServicesParams ¶
func NewGetWitnessServicesParams() *GetWitnessServicesParams
NewGetWitnessServicesParams creates a new GetWitnessServicesParams 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 NewGetWitnessServicesParamsWithContext ¶
func NewGetWitnessServicesParamsWithContext(ctx context.Context) *GetWitnessServicesParams
NewGetWitnessServicesParamsWithContext creates a new GetWitnessServicesParams object with the ability to set a context for a request.
func NewGetWitnessServicesParamsWithHTTPClient ¶
func NewGetWitnessServicesParamsWithHTTPClient(client *http.Client) *GetWitnessServicesParams
NewGetWitnessServicesParamsWithHTTPClient creates a new GetWitnessServicesParams object with the ability to set a custom HTTPClient for a request.
func NewGetWitnessServicesParamsWithTimeout ¶
func NewGetWitnessServicesParamsWithTimeout(timeout time.Duration) *GetWitnessServicesParams
NewGetWitnessServicesParamsWithTimeout creates a new GetWitnessServicesParams object with the ability to set a timeout on a request.
func (*GetWitnessServicesParams) SetContentLanguage ¶
func (o *GetWitnessServicesParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get witness services params
func (*GetWitnessServicesParams) SetContext ¶
func (o *GetWitnessServicesParams) SetContext(ctx context.Context)
SetContext adds the context to the get witness services params
func (*GetWitnessServicesParams) SetDefaults ¶
func (o *GetWitnessServicesParams) SetDefaults()
SetDefaults hydrates default values in the get witness services params (not the query body).
All values with no default are reset to their zero value.
func (*GetWitnessServicesParams) SetHTTPClient ¶
func (o *GetWitnessServicesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get witness services params
func (*GetWitnessServicesParams) SetRequestBody ¶
func (o *GetWitnessServicesParams) SetRequestBody(requestBody *models.GetWitnessServicesRequestBody)
SetRequestBody adds the requestBody to the get witness services params
func (*GetWitnessServicesParams) SetTimeout ¶
func (o *GetWitnessServicesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get witness services params
func (*GetWitnessServicesParams) WithContentLanguage ¶
func (o *GetWitnessServicesParams) WithContentLanguage(contentLanguage *string) *GetWitnessServicesParams
WithContentLanguage adds the contentLanguage to the get witness services params
func (*GetWitnessServicesParams) WithContext ¶
func (o *GetWitnessServicesParams) WithContext(ctx context.Context) *GetWitnessServicesParams
WithContext adds the context to the get witness services params
func (*GetWitnessServicesParams) WithDefaults ¶
func (o *GetWitnessServicesParams) WithDefaults() *GetWitnessServicesParams
WithDefaults hydrates default values in the get witness services params (not the query body).
All values with no default are reset to their zero value.
func (*GetWitnessServicesParams) WithHTTPClient ¶
func (o *GetWitnessServicesParams) WithHTTPClient(client *http.Client) *GetWitnessServicesParams
WithHTTPClient adds the HTTPClient to the get witness services params
func (*GetWitnessServicesParams) WithRequestBody ¶
func (o *GetWitnessServicesParams) WithRequestBody(requestBody *models.GetWitnessServicesRequestBody) *GetWitnessServicesParams
WithRequestBody adds the requestBody to the get witness services params
func (*GetWitnessServicesParams) WithTimeout ¶
func (o *GetWitnessServicesParams) WithTimeout(timeout time.Duration) *GetWitnessServicesParams
WithTimeout adds the timeout to the get witness services params
func (*GetWitnessServicesParams) WriteToRequest ¶
func (o *GetWitnessServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWitnessServicesReader ¶
type GetWitnessServicesReader struct {
// contains filtered or unexported fields
}
GetWitnessServicesReader is a Reader for the GetWitnessServices structure.
func (*GetWitnessServicesReader) ReadResponse ¶
func (o *GetWitnessServicesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.