p_cloud_shared_processor_pools

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 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 p cloud shared processor pools API

func (*Client) PcloudSharedprocessorpoolsDelete

func (a *Client) PcloudSharedprocessorpoolsDelete(params *PcloudSharedprocessorpoolsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudSharedprocessorpoolsDeleteOK, error)

PcloudSharedprocessorpoolsDelete deletes a shared processor pool from a cloud instance

func (*Client) PcloudSharedprocessorpoolsPost

func (a *Client) PcloudSharedprocessorpoolsPost(params *PcloudSharedprocessorpoolsPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudSharedprocessorpoolsPostOK, error)

PcloudSharedprocessorpoolsPost creates a new shared processor pool

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 {
	PcloudSharedprocessorpoolsDelete(params *PcloudSharedprocessorpoolsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudSharedprocessorpoolsDeleteOK, error)

	PcloudSharedprocessorpoolsPost(params *PcloudSharedprocessorpoolsPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudSharedprocessorpoolsPostOK, 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 p cloud shared processor pools API client.

type PcloudSharedprocessorpoolsDeleteBadRequest

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

Bad Request

func NewPcloudSharedprocessorpoolsDeleteBadRequest

func NewPcloudSharedprocessorpoolsDeleteBadRequest() *PcloudSharedprocessorpoolsDeleteBadRequest

NewPcloudSharedprocessorpoolsDeleteBadRequest creates a PcloudSharedprocessorpoolsDeleteBadRequest with default headers values

func (*PcloudSharedprocessorpoolsDeleteBadRequest) Error

func (*PcloudSharedprocessorpoolsDeleteBadRequest) GetPayload

type PcloudSharedprocessorpoolsDeleteConflict

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

Conflict

func NewPcloudSharedprocessorpoolsDeleteConflict

func NewPcloudSharedprocessorpoolsDeleteConflict() *PcloudSharedprocessorpoolsDeleteConflict

NewPcloudSharedprocessorpoolsDeleteConflict creates a PcloudSharedprocessorpoolsDeleteConflict with default headers values

func (*PcloudSharedprocessorpoolsDeleteConflict) Error

func (*PcloudSharedprocessorpoolsDeleteConflict) GetPayload

type PcloudSharedprocessorpoolsDeleteInternalServerError

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

Internal Server Error

func NewPcloudSharedprocessorpoolsDeleteInternalServerError

func NewPcloudSharedprocessorpoolsDeleteInternalServerError() *PcloudSharedprocessorpoolsDeleteInternalServerError

NewPcloudSharedprocessorpoolsDeleteInternalServerError creates a PcloudSharedprocessorpoolsDeleteInternalServerError with default headers values

func (*PcloudSharedprocessorpoolsDeleteInternalServerError) Error

func (*PcloudSharedprocessorpoolsDeleteInternalServerError) GetPayload

type PcloudSharedprocessorpoolsDeleteOK

type PcloudSharedprocessorpoolsDeleteOK struct {
	Payload models.Object
}
PcloudSharedprocessorpoolsDeleteOK describes a response with status code 200, with default header values.

OK

func NewPcloudSharedprocessorpoolsDeleteOK

func NewPcloudSharedprocessorpoolsDeleteOK() *PcloudSharedprocessorpoolsDeleteOK

NewPcloudSharedprocessorpoolsDeleteOK creates a PcloudSharedprocessorpoolsDeleteOK with default headers values

func (*PcloudSharedprocessorpoolsDeleteOK) Error

func (*PcloudSharedprocessorpoolsDeleteOK) GetPayload

type PcloudSharedprocessorpoolsDeleteParams

type PcloudSharedprocessorpoolsDeleteParams struct {

	/* CloudInstanceID.

	   Cloud Instance ID of a PCloud Instance
	*/
	CloudInstanceID string

	/* SharedProcessorPoolID.

	   Shared Processor Pool ID
	*/
	SharedProcessorPoolID string

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

PcloudSharedprocessorpoolsDeleteParams contains all the parameters to send to the API endpoint

for the pcloud sharedprocessorpools delete operation.

Typically these are written to a http.Request.

func NewPcloudSharedprocessorpoolsDeleteParams

func NewPcloudSharedprocessorpoolsDeleteParams() *PcloudSharedprocessorpoolsDeleteParams

NewPcloudSharedprocessorpoolsDeleteParams creates a new PcloudSharedprocessorpoolsDeleteParams 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 NewPcloudSharedprocessorpoolsDeleteParamsWithContext

func NewPcloudSharedprocessorpoolsDeleteParamsWithContext(ctx context.Context) *PcloudSharedprocessorpoolsDeleteParams

NewPcloudSharedprocessorpoolsDeleteParamsWithContext creates a new PcloudSharedprocessorpoolsDeleteParams object with the ability to set a context for a request.

func NewPcloudSharedprocessorpoolsDeleteParamsWithHTTPClient

func NewPcloudSharedprocessorpoolsDeleteParamsWithHTTPClient(client *http.Client) *PcloudSharedprocessorpoolsDeleteParams

NewPcloudSharedprocessorpoolsDeleteParamsWithHTTPClient creates a new PcloudSharedprocessorpoolsDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewPcloudSharedprocessorpoolsDeleteParamsWithTimeout

func NewPcloudSharedprocessorpoolsDeleteParamsWithTimeout(timeout time.Duration) *PcloudSharedprocessorpoolsDeleteParams

NewPcloudSharedprocessorpoolsDeleteParamsWithTimeout creates a new PcloudSharedprocessorpoolsDeleteParams object with the ability to set a timeout on a request.

func (*PcloudSharedprocessorpoolsDeleteParams) SetCloudInstanceID

func (o *PcloudSharedprocessorpoolsDeleteParams) SetCloudInstanceID(cloudInstanceID string)

SetCloudInstanceID adds the cloudInstanceId to the pcloud sharedprocessorpools delete params

func (*PcloudSharedprocessorpoolsDeleteParams) SetContext

SetContext adds the context to the pcloud sharedprocessorpools delete params

func (*PcloudSharedprocessorpoolsDeleteParams) SetDefaults

func (o *PcloudSharedprocessorpoolsDeleteParams) SetDefaults()

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

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

func (*PcloudSharedprocessorpoolsDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pcloud sharedprocessorpools delete params

func (*PcloudSharedprocessorpoolsDeleteParams) SetSharedProcessorPoolID

func (o *PcloudSharedprocessorpoolsDeleteParams) SetSharedProcessorPoolID(sharedProcessorPoolID string)

SetSharedProcessorPoolID adds the sharedProcessorPoolId to the pcloud sharedprocessorpools delete params

func (*PcloudSharedprocessorpoolsDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the pcloud sharedprocessorpools delete params

func (*PcloudSharedprocessorpoolsDeleteParams) WithCloudInstanceID

WithCloudInstanceID adds the cloudInstanceID to the pcloud sharedprocessorpools delete params

func (*PcloudSharedprocessorpoolsDeleteParams) WithContext

WithContext adds the context to the pcloud sharedprocessorpools delete params

func (*PcloudSharedprocessorpoolsDeleteParams) WithDefaults

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

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

func (*PcloudSharedprocessorpoolsDeleteParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the pcloud sharedprocessorpools delete params

func (*PcloudSharedprocessorpoolsDeleteParams) WithSharedProcessorPoolID

func (o *PcloudSharedprocessorpoolsDeleteParams) WithSharedProcessorPoolID(sharedProcessorPoolID string) *PcloudSharedprocessorpoolsDeleteParams

WithSharedProcessorPoolID adds the sharedProcessorPoolID to the pcloud sharedprocessorpools delete params

func (*PcloudSharedprocessorpoolsDeleteParams) WithTimeout

WithTimeout adds the timeout to the pcloud sharedprocessorpools delete params

func (*PcloudSharedprocessorpoolsDeleteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PcloudSharedprocessorpoolsDeleteReader

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

PcloudSharedprocessorpoolsDeleteReader is a Reader for the PcloudSharedprocessorpoolsDelete structure.

func (*PcloudSharedprocessorpoolsDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PcloudSharedprocessorpoolsDeleteUnauthorized

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

Unauthorized

func NewPcloudSharedprocessorpoolsDeleteUnauthorized

func NewPcloudSharedprocessorpoolsDeleteUnauthorized() *PcloudSharedprocessorpoolsDeleteUnauthorized

NewPcloudSharedprocessorpoolsDeleteUnauthorized creates a PcloudSharedprocessorpoolsDeleteUnauthorized with default headers values

func (*PcloudSharedprocessorpoolsDeleteUnauthorized) Error

func (*PcloudSharedprocessorpoolsDeleteUnauthorized) GetPayload

type PcloudSharedprocessorpoolsPostBadRequest

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

Bad Request

func NewPcloudSharedprocessorpoolsPostBadRequest

func NewPcloudSharedprocessorpoolsPostBadRequest() *PcloudSharedprocessorpoolsPostBadRequest

NewPcloudSharedprocessorpoolsPostBadRequest creates a PcloudSharedprocessorpoolsPostBadRequest with default headers values

func (*PcloudSharedprocessorpoolsPostBadRequest) Error

func (*PcloudSharedprocessorpoolsPostBadRequest) GetPayload

type PcloudSharedprocessorpoolsPostConflict

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

Conflict

func NewPcloudSharedprocessorpoolsPostConflict

func NewPcloudSharedprocessorpoolsPostConflict() *PcloudSharedprocessorpoolsPostConflict

NewPcloudSharedprocessorpoolsPostConflict creates a PcloudSharedprocessorpoolsPostConflict with default headers values

func (*PcloudSharedprocessorpoolsPostConflict) Error

func (*PcloudSharedprocessorpoolsPostConflict) GetPayload

type PcloudSharedprocessorpoolsPostInternalServerError

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

Internal Server Error

func NewPcloudSharedprocessorpoolsPostInternalServerError

func NewPcloudSharedprocessorpoolsPostInternalServerError() *PcloudSharedprocessorpoolsPostInternalServerError

NewPcloudSharedprocessorpoolsPostInternalServerError creates a PcloudSharedprocessorpoolsPostInternalServerError with default headers values

func (*PcloudSharedprocessorpoolsPostInternalServerError) Error

func (*PcloudSharedprocessorpoolsPostInternalServerError) GetPayload

type PcloudSharedprocessorpoolsPostOK

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

OK

func NewPcloudSharedprocessorpoolsPostOK

func NewPcloudSharedprocessorpoolsPostOK() *PcloudSharedprocessorpoolsPostOK

NewPcloudSharedprocessorpoolsPostOK creates a PcloudSharedprocessorpoolsPostOK with default headers values

func (*PcloudSharedprocessorpoolsPostOK) Error

func (*PcloudSharedprocessorpoolsPostOK) GetPayload

type PcloudSharedprocessorpoolsPostParams

type PcloudSharedprocessorpoolsPostParams struct {

	/* Body.

	   Parameters for the creation of a new Shared Processor Pool
	*/
	Body *models.SharedProcessorPoolCreate

	/* CloudInstanceID.

	   Cloud Instance ID of a PCloud Instance
	*/
	CloudInstanceID string

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

PcloudSharedprocessorpoolsPostParams contains all the parameters to send to the API endpoint

for the pcloud sharedprocessorpools post operation.

Typically these are written to a http.Request.

func NewPcloudSharedprocessorpoolsPostParams

func NewPcloudSharedprocessorpoolsPostParams() *PcloudSharedprocessorpoolsPostParams

NewPcloudSharedprocessorpoolsPostParams creates a new PcloudSharedprocessorpoolsPostParams 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 NewPcloudSharedprocessorpoolsPostParamsWithContext

func NewPcloudSharedprocessorpoolsPostParamsWithContext(ctx context.Context) *PcloudSharedprocessorpoolsPostParams

NewPcloudSharedprocessorpoolsPostParamsWithContext creates a new PcloudSharedprocessorpoolsPostParams object with the ability to set a context for a request.

func NewPcloudSharedprocessorpoolsPostParamsWithHTTPClient

func NewPcloudSharedprocessorpoolsPostParamsWithHTTPClient(client *http.Client) *PcloudSharedprocessorpoolsPostParams

NewPcloudSharedprocessorpoolsPostParamsWithHTTPClient creates a new PcloudSharedprocessorpoolsPostParams object with the ability to set a custom HTTPClient for a request.

func NewPcloudSharedprocessorpoolsPostParamsWithTimeout

func NewPcloudSharedprocessorpoolsPostParamsWithTimeout(timeout time.Duration) *PcloudSharedprocessorpoolsPostParams

NewPcloudSharedprocessorpoolsPostParamsWithTimeout creates a new PcloudSharedprocessorpoolsPostParams object with the ability to set a timeout on a request.

func (*PcloudSharedprocessorpoolsPostParams) SetBody

SetBody adds the body to the pcloud sharedprocessorpools post params

func (*PcloudSharedprocessorpoolsPostParams) SetCloudInstanceID

func (o *PcloudSharedprocessorpoolsPostParams) SetCloudInstanceID(cloudInstanceID string)

SetCloudInstanceID adds the cloudInstanceId to the pcloud sharedprocessorpools post params

func (*PcloudSharedprocessorpoolsPostParams) SetContext

SetContext adds the context to the pcloud sharedprocessorpools post params

func (*PcloudSharedprocessorpoolsPostParams) SetDefaults

func (o *PcloudSharedprocessorpoolsPostParams) SetDefaults()

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

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

func (*PcloudSharedprocessorpoolsPostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pcloud sharedprocessorpools post params

func (*PcloudSharedprocessorpoolsPostParams) SetTimeout

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

SetTimeout adds the timeout to the pcloud sharedprocessorpools post params

func (*PcloudSharedprocessorpoolsPostParams) WithBody

WithBody adds the body to the pcloud sharedprocessorpools post params

func (*PcloudSharedprocessorpoolsPostParams) WithCloudInstanceID

func (o *PcloudSharedprocessorpoolsPostParams) WithCloudInstanceID(cloudInstanceID string) *PcloudSharedprocessorpoolsPostParams

WithCloudInstanceID adds the cloudInstanceID to the pcloud sharedprocessorpools post params

func (*PcloudSharedprocessorpoolsPostParams) WithContext

WithContext adds the context to the pcloud sharedprocessorpools post params

func (*PcloudSharedprocessorpoolsPostParams) WithDefaults

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

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

func (*PcloudSharedprocessorpoolsPostParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the pcloud sharedprocessorpools post params

func (*PcloudSharedprocessorpoolsPostParams) WithTimeout

WithTimeout adds the timeout to the pcloud sharedprocessorpools post params

func (*PcloudSharedprocessorpoolsPostParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PcloudSharedprocessorpoolsPostReader

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

PcloudSharedprocessorpoolsPostReader is a Reader for the PcloudSharedprocessorpoolsPost structure.

func (*PcloudSharedprocessorpoolsPostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PcloudSharedprocessorpoolsPostUnprocessableEntity

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

Unprocessable Entity

func NewPcloudSharedprocessorpoolsPostUnprocessableEntity

func NewPcloudSharedprocessorpoolsPostUnprocessableEntity() *PcloudSharedprocessorpoolsPostUnprocessableEntity

NewPcloudSharedprocessorpoolsPostUnprocessableEntity creates a PcloudSharedprocessorpoolsPostUnprocessableEntity with default headers values

func (*PcloudSharedprocessorpoolsPostUnprocessableEntity) Error

func (*PcloudSharedprocessorpoolsPostUnprocessableEntity) GetPayload

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL