Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetZonesBadRequest
- type GetZonesConnectionBadRequest
- type GetZonesConnectionInternalServerError
- type GetZonesConnectionNotFound
- type GetZonesConnectionOK
- type GetZonesConnectionParams
- func NewGetZonesConnectionParams() *GetZonesConnectionParams
- func NewGetZonesConnectionParamsWithContext(ctx context.Context) *GetZonesConnectionParams
- func NewGetZonesConnectionParamsWithHTTPClient(client *http.Client) *GetZonesConnectionParams
- func NewGetZonesConnectionParamsWithTimeout(timeout time.Duration) *GetZonesConnectionParams
- func (o *GetZonesConnectionParams) SetContentLanguage(contentLanguage *string)
- func (o *GetZonesConnectionParams) SetContext(ctx context.Context)
- func (o *GetZonesConnectionParams) SetDefaults()
- func (o *GetZonesConnectionParams) SetHTTPClient(client *http.Client)
- func (o *GetZonesConnectionParams) SetRequestBody(requestBody *models.GetZonesConnectionRequestBody)
- func (o *GetZonesConnectionParams) SetTimeout(timeout time.Duration)
- func (o *GetZonesConnectionParams) WithContentLanguage(contentLanguage *string) *GetZonesConnectionParams
- func (o *GetZonesConnectionParams) WithContext(ctx context.Context) *GetZonesConnectionParams
- func (o *GetZonesConnectionParams) WithDefaults() *GetZonesConnectionParams
- func (o *GetZonesConnectionParams) WithHTTPClient(client *http.Client) *GetZonesConnectionParams
- func (o *GetZonesConnectionParams) WithRequestBody(requestBody *models.GetZonesConnectionRequestBody) *GetZonesConnectionParams
- func (o *GetZonesConnectionParams) WithTimeout(timeout time.Duration) *GetZonesConnectionParams
- func (o *GetZonesConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetZonesConnectionReader
- type GetZonesInternalServerError
- type GetZonesNotFound
- type GetZonesOK
- type GetZonesParams
- func (o *GetZonesParams) SetContentLanguage(contentLanguage *string)
- func (o *GetZonesParams) SetContext(ctx context.Context)
- func (o *GetZonesParams) SetDefaults()
- func (o *GetZonesParams) SetHTTPClient(client *http.Client)
- func (o *GetZonesParams) SetRequestBody(requestBody *models.GetZonesRequestBody)
- func (o *GetZonesParams) SetTimeout(timeout time.Duration)
- func (o *GetZonesParams) WithContentLanguage(contentLanguage *string) *GetZonesParams
- func (o *GetZonesParams) WithContext(ctx context.Context) *GetZonesParams
- func (o *GetZonesParams) WithDefaults() *GetZonesParams
- func (o *GetZonesParams) WithHTTPClient(client *http.Client) *GetZonesParams
- func (o *GetZonesParams) WithRequestBody(requestBody *models.GetZonesRequestBody) *GetZonesParams
- func (o *GetZonesParams) WithTimeout(timeout time.Duration) *GetZonesParams
- func (o *GetZonesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetZonesReader
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 zone API
func (*Client) GetZones ¶
func (a *Client) GetZones(params *GetZonesParams, opts ...ClientOption) (*GetZonesOK, error)
GetZones get zones API
func (*Client) GetZonesConnection ¶
func (a *Client) GetZonesConnection(params *GetZonesConnectionParams, opts ...ClientOption) (*GetZonesConnectionOK, error)
GetZonesConnection get zones connection 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 { GetZones(params *GetZonesParams, opts ...ClientOption) (*GetZonesOK, error) GetZonesConnection(params *GetZonesConnectionParams, opts ...ClientOption) (*GetZonesConnectionOK, 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 zone API client.
type GetZonesBadRequest ¶
GetZonesBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetZonesBadRequest ¶
func NewGetZonesBadRequest() *GetZonesBadRequest
NewGetZonesBadRequest creates a GetZonesBadRequest with default headers values
func (*GetZonesBadRequest) Error ¶
func (o *GetZonesBadRequest) Error() string
func (*GetZonesBadRequest) GetPayload ¶
func (o *GetZonesBadRequest) GetPayload() *models.ErrorBody
type GetZonesConnectionBadRequest ¶
GetZonesConnectionBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetZonesConnectionBadRequest ¶
func NewGetZonesConnectionBadRequest() *GetZonesConnectionBadRequest
NewGetZonesConnectionBadRequest creates a GetZonesConnectionBadRequest with default headers values
func (*GetZonesConnectionBadRequest) Error ¶
func (o *GetZonesConnectionBadRequest) Error() string
func (*GetZonesConnectionBadRequest) GetPayload ¶
func (o *GetZonesConnectionBadRequest) GetPayload() *models.ErrorBody
type GetZonesConnectionInternalServerError ¶
type GetZonesConnectionInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
GetZonesConnectionInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetZonesConnectionInternalServerError ¶
func NewGetZonesConnectionInternalServerError() *GetZonesConnectionInternalServerError
NewGetZonesConnectionInternalServerError creates a GetZonesConnectionInternalServerError with default headers values
func (*GetZonesConnectionInternalServerError) Error ¶
func (o *GetZonesConnectionInternalServerError) Error() string
func (*GetZonesConnectionInternalServerError) GetPayload ¶
func (o *GetZonesConnectionInternalServerError) GetPayload() *models.ErrorBody
type GetZonesConnectionNotFound ¶
GetZonesConnectionNotFound describes a response with status code 404, with default header values.
Not found
func NewGetZonesConnectionNotFound ¶
func NewGetZonesConnectionNotFound() *GetZonesConnectionNotFound
NewGetZonesConnectionNotFound creates a GetZonesConnectionNotFound with default headers values
func (*GetZonesConnectionNotFound) Error ¶
func (o *GetZonesConnectionNotFound) Error() string
func (*GetZonesConnectionNotFound) GetPayload ¶
func (o *GetZonesConnectionNotFound) GetPayload() *models.ErrorBody
type GetZonesConnectionOK ¶
type GetZonesConnectionOK struct { XTowerRequestID string Payload *models.ZoneConnection }
GetZonesConnectionOK describes a response with status code 200, with default header values.
GetZonesConnectionOK get zones connection o k
func NewGetZonesConnectionOK ¶
func NewGetZonesConnectionOK() *GetZonesConnectionOK
NewGetZonesConnectionOK creates a GetZonesConnectionOK with default headers values
func (*GetZonesConnectionOK) Error ¶
func (o *GetZonesConnectionOK) Error() string
func (*GetZonesConnectionOK) GetPayload ¶
func (o *GetZonesConnectionOK) GetPayload() *models.ZoneConnection
type GetZonesConnectionParams ¶
type GetZonesConnectionParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetZonesConnectionRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetZonesConnectionParams contains all the parameters to send to the API endpoint
for the get zones connection operation. Typically these are written to a http.Request.
func NewGetZonesConnectionParams ¶
func NewGetZonesConnectionParams() *GetZonesConnectionParams
NewGetZonesConnectionParams creates a new GetZonesConnectionParams 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 NewGetZonesConnectionParamsWithContext ¶
func NewGetZonesConnectionParamsWithContext(ctx context.Context) *GetZonesConnectionParams
NewGetZonesConnectionParamsWithContext creates a new GetZonesConnectionParams object with the ability to set a context for a request.
func NewGetZonesConnectionParamsWithHTTPClient ¶
func NewGetZonesConnectionParamsWithHTTPClient(client *http.Client) *GetZonesConnectionParams
NewGetZonesConnectionParamsWithHTTPClient creates a new GetZonesConnectionParams object with the ability to set a custom HTTPClient for a request.
func NewGetZonesConnectionParamsWithTimeout ¶
func NewGetZonesConnectionParamsWithTimeout(timeout time.Duration) *GetZonesConnectionParams
NewGetZonesConnectionParamsWithTimeout creates a new GetZonesConnectionParams object with the ability to set a timeout on a request.
func (*GetZonesConnectionParams) SetContentLanguage ¶
func (o *GetZonesConnectionParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get zones connection params
func (*GetZonesConnectionParams) SetContext ¶
func (o *GetZonesConnectionParams) SetContext(ctx context.Context)
SetContext adds the context to the get zones connection params
func (*GetZonesConnectionParams) SetDefaults ¶
func (o *GetZonesConnectionParams) SetDefaults()
SetDefaults hydrates default values in the get zones connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetZonesConnectionParams) SetHTTPClient ¶
func (o *GetZonesConnectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get zones connection params
func (*GetZonesConnectionParams) SetRequestBody ¶
func (o *GetZonesConnectionParams) SetRequestBody(requestBody *models.GetZonesConnectionRequestBody)
SetRequestBody adds the requestBody to the get zones connection params
func (*GetZonesConnectionParams) SetTimeout ¶
func (o *GetZonesConnectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get zones connection params
func (*GetZonesConnectionParams) WithContentLanguage ¶
func (o *GetZonesConnectionParams) WithContentLanguage(contentLanguage *string) *GetZonesConnectionParams
WithContentLanguage adds the contentLanguage to the get zones connection params
func (*GetZonesConnectionParams) WithContext ¶
func (o *GetZonesConnectionParams) WithContext(ctx context.Context) *GetZonesConnectionParams
WithContext adds the context to the get zones connection params
func (*GetZonesConnectionParams) WithDefaults ¶
func (o *GetZonesConnectionParams) WithDefaults() *GetZonesConnectionParams
WithDefaults hydrates default values in the get zones connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetZonesConnectionParams) WithHTTPClient ¶
func (o *GetZonesConnectionParams) WithHTTPClient(client *http.Client) *GetZonesConnectionParams
WithHTTPClient adds the HTTPClient to the get zones connection params
func (*GetZonesConnectionParams) WithRequestBody ¶
func (o *GetZonesConnectionParams) WithRequestBody(requestBody *models.GetZonesConnectionRequestBody) *GetZonesConnectionParams
WithRequestBody adds the requestBody to the get zones connection params
func (*GetZonesConnectionParams) WithTimeout ¶
func (o *GetZonesConnectionParams) WithTimeout(timeout time.Duration) *GetZonesConnectionParams
WithTimeout adds the timeout to the get zones connection params
func (*GetZonesConnectionParams) WriteToRequest ¶
func (o *GetZonesConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetZonesConnectionReader ¶
type GetZonesConnectionReader struct {
// contains filtered or unexported fields
}
GetZonesConnectionReader is a Reader for the GetZonesConnection structure.
func (*GetZonesConnectionReader) ReadResponse ¶
func (o *GetZonesConnectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetZonesInternalServerError ¶
GetZonesInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetZonesInternalServerError ¶
func NewGetZonesInternalServerError() *GetZonesInternalServerError
NewGetZonesInternalServerError creates a GetZonesInternalServerError with default headers values
func (*GetZonesInternalServerError) Error ¶
func (o *GetZonesInternalServerError) Error() string
func (*GetZonesInternalServerError) GetPayload ¶
func (o *GetZonesInternalServerError) GetPayload() *models.ErrorBody
type GetZonesNotFound ¶
GetZonesNotFound describes a response with status code 404, with default header values.
Not found
func NewGetZonesNotFound ¶
func NewGetZonesNotFound() *GetZonesNotFound
NewGetZonesNotFound creates a GetZonesNotFound with default headers values
func (*GetZonesNotFound) Error ¶
func (o *GetZonesNotFound) Error() string
func (*GetZonesNotFound) GetPayload ¶
func (o *GetZonesNotFound) GetPayload() *models.ErrorBody
type GetZonesOK ¶
GetZonesOK describes a response with status code 200, with default header values.
GetZonesOK get zones o k
func NewGetZonesOK ¶
func NewGetZonesOK() *GetZonesOK
NewGetZonesOK creates a GetZonesOK with default headers values
func (*GetZonesOK) Error ¶
func (o *GetZonesOK) Error() string
func (*GetZonesOK) GetPayload ¶
func (o *GetZonesOK) GetPayload() []*models.Zone
type GetZonesParams ¶
type GetZonesParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetZonesRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetZonesParams contains all the parameters to send to the API endpoint
for the get zones operation. Typically these are written to a http.Request.
func NewGetZonesParams ¶
func NewGetZonesParams() *GetZonesParams
NewGetZonesParams creates a new GetZonesParams 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 NewGetZonesParamsWithContext ¶
func NewGetZonesParamsWithContext(ctx context.Context) *GetZonesParams
NewGetZonesParamsWithContext creates a new GetZonesParams object with the ability to set a context for a request.
func NewGetZonesParamsWithHTTPClient ¶
func NewGetZonesParamsWithHTTPClient(client *http.Client) *GetZonesParams
NewGetZonesParamsWithHTTPClient creates a new GetZonesParams object with the ability to set a custom HTTPClient for a request.
func NewGetZonesParamsWithTimeout ¶
func NewGetZonesParamsWithTimeout(timeout time.Duration) *GetZonesParams
NewGetZonesParamsWithTimeout creates a new GetZonesParams object with the ability to set a timeout on a request.
func (*GetZonesParams) SetContentLanguage ¶
func (o *GetZonesParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get zones params
func (*GetZonesParams) SetContext ¶
func (o *GetZonesParams) SetContext(ctx context.Context)
SetContext adds the context to the get zones params
func (*GetZonesParams) SetDefaults ¶
func (o *GetZonesParams) SetDefaults()
SetDefaults hydrates default values in the get zones params (not the query body).
All values with no default are reset to their zero value.
func (*GetZonesParams) SetHTTPClient ¶
func (o *GetZonesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get zones params
func (*GetZonesParams) SetRequestBody ¶
func (o *GetZonesParams) SetRequestBody(requestBody *models.GetZonesRequestBody)
SetRequestBody adds the requestBody to the get zones params
func (*GetZonesParams) SetTimeout ¶
func (o *GetZonesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get zones params
func (*GetZonesParams) WithContentLanguage ¶
func (o *GetZonesParams) WithContentLanguage(contentLanguage *string) *GetZonesParams
WithContentLanguage adds the contentLanguage to the get zones params
func (*GetZonesParams) WithContext ¶
func (o *GetZonesParams) WithContext(ctx context.Context) *GetZonesParams
WithContext adds the context to the get zones params
func (*GetZonesParams) WithDefaults ¶
func (o *GetZonesParams) WithDefaults() *GetZonesParams
WithDefaults hydrates default values in the get zones params (not the query body).
All values with no default are reset to their zero value.
func (*GetZonesParams) WithHTTPClient ¶
func (o *GetZonesParams) WithHTTPClient(client *http.Client) *GetZonesParams
WithHTTPClient adds the HTTPClient to the get zones params
func (*GetZonesParams) WithRequestBody ¶
func (o *GetZonesParams) WithRequestBody(requestBody *models.GetZonesRequestBody) *GetZonesParams
WithRequestBody adds the requestBody to the get zones params
func (*GetZonesParams) WithTimeout ¶
func (o *GetZonesParams) WithTimeout(timeout time.Duration) *GetZonesParams
WithTimeout adds the timeout to the get zones params
func (*GetZonesParams) WriteToRequest ¶
func (o *GetZonesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetZonesReader ¶
type GetZonesReader struct {
// contains filtered or unexported fields
}
GetZonesReader is a Reader for the GetZones structure.
func (*GetZonesReader) ReadResponse ¶
func (o *GetZonesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.