Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetNtpServiceURLBadRequest
- type GetNtpServiceURLInternalServerError
- type GetNtpServiceURLNotFound
- type GetNtpServiceURLOK
- type GetNtpServiceURLParams
- func NewGetNtpServiceURLParams() *GetNtpServiceURLParams
- func NewGetNtpServiceURLParamsWithContext(ctx context.Context) *GetNtpServiceURLParams
- func NewGetNtpServiceURLParamsWithHTTPClient(client *http.Client) *GetNtpServiceURLParams
- func NewGetNtpServiceURLParamsWithTimeout(timeout time.Duration) *GetNtpServiceURLParams
- func (o *GetNtpServiceURLParams) SetContentLanguage(contentLanguage *string)
- func (o *GetNtpServiceURLParams) SetContext(ctx context.Context)
- func (o *GetNtpServiceURLParams) SetDefaults()
- func (o *GetNtpServiceURLParams) SetHTTPClient(client *http.Client)
- func (o *GetNtpServiceURLParams) SetTimeout(timeout time.Duration)
- func (o *GetNtpServiceURLParams) WithContentLanguage(contentLanguage *string) *GetNtpServiceURLParams
- func (o *GetNtpServiceURLParams) WithContext(ctx context.Context) *GetNtpServiceURLParams
- func (o *GetNtpServiceURLParams) WithDefaults() *GetNtpServiceURLParams
- func (o *GetNtpServiceURLParams) WithHTTPClient(client *http.Client) *GetNtpServiceURLParams
- func (o *GetNtpServiceURLParams) WithTimeout(timeout time.Duration) *GetNtpServiceURLParams
- func (o *GetNtpServiceURLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetNtpServiceURLReader
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 ntp API
func (*Client) GetNtpServiceURL ¶
func (a *Client) GetNtpServiceURL(params *GetNtpServiceURLParams, opts ...ClientOption) (*GetNtpServiceURLOK, error)
GetNtpServiceURL get ntp service Url 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 { GetNtpServiceURL(params *GetNtpServiceURLParams, opts ...ClientOption) (*GetNtpServiceURLOK, 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 ntp API client.
type GetNtpServiceURLBadRequest ¶
GetNtpServiceURLBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetNtpServiceURLBadRequest ¶
func NewGetNtpServiceURLBadRequest() *GetNtpServiceURLBadRequest
NewGetNtpServiceURLBadRequest creates a GetNtpServiceURLBadRequest with default headers values
func (*GetNtpServiceURLBadRequest) Error ¶
func (o *GetNtpServiceURLBadRequest) Error() string
func (*GetNtpServiceURLBadRequest) GetPayload ¶
func (o *GetNtpServiceURLBadRequest) GetPayload() *models.ErrorBody
type GetNtpServiceURLInternalServerError ¶
type GetNtpServiceURLInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
GetNtpServiceURLInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetNtpServiceURLInternalServerError ¶
func NewGetNtpServiceURLInternalServerError() *GetNtpServiceURLInternalServerError
NewGetNtpServiceURLInternalServerError creates a GetNtpServiceURLInternalServerError with default headers values
func (*GetNtpServiceURLInternalServerError) Error ¶
func (o *GetNtpServiceURLInternalServerError) Error() string
func (*GetNtpServiceURLInternalServerError) GetPayload ¶
func (o *GetNtpServiceURLInternalServerError) GetPayload() *models.ErrorBody
type GetNtpServiceURLNotFound ¶
GetNtpServiceURLNotFound describes a response with status code 404, with default header values.
Not found
func NewGetNtpServiceURLNotFound ¶
func NewGetNtpServiceURLNotFound() *GetNtpServiceURLNotFound
NewGetNtpServiceURLNotFound creates a GetNtpServiceURLNotFound with default headers values
func (*GetNtpServiceURLNotFound) Error ¶
func (o *GetNtpServiceURLNotFound) Error() string
func (*GetNtpServiceURLNotFound) GetPayload ¶
func (o *GetNtpServiceURLNotFound) GetPayload() *models.ErrorBody
type GetNtpServiceURLOK ¶
type GetNtpServiceURLOK struct { XTowerRequestID string Payload *models.NtpServiceURL }
GetNtpServiceURLOK describes a response with status code 200, with default header values.
GetNtpServiceURLOK get ntp service Url o k
func NewGetNtpServiceURLOK ¶
func NewGetNtpServiceURLOK() *GetNtpServiceURLOK
NewGetNtpServiceURLOK creates a GetNtpServiceURLOK with default headers values
func (*GetNtpServiceURLOK) Error ¶
func (o *GetNtpServiceURLOK) Error() string
func (*GetNtpServiceURLOK) GetPayload ¶
func (o *GetNtpServiceURLOK) GetPayload() *models.NtpServiceURL
type GetNtpServiceURLParams ¶
type GetNtpServiceURLParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetNtpServiceURLParams contains all the parameters to send to the API endpoint
for the get ntp service Url operation. Typically these are written to a http.Request.
func NewGetNtpServiceURLParams ¶
func NewGetNtpServiceURLParams() *GetNtpServiceURLParams
NewGetNtpServiceURLParams creates a new GetNtpServiceURLParams 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 NewGetNtpServiceURLParamsWithContext ¶
func NewGetNtpServiceURLParamsWithContext(ctx context.Context) *GetNtpServiceURLParams
NewGetNtpServiceURLParamsWithContext creates a new GetNtpServiceURLParams object with the ability to set a context for a request.
func NewGetNtpServiceURLParamsWithHTTPClient ¶
func NewGetNtpServiceURLParamsWithHTTPClient(client *http.Client) *GetNtpServiceURLParams
NewGetNtpServiceURLParamsWithHTTPClient creates a new GetNtpServiceURLParams object with the ability to set a custom HTTPClient for a request.
func NewGetNtpServiceURLParamsWithTimeout ¶
func NewGetNtpServiceURLParamsWithTimeout(timeout time.Duration) *GetNtpServiceURLParams
NewGetNtpServiceURLParamsWithTimeout creates a new GetNtpServiceURLParams object with the ability to set a timeout on a request.
func (*GetNtpServiceURLParams) SetContentLanguage ¶
func (o *GetNtpServiceURLParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get ntp service Url params
func (*GetNtpServiceURLParams) SetContext ¶
func (o *GetNtpServiceURLParams) SetContext(ctx context.Context)
SetContext adds the context to the get ntp service Url params
func (*GetNtpServiceURLParams) SetDefaults ¶
func (o *GetNtpServiceURLParams) SetDefaults()
SetDefaults hydrates default values in the get ntp service Url params (not the query body).
All values with no default are reset to their zero value.
func (*GetNtpServiceURLParams) SetHTTPClient ¶
func (o *GetNtpServiceURLParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get ntp service Url params
func (*GetNtpServiceURLParams) SetTimeout ¶
func (o *GetNtpServiceURLParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get ntp service Url params
func (*GetNtpServiceURLParams) WithContentLanguage ¶
func (o *GetNtpServiceURLParams) WithContentLanguage(contentLanguage *string) *GetNtpServiceURLParams
WithContentLanguage adds the contentLanguage to the get ntp service Url params
func (*GetNtpServiceURLParams) WithContext ¶
func (o *GetNtpServiceURLParams) WithContext(ctx context.Context) *GetNtpServiceURLParams
WithContext adds the context to the get ntp service Url params
func (*GetNtpServiceURLParams) WithDefaults ¶
func (o *GetNtpServiceURLParams) WithDefaults() *GetNtpServiceURLParams
WithDefaults hydrates default values in the get ntp service Url params (not the query body).
All values with no default are reset to their zero value.
func (*GetNtpServiceURLParams) WithHTTPClient ¶
func (o *GetNtpServiceURLParams) WithHTTPClient(client *http.Client) *GetNtpServiceURLParams
WithHTTPClient adds the HTTPClient to the get ntp service Url params
func (*GetNtpServiceURLParams) WithTimeout ¶
func (o *GetNtpServiceURLParams) WithTimeout(timeout time.Duration) *GetNtpServiceURLParams
WithTimeout adds the timeout to the get ntp service Url params
func (*GetNtpServiceURLParams) WriteToRequest ¶
func (o *GetNtpServiceURLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetNtpServiceURLReader ¶
type GetNtpServiceURLReader struct {
// contains filtered or unexported fields
}
GetNtpServiceURLReader is a Reader for the GetNtpServiceURL structure.
func (*GetNtpServiceURLReader) ReadResponse ¶
func (o *GetNtpServiceURLReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.