location

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 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 (*Client) CreateZone

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

CreateZone creates zone

Create zone

func (*Client) DeleteZone

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

DeleteZone deletes a zone

Delete a zone

func (*Client) GetComputes added in v0.2.8

func (a *Client) GetComputes(params *GetComputesParams, opts ...ClientOption) (*GetComputesOK, error)

GetComputes gets computes

Get zone's computes by given zone ID

func (*Client) GetRegion

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

GetRegion gets region

Get Region with a given id

func (*Client) GetRegions

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

GetRegions gets regions

Get all regions

func (*Client) GetZone

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

GetZone gets zone

Get zone with given id

func (*Client) GetZones

func (a *Client) GetZones(params *GetZonesParams, opts ...ClientOption) (*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, opts ...ClientOption) (*UpdateZoneOK, error)

UpdateZone updates zone

Update zone

type ClientOption added in v0.2.20

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.2.18

type ClientService interface {
	CreateZone(params *CreateZoneParams, opts ...ClientOption) (*CreateZoneCreated, error)

	DeleteZone(params *DeleteZoneParams, opts ...ClientOption) (*DeleteZoneNoContent, error)

	GetComputes(params *GetComputesParams, opts ...ClientOption) (*GetComputesOK, error)

	GetRegion(params *GetRegionParams, opts ...ClientOption) (*GetRegionOK, error)

	GetRegions(params *GetRegionsParams, opts ...ClientOption) (*GetRegionsOK, error)

	GetZone(params *GetZoneParams, opts ...ClientOption) (*GetZoneOK, error)

	GetZones(params *GetZonesParams, opts ...ClientOption) (*GetZonesOK, error)

	UpdateZone(params *UpdateZoneParams, opts ...ClientOption) (*UpdateZoneOK, 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 location API client.

type CreateZoneBadRequest

type CreateZoneBadRequest struct {
	Payload *models.Error
}
CreateZoneBadRequest describes a response with status code 400, 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

func (*CreateZoneBadRequest) GetPayload added in v0.2.9

func (o *CreateZoneBadRequest) GetPayload() *models.Error

type CreateZoneCreated

type CreateZoneCreated struct {
	Payload *models.Zone
}
CreateZoneCreated describes a response with status code 201, 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 {
	Payload *models.ServiceErrorResponse
}
CreateZoneForbidden describes a response with status code 403, 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

func (*CreateZoneForbidden) GetPayload added in v0.2.20

type CreateZoneParams

type CreateZoneParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information 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 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 NewCreateZoneParamsWithContext

func NewCreateZoneParamsWithContext(ctx context.Context) *CreateZoneParams

NewCreateZoneParamsWithContext creates a new CreateZoneParams object with 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 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 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) SetDefaults added in v0.2.20

func (o *CreateZoneParams) SetDefaults()

SetDefaults hydrates default values in the create zone params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults added in v0.2.20

func (o *CreateZoneParams) WithDefaults() *CreateZoneParams

WithDefaults hydrates default values in the create zone params (not the query body).

All values with no default are reset to their zero value.

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 {
	Payload *models.ServiceErrorResponse
}
DeleteZoneForbidden describes a response with status code 403, 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

func (*DeleteZoneForbidden) GetPayload added in v0.2.20

type DeleteZoneNoContent

type DeleteZoneNoContent struct {
}
DeleteZoneNoContent describes a response with status code 204, 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 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 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 NewDeleteZoneParamsWithContext

func NewDeleteZoneParamsWithContext(ctx context.Context) *DeleteZoneParams

NewDeleteZoneParamsWithContext creates a new DeleteZoneParams object with 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 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 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) SetDefaults added in v0.2.20

func (o *DeleteZoneParams) SetDefaults()

SetDefaults hydrates default values in the delete zone params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults added in v0.2.20

func (o *DeleteZoneParams) WithDefaults() *DeleteZoneParams

WithDefaults hydrates default values in the delete zone params (not the query body).

All values with no default are reset to their zero value.

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 GetComputesForbidden added in v0.2.8

type GetComputesForbidden struct {
	Payload *models.ServiceErrorResponse
}
GetComputesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetComputesForbidden added in v0.2.8

func NewGetComputesForbidden() *GetComputesForbidden

NewGetComputesForbidden creates a GetComputesForbidden with default headers values

func (*GetComputesForbidden) Error added in v0.2.8

func (o *GetComputesForbidden) Error() string

func (*GetComputesForbidden) GetPayload added in v0.2.20

type GetComputesNotFound added in v0.2.8

type GetComputesNotFound struct {
	Payload *models.Error
}
GetComputesNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetComputesNotFound added in v0.2.8

func NewGetComputesNotFound() *GetComputesNotFound

NewGetComputesNotFound creates a GetComputesNotFound with default headers values

func (*GetComputesNotFound) Error added in v0.2.8

func (o *GetComputesNotFound) Error() string

func (*GetComputesNotFound) GetPayload added in v0.2.9

func (o *GetComputesNotFound) GetPayload() *models.Error

type GetComputesOK added in v0.2.8

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

successful operation

func NewGetComputesOK added in v0.2.8

func NewGetComputesOK() *GetComputesOK

NewGetComputesOK creates a GetComputesOK with default headers values

func (*GetComputesOK) Error added in v0.2.8

func (o *GetComputesOK) Error() string

func (*GetComputesOK) GetPayload added in v0.2.8

func (o *GetComputesOK) GetPayload() *models.FabricComputeResult

type GetComputesParams added in v0.2.8

type GetComputesParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information 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
}

GetComputesParams contains all the parameters to send to the API endpoint

for the get computes operation.

Typically these are written to a http.Request.

func NewGetComputesParams added in v0.2.8

func NewGetComputesParams() *GetComputesParams

NewGetComputesParams creates a new GetComputesParams 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 NewGetComputesParamsWithContext added in v0.2.8

func NewGetComputesParamsWithContext(ctx context.Context) *GetComputesParams

NewGetComputesParamsWithContext creates a new GetComputesParams object with the ability to set a context for a request.

func NewGetComputesParamsWithHTTPClient added in v0.2.8

func NewGetComputesParamsWithHTTPClient(client *http.Client) *GetComputesParams

NewGetComputesParamsWithHTTPClient creates a new GetComputesParams object with the ability to set a custom HTTPClient for a request.

func NewGetComputesParamsWithTimeout added in v0.2.8

func NewGetComputesParamsWithTimeout(timeout time.Duration) *GetComputesParams

NewGetComputesParamsWithTimeout creates a new GetComputesParams object with the ability to set a timeout on a request.

func (*GetComputesParams) SetAPIVersion added in v0.2.8

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

SetAPIVersion adds the apiVersion to the get computes params

func (*GetComputesParams) SetContext added in v0.2.8

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

SetContext adds the context to the get computes params

func (*GetComputesParams) SetDefaults added in v0.2.20

func (o *GetComputesParams) SetDefaults()

SetDefaults hydrates default values in the get computes params (not the query body).

All values with no default are reset to their zero value.

func (*GetComputesParams) SetHTTPClient added in v0.2.8

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

SetHTTPClient adds the HTTPClient to the get computes params

func (*GetComputesParams) SetID added in v0.2.8

func (o *GetComputesParams) SetID(id string)

SetID adds the id to the get computes params

func (*GetComputesParams) SetTimeout added in v0.2.8

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

SetTimeout adds the timeout to the get computes params

func (*GetComputesParams) WithAPIVersion added in v0.2.8

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

WithAPIVersion adds the aPIVersion to the get computes params

func (*GetComputesParams) WithContext added in v0.2.8

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

WithContext adds the context to the get computes params

func (*GetComputesParams) WithDefaults added in v0.2.20

func (o *GetComputesParams) WithDefaults() *GetComputesParams

WithDefaults hydrates default values in the get computes params (not the query body).

All values with no default are reset to their zero value.

func (*GetComputesParams) WithHTTPClient added in v0.2.8

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

WithHTTPClient adds the HTTPClient to the get computes params

func (*GetComputesParams) WithID added in v0.2.8

WithID adds the id to the get computes params

func (*GetComputesParams) WithTimeout added in v0.2.8

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

WithTimeout adds the timeout to the get computes params

func (*GetComputesParams) WriteToRequest added in v0.2.8

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

WriteToRequest writes these params to a swagger request

type GetComputesReader added in v0.2.8

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

GetComputesReader is a Reader for the GetComputes structure.

func (*GetComputesReader) ReadResponse added in v0.2.8

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

ReadResponse reads a server response into the received o.

type GetRegionForbidden

type GetRegionForbidden struct {
	Payload *models.ServiceErrorResponse
}
GetRegionForbidden describes a response with status code 403, 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

func (*GetRegionForbidden) GetPayload added in v0.2.20

type GetRegionNotFound

type GetRegionNotFound struct {
	Payload *models.Error
}
GetRegionNotFound describes a response with status code 404, 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

func (*GetRegionNotFound) GetPayload added in v0.2.9

func (o *GetRegionNotFound) GetPayload() *models.Error

type GetRegionOK

type GetRegionOK struct {
	Payload *models.Region
}
GetRegionOK describes a response with status code 200, 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 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 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 NewGetRegionParamsWithContext

func NewGetRegionParamsWithContext(ctx context.Context) *GetRegionParams

NewGetRegionParamsWithContext creates a new GetRegionParams object with 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 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 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) SetDefaults added in v0.2.20

func (o *GetRegionParams) SetDefaults()

SetDefaults hydrates default values in the get region params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults added in v0.2.20

func (o *GetRegionParams) WithDefaults() *GetRegionParams

WithDefaults hydrates default values in the get region params (not the query body).

All values with no default are reset to their zero value.

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 {
	Payload *models.ServiceErrorResponse
}
GetRegionsForbidden describes a response with status code 403, 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

func (*GetRegionsForbidden) GetPayload added in v0.2.20

type GetRegionsOK

type GetRegionsOK struct {
	Payload *models.RegionResult
}
GetRegionsOK describes a response with status code 200, 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 {

	/* DollarFilter.

	   Add a filter to return limited results
	*/
	DollarFilter *string

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information 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 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 NewGetRegionsParamsWithContext

func NewGetRegionsParamsWithContext(ctx context.Context) *GetRegionsParams

NewGetRegionsParamsWithContext creates a new GetRegionsParams object with 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 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 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) SetDefaults added in v0.2.20

func (o *GetRegionsParams) SetDefaults()

SetDefaults hydrates default values in the get regions params (not the query body).

All values with no default are reset to their zero value.

func (*GetRegionsParams) SetDollarFilter added in v0.2.19

func (o *GetRegionsParams) SetDollarFilter(dollarFilter *string)

SetDollarFilter adds the dollarFilter 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) WithDefaults added in v0.2.20

func (o *GetRegionsParams) WithDefaults() *GetRegionsParams

WithDefaults hydrates default values in the get regions params (not the query body).

All values with no default are reset to their zero value.

func (*GetRegionsParams) WithDollarFilter added in v0.2.19

func (o *GetRegionsParams) WithDollarFilter(dollarFilter *string) *GetRegionsParams

WithDollarFilter adds the dollarFilter 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 {
	Payload *models.ServiceErrorResponse
}
GetZoneForbidden describes a response with status code 403, 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

func (*GetZoneForbidden) GetPayload added in v0.2.20

func (o *GetZoneForbidden) GetPayload() *models.ServiceErrorResponse

type GetZoneNotFound

type GetZoneNotFound struct {
	Payload *models.Error
}
GetZoneNotFound describes a response with status code 404, 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

func (*GetZoneNotFound) GetPayload added in v0.2.9

func (o *GetZoneNotFound) GetPayload() *models.Error

type GetZoneOK

type GetZoneOK struct {
	Payload *models.Zone
}
GetZoneOK describes a response with status code 200, 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 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 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 NewGetZoneParamsWithContext

func NewGetZoneParamsWithContext(ctx context.Context) *GetZoneParams

NewGetZoneParamsWithContext creates a new GetZoneParams object with 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 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 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) SetDefaults added in v0.2.20

func (o *GetZoneParams) SetDefaults()

SetDefaults hydrates default values in the get zone params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults added in v0.2.20

func (o *GetZoneParams) WithDefaults() *GetZoneParams

WithDefaults hydrates default values in the get zone params (not the query body).

All values with no default are reset to their zero value.

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 {
	Payload *models.ServiceErrorResponse
}
GetZonesForbidden describes a response with status code 403, 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

func (*GetZonesForbidden) GetPayload added in v0.2.20

type GetZonesOK

type GetZonesOK struct {
	Payload *models.ZoneResult
}
GetZonesOK describes a response with status code 200, 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 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 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) 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) SetDefaults added in v0.2.20

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) 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) WithDefaults added in v0.2.20

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) 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 {
	Payload *models.Error
}
UpdateZoneBadRequest describes a response with status code 400, 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

func (*UpdateZoneBadRequest) GetPayload added in v0.2.9

func (o *UpdateZoneBadRequest) GetPayload() *models.Error

type UpdateZoneForbidden

type UpdateZoneForbidden struct {
	Payload *models.ServiceErrorResponse
}
UpdateZoneForbidden describes a response with status code 403, 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

func (*UpdateZoneForbidden) GetPayload added in v0.2.20

type UpdateZoneOK

type UpdateZoneOK struct {
	Payload *models.Zone
}
UpdateZoneOK describes a response with status code 200, 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 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 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 NewUpdateZoneParamsWithContext

func NewUpdateZoneParamsWithContext(ctx context.Context) *UpdateZoneParams

NewUpdateZoneParamsWithContext creates a new UpdateZoneParams object with 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 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 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) SetDefaults added in v0.2.20

func (o *UpdateZoneParams) SetDefaults()

SetDefaults hydrates default values in the update zone params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults added in v0.2.20

func (o *UpdateZoneParams) WithDefaults() *UpdateZoneParams

WithDefaults hydrates default values in the update zone params (not the query body).

All values with no default are reset to their zero value.

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