datacenters

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 13 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 datacenters API

func (*Client) DeleteDatacentersDatacenterID

func (a *Client) DeleteDatacentersDatacenterID(params *DeleteDatacentersDatacenterIDParams, opts ...ClientOption) (*DeleteDatacentersDatacenterIDNoContent, error)

DeleteDatacentersDatacenterID deletes a datacenter

func (*Client) GetDatacenters

func (a *Client) GetDatacenters(params *GetDatacentersParams, opts ...ClientOption) (*GetDatacentersOK, error)

GetDatacenters lists datacenters

func (*Client) GetDatacentersDatacenterID

func (a *Client) GetDatacentersDatacenterID(params *GetDatacentersDatacenterIDParams, opts ...ClientOption) (*GetDatacentersDatacenterIDOK, error)

GetDatacentersDatacenterID shows datacenter detail

func (*Client) PostDatacenters

func (a *Client) PostDatacenters(params *PostDatacentersParams, opts ...ClientOption) (*PostDatacentersCreated, error)

PostDatacenters creates new datacenter

func (*Client) PutDatacentersDatacenterID

func (a *Client) PutDatacentersDatacenterID(params *PutDatacentersDatacenterIDParams, opts ...ClientOption) (*PutDatacentersDatacenterIDAccepted, error)

PutDatacentersDatacenterID updates a datacenter

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 {
	DeleteDatacentersDatacenterID(params *DeleteDatacentersDatacenterIDParams, opts ...ClientOption) (*DeleteDatacentersDatacenterIDNoContent, error)

	GetDatacenters(params *GetDatacentersParams, opts ...ClientOption) (*GetDatacentersOK, error)

	GetDatacentersDatacenterID(params *GetDatacentersDatacenterIDParams, opts ...ClientOption) (*GetDatacentersDatacenterIDOK, error)

	PostDatacenters(params *PostDatacentersParams, opts ...ClientOption) (*PostDatacentersCreated, error)

	PutDatacentersDatacenterID(params *PutDatacentersDatacenterIDParams, opts ...ClientOption) (*PutDatacentersDatacenterIDAccepted, 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 datacenters API client.

type DeleteDatacentersDatacenterIDDefault

type DeleteDatacentersDatacenterIDDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteDatacentersDatacenterIDDefault describes a response with status code -1, with default header values.

Unexpected Error

func NewDeleteDatacentersDatacenterIDDefault

func NewDeleteDatacentersDatacenterIDDefault(code int) *DeleteDatacentersDatacenterIDDefault

NewDeleteDatacentersDatacenterIDDefault creates a DeleteDatacentersDatacenterIDDefault with default headers values

func (*DeleteDatacentersDatacenterIDDefault) Code

Code gets the status code for the delete datacenters datacenter ID default response

func (*DeleteDatacentersDatacenterIDDefault) Error

func (*DeleteDatacentersDatacenterIDDefault) GetPayload

func (*DeleteDatacentersDatacenterIDDefault) IsClientError

func (o *DeleteDatacentersDatacenterIDDefault) IsClientError() bool

IsClientError returns true when this delete datacenters datacenter ID default response has a 4xx status code

func (*DeleteDatacentersDatacenterIDDefault) IsCode

IsCode returns true when this delete datacenters datacenter ID default response a status code equal to that given

func (*DeleteDatacentersDatacenterIDDefault) IsRedirect

IsRedirect returns true when this delete datacenters datacenter ID default response has a 3xx status code

func (*DeleteDatacentersDatacenterIDDefault) IsServerError

func (o *DeleteDatacentersDatacenterIDDefault) IsServerError() bool

IsServerError returns true when this delete datacenters datacenter ID default response has a 5xx status code

func (*DeleteDatacentersDatacenterIDDefault) IsSuccess

IsSuccess returns true when this delete datacenters datacenter ID default response has a 2xx status code

func (*DeleteDatacentersDatacenterIDDefault) String

type DeleteDatacentersDatacenterIDNoContent

type DeleteDatacentersDatacenterIDNoContent struct {
}

DeleteDatacentersDatacenterIDNoContent describes a response with status code 204, with default header values.

Resource successfully deleted.

func NewDeleteDatacentersDatacenterIDNoContent

func NewDeleteDatacentersDatacenterIDNoContent() *DeleteDatacentersDatacenterIDNoContent

NewDeleteDatacentersDatacenterIDNoContent creates a DeleteDatacentersDatacenterIDNoContent with default headers values

func (*DeleteDatacentersDatacenterIDNoContent) Code

Code gets the status code for the delete datacenters datacenter Id no content response

func (*DeleteDatacentersDatacenterIDNoContent) Error

func (*DeleteDatacentersDatacenterIDNoContent) IsClientError

func (o *DeleteDatacentersDatacenterIDNoContent) IsClientError() bool

IsClientError returns true when this delete datacenters datacenter Id no content response has a 4xx status code

func (*DeleteDatacentersDatacenterIDNoContent) IsCode

IsCode returns true when this delete datacenters datacenter Id no content response a status code equal to that given

func (*DeleteDatacentersDatacenterIDNoContent) IsRedirect

IsRedirect returns true when this delete datacenters datacenter Id no content response has a 3xx status code

func (*DeleteDatacentersDatacenterIDNoContent) IsServerError

func (o *DeleteDatacentersDatacenterIDNoContent) IsServerError() bool

IsServerError returns true when this delete datacenters datacenter Id no content response has a 5xx status code

func (*DeleteDatacentersDatacenterIDNoContent) IsSuccess

IsSuccess returns true when this delete datacenters datacenter Id no content response has a 2xx status code

func (*DeleteDatacentersDatacenterIDNoContent) String

type DeleteDatacentersDatacenterIDNotFound

type DeleteDatacentersDatacenterIDNotFound struct {
	Payload *models.Error
}

DeleteDatacentersDatacenterIDNotFound describes a response with status code 404, with default header values.

Not Found

func NewDeleteDatacentersDatacenterIDNotFound

func NewDeleteDatacentersDatacenterIDNotFound() *DeleteDatacentersDatacenterIDNotFound

NewDeleteDatacentersDatacenterIDNotFound creates a DeleteDatacentersDatacenterIDNotFound with default headers values

func (*DeleteDatacentersDatacenterIDNotFound) Code

Code gets the status code for the delete datacenters datacenter Id not found response

func (*DeleteDatacentersDatacenterIDNotFound) Error

func (*DeleteDatacentersDatacenterIDNotFound) GetPayload

func (*DeleteDatacentersDatacenterIDNotFound) IsClientError

func (o *DeleteDatacentersDatacenterIDNotFound) IsClientError() bool

IsClientError returns true when this delete datacenters datacenter Id not found response has a 4xx status code

func (*DeleteDatacentersDatacenterIDNotFound) IsCode

IsCode returns true when this delete datacenters datacenter Id not found response a status code equal to that given

func (*DeleteDatacentersDatacenterIDNotFound) IsRedirect

IsRedirect returns true when this delete datacenters datacenter Id not found response has a 3xx status code

func (*DeleteDatacentersDatacenterIDNotFound) IsServerError

func (o *DeleteDatacentersDatacenterIDNotFound) IsServerError() bool

IsServerError returns true when this delete datacenters datacenter Id not found response has a 5xx status code

func (*DeleteDatacentersDatacenterIDNotFound) IsSuccess

IsSuccess returns true when this delete datacenters datacenter Id not found response has a 2xx status code

func (*DeleteDatacentersDatacenterIDNotFound) String

type DeleteDatacentersDatacenterIDParams

type DeleteDatacentersDatacenterIDParams struct {

	/* DatacenterID.

	   The UUID of the datacenter

	   Format: uuid
	*/
	DatacenterID strfmt.UUID

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

DeleteDatacentersDatacenterIDParams contains all the parameters to send to the API endpoint

for the delete datacenters datacenter ID operation.

Typically these are written to a http.Request.

func NewDeleteDatacentersDatacenterIDParams

func NewDeleteDatacentersDatacenterIDParams() *DeleteDatacentersDatacenterIDParams

NewDeleteDatacentersDatacenterIDParams creates a new DeleteDatacentersDatacenterIDParams 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 NewDeleteDatacentersDatacenterIDParamsWithContext

func NewDeleteDatacentersDatacenterIDParamsWithContext(ctx context.Context) *DeleteDatacentersDatacenterIDParams

NewDeleteDatacentersDatacenterIDParamsWithContext creates a new DeleteDatacentersDatacenterIDParams object with the ability to set a context for a request.

func NewDeleteDatacentersDatacenterIDParamsWithHTTPClient

func NewDeleteDatacentersDatacenterIDParamsWithHTTPClient(client *http.Client) *DeleteDatacentersDatacenterIDParams

NewDeleteDatacentersDatacenterIDParamsWithHTTPClient creates a new DeleteDatacentersDatacenterIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteDatacentersDatacenterIDParamsWithTimeout

func NewDeleteDatacentersDatacenterIDParamsWithTimeout(timeout time.Duration) *DeleteDatacentersDatacenterIDParams

NewDeleteDatacentersDatacenterIDParamsWithTimeout creates a new DeleteDatacentersDatacenterIDParams object with the ability to set a timeout on a request.

func (*DeleteDatacentersDatacenterIDParams) SetContext

SetContext adds the context to the delete datacenters datacenter ID params

func (*DeleteDatacentersDatacenterIDParams) SetDatacenterID

func (o *DeleteDatacentersDatacenterIDParams) SetDatacenterID(datacenterID strfmt.UUID)

SetDatacenterID adds the datacenterId to the delete datacenters datacenter ID params

func (*DeleteDatacentersDatacenterIDParams) SetDefaults

func (o *DeleteDatacentersDatacenterIDParams) SetDefaults()

SetDefaults hydrates default values in the delete datacenters datacenter ID params (not the query body).

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

func (*DeleteDatacentersDatacenterIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete datacenters datacenter ID params

func (*DeleteDatacentersDatacenterIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete datacenters datacenter ID params

func (*DeleteDatacentersDatacenterIDParams) WithContext

WithContext adds the context to the delete datacenters datacenter ID params

func (*DeleteDatacentersDatacenterIDParams) WithDatacenterID

WithDatacenterID adds the datacenterID to the delete datacenters datacenter ID params

func (*DeleteDatacentersDatacenterIDParams) WithDefaults

WithDefaults hydrates default values in the delete datacenters datacenter ID params (not the query body).

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

func (*DeleteDatacentersDatacenterIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete datacenters datacenter ID params

func (*DeleteDatacentersDatacenterIDParams) WithTimeout

WithTimeout adds the timeout to the delete datacenters datacenter ID params

func (*DeleteDatacentersDatacenterIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteDatacentersDatacenterIDReader

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

DeleteDatacentersDatacenterIDReader is a Reader for the DeleteDatacentersDatacenterID structure.

func (*DeleteDatacentersDatacenterIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDatacentersBadRequest

type GetDatacentersBadRequest struct {
	Payload *models.Error
}

GetDatacentersBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetDatacentersBadRequest

func NewGetDatacentersBadRequest() *GetDatacentersBadRequest

NewGetDatacentersBadRequest creates a GetDatacentersBadRequest with default headers values

func (*GetDatacentersBadRequest) Code

func (o *GetDatacentersBadRequest) Code() int

Code gets the status code for the get datacenters bad request response

func (*GetDatacentersBadRequest) Error

func (o *GetDatacentersBadRequest) Error() string

func (*GetDatacentersBadRequest) GetPayload

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

func (*GetDatacentersBadRequest) IsClientError

func (o *GetDatacentersBadRequest) IsClientError() bool

IsClientError returns true when this get datacenters bad request response has a 4xx status code

func (*GetDatacentersBadRequest) IsCode

func (o *GetDatacentersBadRequest) IsCode(code int) bool

IsCode returns true when this get datacenters bad request response a status code equal to that given

func (*GetDatacentersBadRequest) IsRedirect

func (o *GetDatacentersBadRequest) IsRedirect() bool

IsRedirect returns true when this get datacenters bad request response has a 3xx status code

func (*GetDatacentersBadRequest) IsServerError

func (o *GetDatacentersBadRequest) IsServerError() bool

IsServerError returns true when this get datacenters bad request response has a 5xx status code

func (*GetDatacentersBadRequest) IsSuccess

func (o *GetDatacentersBadRequest) IsSuccess() bool

IsSuccess returns true when this get datacenters bad request response has a 2xx status code

func (*GetDatacentersBadRequest) String

func (o *GetDatacentersBadRequest) String() string

type GetDatacentersDatacenterIDDefault

type GetDatacentersDatacenterIDDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetDatacentersDatacenterIDDefault describes a response with status code -1, with default header values.

Unexpected Error

func NewGetDatacentersDatacenterIDDefault

func NewGetDatacentersDatacenterIDDefault(code int) *GetDatacentersDatacenterIDDefault

NewGetDatacentersDatacenterIDDefault creates a GetDatacentersDatacenterIDDefault with default headers values

func (*GetDatacentersDatacenterIDDefault) Code

Code gets the status code for the get datacenters datacenter ID default response

func (*GetDatacentersDatacenterIDDefault) Error

func (*GetDatacentersDatacenterIDDefault) GetPayload

func (*GetDatacentersDatacenterIDDefault) IsClientError

func (o *GetDatacentersDatacenterIDDefault) IsClientError() bool

IsClientError returns true when this get datacenters datacenter ID default response has a 4xx status code

func (*GetDatacentersDatacenterIDDefault) IsCode

func (o *GetDatacentersDatacenterIDDefault) IsCode(code int) bool

IsCode returns true when this get datacenters datacenter ID default response a status code equal to that given

func (*GetDatacentersDatacenterIDDefault) IsRedirect

func (o *GetDatacentersDatacenterIDDefault) IsRedirect() bool

IsRedirect returns true when this get datacenters datacenter ID default response has a 3xx status code

func (*GetDatacentersDatacenterIDDefault) IsServerError

func (o *GetDatacentersDatacenterIDDefault) IsServerError() bool

IsServerError returns true when this get datacenters datacenter ID default response has a 5xx status code

func (*GetDatacentersDatacenterIDDefault) IsSuccess

func (o *GetDatacentersDatacenterIDDefault) IsSuccess() bool

IsSuccess returns true when this get datacenters datacenter ID default response has a 2xx status code

func (*GetDatacentersDatacenterIDDefault) String

type GetDatacentersDatacenterIDNotFound

type GetDatacentersDatacenterIDNotFound struct {
	Payload *models.Error
}

GetDatacentersDatacenterIDNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetDatacentersDatacenterIDNotFound

func NewGetDatacentersDatacenterIDNotFound() *GetDatacentersDatacenterIDNotFound

NewGetDatacentersDatacenterIDNotFound creates a GetDatacentersDatacenterIDNotFound with default headers values

func (*GetDatacentersDatacenterIDNotFound) Code

Code gets the status code for the get datacenters datacenter Id not found response

func (*GetDatacentersDatacenterIDNotFound) Error

func (*GetDatacentersDatacenterIDNotFound) GetPayload

func (*GetDatacentersDatacenterIDNotFound) IsClientError

func (o *GetDatacentersDatacenterIDNotFound) IsClientError() bool

IsClientError returns true when this get datacenters datacenter Id not found response has a 4xx status code

func (*GetDatacentersDatacenterIDNotFound) IsCode

IsCode returns true when this get datacenters datacenter Id not found response a status code equal to that given

func (*GetDatacentersDatacenterIDNotFound) IsRedirect

func (o *GetDatacentersDatacenterIDNotFound) IsRedirect() bool

IsRedirect returns true when this get datacenters datacenter Id not found response has a 3xx status code

func (*GetDatacentersDatacenterIDNotFound) IsServerError

func (o *GetDatacentersDatacenterIDNotFound) IsServerError() bool

IsServerError returns true when this get datacenters datacenter Id not found response has a 5xx status code

func (*GetDatacentersDatacenterIDNotFound) IsSuccess

IsSuccess returns true when this get datacenters datacenter Id not found response has a 2xx status code

func (*GetDatacentersDatacenterIDNotFound) String

type GetDatacentersDatacenterIDOK

type GetDatacentersDatacenterIDOK struct {
	Payload *GetDatacentersDatacenterIDOKBody
}

GetDatacentersDatacenterIDOK describes a response with status code 200, with default header values.

Shows the details of a specific datacenter.

func NewGetDatacentersDatacenterIDOK

func NewGetDatacentersDatacenterIDOK() *GetDatacentersDatacenterIDOK

NewGetDatacentersDatacenterIDOK creates a GetDatacentersDatacenterIDOK with default headers values

func (*GetDatacentersDatacenterIDOK) Code

Code gets the status code for the get datacenters datacenter Id o k response

func (*GetDatacentersDatacenterIDOK) Error

func (*GetDatacentersDatacenterIDOK) GetPayload

func (*GetDatacentersDatacenterIDOK) IsClientError

func (o *GetDatacentersDatacenterIDOK) IsClientError() bool

IsClientError returns true when this get datacenters datacenter Id o k response has a 4xx status code

func (*GetDatacentersDatacenterIDOK) IsCode

func (o *GetDatacentersDatacenterIDOK) IsCode(code int) bool

IsCode returns true when this get datacenters datacenter Id o k response a status code equal to that given

func (*GetDatacentersDatacenterIDOK) IsRedirect

func (o *GetDatacentersDatacenterIDOK) IsRedirect() bool

IsRedirect returns true when this get datacenters datacenter Id o k response has a 3xx status code

func (*GetDatacentersDatacenterIDOK) IsServerError

func (o *GetDatacentersDatacenterIDOK) IsServerError() bool

IsServerError returns true when this get datacenters datacenter Id o k response has a 5xx status code

func (*GetDatacentersDatacenterIDOK) IsSuccess

func (o *GetDatacentersDatacenterIDOK) IsSuccess() bool

IsSuccess returns true when this get datacenters datacenter Id o k response has a 2xx status code

func (*GetDatacentersDatacenterIDOK) String

type GetDatacentersDatacenterIDOKBody

type GetDatacentersDatacenterIDOKBody struct {

	// datacenter
	Datacenter *models.Datacenter `json:"datacenter,omitempty"`
}

GetDatacentersDatacenterIDOKBody get datacenters datacenter ID o k body swagger:model GetDatacentersDatacenterIDOKBody

func (*GetDatacentersDatacenterIDOKBody) ContextValidate

func (o *GetDatacentersDatacenterIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get datacenters datacenter ID o k body based on the context it is used

func (*GetDatacentersDatacenterIDOKBody) MarshalBinary

func (o *GetDatacentersDatacenterIDOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetDatacentersDatacenterIDOKBody) UnmarshalBinary

func (o *GetDatacentersDatacenterIDOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetDatacentersDatacenterIDOKBody) Validate

Validate validates this get datacenters datacenter ID o k body

type GetDatacentersDatacenterIDParams

type GetDatacentersDatacenterIDParams struct {

	/* DatacenterID.

	   The UUID of the datacenter

	   Format: uuid
	*/
	DatacenterID strfmt.UUID

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

GetDatacentersDatacenterIDParams contains all the parameters to send to the API endpoint

for the get datacenters datacenter ID operation.

Typically these are written to a http.Request.

func NewGetDatacentersDatacenterIDParams

func NewGetDatacentersDatacenterIDParams() *GetDatacentersDatacenterIDParams

NewGetDatacentersDatacenterIDParams creates a new GetDatacentersDatacenterIDParams 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 NewGetDatacentersDatacenterIDParamsWithContext

func NewGetDatacentersDatacenterIDParamsWithContext(ctx context.Context) *GetDatacentersDatacenterIDParams

NewGetDatacentersDatacenterIDParamsWithContext creates a new GetDatacentersDatacenterIDParams object with the ability to set a context for a request.

func NewGetDatacentersDatacenterIDParamsWithHTTPClient

func NewGetDatacentersDatacenterIDParamsWithHTTPClient(client *http.Client) *GetDatacentersDatacenterIDParams

NewGetDatacentersDatacenterIDParamsWithHTTPClient creates a new GetDatacentersDatacenterIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetDatacentersDatacenterIDParamsWithTimeout

func NewGetDatacentersDatacenterIDParamsWithTimeout(timeout time.Duration) *GetDatacentersDatacenterIDParams

NewGetDatacentersDatacenterIDParamsWithTimeout creates a new GetDatacentersDatacenterIDParams object with the ability to set a timeout on a request.

func (*GetDatacentersDatacenterIDParams) SetContext

SetContext adds the context to the get datacenters datacenter ID params

func (*GetDatacentersDatacenterIDParams) SetDatacenterID

func (o *GetDatacentersDatacenterIDParams) SetDatacenterID(datacenterID strfmt.UUID)

SetDatacenterID adds the datacenterId to the get datacenters datacenter ID params

func (*GetDatacentersDatacenterIDParams) SetDefaults

func (o *GetDatacentersDatacenterIDParams) SetDefaults()

SetDefaults hydrates default values in the get datacenters datacenter ID params (not the query body).

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

func (*GetDatacentersDatacenterIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get datacenters datacenter ID params

func (*GetDatacentersDatacenterIDParams) SetTimeout

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

SetTimeout adds the timeout to the get datacenters datacenter ID params

func (*GetDatacentersDatacenterIDParams) WithContext

WithContext adds the context to the get datacenters datacenter ID params

func (*GetDatacentersDatacenterIDParams) WithDatacenterID

WithDatacenterID adds the datacenterID to the get datacenters datacenter ID params

func (*GetDatacentersDatacenterIDParams) WithDefaults

WithDefaults hydrates default values in the get datacenters datacenter ID params (not the query body).

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

func (*GetDatacentersDatacenterIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get datacenters datacenter ID params

func (*GetDatacentersDatacenterIDParams) WithTimeout

WithTimeout adds the timeout to the get datacenters datacenter ID params

func (*GetDatacentersDatacenterIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDatacentersDatacenterIDReader

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

GetDatacentersDatacenterIDReader is a Reader for the GetDatacentersDatacenterID structure.

func (*GetDatacentersDatacenterIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDatacentersDefault

type GetDatacentersDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetDatacentersDefault describes a response with status code -1, with default header values.

Unexpected Error

func NewGetDatacentersDefault

func NewGetDatacentersDefault(code int) *GetDatacentersDefault

NewGetDatacentersDefault creates a GetDatacentersDefault with default headers values

func (*GetDatacentersDefault) Code

func (o *GetDatacentersDefault) Code() int

Code gets the status code for the get datacenters default response

func (*GetDatacentersDefault) Error

func (o *GetDatacentersDefault) Error() string

func (*GetDatacentersDefault) GetPayload

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

func (*GetDatacentersDefault) IsClientError

func (o *GetDatacentersDefault) IsClientError() bool

IsClientError returns true when this get datacenters default response has a 4xx status code

func (*GetDatacentersDefault) IsCode

func (o *GetDatacentersDefault) IsCode(code int) bool

IsCode returns true when this get datacenters default response a status code equal to that given

func (*GetDatacentersDefault) IsRedirect

func (o *GetDatacentersDefault) IsRedirect() bool

IsRedirect returns true when this get datacenters default response has a 3xx status code

func (*GetDatacentersDefault) IsServerError

func (o *GetDatacentersDefault) IsServerError() bool

IsServerError returns true when this get datacenters default response has a 5xx status code

func (*GetDatacentersDefault) IsSuccess

func (o *GetDatacentersDefault) IsSuccess() bool

IsSuccess returns true when this get datacenters default response has a 2xx status code

func (*GetDatacentersDefault) String

func (o *GetDatacentersDefault) String() string

type GetDatacentersOK

type GetDatacentersOK struct {
	Payload *GetDatacentersOKBody
}

GetDatacentersOK describes a response with status code 200, with default header values.

A JSON array of datacenters

func NewGetDatacentersOK

func NewGetDatacentersOK() *GetDatacentersOK

NewGetDatacentersOK creates a GetDatacentersOK with default headers values

func (*GetDatacentersOK) Code

func (o *GetDatacentersOK) Code() int

Code gets the status code for the get datacenters o k response

func (*GetDatacentersOK) Error

func (o *GetDatacentersOK) Error() string

func (*GetDatacentersOK) GetPayload

func (o *GetDatacentersOK) GetPayload() *GetDatacentersOKBody

func (*GetDatacentersOK) IsClientError

func (o *GetDatacentersOK) IsClientError() bool

IsClientError returns true when this get datacenters o k response has a 4xx status code

func (*GetDatacentersOK) IsCode

func (o *GetDatacentersOK) IsCode(code int) bool

IsCode returns true when this get datacenters o k response a status code equal to that given

func (*GetDatacentersOK) IsRedirect

func (o *GetDatacentersOK) IsRedirect() bool

IsRedirect returns true when this get datacenters o k response has a 3xx status code

func (*GetDatacentersOK) IsServerError

func (o *GetDatacentersOK) IsServerError() bool

IsServerError returns true when this get datacenters o k response has a 5xx status code

func (*GetDatacentersOK) IsSuccess

func (o *GetDatacentersOK) IsSuccess() bool

IsSuccess returns true when this get datacenters o k response has a 2xx status code

func (*GetDatacentersOK) String

func (o *GetDatacentersOK) String() string

type GetDatacentersOKBody

type GetDatacentersOKBody struct {

	// datacenters
	Datacenters []*models.Datacenter `json:"datacenters"`

	// links
	Links []*models.Link `json:"links,omitempty"`
}

GetDatacentersOKBody get datacenters o k body swagger:model GetDatacentersOKBody

func (*GetDatacentersOKBody) ContextValidate

func (o *GetDatacentersOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get datacenters o k body based on the context it is used

func (*GetDatacentersOKBody) MarshalBinary

func (o *GetDatacentersOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetDatacentersOKBody) UnmarshalBinary

func (o *GetDatacentersOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetDatacentersOKBody) Validate

func (o *GetDatacentersOKBody) Validate(formats strfmt.Registry) error

Validate validates this get datacenters o k body

type GetDatacentersParams

type GetDatacentersParams struct {

	/* Limit.

	   Sets the page size.
	*/
	Limit *int64

	/* Marker.

	   Pagination ID of the last item in the previous list.

	   Format: uuid
	*/
	Marker *strfmt.UUID

	/* NotTags.

	     Filter for resources not having tags, multiple not-tags are considered as logical AND.
	Should be provided in a comma separated list.

	*/
	NotTags []string

	/* NotTagsAny.

	     Filter for resources not having tags, multiple tags are considered as logical OR.
	Should be provided in a comma separated list.

	*/
	NotTagsAny []string

	/* PageReverse.

	   Sets the page direction.
	*/
	PageReverse *bool

	/* Sort.

	   Comma-separated list of sort keys, optinally prefix with - to reverse sort order.
	*/
	Sort *string

	/* Tags.

	     Filter for tags, multiple tags are considered as logical AND.
	Should be provided in a comma separated list.

	*/
	Tags []string

	/* TagsAny.

	     Filter for tags, multiple tags are considered as logical OR.
	Should be provided in a comma separated list.

	*/
	TagsAny []string

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

GetDatacentersParams contains all the parameters to send to the API endpoint

for the get datacenters operation.

Typically these are written to a http.Request.

func NewGetDatacentersParams

func NewGetDatacentersParams() *GetDatacentersParams

NewGetDatacentersParams creates a new GetDatacentersParams 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 NewGetDatacentersParamsWithContext

func NewGetDatacentersParamsWithContext(ctx context.Context) *GetDatacentersParams

NewGetDatacentersParamsWithContext creates a new GetDatacentersParams object with the ability to set a context for a request.

func NewGetDatacentersParamsWithHTTPClient

func NewGetDatacentersParamsWithHTTPClient(client *http.Client) *GetDatacentersParams

NewGetDatacentersParamsWithHTTPClient creates a new GetDatacentersParams object with the ability to set a custom HTTPClient for a request.

func NewGetDatacentersParamsWithTimeout

func NewGetDatacentersParamsWithTimeout(timeout time.Duration) *GetDatacentersParams

NewGetDatacentersParamsWithTimeout creates a new GetDatacentersParams object with the ability to set a timeout on a request.

func (*GetDatacentersParams) SetContext

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

SetContext adds the context to the get datacenters params

func (*GetDatacentersParams) SetDefaults

func (o *GetDatacentersParams) SetDefaults()

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

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

func (*GetDatacentersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get datacenters params

func (*GetDatacentersParams) SetLimit

func (o *GetDatacentersParams) SetLimit(limit *int64)

SetLimit adds the limit to the get datacenters params

func (*GetDatacentersParams) SetMarker

func (o *GetDatacentersParams) SetMarker(marker *strfmt.UUID)

SetMarker adds the marker to the get datacenters params

func (*GetDatacentersParams) SetNotTags

func (o *GetDatacentersParams) SetNotTags(notTags []string)

SetNotTags adds the notTags to the get datacenters params

func (*GetDatacentersParams) SetNotTagsAny

func (o *GetDatacentersParams) SetNotTagsAny(notTagsAny []string)

SetNotTagsAny adds the notTagsAny to the get datacenters params

func (*GetDatacentersParams) SetPageReverse

func (o *GetDatacentersParams) SetPageReverse(pageReverse *bool)

SetPageReverse adds the pageReverse to the get datacenters params

func (*GetDatacentersParams) SetSort

func (o *GetDatacentersParams) SetSort(sort *string)

SetSort adds the sort to the get datacenters params

func (*GetDatacentersParams) SetTags

func (o *GetDatacentersParams) SetTags(tags []string)

SetTags adds the tags to the get datacenters params

func (*GetDatacentersParams) SetTagsAny

func (o *GetDatacentersParams) SetTagsAny(tagsAny []string)

SetTagsAny adds the tagsAny to the get datacenters params

func (*GetDatacentersParams) SetTimeout

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

SetTimeout adds the timeout to the get datacenters params

func (*GetDatacentersParams) WithContext

WithContext adds the context to the get datacenters params

func (*GetDatacentersParams) WithDefaults

func (o *GetDatacentersParams) WithDefaults() *GetDatacentersParams

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

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

func (*GetDatacentersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get datacenters params

func (*GetDatacentersParams) WithLimit

func (o *GetDatacentersParams) WithLimit(limit *int64) *GetDatacentersParams

WithLimit adds the limit to the get datacenters params

func (*GetDatacentersParams) WithMarker

func (o *GetDatacentersParams) WithMarker(marker *strfmt.UUID) *GetDatacentersParams

WithMarker adds the marker to the get datacenters params

func (*GetDatacentersParams) WithNotTags

func (o *GetDatacentersParams) WithNotTags(notTags []string) *GetDatacentersParams

WithNotTags adds the notTags to the get datacenters params

func (*GetDatacentersParams) WithNotTagsAny

func (o *GetDatacentersParams) WithNotTagsAny(notTagsAny []string) *GetDatacentersParams

WithNotTagsAny adds the notTagsAny to the get datacenters params

func (*GetDatacentersParams) WithPageReverse

func (o *GetDatacentersParams) WithPageReverse(pageReverse *bool) *GetDatacentersParams

WithPageReverse adds the pageReverse to the get datacenters params

func (*GetDatacentersParams) WithSort

func (o *GetDatacentersParams) WithSort(sort *string) *GetDatacentersParams

WithSort adds the sort to the get datacenters params

func (*GetDatacentersParams) WithTags

func (o *GetDatacentersParams) WithTags(tags []string) *GetDatacentersParams

WithTags adds the tags to the get datacenters params

func (*GetDatacentersParams) WithTagsAny

func (o *GetDatacentersParams) WithTagsAny(tagsAny []string) *GetDatacentersParams

WithTagsAny adds the tagsAny to the get datacenters params

func (*GetDatacentersParams) WithTimeout

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

WithTimeout adds the timeout to the get datacenters params

func (*GetDatacentersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetDatacentersReader

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

GetDatacentersReader is a Reader for the GetDatacenters structure.

func (*GetDatacentersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostDatacentersBody

type PostDatacentersBody struct {

	// datacenter
	// Required: true
	Datacenter *models.Datacenter `json:"datacenter"`
}

PostDatacentersBody post datacenters body swagger:model PostDatacentersBody

func (*PostDatacentersBody) ContextValidate

func (o *PostDatacentersBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this post datacenters body based on the context it is used

func (*PostDatacentersBody) MarshalBinary

func (o *PostDatacentersBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostDatacentersBody) UnmarshalBinary

func (o *PostDatacentersBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostDatacentersBody) Validate

func (o *PostDatacentersBody) Validate(formats strfmt.Registry) error

Validate validates this post datacenters body

type PostDatacentersCreated

type PostDatacentersCreated struct {
	Payload *PostDatacentersCreatedBody
}

PostDatacentersCreated describes a response with status code 201, with default header values.

Created datacenter.

func NewPostDatacentersCreated

func NewPostDatacentersCreated() *PostDatacentersCreated

NewPostDatacentersCreated creates a PostDatacentersCreated with default headers values

func (*PostDatacentersCreated) Code

func (o *PostDatacentersCreated) Code() int

Code gets the status code for the post datacenters created response

func (*PostDatacentersCreated) Error

func (o *PostDatacentersCreated) Error() string

func (*PostDatacentersCreated) GetPayload

func (*PostDatacentersCreated) IsClientError

func (o *PostDatacentersCreated) IsClientError() bool

IsClientError returns true when this post datacenters created response has a 4xx status code

func (*PostDatacentersCreated) IsCode

func (o *PostDatacentersCreated) IsCode(code int) bool

IsCode returns true when this post datacenters created response a status code equal to that given

func (*PostDatacentersCreated) IsRedirect

func (o *PostDatacentersCreated) IsRedirect() bool

IsRedirect returns true when this post datacenters created response has a 3xx status code

func (*PostDatacentersCreated) IsServerError

func (o *PostDatacentersCreated) IsServerError() bool

IsServerError returns true when this post datacenters created response has a 5xx status code

func (*PostDatacentersCreated) IsSuccess

func (o *PostDatacentersCreated) IsSuccess() bool

IsSuccess returns true when this post datacenters created response has a 2xx status code

func (*PostDatacentersCreated) String

func (o *PostDatacentersCreated) String() string

type PostDatacentersCreatedBody

type PostDatacentersCreatedBody struct {

	// datacenter
	Datacenter *models.Datacenter `json:"datacenter,omitempty"`
}

PostDatacentersCreatedBody post datacenters created body swagger:model PostDatacentersCreatedBody

func (*PostDatacentersCreatedBody) ContextValidate

func (o *PostDatacentersCreatedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this post datacenters created body based on the context it is used

func (*PostDatacentersCreatedBody) MarshalBinary

func (o *PostDatacentersCreatedBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostDatacentersCreatedBody) UnmarshalBinary

func (o *PostDatacentersCreatedBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostDatacentersCreatedBody) Validate

func (o *PostDatacentersCreatedBody) Validate(formats strfmt.Registry) error

Validate validates this post datacenters created body

type PostDatacentersDefault

type PostDatacentersDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

PostDatacentersDefault describes a response with status code -1, with default header values.

Unexpected Error

func NewPostDatacentersDefault

func NewPostDatacentersDefault(code int) *PostDatacentersDefault

NewPostDatacentersDefault creates a PostDatacentersDefault with default headers values

func (*PostDatacentersDefault) Code

func (o *PostDatacentersDefault) Code() int

Code gets the status code for the post datacenters default response

func (*PostDatacentersDefault) Error

func (o *PostDatacentersDefault) Error() string

func (*PostDatacentersDefault) GetPayload

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

func (*PostDatacentersDefault) IsClientError

func (o *PostDatacentersDefault) IsClientError() bool

IsClientError returns true when this post datacenters default response has a 4xx status code

func (*PostDatacentersDefault) IsCode

func (o *PostDatacentersDefault) IsCode(code int) bool

IsCode returns true when this post datacenters default response a status code equal to that given

func (*PostDatacentersDefault) IsRedirect

func (o *PostDatacentersDefault) IsRedirect() bool

IsRedirect returns true when this post datacenters default response has a 3xx status code

func (*PostDatacentersDefault) IsServerError

func (o *PostDatacentersDefault) IsServerError() bool

IsServerError returns true when this post datacenters default response has a 5xx status code

func (*PostDatacentersDefault) IsSuccess

func (o *PostDatacentersDefault) IsSuccess() bool

IsSuccess returns true when this post datacenters default response has a 2xx status code

func (*PostDatacentersDefault) String

func (o *PostDatacentersDefault) String() string

type PostDatacentersNotFound

type PostDatacentersNotFound struct {
	Payload *models.Error
}

PostDatacentersNotFound describes a response with status code 404, with default header values.

Not Found

func NewPostDatacentersNotFound

func NewPostDatacentersNotFound() *PostDatacentersNotFound

NewPostDatacentersNotFound creates a PostDatacentersNotFound with default headers values

func (*PostDatacentersNotFound) Code

func (o *PostDatacentersNotFound) Code() int

Code gets the status code for the post datacenters not found response

func (*PostDatacentersNotFound) Error

func (o *PostDatacentersNotFound) Error() string

func (*PostDatacentersNotFound) GetPayload

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

func (*PostDatacentersNotFound) IsClientError

func (o *PostDatacentersNotFound) IsClientError() bool

IsClientError returns true when this post datacenters not found response has a 4xx status code

func (*PostDatacentersNotFound) IsCode

func (o *PostDatacentersNotFound) IsCode(code int) bool

IsCode returns true when this post datacenters not found response a status code equal to that given

func (*PostDatacentersNotFound) IsRedirect

func (o *PostDatacentersNotFound) IsRedirect() bool

IsRedirect returns true when this post datacenters not found response has a 3xx status code

func (*PostDatacentersNotFound) IsServerError

func (o *PostDatacentersNotFound) IsServerError() bool

IsServerError returns true when this post datacenters not found response has a 5xx status code

func (*PostDatacentersNotFound) IsSuccess

func (o *PostDatacentersNotFound) IsSuccess() bool

IsSuccess returns true when this post datacenters not found response has a 2xx status code

func (*PostDatacentersNotFound) String

func (o *PostDatacentersNotFound) String() string

type PostDatacentersParams

type PostDatacentersParams struct {

	// Datacenter.
	Datacenter PostDatacentersBody

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

PostDatacentersParams contains all the parameters to send to the API endpoint

for the post datacenters operation.

Typically these are written to a http.Request.

func NewPostDatacentersParams

func NewPostDatacentersParams() *PostDatacentersParams

NewPostDatacentersParams creates a new PostDatacentersParams 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 NewPostDatacentersParamsWithContext

func NewPostDatacentersParamsWithContext(ctx context.Context) *PostDatacentersParams

NewPostDatacentersParamsWithContext creates a new PostDatacentersParams object with the ability to set a context for a request.

func NewPostDatacentersParamsWithHTTPClient

func NewPostDatacentersParamsWithHTTPClient(client *http.Client) *PostDatacentersParams

NewPostDatacentersParamsWithHTTPClient creates a new PostDatacentersParams object with the ability to set a custom HTTPClient for a request.

func NewPostDatacentersParamsWithTimeout

func NewPostDatacentersParamsWithTimeout(timeout time.Duration) *PostDatacentersParams

NewPostDatacentersParamsWithTimeout creates a new PostDatacentersParams object with the ability to set a timeout on a request.

func (*PostDatacentersParams) SetContext

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

SetContext adds the context to the post datacenters params

func (*PostDatacentersParams) SetDatacenter

func (o *PostDatacentersParams) SetDatacenter(datacenter PostDatacentersBody)

SetDatacenter adds the datacenter to the post datacenters params

func (*PostDatacentersParams) SetDefaults

func (o *PostDatacentersParams) SetDefaults()

SetDefaults hydrates default values in the post datacenters params (not the query body).

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

func (*PostDatacentersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post datacenters params

func (*PostDatacentersParams) SetTimeout

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

SetTimeout adds the timeout to the post datacenters params

func (*PostDatacentersParams) WithContext

WithContext adds the context to the post datacenters params

func (*PostDatacentersParams) WithDatacenter

func (o *PostDatacentersParams) WithDatacenter(datacenter PostDatacentersBody) *PostDatacentersParams

WithDatacenter adds the datacenter to the post datacenters params

func (*PostDatacentersParams) WithDefaults

func (o *PostDatacentersParams) WithDefaults() *PostDatacentersParams

WithDefaults hydrates default values in the post datacenters params (not the query body).

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

func (*PostDatacentersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post datacenters params

func (*PostDatacentersParams) WithTimeout

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

WithTimeout adds the timeout to the post datacenters params

func (*PostDatacentersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostDatacentersReader

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

PostDatacentersReader is a Reader for the PostDatacenters structure.

func (*PostDatacentersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutDatacentersDatacenterIDAccepted

type PutDatacentersDatacenterIDAccepted struct {
	Payload *PutDatacentersDatacenterIDAcceptedBody
}

PutDatacentersDatacenterIDAccepted describes a response with status code 202, with default header values.

Updated datacenter.

func NewPutDatacentersDatacenterIDAccepted

func NewPutDatacentersDatacenterIDAccepted() *PutDatacentersDatacenterIDAccepted

NewPutDatacentersDatacenterIDAccepted creates a PutDatacentersDatacenterIDAccepted with default headers values

func (*PutDatacentersDatacenterIDAccepted) Code

Code gets the status code for the put datacenters datacenter Id accepted response

func (*PutDatacentersDatacenterIDAccepted) Error

func (*PutDatacentersDatacenterIDAccepted) GetPayload

func (*PutDatacentersDatacenterIDAccepted) IsClientError

func (o *PutDatacentersDatacenterIDAccepted) IsClientError() bool

IsClientError returns true when this put datacenters datacenter Id accepted response has a 4xx status code

func (*PutDatacentersDatacenterIDAccepted) IsCode

IsCode returns true when this put datacenters datacenter Id accepted response a status code equal to that given

func (*PutDatacentersDatacenterIDAccepted) IsRedirect

func (o *PutDatacentersDatacenterIDAccepted) IsRedirect() bool

IsRedirect returns true when this put datacenters datacenter Id accepted response has a 3xx status code

func (*PutDatacentersDatacenterIDAccepted) IsServerError

func (o *PutDatacentersDatacenterIDAccepted) IsServerError() bool

IsServerError returns true when this put datacenters datacenter Id accepted response has a 5xx status code

func (*PutDatacentersDatacenterIDAccepted) IsSuccess

IsSuccess returns true when this put datacenters datacenter Id accepted response has a 2xx status code

func (*PutDatacentersDatacenterIDAccepted) String

type PutDatacentersDatacenterIDAcceptedBody

type PutDatacentersDatacenterIDAcceptedBody struct {

	// datacenter
	Datacenter *models.Datacenter `json:"datacenter,omitempty"`
}

PutDatacentersDatacenterIDAcceptedBody put datacenters datacenter ID accepted body swagger:model PutDatacentersDatacenterIDAcceptedBody

func (*PutDatacentersDatacenterIDAcceptedBody) ContextValidate

ContextValidate validate this put datacenters datacenter ID accepted body based on the context it is used

func (*PutDatacentersDatacenterIDAcceptedBody) MarshalBinary

func (o *PutDatacentersDatacenterIDAcceptedBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PutDatacentersDatacenterIDAcceptedBody) UnmarshalBinary

func (o *PutDatacentersDatacenterIDAcceptedBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PutDatacentersDatacenterIDAcceptedBody) Validate

Validate validates this put datacenters datacenter ID accepted body

type PutDatacentersDatacenterIDBody

type PutDatacentersDatacenterIDBody struct {

	// datacenter
	// Required: true
	Datacenter *models.Datacenter `json:"datacenter"`
}

PutDatacentersDatacenterIDBody put datacenters datacenter ID body swagger:model PutDatacentersDatacenterIDBody

func (*PutDatacentersDatacenterIDBody) ContextValidate

func (o *PutDatacentersDatacenterIDBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this put datacenters datacenter ID body based on the context it is used

func (*PutDatacentersDatacenterIDBody) MarshalBinary

func (o *PutDatacentersDatacenterIDBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PutDatacentersDatacenterIDBody) UnmarshalBinary

func (o *PutDatacentersDatacenterIDBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PutDatacentersDatacenterIDBody) Validate

func (o *PutDatacentersDatacenterIDBody) Validate(formats strfmt.Registry) error

Validate validates this put datacenters datacenter ID body

type PutDatacentersDatacenterIDDefault

type PutDatacentersDatacenterIDDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

PutDatacentersDatacenterIDDefault describes a response with status code -1, with default header values.

Unexpected Error

func NewPutDatacentersDatacenterIDDefault

func NewPutDatacentersDatacenterIDDefault(code int) *PutDatacentersDatacenterIDDefault

NewPutDatacentersDatacenterIDDefault creates a PutDatacentersDatacenterIDDefault with default headers values

func (*PutDatacentersDatacenterIDDefault) Code

Code gets the status code for the put datacenters datacenter ID default response

func (*PutDatacentersDatacenterIDDefault) Error

func (*PutDatacentersDatacenterIDDefault) GetPayload

func (*PutDatacentersDatacenterIDDefault) IsClientError

func (o *PutDatacentersDatacenterIDDefault) IsClientError() bool

IsClientError returns true when this put datacenters datacenter ID default response has a 4xx status code

func (*PutDatacentersDatacenterIDDefault) IsCode

func (o *PutDatacentersDatacenterIDDefault) IsCode(code int) bool

IsCode returns true when this put datacenters datacenter ID default response a status code equal to that given

func (*PutDatacentersDatacenterIDDefault) IsRedirect

func (o *PutDatacentersDatacenterIDDefault) IsRedirect() bool

IsRedirect returns true when this put datacenters datacenter ID default response has a 3xx status code

func (*PutDatacentersDatacenterIDDefault) IsServerError

func (o *PutDatacentersDatacenterIDDefault) IsServerError() bool

IsServerError returns true when this put datacenters datacenter ID default response has a 5xx status code

func (*PutDatacentersDatacenterIDDefault) IsSuccess

func (o *PutDatacentersDatacenterIDDefault) IsSuccess() bool

IsSuccess returns true when this put datacenters datacenter ID default response has a 2xx status code

func (*PutDatacentersDatacenterIDDefault) String

type PutDatacentersDatacenterIDNotFound

type PutDatacentersDatacenterIDNotFound struct {
	Payload *models.Error
}

PutDatacentersDatacenterIDNotFound describes a response with status code 404, with default header values.

Not Found

func NewPutDatacentersDatacenterIDNotFound

func NewPutDatacentersDatacenterIDNotFound() *PutDatacentersDatacenterIDNotFound

NewPutDatacentersDatacenterIDNotFound creates a PutDatacentersDatacenterIDNotFound with default headers values

func (*PutDatacentersDatacenterIDNotFound) Code

Code gets the status code for the put datacenters datacenter Id not found response

func (*PutDatacentersDatacenterIDNotFound) Error

func (*PutDatacentersDatacenterIDNotFound) GetPayload

func (*PutDatacentersDatacenterIDNotFound) IsClientError

func (o *PutDatacentersDatacenterIDNotFound) IsClientError() bool

IsClientError returns true when this put datacenters datacenter Id not found response has a 4xx status code

func (*PutDatacentersDatacenterIDNotFound) IsCode

IsCode returns true when this put datacenters datacenter Id not found response a status code equal to that given

func (*PutDatacentersDatacenterIDNotFound) IsRedirect

func (o *PutDatacentersDatacenterIDNotFound) IsRedirect() bool

IsRedirect returns true when this put datacenters datacenter Id not found response has a 3xx status code

func (*PutDatacentersDatacenterIDNotFound) IsServerError

func (o *PutDatacentersDatacenterIDNotFound) IsServerError() bool

IsServerError returns true when this put datacenters datacenter Id not found response has a 5xx status code

func (*PutDatacentersDatacenterIDNotFound) IsSuccess

IsSuccess returns true when this put datacenters datacenter Id not found response has a 2xx status code

func (*PutDatacentersDatacenterIDNotFound) String

type PutDatacentersDatacenterIDParams

type PutDatacentersDatacenterIDParams struct {

	// Datacenter.
	Datacenter PutDatacentersDatacenterIDBody

	/* DatacenterID.

	   The UUID of the datacenter

	   Format: uuid
	*/
	DatacenterID strfmt.UUID

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

PutDatacentersDatacenterIDParams contains all the parameters to send to the API endpoint

for the put datacenters datacenter ID operation.

Typically these are written to a http.Request.

func NewPutDatacentersDatacenterIDParams

func NewPutDatacentersDatacenterIDParams() *PutDatacentersDatacenterIDParams

NewPutDatacentersDatacenterIDParams creates a new PutDatacentersDatacenterIDParams 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 NewPutDatacentersDatacenterIDParamsWithContext

func NewPutDatacentersDatacenterIDParamsWithContext(ctx context.Context) *PutDatacentersDatacenterIDParams

NewPutDatacentersDatacenterIDParamsWithContext creates a new PutDatacentersDatacenterIDParams object with the ability to set a context for a request.

func NewPutDatacentersDatacenterIDParamsWithHTTPClient

func NewPutDatacentersDatacenterIDParamsWithHTTPClient(client *http.Client) *PutDatacentersDatacenterIDParams

NewPutDatacentersDatacenterIDParamsWithHTTPClient creates a new PutDatacentersDatacenterIDParams object with the ability to set a custom HTTPClient for a request.

func NewPutDatacentersDatacenterIDParamsWithTimeout

func NewPutDatacentersDatacenterIDParamsWithTimeout(timeout time.Duration) *PutDatacentersDatacenterIDParams

NewPutDatacentersDatacenterIDParamsWithTimeout creates a new PutDatacentersDatacenterIDParams object with the ability to set a timeout on a request.

func (*PutDatacentersDatacenterIDParams) SetContext

SetContext adds the context to the put datacenters datacenter ID params

func (*PutDatacentersDatacenterIDParams) SetDatacenter

SetDatacenter adds the datacenter to the put datacenters datacenter ID params

func (*PutDatacentersDatacenterIDParams) SetDatacenterID

func (o *PutDatacentersDatacenterIDParams) SetDatacenterID(datacenterID strfmt.UUID)

SetDatacenterID adds the datacenterId to the put datacenters datacenter ID params

func (*PutDatacentersDatacenterIDParams) SetDefaults

func (o *PutDatacentersDatacenterIDParams) SetDefaults()

SetDefaults hydrates default values in the put datacenters datacenter ID params (not the query body).

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

func (*PutDatacentersDatacenterIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put datacenters datacenter ID params

func (*PutDatacentersDatacenterIDParams) SetTimeout

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

SetTimeout adds the timeout to the put datacenters datacenter ID params

func (*PutDatacentersDatacenterIDParams) WithContext

WithContext adds the context to the put datacenters datacenter ID params

func (*PutDatacentersDatacenterIDParams) WithDatacenter

WithDatacenter adds the datacenter to the put datacenters datacenter ID params

func (*PutDatacentersDatacenterIDParams) WithDatacenterID

WithDatacenterID adds the datacenterID to the put datacenters datacenter ID params

func (*PutDatacentersDatacenterIDParams) WithDefaults

WithDefaults hydrates default values in the put datacenters datacenter ID params (not the query body).

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

func (*PutDatacentersDatacenterIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the put datacenters datacenter ID params

func (*PutDatacentersDatacenterIDParams) WithTimeout

WithTimeout adds the timeout to the put datacenters datacenter ID params

func (*PutDatacentersDatacenterIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutDatacentersDatacenterIDReader

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

PutDatacentersDatacenterIDReader is a Reader for the PutDatacentersDatacenterID structure.

func (*PutDatacentersDatacenterIDReader) ReadResponse

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