p_cloud_disaster_recovery

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 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 disaster recovery API

func (*Client) PcloudLocationsDisasterrecoveryGet

func (a *Client) PcloudLocationsDisasterrecoveryGet(params *PcloudLocationsDisasterrecoveryGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudLocationsDisasterrecoveryGetOK, error)

PcloudLocationsDisasterrecoveryGet gets the disaster recovery site details for the current location

func (*Client) PcloudLocationsDisasterrecoveryGetall

func (a *Client) PcloudLocationsDisasterrecoveryGetall(params *PcloudLocationsDisasterrecoveryGetallParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudLocationsDisasterrecoveryGetallOK, error)

PcloudLocationsDisasterrecoveryGetall gets all disaster recovery locations supported by power virtual server

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 {
	PcloudLocationsDisasterrecoveryGet(params *PcloudLocationsDisasterrecoveryGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudLocationsDisasterrecoveryGetOK, error)

	PcloudLocationsDisasterrecoveryGetall(params *PcloudLocationsDisasterrecoveryGetallParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudLocationsDisasterrecoveryGetallOK, 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 disaster recovery API client.

type PcloudLocationsDisasterrecoveryGetInternalServerError

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

Internal Server Error

func NewPcloudLocationsDisasterrecoveryGetInternalServerError

func NewPcloudLocationsDisasterrecoveryGetInternalServerError() *PcloudLocationsDisasterrecoveryGetInternalServerError

NewPcloudLocationsDisasterrecoveryGetInternalServerError creates a PcloudLocationsDisasterrecoveryGetInternalServerError with default headers values

func (*PcloudLocationsDisasterrecoveryGetInternalServerError) Error

func (*PcloudLocationsDisasterrecoveryGetInternalServerError) GetPayload

type PcloudLocationsDisasterrecoveryGetNotFound

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

Not Found

func NewPcloudLocationsDisasterrecoveryGetNotFound

func NewPcloudLocationsDisasterrecoveryGetNotFound() *PcloudLocationsDisasterrecoveryGetNotFound

NewPcloudLocationsDisasterrecoveryGetNotFound creates a PcloudLocationsDisasterrecoveryGetNotFound with default headers values

func (*PcloudLocationsDisasterrecoveryGetNotFound) Error

func (*PcloudLocationsDisasterrecoveryGetNotFound) GetPayload

type PcloudLocationsDisasterrecoveryGetOK

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

OK

func NewPcloudLocationsDisasterrecoveryGetOK

func NewPcloudLocationsDisasterrecoveryGetOK() *PcloudLocationsDisasterrecoveryGetOK

NewPcloudLocationsDisasterrecoveryGetOK creates a PcloudLocationsDisasterrecoveryGetOK with default headers values

func (*PcloudLocationsDisasterrecoveryGetOK) Error

func (*PcloudLocationsDisasterrecoveryGetOK) GetPayload

type PcloudLocationsDisasterrecoveryGetParams

type PcloudLocationsDisasterrecoveryGetParams struct {

	/* CloudInstanceID.

	   Cloud Instance ID of a PCloud Instance
	*/
	CloudInstanceID string

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

PcloudLocationsDisasterrecoveryGetParams contains all the parameters to send to the API endpoint

for the pcloud locations disasterrecovery get operation.

Typically these are written to a http.Request.

func NewPcloudLocationsDisasterrecoveryGetParams

func NewPcloudLocationsDisasterrecoveryGetParams() *PcloudLocationsDisasterrecoveryGetParams

NewPcloudLocationsDisasterrecoveryGetParams creates a new PcloudLocationsDisasterrecoveryGetParams 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 NewPcloudLocationsDisasterrecoveryGetParamsWithContext

func NewPcloudLocationsDisasterrecoveryGetParamsWithContext(ctx context.Context) *PcloudLocationsDisasterrecoveryGetParams

NewPcloudLocationsDisasterrecoveryGetParamsWithContext creates a new PcloudLocationsDisasterrecoveryGetParams object with the ability to set a context for a request.

func NewPcloudLocationsDisasterrecoveryGetParamsWithHTTPClient

func NewPcloudLocationsDisasterrecoveryGetParamsWithHTTPClient(client *http.Client) *PcloudLocationsDisasterrecoveryGetParams

NewPcloudLocationsDisasterrecoveryGetParamsWithHTTPClient creates a new PcloudLocationsDisasterrecoveryGetParams object with the ability to set a custom HTTPClient for a request.

func NewPcloudLocationsDisasterrecoveryGetParamsWithTimeout

func NewPcloudLocationsDisasterrecoveryGetParamsWithTimeout(timeout time.Duration) *PcloudLocationsDisasterrecoveryGetParams

NewPcloudLocationsDisasterrecoveryGetParamsWithTimeout creates a new PcloudLocationsDisasterrecoveryGetParams object with the ability to set a timeout on a request.

func (*PcloudLocationsDisasterrecoveryGetParams) SetCloudInstanceID

func (o *PcloudLocationsDisasterrecoveryGetParams) SetCloudInstanceID(cloudInstanceID string)

SetCloudInstanceID adds the cloudInstanceId to the pcloud locations disasterrecovery get params

func (*PcloudLocationsDisasterrecoveryGetParams) SetContext

SetContext adds the context to the pcloud locations disasterrecovery get params

func (*PcloudLocationsDisasterrecoveryGetParams) SetDefaults

SetDefaults hydrates default values in the pcloud locations disasterrecovery get params (not the query body).

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

func (*PcloudLocationsDisasterrecoveryGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pcloud locations disasterrecovery get params

func (*PcloudLocationsDisasterrecoveryGetParams) SetTimeout

SetTimeout adds the timeout to the pcloud locations disasterrecovery get params

func (*PcloudLocationsDisasterrecoveryGetParams) WithCloudInstanceID

WithCloudInstanceID adds the cloudInstanceID to the pcloud locations disasterrecovery get params

func (*PcloudLocationsDisasterrecoveryGetParams) WithContext

WithContext adds the context to the pcloud locations disasterrecovery get params

func (*PcloudLocationsDisasterrecoveryGetParams) WithDefaults

WithDefaults hydrates default values in the pcloud locations disasterrecovery get params (not the query body).

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

func (*PcloudLocationsDisasterrecoveryGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the pcloud locations disasterrecovery get params

func (*PcloudLocationsDisasterrecoveryGetParams) WithTimeout

WithTimeout adds the timeout to the pcloud locations disasterrecovery get params

func (*PcloudLocationsDisasterrecoveryGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PcloudLocationsDisasterrecoveryGetReader

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

PcloudLocationsDisasterrecoveryGetReader is a Reader for the PcloudLocationsDisasterrecoveryGet structure.

func (*PcloudLocationsDisasterrecoveryGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PcloudLocationsDisasterrecoveryGetUnauthorized

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

Unauthorized

func NewPcloudLocationsDisasterrecoveryGetUnauthorized

func NewPcloudLocationsDisasterrecoveryGetUnauthorized() *PcloudLocationsDisasterrecoveryGetUnauthorized

NewPcloudLocationsDisasterrecoveryGetUnauthorized creates a PcloudLocationsDisasterrecoveryGetUnauthorized with default headers values

func (*PcloudLocationsDisasterrecoveryGetUnauthorized) Error

func (*PcloudLocationsDisasterrecoveryGetUnauthorized) GetPayload

type PcloudLocationsDisasterrecoveryGetallInternalServerError

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

Internal Server Error

func NewPcloudLocationsDisasterrecoveryGetallInternalServerError

func NewPcloudLocationsDisasterrecoveryGetallInternalServerError() *PcloudLocationsDisasterrecoveryGetallInternalServerError

NewPcloudLocationsDisasterrecoveryGetallInternalServerError creates a PcloudLocationsDisasterrecoveryGetallInternalServerError with default headers values

func (*PcloudLocationsDisasterrecoveryGetallInternalServerError) Error

func (*PcloudLocationsDisasterrecoveryGetallInternalServerError) GetPayload

type PcloudLocationsDisasterrecoveryGetallNotFound

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

Not Found

func NewPcloudLocationsDisasterrecoveryGetallNotFound

func NewPcloudLocationsDisasterrecoveryGetallNotFound() *PcloudLocationsDisasterrecoveryGetallNotFound

NewPcloudLocationsDisasterrecoveryGetallNotFound creates a PcloudLocationsDisasterrecoveryGetallNotFound with default headers values

func (*PcloudLocationsDisasterrecoveryGetallNotFound) Error

func (*PcloudLocationsDisasterrecoveryGetallNotFound) GetPayload

type PcloudLocationsDisasterrecoveryGetallOK

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

OK

func NewPcloudLocationsDisasterrecoveryGetallOK

func NewPcloudLocationsDisasterrecoveryGetallOK() *PcloudLocationsDisasterrecoveryGetallOK

NewPcloudLocationsDisasterrecoveryGetallOK creates a PcloudLocationsDisasterrecoveryGetallOK with default headers values

func (*PcloudLocationsDisasterrecoveryGetallOK) Error

func (*PcloudLocationsDisasterrecoveryGetallOK) GetPayload

type PcloudLocationsDisasterrecoveryGetallParams

type PcloudLocationsDisasterrecoveryGetallParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PcloudLocationsDisasterrecoveryGetallParams contains all the parameters to send to the API endpoint

for the pcloud locations disasterrecovery getall operation.

Typically these are written to a http.Request.

func NewPcloudLocationsDisasterrecoveryGetallParams

func NewPcloudLocationsDisasterrecoveryGetallParams() *PcloudLocationsDisasterrecoveryGetallParams

NewPcloudLocationsDisasterrecoveryGetallParams creates a new PcloudLocationsDisasterrecoveryGetallParams 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 NewPcloudLocationsDisasterrecoveryGetallParamsWithContext

func NewPcloudLocationsDisasterrecoveryGetallParamsWithContext(ctx context.Context) *PcloudLocationsDisasterrecoveryGetallParams

NewPcloudLocationsDisasterrecoveryGetallParamsWithContext creates a new PcloudLocationsDisasterrecoveryGetallParams object with the ability to set a context for a request.

func NewPcloudLocationsDisasterrecoveryGetallParamsWithHTTPClient

func NewPcloudLocationsDisasterrecoveryGetallParamsWithHTTPClient(client *http.Client) *PcloudLocationsDisasterrecoveryGetallParams

NewPcloudLocationsDisasterrecoveryGetallParamsWithHTTPClient creates a new PcloudLocationsDisasterrecoveryGetallParams object with the ability to set a custom HTTPClient for a request.

func NewPcloudLocationsDisasterrecoveryGetallParamsWithTimeout

func NewPcloudLocationsDisasterrecoveryGetallParamsWithTimeout(timeout time.Duration) *PcloudLocationsDisasterrecoveryGetallParams

NewPcloudLocationsDisasterrecoveryGetallParamsWithTimeout creates a new PcloudLocationsDisasterrecoveryGetallParams object with the ability to set a timeout on a request.

func (*PcloudLocationsDisasterrecoveryGetallParams) SetContext

SetContext adds the context to the pcloud locations disasterrecovery getall params

func (*PcloudLocationsDisasterrecoveryGetallParams) SetDefaults

SetDefaults hydrates default values in the pcloud locations disasterrecovery getall params (not the query body).

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

func (*PcloudLocationsDisasterrecoveryGetallParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pcloud locations disasterrecovery getall params

func (*PcloudLocationsDisasterrecoveryGetallParams) SetTimeout

SetTimeout adds the timeout to the pcloud locations disasterrecovery getall params

func (*PcloudLocationsDisasterrecoveryGetallParams) WithContext

WithContext adds the context to the pcloud locations disasterrecovery getall params

func (*PcloudLocationsDisasterrecoveryGetallParams) WithDefaults

WithDefaults hydrates default values in the pcloud locations disasterrecovery getall params (not the query body).

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

func (*PcloudLocationsDisasterrecoveryGetallParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the pcloud locations disasterrecovery getall params

func (*PcloudLocationsDisasterrecoveryGetallParams) WithTimeout

WithTimeout adds the timeout to the pcloud locations disasterrecovery getall params

func (*PcloudLocationsDisasterrecoveryGetallParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PcloudLocationsDisasterrecoveryGetallReader

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

PcloudLocationsDisasterrecoveryGetallReader is a Reader for the PcloudLocationsDisasterrecoveryGetall structure.

func (*PcloudLocationsDisasterrecoveryGetallReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PcloudLocationsDisasterrecoveryGetallUnauthorized

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

Unauthorized

func NewPcloudLocationsDisasterrecoveryGetallUnauthorized

func NewPcloudLocationsDisasterrecoveryGetallUnauthorized() *PcloudLocationsDisasterrecoveryGetallUnauthorized

NewPcloudLocationsDisasterrecoveryGetallUnauthorized creates a PcloudLocationsDisasterrecoveryGetallUnauthorized with default headers values

func (*PcloudLocationsDisasterrecoveryGetallUnauthorized) Error

func (*PcloudLocationsDisasterrecoveryGetallUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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