networkvolumes

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package networkvolumes provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateNetworkVolumeRequest

func NewCreateNetworkVolumeRequest(server string, body CreateNetworkVolumeJSONRequestBody) (*http.Request, error)

NewCreateNetworkVolumeRequest calls the generic CreateNetworkVolume builder with application/json body

func NewCreateNetworkVolumeRequestWithBody

func NewCreateNetworkVolumeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateNetworkVolumeRequestWithBody constructs an http.Request for the CreateNetworkVolume method, with any body, and a specified content type

func NewDeleteNetworkVolumeRequest

func NewDeleteNetworkVolumeRequest(server string, id string) (*http.Request, error)

NewDeleteNetworkVolumeRequest constructs an http.Request for the DeleteNetworkVolume method

func NewGetNetworkVolumeRequest

func NewGetNetworkVolumeRequest(server string, id string) (*http.Request, error)

NewGetNetworkVolumeRequest constructs an http.Request for the GetNetworkVolume method

func NewListNetworkVolumesRequest

func NewListNetworkVolumesRequest(server string, params *ListNetworkVolumesParams) (*http.Request, error)

NewListNetworkVolumesRequest constructs an http.Request for the ListNetworkVolumes method

func NewUpdateNetworkVolumeRequest

func NewUpdateNetworkVolumeRequest(server string, id string, body UpdateNetworkVolumeJSONRequestBody) (*http.Request, error)

NewUpdateNetworkVolumeRequest calls the generic UpdateNetworkVolume builder with application/json body

func NewUpdateNetworkVolumeRequestWithBody

func NewUpdateNetworkVolumeRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateNetworkVolumeRequestWithBody constructs an http.Request for the UpdateNetworkVolume method, with any body, and a specified content type

Types

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CreateNetworkVolume

func (c *Client) CreateNetworkVolume(ctx context.Context, body CreateNetworkVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateNetworkVolume Create a network volume

Provisions a new network volume — persistent, network-attached storage that can be mounted into pods and serverless workers. Required inputs are `name`, `size` (in GB), and `dataCenter`; an optional `type` selects the storage tier and is immutable after creation. See `CreateNetworkVolumeRequest` for the size bounds and tier options.

This creates a billable persistent resource that keeps incurring storage charges until it is deleted. Returns `201` with the created network volume, including its assigned `id`.

Takes a body of the `application/json` content type.

Corresponds with POST /v2/network-volumes (the `CreateNetworkVolume` operationId).

func (*Client) CreateNetworkVolumeWithBody

func (c *Client) CreateNetworkVolumeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateNetworkVolumeWithBody Create a network volume

Provisions a new network volume — persistent, network-attached storage that can be mounted into pods and serverless workers. Required inputs are `name`, `size` (in GB), and `dataCenter`; an optional `type` selects the storage tier and is immutable after creation. See `CreateNetworkVolumeRequest` for the size bounds and tier options.

This creates a billable persistent resource that keeps incurring storage charges until it is deleted. Returns `201` with the created network volume, including its assigned `id`.

Takes any type of body and a specified content type.

Corresponds with POST /v2/network-volumes (the `CreateNetworkVolume` operationId).

func (*Client) DeleteNetworkVolume

func (c *Client) DeleteNetworkVolume(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteNetworkVolume Delete a network volume

Permanently deletes a network volume and releases its storage.

Corresponds with DELETE /v2/network-volumes/{id} (the `DeleteNetworkVolume` operationId).

func (*Client) GetNetworkVolume

func (c *Client) GetNetworkVolume(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

GetNetworkVolume Get a network volume

Returns a single network volume by ID.

Corresponds with GET /v2/network-volumes/{id} (the `GetNetworkVolume` operationId).

func (*Client) ListNetworkVolumes

func (c *Client) ListNetworkVolumes(ctx context.Context, params *ListNetworkVolumesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListNetworkVolumes List network volumes

Returns network volumes owned by the authenticated user, cursor-paginated newest-first; an omitted `limit` defaults to 1000. Follow `pagination.nextCursor` until `hasNextPage` is false.

Corresponds with GET /v2/network-volumes (the `ListNetworkVolumes` operationId).

func (*Client) UpdateNetworkVolume

func (c *Client) UpdateNetworkVolume(ctx context.Context, id string, body UpdateNetworkVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateNetworkVolume Update a network volume

Updates mutable fields on a network volume. Only provided fields are changed. Note: `size` may only increase; attempts to reduce size will be rejected.

Takes a body of the `application/json` content type.

Corresponds with PATCH /v2/network-volumes/{id} (the `UpdateNetworkVolume` operationId).

func (*Client) UpdateNetworkVolumeWithBody

func (c *Client) UpdateNetworkVolumeWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateNetworkVolumeWithBody Update a network volume

Updates mutable fields on a network volume. Only provided fields are changed. Note: `size` may only increase; attempts to reduce size will be rejected.

Takes any type of body and a specified content type.

Corresponds with PATCH /v2/network-volumes/{id} (the `UpdateNetworkVolume` operationId).

type ClientInterface

type ClientInterface interface {

	// ListNetworkVolumes List network volumes
	//
	// Returns network volumes owned by the authenticated user,
	// cursor-paginated newest-first; an omitted `limit` defaults to 1000.
	// Follow `pagination.nextCursor` until `hasNextPage` is false.
	//
	// Corresponds with GET /v2/network-volumes (the `ListNetworkVolumes` operationId).
	ListNetworkVolumes(ctx context.Context, params *ListNetworkVolumesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateNetworkVolumeWithBody Create a network volume
	//
	// Provisions a new network volume — persistent, network-attached
	// storage that can be mounted into pods and serverless workers.
	// Required inputs are `name`, `size` (in GB), and `dataCenter`; an
	// optional `type` selects the storage tier and is immutable after
	// creation. See `CreateNetworkVolumeRequest` for the size bounds and
	// tier options.
	//
	// This creates a billable persistent resource that keeps incurring
	// storage charges until it is deleted. Returns `201` with the created
	// network volume, including its assigned `id`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v2/network-volumes (the `CreateNetworkVolume` operationId).
	CreateNetworkVolumeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateNetworkVolume Create a network volume
	//
	// Provisions a new network volume — persistent, network-attached
	// storage that can be mounted into pods and serverless workers.
	// Required inputs are `name`, `size` (in GB), and `dataCenter`; an
	// optional `type` selects the storage tier and is immutable after
	// creation. See `CreateNetworkVolumeRequest` for the size bounds and
	// tier options.
	//
	// This creates a billable persistent resource that keeps incurring
	// storage charges until it is deleted. Returns `201` with the created
	// network volume, including its assigned `id`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v2/network-volumes (the `CreateNetworkVolume` operationId).
	CreateNetworkVolume(ctx context.Context, body CreateNetworkVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteNetworkVolume Delete a network volume
	//
	// Permanently deletes a network volume and releases its storage.
	//
	// Corresponds with DELETE /v2/network-volumes/{id} (the `DeleteNetworkVolume` operationId).
	DeleteNetworkVolume(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetNetworkVolume Get a network volume
	//
	// Returns a single network volume by ID.
	//
	// Corresponds with GET /v2/network-volumes/{id} (the `GetNetworkVolume` operationId).
	GetNetworkVolume(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateNetworkVolumeWithBody Update a network volume
	//
	// Updates mutable fields on a network volume. Only provided fields are changed.
	// Note: `size` may only increase; attempts to reduce size will be rejected.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /v2/network-volumes/{id} (the `UpdateNetworkVolume` operationId).
	UpdateNetworkVolumeWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateNetworkVolume Update a network volume
	//
	// Updates mutable fields on a network volume. Only provided fields are changed.
	// Note: `size` may only increase; attempts to reduce size will be rejected.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /v2/network-volumes/{id} (the `UpdateNetworkVolume` operationId).
	UpdateNetworkVolume(ctx context.Context, id string, body UpdateNetworkVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CreateNetworkVolumeWithBodyWithResponse

func (c *ClientWithResponses) CreateNetworkVolumeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNetworkVolumeResult, error)

CreateNetworkVolumeWithBodyWithResponse Create a network volume

Provisions a new network volume — persistent, network-attached storage that can be mounted into pods and serverless workers. Required inputs are `name`, `size` (in GB), and `dataCenter`; an optional `type` selects the storage tier and is immutable after creation. See `CreateNetworkVolumeRequest` for the size bounds and tier options.

This creates a billable persistent resource that keeps incurring storage charges until it is deleted. Returns `201` with the created network volume, including its assigned `id`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v2/network-volumes (the `CreateNetworkVolume` operationId).

func (*ClientWithResponses) CreateNetworkVolumeWithResponse

func (c *ClientWithResponses) CreateNetworkVolumeWithResponse(ctx context.Context, body CreateNetworkVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNetworkVolumeResult, error)

CreateNetworkVolumeWithResponse Create a network volume

Provisions a new network volume — persistent, network-attached storage that can be mounted into pods and serverless workers. Required inputs are `name`, `size` (in GB), and `dataCenter`; an optional `type` selects the storage tier and is immutable after creation. See `CreateNetworkVolumeRequest` for the size bounds and tier options.

This creates a billable persistent resource that keeps incurring storage charges until it is deleted. Returns `201` with the created network volume, including its assigned `id`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v2/network-volumes (the `CreateNetworkVolume` operationId).

func (*ClientWithResponses) DeleteNetworkVolumeWithResponse

func (c *ClientWithResponses) DeleteNetworkVolumeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteNetworkVolumeResult, error)

DeleteNetworkVolumeWithResponse Delete a network volume

Permanently deletes a network volume and releases its storage.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /v2/network-volumes/{id} (the `DeleteNetworkVolume` operationId).

func (*ClientWithResponses) GetNetworkVolumeWithResponse

func (c *ClientWithResponses) GetNetworkVolumeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetNetworkVolumeResult, error)

GetNetworkVolumeWithResponse Get a network volume

Returns a single network volume by ID.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v2/network-volumes/{id} (the `GetNetworkVolume` operationId).

func (*ClientWithResponses) ListNetworkVolumesWithResponse

func (c *ClientWithResponses) ListNetworkVolumesWithResponse(ctx context.Context, params *ListNetworkVolumesParams, reqEditors ...RequestEditorFn) (*ListNetworkVolumesResult, error)

ListNetworkVolumesWithResponse List network volumes

Returns network volumes owned by the authenticated user, cursor-paginated newest-first; an omitted `limit` defaults to 1000. Follow `pagination.nextCursor` until `hasNextPage` is false.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v2/network-volumes (the `ListNetworkVolumes` operationId).

func (*ClientWithResponses) UpdateNetworkVolumeWithBodyWithResponse

func (c *ClientWithResponses) UpdateNetworkVolumeWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNetworkVolumeResult, error)

UpdateNetworkVolumeWithBodyWithResponse Update a network volume

Updates mutable fields on a network volume. Only provided fields are changed. Note: `size` may only increase; attempts to reduce size will be rejected.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /v2/network-volumes/{id} (the `UpdateNetworkVolume` operationId).

func (*ClientWithResponses) UpdateNetworkVolumeWithResponse

func (c *ClientWithResponses) UpdateNetworkVolumeWithResponse(ctx context.Context, id string, body UpdateNetworkVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNetworkVolumeResult, error)

UpdateNetworkVolumeWithResponse Update a network volume

Updates mutable fields on a network volume. Only provided fields are changed. Note: `size` may only increase; attempts to reduce size will be rejected.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /v2/network-volumes/{id} (the `UpdateNetworkVolume` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// ListNetworkVolumesWithResponse List network volumes
	//
	// Returns network volumes owned by the authenticated user,
	// cursor-paginated newest-first; an omitted `limit` defaults to 1000.
	// Follow `pagination.nextCursor` until `hasNextPage` is false.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/network-volumes (the `ListNetworkVolumes` operationId).
	ListNetworkVolumesWithResponse(ctx context.Context, params *ListNetworkVolumesParams, reqEditors ...RequestEditorFn) (*ListNetworkVolumesResult, error)

	// CreateNetworkVolumeWithBodyWithResponse Create a network volume
	//
	// Provisions a new network volume — persistent, network-attached
	// storage that can be mounted into pods and serverless workers.
	// Required inputs are `name`, `size` (in GB), and `dataCenter`; an
	// optional `type` selects the storage tier and is immutable after
	// creation. See `CreateNetworkVolumeRequest` for the size bounds and
	// tier options.
	//
	// This creates a billable persistent resource that keeps incurring
	// storage charges until it is deleted. Returns `201` with the created
	// network volume, including its assigned `id`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v2/network-volumes (the `CreateNetworkVolume` operationId).
	CreateNetworkVolumeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNetworkVolumeResult, error)

	// CreateNetworkVolumeWithResponse Create a network volume
	//
	// Provisions a new network volume — persistent, network-attached
	// storage that can be mounted into pods and serverless workers.
	// Required inputs are `name`, `size` (in GB), and `dataCenter`; an
	// optional `type` selects the storage tier and is immutable after
	// creation. See `CreateNetworkVolumeRequest` for the size bounds and
	// tier options.
	//
	// This creates a billable persistent resource that keeps incurring
	// storage charges until it is deleted. Returns `201` with the created
	// network volume, including its assigned `id`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v2/network-volumes (the `CreateNetworkVolume` operationId).
	CreateNetworkVolumeWithResponse(ctx context.Context, body CreateNetworkVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNetworkVolumeResult, error)

	// DeleteNetworkVolumeWithResponse Delete a network volume
	//
	// Permanently deletes a network volume and releases its storage.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v2/network-volumes/{id} (the `DeleteNetworkVolume` operationId).
	DeleteNetworkVolumeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteNetworkVolumeResult, error)

	// GetNetworkVolumeWithResponse Get a network volume
	//
	// Returns a single network volume by ID.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/network-volumes/{id} (the `GetNetworkVolume` operationId).
	GetNetworkVolumeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetNetworkVolumeResult, error)

	// UpdateNetworkVolumeWithBodyWithResponse Update a network volume
	//
	// Updates mutable fields on a network volume. Only provided fields are changed.
	// Note: `size` may only increase; attempts to reduce size will be rejected.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v2/network-volumes/{id} (the `UpdateNetworkVolume` operationId).
	UpdateNetworkVolumeWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNetworkVolumeResult, error)

	// UpdateNetworkVolumeWithResponse Update a network volume
	//
	// Updates mutable fields on a network volume. Only provided fields are changed.
	// Note: `size` may only increase; attempts to reduce size will be rejected.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v2/network-volumes/{id} (the `UpdateNetworkVolume` operationId).
	UpdateNetworkVolumeWithResponse(ctx context.Context, id string, body UpdateNetworkVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNetworkVolumeResult, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateNetworkVolumeJSONRequestBody

type CreateNetworkVolumeJSONRequestBody = externalRef0.CreateNetworkVolumeRequest

CreateNetworkVolumeJSONRequestBody defines body for CreateNetworkVolume for application/json ContentType.

type CreateNetworkVolumeResult

type CreateNetworkVolumeResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *externalRef0.NetworkVolume
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *externalRef0.ErrorResponse
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *externalRef0.ErrorResponse
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *externalRef0.ErrorResponse
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *externalRef0.ErrorResponse
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *externalRef0.ErrorResponse
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *externalRef0.ErrorResponse
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *externalRef0.ErrorResponse
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateNetworkVolumeResult201Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *CreateNetworkVolumeResult400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *CreateNetworkVolumeResult403Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *CreateNetworkVolumeResult413Headers
	// Headers422 the parsed response headers for an HTTP 422 response
	Headers422 *CreateNetworkVolumeResult422Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateNetworkVolumeResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *CreateNetworkVolumeResultDefaultHeaders
}

func ParseCreateNetworkVolumeResult

func ParseCreateNetworkVolumeResult(rsp *http.Response) (*CreateNetworkVolumeResult, error)

ParseCreateNetworkVolumeResult parses an HTTP response from a CreateNetworkVolumeWithResponse call

func (CreateNetworkVolumeResult) ContentType

func (r CreateNetworkVolumeResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateNetworkVolumeResult) GetApplicationproblemJSON400

func (r CreateNetworkVolumeResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateNetworkVolumeResult) GetApplicationproblemJSON401

func (r CreateNetworkVolumeResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateNetworkVolumeResult) GetApplicationproblemJSON403

func (r CreateNetworkVolumeResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateNetworkVolumeResult) GetApplicationproblemJSON413 added in v2.1.0

func (r CreateNetworkVolumeResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (CreateNetworkVolumeResult) GetApplicationproblemJSON422

func (r CreateNetworkVolumeResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateNetworkVolumeResult) GetApplicationproblemJSON429

func (r CreateNetworkVolumeResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateNetworkVolumeResult) GetApplicationproblemJSONDefault

func (r CreateNetworkVolumeResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (CreateNetworkVolumeResult) GetBody

func (r CreateNetworkVolumeResult) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateNetworkVolumeResult) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateNetworkVolumeResult) Status

func (r CreateNetworkVolumeResult) Status() string

Status returns HTTPResponse.Status

func (CreateNetworkVolumeResult) StatusCode

func (r CreateNetworkVolumeResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateNetworkVolumeResult201Headers

type CreateNetworkVolumeResult201Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

CreateNetworkVolumeResult201Headers the declared response headers of an HTTP 201 response for CreateNetworkVolume

type CreateNetworkVolumeResult400Headers

type CreateNetworkVolumeResult400Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

CreateNetworkVolumeResult400Headers the declared response headers of an HTTP 400 response for CreateNetworkVolume

type CreateNetworkVolumeResult403Headers

type CreateNetworkVolumeResult403Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

CreateNetworkVolumeResult403Headers the declared response headers of an HTTP 403 response for CreateNetworkVolume

type CreateNetworkVolumeResult413Headers added in v2.1.0

type CreateNetworkVolumeResult413Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

CreateNetworkVolumeResult413Headers the declared response headers of an HTTP 413 response for CreateNetworkVolume

type CreateNetworkVolumeResult422Headers

type CreateNetworkVolumeResult422Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

CreateNetworkVolumeResult422Headers the declared response headers of an HTTP 422 response for CreateNetworkVolume

type CreateNetworkVolumeResult429Headers

type CreateNetworkVolumeResult429Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
	RetryAfter      *int
}

CreateNetworkVolumeResult429Headers the declared response headers of an HTTP 429 response for CreateNetworkVolume

type CreateNetworkVolumeResultDefaultHeaders

type CreateNetworkVolumeResultDefaultHeaders struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

CreateNetworkVolumeResultDefaultHeaders the declared response headers of an HTTP default response for CreateNetworkVolume

type DeleteNetworkVolumeResult

type DeleteNetworkVolumeResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *externalRef0.ErrorResponse
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *externalRef0.ErrorResponse
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *externalRef0.ErrorResponse
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *externalRef0.ErrorResponse
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *externalRef0.ErrorResponse
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *externalRef0.ErrorResponse
	// Headers204 the parsed response headers for an HTTP 204 response
	Headers204 *DeleteNetworkVolumeResult204Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *DeleteNetworkVolumeResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *DeleteNetworkVolumeResult404Headers
	// Headers409 the parsed response headers for an HTTP 409 response
	Headers409 *DeleteNetworkVolumeResult409Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteNetworkVolumeResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *DeleteNetworkVolumeResultDefaultHeaders
}

func ParseDeleteNetworkVolumeResult

func ParseDeleteNetworkVolumeResult(rsp *http.Response) (*DeleteNetworkVolumeResult, error)

ParseDeleteNetworkVolumeResult parses an HTTP response from a DeleteNetworkVolumeWithResponse call

func (DeleteNetworkVolumeResult) ContentType

func (r DeleteNetworkVolumeResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteNetworkVolumeResult) GetApplicationproblemJSON401

func (r DeleteNetworkVolumeResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteNetworkVolumeResult) GetApplicationproblemJSON403

func (r DeleteNetworkVolumeResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteNetworkVolumeResult) GetApplicationproblemJSON404

func (r DeleteNetworkVolumeResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteNetworkVolumeResult) GetApplicationproblemJSON409 added in v2.2.0

func (r DeleteNetworkVolumeResult) GetApplicationproblemJSON409() *externalRef0.ErrorResponse

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DeleteNetworkVolumeResult) GetApplicationproblemJSON429

func (r DeleteNetworkVolumeResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteNetworkVolumeResult) GetApplicationproblemJSONDefault

func (r DeleteNetworkVolumeResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (DeleteNetworkVolumeResult) GetBody

func (r DeleteNetworkVolumeResult) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteNetworkVolumeResult) Status

func (r DeleteNetworkVolumeResult) Status() string

Status returns HTTPResponse.Status

func (DeleteNetworkVolumeResult) StatusCode

func (r DeleteNetworkVolumeResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteNetworkVolumeResult204Headers

type DeleteNetworkVolumeResult204Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

DeleteNetworkVolumeResult204Headers the declared response headers of an HTTP 204 response for DeleteNetworkVolume

type DeleteNetworkVolumeResult403Headers

type DeleteNetworkVolumeResult403Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

DeleteNetworkVolumeResult403Headers the declared response headers of an HTTP 403 response for DeleteNetworkVolume

type DeleteNetworkVolumeResult404Headers

type DeleteNetworkVolumeResult404Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

DeleteNetworkVolumeResult404Headers the declared response headers of an HTTP 404 response for DeleteNetworkVolume

type DeleteNetworkVolumeResult409Headers added in v2.2.0

type DeleteNetworkVolumeResult409Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

DeleteNetworkVolumeResult409Headers the declared response headers of an HTTP 409 response for DeleteNetworkVolume

type DeleteNetworkVolumeResult429Headers

type DeleteNetworkVolumeResult429Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
	RetryAfter      *int
}

DeleteNetworkVolumeResult429Headers the declared response headers of an HTTP 429 response for DeleteNetworkVolume

type DeleteNetworkVolumeResultDefaultHeaders

type DeleteNetworkVolumeResultDefaultHeaders struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

DeleteNetworkVolumeResultDefaultHeaders the declared response headers of an HTTP default response for DeleteNetworkVolume

type GetNetworkVolumeResult

type GetNetworkVolumeResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.NetworkVolume
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *externalRef0.ErrorResponse
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *externalRef0.ErrorResponse
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *externalRef0.ErrorResponse
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *externalRef0.ErrorResponse
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *externalRef0.ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetNetworkVolumeResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetNetworkVolumeResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetNetworkVolumeResult404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetNetworkVolumeResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetNetworkVolumeResultDefaultHeaders
}

func ParseGetNetworkVolumeResult

func ParseGetNetworkVolumeResult(rsp *http.Response) (*GetNetworkVolumeResult, error)

ParseGetNetworkVolumeResult parses an HTTP response from a GetNetworkVolumeWithResponse call

func (GetNetworkVolumeResult) ContentType

func (r GetNetworkVolumeResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetNetworkVolumeResult) GetApplicationproblemJSON401

func (r GetNetworkVolumeResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetNetworkVolumeResult) GetApplicationproblemJSON403

func (r GetNetworkVolumeResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetNetworkVolumeResult) GetApplicationproblemJSON404

func (r GetNetworkVolumeResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetNetworkVolumeResult) GetApplicationproblemJSON429

func (r GetNetworkVolumeResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetNetworkVolumeResult) GetApplicationproblemJSONDefault

func (r GetNetworkVolumeResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (GetNetworkVolumeResult) GetBody

func (r GetNetworkVolumeResult) GetBody() []byte

GetBody returns the raw response body bytes

func (GetNetworkVolumeResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetNetworkVolumeResult) Status

func (r GetNetworkVolumeResult) Status() string

Status returns HTTPResponse.Status

func (GetNetworkVolumeResult) StatusCode

func (r GetNetworkVolumeResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetNetworkVolumeResult200Headers

type GetNetworkVolumeResult200Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetNetworkVolumeResult200Headers the declared response headers of an HTTP 200 response for GetNetworkVolume

type GetNetworkVolumeResult403Headers

type GetNetworkVolumeResult403Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetNetworkVolumeResult403Headers the declared response headers of an HTTP 403 response for GetNetworkVolume

type GetNetworkVolumeResult404Headers

type GetNetworkVolumeResult404Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetNetworkVolumeResult404Headers the declared response headers of an HTTP 404 response for GetNetworkVolume

type GetNetworkVolumeResult429Headers

type GetNetworkVolumeResult429Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
	RetryAfter      *int
}

GetNetworkVolumeResult429Headers the declared response headers of an HTTP 429 response for GetNetworkVolume

type GetNetworkVolumeResultDefaultHeaders

type GetNetworkVolumeResultDefaultHeaders struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetNetworkVolumeResultDefaultHeaders the declared response headers of an HTTP default response for GetNetworkVolume

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListNetworkVolumesParams added in v2.1.0

type ListNetworkVolumesParams struct {
	// Filters Only return resources matching these filters, as URL-encoded JSON. The filters apply before the page is cut, so send the same value with each `cursor` to keep walking the filtered list.
	Filters *externalRef0.ResourceFilters `form:"filters,omitempty" json:"filters,omitempty"`

	// Cursor Opaque resume cursor — pass the previous response's `pagination.nextCursor` through verbatim; omit for the first page. A cursor is only valid for the operation and parameters that issued it; a malformed or foreign cursor is rejected with 422.
	Cursor *externalRef0.PaginationCursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size, 1–1000. Defaults to 1000 when omitted.
	Limit *externalRef0.PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
}

ListNetworkVolumesParams defines parameters for ListNetworkVolumes.

type ListNetworkVolumesResult

type ListNetworkVolumesResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.ListNetworkVolumesResponse
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *externalRef0.ErrorResponse
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *externalRef0.ErrorResponse
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *externalRef0.ErrorResponse
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *externalRef0.ErrorResponse
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *externalRef0.ErrorResponse
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *externalRef0.ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListNetworkVolumesResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListNetworkVolumesResult403Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *ListNetworkVolumesResult413Headers
	// Headers422 the parsed response headers for an HTTP 422 response
	Headers422 *ListNetworkVolumesResult422Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListNetworkVolumesResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListNetworkVolumesResultDefaultHeaders
}

func ParseListNetworkVolumesResult

func ParseListNetworkVolumesResult(rsp *http.Response) (*ListNetworkVolumesResult, error)

ParseListNetworkVolumesResult parses an HTTP response from a ListNetworkVolumesWithResponse call

func (ListNetworkVolumesResult) ContentType

func (r ListNetworkVolumesResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListNetworkVolumesResult) GetApplicationproblemJSON401

func (r ListNetworkVolumesResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListNetworkVolumesResult) GetApplicationproblemJSON403

func (r ListNetworkVolumesResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListNetworkVolumesResult) GetApplicationproblemJSON413 added in v2.1.0

func (r ListNetworkVolumesResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (ListNetworkVolumesResult) GetApplicationproblemJSON422 added in v2.2.0

func (r ListNetworkVolumesResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ListNetworkVolumesResult) GetApplicationproblemJSON429

func (r ListNetworkVolumesResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListNetworkVolumesResult) GetApplicationproblemJSONDefault

func (r ListNetworkVolumesResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (ListNetworkVolumesResult) GetBody

func (r ListNetworkVolumesResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ListNetworkVolumesResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListNetworkVolumesResult) Status

func (r ListNetworkVolumesResult) Status() string

Status returns HTTPResponse.Status

func (ListNetworkVolumesResult) StatusCode

func (r ListNetworkVolumesResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListNetworkVolumesResult200Headers

type ListNetworkVolumesResult200Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListNetworkVolumesResult200Headers the declared response headers of an HTTP 200 response for ListNetworkVolumes

type ListNetworkVolumesResult403Headers

type ListNetworkVolumesResult403Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListNetworkVolumesResult403Headers the declared response headers of an HTTP 403 response for ListNetworkVolumes

type ListNetworkVolumesResult413Headers added in v2.1.0

type ListNetworkVolumesResult413Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListNetworkVolumesResult413Headers the declared response headers of an HTTP 413 response for ListNetworkVolumes

type ListNetworkVolumesResult422Headers added in v2.2.0

type ListNetworkVolumesResult422Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListNetworkVolumesResult422Headers the declared response headers of an HTTP 422 response for ListNetworkVolumes

type ListNetworkVolumesResult429Headers

type ListNetworkVolumesResult429Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
	RetryAfter      *int
}

ListNetworkVolumesResult429Headers the declared response headers of an HTTP 429 response for ListNetworkVolumes

type ListNetworkVolumesResultDefaultHeaders

type ListNetworkVolumesResultDefaultHeaders struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListNetworkVolumesResultDefaultHeaders the declared response headers of an HTTP default response for ListNetworkVolumes

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type UpdateNetworkVolumeJSONRequestBody

type UpdateNetworkVolumeJSONRequestBody = externalRef0.UpdateNetworkVolumeRequest

UpdateNetworkVolumeJSONRequestBody defines body for UpdateNetworkVolume for application/json ContentType.

type UpdateNetworkVolumeResult

type UpdateNetworkVolumeResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.NetworkVolume
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *externalRef0.ErrorResponse
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *externalRef0.ErrorResponse
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *externalRef0.ErrorResponse
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *externalRef0.ErrorResponse
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *externalRef0.ErrorResponse
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *externalRef0.ErrorResponse
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *externalRef0.ErrorResponse
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *externalRef0.ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateNetworkVolumeResult200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *UpdateNetworkVolumeResult400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *UpdateNetworkVolumeResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *UpdateNetworkVolumeResult404Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *UpdateNetworkVolumeResult413Headers
	// Headers422 the parsed response headers for an HTTP 422 response
	Headers422 *UpdateNetworkVolumeResult422Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateNetworkVolumeResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *UpdateNetworkVolumeResultDefaultHeaders
}

func ParseUpdateNetworkVolumeResult

func ParseUpdateNetworkVolumeResult(rsp *http.Response) (*UpdateNetworkVolumeResult, error)

ParseUpdateNetworkVolumeResult parses an HTTP response from a UpdateNetworkVolumeWithResponse call

func (UpdateNetworkVolumeResult) ContentType

func (r UpdateNetworkVolumeResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateNetworkVolumeResult) GetApplicationproblemJSON400

func (r UpdateNetworkVolumeResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateNetworkVolumeResult) GetApplicationproblemJSON401

func (r UpdateNetworkVolumeResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateNetworkVolumeResult) GetApplicationproblemJSON403

func (r UpdateNetworkVolumeResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateNetworkVolumeResult) GetApplicationproblemJSON404

func (r UpdateNetworkVolumeResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UpdateNetworkVolumeResult) GetApplicationproblemJSON413 added in v2.1.0

func (r UpdateNetworkVolumeResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (UpdateNetworkVolumeResult) GetApplicationproblemJSON422

func (r UpdateNetworkVolumeResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateNetworkVolumeResult) GetApplicationproblemJSON429

func (r UpdateNetworkVolumeResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateNetworkVolumeResult) GetApplicationproblemJSONDefault

func (r UpdateNetworkVolumeResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (UpdateNetworkVolumeResult) GetBody

func (r UpdateNetworkVolumeResult) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateNetworkVolumeResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateNetworkVolumeResult) Status

func (r UpdateNetworkVolumeResult) Status() string

Status returns HTTPResponse.Status

func (UpdateNetworkVolumeResult) StatusCode

func (r UpdateNetworkVolumeResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateNetworkVolumeResult200Headers

type UpdateNetworkVolumeResult200Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

UpdateNetworkVolumeResult200Headers the declared response headers of an HTTP 200 response for UpdateNetworkVolume

type UpdateNetworkVolumeResult400Headers

type UpdateNetworkVolumeResult400Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

UpdateNetworkVolumeResult400Headers the declared response headers of an HTTP 400 response for UpdateNetworkVolume

type UpdateNetworkVolumeResult403Headers

type UpdateNetworkVolumeResult403Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

UpdateNetworkVolumeResult403Headers the declared response headers of an HTTP 403 response for UpdateNetworkVolume

type UpdateNetworkVolumeResult404Headers

type UpdateNetworkVolumeResult404Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

UpdateNetworkVolumeResult404Headers the declared response headers of an HTTP 404 response for UpdateNetworkVolume

type UpdateNetworkVolumeResult413Headers added in v2.1.0

type UpdateNetworkVolumeResult413Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

UpdateNetworkVolumeResult413Headers the declared response headers of an HTTP 413 response for UpdateNetworkVolume

type UpdateNetworkVolumeResult422Headers

type UpdateNetworkVolumeResult422Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

UpdateNetworkVolumeResult422Headers the declared response headers of an HTTP 422 response for UpdateNetworkVolume

type UpdateNetworkVolumeResult429Headers

type UpdateNetworkVolumeResult429Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
	RetryAfter      *int
}

UpdateNetworkVolumeResult429Headers the declared response headers of an HTTP 429 response for UpdateNetworkVolume

type UpdateNetworkVolumeResultDefaultHeaders

type UpdateNetworkVolumeResultDefaultHeaders struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

UpdateNetworkVolumeResultDefaultHeaders the declared response headers of an HTTP default response for UpdateNetworkVolume

Jump to

Keyboard shortcuts

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