location

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 10 Imported by: 1

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 location API

func New

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

New creates a new location API client.

func (*Client) CreateZone

func (a *Client) CreateZone(params *CreateZoneParams) (*CreateZoneCreated, error)

CreateZone creates zone

Create zone

func (*Client) DeleteZone

func (a *Client) DeleteZone(params *DeleteZoneParams) (*DeleteZoneNoContent, error)

DeleteZone deletes a zone

Delete a zone

func (*Client) GetRegion

func (a *Client) GetRegion(params *GetRegionParams) (*GetRegionOK, error)

GetRegion gets region

Get Region with a given id

func (*Client) GetRegions

func (a *Client) GetRegions(params *GetRegionsParams) (*GetRegionsOK, error)

GetRegions gets regions

Get all regions

func (*Client) GetZone

func (a *Client) GetZone(params *GetZoneParams) (*GetZoneOK, error)

GetZone gets zone

Get zone with given id

func (*Client) GetZones

func (a *Client) GetZones(params *GetZonesParams) (*GetZonesOK, error)

GetZones gets zones

Get all zones

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateZone

func (a *Client) UpdateZone(params *UpdateZoneParams) (*UpdateZoneOK, error)

UpdateZone updates zone

Update zone

type CreateZoneBadRequest

type CreateZoneBadRequest struct {
}

CreateZoneBadRequest handles this case with default header values.

Invalid Request - bad data

func NewCreateZoneBadRequest

func NewCreateZoneBadRequest() *CreateZoneBadRequest

NewCreateZoneBadRequest creates a CreateZoneBadRequest with default headers values

func (*CreateZoneBadRequest) Error

func (o *CreateZoneBadRequest) Error() string

type CreateZoneCreated

type CreateZoneCreated struct {
	Payload *models.Zone
}

CreateZoneCreated handles this case with default header values.

successful operation

func NewCreateZoneCreated

func NewCreateZoneCreated() *CreateZoneCreated

NewCreateZoneCreated creates a CreateZoneCreated with default headers values

func (*CreateZoneCreated) Error

func (o *CreateZoneCreated) Error() string

func (*CreateZoneCreated) GetPayload

func (o *CreateZoneCreated) GetPayload() *models.Zone

type CreateZoneForbidden

type CreateZoneForbidden struct {
}

CreateZoneForbidden handles this case with default header values.

Forbidden

func NewCreateZoneForbidden

func NewCreateZoneForbidden() *CreateZoneForbidden

NewCreateZoneForbidden creates a CreateZoneForbidden with default headers values

func (*CreateZoneForbidden) Error

func (o *CreateZoneForbidden) Error() string

type CreateZoneParams

type CreateZoneParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about

	*/
	APIVersion *string
	/*Body
	  Zone specification

	*/
	Body *models.ZoneSpecification

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

CreateZoneParams contains all the parameters to send to the API endpoint for the create zone operation typically these are written to a http.Request

func NewCreateZoneParams

func NewCreateZoneParams() *CreateZoneParams

NewCreateZoneParams creates a new CreateZoneParams object with the default values initialized.

func NewCreateZoneParamsWithContext

func NewCreateZoneParamsWithContext(ctx context.Context) *CreateZoneParams

NewCreateZoneParamsWithContext creates a new CreateZoneParams object with the default values initialized, and the ability to set a context for a request

func NewCreateZoneParamsWithHTTPClient

func NewCreateZoneParamsWithHTTPClient(client *http.Client) *CreateZoneParams

NewCreateZoneParamsWithHTTPClient creates a new CreateZoneParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateZoneParamsWithTimeout

func NewCreateZoneParamsWithTimeout(timeout time.Duration) *CreateZoneParams

NewCreateZoneParamsWithTimeout creates a new CreateZoneParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateZoneParams) SetAPIVersion

func (o *CreateZoneParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the create zone params

func (*CreateZoneParams) SetBody

func (o *CreateZoneParams) SetBody(body *models.ZoneSpecification)

SetBody adds the body to the create zone params

func (*CreateZoneParams) SetContext

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

SetContext adds the context to the create zone params

func (*CreateZoneParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create zone params

func (*CreateZoneParams) SetTimeout

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

SetTimeout adds the timeout to the create zone params

func (*CreateZoneParams) WithAPIVersion

func (o *CreateZoneParams) WithAPIVersion(aPIVersion *string) *CreateZoneParams

WithAPIVersion adds the aPIVersion to the create zone params

func (*CreateZoneParams) WithBody

WithBody adds the body to the create zone params

func (*CreateZoneParams) WithContext

func (o *CreateZoneParams) WithContext(ctx context.Context) *CreateZoneParams

WithContext adds the context to the create zone params

func (*CreateZoneParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create zone params

func (*CreateZoneParams) WithTimeout

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

WithTimeout adds the timeout to the create zone params

func (*CreateZoneParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateZoneReader

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

CreateZoneReader is a Reader for the CreateZone structure.

func (*CreateZoneReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteZoneForbidden

type DeleteZoneForbidden struct {
}

DeleteZoneForbidden handles this case with default header values.

Forbidden

func NewDeleteZoneForbidden

func NewDeleteZoneForbidden() *DeleteZoneForbidden

NewDeleteZoneForbidden creates a DeleteZoneForbidden with default headers values

func (*DeleteZoneForbidden) Error

func (o *DeleteZoneForbidden) Error() string

type DeleteZoneNoContent

type DeleteZoneNoContent struct {
}

DeleteZoneNoContent handles this case with default header values.

No Content

func NewDeleteZoneNoContent

func NewDeleteZoneNoContent() *DeleteZoneNoContent

NewDeleteZoneNoContent creates a DeleteZoneNoContent with default headers values

func (*DeleteZoneNoContent) Error

func (o *DeleteZoneNoContent) Error() string

type DeleteZoneParams

type DeleteZoneParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about

	*/
	APIVersion *string
	/*ID
	  The ID of the zone.

	*/
	ID string

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

DeleteZoneParams contains all the parameters to send to the API endpoint for the delete zone operation typically these are written to a http.Request

func NewDeleteZoneParams

func NewDeleteZoneParams() *DeleteZoneParams

NewDeleteZoneParams creates a new DeleteZoneParams object with the default values initialized.

func NewDeleteZoneParamsWithContext

func NewDeleteZoneParamsWithContext(ctx context.Context) *DeleteZoneParams

NewDeleteZoneParamsWithContext creates a new DeleteZoneParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteZoneParamsWithHTTPClient

func NewDeleteZoneParamsWithHTTPClient(client *http.Client) *DeleteZoneParams

NewDeleteZoneParamsWithHTTPClient creates a new DeleteZoneParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteZoneParamsWithTimeout

func NewDeleteZoneParamsWithTimeout(timeout time.Duration) *DeleteZoneParams

NewDeleteZoneParamsWithTimeout creates a new DeleteZoneParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteZoneParams) SetAPIVersion

func (o *DeleteZoneParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the delete zone params

func (*DeleteZoneParams) SetContext

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

SetContext adds the context to the delete zone params

func (*DeleteZoneParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete zone params

func (*DeleteZoneParams) SetID

func (o *DeleteZoneParams) SetID(id string)

SetID adds the id to the delete zone params

func (*DeleteZoneParams) SetTimeout

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

SetTimeout adds the timeout to the delete zone params

func (*DeleteZoneParams) WithAPIVersion

func (o *DeleteZoneParams) WithAPIVersion(aPIVersion *string) *DeleteZoneParams

WithAPIVersion adds the aPIVersion to the delete zone params

func (*DeleteZoneParams) WithContext

func (o *DeleteZoneParams) WithContext(ctx context.Context) *DeleteZoneParams

WithContext adds the context to the delete zone params

func (*DeleteZoneParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete zone params

func (*DeleteZoneParams) WithID

func (o *DeleteZoneParams) WithID(id string) *DeleteZoneParams

WithID adds the id to the delete zone params

func (*DeleteZoneParams) WithTimeout

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

WithTimeout adds the timeout to the delete zone params

func (*DeleteZoneParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteZoneReader

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

DeleteZoneReader is a Reader for the DeleteZone structure.

func (*DeleteZoneReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRegionForbidden

type GetRegionForbidden struct {
}

GetRegionForbidden handles this case with default header values.

Forbidden

func NewGetRegionForbidden

func NewGetRegionForbidden() *GetRegionForbidden

NewGetRegionForbidden creates a GetRegionForbidden with default headers values

func (*GetRegionForbidden) Error

func (o *GetRegionForbidden) Error() string

type GetRegionNotFound

type GetRegionNotFound struct {
}

GetRegionNotFound handles this case with default header values.

Not Found

func NewGetRegionNotFound

func NewGetRegionNotFound() *GetRegionNotFound

NewGetRegionNotFound creates a GetRegionNotFound with default headers values

func (*GetRegionNotFound) Error

func (o *GetRegionNotFound) Error() string

type GetRegionOK

type GetRegionOK struct {
	Payload *models.Region
}

GetRegionOK handles this case with default header values.

successful operation

func NewGetRegionOK

func NewGetRegionOK() *GetRegionOK

NewGetRegionOK creates a GetRegionOK with default headers values

func (*GetRegionOK) Error

func (o *GetRegionOK) Error() string

func (*GetRegionOK) GetPayload

func (o *GetRegionOK) GetPayload() *models.Region

type GetRegionParams

type GetRegionParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about

	*/
	APIVersion *string
	/*ID
	  The ID of the region.

	*/
	ID string

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

GetRegionParams contains all the parameters to send to the API endpoint for the get region operation typically these are written to a http.Request

func NewGetRegionParams

func NewGetRegionParams() *GetRegionParams

NewGetRegionParams creates a new GetRegionParams object with the default values initialized.

func NewGetRegionParamsWithContext

func NewGetRegionParamsWithContext(ctx context.Context) *GetRegionParams

NewGetRegionParamsWithContext creates a new GetRegionParams object with the default values initialized, and the ability to set a context for a request

func NewGetRegionParamsWithHTTPClient

func NewGetRegionParamsWithHTTPClient(client *http.Client) *GetRegionParams

NewGetRegionParamsWithHTTPClient creates a new GetRegionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetRegionParamsWithTimeout

func NewGetRegionParamsWithTimeout(timeout time.Duration) *GetRegionParams

NewGetRegionParamsWithTimeout creates a new GetRegionParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetRegionParams) SetAPIVersion

func (o *GetRegionParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get region params

func (*GetRegionParams) SetContext

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

SetContext adds the context to the get region params

func (*GetRegionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get region params

func (*GetRegionParams) SetID

func (o *GetRegionParams) SetID(id string)

SetID adds the id to the get region params

func (*GetRegionParams) SetTimeout

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

SetTimeout adds the timeout to the get region params

func (*GetRegionParams) WithAPIVersion

func (o *GetRegionParams) WithAPIVersion(aPIVersion *string) *GetRegionParams

WithAPIVersion adds the aPIVersion to the get region params

func (*GetRegionParams) WithContext

func (o *GetRegionParams) WithContext(ctx context.Context) *GetRegionParams

WithContext adds the context to the get region params

func (*GetRegionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get region params

func (*GetRegionParams) WithID

func (o *GetRegionParams) WithID(id string) *GetRegionParams

WithID adds the id to the get region params

func (*GetRegionParams) WithTimeout

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

WithTimeout adds the timeout to the get region params

func (*GetRegionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRegionReader

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

GetRegionReader is a Reader for the GetRegion structure.

func (*GetRegionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRegionsForbidden

type GetRegionsForbidden struct {
}

GetRegionsForbidden handles this case with default header values.

Forbidden

func NewGetRegionsForbidden

func NewGetRegionsForbidden() *GetRegionsForbidden

NewGetRegionsForbidden creates a GetRegionsForbidden with default headers values

func (*GetRegionsForbidden) Error

func (o *GetRegionsForbidden) Error() string

type GetRegionsOK

type GetRegionsOK struct {
	Payload *models.RegionResult
}

GetRegionsOK handles this case with default header values.

successful operation

func NewGetRegionsOK

func NewGetRegionsOK() *GetRegionsOK

NewGetRegionsOK creates a GetRegionsOK with default headers values

func (*GetRegionsOK) Error

func (o *GetRegionsOK) Error() string

func (*GetRegionsOK) GetPayload

func (o *GetRegionsOK) GetPayload() *models.RegionResult

type GetRegionsParams

type GetRegionsParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about

	*/
	APIVersion *string

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

GetRegionsParams contains all the parameters to send to the API endpoint for the get regions operation typically these are written to a http.Request

func NewGetRegionsParams

func NewGetRegionsParams() *GetRegionsParams

NewGetRegionsParams creates a new GetRegionsParams object with the default values initialized.

func NewGetRegionsParamsWithContext

func NewGetRegionsParamsWithContext(ctx context.Context) *GetRegionsParams

NewGetRegionsParamsWithContext creates a new GetRegionsParams object with the default values initialized, and the ability to set a context for a request

func NewGetRegionsParamsWithHTTPClient

func NewGetRegionsParamsWithHTTPClient(client *http.Client) *GetRegionsParams

NewGetRegionsParamsWithHTTPClient creates a new GetRegionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetRegionsParamsWithTimeout

func NewGetRegionsParamsWithTimeout(timeout time.Duration) *GetRegionsParams

NewGetRegionsParamsWithTimeout creates a new GetRegionsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetRegionsParams) SetAPIVersion

func (o *GetRegionsParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get regions params

func (*GetRegionsParams) SetContext

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

SetContext adds the context to the get regions params

func (*GetRegionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get regions params

func (*GetRegionsParams) SetTimeout

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

SetTimeout adds the timeout to the get regions params

func (*GetRegionsParams) WithAPIVersion

func (o *GetRegionsParams) WithAPIVersion(aPIVersion *string) *GetRegionsParams

WithAPIVersion adds the aPIVersion to the get regions params

func (*GetRegionsParams) WithContext

func (o *GetRegionsParams) WithContext(ctx context.Context) *GetRegionsParams

WithContext adds the context to the get regions params

func (*GetRegionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get regions params

func (*GetRegionsParams) WithTimeout

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

WithTimeout adds the timeout to the get regions params

func (*GetRegionsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRegionsReader

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

GetRegionsReader is a Reader for the GetRegions structure.

func (*GetRegionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetZoneForbidden

type GetZoneForbidden struct {
}

GetZoneForbidden handles this case with default header values.

Forbidden

func NewGetZoneForbidden

func NewGetZoneForbidden() *GetZoneForbidden

NewGetZoneForbidden creates a GetZoneForbidden with default headers values

func (*GetZoneForbidden) Error

func (o *GetZoneForbidden) Error() string

type GetZoneNotFound

type GetZoneNotFound struct {
}

GetZoneNotFound handles this case with default header values.

Not Found

func NewGetZoneNotFound

func NewGetZoneNotFound() *GetZoneNotFound

NewGetZoneNotFound creates a GetZoneNotFound with default headers values

func (*GetZoneNotFound) Error

func (o *GetZoneNotFound) Error() string

type GetZoneOK

type GetZoneOK struct {
	Payload *models.Zone
}

GetZoneOK handles this case with default header values.

successful operation

func NewGetZoneOK

func NewGetZoneOK() *GetZoneOK

NewGetZoneOK creates a GetZoneOK with default headers values

func (*GetZoneOK) Error

func (o *GetZoneOK) Error() string

func (*GetZoneOK) GetPayload

func (o *GetZoneOK) GetPayload() *models.Zone

type GetZoneParams

type GetZoneParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about

	*/
	APIVersion *string
	/*ID
	  The ID of the zone.

	*/
	ID string

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

GetZoneParams contains all the parameters to send to the API endpoint for the get zone operation typically these are written to a http.Request

func NewGetZoneParams

func NewGetZoneParams() *GetZoneParams

NewGetZoneParams creates a new GetZoneParams object with the default values initialized.

func NewGetZoneParamsWithContext

func NewGetZoneParamsWithContext(ctx context.Context) *GetZoneParams

NewGetZoneParamsWithContext creates a new GetZoneParams object with the default values initialized, and the ability to set a context for a request

func NewGetZoneParamsWithHTTPClient

func NewGetZoneParamsWithHTTPClient(client *http.Client) *GetZoneParams

NewGetZoneParamsWithHTTPClient creates a new GetZoneParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetZoneParamsWithTimeout

func NewGetZoneParamsWithTimeout(timeout time.Duration) *GetZoneParams

NewGetZoneParamsWithTimeout creates a new GetZoneParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetZoneParams) SetAPIVersion

func (o *GetZoneParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get zone params

func (*GetZoneParams) SetContext

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

SetContext adds the context to the get zone params

func (*GetZoneParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get zone params

func (*GetZoneParams) SetID

func (o *GetZoneParams) SetID(id string)

SetID adds the id to the get zone params

func (*GetZoneParams) SetTimeout

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

SetTimeout adds the timeout to the get zone params

func (*GetZoneParams) WithAPIVersion

func (o *GetZoneParams) WithAPIVersion(aPIVersion *string) *GetZoneParams

WithAPIVersion adds the aPIVersion to the get zone params

func (*GetZoneParams) WithContext

func (o *GetZoneParams) WithContext(ctx context.Context) *GetZoneParams

WithContext adds the context to the get zone params

func (*GetZoneParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get zone params

func (*GetZoneParams) WithID

func (o *GetZoneParams) WithID(id string) *GetZoneParams

WithID adds the id to the get zone params

func (*GetZoneParams) WithTimeout

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

WithTimeout adds the timeout to the get zone params

func (*GetZoneParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetZoneReader

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

GetZoneReader is a Reader for the GetZone structure.

func (*GetZoneReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetZonesForbidden

type GetZonesForbidden struct {
}

GetZonesForbidden handles this case with default header values.

Forbidden

func NewGetZonesForbidden

func NewGetZonesForbidden() *GetZonesForbidden

NewGetZonesForbidden creates a GetZonesForbidden with default headers values

func (*GetZonesForbidden) Error

func (o *GetZonesForbidden) Error() string

type GetZonesOK

type GetZonesOK struct {
	Payload *models.ZoneResult
}

GetZonesOK handles this case with default header values.

successful operation

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.ZoneResult

type GetZonesParams

type GetZonesParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about

	*/
	APIVersion *string

	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 values initialized.

func NewGetZonesParamsWithContext

func NewGetZonesParamsWithContext(ctx context.Context) *GetZonesParams

NewGetZonesParamsWithContext creates a new GetZonesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*GetZonesParams) SetAPIVersion

func (o *GetZonesParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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) WithAPIVersion

func (o *GetZonesParams) WithAPIVersion(aPIVersion *string) *GetZonesParams

WithAPIVersion adds the aPIVersion 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) WithHTTPClient

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

WithHTTPClient adds the HTTPClient 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.

type UpdateZoneBadRequest

type UpdateZoneBadRequest struct {
}

UpdateZoneBadRequest handles this case with default header values.

Invalid Request - bad data

func NewUpdateZoneBadRequest

func NewUpdateZoneBadRequest() *UpdateZoneBadRequest

NewUpdateZoneBadRequest creates a UpdateZoneBadRequest with default headers values

func (*UpdateZoneBadRequest) Error

func (o *UpdateZoneBadRequest) Error() string

type UpdateZoneForbidden

type UpdateZoneForbidden struct {
}

UpdateZoneForbidden handles this case with default header values.

Forbidden

func NewUpdateZoneForbidden

func NewUpdateZoneForbidden() *UpdateZoneForbidden

NewUpdateZoneForbidden creates a UpdateZoneForbidden with default headers values

func (*UpdateZoneForbidden) Error

func (o *UpdateZoneForbidden) Error() string

type UpdateZoneOK

type UpdateZoneOK struct {
	Payload *models.Zone
}

UpdateZoneOK handles this case with default header values.

successful operation

func NewUpdateZoneOK

func NewUpdateZoneOK() *UpdateZoneOK

NewUpdateZoneOK creates a UpdateZoneOK with default headers values

func (*UpdateZoneOK) Error

func (o *UpdateZoneOK) Error() string

func (*UpdateZoneOK) GetPayload

func (o *UpdateZoneOK) GetPayload() *models.Zone

type UpdateZoneParams

type UpdateZoneParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about

	*/
	APIVersion *string
	/*Body
	  Zone specification

	*/
	Body *models.ZoneSpecification
	/*ID
	  The ID of the zone.

	*/
	ID string

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

UpdateZoneParams contains all the parameters to send to the API endpoint for the update zone operation typically these are written to a http.Request

func NewUpdateZoneParams

func NewUpdateZoneParams() *UpdateZoneParams

NewUpdateZoneParams creates a new UpdateZoneParams object with the default values initialized.

func NewUpdateZoneParamsWithContext

func NewUpdateZoneParamsWithContext(ctx context.Context) *UpdateZoneParams

NewUpdateZoneParamsWithContext creates a new UpdateZoneParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateZoneParamsWithHTTPClient

func NewUpdateZoneParamsWithHTTPClient(client *http.Client) *UpdateZoneParams

NewUpdateZoneParamsWithHTTPClient creates a new UpdateZoneParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateZoneParamsWithTimeout

func NewUpdateZoneParamsWithTimeout(timeout time.Duration) *UpdateZoneParams

NewUpdateZoneParamsWithTimeout creates a new UpdateZoneParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateZoneParams) SetAPIVersion

func (o *UpdateZoneParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the update zone params

func (*UpdateZoneParams) SetBody

func (o *UpdateZoneParams) SetBody(body *models.ZoneSpecification)

SetBody adds the body to the update zone params

func (*UpdateZoneParams) SetContext

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

SetContext adds the context to the update zone params

func (*UpdateZoneParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update zone params

func (*UpdateZoneParams) SetID

func (o *UpdateZoneParams) SetID(id string)

SetID adds the id to the update zone params

func (*UpdateZoneParams) SetTimeout

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

SetTimeout adds the timeout to the update zone params

func (*UpdateZoneParams) WithAPIVersion

func (o *UpdateZoneParams) WithAPIVersion(aPIVersion *string) *UpdateZoneParams

WithAPIVersion adds the aPIVersion to the update zone params

func (*UpdateZoneParams) WithBody

WithBody adds the body to the update zone params

func (*UpdateZoneParams) WithContext

func (o *UpdateZoneParams) WithContext(ctx context.Context) *UpdateZoneParams

WithContext adds the context to the update zone params

func (*UpdateZoneParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update zone params

func (*UpdateZoneParams) WithID

func (o *UpdateZoneParams) WithID(id string) *UpdateZoneParams

WithID adds the id to the update zone params

func (*UpdateZoneParams) WithTimeout

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

WithTimeout adds the timeout to the update zone params

func (*UpdateZoneParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateZoneReader

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

UpdateZoneReader is a Reader for the UpdateZone structure.

func (*UpdateZoneReader) ReadResponse

func (o *UpdateZoneReader) 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