Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteDatacentersDatacenterID(params *DeleteDatacentersDatacenterIDParams, opts ...ClientOption) (*DeleteDatacentersDatacenterIDNoContent, error)
- func (a *Client) GetDatacenters(params *GetDatacentersParams, opts ...ClientOption) (*GetDatacentersOK, error)
- func (a *Client) GetDatacentersDatacenterID(params *GetDatacentersDatacenterIDParams, opts ...ClientOption) (*GetDatacentersDatacenterIDOK, error)
- func (a *Client) PostDatacenters(params *PostDatacentersParams, opts ...ClientOption) (*PostDatacentersCreated, error)
- func (a *Client) PutDatacentersDatacenterID(params *PutDatacentersDatacenterIDParams, opts ...ClientOption) (*PutDatacentersDatacenterIDAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteDatacentersDatacenterIDDefault
- func (o *DeleteDatacentersDatacenterIDDefault) Code() int
- func (o *DeleteDatacentersDatacenterIDDefault) Error() string
- func (o *DeleteDatacentersDatacenterIDDefault) GetPayload() *models.Error
- func (o *DeleteDatacentersDatacenterIDDefault) IsClientError() bool
- func (o *DeleteDatacentersDatacenterIDDefault) IsCode(code int) bool
- func (o *DeleteDatacentersDatacenterIDDefault) IsRedirect() bool
- func (o *DeleteDatacentersDatacenterIDDefault) IsServerError() bool
- func (o *DeleteDatacentersDatacenterIDDefault) IsSuccess() bool
- func (o *DeleteDatacentersDatacenterIDDefault) String() string
- type DeleteDatacentersDatacenterIDNoContent
- func (o *DeleteDatacentersDatacenterIDNoContent) Code() int
- func (o *DeleteDatacentersDatacenterIDNoContent) Error() string
- func (o *DeleteDatacentersDatacenterIDNoContent) IsClientError() bool
- func (o *DeleteDatacentersDatacenterIDNoContent) IsCode(code int) bool
- func (o *DeleteDatacentersDatacenterIDNoContent) IsRedirect() bool
- func (o *DeleteDatacentersDatacenterIDNoContent) IsServerError() bool
- func (o *DeleteDatacentersDatacenterIDNoContent) IsSuccess() bool
- func (o *DeleteDatacentersDatacenterIDNoContent) String() string
- type DeleteDatacentersDatacenterIDNotFound
- func (o *DeleteDatacentersDatacenterIDNotFound) Code() int
- func (o *DeleteDatacentersDatacenterIDNotFound) Error() string
- func (o *DeleteDatacentersDatacenterIDNotFound) GetPayload() *models.Error
- func (o *DeleteDatacentersDatacenterIDNotFound) IsClientError() bool
- func (o *DeleteDatacentersDatacenterIDNotFound) IsCode(code int) bool
- func (o *DeleteDatacentersDatacenterIDNotFound) IsRedirect() bool
- func (o *DeleteDatacentersDatacenterIDNotFound) IsServerError() bool
- func (o *DeleteDatacentersDatacenterIDNotFound) IsSuccess() bool
- func (o *DeleteDatacentersDatacenterIDNotFound) String() string
- type DeleteDatacentersDatacenterIDParams
- func NewDeleteDatacentersDatacenterIDParams() *DeleteDatacentersDatacenterIDParams
- func NewDeleteDatacentersDatacenterIDParamsWithContext(ctx context.Context) *DeleteDatacentersDatacenterIDParams
- func NewDeleteDatacentersDatacenterIDParamsWithHTTPClient(client *http.Client) *DeleteDatacentersDatacenterIDParams
- func NewDeleteDatacentersDatacenterIDParamsWithTimeout(timeout time.Duration) *DeleteDatacentersDatacenterIDParams
- func (o *DeleteDatacentersDatacenterIDParams) SetContext(ctx context.Context)
- func (o *DeleteDatacentersDatacenterIDParams) SetDatacenterID(datacenterID strfmt.UUID)
- func (o *DeleteDatacentersDatacenterIDParams) SetDefaults()
- func (o *DeleteDatacentersDatacenterIDParams) SetHTTPClient(client *http.Client)
- func (o *DeleteDatacentersDatacenterIDParams) SetTimeout(timeout time.Duration)
- func (o *DeleteDatacentersDatacenterIDParams) WithContext(ctx context.Context) *DeleteDatacentersDatacenterIDParams
- func (o *DeleteDatacentersDatacenterIDParams) WithDatacenterID(datacenterID strfmt.UUID) *DeleteDatacentersDatacenterIDParams
- func (o *DeleteDatacentersDatacenterIDParams) WithDefaults() *DeleteDatacentersDatacenterIDParams
- func (o *DeleteDatacentersDatacenterIDParams) WithHTTPClient(client *http.Client) *DeleteDatacentersDatacenterIDParams
- func (o *DeleteDatacentersDatacenterIDParams) WithTimeout(timeout time.Duration) *DeleteDatacentersDatacenterIDParams
- func (o *DeleteDatacentersDatacenterIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteDatacentersDatacenterIDReader
- type GetDatacentersBadRequest
- func (o *GetDatacentersBadRequest) Code() int
- func (o *GetDatacentersBadRequest) Error() string
- func (o *GetDatacentersBadRequest) GetPayload() *models.Error
- func (o *GetDatacentersBadRequest) IsClientError() bool
- func (o *GetDatacentersBadRequest) IsCode(code int) bool
- func (o *GetDatacentersBadRequest) IsRedirect() bool
- func (o *GetDatacentersBadRequest) IsServerError() bool
- func (o *GetDatacentersBadRequest) IsSuccess() bool
- func (o *GetDatacentersBadRequest) String() string
- type GetDatacentersDatacenterIDDefault
- func (o *GetDatacentersDatacenterIDDefault) Code() int
- func (o *GetDatacentersDatacenterIDDefault) Error() string
- func (o *GetDatacentersDatacenterIDDefault) GetPayload() *models.Error
- func (o *GetDatacentersDatacenterIDDefault) IsClientError() bool
- func (o *GetDatacentersDatacenterIDDefault) IsCode(code int) bool
- func (o *GetDatacentersDatacenterIDDefault) IsRedirect() bool
- func (o *GetDatacentersDatacenterIDDefault) IsServerError() bool
- func (o *GetDatacentersDatacenterIDDefault) IsSuccess() bool
- func (o *GetDatacentersDatacenterIDDefault) String() string
- type GetDatacentersDatacenterIDNotFound
- func (o *GetDatacentersDatacenterIDNotFound) Code() int
- func (o *GetDatacentersDatacenterIDNotFound) Error() string
- func (o *GetDatacentersDatacenterIDNotFound) GetPayload() *models.Error
- func (o *GetDatacentersDatacenterIDNotFound) IsClientError() bool
- func (o *GetDatacentersDatacenterIDNotFound) IsCode(code int) bool
- func (o *GetDatacentersDatacenterIDNotFound) IsRedirect() bool
- func (o *GetDatacentersDatacenterIDNotFound) IsServerError() bool
- func (o *GetDatacentersDatacenterIDNotFound) IsSuccess() bool
- func (o *GetDatacentersDatacenterIDNotFound) String() string
- type GetDatacentersDatacenterIDOK
- func (o *GetDatacentersDatacenterIDOK) Code() int
- func (o *GetDatacentersDatacenterIDOK) Error() string
- func (o *GetDatacentersDatacenterIDOK) GetPayload() *GetDatacentersDatacenterIDOKBody
- func (o *GetDatacentersDatacenterIDOK) IsClientError() bool
- func (o *GetDatacentersDatacenterIDOK) IsCode(code int) bool
- func (o *GetDatacentersDatacenterIDOK) IsRedirect() bool
- func (o *GetDatacentersDatacenterIDOK) IsServerError() bool
- func (o *GetDatacentersDatacenterIDOK) IsSuccess() bool
- func (o *GetDatacentersDatacenterIDOK) String() string
- type GetDatacentersDatacenterIDOKBody
- func (o *GetDatacentersDatacenterIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetDatacentersDatacenterIDOKBody) MarshalBinary() ([]byte, error)
- func (o *GetDatacentersDatacenterIDOKBody) UnmarshalBinary(b []byte) error
- func (o *GetDatacentersDatacenterIDOKBody) Validate(formats strfmt.Registry) error
- type GetDatacentersDatacenterIDParams
- func NewGetDatacentersDatacenterIDParams() *GetDatacentersDatacenterIDParams
- func NewGetDatacentersDatacenterIDParamsWithContext(ctx context.Context) *GetDatacentersDatacenterIDParams
- func NewGetDatacentersDatacenterIDParamsWithHTTPClient(client *http.Client) *GetDatacentersDatacenterIDParams
- func NewGetDatacentersDatacenterIDParamsWithTimeout(timeout time.Duration) *GetDatacentersDatacenterIDParams
- func (o *GetDatacentersDatacenterIDParams) SetContext(ctx context.Context)
- func (o *GetDatacentersDatacenterIDParams) SetDatacenterID(datacenterID strfmt.UUID)
- func (o *GetDatacentersDatacenterIDParams) SetDefaults()
- func (o *GetDatacentersDatacenterIDParams) SetHTTPClient(client *http.Client)
- func (o *GetDatacentersDatacenterIDParams) SetTimeout(timeout time.Duration)
- func (o *GetDatacentersDatacenterIDParams) WithContext(ctx context.Context) *GetDatacentersDatacenterIDParams
- func (o *GetDatacentersDatacenterIDParams) WithDatacenterID(datacenterID strfmt.UUID) *GetDatacentersDatacenterIDParams
- func (o *GetDatacentersDatacenterIDParams) WithDefaults() *GetDatacentersDatacenterIDParams
- func (o *GetDatacentersDatacenterIDParams) WithHTTPClient(client *http.Client) *GetDatacentersDatacenterIDParams
- func (o *GetDatacentersDatacenterIDParams) WithTimeout(timeout time.Duration) *GetDatacentersDatacenterIDParams
- func (o *GetDatacentersDatacenterIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDatacentersDatacenterIDReader
- type GetDatacentersDefault
- func (o *GetDatacentersDefault) Code() int
- func (o *GetDatacentersDefault) Error() string
- func (o *GetDatacentersDefault) GetPayload() *models.Error
- func (o *GetDatacentersDefault) IsClientError() bool
- func (o *GetDatacentersDefault) IsCode(code int) bool
- func (o *GetDatacentersDefault) IsRedirect() bool
- func (o *GetDatacentersDefault) IsServerError() bool
- func (o *GetDatacentersDefault) IsSuccess() bool
- func (o *GetDatacentersDefault) String() string
- type GetDatacentersOK
- func (o *GetDatacentersOK) Code() int
- func (o *GetDatacentersOK) Error() string
- func (o *GetDatacentersOK) GetPayload() *GetDatacentersOKBody
- func (o *GetDatacentersOK) IsClientError() bool
- func (o *GetDatacentersOK) IsCode(code int) bool
- func (o *GetDatacentersOK) IsRedirect() bool
- func (o *GetDatacentersOK) IsServerError() bool
- func (o *GetDatacentersOK) IsSuccess() bool
- func (o *GetDatacentersOK) String() string
- type GetDatacentersOKBody
- type GetDatacentersParams
- func NewGetDatacentersParams() *GetDatacentersParams
- func NewGetDatacentersParamsWithContext(ctx context.Context) *GetDatacentersParams
- func NewGetDatacentersParamsWithHTTPClient(client *http.Client) *GetDatacentersParams
- func NewGetDatacentersParamsWithTimeout(timeout time.Duration) *GetDatacentersParams
- func (o *GetDatacentersParams) SetContext(ctx context.Context)
- func (o *GetDatacentersParams) SetDefaults()
- func (o *GetDatacentersParams) SetHTTPClient(client *http.Client)
- func (o *GetDatacentersParams) SetLimit(limit *int64)
- func (o *GetDatacentersParams) SetMarker(marker *strfmt.UUID)
- func (o *GetDatacentersParams) SetNotTags(notTags []string)
- func (o *GetDatacentersParams) SetNotTagsAny(notTagsAny []string)
- func (o *GetDatacentersParams) SetPageReverse(pageReverse *bool)
- func (o *GetDatacentersParams) SetSort(sort *string)
- func (o *GetDatacentersParams) SetTags(tags []string)
- func (o *GetDatacentersParams) SetTagsAny(tagsAny []string)
- func (o *GetDatacentersParams) SetTimeout(timeout time.Duration)
- func (o *GetDatacentersParams) WithContext(ctx context.Context) *GetDatacentersParams
- func (o *GetDatacentersParams) WithDefaults() *GetDatacentersParams
- func (o *GetDatacentersParams) WithHTTPClient(client *http.Client) *GetDatacentersParams
- func (o *GetDatacentersParams) WithLimit(limit *int64) *GetDatacentersParams
- func (o *GetDatacentersParams) WithMarker(marker *strfmt.UUID) *GetDatacentersParams
- func (o *GetDatacentersParams) WithNotTags(notTags []string) *GetDatacentersParams
- func (o *GetDatacentersParams) WithNotTagsAny(notTagsAny []string) *GetDatacentersParams
- func (o *GetDatacentersParams) WithPageReverse(pageReverse *bool) *GetDatacentersParams
- func (o *GetDatacentersParams) WithSort(sort *string) *GetDatacentersParams
- func (o *GetDatacentersParams) WithTags(tags []string) *GetDatacentersParams
- func (o *GetDatacentersParams) WithTagsAny(tagsAny []string) *GetDatacentersParams
- func (o *GetDatacentersParams) WithTimeout(timeout time.Duration) *GetDatacentersParams
- func (o *GetDatacentersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDatacentersReader
- type PostDatacentersBody
- type PostDatacentersCreated
- func (o *PostDatacentersCreated) Code() int
- func (o *PostDatacentersCreated) Error() string
- func (o *PostDatacentersCreated) GetPayload() *PostDatacentersCreatedBody
- func (o *PostDatacentersCreated) IsClientError() bool
- func (o *PostDatacentersCreated) IsCode(code int) bool
- func (o *PostDatacentersCreated) IsRedirect() bool
- func (o *PostDatacentersCreated) IsServerError() bool
- func (o *PostDatacentersCreated) IsSuccess() bool
- func (o *PostDatacentersCreated) String() string
- type PostDatacentersCreatedBody
- func (o *PostDatacentersCreatedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PostDatacentersCreatedBody) MarshalBinary() ([]byte, error)
- func (o *PostDatacentersCreatedBody) UnmarshalBinary(b []byte) error
- func (o *PostDatacentersCreatedBody) Validate(formats strfmt.Registry) error
- type PostDatacentersDefault
- func (o *PostDatacentersDefault) Code() int
- func (o *PostDatacentersDefault) Error() string
- func (o *PostDatacentersDefault) GetPayload() *models.Error
- func (o *PostDatacentersDefault) IsClientError() bool
- func (o *PostDatacentersDefault) IsCode(code int) bool
- func (o *PostDatacentersDefault) IsRedirect() bool
- func (o *PostDatacentersDefault) IsServerError() bool
- func (o *PostDatacentersDefault) IsSuccess() bool
- func (o *PostDatacentersDefault) String() string
- type PostDatacentersNotFound
- func (o *PostDatacentersNotFound) Code() int
- func (o *PostDatacentersNotFound) Error() string
- func (o *PostDatacentersNotFound) GetPayload() *models.Error
- func (o *PostDatacentersNotFound) IsClientError() bool
- func (o *PostDatacentersNotFound) IsCode(code int) bool
- func (o *PostDatacentersNotFound) IsRedirect() bool
- func (o *PostDatacentersNotFound) IsServerError() bool
- func (o *PostDatacentersNotFound) IsSuccess() bool
- func (o *PostDatacentersNotFound) String() string
- type PostDatacentersParams
- func NewPostDatacentersParams() *PostDatacentersParams
- func NewPostDatacentersParamsWithContext(ctx context.Context) *PostDatacentersParams
- func NewPostDatacentersParamsWithHTTPClient(client *http.Client) *PostDatacentersParams
- func NewPostDatacentersParamsWithTimeout(timeout time.Duration) *PostDatacentersParams
- func (o *PostDatacentersParams) SetContext(ctx context.Context)
- func (o *PostDatacentersParams) SetDatacenter(datacenter PostDatacentersBody)
- func (o *PostDatacentersParams) SetDefaults()
- func (o *PostDatacentersParams) SetHTTPClient(client *http.Client)
- func (o *PostDatacentersParams) SetTimeout(timeout time.Duration)
- func (o *PostDatacentersParams) WithContext(ctx context.Context) *PostDatacentersParams
- func (o *PostDatacentersParams) WithDatacenter(datacenter PostDatacentersBody) *PostDatacentersParams
- func (o *PostDatacentersParams) WithDefaults() *PostDatacentersParams
- func (o *PostDatacentersParams) WithHTTPClient(client *http.Client) *PostDatacentersParams
- func (o *PostDatacentersParams) WithTimeout(timeout time.Duration) *PostDatacentersParams
- func (o *PostDatacentersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostDatacentersReader
- type PutDatacentersDatacenterIDAccepted
- func (o *PutDatacentersDatacenterIDAccepted) Code() int
- func (o *PutDatacentersDatacenterIDAccepted) Error() string
- func (o *PutDatacentersDatacenterIDAccepted) GetPayload() *PutDatacentersDatacenterIDAcceptedBody
- func (o *PutDatacentersDatacenterIDAccepted) IsClientError() bool
- func (o *PutDatacentersDatacenterIDAccepted) IsCode(code int) bool
- func (o *PutDatacentersDatacenterIDAccepted) IsRedirect() bool
- func (o *PutDatacentersDatacenterIDAccepted) IsServerError() bool
- func (o *PutDatacentersDatacenterIDAccepted) IsSuccess() bool
- func (o *PutDatacentersDatacenterIDAccepted) String() string
- type PutDatacentersDatacenterIDAcceptedBody
- func (o *PutDatacentersDatacenterIDAcceptedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PutDatacentersDatacenterIDAcceptedBody) MarshalBinary() ([]byte, error)
- func (o *PutDatacentersDatacenterIDAcceptedBody) UnmarshalBinary(b []byte) error
- func (o *PutDatacentersDatacenterIDAcceptedBody) Validate(formats strfmt.Registry) error
- type PutDatacentersDatacenterIDBody
- func (o *PutDatacentersDatacenterIDBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PutDatacentersDatacenterIDBody) MarshalBinary() ([]byte, error)
- func (o *PutDatacentersDatacenterIDBody) UnmarshalBinary(b []byte) error
- func (o *PutDatacentersDatacenterIDBody) Validate(formats strfmt.Registry) error
- type PutDatacentersDatacenterIDDefault
- func (o *PutDatacentersDatacenterIDDefault) Code() int
- func (o *PutDatacentersDatacenterIDDefault) Error() string
- func (o *PutDatacentersDatacenterIDDefault) GetPayload() *models.Error
- func (o *PutDatacentersDatacenterIDDefault) IsClientError() bool
- func (o *PutDatacentersDatacenterIDDefault) IsCode(code int) bool
- func (o *PutDatacentersDatacenterIDDefault) IsRedirect() bool
- func (o *PutDatacentersDatacenterIDDefault) IsServerError() bool
- func (o *PutDatacentersDatacenterIDDefault) IsSuccess() bool
- func (o *PutDatacentersDatacenterIDDefault) String() string
- type PutDatacentersDatacenterIDNotFound
- func (o *PutDatacentersDatacenterIDNotFound) Code() int
- func (o *PutDatacentersDatacenterIDNotFound) Error() string
- func (o *PutDatacentersDatacenterIDNotFound) GetPayload() *models.Error
- func (o *PutDatacentersDatacenterIDNotFound) IsClientError() bool
- func (o *PutDatacentersDatacenterIDNotFound) IsCode(code int) bool
- func (o *PutDatacentersDatacenterIDNotFound) IsRedirect() bool
- func (o *PutDatacentersDatacenterIDNotFound) IsServerError() bool
- func (o *PutDatacentersDatacenterIDNotFound) IsSuccess() bool
- func (o *PutDatacentersDatacenterIDNotFound) String() string
- type PutDatacentersDatacenterIDParams
- func NewPutDatacentersDatacenterIDParams() *PutDatacentersDatacenterIDParams
- func NewPutDatacentersDatacenterIDParamsWithContext(ctx context.Context) *PutDatacentersDatacenterIDParams
- func NewPutDatacentersDatacenterIDParamsWithHTTPClient(client *http.Client) *PutDatacentersDatacenterIDParams
- func NewPutDatacentersDatacenterIDParamsWithTimeout(timeout time.Duration) *PutDatacentersDatacenterIDParams
- func (o *PutDatacentersDatacenterIDParams) SetContext(ctx context.Context)
- func (o *PutDatacentersDatacenterIDParams) SetDatacenter(datacenter PutDatacentersDatacenterIDBody)
- func (o *PutDatacentersDatacenterIDParams) SetDatacenterID(datacenterID strfmt.UUID)
- func (o *PutDatacentersDatacenterIDParams) SetDefaults()
- func (o *PutDatacentersDatacenterIDParams) SetHTTPClient(client *http.Client)
- func (o *PutDatacentersDatacenterIDParams) SetTimeout(timeout time.Duration)
- func (o *PutDatacentersDatacenterIDParams) WithContext(ctx context.Context) *PutDatacentersDatacenterIDParams
- func (o *PutDatacentersDatacenterIDParams) WithDatacenter(datacenter PutDatacentersDatacenterIDBody) *PutDatacentersDatacenterIDParams
- func (o *PutDatacentersDatacenterIDParams) WithDatacenterID(datacenterID strfmt.UUID) *PutDatacentersDatacenterIDParams
- func (o *PutDatacentersDatacenterIDParams) WithDefaults() *PutDatacentersDatacenterIDParams
- func (o *PutDatacentersDatacenterIDParams) WithHTTPClient(client *http.Client) *PutDatacentersDatacenterIDParams
- func (o *PutDatacentersDatacenterIDParams) WithTimeout(timeout time.Duration) *PutDatacentersDatacenterIDParams
- func (o *PutDatacentersDatacenterIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutDatacentersDatacenterIDReader
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 ¶
func (o *DeleteDatacentersDatacenterIDDefault) Code() int
Code gets the status code for the delete datacenters datacenter ID default response
func (*DeleteDatacentersDatacenterIDDefault) Error ¶
func (o *DeleteDatacentersDatacenterIDDefault) Error() string
func (*DeleteDatacentersDatacenterIDDefault) GetPayload ¶
func (o *DeleteDatacentersDatacenterIDDefault) GetPayload() *models.Error
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 ¶
func (o *DeleteDatacentersDatacenterIDDefault) IsCode(code int) bool
IsCode returns true when this delete datacenters datacenter ID default response a status code equal to that given
func (*DeleteDatacentersDatacenterIDDefault) IsRedirect ¶
func (o *DeleteDatacentersDatacenterIDDefault) IsRedirect() bool
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 ¶
func (o *DeleteDatacentersDatacenterIDDefault) IsSuccess() bool
IsSuccess returns true when this delete datacenters datacenter ID default response has a 2xx status code
func (*DeleteDatacentersDatacenterIDDefault) String ¶
func (o *DeleteDatacentersDatacenterIDDefault) String() 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 ¶
func (o *DeleteDatacentersDatacenterIDNoContent) Code() int
Code gets the status code for the delete datacenters datacenter Id no content response
func (*DeleteDatacentersDatacenterIDNoContent) Error ¶
func (o *DeleteDatacentersDatacenterIDNoContent) Error() string
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 ¶
func (o *DeleteDatacentersDatacenterIDNoContent) IsCode(code int) bool
IsCode returns true when this delete datacenters datacenter Id no content response a status code equal to that given
func (*DeleteDatacentersDatacenterIDNoContent) IsRedirect ¶
func (o *DeleteDatacentersDatacenterIDNoContent) IsRedirect() bool
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 ¶
func (o *DeleteDatacentersDatacenterIDNoContent) IsSuccess() bool
IsSuccess returns true when this delete datacenters datacenter Id no content response has a 2xx status code
func (*DeleteDatacentersDatacenterIDNoContent) String ¶
func (o *DeleteDatacentersDatacenterIDNoContent) String() string
type DeleteDatacentersDatacenterIDNotFound ¶
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 ¶
func (o *DeleteDatacentersDatacenterIDNotFound) Code() int
Code gets the status code for the delete datacenters datacenter Id not found response
func (*DeleteDatacentersDatacenterIDNotFound) Error ¶
func (o *DeleteDatacentersDatacenterIDNotFound) Error() string
func (*DeleteDatacentersDatacenterIDNotFound) GetPayload ¶
func (o *DeleteDatacentersDatacenterIDNotFound) GetPayload() *models.Error
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 ¶
func (o *DeleteDatacentersDatacenterIDNotFound) IsCode(code int) bool
IsCode returns true when this delete datacenters datacenter Id not found response a status code equal to that given
func (*DeleteDatacentersDatacenterIDNotFound) IsRedirect ¶
func (o *DeleteDatacentersDatacenterIDNotFound) IsRedirect() bool
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 ¶
func (o *DeleteDatacentersDatacenterIDNotFound) IsSuccess() bool
IsSuccess returns true when this delete datacenters datacenter Id not found response has a 2xx status code
func (*DeleteDatacentersDatacenterIDNotFound) String ¶
func (o *DeleteDatacentersDatacenterIDNotFound) String() 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 ¶
func (o *DeleteDatacentersDatacenterIDParams) SetContext(ctx context.Context)
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 ¶
func (o *DeleteDatacentersDatacenterIDParams) WithContext(ctx context.Context) *DeleteDatacentersDatacenterIDParams
WithContext adds the context to the delete datacenters datacenter ID params
func (*DeleteDatacentersDatacenterIDParams) WithDatacenterID ¶
func (o *DeleteDatacentersDatacenterIDParams) WithDatacenterID(datacenterID strfmt.UUID) *DeleteDatacentersDatacenterIDParams
WithDatacenterID adds the datacenterID to the delete datacenters datacenter ID params
func (*DeleteDatacentersDatacenterIDParams) WithDefaults ¶
func (o *DeleteDatacentersDatacenterIDParams) WithDefaults() *DeleteDatacentersDatacenterIDParams
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 ¶
func (o *DeleteDatacentersDatacenterIDParams) WithHTTPClient(client *http.Client) *DeleteDatacentersDatacenterIDParams
WithHTTPClient adds the HTTPClient to the delete datacenters datacenter ID params
func (*DeleteDatacentersDatacenterIDParams) WithTimeout ¶
func (o *DeleteDatacentersDatacenterIDParams) WithTimeout(timeout time.Duration) *DeleteDatacentersDatacenterIDParams
WithTimeout adds the timeout to the delete datacenters datacenter ID params
func (*DeleteDatacentersDatacenterIDParams) WriteToRequest ¶
func (o *DeleteDatacentersDatacenterIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 ¶
func (o *GetDatacentersDatacenterIDDefault) Code() int
Code gets the status code for the get datacenters datacenter ID default response
func (*GetDatacentersDatacenterIDDefault) Error ¶
func (o *GetDatacentersDatacenterIDDefault) Error() string
func (*GetDatacentersDatacenterIDDefault) GetPayload ¶
func (o *GetDatacentersDatacenterIDDefault) GetPayload() *models.Error
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 ¶
func (o *GetDatacentersDatacenterIDDefault) String() string
type GetDatacentersDatacenterIDNotFound ¶
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 ¶
func (o *GetDatacentersDatacenterIDNotFound) Code() int
Code gets the status code for the get datacenters datacenter Id not found response
func (*GetDatacentersDatacenterIDNotFound) Error ¶
func (o *GetDatacentersDatacenterIDNotFound) Error() string
func (*GetDatacentersDatacenterIDNotFound) GetPayload ¶
func (o *GetDatacentersDatacenterIDNotFound) GetPayload() *models.Error
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 ¶
func (o *GetDatacentersDatacenterIDNotFound) IsCode(code int) bool
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 ¶
func (o *GetDatacentersDatacenterIDNotFound) IsSuccess() bool
IsSuccess returns true when this get datacenters datacenter Id not found response has a 2xx status code
func (*GetDatacentersDatacenterIDNotFound) String ¶
func (o *GetDatacentersDatacenterIDNotFound) String() 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 ¶
func (o *GetDatacentersDatacenterIDOK) Code() int
Code gets the status code for the get datacenters datacenter Id o k response
func (*GetDatacentersDatacenterIDOK) Error ¶
func (o *GetDatacentersDatacenterIDOK) Error() string
func (*GetDatacentersDatacenterIDOK) GetPayload ¶
func (o *GetDatacentersDatacenterIDOK) GetPayload() *GetDatacentersDatacenterIDOKBody
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 ¶
func (o *GetDatacentersDatacenterIDOK) String() 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
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 ¶
func (o *GetDatacentersDatacenterIDParams) SetContext(ctx context.Context)
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 ¶
func (o *GetDatacentersDatacenterIDParams) WithContext(ctx context.Context) *GetDatacentersDatacenterIDParams
WithContext adds the context to the get datacenters datacenter ID params
func (*GetDatacentersDatacenterIDParams) WithDatacenterID ¶
func (o *GetDatacentersDatacenterIDParams) WithDatacenterID(datacenterID strfmt.UUID) *GetDatacentersDatacenterIDParams
WithDatacenterID adds the datacenterID to the get datacenters datacenter ID params
func (*GetDatacentersDatacenterIDParams) WithDefaults ¶
func (o *GetDatacentersDatacenterIDParams) WithDefaults() *GetDatacentersDatacenterIDParams
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 ¶
func (o *GetDatacentersDatacenterIDParams) WithHTTPClient(client *http.Client) *GetDatacentersDatacenterIDParams
WithHTTPClient adds the HTTPClient to the get datacenters datacenter ID params
func (*GetDatacentersDatacenterIDParams) WithTimeout ¶
func (o *GetDatacentersDatacenterIDParams) WithTimeout(timeout time.Duration) *GetDatacentersDatacenterIDParams
WithTimeout adds the timeout to the get datacenters datacenter ID params
func (*GetDatacentersDatacenterIDParams) WriteToRequest ¶
func (o *GetDatacentersDatacenterIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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
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 ¶
func (o *GetDatacentersParams) WithContext(ctx context.Context) *GetDatacentersParams
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 ¶
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
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 (o *PostDatacentersCreated) GetPayload() *PostDatacentersCreatedBody
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
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 ¶
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 ¶
func (o *PostDatacentersParams) WithContext(ctx context.Context) *PostDatacentersParams
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 ¶
func (o *PutDatacentersDatacenterIDAccepted) Code() int
Code gets the status code for the put datacenters datacenter Id accepted response
func (*PutDatacentersDatacenterIDAccepted) Error ¶
func (o *PutDatacentersDatacenterIDAccepted) Error() string
func (*PutDatacentersDatacenterIDAccepted) GetPayload ¶
func (o *PutDatacentersDatacenterIDAccepted) GetPayload() *PutDatacentersDatacenterIDAcceptedBody
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 ¶
func (o *PutDatacentersDatacenterIDAccepted) IsCode(code int) bool
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 ¶
func (o *PutDatacentersDatacenterIDAccepted) IsSuccess() bool
IsSuccess returns true when this put datacenters datacenter Id accepted response has a 2xx status code
func (*PutDatacentersDatacenterIDAccepted) String ¶
func (o *PutDatacentersDatacenterIDAccepted) String() 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 ¶
func (o *PutDatacentersDatacenterIDAcceptedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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
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 ¶
func (o *PutDatacentersDatacenterIDDefault) Code() int
Code gets the status code for the put datacenters datacenter ID default response
func (*PutDatacentersDatacenterIDDefault) Error ¶
func (o *PutDatacentersDatacenterIDDefault) Error() string
func (*PutDatacentersDatacenterIDDefault) GetPayload ¶
func (o *PutDatacentersDatacenterIDDefault) GetPayload() *models.Error
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 ¶
func (o *PutDatacentersDatacenterIDDefault) String() string
type PutDatacentersDatacenterIDNotFound ¶
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 ¶
func (o *PutDatacentersDatacenterIDNotFound) Code() int
Code gets the status code for the put datacenters datacenter Id not found response
func (*PutDatacentersDatacenterIDNotFound) Error ¶
func (o *PutDatacentersDatacenterIDNotFound) Error() string
func (*PutDatacentersDatacenterIDNotFound) GetPayload ¶
func (o *PutDatacentersDatacenterIDNotFound) GetPayload() *models.Error
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 ¶
func (o *PutDatacentersDatacenterIDNotFound) IsCode(code int) bool
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 ¶
func (o *PutDatacentersDatacenterIDNotFound) IsSuccess() bool
IsSuccess returns true when this put datacenters datacenter Id not found response has a 2xx status code
func (*PutDatacentersDatacenterIDNotFound) String ¶
func (o *PutDatacentersDatacenterIDNotFound) String() 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 ¶
func (o *PutDatacentersDatacenterIDParams) SetContext(ctx context.Context)
SetContext adds the context to the put datacenters datacenter ID params
func (*PutDatacentersDatacenterIDParams) SetDatacenter ¶
func (o *PutDatacentersDatacenterIDParams) SetDatacenter(datacenter PutDatacentersDatacenterIDBody)
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 ¶
func (o *PutDatacentersDatacenterIDParams) WithContext(ctx context.Context) *PutDatacentersDatacenterIDParams
WithContext adds the context to the put datacenters datacenter ID params
func (*PutDatacentersDatacenterIDParams) WithDatacenter ¶
func (o *PutDatacentersDatacenterIDParams) WithDatacenter(datacenter PutDatacentersDatacenterIDBody) *PutDatacentersDatacenterIDParams
WithDatacenter adds the datacenter to the put datacenters datacenter ID params
func (*PutDatacentersDatacenterIDParams) WithDatacenterID ¶
func (o *PutDatacentersDatacenterIDParams) WithDatacenterID(datacenterID strfmt.UUID) *PutDatacentersDatacenterIDParams
WithDatacenterID adds the datacenterID to the put datacenters datacenter ID params
func (*PutDatacentersDatacenterIDParams) WithDefaults ¶
func (o *PutDatacentersDatacenterIDParams) WithDefaults() *PutDatacentersDatacenterIDParams
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 ¶
func (o *PutDatacentersDatacenterIDParams) WithHTTPClient(client *http.Client) *PutDatacentersDatacenterIDParams
WithHTTPClient adds the HTTPClient to the put datacenters datacenter ID params
func (*PutDatacentersDatacenterIDParams) WithTimeout ¶
func (o *PutDatacentersDatacenterIDParams) WithTimeout(timeout time.Duration) *PutDatacentersDatacenterIDParams
WithTimeout adds the timeout to the put datacenters datacenter ID params
func (*PutDatacentersDatacenterIDParams) WriteToRequest ¶
func (o *PutDatacentersDatacenterIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- datacenters_client.go
- delete_datacenters_datacenter_id_parameters.go
- delete_datacenters_datacenter_id_responses.go
- get_datacenters_datacenter_id_parameters.go
- get_datacenters_datacenter_id_responses.go
- get_datacenters_parameters.go
- get_datacenters_responses.go
- post_datacenters_parameters.go
- post_datacenters_responses.go
- put_datacenters_datacenter_id_parameters.go
- put_datacenters_datacenter_id_responses.go