Documentation
¶
Overview ¶
Package api 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 ¶
- func NewAutoAllocateRequest(server string, body AutoAllocateJSONRequestBody) (*http.Request, error)
- func NewAutoAllocateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateAPITokenRequest(server string, body CreateAPITokenJSONRequestBody) (*http.Request, error)
- func NewCreateAPITokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateAllocationRequest(server string, body CreateAllocationJSONRequestBody) (*http.Request, error)
- func NewCreateAllocationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateBlockRequest(server string, body CreateBlockJSONRequestBody) (*http.Request, error)
- func NewCreateBlockRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateEnvironmentRequest(server string, body CreateEnvironmentJSONRequestBody) (*http.Request, error)
- func NewCreateEnvironmentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateIntegrationRequest(server string, body CreateIntegrationJSONRequestBody) (*http.Request, error)
- func NewCreateIntegrationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreatePoolRequest(server string, body CreatePoolJSONRequestBody) (*http.Request, error)
- func NewCreatePoolRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateReservedBlockRequest(server string, body CreateReservedBlockJSONRequestBody) (*http.Request, error)
- func NewCreateReservedBlockRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteAPITokenRequest(server string, id UUID) (*http.Request, error)
- func NewDeleteAllocationRequest(server string, id UUID) (*http.Request, error)
- func NewDeleteBlockRequest(server string, id UUID) (*http.Request, error)
- func NewDeleteEnvironmentRequest(server string, id UUID) (*http.Request, error)
- func NewDeleteIntegrationRequest(server string, id UUID) (*http.Request, error)
- func NewDeletePoolRequest(server string, id UUID) (*http.Request, error)
- func NewDeleteReservedBlockRequest(server string, id UUID) (*http.Request, error)
- func NewGetAllocationRequest(server string, id UUID) (*http.Request, error)
- func NewGetBlockRequest(server string, id UUID) (*http.Request, error)
- func NewGetBlockUsageRequest(server string, id UUID) (*http.Request, error)
- func NewGetCurrentUserRequest(server string) (*http.Request, error)
- func NewGetEnvironmentRequest(server string, id UUID) (*http.Request, error)
- func NewGetIntegrationRequest(server string, id UUID) (*http.Request, error)
- func NewGetPoolRequest(server string, id UUID) (*http.Request, error)
- func NewGetSetupStatusRequest(server string) (*http.Request, error)
- func NewListAPITokensRequest(server string) (*http.Request, error)
- func NewListAllocationsRequest(server string, params *ListAllocationsParams) (*http.Request, error)
- func NewListBlocksRequest(server string, params *ListBlocksParams) (*http.Request, error)
- func NewListEnvironmentsRequest(server string, params *ListEnvironmentsParams) (*http.Request, error)
- func NewListIntegrationsRequest(server string, params *ListIntegrationsParams) (*http.Request, error)
- func NewListPoolsRequest(server string, params *ListPoolsParams) (*http.Request, error)
- func NewListReservedBlocksRequest(server string, params *ListReservedBlocksParams) (*http.Request, error)
- func NewLoginRequest(server string, body LoginJSONRequestBody) (*http.Request, error)
- func NewLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewLogoutRequest(server string) (*http.Request, error)
- func NewMarkTourCompletedRequest(server string) (*http.Request, error)
- func NewPostApiSetupStatusRequest(server string, body PostApiSetupStatusJSONRequestBody) (*http.Request, error)
- func NewPostApiSetupStatusRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostSetupRequest(server string, body PostSetupJSONRequestBody) (*http.Request, error)
- func NewPostSetupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSuggestBlockCIDRRequest(server string, id UUID, params *SuggestBlockCIDRParams) (*http.Request, error)
- func NewSuggestPoolBlockCIDRRequest(server string, id UUID, params *SuggestPoolBlockCIDRParams) (*http.Request, error)
- func NewSyncIntegrationRequest(server string, id UUID) (*http.Request, error)
- func NewUpdateAllocationRequest(server string, id UUID, body UpdateAllocationJSONRequestBody) (*http.Request, error)
- func NewUpdateAllocationRequestWithBody(server string, id UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateBlockRequest(server string, id UUID, body UpdateBlockJSONRequestBody) (*http.Request, error)
- func NewUpdateBlockRequestWithBody(server string, id UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateEnvironmentRequest(server string, id UUID, body UpdateEnvironmentJSONRequestBody) (*http.Request, error)
- func NewUpdateEnvironmentRequestWithBody(server string, id UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateIntegrationRequest(server string, id UUID, body UpdateIntegrationJSONRequestBody) (*http.Request, error)
- func NewUpdateIntegrationRequestWithBody(server string, id UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdatePoolRequest(server string, id UUID, body UpdatePoolJSONRequestBody) (*http.Request, error)
- func NewUpdatePoolRequestWithBody(server string, id UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateReservedBlockRequest(server string, id UUID, body UpdateReservedBlockJSONRequestBody) (*http.Request, error)
- func NewUpdateReservedBlockRequestWithBody(server string, id UUID, contentType string, body io.Reader) (*http.Request, error)
- type AllocationListOutput
- type AllocationOutput
- type ApiTokenResponse
- type AutoAllocateInput
- type AutoAllocateJSONRequestBody
- type AutoAllocateResponse
- func (r AutoAllocateResponse) ContentType() string
- func (r AutoAllocateResponse) GetBody() []byte
- func (r AutoAllocateResponse) GetJSON200() *AllocationOutput
- func (r AutoAllocateResponse) GetJSON400() *ErrorResponse
- func (r AutoAllocateResponse) GetJSON404() *ErrorResponse
- func (r AutoAllocateResponse) GetJSON412() *ErrorResponse
- func (r AutoAllocateResponse) GetJSON500() *ErrorResponse
- func (r AutoAllocateResponse) Status() string
- func (r AutoAllocateResponse) StatusCode() int
- type BlockListOutput
- type BlockOutput
- type BlockUsageOutput
- type Client
- func (c *Client) AutoAllocate(ctx context.Context, body AutoAllocateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AutoAllocateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateAPIToken(ctx context.Context, body CreateAPITokenJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAPITokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateAllocation(ctx context.Context, body CreateAllocationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAllocationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateBlock(ctx context.Context, body CreateBlockJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateBlockWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateEnvironment(ctx context.Context, body CreateEnvironmentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateEnvironmentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateIntegration(ctx context.Context, body CreateIntegrationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateIntegrationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreatePool(ctx context.Context, body CreatePoolJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreatePoolWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateReservedBlock(ctx context.Context, body CreateReservedBlockJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateReservedBlockWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteAPIToken(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteAllocation(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteBlock(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteEnvironment(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteIntegration(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeletePool(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteReservedBlock(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAllocation(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBlock(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBlockUsage(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCurrentUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEnvironment(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetIntegration(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetPool(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSetupStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAPITokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAllocations(ctx context.Context, params *ListAllocationsParams, ...) (*http.Response, error)
- func (c *Client) ListBlocks(ctx context.Context, params *ListBlocksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListEnvironments(ctx context.Context, params *ListEnvironmentsParams, ...) (*http.Response, error)
- func (c *Client) ListIntegrations(ctx context.Context, params *ListIntegrationsParams, ...) (*http.Response, error)
- func (c *Client) ListPools(ctx context.Context, params *ListPoolsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListReservedBlocks(ctx context.Context, params *ListReservedBlocksParams, ...) (*http.Response, error)
- func (c *Client) Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LoginWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Logout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) MarkTourCompleted(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostApiSetupStatus(ctx context.Context, body PostApiSetupStatusJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiSetupStatusWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostSetup(ctx context.Context, body PostSetupJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostSetupWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SuggestBlockCIDR(ctx context.Context, id UUID, params *SuggestBlockCIDRParams, ...) (*http.Response, error)
- func (c *Client) SuggestPoolBlockCIDR(ctx context.Context, id UUID, params *SuggestPoolBlockCIDRParams, ...) (*http.Response, error)
- func (c *Client) SyncIntegration(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateAllocation(ctx context.Context, id UUID, body UpdateAllocationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateAllocationWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateBlock(ctx context.Context, id UUID, body UpdateBlockJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateBlockWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateEnvironment(ctx context.Context, id UUID, body UpdateEnvironmentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateEnvironmentWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateIntegration(ctx context.Context, id UUID, body UpdateIntegrationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateIntegrationWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdatePool(ctx context.Context, id UUID, body UpdatePoolJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdatePoolWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateReservedBlock(ctx context.Context, id UUID, body UpdateReservedBlockJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateReservedBlockWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AutoAllocateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AutoAllocateResponse, error)
- func (c *ClientWithResponses) AutoAllocateWithResponse(ctx context.Context, body AutoAllocateJSONRequestBody, ...) (*AutoAllocateResponse, error)
- func (c *ClientWithResponses) CreateAPITokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAPITokenResponse, error)
- func (c *ClientWithResponses) CreateAPITokenWithResponse(ctx context.Context, body CreateAPITokenJSONRequestBody, ...) (*CreateAPITokenResponse, error)
- func (c *ClientWithResponses) CreateAllocationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAllocationResponse, error)
- func (c *ClientWithResponses) CreateAllocationWithResponse(ctx context.Context, body CreateAllocationJSONRequestBody, ...) (*CreateAllocationResponse, error)
- func (c *ClientWithResponses) CreateBlockWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateBlockResponse, error)
- func (c *ClientWithResponses) CreateBlockWithResponse(ctx context.Context, body CreateBlockJSONRequestBody, ...) (*CreateBlockResponse, error)
- func (c *ClientWithResponses) CreateEnvironmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateEnvironmentResponse, error)
- func (c *ClientWithResponses) CreateEnvironmentWithResponse(ctx context.Context, body CreateEnvironmentJSONRequestBody, ...) (*CreateEnvironmentResponse, error)
- func (c *ClientWithResponses) CreateIntegrationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateIntegrationResponse, error)
- func (c *ClientWithResponses) CreateIntegrationWithResponse(ctx context.Context, body CreateIntegrationJSONRequestBody, ...) (*CreateIntegrationResponse, error)
- func (c *ClientWithResponses) CreatePoolWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreatePoolResponse, error)
- func (c *ClientWithResponses) CreatePoolWithResponse(ctx context.Context, body CreatePoolJSONRequestBody, ...) (*CreatePoolResponse, error)
- func (c *ClientWithResponses) CreateReservedBlockWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateReservedBlockResponse, error)
- func (c *ClientWithResponses) CreateReservedBlockWithResponse(ctx context.Context, body CreateReservedBlockJSONRequestBody, ...) (*CreateReservedBlockResponse, error)
- func (c *ClientWithResponses) DeleteAPITokenWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteAPITokenResponse, error)
- func (c *ClientWithResponses) DeleteAllocationWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteAllocationResponse, error)
- func (c *ClientWithResponses) DeleteBlockWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteBlockResponse, error)
- func (c *ClientWithResponses) DeleteEnvironmentWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteEnvironmentResponse, error)
- func (c *ClientWithResponses) DeleteIntegrationWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteIntegrationResponse, error)
- func (c *ClientWithResponses) DeletePoolWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeletePoolResponse, error)
- func (c *ClientWithResponses) DeleteReservedBlockWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteReservedBlockResponse, error)
- func (c *ClientWithResponses) GetAllocationWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetAllocationResponse, error)
- func (c *ClientWithResponses) GetBlockUsageWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetBlockUsageResponse, error)
- func (c *ClientWithResponses) GetBlockWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetBlockResponse, error)
- func (c *ClientWithResponses) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)
- func (c *ClientWithResponses) GetEnvironmentWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetEnvironmentResponse, error)
- func (c *ClientWithResponses) GetIntegrationWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetIntegrationResponse, error)
- func (c *ClientWithResponses) GetPoolWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetPoolResponse, error)
- func (c *ClientWithResponses) GetSetupStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSetupStatusResponse, error)
- func (c *ClientWithResponses) ListAPITokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAPITokensResponse, error)
- func (c *ClientWithResponses) ListAllocationsWithResponse(ctx context.Context, params *ListAllocationsParams, ...) (*ListAllocationsResponse, error)
- func (c *ClientWithResponses) ListBlocksWithResponse(ctx context.Context, params *ListBlocksParams, reqEditors ...RequestEditorFn) (*ListBlocksResponse, error)
- func (c *ClientWithResponses) ListEnvironmentsWithResponse(ctx context.Context, params *ListEnvironmentsParams, ...) (*ListEnvironmentsResponse, error)
- func (c *ClientWithResponses) ListIntegrationsWithResponse(ctx context.Context, params *ListIntegrationsParams, ...) (*ListIntegrationsResponse, error)
- func (c *ClientWithResponses) ListPoolsWithResponse(ctx context.Context, params *ListPoolsParams, reqEditors ...RequestEditorFn) (*ListPoolsResponse, error)
- func (c *ClientWithResponses) ListReservedBlocksWithResponse(ctx context.Context, params *ListReservedBlocksParams, ...) (*ListReservedBlocksResponse, error)
- func (c *ClientWithResponses) LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*LoginResponse, error)
- func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)
- func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
- func (c *ClientWithResponses) MarkTourCompletedWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MarkTourCompletedResponse, error)
- func (c *ClientWithResponses) PostApiSetupStatusWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiSetupStatusResponse, error)
- func (c *ClientWithResponses) PostApiSetupStatusWithResponse(ctx context.Context, body PostApiSetupStatusJSONRequestBody, ...) (*PostApiSetupStatusResponse, error)
- func (c *ClientWithResponses) PostSetupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostSetupResponse, error)
- func (c *ClientWithResponses) PostSetupWithResponse(ctx context.Context, body PostSetupJSONRequestBody, ...) (*PostSetupResponse, error)
- func (c *ClientWithResponses) SuggestBlockCIDRWithResponse(ctx context.Context, id UUID, params *SuggestBlockCIDRParams, ...) (*SuggestBlockCIDRResponse, error)
- func (c *ClientWithResponses) SuggestPoolBlockCIDRWithResponse(ctx context.Context, id UUID, params *SuggestPoolBlockCIDRParams, ...) (*SuggestPoolBlockCIDRResponse, error)
- func (c *ClientWithResponses) SyncIntegrationWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*SyncIntegrationResponse, error)
- func (c *ClientWithResponses) UpdateAllocationWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, ...) (*UpdateAllocationResponse, error)
- func (c *ClientWithResponses) UpdateAllocationWithResponse(ctx context.Context, id UUID, body UpdateAllocationJSONRequestBody, ...) (*UpdateAllocationResponse, error)
- func (c *ClientWithResponses) UpdateBlockWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, ...) (*UpdateBlockResponse, error)
- func (c *ClientWithResponses) UpdateBlockWithResponse(ctx context.Context, id UUID, body UpdateBlockJSONRequestBody, ...) (*UpdateBlockResponse, error)
- func (c *ClientWithResponses) UpdateEnvironmentWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, ...) (*UpdateEnvironmentResponse, error)
- func (c *ClientWithResponses) UpdateEnvironmentWithResponse(ctx context.Context, id UUID, body UpdateEnvironmentJSONRequestBody, ...) (*UpdateEnvironmentResponse, error)
- func (c *ClientWithResponses) UpdateIntegrationWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, ...) (*UpdateIntegrationResponse, error)
- func (c *ClientWithResponses) UpdateIntegrationWithResponse(ctx context.Context, id UUID, body UpdateIntegrationJSONRequestBody, ...) (*UpdateIntegrationResponse, error)
- func (c *ClientWithResponses) UpdatePoolWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, ...) (*UpdatePoolResponse, error)
- func (c *ClientWithResponses) UpdatePoolWithResponse(ctx context.Context, id UUID, body UpdatePoolJSONRequestBody, ...) (*UpdatePoolResponse, error)
- func (c *ClientWithResponses) UpdateReservedBlockWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, ...) (*UpdateReservedBlockResponse, error)
- func (c *ClientWithResponses) UpdateReservedBlockWithResponse(ctx context.Context, id UUID, body UpdateReservedBlockJSONRequestBody, ...) (*UpdateReservedBlockResponse, error)
- type ClientWithResponsesInterface
- type CreateAPITokenJSONRequestBody
- type CreateAPITokenResponse
- func (r CreateAPITokenResponse) ContentType() string
- func (r CreateAPITokenResponse) GetBody() []byte
- func (r CreateAPITokenResponse) GetJSON200() *CreateTokenOutput
- func (r CreateAPITokenResponse) GetJSON400() *ErrorResponse
- func (r CreateAPITokenResponse) GetJSON401() *ErrorResponse
- func (r CreateAPITokenResponse) GetJSON403() *ErrorResponse
- func (r CreateAPITokenResponse) GetJSON500() *ErrorResponse
- func (r CreateAPITokenResponse) Status() string
- func (r CreateAPITokenResponse) StatusCode() int
- type CreateAllocationInput
- type CreateAllocationJSONRequestBody
- type CreateAllocationResponse
- func (r CreateAllocationResponse) ContentType() string
- func (r CreateAllocationResponse) GetBody() []byte
- func (r CreateAllocationResponse) GetJSON200() *AllocationOutput
- func (r CreateAllocationResponse) GetJSON400() *ErrorResponse
- func (r CreateAllocationResponse) GetJSON404() *ErrorResponse
- func (r CreateAllocationResponse) GetJSON412() *ErrorResponse
- func (r CreateAllocationResponse) GetJSON500() *ErrorResponse
- func (r CreateAllocationResponse) Status() string
- func (r CreateAllocationResponse) StatusCode() int
- type CreateBlockInput
- type CreateBlockJSONRequestBody
- type CreateBlockResponse
- func (r CreateBlockResponse) ContentType() string
- func (r CreateBlockResponse) GetBody() []byte
- func (r CreateBlockResponse) GetJSON200() *BlockOutput
- func (r CreateBlockResponse) GetJSON400() *ErrorResponse
- func (r CreateBlockResponse) GetJSON500() *ErrorResponse
- func (r CreateBlockResponse) Status() string
- func (r CreateBlockResponse) StatusCode() int
- type CreateEnvironmentInput
- type CreateEnvironmentJSONRequestBody
- type CreateEnvironmentResponse
- func (r CreateEnvironmentResponse) ContentType() string
- func (r CreateEnvironmentResponse) GetBody() []byte
- func (r CreateEnvironmentResponse) GetJSON200() *EnvironmentOutput
- func (r CreateEnvironmentResponse) GetJSON400() *ErrorResponse
- func (r CreateEnvironmentResponse) GetJSON500() *ErrorResponse
- func (r CreateEnvironmentResponse) Status() string
- func (r CreateEnvironmentResponse) StatusCode() int
- type CreateIntegrationInput
- type CreateIntegrationJSONRequestBody
- type CreateIntegrationResponse
- func (r CreateIntegrationResponse) ContentType() string
- func (r CreateIntegrationResponse) GetBody() []byte
- func (r CreateIntegrationResponse) GetJSON200() *IntegrationOutput
- func (r CreateIntegrationResponse) GetJSON400() *ErrorResponse
- func (r CreateIntegrationResponse) GetJSON401() *ErrorResponse
- func (r CreateIntegrationResponse) GetJSON500() *ErrorResponse
- func (r CreateIntegrationResponse) Status() string
- func (r CreateIntegrationResponse) StatusCode() int
- type CreatePoolInput
- type CreatePoolJSONRequestBody
- type CreatePoolResponse
- func (r CreatePoolResponse) ContentType() string
- func (r CreatePoolResponse) GetBody() []byte
- func (r CreatePoolResponse) GetJSON200() *PoolOutput
- func (r CreatePoolResponse) GetJSON400() *ErrorResponse
- func (r CreatePoolResponse) GetJSON404() *ErrorResponse
- func (r CreatePoolResponse) GetJSON500() *ErrorResponse
- func (r CreatePoolResponse) Status() string
- func (r CreatePoolResponse) StatusCode() int
- type CreateReservedBlockInput
- type CreateReservedBlockJSONRequestBody
- type CreateReservedBlockResponse
- func (r CreateReservedBlockResponse) ContentType() string
- func (r CreateReservedBlockResponse) GetBody() []byte
- func (r CreateReservedBlockResponse) GetJSON200() *ReservedBlockOutput
- func (r CreateReservedBlockResponse) GetJSON400() *ErrorResponse
- func (r CreateReservedBlockResponse) GetJSON403() *ErrorResponse
- func (r CreateReservedBlockResponse) GetJSON500() *ErrorResponse
- func (r CreateReservedBlockResponse) Status() string
- func (r CreateReservedBlockResponse) StatusCode() int
- type CreateTokenOutput
- type CreateTokenRequest
- type CreateTokenResponse
- type DeleteAPITokenResponse
- func (r DeleteAPITokenResponse) ContentType() string
- func (r DeleteAPITokenResponse) GetBody() []byte
- func (r DeleteAPITokenResponse) GetJSON401() *ErrorResponse
- func (r DeleteAPITokenResponse) GetJSON404() *ErrorResponse
- func (r DeleteAPITokenResponse) GetJSON500() *ErrorResponse
- func (r DeleteAPITokenResponse) Status() string
- func (r DeleteAPITokenResponse) StatusCode() int
- type DeleteAllocationResponse
- func (r DeleteAllocationResponse) ContentType() string
- func (r DeleteAllocationResponse) GetBody() []byte
- func (r DeleteAllocationResponse) GetJSON404() *ErrorResponse
- func (r DeleteAllocationResponse) GetJSON500() *ErrorResponse
- func (r DeleteAllocationResponse) Status() string
- func (r DeleteAllocationResponse) StatusCode() int
- type DeleteBlockResponse
- func (r DeleteBlockResponse) ContentType() string
- func (r DeleteBlockResponse) GetBody() []byte
- func (r DeleteBlockResponse) GetJSON404() *ErrorResponse
- func (r DeleteBlockResponse) GetJSON500() *ErrorResponse
- func (r DeleteBlockResponse) Status() string
- func (r DeleteBlockResponse) StatusCode() int
- type DeleteEnvironmentResponse
- func (r DeleteEnvironmentResponse) ContentType() string
- func (r DeleteEnvironmentResponse) GetBody() []byte
- func (r DeleteEnvironmentResponse) GetJSON404() *ErrorResponse
- func (r DeleteEnvironmentResponse) GetJSON500() *ErrorResponse
- func (r DeleteEnvironmentResponse) Status() string
- func (r DeleteEnvironmentResponse) StatusCode() int
- type DeleteIntegrationResponse
- func (r DeleteIntegrationResponse) ContentType() string
- func (r DeleteIntegrationResponse) GetBody() []byte
- func (r DeleteIntegrationResponse) GetJSON200() *IntegrationOutput
- func (r DeleteIntegrationResponse) GetJSON401() *ErrorResponse
- func (r DeleteIntegrationResponse) GetJSON404() *ErrorResponse
- func (r DeleteIntegrationResponse) GetJSON500() *ErrorResponse
- func (r DeleteIntegrationResponse) Status() string
- func (r DeleteIntegrationResponse) StatusCode() int
- type DeletePoolResponse
- type DeleteReservedBlockResponse
- func (r DeleteReservedBlockResponse) ContentType() string
- func (r DeleteReservedBlockResponse) GetBody() []byte
- func (r DeleteReservedBlockResponse) GetJSON403() *ErrorResponse
- func (r DeleteReservedBlockResponse) GetJSON404() *ErrorResponse
- func (r DeleteReservedBlockResponse) GetJSON500() *ErrorResponse
- func (r DeleteReservedBlockResponse) Status() string
- func (r DeleteReservedBlockResponse) StatusCode() int
- type EnvironmentDetailOutput
- type EnvironmentListOutput
- type EnvironmentOutput
- type ErrorResponse
- type GetAllocationResponse
- func (r GetAllocationResponse) ContentType() string
- func (r GetAllocationResponse) GetBody() []byte
- func (r GetAllocationResponse) GetJSON200() *AllocationOutput
- func (r GetAllocationResponse) GetJSON404() *ErrorResponse
- func (r GetAllocationResponse) GetJSON500() *ErrorResponse
- func (r GetAllocationResponse) Status() string
- func (r GetAllocationResponse) StatusCode() int
- type GetBlockResponse
- func (r GetBlockResponse) ContentType() string
- func (r GetBlockResponse) GetBody() []byte
- func (r GetBlockResponse) GetJSON200() *BlockOutput
- func (r GetBlockResponse) GetJSON404() *ErrorResponse
- func (r GetBlockResponse) GetJSON500() *ErrorResponse
- func (r GetBlockResponse) Status() string
- func (r GetBlockResponse) StatusCode() int
- type GetBlockUsageResponse
- func (r GetBlockUsageResponse) ContentType() string
- func (r GetBlockUsageResponse) GetBody() []byte
- func (r GetBlockUsageResponse) GetJSON200() *BlockUsageOutput
- func (r GetBlockUsageResponse) GetJSON404() *ErrorResponse
- func (r GetBlockUsageResponse) GetJSON500() *ErrorResponse
- func (r GetBlockUsageResponse) Status() string
- func (r GetBlockUsageResponse) StatusCode() int
- type GetCurrentUserResponse
- func (r GetCurrentUserResponse) ContentType() string
- func (r GetCurrentUserResponse) GetBody() []byte
- func (r GetCurrentUserResponse) GetJSON200() *MeOutput
- func (r GetCurrentUserResponse) GetJSON401() *ErrorResponse
- func (r GetCurrentUserResponse) Status() string
- func (r GetCurrentUserResponse) StatusCode() int
- type GetEnvironmentResponse
- func (r GetEnvironmentResponse) ContentType() string
- func (r GetEnvironmentResponse) GetBody() []byte
- func (r GetEnvironmentResponse) GetJSON200() *EnvironmentDetailOutput
- func (r GetEnvironmentResponse) GetJSON404() *ErrorResponse
- func (r GetEnvironmentResponse) GetJSON500() *ErrorResponse
- func (r GetEnvironmentResponse) Status() string
- func (r GetEnvironmentResponse) StatusCode() int
- type GetIntegrationResponse
- func (r GetIntegrationResponse) ContentType() string
- func (r GetIntegrationResponse) GetBody() []byte
- func (r GetIntegrationResponse) GetJSON200() *IntegrationOutput
- func (r GetIntegrationResponse) GetJSON401() *ErrorResponse
- func (r GetIntegrationResponse) GetJSON404() *ErrorResponse
- func (r GetIntegrationResponse) Status() string
- func (r GetIntegrationResponse) StatusCode() int
- type GetPoolResponse
- func (r GetPoolResponse) ContentType() string
- func (r GetPoolResponse) GetBody() []byte
- func (r GetPoolResponse) GetJSON200() *PoolOutput
- func (r GetPoolResponse) GetJSON404() *ErrorResponse
- func (r GetPoolResponse) GetJSON500() *ErrorResponse
- func (r GetPoolResponse) Status() string
- func (r GetPoolResponse) StatusCode() int
- type GetSetupStatusOutput
- type GetSetupStatusResponse
- func (r GetSetupStatusResponse) ContentType() string
- func (r GetSetupStatusResponse) GetBody() []byte
- func (r GetSetupStatusResponse) GetJSON200() *GetSetupStatusOutput
- func (r GetSetupStatusResponse) GetJSON400() *ErrorResponse
- func (r GetSetupStatusResponse) Status() string
- func (r GetSetupStatusResponse) StatusCode() int
- type HttpRequestDoer
- type IntegrationListOutput
- type IntegrationOutput
- type ListAPITokensResponse
- func (r ListAPITokensResponse) ContentType() string
- func (r ListAPITokensResponse) GetBody() []byte
- func (r ListAPITokensResponse) GetJSON200() *ListTokensOutput
- func (r ListAPITokensResponse) GetJSON401() *ErrorResponse
- func (r ListAPITokensResponse) GetJSON500() *ErrorResponse
- func (r ListAPITokensResponse) Status() string
- func (r ListAPITokensResponse) StatusCode() int
- type ListAllocationsParams
- type ListAllocationsResponse
- func (r ListAllocationsResponse) ContentType() string
- func (r ListAllocationsResponse) GetBody() []byte
- func (r ListAllocationsResponse) GetJSON200() *AllocationListOutput
- func (r ListAllocationsResponse) GetJSON500() *ErrorResponse
- func (r ListAllocationsResponse) Status() string
- func (r ListAllocationsResponse) StatusCode() int
- type ListBlocksParams
- type ListBlocksResponse
- type ListEnvironmentsParams
- type ListEnvironmentsResponse
- func (r ListEnvironmentsResponse) ContentType() string
- func (r ListEnvironmentsResponse) GetBody() []byte
- func (r ListEnvironmentsResponse) GetJSON200() *EnvironmentListOutput
- func (r ListEnvironmentsResponse) GetJSON500() *ErrorResponse
- func (r ListEnvironmentsResponse) Status() string
- func (r ListEnvironmentsResponse) StatusCode() int
- type ListIntegrationsParams
- type ListIntegrationsResponse
- func (r ListIntegrationsResponse) ContentType() string
- func (r ListIntegrationsResponse) GetBody() []byte
- func (r ListIntegrationsResponse) GetJSON200() *IntegrationListOutput
- func (r ListIntegrationsResponse) GetJSON400() *ErrorResponse
- func (r ListIntegrationsResponse) GetJSON401() *ErrorResponse
- func (r ListIntegrationsResponse) GetJSON500() *ErrorResponse
- func (r ListIntegrationsResponse) Status() string
- func (r ListIntegrationsResponse) StatusCode() int
- type ListPoolsParams
- type ListPoolsResponse
- func (r ListPoolsResponse) ContentType() string
- func (r ListPoolsResponse) GetBody() []byte
- func (r ListPoolsResponse) GetJSON200() *PoolListOutput
- func (r ListPoolsResponse) GetJSON400() *ErrorResponse
- func (r ListPoolsResponse) GetJSON404() *ErrorResponse
- func (r ListPoolsResponse) GetJSON500() *ErrorResponse
- func (r ListPoolsResponse) Status() string
- func (r ListPoolsResponse) StatusCode() int
- type ListReservedBlocksParams
- type ListReservedBlocksResponse
- func (r ListReservedBlocksResponse) ContentType() string
- func (r ListReservedBlocksResponse) GetBody() []byte
- func (r ListReservedBlocksResponse) GetJSON200() *ReservedBlockListOutput
- func (r ListReservedBlocksResponse) GetJSON403() *ErrorResponse
- func (r ListReservedBlocksResponse) GetJSON500() *ErrorResponse
- func (r ListReservedBlocksResponse) Status() string
- func (r ListReservedBlocksResponse) StatusCode() int
- type ListTokensOutput
- type LoginInput
- type LoginJSONRequestBody
- type LoginOutput
- type LoginResponse
- func (r LoginResponse) ContentType() string
- func (r LoginResponse) GetBody() []byte
- func (r LoginResponse) GetJSON200() *LoginOutput
- func (r LoginResponse) GetJSON400() *ErrorResponse
- func (r LoginResponse) GetJSON401() *ErrorResponse
- func (r LoginResponse) GetJSON403() *ErrorResponse
- func (r LoginResponse) GetJSON429() *ErrorResponse
- func (r LoginResponse) Status() string
- func (r LoginResponse) StatusCode() int
- type LogoutResponse
- type MarkTourCompletedResponse
- func (r MarkTourCompletedResponse) ContentType() string
- func (r MarkTourCompletedResponse) GetBody() []byte
- func (r MarkTourCompletedResponse) GetJSON401() *ErrorResponse
- func (r MarkTourCompletedResponse) GetJSON500() *ErrorResponse
- func (r MarkTourCompletedResponse) Status() string
- func (r MarkTourCompletedResponse) StatusCode() int
- type MeOutput
- type PoolItemInput
- type PoolListOutput
- type PoolOutput
- type PostApiSetupStatusJSONRequestBody
- type PostApiSetupStatusResponse
- func (r PostApiSetupStatusResponse) ContentType() string
- func (r PostApiSetupStatusResponse) GetBody() []byte
- func (r PostApiSetupStatusResponse) GetJSON200() *PostSetupOutput
- func (r PostApiSetupStatusResponse) GetJSON400() *ErrorResponse
- func (r PostApiSetupStatusResponse) GetJSON403() *ErrorResponse
- func (r PostApiSetupStatusResponse) GetJSON500() *ErrorResponse
- func (r PostApiSetupStatusResponse) Status() string
- func (r PostApiSetupStatusResponse) StatusCode() int
- type PostSetupInput
- type PostSetupJSONRequestBody
- type PostSetupOutput
- type PostSetupResponse
- func (r PostSetupResponse) ContentType() string
- func (r PostSetupResponse) GetBody() []byte
- func (r PostSetupResponse) GetJSON200() *PostSetupOutput
- func (r PostSetupResponse) GetJSON400() *ErrorResponse
- func (r PostSetupResponse) GetJSON403() *ErrorResponse
- func (r PostSetupResponse) GetJSON500() *ErrorResponse
- func (r PostSetupResponse) Status() string
- func (r PostSetupResponse) StatusCode() int
- type RequestEditorFn
- type ReservedBlockListOutput
- type ReservedBlockOutput
- type SuggestBlockCIDROutput
- type SuggestBlockCIDRParams
- type SuggestBlockCIDRResponse
- func (r SuggestBlockCIDRResponse) ContentType() string
- func (r SuggestBlockCIDRResponse) GetBody() []byte
- func (r SuggestBlockCIDRResponse) GetJSON200() *SuggestBlockCIDROutput
- func (r SuggestBlockCIDRResponse) GetJSON400() *ErrorResponse
- func (r SuggestBlockCIDRResponse) GetJSON404() *ErrorResponse
- func (r SuggestBlockCIDRResponse) GetJSON500() *ErrorResponse
- func (r SuggestBlockCIDRResponse) Status() string
- func (r SuggestBlockCIDRResponse) StatusCode() int
- type SuggestPoolBlockCIDRParams
- type SuggestPoolBlockCIDRResponse
- func (r SuggestPoolBlockCIDRResponse) ContentType() string
- func (r SuggestPoolBlockCIDRResponse) GetBody() []byte
- func (r SuggestPoolBlockCIDRResponse) GetJSON200() *SuggestBlockCIDROutput
- func (r SuggestPoolBlockCIDRResponse) GetJSON400() *ErrorResponse
- func (r SuggestPoolBlockCIDRResponse) GetJSON404() *ErrorResponse
- func (r SuggestPoolBlockCIDRResponse) GetJSON500() *ErrorResponse
- func (r SuggestPoolBlockCIDRResponse) Status() string
- func (r SuggestPoolBlockCIDRResponse) StatusCode() int
- type SyncIntegrationResponse
- func (r SyncIntegrationResponse) ContentType() string
- func (r SyncIntegrationResponse) GetBody() []byte
- func (r SyncIntegrationResponse) GetJSON200() *IntegrationOutput
- func (r SyncIntegrationResponse) GetJSON401() *ErrorResponse
- func (r SyncIntegrationResponse) GetJSON404() *ErrorResponse
- func (r SyncIntegrationResponse) GetJSON500() *ErrorResponse
- func (r SyncIntegrationResponse) Status() string
- func (r SyncIntegrationResponse) StatusCode() int
- type UUID
- type UpdateAllocationInput
- type UpdateAllocationJSONRequestBody
- type UpdateAllocationResponse
- func (r UpdateAllocationResponse) ContentType() string
- func (r UpdateAllocationResponse) GetBody() []byte
- func (r UpdateAllocationResponse) GetJSON200() *AllocationOutput
- func (r UpdateAllocationResponse) GetJSON400() *ErrorResponse
- func (r UpdateAllocationResponse) GetJSON404() *ErrorResponse
- func (r UpdateAllocationResponse) GetJSON500() *ErrorResponse
- func (r UpdateAllocationResponse) Status() string
- func (r UpdateAllocationResponse) StatusCode() int
- type UpdateBlockInput
- type UpdateBlockJSONRequestBody
- type UpdateBlockResponse
- func (r UpdateBlockResponse) ContentType() string
- func (r UpdateBlockResponse) GetBody() []byte
- func (r UpdateBlockResponse) GetJSON200() *BlockOutput
- func (r UpdateBlockResponse) GetJSON400() *ErrorResponse
- func (r UpdateBlockResponse) GetJSON404() *ErrorResponse
- func (r UpdateBlockResponse) GetJSON500() *ErrorResponse
- func (r UpdateBlockResponse) Status() string
- func (r UpdateBlockResponse) StatusCode() int
- type UpdateEnvironmentInput
- type UpdateEnvironmentJSONRequestBody
- type UpdateEnvironmentResponse
- func (r UpdateEnvironmentResponse) ContentType() string
- func (r UpdateEnvironmentResponse) GetBody() []byte
- func (r UpdateEnvironmentResponse) GetJSON200() *EnvironmentOutput
- func (r UpdateEnvironmentResponse) GetJSON400() *ErrorResponse
- func (r UpdateEnvironmentResponse) GetJSON404() *ErrorResponse
- func (r UpdateEnvironmentResponse) GetJSON500() *ErrorResponse
- func (r UpdateEnvironmentResponse) Status() string
- func (r UpdateEnvironmentResponse) StatusCode() int
- type UpdateIntegrationInput
- type UpdateIntegrationJSONRequestBody
- type UpdateIntegrationResponse
- func (r UpdateIntegrationResponse) ContentType() string
- func (r UpdateIntegrationResponse) GetBody() []byte
- func (r UpdateIntegrationResponse) GetJSON200() *IntegrationOutput
- func (r UpdateIntegrationResponse) GetJSON401() *ErrorResponse
- func (r UpdateIntegrationResponse) GetJSON404() *ErrorResponse
- func (r UpdateIntegrationResponse) GetJSON500() *ErrorResponse
- func (r UpdateIntegrationResponse) Status() string
- func (r UpdateIntegrationResponse) StatusCode() int
- type UpdatePoolInput
- type UpdatePoolJSONRequestBody
- type UpdatePoolResponse
- func (r UpdatePoolResponse) ContentType() string
- func (r UpdatePoolResponse) GetBody() []byte
- func (r UpdatePoolResponse) GetJSON200() *PoolOutput
- func (r UpdatePoolResponse) GetJSON400() *ErrorResponse
- func (r UpdatePoolResponse) GetJSON404() *ErrorResponse
- func (r UpdatePoolResponse) GetJSON500() *ErrorResponse
- func (r UpdatePoolResponse) Status() string
- func (r UpdatePoolResponse) StatusCode() int
- type UpdateReservedBlockInput
- type UpdateReservedBlockJSONRequestBody
- type UpdateReservedBlockResponse
- func (r UpdateReservedBlockResponse) ContentType() string
- func (r UpdateReservedBlockResponse) GetBody() []byte
- func (r UpdateReservedBlockResponse) GetJSON200() *ReservedBlockOutput
- func (r UpdateReservedBlockResponse) GetJSON403() *ErrorResponse
- func (r UpdateReservedBlockResponse) GetJSON404() *ErrorResponse
- func (r UpdateReservedBlockResponse) GetJSON500() *ErrorResponse
- func (r UpdateReservedBlockResponse) Status() string
- func (r UpdateReservedBlockResponse) StatusCode() int
- type UserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAutoAllocateRequest ¶
func NewAutoAllocateRequest(server string, body AutoAllocateJSONRequestBody) (*http.Request, error)
NewAutoAllocateRequest calls the generic AutoAllocate builder with application/json body
func NewAutoAllocateRequestWithBody ¶
func NewAutoAllocateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAutoAllocateRequestWithBody constructs an http.Request for the AutoAllocate method, with any body, and a specified content type
func NewCreateAPITokenRequest ¶
func NewCreateAPITokenRequest(server string, body CreateAPITokenJSONRequestBody) (*http.Request, error)
NewCreateAPITokenRequest calls the generic CreateAPIToken builder with application/json body
func NewCreateAPITokenRequestWithBody ¶
func NewCreateAPITokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAPITokenRequestWithBody constructs an http.Request for the CreateAPIToken method, with any body, and a specified content type
func NewCreateAllocationRequest ¶
func NewCreateAllocationRequest(server string, body CreateAllocationJSONRequestBody) (*http.Request, error)
NewCreateAllocationRequest calls the generic CreateAllocation builder with application/json body
func NewCreateAllocationRequestWithBody ¶
func NewCreateAllocationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAllocationRequestWithBody constructs an http.Request for the CreateAllocation method, with any body, and a specified content type
func NewCreateBlockRequest ¶
func NewCreateBlockRequest(server string, body CreateBlockJSONRequestBody) (*http.Request, error)
NewCreateBlockRequest calls the generic CreateBlock builder with application/json body
func NewCreateBlockRequestWithBody ¶
func NewCreateBlockRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateBlockRequestWithBody constructs an http.Request for the CreateBlock method, with any body, and a specified content type
func NewCreateEnvironmentRequest ¶
func NewCreateEnvironmentRequest(server string, body CreateEnvironmentJSONRequestBody) (*http.Request, error)
NewCreateEnvironmentRequest calls the generic CreateEnvironment builder with application/json body
func NewCreateEnvironmentRequestWithBody ¶
func NewCreateEnvironmentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateEnvironmentRequestWithBody constructs an http.Request for the CreateEnvironment method, with any body, and a specified content type
func NewCreateIntegrationRequest ¶
func NewCreateIntegrationRequest(server string, body CreateIntegrationJSONRequestBody) (*http.Request, error)
NewCreateIntegrationRequest calls the generic CreateIntegration builder with application/json body
func NewCreateIntegrationRequestWithBody ¶
func NewCreateIntegrationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateIntegrationRequestWithBody constructs an http.Request for the CreateIntegration method, with any body, and a specified content type
func NewCreatePoolRequest ¶
func NewCreatePoolRequest(server string, body CreatePoolJSONRequestBody) (*http.Request, error)
NewCreatePoolRequest calls the generic CreatePool builder with application/json body
func NewCreatePoolRequestWithBody ¶
func NewCreatePoolRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreatePoolRequestWithBody constructs an http.Request for the CreatePool method, with any body, and a specified content type
func NewCreateReservedBlockRequest ¶
func NewCreateReservedBlockRequest(server string, body CreateReservedBlockJSONRequestBody) (*http.Request, error)
NewCreateReservedBlockRequest calls the generic CreateReservedBlock builder with application/json body
func NewCreateReservedBlockRequestWithBody ¶
func NewCreateReservedBlockRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateReservedBlockRequestWithBody constructs an http.Request for the CreateReservedBlock method, with any body, and a specified content type
func NewDeleteAPITokenRequest ¶
NewDeleteAPITokenRequest constructs an http.Request for the DeleteAPIToken method
func NewDeleteAllocationRequest ¶
NewDeleteAllocationRequest constructs an http.Request for the DeleteAllocation method
func NewDeleteBlockRequest ¶
NewDeleteBlockRequest constructs an http.Request for the DeleteBlock method
func NewDeleteEnvironmentRequest ¶
NewDeleteEnvironmentRequest constructs an http.Request for the DeleteEnvironment method
func NewDeleteIntegrationRequest ¶
NewDeleteIntegrationRequest constructs an http.Request for the DeleteIntegration method
func NewDeletePoolRequest ¶
NewDeletePoolRequest constructs an http.Request for the DeletePool method
func NewDeleteReservedBlockRequest ¶
NewDeleteReservedBlockRequest constructs an http.Request for the DeleteReservedBlock method
func NewGetAllocationRequest ¶
NewGetAllocationRequest constructs an http.Request for the GetAllocation method
func NewGetBlockRequest ¶
NewGetBlockRequest constructs an http.Request for the GetBlock method
func NewGetBlockUsageRequest ¶
NewGetBlockUsageRequest constructs an http.Request for the GetBlockUsage method
func NewGetCurrentUserRequest ¶
NewGetCurrentUserRequest constructs an http.Request for the GetCurrentUser method
func NewGetEnvironmentRequest ¶
NewGetEnvironmentRequest constructs an http.Request for the GetEnvironment method
func NewGetIntegrationRequest ¶
NewGetIntegrationRequest constructs an http.Request for the GetIntegration method
func NewGetPoolRequest ¶
NewGetPoolRequest constructs an http.Request for the GetPool method
func NewGetSetupStatusRequest ¶
NewGetSetupStatusRequest constructs an http.Request for the GetSetupStatus method
func NewListAPITokensRequest ¶
NewListAPITokensRequest constructs an http.Request for the ListAPITokens method
func NewListAllocationsRequest ¶
func NewListAllocationsRequest(server string, params *ListAllocationsParams) (*http.Request, error)
NewListAllocationsRequest constructs an http.Request for the ListAllocations method
func NewListBlocksRequest ¶
func NewListBlocksRequest(server string, params *ListBlocksParams) (*http.Request, error)
NewListBlocksRequest constructs an http.Request for the ListBlocks method
func NewListEnvironmentsRequest ¶
func NewListEnvironmentsRequest(server string, params *ListEnvironmentsParams) (*http.Request, error)
NewListEnvironmentsRequest constructs an http.Request for the ListEnvironments method
func NewListIntegrationsRequest ¶
func NewListIntegrationsRequest(server string, params *ListIntegrationsParams) (*http.Request, error)
NewListIntegrationsRequest constructs an http.Request for the ListIntegrations method
func NewListPoolsRequest ¶
func NewListPoolsRequest(server string, params *ListPoolsParams) (*http.Request, error)
NewListPoolsRequest constructs an http.Request for the ListPools method
func NewListReservedBlocksRequest ¶
func NewListReservedBlocksRequest(server string, params *ListReservedBlocksParams) (*http.Request, error)
NewListReservedBlocksRequest constructs an http.Request for the ListReservedBlocks method
func NewLoginRequest ¶
func NewLoginRequest(server string, body LoginJSONRequestBody) (*http.Request, error)
NewLoginRequest calls the generic Login builder with application/json body
func NewLoginRequestWithBody ¶
func NewLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewLoginRequestWithBody constructs an http.Request for the Login method, with any body, and a specified content type
func NewLogoutRequest ¶
NewLogoutRequest constructs an http.Request for the Logout method
func NewMarkTourCompletedRequest ¶
NewMarkTourCompletedRequest constructs an http.Request for the MarkTourCompleted method
func NewPostApiSetupStatusRequest ¶
func NewPostApiSetupStatusRequest(server string, body PostApiSetupStatusJSONRequestBody) (*http.Request, error)
NewPostApiSetupStatusRequest calls the generic PostApiSetupStatus builder with application/json body
func NewPostApiSetupStatusRequestWithBody ¶
func NewPostApiSetupStatusRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiSetupStatusRequestWithBody constructs an http.Request for the PostApiSetupStatus method, with any body, and a specified content type
func NewPostSetupRequest ¶
func NewPostSetupRequest(server string, body PostSetupJSONRequestBody) (*http.Request, error)
NewPostSetupRequest calls the generic PostSetup builder with application/json body
func NewPostSetupRequestWithBody ¶
func NewPostSetupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostSetupRequestWithBody constructs an http.Request for the PostSetup method, with any body, and a specified content type
func NewSuggestBlockCIDRRequest ¶
func NewSuggestBlockCIDRRequest(server string, id UUID, params *SuggestBlockCIDRParams) (*http.Request, error)
NewSuggestBlockCIDRRequest constructs an http.Request for the SuggestBlockCIDR method
func NewSuggestPoolBlockCIDRRequest ¶
func NewSuggestPoolBlockCIDRRequest(server string, id UUID, params *SuggestPoolBlockCIDRParams) (*http.Request, error)
NewSuggestPoolBlockCIDRRequest constructs an http.Request for the SuggestPoolBlockCIDR method
func NewSyncIntegrationRequest ¶
NewSyncIntegrationRequest constructs an http.Request for the SyncIntegration method
func NewUpdateAllocationRequest ¶
func NewUpdateAllocationRequest(server string, id UUID, body UpdateAllocationJSONRequestBody) (*http.Request, error)
NewUpdateAllocationRequest calls the generic UpdateAllocation builder with application/json body
func NewUpdateAllocationRequestWithBody ¶
func NewUpdateAllocationRequestWithBody(server string, id UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateAllocationRequestWithBody constructs an http.Request for the UpdateAllocation method, with any body, and a specified content type
func NewUpdateBlockRequest ¶
func NewUpdateBlockRequest(server string, id UUID, body UpdateBlockJSONRequestBody) (*http.Request, error)
NewUpdateBlockRequest calls the generic UpdateBlock builder with application/json body
func NewUpdateBlockRequestWithBody ¶
func NewUpdateBlockRequestWithBody(server string, id UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateBlockRequestWithBody constructs an http.Request for the UpdateBlock method, with any body, and a specified content type
func NewUpdateEnvironmentRequest ¶
func NewUpdateEnvironmentRequest(server string, id UUID, body UpdateEnvironmentJSONRequestBody) (*http.Request, error)
NewUpdateEnvironmentRequest calls the generic UpdateEnvironment builder with application/json body
func NewUpdateEnvironmentRequestWithBody ¶
func NewUpdateEnvironmentRequestWithBody(server string, id UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateEnvironmentRequestWithBody constructs an http.Request for the UpdateEnvironment method, with any body, and a specified content type
func NewUpdateIntegrationRequest ¶
func NewUpdateIntegrationRequest(server string, id UUID, body UpdateIntegrationJSONRequestBody) (*http.Request, error)
NewUpdateIntegrationRequest calls the generic UpdateIntegration builder with application/json body
func NewUpdateIntegrationRequestWithBody ¶
func NewUpdateIntegrationRequestWithBody(server string, id UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateIntegrationRequestWithBody constructs an http.Request for the UpdateIntegration method, with any body, and a specified content type
func NewUpdatePoolRequest ¶
func NewUpdatePoolRequest(server string, id UUID, body UpdatePoolJSONRequestBody) (*http.Request, error)
NewUpdatePoolRequest calls the generic UpdatePool builder with application/json body
func NewUpdatePoolRequestWithBody ¶
func NewUpdatePoolRequestWithBody(server string, id UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdatePoolRequestWithBody constructs an http.Request for the UpdatePool method, with any body, and a specified content type
func NewUpdateReservedBlockRequest ¶
func NewUpdateReservedBlockRequest(server string, id UUID, body UpdateReservedBlockJSONRequestBody) (*http.Request, error)
NewUpdateReservedBlockRequest calls the generic UpdateReservedBlock builder with application/json body
func NewUpdateReservedBlockRequestWithBody ¶
func NewUpdateReservedBlockRequestWithBody(server string, id UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateReservedBlockRequestWithBody constructs an http.Request for the UpdateReservedBlock method, with any body, and a specified content type
Types ¶
type AllocationListOutput ¶
type AllocationListOutput struct {
Allocations *[]AllocationOutput `json:"allocations,omitempty"`
Total *int `json:"total,omitempty"`
}
AllocationListOutput defines model for AllocationListOutput.
type AllocationOutput ¶
type AllocationOutput struct {
BlockName *string `json:"block_name,omitempty"`
Cidr *string `json:"cidr,omitempty"`
// ConnectionId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
ConnectionId *UUID `json:"connection_id,omitempty"`
ExternalId *string `json:"external_id,omitempty"`
// Id Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
Id *UUID `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Provider *string `json:"provider,omitempty"`
}
AllocationOutput defines model for AllocationOutput.
type ApiTokenResponse ¶
type ApiTokenResponse struct {
CreatedAt *string `json:"created_at,omitempty"`
ExpiresAt *string `json:"expires_at,omitempty"`
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
OrganizationId *string `json:"organization_id,omitempty"`
}
ApiTokenResponse defines model for ApiTokenResponse.
type AutoAllocateInput ¶
type AutoAllocateInput struct {
BlockName string `json:"block_name"`
Name string `json:"name"`
PrefixLength int `json:"prefix_length"`
}
AutoAllocateInput defines model for AutoAllocateInput.
type AutoAllocateJSONRequestBody ¶
type AutoAllocateJSONRequestBody = AutoAllocateInput
AutoAllocateJSONRequestBody defines body for AutoAllocate for application/json ContentType.
type AutoAllocateResponse ¶
type AutoAllocateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AllocationOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON412 the response for an HTTP 412 `application/json` response
JSON412 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseAutoAllocateResponse ¶
func ParseAutoAllocateResponse(rsp *http.Response) (*AutoAllocateResponse, error)
ParseAutoAllocateResponse parses an HTTP response from a AutoAllocateWithResponse call
func (AutoAllocateResponse) ContentType ¶
func (r AutoAllocateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AutoAllocateResponse) GetBody ¶
func (r AutoAllocateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AutoAllocateResponse) GetJSON200 ¶
func (r AutoAllocateResponse) GetJSON200() *AllocationOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (AutoAllocateResponse) GetJSON400 ¶
func (r AutoAllocateResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (AutoAllocateResponse) GetJSON404 ¶
func (r AutoAllocateResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (AutoAllocateResponse) GetJSON412 ¶
func (r AutoAllocateResponse) GetJSON412() *ErrorResponse
GetJSON412 returns the response for an HTTP 412 `application/json` response
func (AutoAllocateResponse) GetJSON500 ¶
func (r AutoAllocateResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (AutoAllocateResponse) Status ¶
func (r AutoAllocateResponse) Status() string
Status returns HTTPResponse.Status
func (AutoAllocateResponse) StatusCode ¶
func (r AutoAllocateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BlockListOutput ¶
type BlockListOutput struct {
Blocks *[]BlockOutput `json:"blocks,omitempty"`
Total *int `json:"total,omitempty"`
}
BlockListOutput defines model for BlockListOutput.
type BlockOutput ¶
type BlockOutput struct {
AvailableIps *string `json:"available_ips,omitempty"`
Cidr *string `json:"cidr,omitempty"`
// ConnectionId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
ConnectionId *UUID `json:"connection_id,omitempty"`
// EnvironmentId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
EnvironmentId *UUID `json:"environment_id,omitempty"`
ExternalId *string `json:"external_id,omitempty"`
// Id Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
Id *UUID `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
// OrganizationId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
OrganizationId *UUID `json:"organization_id,omitempty"`
// PoolId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
PoolId *UUID `json:"pool_id,omitempty"`
Provider *string `json:"provider,omitempty"`
TotalIps *string `json:"total_ips,omitempty"`
UsedIps *string `json:"used_ips,omitempty"`
}
BlockOutput defines model for BlockOutput.
type BlockUsageOutput ¶
type BlockUsageOutput struct {
AvailableIps *string `json:"available_ips,omitempty"`
Cidr *string `json:"cidr,omitempty"`
Name *string `json:"name,omitempty"`
TotalIps *string `json:"total_ips,omitempty"`
UsedIps *string `json:"used_ips,omitempty"`
UtilizationPercent *float64 `json:"utilization_percent,omitempty"`
}
BlockUsageOutput defines model for BlockUsageOutput.
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) AutoAllocate ¶
func (c *Client) AutoAllocate(ctx context.Context, body AutoAllocateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
AutoAllocate Auto-allocate
Finds the next available CIDR in a block using bin-packing and creates an allocation.
Takes a body of the `application/json` content type.
Corresponds with POST /api/allocations/auto (the `AutoAllocate` operationId).
func (*Client) AutoAllocateWithBody ¶
func (c *Client) AutoAllocateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AutoAllocateWithBody Auto-allocate
Finds the next available CIDR in a block using bin-packing and creates an allocation.
Takes any type of body and a specified content type.
Corresponds with POST /api/allocations/auto (the `AutoAllocate` operationId).
func (*Client) CreateAPIToken ¶
func (c *Client) CreateAPIToken(ctx context.Context, body CreateAPITokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAPIToken Create API token
Create an API token. Only admins can create tokens. The raw token is returned once.
Takes a body of the `application/json` content type.
Corresponds with POST /api/auth/me/tokens (the `CreateAPIToken` operationId).
func (*Client) CreateAPITokenWithBody ¶
func (c *Client) CreateAPITokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAPITokenWithBody Create API token
Create an API token. Only admins can create tokens. The raw token is returned once.
Takes any type of body and a specified content type.
Corresponds with POST /api/auth/me/tokens (the `CreateAPIToken` operationId).
func (*Client) CreateAllocation ¶
func (c *Client) CreateAllocation(ctx context.Context, body CreateAllocationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAllocation Create Allocation
Creates a new IP allocation.
Takes a body of the `application/json` content type.
Corresponds with POST /api/allocations (the `CreateAllocation` operationId).
func (*Client) CreateAllocationWithBody ¶
func (c *Client) CreateAllocationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAllocationWithBody Create Allocation
Creates a new IP allocation.
Takes any type of body and a specified content type.
Corresponds with POST /api/allocations (the `CreateAllocation` operationId).
func (*Client) CreateBlock ¶
func (c *Client) CreateBlock(ctx context.Context, body CreateBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateBlock Create Block
Creates a new network block.
Takes a body of the `application/json` content type.
Corresponds with POST /api/blocks (the `CreateBlock` operationId).
func (*Client) CreateBlockWithBody ¶
func (c *Client) CreateBlockWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateBlockWithBody Create Block
Creates a new network block.
Takes any type of body and a specified content type.
Corresponds with POST /api/blocks (the `CreateBlock` operationId).
func (*Client) CreateEnvironment ¶
func (c *Client) CreateEnvironment(ctx context.Context, body CreateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateEnvironment Create Environment
Creates a new network environment.
Takes a body of the `application/json` content type.
Corresponds with POST /api/environments (the `CreateEnvironment` operationId).
func (*Client) CreateEnvironmentWithBody ¶
func (c *Client) CreateEnvironmentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateEnvironmentWithBody Create Environment
Creates a new network environment.
Takes any type of body and a specified content type.
Corresponds with POST /api/environments (the `CreateEnvironment` operationId).
func (*Client) CreateIntegration ¶
func (c *Client) CreateIntegration(ctx context.Context, body CreateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateIntegration Create Integration
Create a cloud connection (AWS, Azure, GCP)
Takes a body of the `application/json` content type.
Corresponds with POST /api/integrations (the `CreateIntegration` operationId).
func (*Client) CreateIntegrationWithBody ¶
func (c *Client) CreateIntegrationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateIntegrationWithBody Create Integration
Create a cloud connection (AWS, Azure, GCP)
Takes any type of body and a specified content type.
Corresponds with POST /api/integrations (the `CreateIntegration` operationId).
func (*Client) CreatePool ¶
func (c *Client) CreatePool(ctx context.Context, body CreatePoolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePool Create Pool
Creates an environment pool (CIDR range that blocks in the environment can draw from).
Takes a body of the `application/json` content type.
Corresponds with POST /api/pools (the `CreatePool` operationId).
func (*Client) CreatePoolWithBody ¶
func (c *Client) CreatePoolWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePoolWithBody Create Pool
Creates an environment pool (CIDR range that blocks in the environment can draw from).
Takes any type of body and a specified content type.
Corresponds with POST /api/pools (the `CreatePool` operationId).
func (*Client) CreateReservedBlock ¶
func (c *Client) CreateReservedBlock(ctx context.Context, body CreateReservedBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateReservedBlock Create reserved block
Reserve a CIDR range so it cannot be used as a block or allocation. Admin only.
Takes a body of the `application/json` content type.
Corresponds with POST /api/reserved-blocks (the `CreateReservedBlock` operationId).
func (*Client) CreateReservedBlockWithBody ¶
func (c *Client) CreateReservedBlockWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateReservedBlockWithBody Create reserved block
Reserve a CIDR range so it cannot be used as a block or allocation. Admin only.
Takes any type of body and a specified content type.
Corresponds with POST /api/reserved-blocks (the `CreateReservedBlock` operationId).
func (*Client) DeleteAPIToken ¶
func (c *Client) DeleteAPIToken(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteAPIToken Delete API token
Delete an API token for the current user.
Corresponds with DELETE /api/auth/me/tokens/{id} (the `DeleteAPIToken` operationId).
func (*Client) DeleteAllocation ¶
func (c *Client) DeleteAllocation(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteAllocation Delete Allocation
Deletes an allocation.
Corresponds with DELETE /api/allocations/{id} (the `DeleteAllocation` operationId).
func (*Client) DeleteBlock ¶
func (c *Client) DeleteBlock(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteBlock Delete Block
Deletes a block.
Corresponds with DELETE /api/blocks/{id} (the `DeleteBlock` operationId).
func (*Client) DeleteEnvironment ¶
func (c *Client) DeleteEnvironment(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteEnvironment Delete Environment
Deletes an environment.
Corresponds with DELETE /api/environments/{id} (the `DeleteEnvironment` operationId).
func (*Client) DeleteIntegration ¶
func (c *Client) DeleteIntegration(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteIntegration Delete Integration
Delete a cloud connection.
Corresponds with DELETE /api/integrations/{id} (the `DeleteIntegration` operationId).
func (*Client) DeletePool ¶
func (c *Client) DeletePool(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
DeletePool Delete Pool
Deletes a pool (blocks referencing it will have pool_id set to null).
Corresponds with DELETE /api/pools/{id} (the `DeletePool` operationId).
func (*Client) DeleteReservedBlock ¶
func (c *Client) DeleteReservedBlock(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteReservedBlock Delete reserved block
Remove a reserved CIDR range. Admin only.
Corresponds with DELETE /api/reserved-blocks/{id} (the `DeleteReservedBlock` operationId).
func (*Client) GetAllocation ¶
func (c *Client) GetAllocation(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAllocation Get Allocation
Gets a specific allocation by ID.
Corresponds with GET /api/allocations/{id} (the `GetAllocation` operationId).
func (*Client) GetBlock ¶
func (c *Client) GetBlock(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetBlock Get Block
Gets a specific block by ID.
Corresponds with GET /api/blocks/{id} (the `GetBlock` operationId).
func (*Client) GetBlockUsage ¶
func (c *Client) GetBlockUsage(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetBlockUsage Get Block Usage
Gets usage statistics for a block.
Corresponds with GET /api/blocks/{id}/usage (the `GetBlockUsage` operationId).
func (*Client) GetCurrentUser ¶
func (c *Client) GetCurrentUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetCurrentUser Get current user
Returns the current authenticated user.
Corresponds with GET /api/auth/me (the `GetCurrentUser` operationId).
func (*Client) GetEnvironment ¶
func (c *Client) GetEnvironment(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetEnvironment Get Environment
Gets a specific environment by ID.
Corresponds with GET /api/environments/{id} (the `GetEnvironment` operationId).
func (*Client) GetIntegration ¶
func (c *Client) GetIntegration(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetIntegration Get Integration
Get a cloud connection by ID.
Corresponds with GET /api/integrations/{id} (the `GetIntegration` operationId).
func (*Client) GetPool ¶
func (c *Client) GetPool(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetPool Get Pool
Gets a pool by ID.
Corresponds with GET /api/pools/{id} (the `GetPool` operationId).
func (*Client) GetSetupStatus ¶
func (c *Client) GetSetupStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetSetupStatus Get setup status
Returns whether initial setup is required (no users exist). When INITIAL_ADMIN_EMAIL is set, setup is skipped.
Corresponds with GET /api/setup/status (the `GetSetupStatus` operationId).
func (*Client) ListAPITokens ¶
func (c *Client) ListAPITokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAPITokens List API tokens
List API tokens for the current user.
Corresponds with GET /api/auth/me/tokens (the `ListAPITokens` operationId).
func (*Client) ListAllocations ¶
func (c *Client) ListAllocations(ctx context.Context, params *ListAllocationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAllocations List Allocations
Lists IP allocations with optional name/block_name filter and pagination (limit, offset)
Corresponds with GET /api/allocations (the `ListAllocations` operationId).
func (*Client) ListBlocks ¶
func (c *Client) ListBlocks(ctx context.Context, params *ListBlocksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListBlocks List Blocks
Lists network blocks with optional name/environment/provider/connection_id filter and pagination (limit, offset)
Corresponds with GET /api/blocks (the `ListBlocks` operationId).
func (*Client) ListEnvironments ¶
func (c *Client) ListEnvironments(ctx context.Context, params *ListEnvironmentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListEnvironments List Environments
Lists network environments with optional name filter and pagination (limit, offset)
Corresponds with GET /api/environments (the `ListEnvironments` operationId).
func (*Client) ListIntegrations ¶
func (c *Client) ListIntegrations(ctx context.Context, params *ListIntegrationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListIntegrations List Integrations
List cloud connections for the organization.
Corresponds with GET /api/integrations (the `ListIntegrations` operationId).
func (*Client) ListPools ¶
func (c *Client) ListPools(ctx context.Context, params *ListPoolsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListPools List Pools
Lists pools for an environment or for an organization. Optional query params: provider, connection_id to filter by cloud integration.
Corresponds with GET /api/pools (the `ListPools` operationId).
func (*Client) ListReservedBlocks ¶
func (c *Client) ListReservedBlocks(ctx context.Context, params *ListReservedBlocksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListReservedBlocks List reserved blocks
List CIDR ranges that are reserved (blacklisted) and cannot be used as blocks or allocations. Admin only.
Corresponds with GET /api/reserved-blocks (the `ListReservedBlocks` operationId).
func (*Client) Login ¶
func (c *Client) Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
Login Login
Authenticate with email and password; sets session cookie
Takes a body of the `application/json` content type.
Corresponds with POST /api/auth/login (the `Login` operationId).
func (*Client) LoginWithBody ¶
func (c *Client) LoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
LoginWithBody Login
Authenticate with email and password; sets session cookie
Takes any type of body and a specified content type.
Corresponds with POST /api/auth/login (the `Login` operationId).
func (*Client) Logout ¶
Logout Logout
Clear session cookie.
Corresponds with POST /api/auth/logout (the `Logout` operationId).
func (*Client) MarkTourCompleted ¶
func (c *Client) MarkTourCompleted(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
MarkTourCompleted Mark tour completed
Marks the onboarding tour as completed for the current user.
Corresponds with POST /api/auth/me/tour-completed (the `MarkTourCompleted` operationId).
func (*Client) PostApiSetupStatus ¶
func (c *Client) PostApiSetupStatus(ctx context.Context, body PostApiSetupStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiSetupStatus Post setup
Creates the first admin user. Only succeeds when no users exist.
Takes a body of the `application/json` content type.
Corresponds with POST /api/setup/status (the `PostApiSetupStatus` operationId).
func (*Client) PostApiSetupStatusWithBody ¶
func (c *Client) PostApiSetupStatusWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiSetupStatusWithBody Post setup
Creates the first admin user. Only succeeds when no users exist.
Takes any type of body and a specified content type.
Corresponds with POST /api/setup/status (the `PostApiSetupStatus` operationId).
func (*Client) PostSetup ¶
func (c *Client) PostSetup(ctx context.Context, body PostSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostSetup Post setup
Creates the first admin user. Only succeeds when no users exist.
Takes a body of the `application/json` content type.
Corresponds with POST /api/setup (the `PostSetup` operationId).
func (*Client) PostSetupWithBody ¶
func (c *Client) PostSetupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostSetupWithBody Post setup
Creates the first admin user. Only succeeds when no users exist.
Takes any type of body and a specified content type.
Corresponds with POST /api/setup (the `PostSetup` operationId).
func (*Client) SuggestBlockCIDR ¶
func (c *Client) SuggestBlockCIDR(ctx context.Context, id UUID, params *SuggestBlockCIDRParams, reqEditors ...RequestEditorFn) (*http.Response, error)
SuggestBlockCIDR Suggest Block CIDR
Suggests the next available CIDR in the block at the given prefix length, bin-packing to fill gaps ¶
Corresponds with GET /api/blocks/{id}/suggest-cidr (the `SuggestBlockCIDR` operationId).
func (*Client) SuggestPoolBlockCIDR ¶
func (c *Client) SuggestPoolBlockCIDR(ctx context.Context, id UUID, params *SuggestPoolBlockCIDRParams, reqEditors ...RequestEditorFn) (*http.Response, error)
SuggestPoolBlockCIDR Suggest Pool Block CIDR
Suggests a CIDR for a new block in the pool at the given prefix length, considering existing blocks in that pool ¶
Corresponds with GET /api/pools/{id}/suggest-block-cidr (the `SuggestPoolBlockCIDR` operationId).
func (*Client) SyncIntegration ¶
func (c *Client) SyncIntegration(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
SyncIntegration Sync Integration
Trigger sync for a cloud connection (pools, blocks, and allocations e.g. VPC subnets)
Corresponds with POST /api/integrations/{id}/sync (the `SyncIntegration` operationId).
func (*Client) UpdateAllocation ¶
func (c *Client) UpdateAllocation(ctx context.Context, id UUID, body UpdateAllocationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateAllocation Update Allocation
Updates an existing allocation.
Takes a body of the `application/json` content type.
Corresponds with PUT /api/allocations/{id} (the `UpdateAllocation` operationId).
func (*Client) UpdateAllocationWithBody ¶
func (c *Client) UpdateAllocationWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateAllocationWithBody Update Allocation
Updates an existing allocation.
Takes any type of body and a specified content type.
Corresponds with PUT /api/allocations/{id} (the `UpdateAllocation` operationId).
func (*Client) UpdateBlock ¶
func (c *Client) UpdateBlock(ctx context.Context, id UUID, body UpdateBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateBlock Update Block
Updates an existing block.
Takes a body of the `application/json` content type.
Corresponds with PUT /api/blocks/{id} (the `UpdateBlock` operationId).
func (*Client) UpdateBlockWithBody ¶
func (c *Client) UpdateBlockWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateBlockWithBody Update Block
Updates an existing block.
Takes any type of body and a specified content type.
Corresponds with PUT /api/blocks/{id} (the `UpdateBlock` operationId).
func (*Client) UpdateEnvironment ¶
func (c *Client) UpdateEnvironment(ctx context.Context, id UUID, body UpdateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateEnvironment Update Environment
Updates an existing environment.
Takes a body of the `application/json` content type.
Corresponds with PUT /api/environments/{id} (the `UpdateEnvironment` operationId).
func (*Client) UpdateEnvironmentWithBody ¶
func (c *Client) UpdateEnvironmentWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateEnvironmentWithBody Update Environment
Updates an existing environment.
Takes any type of body and a specified content type.
Corresponds with PUT /api/environments/{id} (the `UpdateEnvironment` operationId).
func (*Client) UpdateIntegration ¶
func (c *Client) UpdateIntegration(ctx context.Context, id UUID, body UpdateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateIntegration Update Integration
Update a cloud connection.
Takes a body of the `application/json` content type.
Corresponds with PUT /api/integrations/{id} (the `UpdateIntegration` operationId).
func (*Client) UpdateIntegrationWithBody ¶
func (c *Client) UpdateIntegrationWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateIntegrationWithBody Update Integration
Update a cloud connection.
Takes any type of body and a specified content type.
Corresponds with PUT /api/integrations/{id} (the `UpdateIntegration` operationId).
func (*Client) UpdatePool ¶
func (c *Client) UpdatePool(ctx context.Context, id UUID, body UpdatePoolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdatePool Update Pool
Updates a pool.
Takes a body of the `application/json` content type.
Corresponds with PUT /api/pools/{id} (the `UpdatePool` operationId).
func (*Client) UpdatePoolWithBody ¶
func (c *Client) UpdatePoolWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdatePoolWithBody Update Pool
Updates a pool.
Takes any type of body and a specified content type.
Corresponds with PUT /api/pools/{id} (the `UpdatePool` operationId).
func (*Client) UpdateReservedBlock ¶
func (c *Client) UpdateReservedBlock(ctx context.Context, id UUID, body UpdateReservedBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateReservedBlock Update reserved block
Update reserved block metadata (name). Admin only.
Takes a body of the `application/json` content type.
Corresponds with PUT /api/reserved-blocks/{id} (the `UpdateReservedBlock` operationId).
func (*Client) UpdateReservedBlockWithBody ¶
func (c *Client) UpdateReservedBlockWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateReservedBlockWithBody Update reserved block
Update reserved block metadata (name). Admin only.
Takes any type of body and a specified content type.
Corresponds with PUT /api/reserved-blocks/{id} (the `UpdateReservedBlock` operationId).
type ClientInterface ¶
type ClientInterface interface {
// ListAllocations List Allocations
//
// Lists IP allocations with optional name/block_name filter and pagination (limit, offset)
//
// Corresponds with GET /api/allocations (the `ListAllocations` operationId).
ListAllocations(ctx context.Context, params *ListAllocationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAllocationWithBody Create Allocation
//
// Creates a new IP allocation.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/allocations (the `CreateAllocation` operationId).
CreateAllocationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAllocation Create Allocation
//
// Creates a new IP allocation.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/allocations (the `CreateAllocation` operationId).
CreateAllocation(ctx context.Context, body CreateAllocationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AutoAllocateWithBody Auto-allocate
//
// Finds the next available CIDR in a block using bin-packing and creates an allocation.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/allocations/auto (the `AutoAllocate` operationId).
AutoAllocateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// AutoAllocate Auto-allocate
//
// Finds the next available CIDR in a block using bin-packing and creates an allocation.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/allocations/auto (the `AutoAllocate` operationId).
AutoAllocate(ctx context.Context, body AutoAllocateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteAllocation Delete Allocation
//
// Deletes an allocation.
//
// Corresponds with DELETE /api/allocations/{id} (the `DeleteAllocation` operationId).
DeleteAllocation(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAllocation Get Allocation
//
// Gets a specific allocation by ID.
//
// Corresponds with GET /api/allocations/{id} (the `GetAllocation` operationId).
GetAllocation(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateAllocationWithBody Update Allocation
//
// Updates an existing allocation.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/allocations/{id} (the `UpdateAllocation` operationId).
UpdateAllocationWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateAllocation Update Allocation
//
// Updates an existing allocation.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/allocations/{id} (the `UpdateAllocation` operationId).
UpdateAllocation(ctx context.Context, id UUID, body UpdateAllocationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// LoginWithBody Login
//
// Authenticate with email and password; sets session cookie
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/auth/login (the `Login` operationId).
LoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// Login Login
//
// Authenticate with email and password; sets session cookie
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/auth/login (the `Login` operationId).
Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// Logout Logout
//
// Clear session cookie.
//
// Corresponds with POST /api/auth/logout (the `Logout` operationId).
Logout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCurrentUser Get current user
//
// Returns the current authenticated user.
//
// Corresponds with GET /api/auth/me (the `GetCurrentUser` operationId).
GetCurrentUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAPITokens List API tokens
//
// List API tokens for the current user.
//
// Corresponds with GET /api/auth/me/tokens (the `ListAPITokens` operationId).
ListAPITokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAPITokenWithBody Create API token
//
// Create an API token. Only admins can create tokens. The raw token is returned once.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/auth/me/tokens (the `CreateAPIToken` operationId).
CreateAPITokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAPIToken Create API token
//
// Create an API token. Only admins can create tokens. The raw token is returned once.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/auth/me/tokens (the `CreateAPIToken` operationId).
CreateAPIToken(ctx context.Context, body CreateAPITokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteAPIToken Delete API token
//
// Delete an API token for the current user.
//
// Corresponds with DELETE /api/auth/me/tokens/{id} (the `DeleteAPIToken` operationId).
DeleteAPIToken(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// MarkTourCompleted Mark tour completed
//
// Marks the onboarding tour as completed for the current user.
//
// Corresponds with POST /api/auth/me/tour-completed (the `MarkTourCompleted` operationId).
MarkTourCompleted(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListBlocks List Blocks
//
// Lists network blocks with optional name/environment/provider/connection_id filter and pagination (limit, offset)
//
// Corresponds with GET /api/blocks (the `ListBlocks` operationId).
ListBlocks(ctx context.Context, params *ListBlocksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateBlockWithBody Create Block
//
// Creates a new network block.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/blocks (the `CreateBlock` operationId).
CreateBlockWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateBlock Create Block
//
// Creates a new network block.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/blocks (the `CreateBlock` operationId).
CreateBlock(ctx context.Context, body CreateBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteBlock Delete Block
//
// Deletes a block.
//
// Corresponds with DELETE /api/blocks/{id} (the `DeleteBlock` operationId).
DeleteBlock(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBlock Get Block
//
// Gets a specific block by ID.
//
// Corresponds with GET /api/blocks/{id} (the `GetBlock` operationId).
GetBlock(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateBlockWithBody Update Block
//
// Updates an existing block.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/blocks/{id} (the `UpdateBlock` operationId).
UpdateBlockWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateBlock Update Block
//
// Updates an existing block.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/blocks/{id} (the `UpdateBlock` operationId).
UpdateBlock(ctx context.Context, id UUID, body UpdateBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SuggestBlockCIDR Suggest Block CIDR
//
// Suggests the next available CIDR in the block at the given prefix length, bin-packing to fill gaps
//
// Corresponds with GET /api/blocks/{id}/suggest-cidr (the `SuggestBlockCIDR` operationId).
SuggestBlockCIDR(ctx context.Context, id UUID, params *SuggestBlockCIDRParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBlockUsage Get Block Usage
//
// Gets usage statistics for a block.
//
// Corresponds with GET /api/blocks/{id}/usage (the `GetBlockUsage` operationId).
GetBlockUsage(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEnvironments List Environments
//
// Lists network environments with optional name filter and pagination (limit, offset)
//
// Corresponds with GET /api/environments (the `ListEnvironments` operationId).
ListEnvironments(ctx context.Context, params *ListEnvironmentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateEnvironmentWithBody Create Environment
//
// Creates a new network environment.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/environments (the `CreateEnvironment` operationId).
CreateEnvironmentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateEnvironment Create Environment
//
// Creates a new network environment.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/environments (the `CreateEnvironment` operationId).
CreateEnvironment(ctx context.Context, body CreateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteEnvironment Delete Environment
//
// Deletes an environment.
//
// Corresponds with DELETE /api/environments/{id} (the `DeleteEnvironment` operationId).
DeleteEnvironment(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEnvironment Get Environment
//
// Gets a specific environment by ID.
//
// Corresponds with GET /api/environments/{id} (the `GetEnvironment` operationId).
GetEnvironment(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateEnvironmentWithBody Update Environment
//
// Updates an existing environment.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/environments/{id} (the `UpdateEnvironment` operationId).
UpdateEnvironmentWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateEnvironment Update Environment
//
// Updates an existing environment.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/environments/{id} (the `UpdateEnvironment` operationId).
UpdateEnvironment(ctx context.Context, id UUID, body UpdateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListIntegrations List Integrations
//
// List cloud connections for the organization.
//
// Corresponds with GET /api/integrations (the `ListIntegrations` operationId).
ListIntegrations(ctx context.Context, params *ListIntegrationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateIntegrationWithBody Create Integration
//
// Create a cloud connection (AWS, Azure, GCP)
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/integrations (the `CreateIntegration` operationId).
CreateIntegrationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateIntegration Create Integration
//
// Create a cloud connection (AWS, Azure, GCP)
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/integrations (the `CreateIntegration` operationId).
CreateIntegration(ctx context.Context, body CreateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteIntegration Delete Integration
//
// Delete a cloud connection.
//
// Corresponds with DELETE /api/integrations/{id} (the `DeleteIntegration` operationId).
DeleteIntegration(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetIntegration Get Integration
//
// Get a cloud connection by ID.
//
// Corresponds with GET /api/integrations/{id} (the `GetIntegration` operationId).
GetIntegration(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateIntegrationWithBody Update Integration
//
// Update a cloud connection.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/integrations/{id} (the `UpdateIntegration` operationId).
UpdateIntegrationWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateIntegration Update Integration
//
// Update a cloud connection.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/integrations/{id} (the `UpdateIntegration` operationId).
UpdateIntegration(ctx context.Context, id UUID, body UpdateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SyncIntegration Sync Integration
//
// Trigger sync for a cloud connection (pools, blocks, and allocations e.g. VPC subnets)
//
// Corresponds with POST /api/integrations/{id}/sync (the `SyncIntegration` operationId).
SyncIntegration(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListPools List Pools
//
// Lists pools for an environment or for an organization. Optional query params: provider, connection_id to filter by cloud integration.
//
// Corresponds with GET /api/pools (the `ListPools` operationId).
ListPools(ctx context.Context, params *ListPoolsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreatePoolWithBody Create Pool
//
// Creates an environment pool (CIDR range that blocks in the environment can draw from).
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/pools (the `CreatePool` operationId).
CreatePoolWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreatePool Create Pool
//
// Creates an environment pool (CIDR range that blocks in the environment can draw from).
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/pools (the `CreatePool` operationId).
CreatePool(ctx context.Context, body CreatePoolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeletePool Delete Pool
//
// Deletes a pool (blocks referencing it will have pool_id set to null).
//
// Corresponds with DELETE /api/pools/{id} (the `DeletePool` operationId).
DeletePool(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPool Get Pool
//
// Gets a pool by ID.
//
// Corresponds with GET /api/pools/{id} (the `GetPool` operationId).
GetPool(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdatePoolWithBody Update Pool
//
// Updates a pool.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/pools/{id} (the `UpdatePool` operationId).
UpdatePoolWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdatePool Update Pool
//
// Updates a pool.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/pools/{id} (the `UpdatePool` operationId).
UpdatePool(ctx context.Context, id UUID, body UpdatePoolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SuggestPoolBlockCIDR Suggest Pool Block CIDR
//
// Suggests a CIDR for a new block in the pool at the given prefix length, considering existing blocks in that pool
//
// Corresponds with GET /api/pools/{id}/suggest-block-cidr (the `SuggestPoolBlockCIDR` operationId).
SuggestPoolBlockCIDR(ctx context.Context, id UUID, params *SuggestPoolBlockCIDRParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListReservedBlocks List reserved blocks
//
// List CIDR ranges that are reserved (blacklisted) and cannot be used as blocks or allocations. Admin only.
//
// Corresponds with GET /api/reserved-blocks (the `ListReservedBlocks` operationId).
ListReservedBlocks(ctx context.Context, params *ListReservedBlocksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateReservedBlockWithBody Create reserved block
//
// Reserve a CIDR range so it cannot be used as a block or allocation. Admin only.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/reserved-blocks (the `CreateReservedBlock` operationId).
CreateReservedBlockWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateReservedBlock Create reserved block
//
// Reserve a CIDR range so it cannot be used as a block or allocation. Admin only.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/reserved-blocks (the `CreateReservedBlock` operationId).
CreateReservedBlock(ctx context.Context, body CreateReservedBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteReservedBlock Delete reserved block
//
// Remove a reserved CIDR range. Admin only.
//
// Corresponds with DELETE /api/reserved-blocks/{id} (the `DeleteReservedBlock` operationId).
DeleteReservedBlock(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateReservedBlockWithBody Update reserved block
//
// Update reserved block metadata (name). Admin only.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/reserved-blocks/{id} (the `UpdateReservedBlock` operationId).
UpdateReservedBlockWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateReservedBlock Update reserved block
//
// Update reserved block metadata (name). Admin only.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/reserved-blocks/{id} (the `UpdateReservedBlock` operationId).
UpdateReservedBlock(ctx context.Context, id UUID, body UpdateReservedBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostSetupWithBody Post setup
//
// Creates the first admin user. Only succeeds when no users exist.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/setup (the `PostSetup` operationId).
PostSetupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostSetup Post setup
//
// Creates the first admin user. Only succeeds when no users exist.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/setup (the `PostSetup` operationId).
PostSetup(ctx context.Context, body PostSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSetupStatus Get setup status
//
// Returns whether initial setup is required (no users exist). When INITIAL_ADMIN_EMAIL is set, setup is skipped.
//
// Corresponds with GET /api/setup/status (the `GetSetupStatus` operationId).
GetSetupStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSetupStatusWithBody Post setup
//
// Creates the first admin user. Only succeeds when no users exist.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/setup/status (the `PostApiSetupStatus` operationId).
PostApiSetupStatusWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSetupStatus Post setup
//
// Creates the first admin user. Only succeeds when no users exist.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/setup/status (the `PostApiSetupStatus` operationId).
PostApiSetupStatus(ctx context.Context, body PostApiSetupStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
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) AutoAllocateWithBodyWithResponse ¶
func (c *ClientWithResponses) AutoAllocateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AutoAllocateResponse, error)
AutoAllocateWithBodyWithResponse Auto-allocate
Finds the next available CIDR in a block using bin-packing and creates an allocation.
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 /api/allocations/auto (the `AutoAllocate` operationId).
func (*ClientWithResponses) AutoAllocateWithResponse ¶
func (c *ClientWithResponses) AutoAllocateWithResponse(ctx context.Context, body AutoAllocateJSONRequestBody, reqEditors ...RequestEditorFn) (*AutoAllocateResponse, error)
AutoAllocateWithResponse Auto-allocate
Finds the next available CIDR in a block using bin-packing and creates an allocation.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/allocations/auto (the `AutoAllocate` operationId).
func (*ClientWithResponses) CreateAPITokenWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAPITokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAPITokenResponse, error)
CreateAPITokenWithBodyWithResponse Create API token
Create an API token. Only admins can create tokens. The raw token is returned once.
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 /api/auth/me/tokens (the `CreateAPIToken` operationId).
func (*ClientWithResponses) CreateAPITokenWithResponse ¶
func (c *ClientWithResponses) CreateAPITokenWithResponse(ctx context.Context, body CreateAPITokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAPITokenResponse, error)
CreateAPITokenWithResponse Create API token
Create an API token. Only admins can create tokens. The raw token is returned once.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/auth/me/tokens (the `CreateAPIToken` operationId).
func (*ClientWithResponses) CreateAllocationWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAllocationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAllocationResponse, error)
CreateAllocationWithBodyWithResponse Create Allocation
Creates a new IP allocation.
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 /api/allocations (the `CreateAllocation` operationId).
func (*ClientWithResponses) CreateAllocationWithResponse ¶
func (c *ClientWithResponses) CreateAllocationWithResponse(ctx context.Context, body CreateAllocationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAllocationResponse, error)
CreateAllocationWithResponse Create Allocation
Creates a new IP allocation.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/allocations (the `CreateAllocation` operationId).
func (*ClientWithResponses) CreateBlockWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateBlockWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBlockResponse, error)
CreateBlockWithBodyWithResponse Create Block
Creates a new network block.
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 /api/blocks (the `CreateBlock` operationId).
func (*ClientWithResponses) CreateBlockWithResponse ¶
func (c *ClientWithResponses) CreateBlockWithResponse(ctx context.Context, body CreateBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBlockResponse, error)
CreateBlockWithResponse Create Block
Creates a new network block.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/blocks (the `CreateBlock` operationId).
func (*ClientWithResponses) CreateEnvironmentWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateEnvironmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEnvironmentResponse, error)
CreateEnvironmentWithBodyWithResponse Create Environment
Creates a new network environment.
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 /api/environments (the `CreateEnvironment` operationId).
func (*ClientWithResponses) CreateEnvironmentWithResponse ¶
func (c *ClientWithResponses) CreateEnvironmentWithResponse(ctx context.Context, body CreateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEnvironmentResponse, error)
CreateEnvironmentWithResponse Create Environment
Creates a new network environment.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/environments (the `CreateEnvironment` operationId).
func (*ClientWithResponses) CreateIntegrationWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateIntegrationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIntegrationResponse, error)
CreateIntegrationWithBodyWithResponse Create Integration
Create a cloud connection (AWS, Azure, GCP)
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 /api/integrations (the `CreateIntegration` operationId).
func (*ClientWithResponses) CreateIntegrationWithResponse ¶
func (c *ClientWithResponses) CreateIntegrationWithResponse(ctx context.Context, body CreateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIntegrationResponse, error)
CreateIntegrationWithResponse Create Integration
Create a cloud connection (AWS, Azure, GCP)
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/integrations (the `CreateIntegration` operationId).
func (*ClientWithResponses) CreatePoolWithBodyWithResponse ¶
func (c *ClientWithResponses) CreatePoolWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePoolResponse, error)
CreatePoolWithBodyWithResponse Create Pool
Creates an environment pool (CIDR range that blocks in the environment can draw from).
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 /api/pools (the `CreatePool` operationId).
func (*ClientWithResponses) CreatePoolWithResponse ¶
func (c *ClientWithResponses) CreatePoolWithResponse(ctx context.Context, body CreatePoolJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePoolResponse, error)
CreatePoolWithResponse Create Pool
Creates an environment pool (CIDR range that blocks in the environment can draw from).
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/pools (the `CreatePool` operationId).
func (*ClientWithResponses) CreateReservedBlockWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateReservedBlockWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReservedBlockResponse, error)
CreateReservedBlockWithBodyWithResponse Create reserved block
Reserve a CIDR range so it cannot be used as a block or allocation. Admin only.
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 /api/reserved-blocks (the `CreateReservedBlock` operationId).
func (*ClientWithResponses) CreateReservedBlockWithResponse ¶
func (c *ClientWithResponses) CreateReservedBlockWithResponse(ctx context.Context, body CreateReservedBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReservedBlockResponse, error)
CreateReservedBlockWithResponse Create reserved block
Reserve a CIDR range so it cannot be used as a block or allocation. Admin only.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/reserved-blocks (the `CreateReservedBlock` operationId).
func (*ClientWithResponses) DeleteAPITokenWithResponse ¶
func (c *ClientWithResponses) DeleteAPITokenWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteAPITokenResponse, error)
DeleteAPITokenWithResponse Delete API token
Delete an API token for the current user.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/auth/me/tokens/{id} (the `DeleteAPIToken` operationId).
func (*ClientWithResponses) DeleteAllocationWithResponse ¶
func (c *ClientWithResponses) DeleteAllocationWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteAllocationResponse, error)
DeleteAllocationWithResponse Delete Allocation
Deletes an allocation.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/allocations/{id} (the `DeleteAllocation` operationId).
func (*ClientWithResponses) DeleteBlockWithResponse ¶
func (c *ClientWithResponses) DeleteBlockWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteBlockResponse, error)
DeleteBlockWithResponse Delete Block
Deletes a block.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/blocks/{id} (the `DeleteBlock` operationId).
func (*ClientWithResponses) DeleteEnvironmentWithResponse ¶
func (c *ClientWithResponses) DeleteEnvironmentWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteEnvironmentResponse, error)
DeleteEnvironmentWithResponse Delete Environment
Deletes an environment.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/environments/{id} (the `DeleteEnvironment` operationId).
func (*ClientWithResponses) DeleteIntegrationWithResponse ¶
func (c *ClientWithResponses) DeleteIntegrationWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteIntegrationResponse, error)
DeleteIntegrationWithResponse Delete Integration
Delete a cloud connection.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/integrations/{id} (the `DeleteIntegration` operationId).
func (*ClientWithResponses) DeletePoolWithResponse ¶
func (c *ClientWithResponses) DeletePoolWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeletePoolResponse, error)
DeletePoolWithResponse Delete Pool
Deletes a pool (blocks referencing it will have pool_id set to null).
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/pools/{id} (the `DeletePool` operationId).
func (*ClientWithResponses) DeleteReservedBlockWithResponse ¶
func (c *ClientWithResponses) DeleteReservedBlockWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteReservedBlockResponse, error)
DeleteReservedBlockWithResponse Delete reserved block
Remove a reserved CIDR range. Admin only.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/reserved-blocks/{id} (the `DeleteReservedBlock` operationId).
func (*ClientWithResponses) GetAllocationWithResponse ¶
func (c *ClientWithResponses) GetAllocationWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetAllocationResponse, error)
GetAllocationWithResponse Get Allocation
Gets a specific allocation by ID.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/allocations/{id} (the `GetAllocation` operationId).
func (*ClientWithResponses) GetBlockUsageWithResponse ¶
func (c *ClientWithResponses) GetBlockUsageWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetBlockUsageResponse, error)
GetBlockUsageWithResponse Get Block Usage
Gets usage statistics for a block.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/blocks/{id}/usage (the `GetBlockUsage` operationId).
func (*ClientWithResponses) GetBlockWithResponse ¶
func (c *ClientWithResponses) GetBlockWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetBlockResponse, error)
GetBlockWithResponse Get Block
Gets a specific block by ID.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/blocks/{id} (the `GetBlock` operationId).
func (*ClientWithResponses) GetCurrentUserWithResponse ¶
func (c *ClientWithResponses) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)
GetCurrentUserWithResponse Get current user
Returns the current authenticated user.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/auth/me (the `GetCurrentUser` operationId).
func (*ClientWithResponses) GetEnvironmentWithResponse ¶
func (c *ClientWithResponses) GetEnvironmentWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetEnvironmentResponse, error)
GetEnvironmentWithResponse Get Environment
Gets a specific environment by ID.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/environments/{id} (the `GetEnvironment` operationId).
func (*ClientWithResponses) GetIntegrationWithResponse ¶
func (c *ClientWithResponses) GetIntegrationWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetIntegrationResponse, error)
GetIntegrationWithResponse Get Integration
Get a cloud connection by ID.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/integrations/{id} (the `GetIntegration` operationId).
func (*ClientWithResponses) GetPoolWithResponse ¶
func (c *ClientWithResponses) GetPoolWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetPoolResponse, error)
GetPoolWithResponse Get Pool
Gets a pool by ID.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/pools/{id} (the `GetPool` operationId).
func (*ClientWithResponses) GetSetupStatusWithResponse ¶
func (c *ClientWithResponses) GetSetupStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSetupStatusResponse, error)
GetSetupStatusWithResponse Get setup status
Returns whether initial setup is required (no users exist). When INITIAL_ADMIN_EMAIL is set, setup is skipped.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/setup/status (the `GetSetupStatus` operationId).
func (*ClientWithResponses) ListAPITokensWithResponse ¶
func (c *ClientWithResponses) ListAPITokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAPITokensResponse, error)
ListAPITokensWithResponse List API tokens
List API tokens for the current user.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/auth/me/tokens (the `ListAPITokens` operationId).
func (*ClientWithResponses) ListAllocationsWithResponse ¶
func (c *ClientWithResponses) ListAllocationsWithResponse(ctx context.Context, params *ListAllocationsParams, reqEditors ...RequestEditorFn) (*ListAllocationsResponse, error)
ListAllocationsWithResponse List Allocations
Lists IP allocations with optional name/block_name filter and pagination (limit, offset)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/allocations (the `ListAllocations` operationId).
func (*ClientWithResponses) ListBlocksWithResponse ¶
func (c *ClientWithResponses) ListBlocksWithResponse(ctx context.Context, params *ListBlocksParams, reqEditors ...RequestEditorFn) (*ListBlocksResponse, error)
ListBlocksWithResponse List Blocks
Lists network blocks with optional name/environment/provider/connection_id filter and pagination (limit, offset)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/blocks (the `ListBlocks` operationId).
func (*ClientWithResponses) ListEnvironmentsWithResponse ¶
func (c *ClientWithResponses) ListEnvironmentsWithResponse(ctx context.Context, params *ListEnvironmentsParams, reqEditors ...RequestEditorFn) (*ListEnvironmentsResponse, error)
ListEnvironmentsWithResponse List Environments
Lists network environments with optional name filter and pagination (limit, offset)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/environments (the `ListEnvironments` operationId).
func (*ClientWithResponses) ListIntegrationsWithResponse ¶
func (c *ClientWithResponses) ListIntegrationsWithResponse(ctx context.Context, params *ListIntegrationsParams, reqEditors ...RequestEditorFn) (*ListIntegrationsResponse, error)
ListIntegrationsWithResponse List Integrations
List cloud connections for the organization.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/integrations (the `ListIntegrations` operationId).
func (*ClientWithResponses) ListPoolsWithResponse ¶
func (c *ClientWithResponses) ListPoolsWithResponse(ctx context.Context, params *ListPoolsParams, reqEditors ...RequestEditorFn) (*ListPoolsResponse, error)
ListPoolsWithResponse List Pools
Lists pools for an environment or for an organization. Optional query params: provider, connection_id to filter by cloud integration.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/pools (the `ListPools` operationId).
func (*ClientWithResponses) ListReservedBlocksWithResponse ¶
func (c *ClientWithResponses) ListReservedBlocksWithResponse(ctx context.Context, params *ListReservedBlocksParams, reqEditors ...RequestEditorFn) (*ListReservedBlocksResponse, error)
ListReservedBlocksWithResponse List reserved blocks
List CIDR ranges that are reserved (blacklisted) and cannot be used as blocks or allocations. Admin only.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/reserved-blocks (the `ListReservedBlocks` operationId).
func (*ClientWithResponses) LoginWithBodyWithResponse ¶
func (c *ClientWithResponses) LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResponse, error)
LoginWithBodyWithResponse Login
Authenticate with email and password; sets session cookie
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 /api/auth/login (the `Login` operationId).
func (*ClientWithResponses) LoginWithResponse ¶
func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)
LoginWithResponse Login
Authenticate with email and password; sets session cookie
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/auth/login (the `Login` operationId).
func (*ClientWithResponses) LogoutWithResponse ¶
func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
LogoutWithResponse Logout
Clear session cookie.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/auth/logout (the `Logout` operationId).
func (*ClientWithResponses) MarkTourCompletedWithResponse ¶
func (c *ClientWithResponses) MarkTourCompletedWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MarkTourCompletedResponse, error)
MarkTourCompletedWithResponse Mark tour completed
Marks the onboarding tour as completed for the current user.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/auth/me/tour-completed (the `MarkTourCompleted` operationId).
func (*ClientWithResponses) PostApiSetupStatusWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiSetupStatusWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSetupStatusResponse, error)
PostApiSetupStatusWithBodyWithResponse Post setup
Creates the first admin user. Only succeeds when no users exist.
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 /api/setup/status (the `PostApiSetupStatus` operationId).
func (*ClientWithResponses) PostApiSetupStatusWithResponse ¶
func (c *ClientWithResponses) PostApiSetupStatusWithResponse(ctx context.Context, body PostApiSetupStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSetupStatusResponse, error)
PostApiSetupStatusWithResponse Post setup
Creates the first admin user. Only succeeds when no users exist.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/setup/status (the `PostApiSetupStatus` operationId).
func (*ClientWithResponses) PostSetupWithBodyWithResponse ¶
func (c *ClientWithResponses) PostSetupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSetupResponse, error)
PostSetupWithBodyWithResponse Post setup
Creates the first admin user. Only succeeds when no users exist.
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 /api/setup (the `PostSetup` operationId).
func (*ClientWithResponses) PostSetupWithResponse ¶
func (c *ClientWithResponses) PostSetupWithResponse(ctx context.Context, body PostSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSetupResponse, error)
PostSetupWithResponse Post setup
Creates the first admin user. Only succeeds when no users exist.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/setup (the `PostSetup` operationId).
func (*ClientWithResponses) SuggestBlockCIDRWithResponse ¶
func (c *ClientWithResponses) SuggestBlockCIDRWithResponse(ctx context.Context, id UUID, params *SuggestBlockCIDRParams, reqEditors ...RequestEditorFn) (*SuggestBlockCIDRResponse, error)
SuggestBlockCIDRWithResponse Suggest Block CIDR
Suggests the next available CIDR in the block at the given prefix length, bin-packing to fill gaps ¶
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/blocks/{id}/suggest-cidr (the `SuggestBlockCIDR` operationId).
func (*ClientWithResponses) SuggestPoolBlockCIDRWithResponse ¶
func (c *ClientWithResponses) SuggestPoolBlockCIDRWithResponse(ctx context.Context, id UUID, params *SuggestPoolBlockCIDRParams, reqEditors ...RequestEditorFn) (*SuggestPoolBlockCIDRResponse, error)
SuggestPoolBlockCIDRWithResponse Suggest Pool Block CIDR
Suggests a CIDR for a new block in the pool at the given prefix length, considering existing blocks in that pool ¶
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/pools/{id}/suggest-block-cidr (the `SuggestPoolBlockCIDR` operationId).
func (*ClientWithResponses) SyncIntegrationWithResponse ¶
func (c *ClientWithResponses) SyncIntegrationWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*SyncIntegrationResponse, error)
SyncIntegrationWithResponse Sync Integration
Trigger sync for a cloud connection (pools, blocks, and allocations e.g. VPC subnets)
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/integrations/{id}/sync (the `SyncIntegration` operationId).
func (*ClientWithResponses) UpdateAllocationWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateAllocationWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAllocationResponse, error)
UpdateAllocationWithBodyWithResponse Update Allocation
Updates an existing allocation.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/allocations/{id} (the `UpdateAllocation` operationId).
func (*ClientWithResponses) UpdateAllocationWithResponse ¶
func (c *ClientWithResponses) UpdateAllocationWithResponse(ctx context.Context, id UUID, body UpdateAllocationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAllocationResponse, error)
UpdateAllocationWithResponse Update Allocation
Updates an existing allocation.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/allocations/{id} (the `UpdateAllocation` operationId).
func (*ClientWithResponses) UpdateBlockWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateBlockWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBlockResponse, error)
UpdateBlockWithBodyWithResponse Update Block
Updates an existing block.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/blocks/{id} (the `UpdateBlock` operationId).
func (*ClientWithResponses) UpdateBlockWithResponse ¶
func (c *ClientWithResponses) UpdateBlockWithResponse(ctx context.Context, id UUID, body UpdateBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBlockResponse, error)
UpdateBlockWithResponse Update Block
Updates an existing block.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/blocks/{id} (the `UpdateBlock` operationId).
func (*ClientWithResponses) UpdateEnvironmentWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateEnvironmentWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResponse, error)
UpdateEnvironmentWithBodyWithResponse Update Environment
Updates an existing environment.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/environments/{id} (the `UpdateEnvironment` operationId).
func (*ClientWithResponses) UpdateEnvironmentWithResponse ¶
func (c *ClientWithResponses) UpdateEnvironmentWithResponse(ctx context.Context, id UUID, body UpdateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResponse, error)
UpdateEnvironmentWithResponse Update Environment
Updates an existing environment.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/environments/{id} (the `UpdateEnvironment` operationId).
func (*ClientWithResponses) UpdateIntegrationWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateIntegrationWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIntegrationResponse, error)
UpdateIntegrationWithBodyWithResponse Update Integration
Update a cloud connection.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/integrations/{id} (the `UpdateIntegration` operationId).
func (*ClientWithResponses) UpdateIntegrationWithResponse ¶
func (c *ClientWithResponses) UpdateIntegrationWithResponse(ctx context.Context, id UUID, body UpdateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIntegrationResponse, error)
UpdateIntegrationWithResponse Update Integration
Update a cloud connection.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/integrations/{id} (the `UpdateIntegration` operationId).
func (*ClientWithResponses) UpdatePoolWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdatePoolWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePoolResponse, error)
UpdatePoolWithBodyWithResponse Update Pool
Updates a pool.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/pools/{id} (the `UpdatePool` operationId).
func (*ClientWithResponses) UpdatePoolWithResponse ¶
func (c *ClientWithResponses) UpdatePoolWithResponse(ctx context.Context, id UUID, body UpdatePoolJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePoolResponse, error)
UpdatePoolWithResponse Update Pool
Updates a pool.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/pools/{id} (the `UpdatePool` operationId).
func (*ClientWithResponses) UpdateReservedBlockWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateReservedBlockWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateReservedBlockResponse, error)
UpdateReservedBlockWithBodyWithResponse Update reserved block
Update reserved block metadata (name). Admin only.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/reserved-blocks/{id} (the `UpdateReservedBlock` operationId).
func (*ClientWithResponses) UpdateReservedBlockWithResponse ¶
func (c *ClientWithResponses) UpdateReservedBlockWithResponse(ctx context.Context, id UUID, body UpdateReservedBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateReservedBlockResponse, error)
UpdateReservedBlockWithResponse Update reserved block
Update reserved block metadata (name). Admin only.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/reserved-blocks/{id} (the `UpdateReservedBlock` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListAllocationsWithResponse List Allocations
//
// Lists IP allocations with optional name/block_name filter and pagination (limit, offset)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/allocations (the `ListAllocations` operationId).
ListAllocationsWithResponse(ctx context.Context, params *ListAllocationsParams, reqEditors ...RequestEditorFn) (*ListAllocationsResponse, error)
// CreateAllocationWithBodyWithResponse Create Allocation
//
// Creates a new IP allocation.
//
// 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 /api/allocations (the `CreateAllocation` operationId).
CreateAllocationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAllocationResponse, error)
// CreateAllocationWithResponse Create Allocation
//
// Creates a new IP allocation.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/allocations (the `CreateAllocation` operationId).
CreateAllocationWithResponse(ctx context.Context, body CreateAllocationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAllocationResponse, error)
// AutoAllocateWithBodyWithResponse Auto-allocate
//
// Finds the next available CIDR in a block using bin-packing and creates an allocation.
//
// 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 /api/allocations/auto (the `AutoAllocate` operationId).
AutoAllocateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AutoAllocateResponse, error)
// AutoAllocateWithResponse Auto-allocate
//
// Finds the next available CIDR in a block using bin-packing and creates an allocation.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/allocations/auto (the `AutoAllocate` operationId).
AutoAllocateWithResponse(ctx context.Context, body AutoAllocateJSONRequestBody, reqEditors ...RequestEditorFn) (*AutoAllocateResponse, error)
// DeleteAllocationWithResponse Delete Allocation
//
// Deletes an allocation.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/allocations/{id} (the `DeleteAllocation` operationId).
DeleteAllocationWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteAllocationResponse, error)
// GetAllocationWithResponse Get Allocation
//
// Gets a specific allocation by ID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/allocations/{id} (the `GetAllocation` operationId).
GetAllocationWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetAllocationResponse, error)
// UpdateAllocationWithBodyWithResponse Update Allocation
//
// Updates an existing allocation.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/allocations/{id} (the `UpdateAllocation` operationId).
UpdateAllocationWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAllocationResponse, error)
// UpdateAllocationWithResponse Update Allocation
//
// Updates an existing allocation.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/allocations/{id} (the `UpdateAllocation` operationId).
UpdateAllocationWithResponse(ctx context.Context, id UUID, body UpdateAllocationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAllocationResponse, error)
// LoginWithBodyWithResponse Login
//
// Authenticate with email and password; sets session cookie
//
// 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 /api/auth/login (the `Login` operationId).
LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResponse, error)
// LoginWithResponse Login
//
// Authenticate with email and password; sets session cookie
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/auth/login (the `Login` operationId).
LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)
// LogoutWithResponse Logout
//
// Clear session cookie.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/auth/logout (the `Logout` operationId).
LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
// GetCurrentUserWithResponse Get current user
//
// Returns the current authenticated user.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/auth/me (the `GetCurrentUser` operationId).
GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)
// ListAPITokensWithResponse List API tokens
//
// List API tokens for the current user.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/auth/me/tokens (the `ListAPITokens` operationId).
ListAPITokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAPITokensResponse, error)
// CreateAPITokenWithBodyWithResponse Create API token
//
// Create an API token. Only admins can create tokens. The raw token is returned once.
//
// 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 /api/auth/me/tokens (the `CreateAPIToken` operationId).
CreateAPITokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAPITokenResponse, error)
// CreateAPITokenWithResponse Create API token
//
// Create an API token. Only admins can create tokens. The raw token is returned once.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/auth/me/tokens (the `CreateAPIToken` operationId).
CreateAPITokenWithResponse(ctx context.Context, body CreateAPITokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAPITokenResponse, error)
// DeleteAPITokenWithResponse Delete API token
//
// Delete an API token for the current user.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/auth/me/tokens/{id} (the `DeleteAPIToken` operationId).
DeleteAPITokenWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteAPITokenResponse, error)
// MarkTourCompletedWithResponse Mark tour completed
//
// Marks the onboarding tour as completed for the current user.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/auth/me/tour-completed (the `MarkTourCompleted` operationId).
MarkTourCompletedWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MarkTourCompletedResponse, error)
// ListBlocksWithResponse List Blocks
//
// Lists network blocks with optional name/environment/provider/connection_id filter and pagination (limit, offset)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/blocks (the `ListBlocks` operationId).
ListBlocksWithResponse(ctx context.Context, params *ListBlocksParams, reqEditors ...RequestEditorFn) (*ListBlocksResponse, error)
// CreateBlockWithBodyWithResponse Create Block
//
// Creates a new network block.
//
// 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 /api/blocks (the `CreateBlock` operationId).
CreateBlockWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBlockResponse, error)
// CreateBlockWithResponse Create Block
//
// Creates a new network block.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/blocks (the `CreateBlock` operationId).
CreateBlockWithResponse(ctx context.Context, body CreateBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBlockResponse, error)
// DeleteBlockWithResponse Delete Block
//
// Deletes a block.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/blocks/{id} (the `DeleteBlock` operationId).
DeleteBlockWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteBlockResponse, error)
// GetBlockWithResponse Get Block
//
// Gets a specific block by ID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/blocks/{id} (the `GetBlock` operationId).
GetBlockWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetBlockResponse, error)
// UpdateBlockWithBodyWithResponse Update Block
//
// Updates an existing block.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/blocks/{id} (the `UpdateBlock` operationId).
UpdateBlockWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBlockResponse, error)
// UpdateBlockWithResponse Update Block
//
// Updates an existing block.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/blocks/{id} (the `UpdateBlock` operationId).
UpdateBlockWithResponse(ctx context.Context, id UUID, body UpdateBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBlockResponse, error)
// SuggestBlockCIDRWithResponse Suggest Block CIDR
//
// Suggests the next available CIDR in the block at the given prefix length, bin-packing to fill gaps
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/blocks/{id}/suggest-cidr (the `SuggestBlockCIDR` operationId).
SuggestBlockCIDRWithResponse(ctx context.Context, id UUID, params *SuggestBlockCIDRParams, reqEditors ...RequestEditorFn) (*SuggestBlockCIDRResponse, error)
// GetBlockUsageWithResponse Get Block Usage
//
// Gets usage statistics for a block.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/blocks/{id}/usage (the `GetBlockUsage` operationId).
GetBlockUsageWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetBlockUsageResponse, error)
// ListEnvironmentsWithResponse List Environments
//
// Lists network environments with optional name filter and pagination (limit, offset)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/environments (the `ListEnvironments` operationId).
ListEnvironmentsWithResponse(ctx context.Context, params *ListEnvironmentsParams, reqEditors ...RequestEditorFn) (*ListEnvironmentsResponse, error)
// CreateEnvironmentWithBodyWithResponse Create Environment
//
// Creates a new network environment.
//
// 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 /api/environments (the `CreateEnvironment` operationId).
CreateEnvironmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEnvironmentResponse, error)
// CreateEnvironmentWithResponse Create Environment
//
// Creates a new network environment.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/environments (the `CreateEnvironment` operationId).
CreateEnvironmentWithResponse(ctx context.Context, body CreateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEnvironmentResponse, error)
// DeleteEnvironmentWithResponse Delete Environment
//
// Deletes an environment.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/environments/{id} (the `DeleteEnvironment` operationId).
DeleteEnvironmentWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteEnvironmentResponse, error)
// GetEnvironmentWithResponse Get Environment
//
// Gets a specific environment by ID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/environments/{id} (the `GetEnvironment` operationId).
GetEnvironmentWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetEnvironmentResponse, error)
// UpdateEnvironmentWithBodyWithResponse Update Environment
//
// Updates an existing environment.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/environments/{id} (the `UpdateEnvironment` operationId).
UpdateEnvironmentWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResponse, error)
// UpdateEnvironmentWithResponse Update Environment
//
// Updates an existing environment.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/environments/{id} (the `UpdateEnvironment` operationId).
UpdateEnvironmentWithResponse(ctx context.Context, id UUID, body UpdateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResponse, error)
// ListIntegrationsWithResponse List Integrations
//
// List cloud connections for the organization.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/integrations (the `ListIntegrations` operationId).
ListIntegrationsWithResponse(ctx context.Context, params *ListIntegrationsParams, reqEditors ...RequestEditorFn) (*ListIntegrationsResponse, error)
// CreateIntegrationWithBodyWithResponse Create Integration
//
// Create a cloud connection (AWS, Azure, GCP)
//
// 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 /api/integrations (the `CreateIntegration` operationId).
CreateIntegrationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIntegrationResponse, error)
// CreateIntegrationWithResponse Create Integration
//
// Create a cloud connection (AWS, Azure, GCP)
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/integrations (the `CreateIntegration` operationId).
CreateIntegrationWithResponse(ctx context.Context, body CreateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIntegrationResponse, error)
// DeleteIntegrationWithResponse Delete Integration
//
// Delete a cloud connection.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/integrations/{id} (the `DeleteIntegration` operationId).
DeleteIntegrationWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteIntegrationResponse, error)
// GetIntegrationWithResponse Get Integration
//
// Get a cloud connection by ID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/integrations/{id} (the `GetIntegration` operationId).
GetIntegrationWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetIntegrationResponse, error)
// UpdateIntegrationWithBodyWithResponse Update Integration
//
// Update a cloud connection.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/integrations/{id} (the `UpdateIntegration` operationId).
UpdateIntegrationWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIntegrationResponse, error)
// UpdateIntegrationWithResponse Update Integration
//
// Update a cloud connection.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/integrations/{id} (the `UpdateIntegration` operationId).
UpdateIntegrationWithResponse(ctx context.Context, id UUID, body UpdateIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIntegrationResponse, error)
// SyncIntegrationWithResponse Sync Integration
//
// Trigger sync for a cloud connection (pools, blocks, and allocations e.g. VPC subnets)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/integrations/{id}/sync (the `SyncIntegration` operationId).
SyncIntegrationWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*SyncIntegrationResponse, error)
// ListPoolsWithResponse List Pools
//
// Lists pools for an environment or for an organization. Optional query params: provider, connection_id to filter by cloud integration.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/pools (the `ListPools` operationId).
ListPoolsWithResponse(ctx context.Context, params *ListPoolsParams, reqEditors ...RequestEditorFn) (*ListPoolsResponse, error)
// CreatePoolWithBodyWithResponse Create Pool
//
// Creates an environment pool (CIDR range that blocks in the environment can draw from).
//
// 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 /api/pools (the `CreatePool` operationId).
CreatePoolWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePoolResponse, error)
// CreatePoolWithResponse Create Pool
//
// Creates an environment pool (CIDR range that blocks in the environment can draw from).
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/pools (the `CreatePool` operationId).
CreatePoolWithResponse(ctx context.Context, body CreatePoolJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePoolResponse, error)
// DeletePoolWithResponse Delete Pool
//
// Deletes a pool (blocks referencing it will have pool_id set to null).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/pools/{id} (the `DeletePool` operationId).
DeletePoolWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeletePoolResponse, error)
// GetPoolWithResponse Get Pool
//
// Gets a pool by ID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/pools/{id} (the `GetPool` operationId).
GetPoolWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetPoolResponse, error)
// UpdatePoolWithBodyWithResponse Update Pool
//
// Updates a pool.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/pools/{id} (the `UpdatePool` operationId).
UpdatePoolWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePoolResponse, error)
// UpdatePoolWithResponse Update Pool
//
// Updates a pool.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/pools/{id} (the `UpdatePool` operationId).
UpdatePoolWithResponse(ctx context.Context, id UUID, body UpdatePoolJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePoolResponse, error)
// SuggestPoolBlockCIDRWithResponse Suggest Pool Block CIDR
//
// Suggests a CIDR for a new block in the pool at the given prefix length, considering existing blocks in that pool
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/pools/{id}/suggest-block-cidr (the `SuggestPoolBlockCIDR` operationId).
SuggestPoolBlockCIDRWithResponse(ctx context.Context, id UUID, params *SuggestPoolBlockCIDRParams, reqEditors ...RequestEditorFn) (*SuggestPoolBlockCIDRResponse, error)
// ListReservedBlocksWithResponse List reserved blocks
//
// List CIDR ranges that are reserved (blacklisted) and cannot be used as blocks or allocations. Admin only.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/reserved-blocks (the `ListReservedBlocks` operationId).
ListReservedBlocksWithResponse(ctx context.Context, params *ListReservedBlocksParams, reqEditors ...RequestEditorFn) (*ListReservedBlocksResponse, error)
// CreateReservedBlockWithBodyWithResponse Create reserved block
//
// Reserve a CIDR range so it cannot be used as a block or allocation. Admin only.
//
// 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 /api/reserved-blocks (the `CreateReservedBlock` operationId).
CreateReservedBlockWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReservedBlockResponse, error)
// CreateReservedBlockWithResponse Create reserved block
//
// Reserve a CIDR range so it cannot be used as a block or allocation. Admin only.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/reserved-blocks (the `CreateReservedBlock` operationId).
CreateReservedBlockWithResponse(ctx context.Context, body CreateReservedBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReservedBlockResponse, error)
// DeleteReservedBlockWithResponse Delete reserved block
//
// Remove a reserved CIDR range. Admin only.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/reserved-blocks/{id} (the `DeleteReservedBlock` operationId).
DeleteReservedBlockWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteReservedBlockResponse, error)
// UpdateReservedBlockWithBodyWithResponse Update reserved block
//
// Update reserved block metadata (name). Admin only.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/reserved-blocks/{id} (the `UpdateReservedBlock` operationId).
UpdateReservedBlockWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateReservedBlockResponse, error)
// UpdateReservedBlockWithResponse Update reserved block
//
// Update reserved block metadata (name). Admin only.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/reserved-blocks/{id} (the `UpdateReservedBlock` operationId).
UpdateReservedBlockWithResponse(ctx context.Context, id UUID, body UpdateReservedBlockJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateReservedBlockResponse, error)
// PostSetupWithBodyWithResponse Post setup
//
// Creates the first admin user. Only succeeds when no users exist.
//
// 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 /api/setup (the `PostSetup` operationId).
PostSetupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSetupResponse, error)
// PostSetupWithResponse Post setup
//
// Creates the first admin user. Only succeeds when no users exist.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/setup (the `PostSetup` operationId).
PostSetupWithResponse(ctx context.Context, body PostSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSetupResponse, error)
// GetSetupStatusWithResponse Get setup status
//
// Returns whether initial setup is required (no users exist). When INITIAL_ADMIN_EMAIL is set, setup is skipped.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/setup/status (the `GetSetupStatus` operationId).
GetSetupStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSetupStatusResponse, error)
// PostApiSetupStatusWithBodyWithResponse Post setup
//
// Creates the first admin user. Only succeeds when no users exist.
//
// 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 /api/setup/status (the `PostApiSetupStatus` operationId).
PostApiSetupStatusWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSetupStatusResponse, error)
// PostApiSetupStatusWithResponse Post setup
//
// Creates the first admin user. Only succeeds when no users exist.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/setup/status (the `PostApiSetupStatus` operationId).
PostApiSetupStatusWithResponse(ctx context.Context, body PostApiSetupStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSetupStatusResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateAPITokenJSONRequestBody ¶
type CreateAPITokenJSONRequestBody = CreateTokenRequest
CreateAPITokenJSONRequestBody defines body for CreateAPIToken for application/json ContentType.
type CreateAPITokenResponse ¶
type CreateAPITokenResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CreateTokenOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseCreateAPITokenResponse ¶
func ParseCreateAPITokenResponse(rsp *http.Response) (*CreateAPITokenResponse, error)
ParseCreateAPITokenResponse parses an HTTP response from a CreateAPITokenWithResponse call
func (CreateAPITokenResponse) ContentType ¶
func (r CreateAPITokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateAPITokenResponse) GetBody ¶
func (r CreateAPITokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateAPITokenResponse) GetJSON200 ¶
func (r CreateAPITokenResponse) GetJSON200() *CreateTokenOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateAPITokenResponse) GetJSON400 ¶
func (r CreateAPITokenResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateAPITokenResponse) GetJSON401 ¶
func (r CreateAPITokenResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CreateAPITokenResponse) GetJSON403 ¶
func (r CreateAPITokenResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (CreateAPITokenResponse) GetJSON500 ¶
func (r CreateAPITokenResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (CreateAPITokenResponse) Status ¶
func (r CreateAPITokenResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAPITokenResponse) StatusCode ¶
func (r CreateAPITokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateAllocationInput ¶
type CreateAllocationInput struct {
BlockName string `json:"block_name"`
Cidr string `json:"cidr"`
Name string `json:"name"`
}
CreateAllocationInput defines model for CreateAllocationInput.
type CreateAllocationJSONRequestBody ¶
type CreateAllocationJSONRequestBody = CreateAllocationInput
CreateAllocationJSONRequestBody defines body for CreateAllocation for application/json ContentType.
type CreateAllocationResponse ¶
type CreateAllocationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AllocationOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON412 the response for an HTTP 412 `application/json` response
JSON412 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseCreateAllocationResponse ¶
func ParseCreateAllocationResponse(rsp *http.Response) (*CreateAllocationResponse, error)
ParseCreateAllocationResponse parses an HTTP response from a CreateAllocationWithResponse call
func (CreateAllocationResponse) ContentType ¶
func (r CreateAllocationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateAllocationResponse) GetBody ¶
func (r CreateAllocationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateAllocationResponse) GetJSON200 ¶
func (r CreateAllocationResponse) GetJSON200() *AllocationOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateAllocationResponse) GetJSON400 ¶
func (r CreateAllocationResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateAllocationResponse) GetJSON404 ¶
func (r CreateAllocationResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (CreateAllocationResponse) GetJSON412 ¶
func (r CreateAllocationResponse) GetJSON412() *ErrorResponse
GetJSON412 returns the response for an HTTP 412 `application/json` response
func (CreateAllocationResponse) GetJSON500 ¶
func (r CreateAllocationResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (CreateAllocationResponse) Status ¶
func (r CreateAllocationResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAllocationResponse) StatusCode ¶
func (r CreateAllocationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateBlockInput ¶
type CreateBlockInput struct {
Cidr string `json:"cidr"`
// EnvironmentId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
EnvironmentId *UUID `json:"environment_id,omitempty"`
Name string `json:"name"`
// OrganizationId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
OrganizationId *UUID `json:"organization_id,omitempty"`
// PoolId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
PoolId *UUID `json:"pool_id,omitempty"`
}
CreateBlockInput defines model for CreateBlockInput.
type CreateBlockJSONRequestBody ¶
type CreateBlockJSONRequestBody = CreateBlockInput
CreateBlockJSONRequestBody defines body for CreateBlock for application/json ContentType.
type CreateBlockResponse ¶
type CreateBlockResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *BlockOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseCreateBlockResponse ¶
func ParseCreateBlockResponse(rsp *http.Response) (*CreateBlockResponse, error)
ParseCreateBlockResponse parses an HTTP response from a CreateBlockWithResponse call
func (CreateBlockResponse) ContentType ¶
func (r CreateBlockResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateBlockResponse) GetBody ¶
func (r CreateBlockResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateBlockResponse) GetJSON200 ¶
func (r CreateBlockResponse) GetJSON200() *BlockOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateBlockResponse) GetJSON400 ¶
func (r CreateBlockResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateBlockResponse) GetJSON500 ¶
func (r CreateBlockResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (CreateBlockResponse) Status ¶
func (r CreateBlockResponse) Status() string
Status returns HTTPResponse.Status
func (CreateBlockResponse) StatusCode ¶
func (r CreateBlockResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateEnvironmentInput ¶
type CreateEnvironmentInput struct {
Name string `json:"name"`
// OrganizationId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
OrganizationId *UUID `json:"organization_id,omitempty"`
Pools *[]PoolItemInput `json:"pools,omitempty"`
}
CreateEnvironmentInput defines model for CreateEnvironmentInput.
type CreateEnvironmentJSONRequestBody ¶
type CreateEnvironmentJSONRequestBody = CreateEnvironmentInput
CreateEnvironmentJSONRequestBody defines body for CreateEnvironment for application/json ContentType.
type CreateEnvironmentResponse ¶
type CreateEnvironmentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *EnvironmentOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseCreateEnvironmentResponse ¶
func ParseCreateEnvironmentResponse(rsp *http.Response) (*CreateEnvironmentResponse, error)
ParseCreateEnvironmentResponse parses an HTTP response from a CreateEnvironmentWithResponse call
func (CreateEnvironmentResponse) ContentType ¶
func (r CreateEnvironmentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateEnvironmentResponse) GetBody ¶
func (r CreateEnvironmentResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateEnvironmentResponse) GetJSON200 ¶
func (r CreateEnvironmentResponse) GetJSON200() *EnvironmentOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateEnvironmentResponse) GetJSON400 ¶
func (r CreateEnvironmentResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateEnvironmentResponse) GetJSON500 ¶
func (r CreateEnvironmentResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (CreateEnvironmentResponse) Status ¶
func (r CreateEnvironmentResponse) Status() string
Status returns HTTPResponse.Status
func (CreateEnvironmentResponse) StatusCode ¶
func (r CreateEnvironmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateIntegrationInput ¶
type CreateIntegrationInput struct {
Config interface{} `json:"config,omitempty"`
ConflictResolution *string `json:"conflict_resolution,omitempty"`
Name string `json:"name"`
// OrganizationId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
OrganizationId *UUID `json:"organization_id,omitempty"`
Provider string `json:"provider"`
SyncIntervalMinutes *int `json:"sync_interval_minutes,omitempty"`
SyncMode *string `json:"sync_mode,omitempty"`
}
CreateIntegrationInput defines model for CreateIntegrationInput.
type CreateIntegrationJSONRequestBody ¶
type CreateIntegrationJSONRequestBody = CreateIntegrationInput
CreateIntegrationJSONRequestBody defines body for CreateIntegration for application/json ContentType.
type CreateIntegrationResponse ¶
type CreateIntegrationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IntegrationOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseCreateIntegrationResponse ¶
func ParseCreateIntegrationResponse(rsp *http.Response) (*CreateIntegrationResponse, error)
ParseCreateIntegrationResponse parses an HTTP response from a CreateIntegrationWithResponse call
func (CreateIntegrationResponse) ContentType ¶
func (r CreateIntegrationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateIntegrationResponse) GetBody ¶
func (r CreateIntegrationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateIntegrationResponse) GetJSON200 ¶
func (r CreateIntegrationResponse) GetJSON200() *IntegrationOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateIntegrationResponse) GetJSON400 ¶
func (r CreateIntegrationResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateIntegrationResponse) GetJSON401 ¶
func (r CreateIntegrationResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CreateIntegrationResponse) GetJSON500 ¶
func (r CreateIntegrationResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (CreateIntegrationResponse) Status ¶
func (r CreateIntegrationResponse) Status() string
Status returns HTTPResponse.Status
func (CreateIntegrationResponse) StatusCode ¶
func (r CreateIntegrationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePoolInput ¶
type CreatePoolInput struct {
Cidr string `json:"cidr"`
// ConnectionId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
ConnectionId *UUID `json:"connection_id,omitempty"`
// EnvironmentId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
EnvironmentId UUID `json:"environment_id"`
Name string `json:"name"`
// ParentPoolId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
ParentPoolId *UUID `json:"parent_pool_id,omitempty"`
}
CreatePoolInput defines model for CreatePoolInput.
type CreatePoolJSONRequestBody ¶
type CreatePoolJSONRequestBody = CreatePoolInput
CreatePoolJSONRequestBody defines body for CreatePool for application/json ContentType.
type CreatePoolResponse ¶
type CreatePoolResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PoolOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseCreatePoolResponse ¶
func ParseCreatePoolResponse(rsp *http.Response) (*CreatePoolResponse, error)
ParseCreatePoolResponse parses an HTTP response from a CreatePoolWithResponse call
func (CreatePoolResponse) ContentType ¶
func (r CreatePoolResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreatePoolResponse) GetBody ¶
func (r CreatePoolResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreatePoolResponse) GetJSON200 ¶
func (r CreatePoolResponse) GetJSON200() *PoolOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreatePoolResponse) GetJSON400 ¶
func (r CreatePoolResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreatePoolResponse) GetJSON404 ¶
func (r CreatePoolResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (CreatePoolResponse) GetJSON500 ¶
func (r CreatePoolResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (CreatePoolResponse) Status ¶
func (r CreatePoolResponse) Status() string
Status returns HTTPResponse.Status
func (CreatePoolResponse) StatusCode ¶
func (r CreatePoolResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateReservedBlockInput ¶
type CreateReservedBlockInput struct {
Cidr string `json:"cidr"`
Name *string `json:"name,omitempty"`
// OrganizationId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
OrganizationId *UUID `json:"organization_id,omitempty"`
Reason *string `json:"reason,omitempty"`
}
CreateReservedBlockInput defines model for CreateReservedBlockInput.
type CreateReservedBlockJSONRequestBody ¶
type CreateReservedBlockJSONRequestBody = CreateReservedBlockInput
CreateReservedBlockJSONRequestBody defines body for CreateReservedBlock for application/json ContentType.
type CreateReservedBlockResponse ¶
type CreateReservedBlockResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReservedBlockOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseCreateReservedBlockResponse ¶
func ParseCreateReservedBlockResponse(rsp *http.Response) (*CreateReservedBlockResponse, error)
ParseCreateReservedBlockResponse parses an HTTP response from a CreateReservedBlockWithResponse call
func (CreateReservedBlockResponse) ContentType ¶
func (r CreateReservedBlockResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateReservedBlockResponse) GetBody ¶
func (r CreateReservedBlockResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateReservedBlockResponse) GetJSON200 ¶
func (r CreateReservedBlockResponse) GetJSON200() *ReservedBlockOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateReservedBlockResponse) GetJSON400 ¶
func (r CreateReservedBlockResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateReservedBlockResponse) GetJSON403 ¶
func (r CreateReservedBlockResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (CreateReservedBlockResponse) GetJSON500 ¶
func (r CreateReservedBlockResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (CreateReservedBlockResponse) Status ¶
func (r CreateReservedBlockResponse) Status() string
Status returns HTTPResponse.Status
func (CreateReservedBlockResponse) StatusCode ¶
func (r CreateReservedBlockResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateTokenOutput ¶
type CreateTokenOutput struct {
Token *CreateTokenResponse `json:"token,omitempty"`
}
CreateTokenOutput defines model for CreateTokenOutput.
type CreateTokenRequest ¶
type CreateTokenRequest struct {
ExpiresAt *string `json:"expires_at,omitempty"`
Name *string `json:"name,omitempty"`
OrganizationId *string `json:"organization_id,omitempty"`
}
CreateTokenRequest defines model for CreateTokenRequest.
type CreateTokenResponse ¶
type CreateTokenResponse struct {
CreatedAt *string `json:"created_at,omitempty"`
ExpiresAt *string `json:"expires_at,omitempty"`
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
OrganizationId *string `json:"organization_id,omitempty"`
Token *string `json:"token,omitempty"`
}
CreateTokenResponse defines model for CreateTokenResponse.
type DeleteAPITokenResponse ¶
type DeleteAPITokenResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseDeleteAPITokenResponse ¶
func ParseDeleteAPITokenResponse(rsp *http.Response) (*DeleteAPITokenResponse, error)
ParseDeleteAPITokenResponse parses an HTTP response from a DeleteAPITokenWithResponse call
func (DeleteAPITokenResponse) ContentType ¶
func (r DeleteAPITokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteAPITokenResponse) GetBody ¶
func (r DeleteAPITokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteAPITokenResponse) GetJSON401 ¶
func (r DeleteAPITokenResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DeleteAPITokenResponse) GetJSON404 ¶
func (r DeleteAPITokenResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteAPITokenResponse) GetJSON500 ¶
func (r DeleteAPITokenResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteAPITokenResponse) Status ¶
func (r DeleteAPITokenResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteAPITokenResponse) StatusCode ¶
func (r DeleteAPITokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteAllocationResponse ¶
type DeleteAllocationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseDeleteAllocationResponse ¶
func ParseDeleteAllocationResponse(rsp *http.Response) (*DeleteAllocationResponse, error)
ParseDeleteAllocationResponse parses an HTTP response from a DeleteAllocationWithResponse call
func (DeleteAllocationResponse) ContentType ¶
func (r DeleteAllocationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteAllocationResponse) GetBody ¶
func (r DeleteAllocationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteAllocationResponse) GetJSON404 ¶
func (r DeleteAllocationResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteAllocationResponse) GetJSON500 ¶
func (r DeleteAllocationResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteAllocationResponse) Status ¶
func (r DeleteAllocationResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteAllocationResponse) StatusCode ¶
func (r DeleteAllocationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteBlockResponse ¶
type DeleteBlockResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseDeleteBlockResponse ¶
func ParseDeleteBlockResponse(rsp *http.Response) (*DeleteBlockResponse, error)
ParseDeleteBlockResponse parses an HTTP response from a DeleteBlockWithResponse call
func (DeleteBlockResponse) ContentType ¶
func (r DeleteBlockResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteBlockResponse) GetBody ¶
func (r DeleteBlockResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteBlockResponse) GetJSON404 ¶
func (r DeleteBlockResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteBlockResponse) GetJSON500 ¶
func (r DeleteBlockResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteBlockResponse) Status ¶
func (r DeleteBlockResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteBlockResponse) StatusCode ¶
func (r DeleteBlockResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteEnvironmentResponse ¶
type DeleteEnvironmentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseDeleteEnvironmentResponse ¶
func ParseDeleteEnvironmentResponse(rsp *http.Response) (*DeleteEnvironmentResponse, error)
ParseDeleteEnvironmentResponse parses an HTTP response from a DeleteEnvironmentWithResponse call
func (DeleteEnvironmentResponse) ContentType ¶
func (r DeleteEnvironmentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteEnvironmentResponse) GetBody ¶
func (r DeleteEnvironmentResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteEnvironmentResponse) GetJSON404 ¶
func (r DeleteEnvironmentResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteEnvironmentResponse) GetJSON500 ¶
func (r DeleteEnvironmentResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteEnvironmentResponse) Status ¶
func (r DeleteEnvironmentResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteEnvironmentResponse) StatusCode ¶
func (r DeleteEnvironmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteIntegrationResponse ¶
type DeleteIntegrationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IntegrationOutput
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseDeleteIntegrationResponse ¶
func ParseDeleteIntegrationResponse(rsp *http.Response) (*DeleteIntegrationResponse, error)
ParseDeleteIntegrationResponse parses an HTTP response from a DeleteIntegrationWithResponse call
func (DeleteIntegrationResponse) ContentType ¶
func (r DeleteIntegrationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteIntegrationResponse) GetBody ¶
func (r DeleteIntegrationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteIntegrationResponse) GetJSON200 ¶
func (r DeleteIntegrationResponse) GetJSON200() *IntegrationOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteIntegrationResponse) GetJSON401 ¶
func (r DeleteIntegrationResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DeleteIntegrationResponse) GetJSON404 ¶
func (r DeleteIntegrationResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteIntegrationResponse) GetJSON500 ¶
func (r DeleteIntegrationResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteIntegrationResponse) Status ¶
func (r DeleteIntegrationResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteIntegrationResponse) StatusCode ¶
func (r DeleteIntegrationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeletePoolResponse ¶
type DeletePoolResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseDeletePoolResponse ¶
func ParseDeletePoolResponse(rsp *http.Response) (*DeletePoolResponse, error)
ParseDeletePoolResponse parses an HTTP response from a DeletePoolWithResponse call
func (DeletePoolResponse) ContentType ¶
func (r DeletePoolResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeletePoolResponse) GetBody ¶
func (r DeletePoolResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeletePoolResponse) GetJSON404 ¶
func (r DeletePoolResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeletePoolResponse) GetJSON500 ¶
func (r DeletePoolResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeletePoolResponse) Status ¶
func (r DeletePoolResponse) Status() string
Status returns HTTPResponse.Status
func (DeletePoolResponse) StatusCode ¶
func (r DeletePoolResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteReservedBlockResponse ¶
type DeleteReservedBlockResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseDeleteReservedBlockResponse ¶
func ParseDeleteReservedBlockResponse(rsp *http.Response) (*DeleteReservedBlockResponse, error)
ParseDeleteReservedBlockResponse parses an HTTP response from a DeleteReservedBlockWithResponse call
func (DeleteReservedBlockResponse) ContentType ¶
func (r DeleteReservedBlockResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteReservedBlockResponse) GetBody ¶
func (r DeleteReservedBlockResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteReservedBlockResponse) GetJSON403 ¶
func (r DeleteReservedBlockResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteReservedBlockResponse) GetJSON404 ¶
func (r DeleteReservedBlockResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteReservedBlockResponse) GetJSON500 ¶
func (r DeleteReservedBlockResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteReservedBlockResponse) Status ¶
func (r DeleteReservedBlockResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteReservedBlockResponse) StatusCode ¶
func (r DeleteReservedBlockResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EnvironmentDetailOutput ¶
type EnvironmentDetailOutput struct {
Blocks *[]BlockOutput `json:"blocks,omitempty"`
// Id Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
Id *UUID `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
}
EnvironmentDetailOutput defines model for EnvironmentDetailOutput.
type EnvironmentListOutput ¶
type EnvironmentListOutput struct {
Environments *[]EnvironmentOutput `json:"environments,omitempty"`
Total *int `json:"total,omitempty"`
}
EnvironmentListOutput defines model for EnvironmentListOutput.
type EnvironmentOutput ¶
type EnvironmentOutput struct {
// Id Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
Id *UUID `json:"id,omitempty"`
// InitialPoolId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
InitialPoolId *UUID `json:"initial_pool_id,omitempty"`
Name *string `json:"name,omitempty"`
PoolIds *[]UUID `json:"pool_ids,omitempty"`
}
EnvironmentOutput defines model for EnvironmentOutput.
type ErrorResponse ¶
type ErrorResponse struct {
// Code Application-specific error code.
Code *int `json:"code,omitempty"`
// Context Application context.
Context *map[string]interface{} `json:"context,omitempty"`
// Error Error message.
Error *string `json:"error,omitempty"`
// Status Status text.
Status *string `json:"status,omitempty"`
}
ErrorResponse defines model for ErrorResponse.
type GetAllocationResponse ¶
type GetAllocationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AllocationOutput
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseGetAllocationResponse ¶
func ParseGetAllocationResponse(rsp *http.Response) (*GetAllocationResponse, error)
ParseGetAllocationResponse parses an HTTP response from a GetAllocationWithResponse call
func (GetAllocationResponse) ContentType ¶
func (r GetAllocationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAllocationResponse) GetBody ¶
func (r GetAllocationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAllocationResponse) GetJSON200 ¶
func (r GetAllocationResponse) GetJSON200() *AllocationOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAllocationResponse) GetJSON404 ¶
func (r GetAllocationResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetAllocationResponse) GetJSON500 ¶
func (r GetAllocationResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetAllocationResponse) Status ¶
func (r GetAllocationResponse) Status() string
Status returns HTTPResponse.Status
func (GetAllocationResponse) StatusCode ¶
func (r GetAllocationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBlockResponse ¶
type GetBlockResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *BlockOutput
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseGetBlockResponse ¶
func ParseGetBlockResponse(rsp *http.Response) (*GetBlockResponse, error)
ParseGetBlockResponse parses an HTTP response from a GetBlockWithResponse call
func (GetBlockResponse) ContentType ¶
func (r GetBlockResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetBlockResponse) GetBody ¶
func (r GetBlockResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetBlockResponse) GetJSON200 ¶
func (r GetBlockResponse) GetJSON200() *BlockOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetBlockResponse) GetJSON404 ¶
func (r GetBlockResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetBlockResponse) GetJSON500 ¶
func (r GetBlockResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetBlockResponse) Status ¶
func (r GetBlockResponse) Status() string
Status returns HTTPResponse.Status
func (GetBlockResponse) StatusCode ¶
func (r GetBlockResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBlockUsageResponse ¶
type GetBlockUsageResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *BlockUsageOutput
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseGetBlockUsageResponse ¶
func ParseGetBlockUsageResponse(rsp *http.Response) (*GetBlockUsageResponse, error)
ParseGetBlockUsageResponse parses an HTTP response from a GetBlockUsageWithResponse call
func (GetBlockUsageResponse) ContentType ¶
func (r GetBlockUsageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetBlockUsageResponse) GetBody ¶
func (r GetBlockUsageResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetBlockUsageResponse) GetJSON200 ¶
func (r GetBlockUsageResponse) GetJSON200() *BlockUsageOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetBlockUsageResponse) GetJSON404 ¶
func (r GetBlockUsageResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetBlockUsageResponse) GetJSON500 ¶
func (r GetBlockUsageResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetBlockUsageResponse) Status ¶
func (r GetBlockUsageResponse) Status() string
Status returns HTTPResponse.Status
func (GetBlockUsageResponse) StatusCode ¶
func (r GetBlockUsageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCurrentUserResponse ¶
type GetCurrentUserResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *MeOutput
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
}
func ParseGetCurrentUserResponse ¶
func ParseGetCurrentUserResponse(rsp *http.Response) (*GetCurrentUserResponse, error)
ParseGetCurrentUserResponse parses an HTTP response from a GetCurrentUserWithResponse call
func (GetCurrentUserResponse) ContentType ¶
func (r GetCurrentUserResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetCurrentUserResponse) GetBody ¶
func (r GetCurrentUserResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetCurrentUserResponse) GetJSON200 ¶
func (r GetCurrentUserResponse) GetJSON200() *MeOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetCurrentUserResponse) GetJSON401 ¶
func (r GetCurrentUserResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetCurrentUserResponse) Status ¶
func (r GetCurrentUserResponse) Status() string
Status returns HTTPResponse.Status
func (GetCurrentUserResponse) StatusCode ¶
func (r GetCurrentUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEnvironmentResponse ¶
type GetEnvironmentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *EnvironmentDetailOutput
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseGetEnvironmentResponse ¶
func ParseGetEnvironmentResponse(rsp *http.Response) (*GetEnvironmentResponse, error)
ParseGetEnvironmentResponse parses an HTTP response from a GetEnvironmentWithResponse call
func (GetEnvironmentResponse) ContentType ¶
func (r GetEnvironmentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetEnvironmentResponse) GetBody ¶
func (r GetEnvironmentResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetEnvironmentResponse) GetJSON200 ¶
func (r GetEnvironmentResponse) GetJSON200() *EnvironmentDetailOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetEnvironmentResponse) GetJSON404 ¶
func (r GetEnvironmentResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetEnvironmentResponse) GetJSON500 ¶
func (r GetEnvironmentResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetEnvironmentResponse) Status ¶
func (r GetEnvironmentResponse) Status() string
Status returns HTTPResponse.Status
func (GetEnvironmentResponse) StatusCode ¶
func (r GetEnvironmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetIntegrationResponse ¶
type GetIntegrationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IntegrationOutput
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
}
func ParseGetIntegrationResponse ¶
func ParseGetIntegrationResponse(rsp *http.Response) (*GetIntegrationResponse, error)
ParseGetIntegrationResponse parses an HTTP response from a GetIntegrationWithResponse call
func (GetIntegrationResponse) ContentType ¶
func (r GetIntegrationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetIntegrationResponse) GetBody ¶
func (r GetIntegrationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetIntegrationResponse) GetJSON200 ¶
func (r GetIntegrationResponse) GetJSON200() *IntegrationOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetIntegrationResponse) GetJSON401 ¶
func (r GetIntegrationResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetIntegrationResponse) GetJSON404 ¶
func (r GetIntegrationResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetIntegrationResponse) Status ¶
func (r GetIntegrationResponse) Status() string
Status returns HTTPResponse.Status
func (GetIntegrationResponse) StatusCode ¶
func (r GetIntegrationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPoolResponse ¶
type GetPoolResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PoolOutput
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseGetPoolResponse ¶
func ParseGetPoolResponse(rsp *http.Response) (*GetPoolResponse, error)
ParseGetPoolResponse parses an HTTP response from a GetPoolWithResponse call
func (GetPoolResponse) ContentType ¶
func (r GetPoolResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetPoolResponse) GetBody ¶
func (r GetPoolResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetPoolResponse) GetJSON200 ¶
func (r GetPoolResponse) GetJSON200() *PoolOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetPoolResponse) GetJSON404 ¶
func (r GetPoolResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetPoolResponse) GetJSON500 ¶
func (r GetPoolResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetPoolResponse) Status ¶
func (r GetPoolResponse) Status() string
Status returns HTTPResponse.Status
func (GetPoolResponse) StatusCode ¶
func (r GetPoolResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSetupStatusOutput ¶
type GetSetupStatusOutput struct {
SetupRequired *bool `json:"setup_required,omitempty"`
}
GetSetupStatusOutput defines model for GetSetupStatusOutput.
type GetSetupStatusResponse ¶
type GetSetupStatusResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GetSetupStatusOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
}
func ParseGetSetupStatusResponse ¶
func ParseGetSetupStatusResponse(rsp *http.Response) (*GetSetupStatusResponse, error)
ParseGetSetupStatusResponse parses an HTTP response from a GetSetupStatusWithResponse call
func (GetSetupStatusResponse) ContentType ¶
func (r GetSetupStatusResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSetupStatusResponse) GetBody ¶
func (r GetSetupStatusResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetSetupStatusResponse) GetJSON200 ¶
func (r GetSetupStatusResponse) GetJSON200() *GetSetupStatusOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetSetupStatusResponse) GetJSON400 ¶
func (r GetSetupStatusResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetSetupStatusResponse) Status ¶
func (r GetSetupStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetSetupStatusResponse) StatusCode ¶
func (r GetSetupStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IntegrationListOutput ¶
type IntegrationListOutput struct {
Integrations *[]IntegrationOutput `json:"integrations,omitempty"`
}
IntegrationListOutput defines model for IntegrationListOutput.
type IntegrationOutput ¶
type IntegrationOutput struct {
Config interface{} `json:"config,omitempty"`
ConflictResolution *string `json:"conflict_resolution,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
// Id Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
Id *UUID `json:"id,omitempty"`
LastSyncAt *time.Time `json:"last_sync_at,omitempty"`
LastSyncError *string `json:"last_sync_error,omitempty"`
LastSyncStatus *string `json:"last_sync_status,omitempty"`
Name *string `json:"name,omitempty"`
// OrganizationId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
OrganizationId *UUID `json:"organization_id,omitempty"`
Provider *string `json:"provider,omitempty"`
SyncIntervalMinutes *int `json:"sync_interval_minutes,omitempty"`
SyncMode *string `json:"sync_mode,omitempty"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
}
IntegrationOutput defines model for IntegrationOutput.
type ListAPITokensResponse ¶
type ListAPITokensResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ListTokensOutput
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseListAPITokensResponse ¶
func ParseListAPITokensResponse(rsp *http.Response) (*ListAPITokensResponse, error)
ParseListAPITokensResponse parses an HTTP response from a ListAPITokensWithResponse call
func (ListAPITokensResponse) ContentType ¶
func (r ListAPITokensResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAPITokensResponse) GetBody ¶
func (r ListAPITokensResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAPITokensResponse) GetJSON200 ¶
func (r ListAPITokensResponse) GetJSON200() *ListTokensOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAPITokensResponse) GetJSON401 ¶
func (r ListAPITokensResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListAPITokensResponse) GetJSON500 ¶
func (r ListAPITokensResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListAPITokensResponse) Status ¶
func (r ListAPITokensResponse) Status() string
Status returns HTTPResponse.Status
func (ListAPITokensResponse) StatusCode ¶
func (r ListAPITokensResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAllocationsParams ¶
type ListAllocationsParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
Name *string `form:"name,omitempty" json:"name,omitempty"`
BlockName *string `form:"block_name,omitempty" json:"block_name,omitempty"`
EnvironmentId *UUID `form:"environment_id,omitempty" json:"environment_id,omitempty"`
OrganizationId *UUID `form:"organization_id,omitempty" json:"organization_id,omitempty"`
Provider *string `form:"provider,omitempty" json:"provider,omitempty"`
ConnectionId *UUID `form:"connection_id,omitempty" json:"connection_id,omitempty"`
}
ListAllocationsParams defines parameters for ListAllocations.
type ListAllocationsResponse ¶
type ListAllocationsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AllocationListOutput
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseListAllocationsResponse ¶
func ParseListAllocationsResponse(rsp *http.Response) (*ListAllocationsResponse, error)
ParseListAllocationsResponse parses an HTTP response from a ListAllocationsWithResponse call
func (ListAllocationsResponse) ContentType ¶
func (r ListAllocationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAllocationsResponse) GetBody ¶
func (r ListAllocationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAllocationsResponse) GetJSON200 ¶
func (r ListAllocationsResponse) GetJSON200() *AllocationListOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAllocationsResponse) GetJSON500 ¶
func (r ListAllocationsResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListAllocationsResponse) Status ¶
func (r ListAllocationsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAllocationsResponse) StatusCode ¶
func (r ListAllocationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListBlocksParams ¶
type ListBlocksParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
Name *string `form:"name,omitempty" json:"name,omitempty"`
EnvironmentId *UUID `form:"environment_id,omitempty" json:"environment_id,omitempty"`
PoolId *UUID `form:"pool_id,omitempty" json:"pool_id,omitempty"`
OrganizationId *UUID `form:"organization_id,omitempty" json:"organization_id,omitempty"`
OrphanedOnly *bool `form:"orphaned_only,omitempty" json:"orphaned_only,omitempty"`
Provider *string `form:"provider,omitempty" json:"provider,omitempty"`
ConnectionId *UUID `form:"connection_id,omitempty" json:"connection_id,omitempty"`
}
ListBlocksParams defines parameters for ListBlocks.
type ListBlocksResponse ¶
type ListBlocksResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *BlockListOutput
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseListBlocksResponse ¶
func ParseListBlocksResponse(rsp *http.Response) (*ListBlocksResponse, error)
ParseListBlocksResponse parses an HTTP response from a ListBlocksWithResponse call
func (ListBlocksResponse) ContentType ¶
func (r ListBlocksResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListBlocksResponse) GetBody ¶
func (r ListBlocksResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListBlocksResponse) GetJSON200 ¶
func (r ListBlocksResponse) GetJSON200() *BlockListOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListBlocksResponse) GetJSON500 ¶
func (r ListBlocksResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListBlocksResponse) Status ¶
func (r ListBlocksResponse) Status() string
Status returns HTTPResponse.Status
func (ListBlocksResponse) StatusCode ¶
func (r ListBlocksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEnvironmentsParams ¶
type ListEnvironmentsParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
Name *string `form:"name,omitempty" json:"name,omitempty"`
OrganizationId *UUID `form:"organization_id,omitempty" json:"organization_id,omitempty"`
}
ListEnvironmentsParams defines parameters for ListEnvironments.
type ListEnvironmentsResponse ¶
type ListEnvironmentsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *EnvironmentListOutput
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseListEnvironmentsResponse ¶
func ParseListEnvironmentsResponse(rsp *http.Response) (*ListEnvironmentsResponse, error)
ParseListEnvironmentsResponse parses an HTTP response from a ListEnvironmentsWithResponse call
func (ListEnvironmentsResponse) ContentType ¶
func (r ListEnvironmentsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListEnvironmentsResponse) GetBody ¶
func (r ListEnvironmentsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListEnvironmentsResponse) GetJSON200 ¶
func (r ListEnvironmentsResponse) GetJSON200() *EnvironmentListOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListEnvironmentsResponse) GetJSON500 ¶
func (r ListEnvironmentsResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListEnvironmentsResponse) Status ¶
func (r ListEnvironmentsResponse) Status() string
Status returns HTTPResponse.Status
func (ListEnvironmentsResponse) StatusCode ¶
func (r ListEnvironmentsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListIntegrationsParams ¶
type ListIntegrationsParams struct {
OrganizationId *UUID `form:"organization_id,omitempty" json:"organization_id,omitempty"`
}
ListIntegrationsParams defines parameters for ListIntegrations.
type ListIntegrationsResponse ¶
type ListIntegrationsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IntegrationListOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseListIntegrationsResponse ¶
func ParseListIntegrationsResponse(rsp *http.Response) (*ListIntegrationsResponse, error)
ParseListIntegrationsResponse parses an HTTP response from a ListIntegrationsWithResponse call
func (ListIntegrationsResponse) ContentType ¶
func (r ListIntegrationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListIntegrationsResponse) GetBody ¶
func (r ListIntegrationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListIntegrationsResponse) GetJSON200 ¶
func (r ListIntegrationsResponse) GetJSON200() *IntegrationListOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListIntegrationsResponse) GetJSON400 ¶
func (r ListIntegrationsResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListIntegrationsResponse) GetJSON401 ¶
func (r ListIntegrationsResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListIntegrationsResponse) GetJSON500 ¶
func (r ListIntegrationsResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListIntegrationsResponse) Status ¶
func (r ListIntegrationsResponse) Status() string
Status returns HTTPResponse.Status
func (ListIntegrationsResponse) StatusCode ¶
func (r ListIntegrationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListPoolsParams ¶
type ListPoolsParams struct {
EnvironmentId *UUID `form:"environment_id,omitempty" json:"environment_id,omitempty"`
OrganizationId *UUID `form:"organization_id,omitempty" json:"organization_id,omitempty"`
Provider *string `form:"provider,omitempty" json:"provider,omitempty"`
ConnectionId *UUID `form:"connection_id,omitempty" json:"connection_id,omitempty"`
}
ListPoolsParams defines parameters for ListPools.
type ListPoolsResponse ¶
type ListPoolsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PoolListOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseListPoolsResponse ¶
func ParseListPoolsResponse(rsp *http.Response) (*ListPoolsResponse, error)
ParseListPoolsResponse parses an HTTP response from a ListPoolsWithResponse call
func (ListPoolsResponse) ContentType ¶
func (r ListPoolsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListPoolsResponse) GetBody ¶
func (r ListPoolsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListPoolsResponse) GetJSON200 ¶
func (r ListPoolsResponse) GetJSON200() *PoolListOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListPoolsResponse) GetJSON400 ¶
func (r ListPoolsResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListPoolsResponse) GetJSON404 ¶
func (r ListPoolsResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListPoolsResponse) GetJSON500 ¶
func (r ListPoolsResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListPoolsResponse) Status ¶
func (r ListPoolsResponse) Status() string
Status returns HTTPResponse.Status
func (ListPoolsResponse) StatusCode ¶
func (r ListPoolsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListReservedBlocksParams ¶
type ListReservedBlocksParams struct {
OrganizationId *UUID `form:"organization_id,omitempty" json:"organization_id,omitempty"`
}
ListReservedBlocksParams defines parameters for ListReservedBlocks.
type ListReservedBlocksResponse ¶
type ListReservedBlocksResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReservedBlockListOutput
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseListReservedBlocksResponse ¶
func ParseListReservedBlocksResponse(rsp *http.Response) (*ListReservedBlocksResponse, error)
ParseListReservedBlocksResponse parses an HTTP response from a ListReservedBlocksWithResponse call
func (ListReservedBlocksResponse) ContentType ¶
func (r ListReservedBlocksResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListReservedBlocksResponse) GetBody ¶
func (r ListReservedBlocksResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListReservedBlocksResponse) GetJSON200 ¶
func (r ListReservedBlocksResponse) GetJSON200() *ReservedBlockListOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListReservedBlocksResponse) GetJSON403 ¶
func (r ListReservedBlocksResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListReservedBlocksResponse) GetJSON500 ¶
func (r ListReservedBlocksResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListReservedBlocksResponse) Status ¶
func (r ListReservedBlocksResponse) Status() string
Status returns HTTPResponse.Status
func (ListReservedBlocksResponse) StatusCode ¶
func (r ListReservedBlocksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListTokensOutput ¶
type ListTokensOutput struct {
Tokens *[]ApiTokenResponse `json:"tokens,omitempty"`
}
ListTokensOutput defines model for ListTokensOutput.
type LoginInput ¶
type LoginInput struct {
Email *string `json:"email,omitempty"`
Password *string `json:"password,omitempty"`
}
LoginInput defines model for LoginInput.
type LoginJSONRequestBody ¶
type LoginJSONRequestBody = LoginInput
LoginJSONRequestBody defines body for Login for application/json ContentType.
type LoginOutput ¶
type LoginOutput struct {
User *UserResponse `json:"user,omitempty"`
}
LoginOutput defines model for LoginOutput.
type LoginResponse ¶
type LoginResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LoginOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *ErrorResponse
}
func ParseLoginResponse ¶
func ParseLoginResponse(rsp *http.Response) (*LoginResponse, error)
ParseLoginResponse parses an HTTP response from a LoginWithResponse call
func (LoginResponse) ContentType ¶
func (r LoginResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (LoginResponse) GetBody ¶
func (r LoginResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (LoginResponse) GetJSON200 ¶
func (r LoginResponse) GetJSON200() *LoginOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (LoginResponse) GetJSON400 ¶
func (r LoginResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (LoginResponse) GetJSON401 ¶
func (r LoginResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (LoginResponse) GetJSON403 ¶
func (r LoginResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (LoginResponse) GetJSON429 ¶
func (r LoginResponse) GetJSON429() *ErrorResponse
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (LoginResponse) Status ¶
func (r LoginResponse) Status() string
Status returns HTTPResponse.Status
func (LoginResponse) StatusCode ¶
func (r LoginResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LogoutResponse ¶
func ParseLogoutResponse ¶
func ParseLogoutResponse(rsp *http.Response) (*LogoutResponse, error)
ParseLogoutResponse parses an HTTP response from a LogoutWithResponse call
func (LogoutResponse) ContentType ¶
func (r LogoutResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (LogoutResponse) GetBody ¶
func (r LogoutResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (LogoutResponse) Status ¶
func (r LogoutResponse) Status() string
Status returns HTTPResponse.Status
func (LogoutResponse) StatusCode ¶
func (r LogoutResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MarkTourCompletedResponse ¶
type MarkTourCompletedResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseMarkTourCompletedResponse ¶
func ParseMarkTourCompletedResponse(rsp *http.Response) (*MarkTourCompletedResponse, error)
ParseMarkTourCompletedResponse parses an HTTP response from a MarkTourCompletedWithResponse call
func (MarkTourCompletedResponse) ContentType ¶
func (r MarkTourCompletedResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (MarkTourCompletedResponse) GetBody ¶
func (r MarkTourCompletedResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (MarkTourCompletedResponse) GetJSON401 ¶
func (r MarkTourCompletedResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (MarkTourCompletedResponse) GetJSON500 ¶
func (r MarkTourCompletedResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (MarkTourCompletedResponse) Status ¶
func (r MarkTourCompletedResponse) Status() string
Status returns HTTPResponse.Status
func (MarkTourCompletedResponse) StatusCode ¶
func (r MarkTourCompletedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MeOutput ¶
type MeOutput struct {
User *UserResponse `json:"user,omitempty"`
}
MeOutput defines model for MeOutput.
type PoolItemInput ¶
PoolItemInput defines model for PoolItemInput.
type PoolListOutput ¶
type PoolListOutput struct {
Pools *[]PoolOutput `json:"pools,omitempty"`
}
PoolListOutput defines model for PoolListOutput.
type PoolOutput ¶
type PoolOutput struct {
Cidr *string `json:"cidr,omitempty"`
// ConnectionId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
ConnectionId *UUID `json:"connection_id,omitempty"`
// EnvironmentId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
EnvironmentId *UUID `json:"environment_id,omitempty"`
ExternalId *string `json:"external_id,omitempty"`
// Id Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
Id *UUID `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
// OrganizationId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
OrganizationId *UUID `json:"organization_id,omitempty"`
// ParentPoolId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
ParentPoolId *UUID `json:"parent_pool_id,omitempty"`
Provider *string `json:"provider,omitempty"`
}
PoolOutput defines model for PoolOutput.
type PostApiSetupStatusJSONRequestBody ¶
type PostApiSetupStatusJSONRequestBody = PostSetupInput
PostApiSetupStatusJSONRequestBody defines body for PostApiSetupStatus for application/json ContentType.
type PostApiSetupStatusResponse ¶
type PostApiSetupStatusResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PostSetupOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParsePostApiSetupStatusResponse ¶
func ParsePostApiSetupStatusResponse(rsp *http.Response) (*PostApiSetupStatusResponse, error)
ParsePostApiSetupStatusResponse parses an HTTP response from a PostApiSetupStatusWithResponse call
func (PostApiSetupStatusResponse) ContentType ¶
func (r PostApiSetupStatusResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiSetupStatusResponse) GetBody ¶
func (r PostApiSetupStatusResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiSetupStatusResponse) GetJSON200 ¶
func (r PostApiSetupStatusResponse) GetJSON200() *PostSetupOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiSetupStatusResponse) GetJSON400 ¶
func (r PostApiSetupStatusResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiSetupStatusResponse) GetJSON403 ¶
func (r PostApiSetupStatusResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostApiSetupStatusResponse) GetJSON500 ¶
func (r PostApiSetupStatusResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiSetupStatusResponse) Status ¶
func (r PostApiSetupStatusResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiSetupStatusResponse) StatusCode ¶
func (r PostApiSetupStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostSetupInput ¶
type PostSetupInput struct {
Email *string `json:"email,omitempty"`
Password *string `json:"password,omitempty"`
}
PostSetupInput defines model for PostSetupInput.
type PostSetupJSONRequestBody ¶
type PostSetupJSONRequestBody = PostSetupInput
PostSetupJSONRequestBody defines body for PostSetup for application/json ContentType.
type PostSetupOutput ¶
type PostSetupOutput struct {
User *UserResponse `json:"user,omitempty"`
}
PostSetupOutput defines model for PostSetupOutput.
type PostSetupResponse ¶
type PostSetupResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PostSetupOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParsePostSetupResponse ¶
func ParsePostSetupResponse(rsp *http.Response) (*PostSetupResponse, error)
ParsePostSetupResponse parses an HTTP response from a PostSetupWithResponse call
func (PostSetupResponse) ContentType ¶
func (r PostSetupResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostSetupResponse) GetBody ¶
func (r PostSetupResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostSetupResponse) GetJSON200 ¶
func (r PostSetupResponse) GetJSON200() *PostSetupOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostSetupResponse) GetJSON400 ¶
func (r PostSetupResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostSetupResponse) GetJSON403 ¶
func (r PostSetupResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostSetupResponse) GetJSON500 ¶
func (r PostSetupResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostSetupResponse) Status ¶
func (r PostSetupResponse) Status() string
Status returns HTTPResponse.Status
func (PostSetupResponse) StatusCode ¶
func (r PostSetupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ReservedBlockListOutput ¶
type ReservedBlockListOutput struct {
ReservedBlocks *[]ReservedBlockOutput `json:"reserved_blocks,omitempty"`
}
ReservedBlockListOutput defines model for ReservedBlockListOutput.
type ReservedBlockOutput ¶
type ReservedBlockOutput struct {
Cidr *string `json:"cidr,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Reason *string `json:"reason,omitempty"`
}
ReservedBlockOutput defines model for ReservedBlockOutput.
type SuggestBlockCIDROutput ¶
type SuggestBlockCIDROutput struct {
Cidr *string `json:"cidr,omitempty"`
}
SuggestBlockCIDROutput defines model for SuggestBlockCIDROutput.
type SuggestBlockCIDRParams ¶
type SuggestBlockCIDRParams struct {
Prefix *int `form:"prefix,omitempty" json:"prefix,omitempty"`
}
SuggestBlockCIDRParams defines parameters for SuggestBlockCIDR.
type SuggestBlockCIDRResponse ¶
type SuggestBlockCIDRResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SuggestBlockCIDROutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseSuggestBlockCIDRResponse ¶
func ParseSuggestBlockCIDRResponse(rsp *http.Response) (*SuggestBlockCIDRResponse, error)
ParseSuggestBlockCIDRResponse parses an HTTP response from a SuggestBlockCIDRWithResponse call
func (SuggestBlockCIDRResponse) ContentType ¶
func (r SuggestBlockCIDRResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SuggestBlockCIDRResponse) GetBody ¶
func (r SuggestBlockCIDRResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SuggestBlockCIDRResponse) GetJSON200 ¶
func (r SuggestBlockCIDRResponse) GetJSON200() *SuggestBlockCIDROutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (SuggestBlockCIDRResponse) GetJSON400 ¶
func (r SuggestBlockCIDRResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (SuggestBlockCIDRResponse) GetJSON404 ¶
func (r SuggestBlockCIDRResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (SuggestBlockCIDRResponse) GetJSON500 ¶
func (r SuggestBlockCIDRResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (SuggestBlockCIDRResponse) Status ¶
func (r SuggestBlockCIDRResponse) Status() string
Status returns HTTPResponse.Status
func (SuggestBlockCIDRResponse) StatusCode ¶
func (r SuggestBlockCIDRResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SuggestPoolBlockCIDRParams ¶
type SuggestPoolBlockCIDRParams struct {
Prefix *int `form:"prefix,omitempty" json:"prefix,omitempty"`
}
SuggestPoolBlockCIDRParams defines parameters for SuggestPoolBlockCIDR.
type SuggestPoolBlockCIDRResponse ¶
type SuggestPoolBlockCIDRResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SuggestBlockCIDROutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseSuggestPoolBlockCIDRResponse ¶
func ParseSuggestPoolBlockCIDRResponse(rsp *http.Response) (*SuggestPoolBlockCIDRResponse, error)
ParseSuggestPoolBlockCIDRResponse parses an HTTP response from a SuggestPoolBlockCIDRWithResponse call
func (SuggestPoolBlockCIDRResponse) ContentType ¶
func (r SuggestPoolBlockCIDRResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SuggestPoolBlockCIDRResponse) GetBody ¶
func (r SuggestPoolBlockCIDRResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SuggestPoolBlockCIDRResponse) GetJSON200 ¶
func (r SuggestPoolBlockCIDRResponse) GetJSON200() *SuggestBlockCIDROutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (SuggestPoolBlockCIDRResponse) GetJSON400 ¶
func (r SuggestPoolBlockCIDRResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (SuggestPoolBlockCIDRResponse) GetJSON404 ¶
func (r SuggestPoolBlockCIDRResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (SuggestPoolBlockCIDRResponse) GetJSON500 ¶
func (r SuggestPoolBlockCIDRResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (SuggestPoolBlockCIDRResponse) Status ¶
func (r SuggestPoolBlockCIDRResponse) Status() string
Status returns HTTPResponse.Status
func (SuggestPoolBlockCIDRResponse) StatusCode ¶
func (r SuggestPoolBlockCIDRResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SyncIntegrationResponse ¶
type SyncIntegrationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IntegrationOutput
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseSyncIntegrationResponse ¶
func ParseSyncIntegrationResponse(rsp *http.Response) (*SyncIntegrationResponse, error)
ParseSyncIntegrationResponse parses an HTTP response from a SyncIntegrationWithResponse call
func (SyncIntegrationResponse) ContentType ¶
func (r SyncIntegrationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SyncIntegrationResponse) GetBody ¶
func (r SyncIntegrationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SyncIntegrationResponse) GetJSON200 ¶
func (r SyncIntegrationResponse) GetJSON200() *IntegrationOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (SyncIntegrationResponse) GetJSON401 ¶
func (r SyncIntegrationResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (SyncIntegrationResponse) GetJSON404 ¶
func (r SyncIntegrationResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (SyncIntegrationResponse) GetJSON500 ¶
func (r SyncIntegrationResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (SyncIntegrationResponse) Status ¶
func (r SyncIntegrationResponse) Status() string
Status returns HTTPResponse.Status
func (SyncIntegrationResponse) StatusCode ¶
func (r SyncIntegrationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateAllocationInput ¶
type UpdateAllocationInput struct {
// Id Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
Id UUID `json:"id"`
Name string `json:"name"`
}
UpdateAllocationInput defines model for UpdateAllocationInput.
type UpdateAllocationJSONRequestBody ¶
type UpdateAllocationJSONRequestBody = UpdateAllocationInput
UpdateAllocationJSONRequestBody defines body for UpdateAllocation for application/json ContentType.
type UpdateAllocationResponse ¶
type UpdateAllocationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AllocationOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseUpdateAllocationResponse ¶
func ParseUpdateAllocationResponse(rsp *http.Response) (*UpdateAllocationResponse, error)
ParseUpdateAllocationResponse parses an HTTP response from a UpdateAllocationWithResponse call
func (UpdateAllocationResponse) ContentType ¶
func (r UpdateAllocationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateAllocationResponse) GetBody ¶
func (r UpdateAllocationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateAllocationResponse) GetJSON200 ¶
func (r UpdateAllocationResponse) GetJSON200() *AllocationOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateAllocationResponse) GetJSON400 ¶
func (r UpdateAllocationResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (UpdateAllocationResponse) GetJSON404 ¶
func (r UpdateAllocationResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (UpdateAllocationResponse) GetJSON500 ¶
func (r UpdateAllocationResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (UpdateAllocationResponse) Status ¶
func (r UpdateAllocationResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateAllocationResponse) StatusCode ¶
func (r UpdateAllocationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateBlockInput ¶
type UpdateBlockInput struct {
// EnvironmentId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
EnvironmentId *UUID `json:"environment_id,omitempty"`
// Id Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
Id UUID `json:"id"`
Name string `json:"name"`
// OrganizationId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
OrganizationId *UUID `json:"organization_id,omitempty"`
// PoolId Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
PoolId *UUID `json:"pool_id,omitempty"`
}
UpdateBlockInput defines model for UpdateBlockInput.
type UpdateBlockJSONRequestBody ¶
type UpdateBlockJSONRequestBody = UpdateBlockInput
UpdateBlockJSONRequestBody defines body for UpdateBlock for application/json ContentType.
type UpdateBlockResponse ¶
type UpdateBlockResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *BlockOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseUpdateBlockResponse ¶
func ParseUpdateBlockResponse(rsp *http.Response) (*UpdateBlockResponse, error)
ParseUpdateBlockResponse parses an HTTP response from a UpdateBlockWithResponse call
func (UpdateBlockResponse) ContentType ¶
func (r UpdateBlockResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateBlockResponse) GetBody ¶
func (r UpdateBlockResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateBlockResponse) GetJSON200 ¶
func (r UpdateBlockResponse) GetJSON200() *BlockOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateBlockResponse) GetJSON400 ¶
func (r UpdateBlockResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (UpdateBlockResponse) GetJSON404 ¶
func (r UpdateBlockResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (UpdateBlockResponse) GetJSON500 ¶
func (r UpdateBlockResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (UpdateBlockResponse) Status ¶
func (r UpdateBlockResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateBlockResponse) StatusCode ¶
func (r UpdateBlockResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateEnvironmentInput ¶
type UpdateEnvironmentInput struct {
// Id Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
Id UUID `json:"id"`
Name string `json:"name"`
}
UpdateEnvironmentInput defines model for UpdateEnvironmentInput.
type UpdateEnvironmentJSONRequestBody ¶
type UpdateEnvironmentJSONRequestBody = UpdateEnvironmentInput
UpdateEnvironmentJSONRequestBody defines body for UpdateEnvironment for application/json ContentType.
type UpdateEnvironmentResponse ¶
type UpdateEnvironmentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *EnvironmentOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseUpdateEnvironmentResponse ¶
func ParseUpdateEnvironmentResponse(rsp *http.Response) (*UpdateEnvironmentResponse, error)
ParseUpdateEnvironmentResponse parses an HTTP response from a UpdateEnvironmentWithResponse call
func (UpdateEnvironmentResponse) ContentType ¶
func (r UpdateEnvironmentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateEnvironmentResponse) GetBody ¶
func (r UpdateEnvironmentResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateEnvironmentResponse) GetJSON200 ¶
func (r UpdateEnvironmentResponse) GetJSON200() *EnvironmentOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateEnvironmentResponse) GetJSON400 ¶
func (r UpdateEnvironmentResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (UpdateEnvironmentResponse) GetJSON404 ¶
func (r UpdateEnvironmentResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (UpdateEnvironmentResponse) GetJSON500 ¶
func (r UpdateEnvironmentResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (UpdateEnvironmentResponse) Status ¶
func (r UpdateEnvironmentResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateEnvironmentResponse) StatusCode ¶
func (r UpdateEnvironmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateIntegrationInput ¶
type UpdateIntegrationInput struct {
Config interface{} `json:"config,omitempty"`
ConflictResolution *string `json:"conflict_resolution,omitempty"`
Name string `json:"name"`
SyncIntervalMinutes *int `json:"sync_interval_minutes,omitempty"`
SyncMode *string `json:"sync_mode,omitempty"`
}
UpdateIntegrationInput defines model for UpdateIntegrationInput.
type UpdateIntegrationJSONRequestBody ¶
type UpdateIntegrationJSONRequestBody = UpdateIntegrationInput
UpdateIntegrationJSONRequestBody defines body for UpdateIntegration for application/json ContentType.
type UpdateIntegrationResponse ¶
type UpdateIntegrationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IntegrationOutput
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseUpdateIntegrationResponse ¶
func ParseUpdateIntegrationResponse(rsp *http.Response) (*UpdateIntegrationResponse, error)
ParseUpdateIntegrationResponse parses an HTTP response from a UpdateIntegrationWithResponse call
func (UpdateIntegrationResponse) ContentType ¶
func (r UpdateIntegrationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateIntegrationResponse) GetBody ¶
func (r UpdateIntegrationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateIntegrationResponse) GetJSON200 ¶
func (r UpdateIntegrationResponse) GetJSON200() *IntegrationOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateIntegrationResponse) GetJSON401 ¶
func (r UpdateIntegrationResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (UpdateIntegrationResponse) GetJSON404 ¶
func (r UpdateIntegrationResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (UpdateIntegrationResponse) GetJSON500 ¶
func (r UpdateIntegrationResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (UpdateIntegrationResponse) Status ¶
func (r UpdateIntegrationResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateIntegrationResponse) StatusCode ¶
func (r UpdateIntegrationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdatePoolInput ¶
type UpdatePoolInput struct {
Cidr string `json:"cidr"`
// Id Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
Id UUID `json:"id"`
Name string `json:"name"`
}
UpdatePoolInput defines model for UpdatePoolInput.
type UpdatePoolJSONRequestBody ¶
type UpdatePoolJSONRequestBody = UpdatePoolInput
UpdatePoolJSONRequestBody defines body for UpdatePool for application/json ContentType.
type UpdatePoolResponse ¶
type UpdatePoolResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PoolOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseUpdatePoolResponse ¶
func ParseUpdatePoolResponse(rsp *http.Response) (*UpdatePoolResponse, error)
ParseUpdatePoolResponse parses an HTTP response from a UpdatePoolWithResponse call
func (UpdatePoolResponse) ContentType ¶
func (r UpdatePoolResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdatePoolResponse) GetBody ¶
func (r UpdatePoolResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdatePoolResponse) GetJSON200 ¶
func (r UpdatePoolResponse) GetJSON200() *PoolOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdatePoolResponse) GetJSON400 ¶
func (r UpdatePoolResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (UpdatePoolResponse) GetJSON404 ¶
func (r UpdatePoolResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (UpdatePoolResponse) GetJSON500 ¶
func (r UpdatePoolResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (UpdatePoolResponse) Status ¶
func (r UpdatePoolResponse) Status() string
Status returns HTTPResponse.Status
func (UpdatePoolResponse) StatusCode ¶
func (r UpdatePoolResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateReservedBlockInput ¶
type UpdateReservedBlockInput struct {
// Id Examples: 248df4b7-aa70-47b8-a036-33ac447e668d
Id UUID `json:"id"`
Name *string `json:"name,omitempty"`
}
UpdateReservedBlockInput defines model for UpdateReservedBlockInput.
type UpdateReservedBlockJSONRequestBody ¶
type UpdateReservedBlockJSONRequestBody = UpdateReservedBlockInput
UpdateReservedBlockJSONRequestBody defines body for UpdateReservedBlock for application/json ContentType.
type UpdateReservedBlockResponse ¶
type UpdateReservedBlockResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReservedBlockOutput
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorResponse
}
func ParseUpdateReservedBlockResponse ¶
func ParseUpdateReservedBlockResponse(rsp *http.Response) (*UpdateReservedBlockResponse, error)
ParseUpdateReservedBlockResponse parses an HTTP response from a UpdateReservedBlockWithResponse call
func (UpdateReservedBlockResponse) ContentType ¶
func (r UpdateReservedBlockResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateReservedBlockResponse) GetBody ¶
func (r UpdateReservedBlockResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateReservedBlockResponse) GetJSON200 ¶
func (r UpdateReservedBlockResponse) GetJSON200() *ReservedBlockOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateReservedBlockResponse) GetJSON403 ¶
func (r UpdateReservedBlockResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (UpdateReservedBlockResponse) GetJSON404 ¶
func (r UpdateReservedBlockResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (UpdateReservedBlockResponse) GetJSON500 ¶
func (r UpdateReservedBlockResponse) GetJSON500() *ErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (UpdateReservedBlockResponse) Status ¶
func (r UpdateReservedBlockResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateReservedBlockResponse) StatusCode ¶
func (r UpdateReservedBlockResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UserResponse ¶
type UserResponse struct {
Email *string `json:"email,omitempty"`
Id *string `json:"id,omitempty"`
OrganizationId *string `json:"organization_id,omitempty"`
Role *string `json:"role,omitempty"`
TourCompleted *bool `json:"tour_completed,omitempty"`
}
UserResponse defines model for UserResponse.