datacenter

package
v2.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for datacenter API

func (*Client) CreateDatacenter

func (a *Client) CreateDatacenter(params *CreateDatacenterParams, opts ...ClientOption) (*CreateDatacenterOK, error)

CreateDatacenter create datacenter API

func (*Client) DeleteDatacenter

func (a *Client) DeleteDatacenter(params *DeleteDatacenterParams, opts ...ClientOption) (*DeleteDatacenterOK, error)

DeleteDatacenter delete datacenter API

func (*Client) GetDatacenters

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

GetDatacenters get datacenters API

func (*Client) GetDatacentersConnection

func (a *Client) GetDatacentersConnection(params *GetDatacentersConnectionParams, opts ...ClientOption) (*GetDatacentersConnectionOK, error)

GetDatacentersConnection get datacenters connection API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateDatacenter

func (a *Client) UpdateDatacenter(params *UpdateDatacenterParams, opts ...ClientOption) (*UpdateDatacenterOK, error)

UpdateDatacenter update datacenter API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateDatacenter(params *CreateDatacenterParams, opts ...ClientOption) (*CreateDatacenterOK, error)

	DeleteDatacenter(params *DeleteDatacenterParams, opts ...ClientOption) (*DeleteDatacenterOK, error)

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

	GetDatacentersConnection(params *GetDatacentersConnectionParams, opts ...ClientOption) (*GetDatacentersConnectionOK, error)

	UpdateDatacenter(params *UpdateDatacenterParams, opts ...ClientOption) (*UpdateDatacenterOK, 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 datacenter API client.

type CreateDatacenterBadRequest

type CreateDatacenterBadRequest struct {
	Payload *models.ErrorBody
}
CreateDatacenterBadRequest describes a response with status code 400, with default header values.

Bad request

func NewCreateDatacenterBadRequest

func NewCreateDatacenterBadRequest() *CreateDatacenterBadRequest

NewCreateDatacenterBadRequest creates a CreateDatacenterBadRequest with default headers values

func (*CreateDatacenterBadRequest) Error

func (*CreateDatacenterBadRequest) GetPayload

func (o *CreateDatacenterBadRequest) GetPayload() *models.ErrorBody

type CreateDatacenterInternalServerError

type CreateDatacenterInternalServerError struct {
	Payload *models.ErrorBody
}
CreateDatacenterInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCreateDatacenterInternalServerError

func NewCreateDatacenterInternalServerError() *CreateDatacenterInternalServerError

NewCreateDatacenterInternalServerError creates a CreateDatacenterInternalServerError with default headers values

func (*CreateDatacenterInternalServerError) Error

func (*CreateDatacenterInternalServerError) GetPayload

type CreateDatacenterNotFound

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

Not found

func NewCreateDatacenterNotFound

func NewCreateDatacenterNotFound() *CreateDatacenterNotFound

NewCreateDatacenterNotFound creates a CreateDatacenterNotFound with default headers values

func (*CreateDatacenterNotFound) Error

func (o *CreateDatacenterNotFound) Error() string

func (*CreateDatacenterNotFound) GetPayload

func (o *CreateDatacenterNotFound) GetPayload() *models.ErrorBody

type CreateDatacenterOK

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

Ok

func NewCreateDatacenterOK

func NewCreateDatacenterOK() *CreateDatacenterOK

NewCreateDatacenterOK creates a CreateDatacenterOK with default headers values

func (*CreateDatacenterOK) Error

func (o *CreateDatacenterOK) Error() string

func (*CreateDatacenterOK) GetPayload

func (o *CreateDatacenterOK) GetPayload() []*models.WithTaskDatacenter

type CreateDatacenterParams

type CreateDatacenterParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody []*models.DatacenterCreationParams

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

CreateDatacenterParams contains all the parameters to send to the API endpoint

for the create datacenter operation.

Typically these are written to a http.Request.

func NewCreateDatacenterParams

func NewCreateDatacenterParams() *CreateDatacenterParams

NewCreateDatacenterParams creates a new CreateDatacenterParams 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 NewCreateDatacenterParamsWithContext

func NewCreateDatacenterParamsWithContext(ctx context.Context) *CreateDatacenterParams

NewCreateDatacenterParamsWithContext creates a new CreateDatacenterParams object with the ability to set a context for a request.

func NewCreateDatacenterParamsWithHTTPClient

func NewCreateDatacenterParamsWithHTTPClient(client *http.Client) *CreateDatacenterParams

NewCreateDatacenterParamsWithHTTPClient creates a new CreateDatacenterParams object with the ability to set a custom HTTPClient for a request.

func NewCreateDatacenterParamsWithTimeout

func NewCreateDatacenterParamsWithTimeout(timeout time.Duration) *CreateDatacenterParams

NewCreateDatacenterParamsWithTimeout creates a new CreateDatacenterParams object with the ability to set a timeout on a request.

func (*CreateDatacenterParams) SetContentLanguage

func (o *CreateDatacenterParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the create datacenter params

func (*CreateDatacenterParams) SetContext

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

SetContext adds the context to the create datacenter params

func (*CreateDatacenterParams) SetDefaults

func (o *CreateDatacenterParams) SetDefaults()

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

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

func (*CreateDatacenterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create datacenter params

func (*CreateDatacenterParams) SetRequestBody

func (o *CreateDatacenterParams) SetRequestBody(requestBody []*models.DatacenterCreationParams)

SetRequestBody adds the requestBody to the create datacenter params

func (*CreateDatacenterParams) SetTimeout

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

SetTimeout adds the timeout to the create datacenter params

func (*CreateDatacenterParams) WithContentLanguage

func (o *CreateDatacenterParams) WithContentLanguage(contentLanguage *string) *CreateDatacenterParams

WithContentLanguage adds the contentLanguage to the create datacenter params

func (*CreateDatacenterParams) WithContext

WithContext adds the context to the create datacenter params

func (*CreateDatacenterParams) WithDefaults

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

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

func (*CreateDatacenterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create datacenter params

func (*CreateDatacenterParams) WithRequestBody

WithRequestBody adds the requestBody to the create datacenter params

func (*CreateDatacenterParams) WithTimeout

WithTimeout adds the timeout to the create datacenter params

func (*CreateDatacenterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateDatacenterReader

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

CreateDatacenterReader is a Reader for the CreateDatacenter structure.

func (*CreateDatacenterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteDatacenterBadRequest

type DeleteDatacenterBadRequest struct {
	Payload *models.ErrorBody
}
DeleteDatacenterBadRequest describes a response with status code 400, with default header values.

Bad request

func NewDeleteDatacenterBadRequest

func NewDeleteDatacenterBadRequest() *DeleteDatacenterBadRequest

NewDeleteDatacenterBadRequest creates a DeleteDatacenterBadRequest with default headers values

func (*DeleteDatacenterBadRequest) Error

func (*DeleteDatacenterBadRequest) GetPayload

func (o *DeleteDatacenterBadRequest) GetPayload() *models.ErrorBody

type DeleteDatacenterInternalServerError

type DeleteDatacenterInternalServerError struct {
	Payload *models.ErrorBody
}
DeleteDatacenterInternalServerError describes a response with status code 500, with default header values.

Server error

func NewDeleteDatacenterInternalServerError

func NewDeleteDatacenterInternalServerError() *DeleteDatacenterInternalServerError

NewDeleteDatacenterInternalServerError creates a DeleteDatacenterInternalServerError with default headers values

func (*DeleteDatacenterInternalServerError) Error

func (*DeleteDatacenterInternalServerError) GetPayload

type DeleteDatacenterNotFound

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

Not found

func NewDeleteDatacenterNotFound

func NewDeleteDatacenterNotFound() *DeleteDatacenterNotFound

NewDeleteDatacenterNotFound creates a DeleteDatacenterNotFound with default headers values

func (*DeleteDatacenterNotFound) Error

func (o *DeleteDatacenterNotFound) Error() string

func (*DeleteDatacenterNotFound) GetPayload

func (o *DeleteDatacenterNotFound) GetPayload() *models.ErrorBody

type DeleteDatacenterOK

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

Ok

func NewDeleteDatacenterOK

func NewDeleteDatacenterOK() *DeleteDatacenterOK

NewDeleteDatacenterOK creates a DeleteDatacenterOK with default headers values

func (*DeleteDatacenterOK) Error

func (o *DeleteDatacenterOK) Error() string

func (*DeleteDatacenterOK) GetPayload

type DeleteDatacenterParams

type DeleteDatacenterParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.DatacenterDeletionParams

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

DeleteDatacenterParams contains all the parameters to send to the API endpoint

for the delete datacenter operation.

Typically these are written to a http.Request.

func NewDeleteDatacenterParams

func NewDeleteDatacenterParams() *DeleteDatacenterParams

NewDeleteDatacenterParams creates a new DeleteDatacenterParams 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 NewDeleteDatacenterParamsWithContext

func NewDeleteDatacenterParamsWithContext(ctx context.Context) *DeleteDatacenterParams

NewDeleteDatacenterParamsWithContext creates a new DeleteDatacenterParams object with the ability to set a context for a request.

func NewDeleteDatacenterParamsWithHTTPClient

func NewDeleteDatacenterParamsWithHTTPClient(client *http.Client) *DeleteDatacenterParams

NewDeleteDatacenterParamsWithHTTPClient creates a new DeleteDatacenterParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteDatacenterParamsWithTimeout

func NewDeleteDatacenterParamsWithTimeout(timeout time.Duration) *DeleteDatacenterParams

NewDeleteDatacenterParamsWithTimeout creates a new DeleteDatacenterParams object with the ability to set a timeout on a request.

func (*DeleteDatacenterParams) SetContentLanguage

func (o *DeleteDatacenterParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the delete datacenter params

func (*DeleteDatacenterParams) SetContext

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

SetContext adds the context to the delete datacenter params

func (*DeleteDatacenterParams) SetDefaults

func (o *DeleteDatacenterParams) SetDefaults()

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

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

func (*DeleteDatacenterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete datacenter params

func (*DeleteDatacenterParams) SetRequestBody

func (o *DeleteDatacenterParams) SetRequestBody(requestBody *models.DatacenterDeletionParams)

SetRequestBody adds the requestBody to the delete datacenter params

func (*DeleteDatacenterParams) SetTimeout

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

SetTimeout adds the timeout to the delete datacenter params

func (*DeleteDatacenterParams) WithContentLanguage

func (o *DeleteDatacenterParams) WithContentLanguage(contentLanguage *string) *DeleteDatacenterParams

WithContentLanguage adds the contentLanguage to the delete datacenter params

func (*DeleteDatacenterParams) WithContext

WithContext adds the context to the delete datacenter params

func (*DeleteDatacenterParams) WithDefaults

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

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

func (*DeleteDatacenterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete datacenter params

func (*DeleteDatacenterParams) WithRequestBody

WithRequestBody adds the requestBody to the delete datacenter params

func (*DeleteDatacenterParams) WithTimeout

WithTimeout adds the timeout to the delete datacenter params

func (*DeleteDatacenterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteDatacenterReader

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

DeleteDatacenterReader is a Reader for the DeleteDatacenter structure.

func (*DeleteDatacenterReader) ReadResponse

func (o *DeleteDatacenterReader) 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.ErrorBody
}
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) Error

func (o *GetDatacentersBadRequest) Error() string

func (*GetDatacentersBadRequest) GetPayload

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

type GetDatacentersConnectionBadRequest

type GetDatacentersConnectionBadRequest struct {
	Payload *models.ErrorBody
}
GetDatacentersConnectionBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetDatacentersConnectionBadRequest

func NewGetDatacentersConnectionBadRequest() *GetDatacentersConnectionBadRequest

NewGetDatacentersConnectionBadRequest creates a GetDatacentersConnectionBadRequest with default headers values

func (*GetDatacentersConnectionBadRequest) Error

func (*GetDatacentersConnectionBadRequest) GetPayload

type GetDatacentersConnectionInternalServerError

type GetDatacentersConnectionInternalServerError struct {
	Payload *models.ErrorBody
}
GetDatacentersConnectionInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetDatacentersConnectionInternalServerError

func NewGetDatacentersConnectionInternalServerError() *GetDatacentersConnectionInternalServerError

NewGetDatacentersConnectionInternalServerError creates a GetDatacentersConnectionInternalServerError with default headers values

func (*GetDatacentersConnectionInternalServerError) Error

func (*GetDatacentersConnectionInternalServerError) GetPayload

type GetDatacentersConnectionNotFound

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

Not found

func NewGetDatacentersConnectionNotFound

func NewGetDatacentersConnectionNotFound() *GetDatacentersConnectionNotFound

NewGetDatacentersConnectionNotFound creates a GetDatacentersConnectionNotFound with default headers values

func (*GetDatacentersConnectionNotFound) Error

func (*GetDatacentersConnectionNotFound) GetPayload

type GetDatacentersConnectionOK

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

Ok

func NewGetDatacentersConnectionOK

func NewGetDatacentersConnectionOK() *GetDatacentersConnectionOK

NewGetDatacentersConnectionOK creates a GetDatacentersConnectionOK with default headers values

func (*GetDatacentersConnectionOK) Error

func (*GetDatacentersConnectionOK) GetPayload

type GetDatacentersConnectionParams

type GetDatacentersConnectionParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetDatacentersConnectionRequestBody

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

GetDatacentersConnectionParams contains all the parameters to send to the API endpoint

for the get datacenters connection operation.

Typically these are written to a http.Request.

func NewGetDatacentersConnectionParams

func NewGetDatacentersConnectionParams() *GetDatacentersConnectionParams

NewGetDatacentersConnectionParams creates a new GetDatacentersConnectionParams 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 NewGetDatacentersConnectionParamsWithContext

func NewGetDatacentersConnectionParamsWithContext(ctx context.Context) *GetDatacentersConnectionParams

NewGetDatacentersConnectionParamsWithContext creates a new GetDatacentersConnectionParams object with the ability to set a context for a request.

func NewGetDatacentersConnectionParamsWithHTTPClient

func NewGetDatacentersConnectionParamsWithHTTPClient(client *http.Client) *GetDatacentersConnectionParams

NewGetDatacentersConnectionParamsWithHTTPClient creates a new GetDatacentersConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetDatacentersConnectionParamsWithTimeout

func NewGetDatacentersConnectionParamsWithTimeout(timeout time.Duration) *GetDatacentersConnectionParams

NewGetDatacentersConnectionParamsWithTimeout creates a new GetDatacentersConnectionParams object with the ability to set a timeout on a request.

func (*GetDatacentersConnectionParams) SetContentLanguage

func (o *GetDatacentersConnectionParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get datacenters connection params

func (*GetDatacentersConnectionParams) SetContext

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

SetContext adds the context to the get datacenters connection params

func (*GetDatacentersConnectionParams) SetDefaults

func (o *GetDatacentersConnectionParams) SetDefaults()

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

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

func (*GetDatacentersConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get datacenters connection params

func (*GetDatacentersConnectionParams) SetRequestBody

SetRequestBody adds the requestBody to the get datacenters connection params

func (*GetDatacentersConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get datacenters connection params

func (*GetDatacentersConnectionParams) WithContentLanguage

func (o *GetDatacentersConnectionParams) WithContentLanguage(contentLanguage *string) *GetDatacentersConnectionParams

WithContentLanguage adds the contentLanguage to the get datacenters connection params

func (*GetDatacentersConnectionParams) WithContext

WithContext adds the context to the get datacenters connection params

func (*GetDatacentersConnectionParams) WithDefaults

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

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

func (*GetDatacentersConnectionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get datacenters connection params

func (*GetDatacentersConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get datacenters connection params

func (*GetDatacentersConnectionParams) WithTimeout

WithTimeout adds the timeout to the get datacenters connection params

func (*GetDatacentersConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDatacentersConnectionReader

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

GetDatacentersConnectionReader is a Reader for the GetDatacentersConnection structure.

func (*GetDatacentersConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDatacentersInternalServerError

type GetDatacentersInternalServerError struct {
	Payload *models.ErrorBody
}
GetDatacentersInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetDatacentersInternalServerError

func NewGetDatacentersInternalServerError() *GetDatacentersInternalServerError

NewGetDatacentersInternalServerError creates a GetDatacentersInternalServerError with default headers values

func (*GetDatacentersInternalServerError) Error

func (*GetDatacentersInternalServerError) GetPayload

type GetDatacentersNotFound

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

Not found

func NewGetDatacentersNotFound

func NewGetDatacentersNotFound() *GetDatacentersNotFound

NewGetDatacentersNotFound creates a GetDatacentersNotFound with default headers values

func (*GetDatacentersNotFound) Error

func (o *GetDatacentersNotFound) Error() string

func (*GetDatacentersNotFound) GetPayload

func (o *GetDatacentersNotFound) GetPayload() *models.ErrorBody

type GetDatacentersOK

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

Ok

func NewGetDatacentersOK

func NewGetDatacentersOK() *GetDatacentersOK

NewGetDatacentersOK creates a GetDatacentersOK with default headers values

func (*GetDatacentersOK) Error

func (o *GetDatacentersOK) Error() string

func (*GetDatacentersOK) GetPayload

func (o *GetDatacentersOK) GetPayload() []*models.Datacenter

type GetDatacentersParams

type GetDatacentersParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetDatacentersRequestBody

	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) SetContentLanguage

func (o *GetDatacentersParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get datacenters params

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) SetRequestBody

func (o *GetDatacentersParams) SetRequestBody(requestBody *models.GetDatacentersRequestBody)

SetRequestBody adds the requestBody 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) WithContentLanguage

func (o *GetDatacentersParams) WithContentLanguage(contentLanguage *string) *GetDatacentersParams

WithContentLanguage adds the contentLanguage 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) WithRequestBody

WithRequestBody adds the requestBody 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 UpdateDatacenterBadRequest

type UpdateDatacenterBadRequest struct {
	Payload *models.ErrorBody
}
UpdateDatacenterBadRequest describes a response with status code 400, with default header values.

Bad request

func NewUpdateDatacenterBadRequest

func NewUpdateDatacenterBadRequest() *UpdateDatacenterBadRequest

NewUpdateDatacenterBadRequest creates a UpdateDatacenterBadRequest with default headers values

func (*UpdateDatacenterBadRequest) Error

func (*UpdateDatacenterBadRequest) GetPayload

func (o *UpdateDatacenterBadRequest) GetPayload() *models.ErrorBody

type UpdateDatacenterInternalServerError

type UpdateDatacenterInternalServerError struct {
	Payload *models.ErrorBody
}
UpdateDatacenterInternalServerError describes a response with status code 500, with default header values.

Server error

func NewUpdateDatacenterInternalServerError

func NewUpdateDatacenterInternalServerError() *UpdateDatacenterInternalServerError

NewUpdateDatacenterInternalServerError creates a UpdateDatacenterInternalServerError with default headers values

func (*UpdateDatacenterInternalServerError) Error

func (*UpdateDatacenterInternalServerError) GetPayload

type UpdateDatacenterNotFound

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

Not found

func NewUpdateDatacenterNotFound

func NewUpdateDatacenterNotFound() *UpdateDatacenterNotFound

NewUpdateDatacenterNotFound creates a UpdateDatacenterNotFound with default headers values

func (*UpdateDatacenterNotFound) Error

func (o *UpdateDatacenterNotFound) Error() string

func (*UpdateDatacenterNotFound) GetPayload

func (o *UpdateDatacenterNotFound) GetPayload() *models.ErrorBody

type UpdateDatacenterOK

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

Ok

func NewUpdateDatacenterOK

func NewUpdateDatacenterOK() *UpdateDatacenterOK

NewUpdateDatacenterOK creates a UpdateDatacenterOK with default headers values

func (*UpdateDatacenterOK) Error

func (o *UpdateDatacenterOK) Error() string

func (*UpdateDatacenterOK) GetPayload

func (o *UpdateDatacenterOK) GetPayload() []*models.WithTaskDatacenter

type UpdateDatacenterParams

type UpdateDatacenterParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.DatacenterUpdationParams

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

UpdateDatacenterParams contains all the parameters to send to the API endpoint

for the update datacenter operation.

Typically these are written to a http.Request.

func NewUpdateDatacenterParams

func NewUpdateDatacenterParams() *UpdateDatacenterParams

NewUpdateDatacenterParams creates a new UpdateDatacenterParams 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 NewUpdateDatacenterParamsWithContext

func NewUpdateDatacenterParamsWithContext(ctx context.Context) *UpdateDatacenterParams

NewUpdateDatacenterParamsWithContext creates a new UpdateDatacenterParams object with the ability to set a context for a request.

func NewUpdateDatacenterParamsWithHTTPClient

func NewUpdateDatacenterParamsWithHTTPClient(client *http.Client) *UpdateDatacenterParams

NewUpdateDatacenterParamsWithHTTPClient creates a new UpdateDatacenterParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateDatacenterParamsWithTimeout

func NewUpdateDatacenterParamsWithTimeout(timeout time.Duration) *UpdateDatacenterParams

NewUpdateDatacenterParamsWithTimeout creates a new UpdateDatacenterParams object with the ability to set a timeout on a request.

func (*UpdateDatacenterParams) SetContentLanguage

func (o *UpdateDatacenterParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the update datacenter params

func (*UpdateDatacenterParams) SetContext

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

SetContext adds the context to the update datacenter params

func (*UpdateDatacenterParams) SetDefaults

func (o *UpdateDatacenterParams) SetDefaults()

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

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

func (*UpdateDatacenterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update datacenter params

func (*UpdateDatacenterParams) SetRequestBody

func (o *UpdateDatacenterParams) SetRequestBody(requestBody *models.DatacenterUpdationParams)

SetRequestBody adds the requestBody to the update datacenter params

func (*UpdateDatacenterParams) SetTimeout

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

SetTimeout adds the timeout to the update datacenter params

func (*UpdateDatacenterParams) WithContentLanguage

func (o *UpdateDatacenterParams) WithContentLanguage(contentLanguage *string) *UpdateDatacenterParams

WithContentLanguage adds the contentLanguage to the update datacenter params

func (*UpdateDatacenterParams) WithContext

WithContext adds the context to the update datacenter params

func (*UpdateDatacenterParams) WithDefaults

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

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

func (*UpdateDatacenterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update datacenter params

func (*UpdateDatacenterParams) WithRequestBody

WithRequestBody adds the requestBody to the update datacenter params

func (*UpdateDatacenterParams) WithTimeout

WithTimeout adds the timeout to the update datacenter params

func (*UpdateDatacenterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateDatacenterReader

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

UpdateDatacenterReader is a Reader for the UpdateDatacenter structure.

func (*UpdateDatacenterReader) ReadResponse

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