zone

package
v0.0.0-...-67cd95e Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

type GetZonesBadRequest struct {
	Payload string
}
GetZonesBadRequest describes a response with status code 400, with default header values.

GetZonesBadRequest get zones 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() string

type GetZonesConnectionBadRequest

type GetZonesConnectionBadRequest struct {
	Payload string
}
GetZonesConnectionBadRequest describes a response with status code 400, with default header values.

GetZonesConnectionBadRequest get zones connection bad request

func NewGetZonesConnectionBadRequest

func NewGetZonesConnectionBadRequest() *GetZonesConnectionBadRequest

NewGetZonesConnectionBadRequest creates a GetZonesConnectionBadRequest with default headers values

func (*GetZonesConnectionBadRequest) Error

func (*GetZonesConnectionBadRequest) GetPayload

func (o *GetZonesConnectionBadRequest) GetPayload() string

type GetZonesConnectionOK

type GetZonesConnectionOK struct {
	Payload *models.ZoneConnection
}
GetZonesConnectionOK describes a response with status code 200, with default header values.

Ok

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

WithContext adds the context to the get zones connection params

func (*GetZonesConnectionParams) WithDefaults

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

WithRequestBody adds the requestBody to the get zones connection params

func (*GetZonesConnectionParams) WithTimeout

WithTimeout adds the timeout to the get zones connection params

func (*GetZonesConnectionParams) WriteToRequest

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 GetZonesOK

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

Ok

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.

Jump to

Keyboard shortcuts

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