p_cloud_pod_capacity

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 11 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 pod capacity API

func (*Client) PcloudPodcapacityGet

func (a *Client) PcloudPodcapacityGet(params *PcloudPodcapacityGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudPodcapacityGetOK, error)

PcloudPodcapacityGet lists of available resources within a particular pod

Applicable to satellite locations only.

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 may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	PcloudPodcapacityGet(params *PcloudPodcapacityGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudPodcapacityGetOK, 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 pod capacity API client.

func NewClientWithBasicAuth added in v1.7.0

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new p cloud pod capacity API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken added in v1.7.0

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new p cloud pod capacity API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type PcloudPodcapacityGetBadRequest added in v1.4.2

type PcloudPodcapacityGetBadRequest struct {
	Payload *models.Error
}

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

Bad Request

func NewPcloudPodcapacityGetBadRequest added in v1.4.2

func NewPcloudPodcapacityGetBadRequest() *PcloudPodcapacityGetBadRequest

NewPcloudPodcapacityGetBadRequest creates a PcloudPodcapacityGetBadRequest with default headers values

func (*PcloudPodcapacityGetBadRequest) Code added in v1.4.2

Code gets the status code for the pcloud podcapacity get bad request response

func (*PcloudPodcapacityGetBadRequest) Error added in v1.4.2

func (*PcloudPodcapacityGetBadRequest) GetPayload added in v1.4.2

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

func (*PcloudPodcapacityGetBadRequest) IsClientError added in v1.4.2

func (o *PcloudPodcapacityGetBadRequest) IsClientError() bool

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

func (*PcloudPodcapacityGetBadRequest) IsCode added in v1.4.2

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

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

func (*PcloudPodcapacityGetBadRequest) IsRedirect added in v1.4.2

func (o *PcloudPodcapacityGetBadRequest) IsRedirect() bool

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

func (*PcloudPodcapacityGetBadRequest) IsServerError added in v1.4.2

func (o *PcloudPodcapacityGetBadRequest) IsServerError() bool

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

func (*PcloudPodcapacityGetBadRequest) IsSuccess added in v1.4.2

func (o *PcloudPodcapacityGetBadRequest) IsSuccess() bool

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

func (*PcloudPodcapacityGetBadRequest) String added in v1.4.2

type PcloudPodcapacityGetForbidden

type PcloudPodcapacityGetForbidden struct {
	Payload *models.Error
}

PcloudPodcapacityGetForbidden describes a response with status code 403, with default header values.

Forbidden

func NewPcloudPodcapacityGetForbidden

func NewPcloudPodcapacityGetForbidden() *PcloudPodcapacityGetForbidden

NewPcloudPodcapacityGetForbidden creates a PcloudPodcapacityGetForbidden with default headers values

func (*PcloudPodcapacityGetForbidden) Code

Code gets the status code for the pcloud podcapacity get forbidden response

func (*PcloudPodcapacityGetForbidden) Error

func (*PcloudPodcapacityGetForbidden) GetPayload

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

func (*PcloudPodcapacityGetForbidden) IsClientError

func (o *PcloudPodcapacityGetForbidden) IsClientError() bool

IsClientError returns true when this pcloud podcapacity get forbidden response has a 4xx status code

func (*PcloudPodcapacityGetForbidden) IsCode

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

IsCode returns true when this pcloud podcapacity get forbidden response a status code equal to that given

func (*PcloudPodcapacityGetForbidden) IsRedirect

func (o *PcloudPodcapacityGetForbidden) IsRedirect() bool

IsRedirect returns true when this pcloud podcapacity get forbidden response has a 3xx status code

func (*PcloudPodcapacityGetForbidden) IsServerError

func (o *PcloudPodcapacityGetForbidden) IsServerError() bool

IsServerError returns true when this pcloud podcapacity get forbidden response has a 5xx status code

func (*PcloudPodcapacityGetForbidden) IsSuccess

func (o *PcloudPodcapacityGetForbidden) IsSuccess() bool

IsSuccess returns true when this pcloud podcapacity get forbidden response has a 2xx status code

func (*PcloudPodcapacityGetForbidden) String

type PcloudPodcapacityGetInternalServerError

type PcloudPodcapacityGetInternalServerError struct {
	Payload *models.Error
}

PcloudPodcapacityGetInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPcloudPodcapacityGetInternalServerError

func NewPcloudPodcapacityGetInternalServerError() *PcloudPodcapacityGetInternalServerError

NewPcloudPodcapacityGetInternalServerError creates a PcloudPodcapacityGetInternalServerError with default headers values

func (*PcloudPodcapacityGetInternalServerError) Code

Code gets the status code for the pcloud podcapacity get internal server error response

func (*PcloudPodcapacityGetInternalServerError) Error

func (*PcloudPodcapacityGetInternalServerError) GetPayload

func (*PcloudPodcapacityGetInternalServerError) IsClientError

func (o *PcloudPodcapacityGetInternalServerError) IsClientError() bool

IsClientError returns true when this pcloud podcapacity get internal server error response has a 4xx status code

func (*PcloudPodcapacityGetInternalServerError) IsCode

IsCode returns true when this pcloud podcapacity get internal server error response a status code equal to that given

func (*PcloudPodcapacityGetInternalServerError) IsRedirect

IsRedirect returns true when this pcloud podcapacity get internal server error response has a 3xx status code

func (*PcloudPodcapacityGetInternalServerError) IsServerError

func (o *PcloudPodcapacityGetInternalServerError) IsServerError() bool

IsServerError returns true when this pcloud podcapacity get internal server error response has a 5xx status code

func (*PcloudPodcapacityGetInternalServerError) IsSuccess

IsSuccess returns true when this pcloud podcapacity get internal server error response has a 2xx status code

func (*PcloudPodcapacityGetInternalServerError) String

type PcloudPodcapacityGetNotFound added in v1.4.2

type PcloudPodcapacityGetNotFound struct {
	Payload *models.Error
}

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

Not Found

func NewPcloudPodcapacityGetNotFound added in v1.4.2

func NewPcloudPodcapacityGetNotFound() *PcloudPodcapacityGetNotFound

NewPcloudPodcapacityGetNotFound creates a PcloudPodcapacityGetNotFound with default headers values

func (*PcloudPodcapacityGetNotFound) Code added in v1.4.2

Code gets the status code for the pcloud podcapacity get not found response

func (*PcloudPodcapacityGetNotFound) Error added in v1.4.2

func (*PcloudPodcapacityGetNotFound) GetPayload added in v1.4.2

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

func (*PcloudPodcapacityGetNotFound) IsClientError added in v1.4.2

func (o *PcloudPodcapacityGetNotFound) IsClientError() bool

IsClientError returns true when this pcloud podcapacity get not found response has a 4xx status code

func (*PcloudPodcapacityGetNotFound) IsCode added in v1.4.2

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

IsCode returns true when this pcloud podcapacity get not found response a status code equal to that given

func (*PcloudPodcapacityGetNotFound) IsRedirect added in v1.4.2

func (o *PcloudPodcapacityGetNotFound) IsRedirect() bool

IsRedirect returns true when this pcloud podcapacity get not found response has a 3xx status code

func (*PcloudPodcapacityGetNotFound) IsServerError added in v1.4.2

func (o *PcloudPodcapacityGetNotFound) IsServerError() bool

IsServerError returns true when this pcloud podcapacity get not found response has a 5xx status code

func (*PcloudPodcapacityGetNotFound) IsSuccess added in v1.4.2

func (o *PcloudPodcapacityGetNotFound) IsSuccess() bool

IsSuccess returns true when this pcloud podcapacity get not found response has a 2xx status code

func (*PcloudPodcapacityGetNotFound) String added in v1.4.2

type PcloudPodcapacityGetOK

type PcloudPodcapacityGetOK struct {
	Payload *models.PodCapacity
}

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

OK

func NewPcloudPodcapacityGetOK

func NewPcloudPodcapacityGetOK() *PcloudPodcapacityGetOK

NewPcloudPodcapacityGetOK creates a PcloudPodcapacityGetOK with default headers values

func (*PcloudPodcapacityGetOK) Code

func (o *PcloudPodcapacityGetOK) Code() int

Code gets the status code for the pcloud podcapacity get o k response

func (*PcloudPodcapacityGetOK) Error

func (o *PcloudPodcapacityGetOK) Error() string

func (*PcloudPodcapacityGetOK) GetPayload

func (o *PcloudPodcapacityGetOK) GetPayload() *models.PodCapacity

func (*PcloudPodcapacityGetOK) IsClientError

func (o *PcloudPodcapacityGetOK) IsClientError() bool

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

func (*PcloudPodcapacityGetOK) IsCode

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

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

func (*PcloudPodcapacityGetOK) IsRedirect

func (o *PcloudPodcapacityGetOK) IsRedirect() bool

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

func (*PcloudPodcapacityGetOK) IsServerError

func (o *PcloudPodcapacityGetOK) IsServerError() bool

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

func (*PcloudPodcapacityGetOK) IsSuccess

func (o *PcloudPodcapacityGetOK) IsSuccess() bool

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

func (*PcloudPodcapacityGetOK) String

func (o *PcloudPodcapacityGetOK) String() string

type PcloudPodcapacityGetParams

type PcloudPodcapacityGetParams struct {

	/* CloudInstanceID.

	   Cloud Instance ID of a PCloud Instance
	*/
	CloudInstanceID string

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

PcloudPodcapacityGetParams contains all the parameters to send to the API endpoint

for the pcloud podcapacity get operation.

Typically these are written to a http.Request.

func NewPcloudPodcapacityGetParams

func NewPcloudPodcapacityGetParams() *PcloudPodcapacityGetParams

NewPcloudPodcapacityGetParams creates a new PcloudPodcapacityGetParams 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 NewPcloudPodcapacityGetParamsWithContext

func NewPcloudPodcapacityGetParamsWithContext(ctx context.Context) *PcloudPodcapacityGetParams

NewPcloudPodcapacityGetParamsWithContext creates a new PcloudPodcapacityGetParams object with the ability to set a context for a request.

func NewPcloudPodcapacityGetParamsWithHTTPClient

func NewPcloudPodcapacityGetParamsWithHTTPClient(client *http.Client) *PcloudPodcapacityGetParams

NewPcloudPodcapacityGetParamsWithHTTPClient creates a new PcloudPodcapacityGetParams object with the ability to set a custom HTTPClient for a request.

func NewPcloudPodcapacityGetParamsWithTimeout

func NewPcloudPodcapacityGetParamsWithTimeout(timeout time.Duration) *PcloudPodcapacityGetParams

NewPcloudPodcapacityGetParamsWithTimeout creates a new PcloudPodcapacityGetParams object with the ability to set a timeout on a request.

func (*PcloudPodcapacityGetParams) SetCloudInstanceID

func (o *PcloudPodcapacityGetParams) SetCloudInstanceID(cloudInstanceID string)

SetCloudInstanceID adds the cloudInstanceId to the pcloud podcapacity get params

func (*PcloudPodcapacityGetParams) SetContext

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

SetContext adds the context to the pcloud podcapacity get params

func (*PcloudPodcapacityGetParams) SetDefaults

func (o *PcloudPodcapacityGetParams) SetDefaults()

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

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

func (*PcloudPodcapacityGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pcloud podcapacity get params

func (*PcloudPodcapacityGetParams) SetTimeout

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

SetTimeout adds the timeout to the pcloud podcapacity get params

func (*PcloudPodcapacityGetParams) WithCloudInstanceID

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

WithCloudInstanceID adds the cloudInstanceID to the pcloud podcapacity get params

func (*PcloudPodcapacityGetParams) WithContext

WithContext adds the context to the pcloud podcapacity get params

func (*PcloudPodcapacityGetParams) WithDefaults

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

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

func (*PcloudPodcapacityGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the pcloud podcapacity get params

func (*PcloudPodcapacityGetParams) WithTimeout

WithTimeout adds the timeout to the pcloud podcapacity get params

func (*PcloudPodcapacityGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PcloudPodcapacityGetReader

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

PcloudPodcapacityGetReader is a Reader for the PcloudPodcapacityGet structure.

func (*PcloudPodcapacityGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PcloudPodcapacityGetUnauthorized

type PcloudPodcapacityGetUnauthorized struct {
	Payload *models.Error
}

PcloudPodcapacityGetUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPcloudPodcapacityGetUnauthorized

func NewPcloudPodcapacityGetUnauthorized() *PcloudPodcapacityGetUnauthorized

NewPcloudPodcapacityGetUnauthorized creates a PcloudPodcapacityGetUnauthorized with default headers values

func (*PcloudPodcapacityGetUnauthorized) Code

Code gets the status code for the pcloud podcapacity get unauthorized response

func (*PcloudPodcapacityGetUnauthorized) Error

func (*PcloudPodcapacityGetUnauthorized) GetPayload

func (*PcloudPodcapacityGetUnauthorized) IsClientError

func (o *PcloudPodcapacityGetUnauthorized) IsClientError() bool

IsClientError returns true when this pcloud podcapacity get unauthorized response has a 4xx status code

func (*PcloudPodcapacityGetUnauthorized) IsCode

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

IsCode returns true when this pcloud podcapacity get unauthorized response a status code equal to that given

func (*PcloudPodcapacityGetUnauthorized) IsRedirect

func (o *PcloudPodcapacityGetUnauthorized) IsRedirect() bool

IsRedirect returns true when this pcloud podcapacity get unauthorized response has a 3xx status code

func (*PcloudPodcapacityGetUnauthorized) IsServerError

func (o *PcloudPodcapacityGetUnauthorized) IsServerError() bool

IsServerError returns true when this pcloud podcapacity get unauthorized response has a 5xx status code

func (*PcloudPodcapacityGetUnauthorized) IsSuccess

func (o *PcloudPodcapacityGetUnauthorized) IsSuccess() bool

IsSuccess returns true when this pcloud podcapacity get unauthorized response has a 2xx status code

func (*PcloudPodcapacityGetUnauthorized) String

Jump to

Keyboard shortcuts

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