Documentation
¶
Overview ¶
Package genesiscloud provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Package genesiscloud provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ¶
- Constants
- Variables
- func NewCloneSnapshotRequest(server string, snapshotId string, body CloneSnapshotJSONRequestBody) (*http.Request, error)
- func NewCloneSnapshotRequestWithBody(server string, snapshotId string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateFilesystemRequest(server string, body CreateFilesystemJSONRequestBody) (*http.Request, error)
- func NewCreateFilesystemRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateFloatingIPRequest(server string, body CreateFloatingIPJSONRequestBody) (*http.Request, error)
- func NewCreateFloatingIPRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateInstanceRequest(server string, body CreateInstanceJSONRequestBody) (*http.Request, error)
- func NewCreateInstanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateInstanceSnapshotRequest(server string, instanceId string, body CreateInstanceSnapshotJSONRequestBody) (*http.Request, error)
- func NewCreateInstanceSnapshotRequestWithBody(server string, instanceId string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSSHKeyRequest(server string, body CreateSSHKeyJSONRequestBody) (*http.Request, error)
- func NewCreateSSHKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSecurityGroupRequest(server string, body CreateSecurityGroupJSONRequestBody) (*http.Request, error)
- func NewCreateSecurityGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSnapshotRequest(server string, body CreateSnapshotJSONRequestBody) (*http.Request, error)
- func NewCreateSnapshotRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateVolumeRequest(server string, body CreateVolumeJSONRequestBody) (*http.Request, error)
- func NewCreateVolumeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteFilesystemRequest(server string, filesystemId string) (*http.Request, error)
- func NewDeleteFloatingIPRequest(server string, floatingIpId string) (*http.Request, error)
- func NewDeleteInstanceRequest(server string, instanceId string) (*http.Request, error)
- func NewDeleteSSHKeyRequest(server string, sshKeyId string) (*http.Request, error)
- func NewDeleteSecurityGroupRequest(server string, securityGroupId string) (*http.Request, error)
- func NewDeleteSnapshotRequest(server string, snapshotId string) (*http.Request, error)
- func NewDeleteVolumeRequest(server string, volumeId string) (*http.Request, error)
- func NewGetFilesystemRequest(server string, filesystemId string) (*http.Request, error)
- func NewGetFloatingIPRequest(server string, floatingIpId string) (*http.Request, error)
- func NewGetInstanceActionsRequest(server string, instanceId string) (*http.Request, error)
- func NewGetInstanceRequest(server string, instanceId string) (*http.Request, error)
- func NewGetInstanceUserMetadataRequest(server string, instanceId string) (*http.Request, error)
- func NewGetInstancesAvailabilityRequest(server string, region Region, params *GetInstancesAvailabilityParams) (*http.Request, error)
- func NewGetQuotasRequest(server string) (*http.Request, error)
- func NewGetReservationsRequest(server string) (*http.Request, error)
- func NewGetSSHKeyRequest(server string, sshKeyId string) (*http.Request, error)
- func NewGetSecurityGroupRequest(server string, securityGroupId string) (*http.Request, error)
- func NewGetSnapshotRequest(server string, snapshotId string) (*http.Request, error)
- func NewGetVolumeRequest(server string, volumeId string) (*http.Request, error)
- func NewListFilesystemsPaginatedRequest(server string, params *ListFilesystemsPaginatedParams) (*http.Request, error)
- func NewListFloatingIPsPaginatedRequest(server string, params *ListFloatingIPsPaginatedParams) (*http.Request, error)
- func NewListImagesPaginatedRequest(server string, params *ListImagesPaginatedParams) (*http.Request, error)
- func NewListInstanceSnapshotsPaginatedRequest(server string, instanceId string, params *ListInstanceSnapshotsPaginatedParams) (*http.Request, error)
- func NewListInstancesPaginatedRequest(server string, params *ListInstancesPaginatedParams) (*http.Request, error)
- func NewListSSHKeysPaginatedRequest(server string, params *ListSSHKeysPaginatedParams) (*http.Request, error)
- func NewListSecurityGroupsPaginatedRequest(server string, params *ListSecurityGroupsPaginatedParams) (*http.Request, error)
- func NewListSnapshotsPaginatedRequest(server string, params *ListSnapshotsPaginatedParams) (*http.Request, error)
- func NewListVolumesPaginatedRequest(server string, params *ListVolumesPaginatedParams) (*http.Request, error)
- func NewPerformInstanceActionRequest(server string, instanceId string, body PerformInstanceActionJSONRequestBody) (*http.Request, error)
- func NewPerformInstanceActionRequestWithBody(server string, instanceId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateFilesystemRequest(server string, filesystemId string, body UpdateFilesystemJSONRequestBody) (*http.Request, error)
- func NewUpdateFilesystemRequestWithBody(server string, filesystemId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateFloatingIPRequest(server string, floatingIpId string, body UpdateFloatingIPJSONRequestBody) (*http.Request, error)
- func NewUpdateFloatingIPRequestWithBody(server string, floatingIpId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateInstanceRequest(server string, instanceId string, body UpdateInstanceJSONRequestBody) (*http.Request, error)
- func NewUpdateInstanceRequestWithBody(server string, instanceId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateSSHKeyRequest(server string, sshKeyId string, body UpdateSSHKeyJSONRequestBody) (*http.Request, error)
- func NewUpdateSSHKeyRequestWithBody(server string, sshKeyId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateSecurityGroupRequest(server string, securityGroupId string, body UpdateSecurityGroupJSONRequestBody) (*http.Request, error)
- func NewUpdateSecurityGroupRequestWithBody(server string, securityGroupId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateSnapshotRequest(server string, snapshotId string, body UpdateSnapshotJSONRequestBody) (*http.Request, error)
- func NewUpdateSnapshotRequestWithBody(server string, snapshotId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateVolumeRequest(server string, volumeId string, body UpdateVolumeJSONRequestBody) (*http.Request, error)
- func NewUpdateVolumeRequestWithBody(server string, volumeId string, contentType string, body io.Reader) (*http.Request, error)
- type Client
- func (c *Client) CloneSnapshot(ctx context.Context, snapshotId string, body CloneSnapshotJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CloneSnapshotWithBody(ctx context.Context, snapshotId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateFilesystem(ctx context.Context, body CreateFilesystemJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateFilesystemWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateFloatingIP(ctx context.Context, body CreateFloatingIPJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateFloatingIPWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateInstance(ctx context.Context, body CreateInstanceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateInstanceSnapshot(ctx context.Context, instanceId string, ...) (*http.Response, error)
- func (c *Client) CreateInstanceSnapshotWithBody(ctx context.Context, instanceId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateInstanceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSSHKey(ctx context.Context, body CreateSSHKeyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSSHKeyWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSecurityGroup(ctx context.Context, body CreateSecurityGroupJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSecurityGroupWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSnapshot(ctx context.Context, body CreateSnapshotJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSnapshotWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateVolume(ctx context.Context, body CreateVolumeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateVolumeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteFilesystem(ctx context.Context, filesystemId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteFloatingIP(ctx context.Context, floatingIpId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteInstance(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteSSHKey(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteSecurityGroup(ctx context.Context, securityGroupId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteSnapshot(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteVolume(ctx context.Context, volumeId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetFilesystem(ctx context.Context, filesystemId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetFloatingIP(ctx context.Context, floatingIpId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetInstance(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetInstanceActions(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetInstanceUserMetadata(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetInstancesAvailability(ctx context.Context, region Region, params *GetInstancesAvailabilityParams, ...) (*http.Response, error)
- func (c *Client) GetQuotas(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetReservations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSSHKey(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSecurityGroup(ctx context.Context, securityGroupId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSnapshot(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetVolume(ctx context.Context, volumeId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListFilesystemsPaginated(ctx context.Context, params *ListFilesystemsPaginatedParams, ...) (*http.Response, error)
- func (c *Client) ListFloatingIPsPaginated(ctx context.Context, params *ListFloatingIPsPaginatedParams, ...) (*http.Response, error)
- func (c *Client) ListImagesPaginated(ctx context.Context, params *ListImagesPaginatedParams, ...) (*http.Response, error)
- func (c *Client) ListInstanceSnapshotsPaginated(ctx context.Context, instanceId string, ...) (*http.Response, error)
- func (c *Client) ListInstancesPaginated(ctx context.Context, params *ListInstancesPaginatedParams, ...) (*http.Response, error)
- func (c *Client) ListSSHKeysPaginated(ctx context.Context, params *ListSSHKeysPaginatedParams, ...) (*http.Response, error)
- func (c *Client) ListSecurityGroupsPaginated(ctx context.Context, params *ListSecurityGroupsPaginatedParams, ...) (*http.Response, error)
- func (c *Client) ListSnapshotsPaginated(ctx context.Context, params *ListSnapshotsPaginatedParams, ...) (*http.Response, error)
- func (c *Client) ListVolumesPaginated(ctx context.Context, params *ListVolumesPaginatedParams, ...) (*http.Response, error)
- func (c *Client) PerformInstanceAction(ctx context.Context, instanceId string, ...) (*http.Response, error)
- func (c *Client) PerformInstanceActionWithBody(ctx context.Context, instanceId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateFilesystem(ctx context.Context, filesystemId string, body UpdateFilesystemJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateFilesystemWithBody(ctx context.Context, filesystemId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateFloatingIP(ctx context.Context, floatingIpId string, body UpdateFloatingIPJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateFloatingIPWithBody(ctx context.Context, floatingIpId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateInstance(ctx context.Context, instanceId string, body UpdateInstanceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateInstanceWithBody(ctx context.Context, instanceId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateSSHKey(ctx context.Context, sshKeyId string, body UpdateSSHKeyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateSSHKeyWithBody(ctx context.Context, sshKeyId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateSecurityGroup(ctx context.Context, securityGroupId string, ...) (*http.Response, error)
- func (c *Client) UpdateSecurityGroupWithBody(ctx context.Context, securityGroupId string, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateSnapshot(ctx context.Context, snapshotId string, body UpdateSnapshotJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateSnapshotWithBody(ctx context.Context, snapshotId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateVolume(ctx context.Context, volumeId string, body UpdateVolumeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateVolumeWithBody(ctx context.Context, volumeId string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientConfig
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CloneSnapshotWithBodyWithResponse(ctx context.Context, snapshotId string, contentType string, body io.Reader, ...) (*CloneSnapshotResponse, error)
- func (c *ClientWithResponses) CloneSnapshotWithResponse(ctx context.Context, snapshotId string, body CloneSnapshotJSONRequestBody, ...) (*CloneSnapshotResponse, error)
- func (c *ClientWithResponses) CreateFilesystemWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateFilesystemResponse, error)
- func (c *ClientWithResponses) CreateFilesystemWithResponse(ctx context.Context, body CreateFilesystemJSONRequestBody, ...) (*CreateFilesystemResponse, error)
- func (c *ClientWithResponses) CreateFloatingIPWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateFloatingIPResponse, error)
- func (c *ClientWithResponses) CreateFloatingIPWithResponse(ctx context.Context, body CreateFloatingIPJSONRequestBody, ...) (*CreateFloatingIPResponse, error)
- func (c *ClientWithResponses) CreateInstanceSnapshotWithBodyWithResponse(ctx context.Context, instanceId string, contentType string, body io.Reader, ...) (*CreateInstanceSnapshotResponse, error)
- func (c *ClientWithResponses) CreateInstanceSnapshotWithResponse(ctx context.Context, instanceId string, ...) (*CreateInstanceSnapshotResponse, error)
- func (c *ClientWithResponses) CreateInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateInstanceResponse, error)
- func (c *ClientWithResponses) CreateInstanceWithResponse(ctx context.Context, body CreateInstanceJSONRequestBody, ...) (*CreateInstanceResponse, error)
- func (c *ClientWithResponses) CreateSSHKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSSHKeyResponse, error)
- func (c *ClientWithResponses) CreateSSHKeyWithResponse(ctx context.Context, body CreateSSHKeyJSONRequestBody, ...) (*CreateSSHKeyResponse, error)
- func (c *ClientWithResponses) CreateSecurityGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSecurityGroupResponse, error)
- func (c *ClientWithResponses) CreateSecurityGroupWithResponse(ctx context.Context, body CreateSecurityGroupJSONRequestBody, ...) (*CreateSecurityGroupResponse, error)
- func (c *ClientWithResponses) CreateSnapshotWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSnapshotResponse, error)
- func (c *ClientWithResponses) CreateSnapshotWithResponse(ctx context.Context, body CreateSnapshotJSONRequestBody, ...) (*CreateSnapshotResponse, error)
- func (c *ClientWithResponses) CreateVolumeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateVolumeResponse, error)
- func (c *ClientWithResponses) CreateVolumeWithResponse(ctx context.Context, body CreateVolumeJSONRequestBody, ...) (*CreateVolumeResponse, error)
- func (c *ClientWithResponses) DeleteFilesystemWithResponse(ctx context.Context, filesystemId string, reqEditors ...RequestEditorFn) (*DeleteFilesystemResponse, error)
- func (c *ClientWithResponses) DeleteFloatingIPWithResponse(ctx context.Context, floatingIpId string, reqEditors ...RequestEditorFn) (*DeleteFloatingIPResponse, error)
- func (c *ClientWithResponses) DeleteInstanceWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*DeleteInstanceResponse, error)
- func (c *ClientWithResponses) DeleteSSHKeyWithResponse(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*DeleteSSHKeyResponse, error)
- func (c *ClientWithResponses) DeleteSecurityGroupWithResponse(ctx context.Context, securityGroupId string, reqEditors ...RequestEditorFn) (*DeleteSecurityGroupResponse, error)
- func (c *ClientWithResponses) DeleteSnapshotWithResponse(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*DeleteSnapshotResponse, error)
- func (c *ClientWithResponses) DeleteVolumeWithResponse(ctx context.Context, volumeId string, reqEditors ...RequestEditorFn) (*DeleteVolumeResponse, error)
- func (c *ClientWithResponses) GetFilesystemWithResponse(ctx context.Context, filesystemId string, reqEditors ...RequestEditorFn) (*GetFilesystemResponse, error)
- func (c *ClientWithResponses) GetFloatingIPWithResponse(ctx context.Context, floatingIpId string, reqEditors ...RequestEditorFn) (*GetFloatingIPResponse, error)
- func (c *ClientWithResponses) GetInstanceActionsWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*GetInstanceActionsResponse, error)
- func (c *ClientWithResponses) GetInstanceUserMetadataWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*GetInstanceUserMetadataResponse, error)
- func (c *ClientWithResponses) GetInstanceWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*GetInstanceResponse, error)
- func (c *ClientWithResponses) GetInstancesAvailabilityWithResponse(ctx context.Context, region Region, params *GetInstancesAvailabilityParams, ...) (*GetInstancesAvailabilityResponse, error)
- func (c *ClientWithResponses) GetQuotasWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetQuotasResponse, error)
- func (c *ClientWithResponses) GetReservationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReservationsResponse, error)
- func (c *ClientWithResponses) GetSSHKeyWithResponse(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*GetSSHKeyResponse, error)
- func (c *ClientWithResponses) GetSecurityGroupWithResponse(ctx context.Context, securityGroupId string, reqEditors ...RequestEditorFn) (*GetSecurityGroupResponse, error)
- func (c *ClientWithResponses) GetSnapshotWithResponse(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*GetSnapshotResponse, error)
- func (c *ClientWithResponses) GetVolumeWithResponse(ctx context.Context, volumeId string, reqEditors ...RequestEditorFn) (*GetVolumeResponse, error)
- func (c *ClientWithResponses) ListFilesystemsPaginatedWithResponse(ctx context.Context, params *ListFilesystemsPaginatedParams, ...) (*ListFilesystemsPaginatedResponse, error)
- func (c *ClientWithResponses) ListFloatingIPsPaginatedWithResponse(ctx context.Context, params *ListFloatingIPsPaginatedParams, ...) (*ListFloatingIPsPaginatedResponse, error)
- func (c *ClientWithResponses) ListImagesPaginatedWithResponse(ctx context.Context, params *ListImagesPaginatedParams, ...) (*ListImagesPaginatedResponse, error)
- func (c *ClientWithResponses) ListInstanceSnapshotsPaginatedWithResponse(ctx context.Context, instanceId string, ...) (*ListInstanceSnapshotsPaginatedResponse, error)
- func (c *ClientWithResponses) ListInstancesPaginatedWithResponse(ctx context.Context, params *ListInstancesPaginatedParams, ...) (*ListInstancesPaginatedResponse, error)
- func (c *ClientWithResponses) ListSSHKeysPaginatedWithResponse(ctx context.Context, params *ListSSHKeysPaginatedParams, ...) (*ListSSHKeysPaginatedResponse, error)
- func (c *ClientWithResponses) ListSecurityGroupsPaginatedWithResponse(ctx context.Context, params *ListSecurityGroupsPaginatedParams, ...) (*ListSecurityGroupsPaginatedResponse, error)
- func (c *ClientWithResponses) ListSnapshotsPaginatedWithResponse(ctx context.Context, params *ListSnapshotsPaginatedParams, ...) (*ListSnapshotsPaginatedResponse, error)
- func (c *ClientWithResponses) ListVolumesPaginatedWithResponse(ctx context.Context, params *ListVolumesPaginatedParams, ...) (*ListVolumesPaginatedResponse, error)
- func (c *ClientWithResponses) PerformInstanceActionWithBodyWithResponse(ctx context.Context, instanceId string, contentType string, body io.Reader, ...) (*PerformInstanceActionResponse, error)
- func (c *ClientWithResponses) PerformInstanceActionWithResponse(ctx context.Context, instanceId string, ...) (*PerformInstanceActionResponse, error)
- func (c *ClientWithResponses) UpdateFilesystemWithBodyWithResponse(ctx context.Context, filesystemId string, contentType string, body io.Reader, ...) (*UpdateFilesystemResponse, error)
- func (c *ClientWithResponses) UpdateFilesystemWithResponse(ctx context.Context, filesystemId string, body UpdateFilesystemJSONRequestBody, ...) (*UpdateFilesystemResponse, error)
- func (c *ClientWithResponses) UpdateFloatingIPWithBodyWithResponse(ctx context.Context, floatingIpId string, contentType string, body io.Reader, ...) (*UpdateFloatingIPResponse, error)
- func (c *ClientWithResponses) UpdateFloatingIPWithResponse(ctx context.Context, floatingIpId string, body UpdateFloatingIPJSONRequestBody, ...) (*UpdateFloatingIPResponse, error)
- func (c *ClientWithResponses) UpdateInstanceWithBodyWithResponse(ctx context.Context, instanceId string, contentType string, body io.Reader, ...) (*UpdateInstanceResponse, error)
- func (c *ClientWithResponses) UpdateInstanceWithResponse(ctx context.Context, instanceId string, body UpdateInstanceJSONRequestBody, ...) (*UpdateInstanceResponse, error)
- func (c *ClientWithResponses) UpdateSSHKeyWithBodyWithResponse(ctx context.Context, sshKeyId string, contentType string, body io.Reader, ...) (*UpdateSSHKeyResponse, error)
- func (c *ClientWithResponses) UpdateSSHKeyWithResponse(ctx context.Context, sshKeyId string, body UpdateSSHKeyJSONRequestBody, ...) (*UpdateSSHKeyResponse, error)
- func (c *ClientWithResponses) UpdateSecurityGroupWithBodyWithResponse(ctx context.Context, securityGroupId string, contentType string, ...) (*UpdateSecurityGroupResponse, error)
- func (c *ClientWithResponses) UpdateSecurityGroupWithResponse(ctx context.Context, securityGroupId string, ...) (*UpdateSecurityGroupResponse, error)
- func (c *ClientWithResponses) UpdateSnapshotWithBodyWithResponse(ctx context.Context, snapshotId string, contentType string, body io.Reader, ...) (*UpdateSnapshotResponse, error)
- func (c *ClientWithResponses) UpdateSnapshotWithResponse(ctx context.Context, snapshotId string, body UpdateSnapshotJSONRequestBody, ...) (*UpdateSnapshotResponse, error)
- func (c *ClientWithResponses) UpdateVolumeWithBodyWithResponse(ctx context.Context, volumeId string, contentType string, body io.Reader, ...) (*UpdateVolumeResponse, error)
- func (c *ClientWithResponses) UpdateVolumeWithResponse(ctx context.Context, volumeId string, body UpdateVolumeJSONRequestBody, ...) (*UpdateVolumeResponse, error)
- type ClientWithResponsesInterface
- type CloneSnapshotJSONBody
- type CloneSnapshotJSONRequestBody
- type CloneSnapshotResponse
- type CreateFilesystemJSONBody
- type CreateFilesystemJSONRequestBody
- type CreateFilesystemResponse
- type CreateFloatingIPJSONBody
- type CreateFloatingIPJSONBodyVersion
- type CreateFloatingIPJSONRequestBody
- type CreateFloatingIPResponse
- type CreateInstanceJSONBody
- type CreateInstanceJSONRequestBody
- type CreateInstanceResponse
- type CreateInstanceSnapshotJSONBody
- type CreateInstanceSnapshotJSONRequestBody
- type CreateInstanceSnapshotResponse
- type CreateSSHKeyJSONBody
- type CreateSSHKeyJSONRequestBody
- type CreateSSHKeyResponse
- type CreateSecurityGroupJSONBody
- type CreateSecurityGroupJSONRequestBody
- type CreateSecurityGroupResponse
- type CreateSnapshotJSONBody
- type CreateSnapshotJSONRequestBody
- type CreateSnapshotResponse
- type CreateVolumeJSONBody
- type CreateVolumeJSONRequestBody
- type CreateVolumeResponse
- type DeleteFilesystemResponse
- type DeleteFloatingIPResponse
- type DeleteInstanceResponse
- type DeleteSSHKeyResponse
- type DeleteSecurityGroupResponse
- type DeleteSnapshotResponse
- type DeleteVolumeResponse
- type Error
- type ErrorResponse
- type Filesystem
- type FilesystemId
- type FilesystemStatus
- type FilesystemType
- type FloatingIP
- type FloatingIPVersion
- type FloatingIpStatus
- type GetFilesystemResponse
- type GetFloatingIPResponse
- type GetInstanceActionsResponse
- type GetInstanceResponse
- type GetInstanceUserMetadataResponse
- type GetInstancesAvailabilityParams
- type GetInstancesAvailabilityResponse
- type GetQuotasResponse
- type GetReservationsResponse
- type GetSSHKeyResponse
- type GetSecurityGroupResponse
- type GetSnapshotResponse
- type GetVolumeResponse
- type HttpRequestDoer
- type Image
- type ImageId
- type ImageType
- type Instance
- type InstanceAction
- type InstanceBillingType
- type InstanceDNSName
- type InstanceDestroyOnShutdown
- type InstanceDiskSize
- type InstanceFloatingIp
- type InstanceGetActionsResponse
- type InstanceGetInstanceUserMetadataResponse
- type InstanceHostname
- type InstanceIsProtected
- type InstanceName
- type InstancePublicIpv6
- type InstanceReuseLongTermSubscription
- type InstanceSSHKeyId
- type InstanceStatus
- type InstanceType
- type InstanceUpdateSecurityGroups
- func (t InstanceUpdateSecurityGroups) AsInstanceUpdateSecurityGroupsAttach() (InstanceUpdateSecurityGroupsAttach, error)
- func (t InstanceUpdateSecurityGroups) AsInstanceUpdateSecurityGroupsDetach() (InstanceUpdateSecurityGroupsDetach, error)
- func (t InstanceUpdateSecurityGroups) AsInstanceUpdateSecurityGroupsList() (InstanceUpdateSecurityGroupsList, error)
- func (t *InstanceUpdateSecurityGroups) FromInstanceUpdateSecurityGroupsAttach(v InstanceUpdateSecurityGroupsAttach) error
- func (t *InstanceUpdateSecurityGroups) FromInstanceUpdateSecurityGroupsDetach(v InstanceUpdateSecurityGroupsDetach) error
- func (t *InstanceUpdateSecurityGroups) FromInstanceUpdateSecurityGroupsList(v InstanceUpdateSecurityGroupsList) error
- func (t InstanceUpdateSecurityGroups) MarshalJSON() ([]byte, error)
- func (t *InstanceUpdateSecurityGroups) MergeInstanceUpdateSecurityGroupsAttach(v InstanceUpdateSecurityGroupsAttach) error
- func (t *InstanceUpdateSecurityGroups) MergeInstanceUpdateSecurityGroupsDetach(v InstanceUpdateSecurityGroupsDetach) error
- func (t *InstanceUpdateSecurityGroups) MergeInstanceUpdateSecurityGroupsList(v InstanceUpdateSecurityGroupsList) error
- func (t *InstanceUpdateSecurityGroups) UnmarshalJSON(b []byte) error
- type InstanceUpdateSecurityGroupsAttach
- type InstanceUpdateSecurityGroupsDetach
- type InstanceUpdateSecurityGroupsList
- type InstanceUpdateVolumes
- func (t InstanceUpdateVolumes) AsInstanceUpdateVolumesAttach() (InstanceUpdateVolumesAttach, error)
- func (t InstanceUpdateVolumes) AsInstanceUpdateVolumesDetach() (InstanceUpdateVolumesDetach, error)
- func (t InstanceUpdateVolumes) AsInstanceUpdateVolumesList() (InstanceUpdateVolumesList, error)
- func (t *InstanceUpdateVolumes) FromInstanceUpdateVolumesAttach(v InstanceUpdateVolumesAttach) error
- func (t *InstanceUpdateVolumes) FromInstanceUpdateVolumesDetach(v InstanceUpdateVolumesDetach) error
- func (t *InstanceUpdateVolumes) FromInstanceUpdateVolumesList(v InstanceUpdateVolumesList) error
- func (t InstanceUpdateVolumes) MarshalJSON() ([]byte, error)
- func (t *InstanceUpdateVolumes) MergeInstanceUpdateVolumesAttach(v InstanceUpdateVolumesAttach) error
- func (t *InstanceUpdateVolumes) MergeInstanceUpdateVolumesDetach(v InstanceUpdateVolumesDetach) error
- func (t *InstanceUpdateVolumes) MergeInstanceUpdateVolumesList(v InstanceUpdateVolumesList) error
- func (t *InstanceUpdateVolumes) UnmarshalJSON(b []byte) error
- type InstanceUpdateVolumesAttach
- type InstanceUpdateVolumesDetach
- type InstanceUpdateVolumesList
- type InstanceUserData
- type InstancesAvailability
- type InstancesAvailabilityResponse
- type ListFilesystemsPaginatedParams
- type ListFilesystemsPaginatedResponse
- type ListFloatingIPsPaginatedParams
- type ListFloatingIPsPaginatedResponse
- type ListImagesPaginatedParams
- type ListImagesPaginatedResponse
- type ListInstanceSnapshotsPaginatedParams
- type ListInstanceSnapshotsPaginatedResponse
- type ListInstancesPaginatedParams
- type ListInstancesPaginatedResponse
- type ListSSHKeysPaginatedParams
- type ListSSHKeysPaginatedResponse
- type ListSecurityGroupsPaginatedParams
- type ListSecurityGroupsPaginatedResponse
- type ListSnapshotsPaginatedParams
- type ListSnapshotsPaginatedResponse
- type ListVolumesPaginatedParams
- type ListVolumesPaginatedResponse
- type OSType
- type PageQueryParameter
- type PaginatedFilesystemsResponse
- type PaginatedFloatingIPsResponse
- type PaginatedImagesResponse
- type PaginatedInstancesResponse
- type PaginatedSSHKeysResponse
- type PaginatedSecurityGroupsResponse
- type PaginatedSnapshotsResponse
- type PaginatedVolumesResponse
- type PerPageQueryParameter
- type PerformInstanceActionJSONBody
- type PerformInstanceActionJSONRequestBody
- type PerformInstanceActionResponse
- type Quota
- type QuotasResponse
- type Region
- type RequestEditorFn
- type Reservation
- type ReservationsResponse
- type SSHKey
- type SecurityGroup
- type SecurityGroupId
- type SecurityGroupRule
- type SecurityGroupRuleDirection
- type SecurityGroupRuleProtocol
- type SecurityGroupStatus
- type SingleFilesystemResponse
- type SingleFloatingIPResponse
- type SingleInstanceResponse
- type SingleSSHKeyResponse
- type SingleSecurityGroupResponse
- type SingleSnapshotResponse
- type SingleVolumeResponse
- type Snapshot
- type SnapshotStatus
- type Timestamp
- type UpdateFilesystemJSONBody
- type UpdateFilesystemJSONRequestBody
- type UpdateFilesystemResponse
- type UpdateFloatingIPJSONBody
- type UpdateFloatingIPJSONRequestBody
- type UpdateFloatingIPResponse
- type UpdateInstanceJSONBody
- type UpdateInstanceJSONRequestBody
- type UpdateInstanceResponse
- type UpdateSSHKeyJSONBody
- type UpdateSSHKeyJSONRequestBody
- type UpdateSSHKeyResponse
- type UpdateSecurityGroupJSONBody
- type UpdateSecurityGroupJSONRequestBody
- type UpdateSecurityGroupResponse
- type UpdateSnapshotJSONBody
- type UpdateSnapshotJSONRequestBody
- type UpdateSnapshotResponse
- type UpdateVolumeJSONBody
- type UpdateVolumeJSONRequestBody
- type UpdateVolumeResponse
- type Volume
- type VolumeId
- type VolumeStatus
- type VolumeType
Constants ¶
const (
ApiKeyAuthScopes = "ApiKeyAuth.Scopes"
)
const DefaultEndpoint = "https://api.genesiscloud.com/compute/v1"
Variables ¶
var AllCreateFloatingIPJSONBodyVersions = []CreateFloatingIPJSONBodyVersion{ CreateFloatingIPJSONBodyVersionIpv4, }
var AllFilesystemStatuss = []FilesystemStatus{ FilesystemStatusCreated, FilesystemStatusCreating, FilesystemStatusDeleting, FilesystemStatusError, }
var AllFilesystemTypes = []FilesystemType{ FilesystemTypeVast, }
var AllFloatingIPVersions = []FloatingIPVersion{ FloatingIPVersionIpv4, FloatingIPVersionIpv6, }
var AllFloatingIpStatuss = []FloatingIpStatus{ FloatingIpStatusCreated, FloatingIpStatusCreating, FloatingIpStatusDeleting, FloatingIpStatusError, }
var AllImageTypes = []ImageType{ ImageTypeCloudImage, }
var AllInstanceActions = []InstanceAction{ InstanceActionReset, InstanceActionStart, InstanceActionStop, }
var AllInstanceBillingTypes = []InstanceBillingType{ InstanceBillingTypeOnDemand, InstanceBillingTypePrepaid12Month, InstanceBillingTypePrepaid3Month, InstanceBillingTypePrepaid6Month, InstanceBillingTypePrepaidMonthly, InstanceBillingTypeReserved, }
var AllInstanceStatuss = []InstanceStatus{ InstanceStatusActive, InstanceStatusCreating, InstanceStatusDeleting, InstanceStatusError, InstanceStatusPendingPayment, InstanceStatusResetting, InstanceStatusStarting, InstanceStatusStopped, InstanceStatusStopping, }
var AllOSTypes = []OSType{ OSTypeLinux, OSTypeWindows, }
var AllRegions = []Region{ RegionEUCDEMUC1, RegionEUWGBMNC1, RegionEUWNLAMS1, RegionNACAFTS1, RegionNACAMNZ1, RegionNACAPRG1, RegionNORDNOKRS1, }
var AllSecurityGroupRuleDirections = []SecurityGroupRuleDirection{ SecurityGroupRuleDirectionEgress, SecurityGroupRuleDirectionIngress, }
var AllSecurityGroupRuleProtocols = []SecurityGroupRuleProtocol{ SecurityGroupRuleProtocolAll, SecurityGroupRuleProtocolIcmp, SecurityGroupRuleProtocolTcp, SecurityGroupRuleProtocolUdp, }
var AllSecurityGroupStatuss = []SecurityGroupStatus{ SecurityGroupStatusCreated, SecurityGroupStatusCreating, SecurityGroupStatusDeleting, SecurityGroupStatusError, }
var AllSnapshotStatuss = []SnapshotStatus{ SnapshotStatusCreated, SnapshotStatusCreating, SnapshotStatusDeleting, SnapshotStatusError, SnapshotStatusPendingDelete, }
var AllVolumeStatuss = []VolumeStatus{ VolumeStatusCreated, VolumeStatusCreating, VolumeStatusDeleting, VolumeStatusError, VolumeStatusPendingDelete, }
var AllVolumeTypes = []VolumeType{ VolumeTypeHdd, VolumeTypeSsd, }
Functions ¶
func NewCloneSnapshotRequest ¶ added in v1.0.12
func NewCloneSnapshotRequest(server string, snapshotId string, body CloneSnapshotJSONRequestBody) (*http.Request, error)
NewCloneSnapshotRequest calls the generic CloneSnapshot builder with application/json body
func NewCloneSnapshotRequestWithBody ¶ added in v1.0.12
func NewCloneSnapshotRequestWithBody(server string, snapshotId string, contentType string, body io.Reader) (*http.Request, error)
NewCloneSnapshotRequestWithBody generates requests for CloneSnapshot with any type of body
func NewCreateFilesystemRequest ¶ added in v1.0.3
func NewCreateFilesystemRequest(server string, body CreateFilesystemJSONRequestBody) (*http.Request, error)
NewCreateFilesystemRequest calls the generic CreateFilesystem builder with application/json body
func NewCreateFilesystemRequestWithBody ¶ added in v1.0.3
func NewCreateFilesystemRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateFilesystemRequestWithBody generates requests for CreateFilesystem with any type of body
func NewCreateFloatingIPRequest ¶
func NewCreateFloatingIPRequest(server string, body CreateFloatingIPJSONRequestBody) (*http.Request, error)
NewCreateFloatingIPRequest calls the generic CreateFloatingIP builder with application/json body
func NewCreateFloatingIPRequestWithBody ¶
func NewCreateFloatingIPRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateFloatingIPRequestWithBody generates requests for CreateFloatingIP with any type of body
func NewCreateInstanceRequest ¶
func NewCreateInstanceRequest(server string, body CreateInstanceJSONRequestBody) (*http.Request, error)
NewCreateInstanceRequest calls the generic CreateInstance builder with application/json body
func NewCreateInstanceRequestWithBody ¶
func NewCreateInstanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateInstanceRequestWithBody generates requests for CreateInstance with any type of body
func NewCreateInstanceSnapshotRequest ¶ added in v1.0.2
func NewCreateInstanceSnapshotRequest(server string, instanceId string, body CreateInstanceSnapshotJSONRequestBody) (*http.Request, error)
NewCreateInstanceSnapshotRequest calls the generic CreateInstanceSnapshot builder with application/json body
func NewCreateInstanceSnapshotRequestWithBody ¶ added in v1.0.2
func NewCreateInstanceSnapshotRequestWithBody(server string, instanceId string, contentType string, body io.Reader) (*http.Request, error)
NewCreateInstanceSnapshotRequestWithBody generates requests for CreateInstanceSnapshot with any type of body
func NewCreateSSHKeyRequest ¶
func NewCreateSSHKeyRequest(server string, body CreateSSHKeyJSONRequestBody) (*http.Request, error)
NewCreateSSHKeyRequest calls the generic CreateSSHKey builder with application/json body
func NewCreateSSHKeyRequestWithBody ¶
func NewCreateSSHKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSSHKeyRequestWithBody generates requests for CreateSSHKey with any type of body
func NewCreateSecurityGroupRequest ¶
func NewCreateSecurityGroupRequest(server string, body CreateSecurityGroupJSONRequestBody) (*http.Request, error)
NewCreateSecurityGroupRequest calls the generic CreateSecurityGroup builder with application/json body
func NewCreateSecurityGroupRequestWithBody ¶
func NewCreateSecurityGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSecurityGroupRequestWithBody generates requests for CreateSecurityGroup with any type of body
func NewCreateSnapshotRequest ¶
func NewCreateSnapshotRequest(server string, body CreateSnapshotJSONRequestBody) (*http.Request, error)
NewCreateSnapshotRequest calls the generic CreateSnapshot builder with application/json body
func NewCreateSnapshotRequestWithBody ¶
func NewCreateSnapshotRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSnapshotRequestWithBody generates requests for CreateSnapshot with any type of body
func NewCreateVolumeRequest ¶
func NewCreateVolumeRequest(server string, body CreateVolumeJSONRequestBody) (*http.Request, error)
NewCreateVolumeRequest calls the generic CreateVolume builder with application/json body
func NewCreateVolumeRequestWithBody ¶
func NewCreateVolumeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateVolumeRequestWithBody generates requests for CreateVolume with any type of body
func NewDeleteFilesystemRequest ¶ added in v1.0.3
NewDeleteFilesystemRequest generates requests for DeleteFilesystem
func NewDeleteFloatingIPRequest ¶
NewDeleteFloatingIPRequest generates requests for DeleteFloatingIP
func NewDeleteInstanceRequest ¶
NewDeleteInstanceRequest generates requests for DeleteInstance
func NewDeleteSSHKeyRequest ¶
NewDeleteSSHKeyRequest generates requests for DeleteSSHKey
func NewDeleteSecurityGroupRequest ¶
NewDeleteSecurityGroupRequest generates requests for DeleteSecurityGroup
func NewDeleteSnapshotRequest ¶
NewDeleteSnapshotRequest generates requests for DeleteSnapshot
func NewDeleteVolumeRequest ¶
NewDeleteVolumeRequest generates requests for DeleteVolume
func NewGetFilesystemRequest ¶ added in v1.0.3
NewGetFilesystemRequest generates requests for GetFilesystem
func NewGetFloatingIPRequest ¶
NewGetFloatingIPRequest generates requests for GetFloatingIP
func NewGetInstanceActionsRequest ¶ added in v1.0.12
NewGetInstanceActionsRequest generates requests for GetInstanceActions
func NewGetInstanceRequest ¶
NewGetInstanceRequest generates requests for GetInstance
func NewGetInstanceUserMetadataRequest ¶ added in v1.0.10
NewGetInstanceUserMetadataRequest generates requests for GetInstanceUserMetadata
func NewGetInstancesAvailabilityRequest ¶
func NewGetInstancesAvailabilityRequest(server string, region Region, params *GetInstancesAvailabilityParams) (*http.Request, error)
NewGetInstancesAvailabilityRequest generates requests for GetInstancesAvailability
func NewGetQuotasRequest ¶ added in v1.0.12
NewGetQuotasRequest generates requests for GetQuotas
func NewGetReservationsRequest ¶ added in v1.0.12
NewGetReservationsRequest generates requests for GetReservations
func NewGetSSHKeyRequest ¶
NewGetSSHKeyRequest generates requests for GetSSHKey
func NewGetSecurityGroupRequest ¶
NewGetSecurityGroupRequest generates requests for GetSecurityGroup
func NewGetSnapshotRequest ¶
NewGetSnapshotRequest generates requests for GetSnapshot
func NewGetVolumeRequest ¶
NewGetVolumeRequest generates requests for GetVolume
func NewListFilesystemsPaginatedRequest ¶ added in v1.0.12
func NewListFilesystemsPaginatedRequest(server string, params *ListFilesystemsPaginatedParams) (*http.Request, error)
NewListFilesystemsPaginatedRequest generates requests for ListFilesystemsPaginated
func NewListFloatingIPsPaginatedRequest ¶ added in v1.0.12
func NewListFloatingIPsPaginatedRequest(server string, params *ListFloatingIPsPaginatedParams) (*http.Request, error)
NewListFloatingIPsPaginatedRequest generates requests for ListFloatingIPsPaginated
func NewListImagesPaginatedRequest ¶ added in v1.0.12
func NewListImagesPaginatedRequest(server string, params *ListImagesPaginatedParams) (*http.Request, error)
NewListImagesPaginatedRequest generates requests for ListImagesPaginated
func NewListInstanceSnapshotsPaginatedRequest ¶ added in v1.0.12
func NewListInstanceSnapshotsPaginatedRequest(server string, instanceId string, params *ListInstanceSnapshotsPaginatedParams) (*http.Request, error)
NewListInstanceSnapshotsPaginatedRequest generates requests for ListInstanceSnapshotsPaginated
func NewListInstancesPaginatedRequest ¶ added in v1.0.12
func NewListInstancesPaginatedRequest(server string, params *ListInstancesPaginatedParams) (*http.Request, error)
NewListInstancesPaginatedRequest generates requests for ListInstancesPaginated
func NewListSSHKeysPaginatedRequest ¶ added in v1.0.12
func NewListSSHKeysPaginatedRequest(server string, params *ListSSHKeysPaginatedParams) (*http.Request, error)
NewListSSHKeysPaginatedRequest generates requests for ListSSHKeysPaginated
func NewListSecurityGroupsPaginatedRequest ¶ added in v1.0.12
func NewListSecurityGroupsPaginatedRequest(server string, params *ListSecurityGroupsPaginatedParams) (*http.Request, error)
NewListSecurityGroupsPaginatedRequest generates requests for ListSecurityGroupsPaginated
func NewListSnapshotsPaginatedRequest ¶ added in v1.0.12
func NewListSnapshotsPaginatedRequest(server string, params *ListSnapshotsPaginatedParams) (*http.Request, error)
NewListSnapshotsPaginatedRequest generates requests for ListSnapshotsPaginated
func NewListVolumesPaginatedRequest ¶ added in v1.0.12
func NewListVolumesPaginatedRequest(server string, params *ListVolumesPaginatedParams) (*http.Request, error)
NewListVolumesPaginatedRequest generates requests for ListVolumesPaginated
func NewPerformInstanceActionRequest ¶
func NewPerformInstanceActionRequest(server string, instanceId string, body PerformInstanceActionJSONRequestBody) (*http.Request, error)
NewPerformInstanceActionRequest calls the generic PerformInstanceAction builder with application/json body
func NewPerformInstanceActionRequestWithBody ¶
func NewPerformInstanceActionRequestWithBody(server string, instanceId string, contentType string, body io.Reader) (*http.Request, error)
NewPerformInstanceActionRequestWithBody generates requests for PerformInstanceAction with any type of body
func NewUpdateFilesystemRequest ¶ added in v1.0.3
func NewUpdateFilesystemRequest(server string, filesystemId string, body UpdateFilesystemJSONRequestBody) (*http.Request, error)
NewUpdateFilesystemRequest calls the generic UpdateFilesystem builder with application/json body
func NewUpdateFilesystemRequestWithBody ¶ added in v1.0.3
func NewUpdateFilesystemRequestWithBody(server string, filesystemId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateFilesystemRequestWithBody generates requests for UpdateFilesystem with any type of body
func NewUpdateFloatingIPRequest ¶ added in v1.0.3
func NewUpdateFloatingIPRequest(server string, floatingIpId string, body UpdateFloatingIPJSONRequestBody) (*http.Request, error)
NewUpdateFloatingIPRequest calls the generic UpdateFloatingIP builder with application/json body
func NewUpdateFloatingIPRequestWithBody ¶ added in v1.0.3
func NewUpdateFloatingIPRequestWithBody(server string, floatingIpId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateFloatingIPRequestWithBody generates requests for UpdateFloatingIP with any type of body
func NewUpdateInstanceRequest ¶
func NewUpdateInstanceRequest(server string, instanceId string, body UpdateInstanceJSONRequestBody) (*http.Request, error)
NewUpdateInstanceRequest calls the generic UpdateInstance builder with application/json body
func NewUpdateInstanceRequestWithBody ¶
func NewUpdateInstanceRequestWithBody(server string, instanceId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateInstanceRequestWithBody generates requests for UpdateInstance with any type of body
func NewUpdateSSHKeyRequest ¶
func NewUpdateSSHKeyRequest(server string, sshKeyId string, body UpdateSSHKeyJSONRequestBody) (*http.Request, error)
NewUpdateSSHKeyRequest calls the generic UpdateSSHKey builder with application/json body
func NewUpdateSSHKeyRequestWithBody ¶
func NewUpdateSSHKeyRequestWithBody(server string, sshKeyId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateSSHKeyRequestWithBody generates requests for UpdateSSHKey with any type of body
func NewUpdateSecurityGroupRequest ¶
func NewUpdateSecurityGroupRequest(server string, securityGroupId string, body UpdateSecurityGroupJSONRequestBody) (*http.Request, error)
NewUpdateSecurityGroupRequest calls the generic UpdateSecurityGroup builder with application/json body
func NewUpdateSecurityGroupRequestWithBody ¶
func NewUpdateSecurityGroupRequestWithBody(server string, securityGroupId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateSecurityGroupRequestWithBody generates requests for UpdateSecurityGroup with any type of body
func NewUpdateSnapshotRequest ¶
func NewUpdateSnapshotRequest(server string, snapshotId string, body UpdateSnapshotJSONRequestBody) (*http.Request, error)
NewUpdateSnapshotRequest calls the generic UpdateSnapshot builder with application/json body
func NewUpdateSnapshotRequestWithBody ¶
func NewUpdateSnapshotRequestWithBody(server string, snapshotId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateSnapshotRequestWithBody generates requests for UpdateSnapshot with any type of body
func NewUpdateVolumeRequest ¶
func NewUpdateVolumeRequest(server string, volumeId string, body UpdateVolumeJSONRequestBody) (*http.Request, error)
NewUpdateVolumeRequest calls the generic UpdateVolume builder with application/json body
Types ¶
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CloneSnapshot ¶ added in v1.0.12
func (c *Client) CloneSnapshot(ctx context.Context, snapshotId string, body CloneSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CloneSnapshotWithBody ¶ added in v1.0.12
func (*Client) CreateFilesystem ¶ added in v1.0.3
func (c *Client) CreateFilesystem(ctx context.Context, body CreateFilesystemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateFilesystemWithBody ¶ added in v1.0.3
func (*Client) CreateFloatingIP ¶
func (c *Client) CreateFloatingIP(ctx context.Context, body CreateFloatingIPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateFloatingIPWithBody ¶
func (*Client) CreateInstance ¶
func (c *Client) CreateInstance(ctx context.Context, body CreateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateInstanceSnapshot ¶ added in v1.0.2
func (c *Client) CreateInstanceSnapshot(ctx context.Context, instanceId string, body CreateInstanceSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateInstanceSnapshotWithBody ¶ added in v1.0.2
func (*Client) CreateInstanceWithBody ¶
func (*Client) CreateSSHKey ¶
func (c *Client) CreateSSHKey(ctx context.Context, body CreateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSSHKeyWithBody ¶
func (*Client) CreateSecurityGroup ¶
func (c *Client) CreateSecurityGroup(ctx context.Context, body CreateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSecurityGroupWithBody ¶
func (*Client) CreateSnapshot ¶
func (c *Client) CreateSnapshot(ctx context.Context, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSnapshotWithBody ¶
func (*Client) CreateVolume ¶
func (c *Client) CreateVolume(ctx context.Context, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateVolumeWithBody ¶
func (*Client) DeleteFilesystem ¶ added in v1.0.3
func (*Client) DeleteFloatingIP ¶
func (*Client) DeleteInstance ¶
func (*Client) DeleteSSHKey ¶
func (*Client) DeleteSecurityGroup ¶
func (*Client) DeleteSnapshot ¶
func (*Client) DeleteVolume ¶
func (*Client) GetFilesystem ¶ added in v1.0.3
func (*Client) GetFloatingIP ¶
func (*Client) GetInstance ¶
func (*Client) GetInstanceActions ¶ added in v1.0.12
func (*Client) GetInstanceUserMetadata ¶ added in v1.0.10
func (*Client) GetInstancesAvailability ¶
func (c *Client) GetInstancesAvailability(ctx context.Context, region Region, params *GetInstancesAvailabilityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetReservations ¶ added in v1.0.12
func (*Client) GetSecurityGroup ¶
func (*Client) GetSnapshot ¶
func (*Client) ListFilesystemsPaginated ¶ added in v1.0.12
func (c *Client) ListFilesystemsPaginated(ctx context.Context, params *ListFilesystemsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListFloatingIPsPaginated ¶ added in v1.0.12
func (c *Client) ListFloatingIPsPaginated(ctx context.Context, params *ListFloatingIPsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListImagesPaginated ¶ added in v1.0.12
func (c *Client) ListImagesPaginated(ctx context.Context, params *ListImagesPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListInstanceSnapshotsPaginated ¶ added in v1.0.12
func (c *Client) ListInstanceSnapshotsPaginated(ctx context.Context, instanceId string, params *ListInstanceSnapshotsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListInstancesPaginated ¶ added in v1.0.12
func (c *Client) ListInstancesPaginated(ctx context.Context, params *ListInstancesPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSSHKeysPaginated ¶ added in v1.0.12
func (c *Client) ListSSHKeysPaginated(ctx context.Context, params *ListSSHKeysPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSecurityGroupsPaginated ¶ added in v1.0.12
func (c *Client) ListSecurityGroupsPaginated(ctx context.Context, params *ListSecurityGroupsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSnapshotsPaginated ¶ added in v1.0.12
func (c *Client) ListSnapshotsPaginated(ctx context.Context, params *ListSnapshotsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListVolumesPaginated ¶ added in v1.0.12
func (c *Client) ListVolumesPaginated(ctx context.Context, params *ListVolumesPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PerformInstanceAction ¶
func (c *Client) PerformInstanceAction(ctx context.Context, instanceId string, body PerformInstanceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PerformInstanceActionWithBody ¶
func (*Client) UpdateFilesystem ¶ added in v1.0.3
func (c *Client) UpdateFilesystem(ctx context.Context, filesystemId string, body UpdateFilesystemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateFilesystemWithBody ¶ added in v1.0.3
func (*Client) UpdateFloatingIP ¶ added in v1.0.3
func (c *Client) UpdateFloatingIP(ctx context.Context, floatingIpId string, body UpdateFloatingIPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateFloatingIPWithBody ¶ added in v1.0.3
func (*Client) UpdateInstance ¶
func (c *Client) UpdateInstance(ctx context.Context, instanceId string, body UpdateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateInstanceWithBody ¶
func (*Client) UpdateSSHKey ¶
func (c *Client) UpdateSSHKey(ctx context.Context, sshKeyId string, body UpdateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateSSHKeyWithBody ¶
func (*Client) UpdateSecurityGroup ¶
func (c *Client) UpdateSecurityGroup(ctx context.Context, securityGroupId string, body UpdateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateSecurityGroupWithBody ¶
func (*Client) UpdateSnapshot ¶
func (c *Client) UpdateSnapshot(ctx context.Context, snapshotId string, body UpdateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateSnapshotWithBody ¶
func (*Client) UpdateVolume ¶
func (c *Client) UpdateVolume(ctx context.Context, volumeId string, body UpdateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientConfig ¶
type ClientInterface ¶
type ClientInterface interface {
// GetInstancesAvailability request
GetInstancesAvailability(ctx context.Context, region Region, params *GetInstancesAvailabilityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListFilesystemsPaginated request
ListFilesystemsPaginated(ctx context.Context, params *ListFilesystemsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateFilesystemWithBody request with any body
CreateFilesystemWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateFilesystem(ctx context.Context, body CreateFilesystemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteFilesystem request
DeleteFilesystem(ctx context.Context, filesystemId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFilesystem request
GetFilesystem(ctx context.Context, filesystemId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateFilesystemWithBody request with any body
UpdateFilesystemWithBody(ctx context.Context, filesystemId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateFilesystem(ctx context.Context, filesystemId string, body UpdateFilesystemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListFloatingIPsPaginated request
ListFloatingIPsPaginated(ctx context.Context, params *ListFloatingIPsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateFloatingIPWithBody request with any body
CreateFloatingIPWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateFloatingIP(ctx context.Context, body CreateFloatingIPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteFloatingIP request
DeleteFloatingIP(ctx context.Context, floatingIpId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFloatingIP request
GetFloatingIP(ctx context.Context, floatingIpId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateFloatingIPWithBody request with any body
UpdateFloatingIPWithBody(ctx context.Context, floatingIpId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateFloatingIP(ctx context.Context, floatingIpId string, body UpdateFloatingIPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListImagesPaginated request
ListImagesPaginated(ctx context.Context, params *ListImagesPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListInstancesPaginated request
ListInstancesPaginated(ctx context.Context, params *ListInstancesPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateInstanceWithBody request with any body
CreateInstanceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateInstance(ctx context.Context, body CreateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteInstance request
DeleteInstance(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetInstance request
GetInstance(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateInstanceWithBody request with any body
UpdateInstanceWithBody(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateInstance(ctx context.Context, instanceId string, body UpdateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetInstanceActions request
GetInstanceActions(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PerformInstanceActionWithBody request with any body
PerformInstanceActionWithBody(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PerformInstanceAction(ctx context.Context, instanceId string, body PerformInstanceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListInstanceSnapshotsPaginated request
ListInstanceSnapshotsPaginated(ctx context.Context, instanceId string, params *ListInstanceSnapshotsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateInstanceSnapshotWithBody request with any body
CreateInstanceSnapshotWithBody(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateInstanceSnapshot(ctx context.Context, instanceId string, body CreateInstanceSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetInstanceUserMetadata request
GetInstanceUserMetadata(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetQuotas request
GetQuotas(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetReservations request
GetReservations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSecurityGroupsPaginated request
ListSecurityGroupsPaginated(ctx context.Context, params *ListSecurityGroupsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSecurityGroupWithBody request with any body
CreateSecurityGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSecurityGroup(ctx context.Context, body CreateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSecurityGroup request
DeleteSecurityGroup(ctx context.Context, securityGroupId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSecurityGroup request
GetSecurityGroup(ctx context.Context, securityGroupId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateSecurityGroupWithBody request with any body
UpdateSecurityGroupWithBody(ctx context.Context, securityGroupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateSecurityGroup(ctx context.Context, securityGroupId string, body UpdateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSnapshotsPaginated request
ListSnapshotsPaginated(ctx context.Context, params *ListSnapshotsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSnapshotWithBody request with any body
CreateSnapshotWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSnapshot(ctx context.Context, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSnapshot request
DeleteSnapshot(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSnapshot request
GetSnapshot(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateSnapshotWithBody request with any body
UpdateSnapshotWithBody(ctx context.Context, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateSnapshot(ctx context.Context, snapshotId string, body UpdateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CloneSnapshotWithBody request with any body
CloneSnapshotWithBody(ctx context.Context, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CloneSnapshot(ctx context.Context, snapshotId string, body CloneSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSSHKeysPaginated request
ListSSHKeysPaginated(ctx context.Context, params *ListSSHKeysPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSSHKeyWithBody request with any body
CreateSSHKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSSHKey(ctx context.Context, body CreateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSSHKey request
DeleteSSHKey(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSSHKey request
GetSSHKey(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateSSHKeyWithBody request with any body
UpdateSSHKeyWithBody(ctx context.Context, sshKeyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateSSHKey(ctx context.Context, sshKeyId string, body UpdateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListVolumesPaginated request
ListVolumesPaginated(ctx context.Context, params *ListVolumesPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateVolumeWithBody request with any body
CreateVolumeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateVolume(ctx context.Context, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteVolume request
DeleteVolume(ctx context.Context, volumeId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetVolume request
GetVolume(ctx context.Context, volumeId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateVolumeWithBody request with any body
UpdateVolumeWithBody(ctx context.Context, volumeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateVolume(ctx context.Context, volumeId string, body UpdateVolumeJSONRequestBody, 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 NewGenesisCloudClient ¶
func NewGenesisCloudClient(config ClientConfig, opts ...ClientOption) (*ClientWithResponses, error)
func (*ClientWithResponses) CloneSnapshotWithBodyWithResponse ¶ added in v1.0.12
func (c *ClientWithResponses) CloneSnapshotWithBodyWithResponse(ctx context.Context, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloneSnapshotResponse, error)
CloneSnapshotWithBodyWithResponse request with arbitrary body returning *CloneSnapshotResponse
func (*ClientWithResponses) CloneSnapshotWithResponse ¶ added in v1.0.12
func (c *ClientWithResponses) CloneSnapshotWithResponse(ctx context.Context, snapshotId string, body CloneSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CloneSnapshotResponse, error)
func (*ClientWithResponses) CreateFilesystemWithBodyWithResponse ¶ added in v1.0.3
func (c *ClientWithResponses) CreateFilesystemWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFilesystemResponse, error)
CreateFilesystemWithBodyWithResponse request with arbitrary body returning *CreateFilesystemResponse
func (*ClientWithResponses) CreateFilesystemWithResponse ¶ added in v1.0.3
func (c *ClientWithResponses) CreateFilesystemWithResponse(ctx context.Context, body CreateFilesystemJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFilesystemResponse, error)
func (*ClientWithResponses) CreateFloatingIPWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateFloatingIPWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFloatingIPResponse, error)
CreateFloatingIPWithBodyWithResponse request with arbitrary body returning *CreateFloatingIPResponse
func (*ClientWithResponses) CreateFloatingIPWithResponse ¶
func (c *ClientWithResponses) CreateFloatingIPWithResponse(ctx context.Context, body CreateFloatingIPJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFloatingIPResponse, error)
func (*ClientWithResponses) CreateInstanceSnapshotWithBodyWithResponse ¶ added in v1.0.2
func (c *ClientWithResponses) CreateInstanceSnapshotWithBodyWithResponse(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInstanceSnapshotResponse, error)
CreateInstanceSnapshotWithBodyWithResponse request with arbitrary body returning *CreateInstanceSnapshotResponse
func (*ClientWithResponses) CreateInstanceSnapshotWithResponse ¶ added in v1.0.2
func (c *ClientWithResponses) CreateInstanceSnapshotWithResponse(ctx context.Context, instanceId string, body CreateInstanceSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInstanceSnapshotResponse, error)
func (*ClientWithResponses) CreateInstanceWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInstanceResponse, error)
CreateInstanceWithBodyWithResponse request with arbitrary body returning *CreateInstanceResponse
func (*ClientWithResponses) CreateInstanceWithResponse ¶
func (c *ClientWithResponses) CreateInstanceWithResponse(ctx context.Context, body CreateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInstanceResponse, error)
func (*ClientWithResponses) CreateSSHKeyWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSSHKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSSHKeyResponse, error)
CreateSSHKeyWithBodyWithResponse request with arbitrary body returning *CreateSSHKeyResponse
func (*ClientWithResponses) CreateSSHKeyWithResponse ¶
func (c *ClientWithResponses) CreateSSHKeyWithResponse(ctx context.Context, body CreateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSSHKeyResponse, error)
func (*ClientWithResponses) CreateSecurityGroupWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSecurityGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecurityGroupResponse, error)
CreateSecurityGroupWithBodyWithResponse request with arbitrary body returning *CreateSecurityGroupResponse
func (*ClientWithResponses) CreateSecurityGroupWithResponse ¶
func (c *ClientWithResponses) CreateSecurityGroupWithResponse(ctx context.Context, body CreateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecurityGroupResponse, error)
func (*ClientWithResponses) CreateSnapshotWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSnapshotWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error)
CreateSnapshotWithBodyWithResponse request with arbitrary body returning *CreateSnapshotResponse
func (*ClientWithResponses) CreateSnapshotWithResponse ¶
func (c *ClientWithResponses) CreateSnapshotWithResponse(ctx context.Context, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error)
func (*ClientWithResponses) CreateVolumeWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateVolumeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)
CreateVolumeWithBodyWithResponse request with arbitrary body returning *CreateVolumeResponse
func (*ClientWithResponses) CreateVolumeWithResponse ¶
func (c *ClientWithResponses) CreateVolumeWithResponse(ctx context.Context, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)
func (*ClientWithResponses) DeleteFilesystemWithResponse ¶ added in v1.0.3
func (c *ClientWithResponses) DeleteFilesystemWithResponse(ctx context.Context, filesystemId string, reqEditors ...RequestEditorFn) (*DeleteFilesystemResponse, error)
DeleteFilesystemWithResponse request returning *DeleteFilesystemResponse
func (*ClientWithResponses) DeleteFloatingIPWithResponse ¶
func (c *ClientWithResponses) DeleteFloatingIPWithResponse(ctx context.Context, floatingIpId string, reqEditors ...RequestEditorFn) (*DeleteFloatingIPResponse, error)
DeleteFloatingIPWithResponse request returning *DeleteFloatingIPResponse
func (*ClientWithResponses) DeleteInstanceWithResponse ¶
func (c *ClientWithResponses) DeleteInstanceWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*DeleteInstanceResponse, error)
DeleteInstanceWithResponse request returning *DeleteInstanceResponse
func (*ClientWithResponses) DeleteSSHKeyWithResponse ¶
func (c *ClientWithResponses) DeleteSSHKeyWithResponse(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*DeleteSSHKeyResponse, error)
DeleteSSHKeyWithResponse request returning *DeleteSSHKeyResponse
func (*ClientWithResponses) DeleteSecurityGroupWithResponse ¶
func (c *ClientWithResponses) DeleteSecurityGroupWithResponse(ctx context.Context, securityGroupId string, reqEditors ...RequestEditorFn) (*DeleteSecurityGroupResponse, error)
DeleteSecurityGroupWithResponse request returning *DeleteSecurityGroupResponse
func (*ClientWithResponses) DeleteSnapshotWithResponse ¶
func (c *ClientWithResponses) DeleteSnapshotWithResponse(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*DeleteSnapshotResponse, error)
DeleteSnapshotWithResponse request returning *DeleteSnapshotResponse
func (*ClientWithResponses) DeleteVolumeWithResponse ¶
func (c *ClientWithResponses) DeleteVolumeWithResponse(ctx context.Context, volumeId string, reqEditors ...RequestEditorFn) (*DeleteVolumeResponse, error)
DeleteVolumeWithResponse request returning *DeleteVolumeResponse
func (*ClientWithResponses) GetFilesystemWithResponse ¶ added in v1.0.3
func (c *ClientWithResponses) GetFilesystemWithResponse(ctx context.Context, filesystemId string, reqEditors ...RequestEditorFn) (*GetFilesystemResponse, error)
GetFilesystemWithResponse request returning *GetFilesystemResponse
func (*ClientWithResponses) GetFloatingIPWithResponse ¶
func (c *ClientWithResponses) GetFloatingIPWithResponse(ctx context.Context, floatingIpId string, reqEditors ...RequestEditorFn) (*GetFloatingIPResponse, error)
GetFloatingIPWithResponse request returning *GetFloatingIPResponse
func (*ClientWithResponses) GetInstanceActionsWithResponse ¶ added in v1.0.12
func (c *ClientWithResponses) GetInstanceActionsWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*GetInstanceActionsResponse, error)
GetInstanceActionsWithResponse request returning *GetInstanceActionsResponse
func (*ClientWithResponses) GetInstanceUserMetadataWithResponse ¶ added in v1.0.10
func (c *ClientWithResponses) GetInstanceUserMetadataWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*GetInstanceUserMetadataResponse, error)
GetInstanceUserMetadataWithResponse request returning *GetInstanceUserMetadataResponse
func (*ClientWithResponses) GetInstanceWithResponse ¶
func (c *ClientWithResponses) GetInstanceWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*GetInstanceResponse, error)
GetInstanceWithResponse request returning *GetInstanceResponse
func (*ClientWithResponses) GetInstancesAvailabilityWithResponse ¶
func (c *ClientWithResponses) GetInstancesAvailabilityWithResponse(ctx context.Context, region Region, params *GetInstancesAvailabilityParams, reqEditors ...RequestEditorFn) (*GetInstancesAvailabilityResponse, error)
GetInstancesAvailabilityWithResponse request returning *GetInstancesAvailabilityResponse
func (*ClientWithResponses) GetQuotasWithResponse ¶ added in v1.0.12
func (c *ClientWithResponses) GetQuotasWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetQuotasResponse, error)
GetQuotasWithResponse request returning *GetQuotasResponse
func (*ClientWithResponses) GetReservationsWithResponse ¶ added in v1.0.12
func (c *ClientWithResponses) GetReservationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReservationsResponse, error)
GetReservationsWithResponse request returning *GetReservationsResponse
func (*ClientWithResponses) GetSSHKeyWithResponse ¶
func (c *ClientWithResponses) GetSSHKeyWithResponse(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*GetSSHKeyResponse, error)
GetSSHKeyWithResponse request returning *GetSSHKeyResponse
func (*ClientWithResponses) GetSecurityGroupWithResponse ¶
func (c *ClientWithResponses) GetSecurityGroupWithResponse(ctx context.Context, securityGroupId string, reqEditors ...RequestEditorFn) (*GetSecurityGroupResponse, error)
GetSecurityGroupWithResponse request returning *GetSecurityGroupResponse
func (*ClientWithResponses) GetSnapshotWithResponse ¶
func (c *ClientWithResponses) GetSnapshotWithResponse(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*GetSnapshotResponse, error)
GetSnapshotWithResponse request returning *GetSnapshotResponse
func (*ClientWithResponses) GetVolumeWithResponse ¶
func (c *ClientWithResponses) GetVolumeWithResponse(ctx context.Context, volumeId string, reqEditors ...RequestEditorFn) (*GetVolumeResponse, error)
GetVolumeWithResponse request returning *GetVolumeResponse
func (*ClientWithResponses) ListFilesystemsPaginatedWithResponse ¶ added in v1.0.12
func (c *ClientWithResponses) ListFilesystemsPaginatedWithResponse(ctx context.Context, params *ListFilesystemsPaginatedParams, reqEditors ...RequestEditorFn) (*ListFilesystemsPaginatedResponse, error)
ListFilesystemsPaginatedWithResponse request returning *ListFilesystemsPaginatedResponse
func (*ClientWithResponses) ListFloatingIPsPaginatedWithResponse ¶ added in v1.0.12
func (c *ClientWithResponses) ListFloatingIPsPaginatedWithResponse(ctx context.Context, params *ListFloatingIPsPaginatedParams, reqEditors ...RequestEditorFn) (*ListFloatingIPsPaginatedResponse, error)
ListFloatingIPsPaginatedWithResponse request returning *ListFloatingIPsPaginatedResponse
func (*ClientWithResponses) ListImagesPaginatedWithResponse ¶ added in v1.0.12
func (c *ClientWithResponses) ListImagesPaginatedWithResponse(ctx context.Context, params *ListImagesPaginatedParams, reqEditors ...RequestEditorFn) (*ListImagesPaginatedResponse, error)
ListImagesPaginatedWithResponse request returning *ListImagesPaginatedResponse
func (*ClientWithResponses) ListInstanceSnapshotsPaginatedWithResponse ¶ added in v1.0.12
func (c *ClientWithResponses) ListInstanceSnapshotsPaginatedWithResponse(ctx context.Context, instanceId string, params *ListInstanceSnapshotsPaginatedParams, reqEditors ...RequestEditorFn) (*ListInstanceSnapshotsPaginatedResponse, error)
ListInstanceSnapshotsPaginatedWithResponse request returning *ListInstanceSnapshotsPaginatedResponse
func (*ClientWithResponses) ListInstancesPaginatedWithResponse ¶ added in v1.0.12
func (c *ClientWithResponses) ListInstancesPaginatedWithResponse(ctx context.Context, params *ListInstancesPaginatedParams, reqEditors ...RequestEditorFn) (*ListInstancesPaginatedResponse, error)
ListInstancesPaginatedWithResponse request returning *ListInstancesPaginatedResponse
func (*ClientWithResponses) ListSSHKeysPaginatedWithResponse ¶ added in v1.0.12
func (c *ClientWithResponses) ListSSHKeysPaginatedWithResponse(ctx context.Context, params *ListSSHKeysPaginatedParams, reqEditors ...RequestEditorFn) (*ListSSHKeysPaginatedResponse, error)
ListSSHKeysPaginatedWithResponse request returning *ListSSHKeysPaginatedResponse
func (*ClientWithResponses) ListSecurityGroupsPaginatedWithResponse ¶ added in v1.0.12
func (c *ClientWithResponses) ListSecurityGroupsPaginatedWithResponse(ctx context.Context, params *ListSecurityGroupsPaginatedParams, reqEditors ...RequestEditorFn) (*ListSecurityGroupsPaginatedResponse, error)
ListSecurityGroupsPaginatedWithResponse request returning *ListSecurityGroupsPaginatedResponse
func (*ClientWithResponses) ListSnapshotsPaginatedWithResponse ¶ added in v1.0.12
func (c *ClientWithResponses) ListSnapshotsPaginatedWithResponse(ctx context.Context, params *ListSnapshotsPaginatedParams, reqEditors ...RequestEditorFn) (*ListSnapshotsPaginatedResponse, error)
ListSnapshotsPaginatedWithResponse request returning *ListSnapshotsPaginatedResponse
func (*ClientWithResponses) ListVolumesPaginatedWithResponse ¶ added in v1.0.12
func (c *ClientWithResponses) ListVolumesPaginatedWithResponse(ctx context.Context, params *ListVolumesPaginatedParams, reqEditors ...RequestEditorFn) (*ListVolumesPaginatedResponse, error)
ListVolumesPaginatedWithResponse request returning *ListVolumesPaginatedResponse
func (*ClientWithResponses) PerformInstanceActionWithBodyWithResponse ¶
func (c *ClientWithResponses) PerformInstanceActionWithBodyWithResponse(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PerformInstanceActionResponse, error)
PerformInstanceActionWithBodyWithResponse request with arbitrary body returning *PerformInstanceActionResponse
func (*ClientWithResponses) PerformInstanceActionWithResponse ¶
func (c *ClientWithResponses) PerformInstanceActionWithResponse(ctx context.Context, instanceId string, body PerformInstanceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*PerformInstanceActionResponse, error)
func (*ClientWithResponses) UpdateFilesystemWithBodyWithResponse ¶ added in v1.0.3
func (c *ClientWithResponses) UpdateFilesystemWithBodyWithResponse(ctx context.Context, filesystemId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFilesystemResponse, error)
UpdateFilesystemWithBodyWithResponse request with arbitrary body returning *UpdateFilesystemResponse
func (*ClientWithResponses) UpdateFilesystemWithResponse ¶ added in v1.0.3
func (c *ClientWithResponses) UpdateFilesystemWithResponse(ctx context.Context, filesystemId string, body UpdateFilesystemJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFilesystemResponse, error)
func (*ClientWithResponses) UpdateFloatingIPWithBodyWithResponse ¶ added in v1.0.3
func (c *ClientWithResponses) UpdateFloatingIPWithBodyWithResponse(ctx context.Context, floatingIpId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFloatingIPResponse, error)
UpdateFloatingIPWithBodyWithResponse request with arbitrary body returning *UpdateFloatingIPResponse
func (*ClientWithResponses) UpdateFloatingIPWithResponse ¶ added in v1.0.3
func (c *ClientWithResponses) UpdateFloatingIPWithResponse(ctx context.Context, floatingIpId string, body UpdateFloatingIPJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFloatingIPResponse, error)
func (*ClientWithResponses) UpdateInstanceWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateInstanceWithBodyWithResponse(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInstanceResponse, error)
UpdateInstanceWithBodyWithResponse request with arbitrary body returning *UpdateInstanceResponse
func (*ClientWithResponses) UpdateInstanceWithResponse ¶
func (c *ClientWithResponses) UpdateInstanceWithResponse(ctx context.Context, instanceId string, body UpdateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInstanceResponse, error)
func (*ClientWithResponses) UpdateSSHKeyWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateSSHKeyWithBodyWithResponse(ctx context.Context, sshKeyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSSHKeyResponse, error)
UpdateSSHKeyWithBodyWithResponse request with arbitrary body returning *UpdateSSHKeyResponse
func (*ClientWithResponses) UpdateSSHKeyWithResponse ¶
func (c *ClientWithResponses) UpdateSSHKeyWithResponse(ctx context.Context, sshKeyId string, body UpdateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSSHKeyResponse, error)
func (*ClientWithResponses) UpdateSecurityGroupWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateSecurityGroupWithBodyWithResponse(ctx context.Context, securityGroupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecurityGroupResponse, error)
UpdateSecurityGroupWithBodyWithResponse request with arbitrary body returning *UpdateSecurityGroupResponse
func (*ClientWithResponses) UpdateSecurityGroupWithResponse ¶
func (c *ClientWithResponses) UpdateSecurityGroupWithResponse(ctx context.Context, securityGroupId string, body UpdateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecurityGroupResponse, error)
func (*ClientWithResponses) UpdateSnapshotWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateSnapshotWithBodyWithResponse(ctx context.Context, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSnapshotResponse, error)
UpdateSnapshotWithBodyWithResponse request with arbitrary body returning *UpdateSnapshotResponse
func (*ClientWithResponses) UpdateSnapshotWithResponse ¶
func (c *ClientWithResponses) UpdateSnapshotWithResponse(ctx context.Context, snapshotId string, body UpdateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSnapshotResponse, error)
func (*ClientWithResponses) UpdateVolumeWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateVolumeWithBodyWithResponse(ctx context.Context, volumeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVolumeResponse, error)
UpdateVolumeWithBodyWithResponse request with arbitrary body returning *UpdateVolumeResponse
func (*ClientWithResponses) UpdateVolumeWithResponse ¶
func (c *ClientWithResponses) UpdateVolumeWithResponse(ctx context.Context, volumeId string, body UpdateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVolumeResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetInstancesAvailabilityWithResponse request
GetInstancesAvailabilityWithResponse(ctx context.Context, region Region, params *GetInstancesAvailabilityParams, reqEditors ...RequestEditorFn) (*GetInstancesAvailabilityResponse, error)
// ListFilesystemsPaginatedWithResponse request
ListFilesystemsPaginatedWithResponse(ctx context.Context, params *ListFilesystemsPaginatedParams, reqEditors ...RequestEditorFn) (*ListFilesystemsPaginatedResponse, error)
// CreateFilesystemWithBodyWithResponse request with any body
CreateFilesystemWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFilesystemResponse, error)
CreateFilesystemWithResponse(ctx context.Context, body CreateFilesystemJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFilesystemResponse, error)
// DeleteFilesystemWithResponse request
DeleteFilesystemWithResponse(ctx context.Context, filesystemId string, reqEditors ...RequestEditorFn) (*DeleteFilesystemResponse, error)
// GetFilesystemWithResponse request
GetFilesystemWithResponse(ctx context.Context, filesystemId string, reqEditors ...RequestEditorFn) (*GetFilesystemResponse, error)
// UpdateFilesystemWithBodyWithResponse request with any body
UpdateFilesystemWithBodyWithResponse(ctx context.Context, filesystemId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFilesystemResponse, error)
UpdateFilesystemWithResponse(ctx context.Context, filesystemId string, body UpdateFilesystemJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFilesystemResponse, error)
// ListFloatingIPsPaginatedWithResponse request
ListFloatingIPsPaginatedWithResponse(ctx context.Context, params *ListFloatingIPsPaginatedParams, reqEditors ...RequestEditorFn) (*ListFloatingIPsPaginatedResponse, error)
// CreateFloatingIPWithBodyWithResponse request with any body
CreateFloatingIPWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFloatingIPResponse, error)
CreateFloatingIPWithResponse(ctx context.Context, body CreateFloatingIPJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFloatingIPResponse, error)
// DeleteFloatingIPWithResponse request
DeleteFloatingIPWithResponse(ctx context.Context, floatingIpId string, reqEditors ...RequestEditorFn) (*DeleteFloatingIPResponse, error)
// GetFloatingIPWithResponse request
GetFloatingIPWithResponse(ctx context.Context, floatingIpId string, reqEditors ...RequestEditorFn) (*GetFloatingIPResponse, error)
// UpdateFloatingIPWithBodyWithResponse request with any body
UpdateFloatingIPWithBodyWithResponse(ctx context.Context, floatingIpId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFloatingIPResponse, error)
UpdateFloatingIPWithResponse(ctx context.Context, floatingIpId string, body UpdateFloatingIPJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFloatingIPResponse, error)
// ListImagesPaginatedWithResponse request
ListImagesPaginatedWithResponse(ctx context.Context, params *ListImagesPaginatedParams, reqEditors ...RequestEditorFn) (*ListImagesPaginatedResponse, error)
// ListInstancesPaginatedWithResponse request
ListInstancesPaginatedWithResponse(ctx context.Context, params *ListInstancesPaginatedParams, reqEditors ...RequestEditorFn) (*ListInstancesPaginatedResponse, error)
// CreateInstanceWithBodyWithResponse request with any body
CreateInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInstanceResponse, error)
CreateInstanceWithResponse(ctx context.Context, body CreateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInstanceResponse, error)
// DeleteInstanceWithResponse request
DeleteInstanceWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*DeleteInstanceResponse, error)
// GetInstanceWithResponse request
GetInstanceWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*GetInstanceResponse, error)
// UpdateInstanceWithBodyWithResponse request with any body
UpdateInstanceWithBodyWithResponse(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInstanceResponse, error)
UpdateInstanceWithResponse(ctx context.Context, instanceId string, body UpdateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInstanceResponse, error)
// GetInstanceActionsWithResponse request
GetInstanceActionsWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*GetInstanceActionsResponse, error)
// PerformInstanceActionWithBodyWithResponse request with any body
PerformInstanceActionWithBodyWithResponse(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PerformInstanceActionResponse, error)
PerformInstanceActionWithResponse(ctx context.Context, instanceId string, body PerformInstanceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*PerformInstanceActionResponse, error)
// ListInstanceSnapshotsPaginatedWithResponse request
ListInstanceSnapshotsPaginatedWithResponse(ctx context.Context, instanceId string, params *ListInstanceSnapshotsPaginatedParams, reqEditors ...RequestEditorFn) (*ListInstanceSnapshotsPaginatedResponse, error)
// CreateInstanceSnapshotWithBodyWithResponse request with any body
CreateInstanceSnapshotWithBodyWithResponse(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInstanceSnapshotResponse, error)
CreateInstanceSnapshotWithResponse(ctx context.Context, instanceId string, body CreateInstanceSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInstanceSnapshotResponse, error)
// GetInstanceUserMetadataWithResponse request
GetInstanceUserMetadataWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*GetInstanceUserMetadataResponse, error)
// GetQuotasWithResponse request
GetQuotasWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetQuotasResponse, error)
// GetReservationsWithResponse request
GetReservationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReservationsResponse, error)
// ListSecurityGroupsPaginatedWithResponse request
ListSecurityGroupsPaginatedWithResponse(ctx context.Context, params *ListSecurityGroupsPaginatedParams, reqEditors ...RequestEditorFn) (*ListSecurityGroupsPaginatedResponse, error)
// CreateSecurityGroupWithBodyWithResponse request with any body
CreateSecurityGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecurityGroupResponse, error)
CreateSecurityGroupWithResponse(ctx context.Context, body CreateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecurityGroupResponse, error)
// DeleteSecurityGroupWithResponse request
DeleteSecurityGroupWithResponse(ctx context.Context, securityGroupId string, reqEditors ...RequestEditorFn) (*DeleteSecurityGroupResponse, error)
// GetSecurityGroupWithResponse request
GetSecurityGroupWithResponse(ctx context.Context, securityGroupId string, reqEditors ...RequestEditorFn) (*GetSecurityGroupResponse, error)
// UpdateSecurityGroupWithBodyWithResponse request with any body
UpdateSecurityGroupWithBodyWithResponse(ctx context.Context, securityGroupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecurityGroupResponse, error)
UpdateSecurityGroupWithResponse(ctx context.Context, securityGroupId string, body UpdateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecurityGroupResponse, error)
// ListSnapshotsPaginatedWithResponse request
ListSnapshotsPaginatedWithResponse(ctx context.Context, params *ListSnapshotsPaginatedParams, reqEditors ...RequestEditorFn) (*ListSnapshotsPaginatedResponse, error)
// CreateSnapshotWithBodyWithResponse request with any body
CreateSnapshotWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error)
CreateSnapshotWithResponse(ctx context.Context, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error)
// DeleteSnapshotWithResponse request
DeleteSnapshotWithResponse(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*DeleteSnapshotResponse, error)
// GetSnapshotWithResponse request
GetSnapshotWithResponse(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*GetSnapshotResponse, error)
// UpdateSnapshotWithBodyWithResponse request with any body
UpdateSnapshotWithBodyWithResponse(ctx context.Context, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSnapshotResponse, error)
UpdateSnapshotWithResponse(ctx context.Context, snapshotId string, body UpdateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSnapshotResponse, error)
// CloneSnapshotWithBodyWithResponse request with any body
CloneSnapshotWithBodyWithResponse(ctx context.Context, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloneSnapshotResponse, error)
CloneSnapshotWithResponse(ctx context.Context, snapshotId string, body CloneSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CloneSnapshotResponse, error)
// ListSSHKeysPaginatedWithResponse request
ListSSHKeysPaginatedWithResponse(ctx context.Context, params *ListSSHKeysPaginatedParams, reqEditors ...RequestEditorFn) (*ListSSHKeysPaginatedResponse, error)
// CreateSSHKeyWithBodyWithResponse request with any body
CreateSSHKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSSHKeyResponse, error)
CreateSSHKeyWithResponse(ctx context.Context, body CreateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSSHKeyResponse, error)
// DeleteSSHKeyWithResponse request
DeleteSSHKeyWithResponse(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*DeleteSSHKeyResponse, error)
// GetSSHKeyWithResponse request
GetSSHKeyWithResponse(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*GetSSHKeyResponse, error)
// UpdateSSHKeyWithBodyWithResponse request with any body
UpdateSSHKeyWithBodyWithResponse(ctx context.Context, sshKeyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSSHKeyResponse, error)
UpdateSSHKeyWithResponse(ctx context.Context, sshKeyId string, body UpdateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSSHKeyResponse, error)
// ListVolumesPaginatedWithResponse request
ListVolumesPaginatedWithResponse(ctx context.Context, params *ListVolumesPaginatedParams, reqEditors ...RequestEditorFn) (*ListVolumesPaginatedResponse, error)
// CreateVolumeWithBodyWithResponse request with any body
CreateVolumeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)
CreateVolumeWithResponse(ctx context.Context, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)
// DeleteVolumeWithResponse request
DeleteVolumeWithResponse(ctx context.Context, volumeId string, reqEditors ...RequestEditorFn) (*DeleteVolumeResponse, error)
// GetVolumeWithResponse request
GetVolumeWithResponse(ctx context.Context, volumeId string, reqEditors ...RequestEditorFn) (*GetVolumeResponse, error)
// UpdateVolumeWithBodyWithResponse request with any body
UpdateVolumeWithBodyWithResponse(ctx context.Context, volumeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVolumeResponse, error)
UpdateVolumeWithResponse(ctx context.Context, volumeId string, body UpdateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVolumeResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CloneSnapshotJSONBody ¶ added in v1.0.12
type CloneSnapshotJSONBody struct {
// Name The human-readable name set for the clone of the snapshot.
Name string `json:"name"`
// Region The region identifier.
Region Region `json:"region"`
}
CloneSnapshotJSONBody defines parameters for CloneSnapshot.
type CloneSnapshotJSONRequestBody ¶ added in v1.0.12
type CloneSnapshotJSONRequestBody CloneSnapshotJSONBody
CloneSnapshotJSONRequestBody defines body for CloneSnapshot for application/json ContentType.
type CloneSnapshotResponse ¶ added in v1.0.12
type CloneSnapshotResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *SingleSnapshotResponse
JSONDefault *ErrorResponse
}
func ParseCloneSnapshotResponse ¶ added in v1.0.12
func ParseCloneSnapshotResponse(rsp *http.Response) (*CloneSnapshotResponse, error)
ParseCloneSnapshotResponse parses an HTTP response from a CloneSnapshotWithResponse call
func (CloneSnapshotResponse) Status ¶ added in v1.0.12
func (r CloneSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (CloneSnapshotResponse) StatusCode ¶ added in v1.0.12
func (r CloneSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateFilesystemJSONBody ¶ added in v1.0.3
type CreateFilesystemJSONBody struct {
// Description The human-readable description set for the filesystem.
Description *string `json:"description,omitempty"`
// Name The human-readable name set for the filesystem.
Name string `json:"name"`
// Region The region identifier.
Region Region `json:"region"`
// Size The storage size of this filesystem given in GiB (min: 1GiB).
Size int `json:"size"`
// Type The filesystem type.
Type *FilesystemType `json:"type,omitempty"`
}
CreateFilesystemJSONBody defines parameters for CreateFilesystem.
type CreateFilesystemJSONRequestBody ¶ added in v1.0.3
type CreateFilesystemJSONRequestBody CreateFilesystemJSONBody
CreateFilesystemJSONRequestBody defines body for CreateFilesystem for application/json ContentType.
type CreateFilesystemResponse ¶ added in v1.0.3
type CreateFilesystemResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *SingleFilesystemResponse
JSONDefault *ErrorResponse
}
func ParseCreateFilesystemResponse ¶ added in v1.0.3
func ParseCreateFilesystemResponse(rsp *http.Response) (*CreateFilesystemResponse, error)
ParseCreateFilesystemResponse parses an HTTP response from a CreateFilesystemWithResponse call
func (CreateFilesystemResponse) Status ¶ added in v1.0.3
func (r CreateFilesystemResponse) Status() string
Status returns HTTPResponse.Status
func (CreateFilesystemResponse) StatusCode ¶ added in v1.0.3
func (r CreateFilesystemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateFloatingIPJSONBody ¶
type CreateFloatingIPJSONBody struct {
// Description The human-readable description set for the floating IP.
Description *string `json:"description,omitempty"`
// Name The human-readable name set for the floating IP.
Name string `json:"name"`
// Region The region identifier.
Region Region `json:"region"`
// Version The IP version of the floating IP.
Version *CreateFloatingIPJSONBodyVersion `json:"version,omitempty"`
}
CreateFloatingIPJSONBody defines parameters for CreateFloatingIP.
type CreateFloatingIPJSONBodyVersion ¶
type CreateFloatingIPJSONBodyVersion string
CreateFloatingIPJSONBodyVersion defines parameters for CreateFloatingIP.
const (
CreateFloatingIPJSONBodyVersionIpv4 CreateFloatingIPJSONBodyVersion = "ipv4"
)
Defines values for CreateFloatingIPJSONBodyVersion.
type CreateFloatingIPJSONRequestBody ¶
type CreateFloatingIPJSONRequestBody CreateFloatingIPJSONBody
CreateFloatingIPJSONRequestBody defines body for CreateFloatingIP for application/json ContentType.
type CreateFloatingIPResponse ¶
type CreateFloatingIPResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *SingleFloatingIPResponse
JSONDefault *ErrorResponse
}
func ParseCreateFloatingIPResponse ¶
func ParseCreateFloatingIPResponse(rsp *http.Response) (*CreateFloatingIPResponse, error)
ParseCreateFloatingIPResponse parses an HTTP response from a CreateFloatingIPWithResponse call
func (CreateFloatingIPResponse) Status ¶
func (r CreateFloatingIPResponse) Status() string
Status returns HTTPResponse.Status
func (CreateFloatingIPResponse) StatusCode ¶
func (r CreateFloatingIPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateInstanceJSONBody ¶
type CreateInstanceJSONBody struct {
// BillingType The billing type of the instance.
BillingType *InstanceBillingType `json:"billing_type,omitempty"`
// DestroyOnShutdown Option that you can set at instance creation that will allow the instance to destroy on shutdown command
DestroyOnShutdown *InstanceDestroyOnShutdown `json:"destroy_on_shutdown,omitempty"`
// DiskSize The storage size of the instance's boot volume given in GiB.
DiskSize *InstanceDiskSize `json:"disk_size,omitempty"`
// FloatingIp The id of the floating IP to attach to the instance.
FloatingIp *InstanceFloatingIp `json:"floating_ip,omitempty"`
// Hostname The hostname of your instance.
Hostname InstanceHostname `json:"hostname"`
// Image A unique number that can be used to identify and reference a specific image.
Image ImageId `json:"image"`
// IsProtected Specifies if the instance is termination protected.
// When set to `true`, it"s not possible to destroy the instance until it"s switched to `false`.
// Set to `true` automatically for long-term billed instances.
IsProtected *InstanceIsProtected `json:"is_protected,omitempty"`
// Metadata Option to provide metadata.
Metadata *struct {
// StartupScript A plain text bash script or "cloud-config" file that will be executed after the first instance boot.
// It is limited to 64 KiB in size. You can use it to configure your instance, e.g. installing the **NVIDIA GPU driver**.
// Learn more about [startup scripts and installing the GPU driver](https://support.com/support/solutions/articles/47001122478).
StartupScript *string `json:"startup_script,omitempty"`
UserData *InstanceUserData `json:"user_data,omitempty"`
} `json:"metadata,omitempty"`
// Name The human-readable name set for the instance.
Name InstanceName `json:"name"`
// Password The password to access the instance.
// Your password must have upper and lower chars, digits and length between 8-72.
// **Please Note**: Only one of `ssh_keys` or `password` can be provided.
// Password is less secure - we recommend you use an SSH key-pair.
Password *string `json:"password,omitempty"`
// PlacementOption The placement option identifier in which instances are physically located relative to each other within a zone.
PlacementOption *string `json:"placement_option,omitempty"`
// PublicIpv6 A boolean value indicating whether the instance should have an ipv6 address or not.
PublicIpv6 *InstancePublicIpv6 `json:"public_ipv6,omitempty"`
// Region The region identifier.
Region Region `json:"region"`
// ReservationId The unique ID of the reservation the instance is associated with.
ReservationId *string `json:"reservation_id,omitempty"`
// ReuseLongTermSubscription The long term subscription id to be used for this instance.
// If not provided, the billing_type will default to on-demand.
ReuseLongTermSubscription *InstanceReuseLongTermSubscription `json:"reuse_long_term_subscription,omitempty"`
// SecurityGroups An array of security group ids.
SecurityGroups *[]SecurityGroupId `json:"security_groups,omitempty"`
// SshKeys An array of ssh key ids.
// This should not be provided if `password` authentication method is desired.
SshKeys *[]InstanceSSHKeyId `json:"ssh_keys,omitempty"`
// Type The instance type identifier.
Type InstanceType `json:"type"`
// Volumes An array of volume ids.
Volumes *[]VolumeId `json:"volumes,omitempty"`
}
CreateInstanceJSONBody defines parameters for CreateInstance.
type CreateInstanceJSONRequestBody ¶
type CreateInstanceJSONRequestBody CreateInstanceJSONBody
CreateInstanceJSONRequestBody defines body for CreateInstance for application/json ContentType.
type CreateInstanceResponse ¶
type CreateInstanceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *SingleInstanceResponse
JSONDefault *ErrorResponse
}
func ParseCreateInstanceResponse ¶
func ParseCreateInstanceResponse(rsp *http.Response) (*CreateInstanceResponse, error)
ParseCreateInstanceResponse parses an HTTP response from a CreateInstanceWithResponse call
func (CreateInstanceResponse) Status ¶
func (r CreateInstanceResponse) Status() string
Status returns HTTPResponse.Status
func (CreateInstanceResponse) StatusCode ¶
func (r CreateInstanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateInstanceSnapshotJSONBody ¶ added in v1.0.2
type CreateInstanceSnapshotJSONBody struct {
// Name Name of the snapshot.
Name string `json:"name"`
// ReplicatedRegion The region identifier.
ReplicatedRegion *Region `json:"replicated_region,omitempty"`
}
CreateInstanceSnapshotJSONBody defines parameters for CreateInstanceSnapshot.
type CreateInstanceSnapshotJSONRequestBody ¶ added in v1.0.2
type CreateInstanceSnapshotJSONRequestBody CreateInstanceSnapshotJSONBody
CreateInstanceSnapshotJSONRequestBody defines body for CreateInstanceSnapshot for application/json ContentType.
type CreateInstanceSnapshotResponse ¶ added in v1.0.2
type CreateInstanceSnapshotResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *SingleSnapshotResponse
JSONDefault *ErrorResponse
}
func ParseCreateInstanceSnapshotResponse ¶ added in v1.0.2
func ParseCreateInstanceSnapshotResponse(rsp *http.Response) (*CreateInstanceSnapshotResponse, error)
ParseCreateInstanceSnapshotResponse parses an HTTP response from a CreateInstanceSnapshotWithResponse call
func (CreateInstanceSnapshotResponse) Status ¶ added in v1.0.2
func (r CreateInstanceSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (CreateInstanceSnapshotResponse) StatusCode ¶ added in v1.0.2
func (r CreateInstanceSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSSHKeyJSONBody ¶
type CreateSSHKeyJSONBody struct {
// Name The human-readable name for your ssh key.
Name string `json:"name"`
// Value SSH public key.
Value string `json:"value"`
}
CreateSSHKeyJSONBody defines parameters for CreateSSHKey.
type CreateSSHKeyJSONRequestBody ¶
type CreateSSHKeyJSONRequestBody CreateSSHKeyJSONBody
CreateSSHKeyJSONRequestBody defines body for CreateSSHKey for application/json ContentType.
type CreateSSHKeyResponse ¶
type CreateSSHKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *SingleSSHKeyResponse
JSONDefault *ErrorResponse
}
func ParseCreateSSHKeyResponse ¶
func ParseCreateSSHKeyResponse(rsp *http.Response) (*CreateSSHKeyResponse, error)
ParseCreateSSHKeyResponse parses an HTTP response from a CreateSSHKeyWithResponse call
func (CreateSSHKeyResponse) Status ¶
func (r CreateSSHKeyResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSSHKeyResponse) StatusCode ¶
func (r CreateSSHKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSecurityGroupJSONBody ¶
type CreateSecurityGroupJSONBody struct {
// Description he human-readable description set for the security group.
Description *string `json:"description,omitempty"`
// Name The human-readable name set for the security group. **Please Note**: `default` and `standard` are not allowed names (reserved words).
Name string `json:"name"`
// Region The region identifier.
Region Region `json:"region"`
// Rules The list of rules of the security group.
Rules []SecurityGroupRule `json:"rules"`
}
CreateSecurityGroupJSONBody defines parameters for CreateSecurityGroup.
type CreateSecurityGroupJSONRequestBody ¶
type CreateSecurityGroupJSONRequestBody CreateSecurityGroupJSONBody
CreateSecurityGroupJSONRequestBody defines body for CreateSecurityGroup for application/json ContentType.
type CreateSecurityGroupResponse ¶
type CreateSecurityGroupResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *SingleSecurityGroupResponse
JSONDefault *ErrorResponse
}
func ParseCreateSecurityGroupResponse ¶
func ParseCreateSecurityGroupResponse(rsp *http.Response) (*CreateSecurityGroupResponse, error)
ParseCreateSecurityGroupResponse parses an HTTP response from a CreateSecurityGroupWithResponse call
func (CreateSecurityGroupResponse) Status ¶
func (r CreateSecurityGroupResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSecurityGroupResponse) StatusCode ¶
func (r CreateSecurityGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSnapshotJSONBody ¶
type CreateSnapshotJSONBody struct {
// Name The human-readable name set for the snapshot.
Name string `json:"name"`
// OsType The OS type.
OsType *OSType `json:"os_type,omitempty"`
// Region The region identifier.
Region Region `json:"region"`
// Size The storage size of this snapshot given in GiB (min: 1GiB).
Size int `json:"size"`
// Url The url pointing to a raw or raw with zstd compressed image.
Url string `json:"url"`
}
CreateSnapshotJSONBody defines parameters for CreateSnapshot.
type CreateSnapshotJSONRequestBody ¶
type CreateSnapshotJSONRequestBody CreateSnapshotJSONBody
CreateSnapshotJSONRequestBody defines body for CreateSnapshot for application/json ContentType.
type CreateSnapshotResponse ¶
type CreateSnapshotResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *SingleSnapshotResponse
JSONDefault *ErrorResponse
}
func ParseCreateSnapshotResponse ¶
func ParseCreateSnapshotResponse(rsp *http.Response) (*CreateSnapshotResponse, error)
ParseCreateSnapshotResponse parses an HTTP response from a CreateSnapshotWithResponse call
func (CreateSnapshotResponse) Status ¶
func (r CreateSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSnapshotResponse) StatusCode ¶
func (r CreateSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateVolumeJSONBody ¶
type CreateVolumeJSONBody struct {
// Description The human-readable description set for the volume.
Description *string `json:"description,omitempty"`
// Name The human-readable name set for the volume.
Name string `json:"name"`
// Region The region identifier.
Region Region `json:"region"`
// Size The storage size of this volume given in GiB (min: 1GiB).
Size int `json:"size"`
// Type The volume type.
Type *VolumeType `json:"type,omitempty"`
}
CreateVolumeJSONBody defines parameters for CreateVolume.
type CreateVolumeJSONRequestBody ¶
type CreateVolumeJSONRequestBody CreateVolumeJSONBody
CreateVolumeJSONRequestBody defines body for CreateVolume for application/json ContentType.
type CreateVolumeResponse ¶
type CreateVolumeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *SingleVolumeResponse
JSONDefault *ErrorResponse
}
func ParseCreateVolumeResponse ¶
func ParseCreateVolumeResponse(rsp *http.Response) (*CreateVolumeResponse, error)
ParseCreateVolumeResponse parses an HTTP response from a CreateVolumeWithResponse call
func (CreateVolumeResponse) Status ¶
func (r CreateVolumeResponse) Status() string
Status returns HTTPResponse.Status
func (CreateVolumeResponse) StatusCode ¶
func (r CreateVolumeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteFilesystemResponse ¶ added in v1.0.3
type DeleteFilesystemResponse struct {
Body []byte
HTTPResponse *http.Response
JSONDefault *ErrorResponse
}
func ParseDeleteFilesystemResponse ¶ added in v1.0.3
func ParseDeleteFilesystemResponse(rsp *http.Response) (*DeleteFilesystemResponse, error)
ParseDeleteFilesystemResponse parses an HTTP response from a DeleteFilesystemWithResponse call
func (DeleteFilesystemResponse) Status ¶ added in v1.0.3
func (r DeleteFilesystemResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteFilesystemResponse) StatusCode ¶ added in v1.0.3
func (r DeleteFilesystemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteFloatingIPResponse ¶
type DeleteFloatingIPResponse struct {
Body []byte
HTTPResponse *http.Response
JSONDefault *ErrorResponse
}
func ParseDeleteFloatingIPResponse ¶
func ParseDeleteFloatingIPResponse(rsp *http.Response) (*DeleteFloatingIPResponse, error)
ParseDeleteFloatingIPResponse parses an HTTP response from a DeleteFloatingIPWithResponse call
func (DeleteFloatingIPResponse) Status ¶
func (r DeleteFloatingIPResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteFloatingIPResponse) StatusCode ¶
func (r DeleteFloatingIPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteInstanceResponse ¶
type DeleteInstanceResponse struct {
Body []byte
HTTPResponse *http.Response
JSONDefault *ErrorResponse
}
func ParseDeleteInstanceResponse ¶
func ParseDeleteInstanceResponse(rsp *http.Response) (*DeleteInstanceResponse, error)
ParseDeleteInstanceResponse parses an HTTP response from a DeleteInstanceWithResponse call
func (DeleteInstanceResponse) Status ¶
func (r DeleteInstanceResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteInstanceResponse) StatusCode ¶
func (r DeleteInstanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSSHKeyResponse ¶
type DeleteSSHKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSONDefault *ErrorResponse
}
func ParseDeleteSSHKeyResponse ¶
func ParseDeleteSSHKeyResponse(rsp *http.Response) (*DeleteSSHKeyResponse, error)
ParseDeleteSSHKeyResponse parses an HTTP response from a DeleteSSHKeyWithResponse call
func (DeleteSSHKeyResponse) Status ¶
func (r DeleteSSHKeyResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSSHKeyResponse) StatusCode ¶
func (r DeleteSSHKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSecurityGroupResponse ¶
type DeleteSecurityGroupResponse struct {
Body []byte
HTTPResponse *http.Response
JSONDefault *ErrorResponse
}
func ParseDeleteSecurityGroupResponse ¶
func ParseDeleteSecurityGroupResponse(rsp *http.Response) (*DeleteSecurityGroupResponse, error)
ParseDeleteSecurityGroupResponse parses an HTTP response from a DeleteSecurityGroupWithResponse call
func (DeleteSecurityGroupResponse) Status ¶
func (r DeleteSecurityGroupResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSecurityGroupResponse) StatusCode ¶
func (r DeleteSecurityGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSnapshotResponse ¶
type DeleteSnapshotResponse struct {
Body []byte
HTTPResponse *http.Response
JSONDefault *ErrorResponse
}
func ParseDeleteSnapshotResponse ¶
func ParseDeleteSnapshotResponse(rsp *http.Response) (*DeleteSnapshotResponse, error)
ParseDeleteSnapshotResponse parses an HTTP response from a DeleteSnapshotWithResponse call
func (DeleteSnapshotResponse) Status ¶
func (r DeleteSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSnapshotResponse) StatusCode ¶
func (r DeleteSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteVolumeResponse ¶
type DeleteVolumeResponse struct {
Body []byte
HTTPResponse *http.Response
JSONDefault *ErrorResponse
}
func ParseDeleteVolumeResponse ¶
func ParseDeleteVolumeResponse(rsp *http.Response) (*DeleteVolumeResponse, error)
ParseDeleteVolumeResponse parses an HTTP response from a DeleteVolumeWithResponse call
func (DeleteVolumeResponse) Status ¶
func (r DeleteVolumeResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteVolumeResponse) StatusCode ¶
func (r DeleteVolumeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Error ¶
type Error struct {
// Code The Genesis Cloud error code.
// Check the [developer documentation](https://developers.com/#error-codes) for more information on error codes.
Code string `json:"code"`
// Message An explanation of what went wrong.
Message string `json:"message"`
}
Error defines model for Error.
type Filesystem ¶ added in v1.0.3
type Filesystem struct {
CreatedAt Timestamp `json:"created_at"`
// Description The human-readable description for the filesystem.
Description string `json:"description"`
// Id A unique identifier for each filesystem. This is automatically generated.
Id FilesystemId `json:"id"`
// MountBasePath The mount base path of the filesystem.
MountBasePath *string `json:"mount_base_path"`
// MountEndpointRange The mount endpoint range of the filesystem.
MountEndpointRange *[]string `json:"mount_endpoint_range"`
// Name The human-readable name for the filesystem.
Name string `json:"name"`
// Region The region identifier.
Region Region `json:"region"`
// Size The storage size of this filesystem given in GiB.
Size int `json:"size"`
Status FilesystemStatus `json:"status"`
// Type The filesystem type.
Type FilesystemType `json:"type"`
UpdatedAt Timestamp `json:"updated_at"`
}
Filesystem defines model for Filesystem.
type FilesystemId ¶ added in v1.0.3
type FilesystemId = string
FilesystemId A unique identifier for each filesystem. This is automatically generated.
type FilesystemStatus ¶ added in v1.0.3
type FilesystemStatus string
FilesystemStatus defines model for Filesystem.Status.
const ( FilesystemStatusCreated FilesystemStatus = "created" FilesystemStatusCreating FilesystemStatus = "creating" FilesystemStatusDeleting FilesystemStatus = "deleting" FilesystemStatusError FilesystemStatus = "error" )
Defines values for FilesystemStatus.
type FilesystemType ¶ added in v1.0.3
type FilesystemType string
FilesystemType The filesystem type.
const (
FilesystemTypeVast FilesystemType = "vast"
)
Defines values for FilesystemType.
type FloatingIP ¶
type FloatingIP struct {
CreatedAt Timestamp `json:"created_at"`
// Description The human-readable description for the floating IP.
Description string `json:"description"`
// Id A unique identifier for each floating IP. This is automatically generated.
Id string `json:"id"`
Instance *struct {
// Id A unique identifier for the attached instance.
Id string `json:"id"`
// Name The name of the attached instance.
Name string `json:"name"`
} `json:"instance"`
// IpAddress The IP address of the floating IP.
IpAddress *string `json:"ip_address"`
// IsPublic A boolean value indicating whether the floating IP is public or private.
IsPublic bool `json:"is_public"`
// Name The human-readable name for the floating IP.
Name string `json:"name"`
// Region The region identifier.
Region Region `json:"region"`
// Status The floating ip status.
Status FloatingIpStatus `json:"status"`
UpdatedAt Timestamp `json:"updated_at"`
// Version The IP version of the floating IP.
Version FloatingIPVersion `json:"version"`
}
FloatingIP defines model for FloatingIP.
type FloatingIPVersion ¶
type FloatingIPVersion string
FloatingIPVersion The IP version of the floating IP.
const ( FloatingIPVersionIpv4 FloatingIPVersion = "ipv4" FloatingIPVersionIpv6 FloatingIPVersion = "ipv6" )
Defines values for FloatingIPVersion.
type FloatingIpStatus ¶ added in v1.0.2
type FloatingIpStatus string
FloatingIpStatus The floating ip status.
const ( FloatingIpStatusCreated FloatingIpStatus = "created" FloatingIpStatusCreating FloatingIpStatus = "creating" FloatingIpStatusDeleting FloatingIpStatus = "deleting" FloatingIpStatusError FloatingIpStatus = "error" )
Defines values for FloatingIpStatus.
type GetFilesystemResponse ¶ added in v1.0.3
type GetFilesystemResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SingleFilesystemResponse
JSONDefault *ErrorResponse
}
func ParseGetFilesystemResponse ¶ added in v1.0.3
func ParseGetFilesystemResponse(rsp *http.Response) (*GetFilesystemResponse, error)
ParseGetFilesystemResponse parses an HTTP response from a GetFilesystemWithResponse call
func (GetFilesystemResponse) Status ¶ added in v1.0.3
func (r GetFilesystemResponse) Status() string
Status returns HTTPResponse.Status
func (GetFilesystemResponse) StatusCode ¶ added in v1.0.3
func (r GetFilesystemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFloatingIPResponse ¶
type GetFloatingIPResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SingleFloatingIPResponse
JSONDefault *ErrorResponse
}
func ParseGetFloatingIPResponse ¶
func ParseGetFloatingIPResponse(rsp *http.Response) (*GetFloatingIPResponse, error)
ParseGetFloatingIPResponse parses an HTTP response from a GetFloatingIPWithResponse call
func (GetFloatingIPResponse) Status ¶
func (r GetFloatingIPResponse) Status() string
Status returns HTTPResponse.Status
func (GetFloatingIPResponse) StatusCode ¶
func (r GetFloatingIPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInstanceActionsResponse ¶ added in v1.0.12
type GetInstanceActionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InstanceGetActionsResponse
JSONDefault *ErrorResponse
}
func ParseGetInstanceActionsResponse ¶ added in v1.0.12
func ParseGetInstanceActionsResponse(rsp *http.Response) (*GetInstanceActionsResponse, error)
ParseGetInstanceActionsResponse parses an HTTP response from a GetInstanceActionsWithResponse call
func (GetInstanceActionsResponse) Status ¶ added in v1.0.12
func (r GetInstanceActionsResponse) Status() string
Status returns HTTPResponse.Status
func (GetInstanceActionsResponse) StatusCode ¶ added in v1.0.12
func (r GetInstanceActionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInstanceResponse ¶
type GetInstanceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SingleInstanceResponse
JSONDefault *ErrorResponse
}
func ParseGetInstanceResponse ¶
func ParseGetInstanceResponse(rsp *http.Response) (*GetInstanceResponse, error)
ParseGetInstanceResponse parses an HTTP response from a GetInstanceWithResponse call
func (GetInstanceResponse) Status ¶
func (r GetInstanceResponse) Status() string
Status returns HTTPResponse.Status
func (GetInstanceResponse) StatusCode ¶
func (r GetInstanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInstanceUserMetadataResponse ¶ added in v1.0.10
type GetInstanceUserMetadataResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InstanceGetInstanceUserMetadataResponse
JSONDefault *ErrorResponse
}
func ParseGetInstanceUserMetadataResponse ¶ added in v1.0.10
func ParseGetInstanceUserMetadataResponse(rsp *http.Response) (*GetInstanceUserMetadataResponse, error)
ParseGetInstanceUserMetadataResponse parses an HTTP response from a GetInstanceUserMetadataWithResponse call
func (GetInstanceUserMetadataResponse) Status ¶ added in v1.0.10
func (r GetInstanceUserMetadataResponse) Status() string
Status returns HTTPResponse.Status
func (GetInstanceUserMetadataResponse) StatusCode ¶ added in v1.0.10
func (r GetInstanceUserMetadataResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInstancesAvailabilityParams ¶
type GetInstancesAvailabilityParams struct {
Placement *string `form:"placement,omitempty" json:"placement,omitempty"`
}
GetInstancesAvailabilityParams defines parameters for GetInstancesAvailability.
type GetInstancesAvailabilityResponse ¶
type GetInstancesAvailabilityResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InstancesAvailabilityResponse
JSONDefault *ErrorResponse
}
func ParseGetInstancesAvailabilityResponse ¶
func ParseGetInstancesAvailabilityResponse(rsp *http.Response) (*GetInstancesAvailabilityResponse, error)
ParseGetInstancesAvailabilityResponse parses an HTTP response from a GetInstancesAvailabilityWithResponse call
func (GetInstancesAvailabilityResponse) Status ¶
func (r GetInstancesAvailabilityResponse) Status() string
Status returns HTTPResponse.Status
func (GetInstancesAvailabilityResponse) StatusCode ¶
func (r GetInstancesAvailabilityResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetQuotasResponse ¶ added in v1.0.12
type GetQuotasResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *QuotasResponse
JSONDefault *ErrorResponse
}
func ParseGetQuotasResponse ¶ added in v1.0.12
func ParseGetQuotasResponse(rsp *http.Response) (*GetQuotasResponse, error)
ParseGetQuotasResponse parses an HTTP response from a GetQuotasWithResponse call
func (GetQuotasResponse) Status ¶ added in v1.0.12
func (r GetQuotasResponse) Status() string
Status returns HTTPResponse.Status
func (GetQuotasResponse) StatusCode ¶ added in v1.0.12
func (r GetQuotasResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetReservationsResponse ¶ added in v1.0.12
type GetReservationsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ReservationsResponse
JSONDefault *ErrorResponse
}
func ParseGetReservationsResponse ¶ added in v1.0.12
func ParseGetReservationsResponse(rsp *http.Response) (*GetReservationsResponse, error)
ParseGetReservationsResponse parses an HTTP response from a GetReservationsWithResponse call
func (GetReservationsResponse) Status ¶ added in v1.0.12
func (r GetReservationsResponse) Status() string
Status returns HTTPResponse.Status
func (GetReservationsResponse) StatusCode ¶ added in v1.0.12
func (r GetReservationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSSHKeyResponse ¶
type GetSSHKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SingleSSHKeyResponse
JSONDefault *ErrorResponse
}
func ParseGetSSHKeyResponse ¶
func ParseGetSSHKeyResponse(rsp *http.Response) (*GetSSHKeyResponse, error)
ParseGetSSHKeyResponse parses an HTTP response from a GetSSHKeyWithResponse call
func (GetSSHKeyResponse) Status ¶
func (r GetSSHKeyResponse) Status() string
Status returns HTTPResponse.Status
func (GetSSHKeyResponse) StatusCode ¶
func (r GetSSHKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSecurityGroupResponse ¶
type GetSecurityGroupResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SingleSecurityGroupResponse
JSONDefault *ErrorResponse
}
func ParseGetSecurityGroupResponse ¶
func ParseGetSecurityGroupResponse(rsp *http.Response) (*GetSecurityGroupResponse, error)
ParseGetSecurityGroupResponse parses an HTTP response from a GetSecurityGroupWithResponse call
func (GetSecurityGroupResponse) Status ¶
func (r GetSecurityGroupResponse) Status() string
Status returns HTTPResponse.Status
func (GetSecurityGroupResponse) StatusCode ¶
func (r GetSecurityGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSnapshotResponse ¶
type GetSnapshotResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SingleSnapshotResponse
JSONDefault *ErrorResponse
}
func ParseGetSnapshotResponse ¶
func ParseGetSnapshotResponse(rsp *http.Response) (*GetSnapshotResponse, error)
ParseGetSnapshotResponse parses an HTTP response from a GetSnapshotWithResponse call
func (GetSnapshotResponse) Status ¶
func (r GetSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (GetSnapshotResponse) StatusCode ¶
func (r GetSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetVolumeResponse ¶
type GetVolumeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SingleVolumeResponse
JSONDefault *ErrorResponse
}
func ParseGetVolumeResponse ¶
func ParseGetVolumeResponse(rsp *http.Response) (*GetVolumeResponse, error)
ParseGetVolumeResponse parses an HTTP response from a GetVolumeWithResponse call
func (GetVolumeResponse) Status ¶
func (r GetVolumeResponse) Status() string
Status returns HTTPResponse.Status
func (GetVolumeResponse) StatusCode ¶
func (r GetVolumeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type Image ¶
type Image struct {
CreatedAt Timestamp `json:"created_at"`
Family *string `json:"family"`
// Id A unique number that can be used to identify and reference a specific image.
Id ImageId `json:"id"`
// Name The display name that has been given to an image. This is what is shown in the control panel and is generally a descriptive title for the image in question.
Name string `json:"name"`
// OsType The OS type.
OsType OSType `json:"os_type"`
// Regions The list of regions in which this image can be used in.
Regions []Region `json:"regions"`
Slug *string `json:"slug"`
// Type Describes the kind of image.
Type ImageType `json:"type"`
UpdatedAt Timestamp `json:"updated_at"`
// Versions The list of versions if this is a cloud-image otherwise empty.
Versions *[]string `json:"versions"`
}
Image defines model for Image.
type ImageId ¶
type ImageId = string
ImageId A unique number that can be used to identify and reference a specific image.
type ImageType ¶
type ImageType string
ImageType Describes the kind of image.
const (
ImageTypeCloudImage ImageType = "cloud-image"
)
Defines values for ImageType.
type Instance ¶
type Instance struct {
CreatedAt Timestamp `json:"created_at"`
// DiskSize The storage size of the instance's boot volume given in GiB.
DiskSize *InstanceDiskSize `json:"disk_size,omitempty"`
// DnsName The dns name of your instance.
DnsName InstanceDNSName `json:"dns_name"`
// FloatingIp The floating IP attached to the instance.
FloatingIp *struct {
// Id The ID of the floating IP.
Id string `json:"id"`
// Name The name of the floating IP.
Name string `json:"name"`
} `json:"floating_ip"`
// Hostname The hostname of your instance.
Hostname InstanceHostname `json:"hostname"`
// Id The unique ID of the instance.
Id string `json:"id"`
// Image The image of the instance.
Image struct {
// Id A unique number that can be used to identify and reference a specific image.
Id ImageId `json:"id"`
// Name The image name.
Name string `json:"name"`
} `json:"image"`
// Name The human-readable name set for the instance.
Name InstanceName `json:"name"`
// OsType The OS type.
OsType OSType `json:"os_type"`
// PlacementOption The placement option identifier in which instances are physically located relative to each other within a zone.
PlacementOption string `json:"placement_option"`
// PrivateIp The private IPv4 IP-Address (IPv4 address).
PrivateIp *string `json:"private_ip"`
// PublicIp The public IPv4 IP-Address (IPv4 address).
PublicIp *string `json:"public_ip"`
// Region The region identifier.
Region Region `json:"region"`
// ReservationId The unique ID of the reservation the instance is associated with.
ReservationId *string `json:"reservation_id"`
// SecurityGroups The security groups of the instance.
SecurityGroups []struct {
// Id A unique identifier for each security group. This is automatically generated.
Id SecurityGroupId `json:"id"`
// Name The name of the security group.
Name string `json:"name"`
} `json:"security_groups"`
// SshKeys The ssh keys of the instance.
SshKeys []struct {
// Id The ssh key ID.
Id InstanceSSHKeyId `json:"id"`
// Name The name of the ssh key.
Name string `json:"name"`
} `json:"ssh_keys"`
// Status The instance status
Status InstanceStatus `json:"status"`
// Type The instance type identifier.
Type InstanceType `json:"type"`
UpdatedAt Timestamp `json:"updated_at"`
// Volumes The volumes of the instance
Volumes []struct {
// Id A unique identifier for each volume. This is automatically generated.
Id VolumeId `json:"id"`
// Name The volume name.
Name string `json:"name"`
} `json:"volumes"`
}
Instance defines model for Instance.
type InstanceAction ¶
type InstanceAction string
InstanceAction defines model for Instance.Action.
const ( InstanceActionReset InstanceAction = "reset" InstanceActionStart InstanceAction = "start" InstanceActionStop InstanceAction = "stop" )
Defines values for InstanceAction.
type InstanceBillingType ¶ added in v1.0.2
type InstanceBillingType string
InstanceBillingType The billing type of the instance.
const ( InstanceBillingTypeOnDemand InstanceBillingType = "on-demand" InstanceBillingTypePrepaid12Month InstanceBillingType = "prepaid-12-month" InstanceBillingTypePrepaid3Month InstanceBillingType = "prepaid-3-month" InstanceBillingTypePrepaid6Month InstanceBillingType = "prepaid-6-month" InstanceBillingTypePrepaidMonthly InstanceBillingType = "prepaid-monthly" InstanceBillingTypeReserved InstanceBillingType = "reserved" )
Defines values for InstanceBillingType.
type InstanceDNSName ¶ added in v1.0.9
type InstanceDNSName = string
InstanceDNSName The dns name of your instance.
type InstanceDestroyOnShutdown ¶ added in v1.0.2
type InstanceDestroyOnShutdown = bool
InstanceDestroyOnShutdown Option that you can set at instance creation that will allow the instance to destroy on shutdown command
type InstanceDiskSize ¶ added in v1.0.7
type InstanceDiskSize = int
InstanceDiskSize The storage size of the instance's boot volume given in GiB.
type InstanceFloatingIp ¶ added in v1.0.2
type InstanceFloatingIp = string
InstanceFloatingIp The id of the floating IP to attach to the instance.
type InstanceGetActionsResponse ¶ added in v1.0.12
type InstanceGetActionsResponse struct {
Actions []InstanceAction `json:"actions"`
}
InstanceGetActionsResponse defines model for Instance.GetActionsResponse.
type InstanceGetInstanceUserMetadataResponse ¶ added in v1.0.10
type InstanceGetInstanceUserMetadataResponse map[string]interface{}
InstanceGetInstanceUserMetadataResponse defines model for Instance.GetInstanceUserMetadataResponse.
type InstanceHostname ¶
type InstanceHostname = string
InstanceHostname The hostname of your instance.
type InstanceIsProtected ¶
type InstanceIsProtected = bool
InstanceIsProtected Specifies if the instance is termination protected. When set to `true`, it"s not possible to destroy the instance until it"s switched to `false`. Set to `true` automatically for long-term billed instances.
type InstanceName ¶
type InstanceName = string
InstanceName The human-readable name set for the instance.
type InstancePublicIpv6 ¶ added in v1.0.2
type InstancePublicIpv6 = bool
InstancePublicIpv6 A boolean value indicating whether the instance should have an ipv6 address or not.
type InstanceReuseLongTermSubscription ¶ added in v1.0.2
type InstanceReuseLongTermSubscription = string
InstanceReuseLongTermSubscription The long term subscription id to be used for this instance. If not provided, the billing_type will default to on-demand.
type InstanceStatus ¶
type InstanceStatus string
InstanceStatus The instance status
const ( InstanceStatusActive InstanceStatus = "active" InstanceStatusCreating InstanceStatus = "creating" InstanceStatusDeleting InstanceStatus = "deleting" InstanceStatusError InstanceStatus = "error" InstanceStatusPendingPayment InstanceStatus = "pending_payment" InstanceStatusResetting InstanceStatus = "resetting" InstanceStatusStarting InstanceStatus = "starting" InstanceStatusStopped InstanceStatus = "stopped" InstanceStatusStopping InstanceStatus = "stopping" )
Defines values for InstanceStatus.
type InstanceUpdateSecurityGroups ¶ added in v1.0.11
type InstanceUpdateSecurityGroups struct {
// contains filtered or unexported fields
}
InstanceUpdateSecurityGroups defines model for Instance.UpdateSecurityGroups.
func (InstanceUpdateSecurityGroups) AsInstanceUpdateSecurityGroupsAttach ¶ added in v1.0.11
func (t InstanceUpdateSecurityGroups) AsInstanceUpdateSecurityGroupsAttach() (InstanceUpdateSecurityGroupsAttach, error)
AsInstanceUpdateSecurityGroupsAttach returns the union data inside the InstanceUpdateSecurityGroups as a InstanceUpdateSecurityGroupsAttach
func (InstanceUpdateSecurityGroups) AsInstanceUpdateSecurityGroupsDetach ¶ added in v1.0.11
func (t InstanceUpdateSecurityGroups) AsInstanceUpdateSecurityGroupsDetach() (InstanceUpdateSecurityGroupsDetach, error)
AsInstanceUpdateSecurityGroupsDetach returns the union data inside the InstanceUpdateSecurityGroups as a InstanceUpdateSecurityGroupsDetach
func (InstanceUpdateSecurityGroups) AsInstanceUpdateSecurityGroupsList ¶ added in v1.0.11
func (t InstanceUpdateSecurityGroups) AsInstanceUpdateSecurityGroupsList() (InstanceUpdateSecurityGroupsList, error)
AsInstanceUpdateSecurityGroupsList returns the union data inside the InstanceUpdateSecurityGroups as a InstanceUpdateSecurityGroupsList
func (*InstanceUpdateSecurityGroups) FromInstanceUpdateSecurityGroupsAttach ¶ added in v1.0.11
func (t *InstanceUpdateSecurityGroups) FromInstanceUpdateSecurityGroupsAttach(v InstanceUpdateSecurityGroupsAttach) error
FromInstanceUpdateSecurityGroupsAttach overwrites any union data inside the InstanceUpdateSecurityGroups as the provided InstanceUpdateSecurityGroupsAttach
func (*InstanceUpdateSecurityGroups) FromInstanceUpdateSecurityGroupsDetach ¶ added in v1.0.11
func (t *InstanceUpdateSecurityGroups) FromInstanceUpdateSecurityGroupsDetach(v InstanceUpdateSecurityGroupsDetach) error
FromInstanceUpdateSecurityGroupsDetach overwrites any union data inside the InstanceUpdateSecurityGroups as the provided InstanceUpdateSecurityGroupsDetach
func (*InstanceUpdateSecurityGroups) FromInstanceUpdateSecurityGroupsList ¶ added in v1.0.11
func (t *InstanceUpdateSecurityGroups) FromInstanceUpdateSecurityGroupsList(v InstanceUpdateSecurityGroupsList) error
FromInstanceUpdateSecurityGroupsList overwrites any union data inside the InstanceUpdateSecurityGroups as the provided InstanceUpdateSecurityGroupsList
func (InstanceUpdateSecurityGroups) MarshalJSON ¶ added in v1.0.11
func (t InstanceUpdateSecurityGroups) MarshalJSON() ([]byte, error)
func (*InstanceUpdateSecurityGroups) MergeInstanceUpdateSecurityGroupsAttach ¶ added in v1.0.11
func (t *InstanceUpdateSecurityGroups) MergeInstanceUpdateSecurityGroupsAttach(v InstanceUpdateSecurityGroupsAttach) error
MergeInstanceUpdateSecurityGroupsAttach performs a merge with any union data inside the InstanceUpdateSecurityGroups, using the provided InstanceUpdateSecurityGroupsAttach
func (*InstanceUpdateSecurityGroups) MergeInstanceUpdateSecurityGroupsDetach ¶ added in v1.0.11
func (t *InstanceUpdateSecurityGroups) MergeInstanceUpdateSecurityGroupsDetach(v InstanceUpdateSecurityGroupsDetach) error
MergeInstanceUpdateSecurityGroupsDetach performs a merge with any union data inside the InstanceUpdateSecurityGroups, using the provided InstanceUpdateSecurityGroupsDetach
func (*InstanceUpdateSecurityGroups) MergeInstanceUpdateSecurityGroupsList ¶ added in v1.0.11
func (t *InstanceUpdateSecurityGroups) MergeInstanceUpdateSecurityGroupsList(v InstanceUpdateSecurityGroupsList) error
MergeInstanceUpdateSecurityGroupsList performs a merge with any union data inside the InstanceUpdateSecurityGroups, using the provided InstanceUpdateSecurityGroupsList
func (*InstanceUpdateSecurityGroups) UnmarshalJSON ¶ added in v1.0.11
func (t *InstanceUpdateSecurityGroups) UnmarshalJSON(b []byte) error
type InstanceUpdateSecurityGroupsAttach ¶ added in v1.0.11
type InstanceUpdateSecurityGroupsAttach struct {
// Attach A unique identifier for each security group. This is automatically generated.
Attach SecurityGroupId `json:"attach"`
}
InstanceUpdateSecurityGroupsAttach defines model for Instance.UpdateSecurityGroups.Attach.
type InstanceUpdateSecurityGroupsDetach ¶ added in v1.0.11
type InstanceUpdateSecurityGroupsDetach struct {
// Detach A unique identifier for each security group. This is automatically generated.
Detach SecurityGroupId `json:"detach"`
}
InstanceUpdateSecurityGroupsDetach defines model for Instance.UpdateSecurityGroups.Detach.
type InstanceUpdateSecurityGroupsList ¶ added in v1.0.11
type InstanceUpdateSecurityGroupsList = []SecurityGroupId
InstanceUpdateSecurityGroupsList The instance's security group IDs.
type InstanceUpdateVolumes ¶ added in v1.0.11
type InstanceUpdateVolumes struct {
// contains filtered or unexported fields
}
InstanceUpdateVolumes defines model for Instance.UpdateVolumes.
func (InstanceUpdateVolumes) AsInstanceUpdateVolumesAttach ¶ added in v1.0.11
func (t InstanceUpdateVolumes) AsInstanceUpdateVolumesAttach() (InstanceUpdateVolumesAttach, error)
AsInstanceUpdateVolumesAttach returns the union data inside the InstanceUpdateVolumes as a InstanceUpdateVolumesAttach
func (InstanceUpdateVolumes) AsInstanceUpdateVolumesDetach ¶ added in v1.0.11
func (t InstanceUpdateVolumes) AsInstanceUpdateVolumesDetach() (InstanceUpdateVolumesDetach, error)
AsInstanceUpdateVolumesDetach returns the union data inside the InstanceUpdateVolumes as a InstanceUpdateVolumesDetach
func (InstanceUpdateVolumes) AsInstanceUpdateVolumesList ¶ added in v1.0.11
func (t InstanceUpdateVolumes) AsInstanceUpdateVolumesList() (InstanceUpdateVolumesList, error)
AsInstanceUpdateVolumesList returns the union data inside the InstanceUpdateVolumes as a InstanceUpdateVolumesList
func (*InstanceUpdateVolumes) FromInstanceUpdateVolumesAttach ¶ added in v1.0.11
func (t *InstanceUpdateVolumes) FromInstanceUpdateVolumesAttach(v InstanceUpdateVolumesAttach) error
FromInstanceUpdateVolumesAttach overwrites any union data inside the InstanceUpdateVolumes as the provided InstanceUpdateVolumesAttach
func (*InstanceUpdateVolumes) FromInstanceUpdateVolumesDetach ¶ added in v1.0.11
func (t *InstanceUpdateVolumes) FromInstanceUpdateVolumesDetach(v InstanceUpdateVolumesDetach) error
FromInstanceUpdateVolumesDetach overwrites any union data inside the InstanceUpdateVolumes as the provided InstanceUpdateVolumesDetach
func (*InstanceUpdateVolumes) FromInstanceUpdateVolumesList ¶ added in v1.0.11
func (t *InstanceUpdateVolumes) FromInstanceUpdateVolumesList(v InstanceUpdateVolumesList) error
FromInstanceUpdateVolumesList overwrites any union data inside the InstanceUpdateVolumes as the provided InstanceUpdateVolumesList
func (InstanceUpdateVolumes) MarshalJSON ¶ added in v1.0.11
func (t InstanceUpdateVolumes) MarshalJSON() ([]byte, error)
func (*InstanceUpdateVolumes) MergeInstanceUpdateVolumesAttach ¶ added in v1.0.11
func (t *InstanceUpdateVolumes) MergeInstanceUpdateVolumesAttach(v InstanceUpdateVolumesAttach) error
MergeInstanceUpdateVolumesAttach performs a merge with any union data inside the InstanceUpdateVolumes, using the provided InstanceUpdateVolumesAttach
func (*InstanceUpdateVolumes) MergeInstanceUpdateVolumesDetach ¶ added in v1.0.11
func (t *InstanceUpdateVolumes) MergeInstanceUpdateVolumesDetach(v InstanceUpdateVolumesDetach) error
MergeInstanceUpdateVolumesDetach performs a merge with any union data inside the InstanceUpdateVolumes, using the provided InstanceUpdateVolumesDetach
func (*InstanceUpdateVolumes) MergeInstanceUpdateVolumesList ¶ added in v1.0.11
func (t *InstanceUpdateVolumes) MergeInstanceUpdateVolumesList(v InstanceUpdateVolumesList) error
MergeInstanceUpdateVolumesList performs a merge with any union data inside the InstanceUpdateVolumes, using the provided InstanceUpdateVolumesList
func (*InstanceUpdateVolumes) UnmarshalJSON ¶ added in v1.0.11
func (t *InstanceUpdateVolumes) UnmarshalJSON(b []byte) error
type InstanceUpdateVolumesAttach ¶ added in v1.0.11
type InstanceUpdateVolumesAttach struct {
// Attach A unique identifier for each volume. This is automatically generated.
Attach VolumeId `json:"attach"`
}
InstanceUpdateVolumesAttach defines model for Instance.UpdateVolumes.Attach.
type InstanceUpdateVolumesDetach ¶ added in v1.0.11
type InstanceUpdateVolumesDetach struct {
// Detach A unique identifier for each volume. This is automatically generated.
Detach VolumeId `json:"detach"`
}
InstanceUpdateVolumesDetach defines model for Instance.UpdateVolumes.Detach.
type InstanceUpdateVolumesList ¶ added in v1.0.11
type InstanceUpdateVolumesList = []VolumeId
InstanceUpdateVolumesList The instance's volume IDs.
type InstanceUserData ¶
type InstanceUserData = []struct {
Content string `json:"content"`
Filename *string `json:"filename,omitempty"`
Type string `json:"type"`
}
InstanceUserData defines model for Instance.UserData.
type InstancesAvailability ¶
type InstancesAvailability struct {
Availability struct {
InstanceTypes []struct {
Available bool `json:"available"`
Count *float32 `json:"count,omitempty"`
// Type The instance type identifier.
Type InstanceType `json:"type"`
} `json:"instance_types"`
Placement *string `json:"placement,omitempty"`
// Region The region identifier.
Region Region `json:"region"`
Type string `json:"type"`
} `json:"availability"`
}
InstancesAvailability defines model for InstancesAvailability.
type InstancesAvailabilityResponse ¶
type InstancesAvailabilityResponse = InstancesAvailability
InstancesAvailabilityResponse defines model for InstancesAvailabilityResponse.
type ListFilesystemsPaginatedParams ¶ added in v1.0.12
type ListFilesystemsPaginatedParams struct {
Page *PageQueryParameter `form:"page,omitempty" json:"page,omitempty"`
PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}
ListFilesystemsPaginatedParams defines parameters for ListFilesystemsPaginated.
type ListFilesystemsPaginatedResponse ¶ added in v1.0.12
type ListFilesystemsPaginatedResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PaginatedFilesystemsResponse
JSONDefault *ErrorResponse
}
func ParseListFilesystemsPaginatedResponse ¶ added in v1.0.12
func ParseListFilesystemsPaginatedResponse(rsp *http.Response) (*ListFilesystemsPaginatedResponse, error)
ParseListFilesystemsPaginatedResponse parses an HTTP response from a ListFilesystemsPaginatedWithResponse call
func (ListFilesystemsPaginatedResponse) Status ¶ added in v1.0.12
func (r ListFilesystemsPaginatedResponse) Status() string
Status returns HTTPResponse.Status
func (ListFilesystemsPaginatedResponse) StatusCode ¶ added in v1.0.12
func (r ListFilesystemsPaginatedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListFloatingIPsPaginatedParams ¶ added in v1.0.12
type ListFloatingIPsPaginatedParams struct {
Page *PageQueryParameter `form:"page,omitempty" json:"page,omitempty"`
PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}
ListFloatingIPsPaginatedParams defines parameters for ListFloatingIPsPaginated.
type ListFloatingIPsPaginatedResponse ¶ added in v1.0.12
type ListFloatingIPsPaginatedResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PaginatedFloatingIPsResponse
JSONDefault *ErrorResponse
}
func ParseListFloatingIPsPaginatedResponse ¶ added in v1.0.12
func ParseListFloatingIPsPaginatedResponse(rsp *http.Response) (*ListFloatingIPsPaginatedResponse, error)
ParseListFloatingIPsPaginatedResponse parses an HTTP response from a ListFloatingIPsPaginatedWithResponse call
func (ListFloatingIPsPaginatedResponse) Status ¶ added in v1.0.12
func (r ListFloatingIPsPaginatedResponse) Status() string
Status returns HTTPResponse.Status
func (ListFloatingIPsPaginatedResponse) StatusCode ¶ added in v1.0.12
func (r ListFloatingIPsPaginatedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListImagesPaginatedParams ¶ added in v1.0.12
type ListImagesPaginatedParams struct {
Page *PageQueryParameter `form:"page,omitempty" json:"page,omitempty"`
PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
Type *ImageType `form:"type,omitempty" json:"type,omitempty"`
}
ListImagesPaginatedParams defines parameters for ListImagesPaginated.
type ListImagesPaginatedResponse ¶ added in v1.0.12
type ListImagesPaginatedResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PaginatedImagesResponse
JSONDefault *ErrorResponse
}
func ParseListImagesPaginatedResponse ¶ added in v1.0.12
func ParseListImagesPaginatedResponse(rsp *http.Response) (*ListImagesPaginatedResponse, error)
ParseListImagesPaginatedResponse parses an HTTP response from a ListImagesPaginatedWithResponse call
func (ListImagesPaginatedResponse) Status ¶ added in v1.0.12
func (r ListImagesPaginatedResponse) Status() string
Status returns HTTPResponse.Status
func (ListImagesPaginatedResponse) StatusCode ¶ added in v1.0.12
func (r ListImagesPaginatedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListInstanceSnapshotsPaginatedParams ¶ added in v1.0.12
type ListInstanceSnapshotsPaginatedParams struct {
Page *PageQueryParameter `form:"page,omitempty" json:"page,omitempty"`
PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}
ListInstanceSnapshotsPaginatedParams defines parameters for ListInstanceSnapshotsPaginated.
type ListInstanceSnapshotsPaginatedResponse ¶ added in v1.0.12
type ListInstanceSnapshotsPaginatedResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PaginatedSnapshotsResponse
JSONDefault *ErrorResponse
}
func ParseListInstanceSnapshotsPaginatedResponse ¶ added in v1.0.12
func ParseListInstanceSnapshotsPaginatedResponse(rsp *http.Response) (*ListInstanceSnapshotsPaginatedResponse, error)
ParseListInstanceSnapshotsPaginatedResponse parses an HTTP response from a ListInstanceSnapshotsPaginatedWithResponse call
func (ListInstanceSnapshotsPaginatedResponse) Status ¶ added in v1.0.12
func (r ListInstanceSnapshotsPaginatedResponse) Status() string
Status returns HTTPResponse.Status
func (ListInstanceSnapshotsPaginatedResponse) StatusCode ¶ added in v1.0.12
func (r ListInstanceSnapshotsPaginatedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListInstancesPaginatedParams ¶ added in v1.0.12
type ListInstancesPaginatedParams struct {
Page *PageQueryParameter `form:"page,omitempty" json:"page,omitempty"`
PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}
ListInstancesPaginatedParams defines parameters for ListInstancesPaginated.
type ListInstancesPaginatedResponse ¶ added in v1.0.12
type ListInstancesPaginatedResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PaginatedInstancesResponse
JSONDefault *ErrorResponse
}
func ParseListInstancesPaginatedResponse ¶ added in v1.0.12
func ParseListInstancesPaginatedResponse(rsp *http.Response) (*ListInstancesPaginatedResponse, error)
ParseListInstancesPaginatedResponse parses an HTTP response from a ListInstancesPaginatedWithResponse call
func (ListInstancesPaginatedResponse) Status ¶ added in v1.0.12
func (r ListInstancesPaginatedResponse) Status() string
Status returns HTTPResponse.Status
func (ListInstancesPaginatedResponse) StatusCode ¶ added in v1.0.12
func (r ListInstancesPaginatedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSSHKeysPaginatedParams ¶ added in v1.0.12
type ListSSHKeysPaginatedParams struct {
Page *PageQueryParameter `form:"page,omitempty" json:"page,omitempty"`
PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}
ListSSHKeysPaginatedParams defines parameters for ListSSHKeysPaginated.
type ListSSHKeysPaginatedResponse ¶ added in v1.0.12
type ListSSHKeysPaginatedResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PaginatedSSHKeysResponse
JSONDefault *ErrorResponse
}
func ParseListSSHKeysPaginatedResponse ¶ added in v1.0.12
func ParseListSSHKeysPaginatedResponse(rsp *http.Response) (*ListSSHKeysPaginatedResponse, error)
ParseListSSHKeysPaginatedResponse parses an HTTP response from a ListSSHKeysPaginatedWithResponse call
func (ListSSHKeysPaginatedResponse) Status ¶ added in v1.0.12
func (r ListSSHKeysPaginatedResponse) Status() string
Status returns HTTPResponse.Status
func (ListSSHKeysPaginatedResponse) StatusCode ¶ added in v1.0.12
func (r ListSSHKeysPaginatedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSecurityGroupsPaginatedParams ¶ added in v1.0.12
type ListSecurityGroupsPaginatedParams struct {
Page *PageQueryParameter `form:"page,omitempty" json:"page,omitempty"`
PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}
ListSecurityGroupsPaginatedParams defines parameters for ListSecurityGroupsPaginated.
type ListSecurityGroupsPaginatedResponse ¶ added in v1.0.12
type ListSecurityGroupsPaginatedResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PaginatedSecurityGroupsResponse
JSONDefault *ErrorResponse
}
func ParseListSecurityGroupsPaginatedResponse ¶ added in v1.0.12
func ParseListSecurityGroupsPaginatedResponse(rsp *http.Response) (*ListSecurityGroupsPaginatedResponse, error)
ParseListSecurityGroupsPaginatedResponse parses an HTTP response from a ListSecurityGroupsPaginatedWithResponse call
func (ListSecurityGroupsPaginatedResponse) Status ¶ added in v1.0.12
func (r ListSecurityGroupsPaginatedResponse) Status() string
Status returns HTTPResponse.Status
func (ListSecurityGroupsPaginatedResponse) StatusCode ¶ added in v1.0.12
func (r ListSecurityGroupsPaginatedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSnapshotsPaginatedParams ¶ added in v1.0.12
type ListSnapshotsPaginatedParams struct {
Page *PageQueryParameter `form:"page,omitempty" json:"page,omitempty"`
PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}
ListSnapshotsPaginatedParams defines parameters for ListSnapshotsPaginated.
type ListSnapshotsPaginatedResponse ¶ added in v1.0.12
type ListSnapshotsPaginatedResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PaginatedSnapshotsResponse
JSONDefault *ErrorResponse
}
func ParseListSnapshotsPaginatedResponse ¶ added in v1.0.12
func ParseListSnapshotsPaginatedResponse(rsp *http.Response) (*ListSnapshotsPaginatedResponse, error)
ParseListSnapshotsPaginatedResponse parses an HTTP response from a ListSnapshotsPaginatedWithResponse call
func (ListSnapshotsPaginatedResponse) Status ¶ added in v1.0.12
func (r ListSnapshotsPaginatedResponse) Status() string
Status returns HTTPResponse.Status
func (ListSnapshotsPaginatedResponse) StatusCode ¶ added in v1.0.12
func (r ListSnapshotsPaginatedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListVolumesPaginatedParams ¶ added in v1.0.12
type ListVolumesPaginatedParams struct {
Page *PageQueryParameter `form:"page,omitempty" json:"page,omitempty"`
PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}
ListVolumesPaginatedParams defines parameters for ListVolumesPaginated.
type ListVolumesPaginatedResponse ¶ added in v1.0.12
type ListVolumesPaginatedResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PaginatedVolumesResponse
JSONDefault *ErrorResponse
}
func ParseListVolumesPaginatedResponse ¶ added in v1.0.12
func ParseListVolumesPaginatedResponse(rsp *http.Response) (*ListVolumesPaginatedResponse, error)
ParseListVolumesPaginatedResponse parses an HTTP response from a ListVolumesPaginatedWithResponse call
func (ListVolumesPaginatedResponse) Status ¶ added in v1.0.12
func (r ListVolumesPaginatedResponse) Status() string
Status returns HTTPResponse.Status
func (ListVolumesPaginatedResponse) StatusCode ¶ added in v1.0.12
func (r ListVolumesPaginatedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PageQueryParameter ¶
type PageQueryParameter = int
PageQueryParameter A positive integer to choose the page to return.
type PaginatedFilesystemsResponse ¶ added in v1.0.3
type PaginatedFilesystemsResponse struct {
Filesystems []Filesystem `json:"filesystems"`
Page int `json:"page"`
PerPage int `json:"per_page"`
TotalCount int `json:"total_count"`
}
PaginatedFilesystemsResponse defines model for PaginatedFilesystemsResponse.
type PaginatedFloatingIPsResponse ¶
type PaginatedFloatingIPsResponse struct {
FloatingIps []FloatingIP `json:"floating_ips"`
Page int `json:"page"`
PerPage int `json:"per_page"`
TotalCount int `json:"total_count"`
}
PaginatedFloatingIPsResponse defines model for PaginatedFloatingIPsResponse.
type PaginatedImagesResponse ¶
type PaginatedImagesResponse struct {
Images []Image `json:"images"`
Page int `json:"page"`
PerPage int `json:"per_page"`
TotalCount int `json:"total_count"`
}
PaginatedImagesResponse defines model for PaginatedImagesResponse.
type PaginatedInstancesResponse ¶
type PaginatedInstancesResponse struct {
Instances []Instance `json:"instances"`
Page int `json:"page"`
PerPage int `json:"per_page"`
TotalCount int `json:"total_count"`
}
PaginatedInstancesResponse defines model for PaginatedInstancesResponse.
type PaginatedSSHKeysResponse ¶
type PaginatedSSHKeysResponse struct {
Page int `json:"page"`
PerPage int `json:"per_page"`
SshKeys []SSHKey `json:"ssh_keys"`
TotalCount int `json:"total_count"`
}
PaginatedSSHKeysResponse defines model for PaginatedSSHKeysResponse.
type PaginatedSecurityGroupsResponse ¶
type PaginatedSecurityGroupsResponse struct {
Page int `json:"page"`
PerPage int `json:"per_page"`
SecurityGroups []SecurityGroup `json:"security_groups"`
TotalCount int `json:"total_count"`
}
PaginatedSecurityGroupsResponse defines model for PaginatedSecurityGroupsResponse.
type PaginatedSnapshotsResponse ¶
type PaginatedSnapshotsResponse struct {
Page int `json:"page"`
PerPage int `json:"per_page"`
Snapshots []Snapshot `json:"snapshots"`
TotalCount int `json:"total_count"`
}
PaginatedSnapshotsResponse defines model for PaginatedSnapshotsResponse.
type PaginatedVolumesResponse ¶
type PaginatedVolumesResponse struct {
Page int `json:"page"`
PerPage int `json:"per_page"`
TotalCount int `json:"total_count"`
Volumes []Volume `json:"volumes"`
}
PaginatedVolumesResponse defines model for PaginatedVolumesResponse.
type PerPageQueryParameter ¶
type PerPageQueryParameter = int
PerPageQueryParameter A positive integer lower or equal to 100 to select the number of items to return.
type PerformInstanceActionJSONBody ¶
type PerformInstanceActionJSONBody struct {
Action InstanceAction `json:"action"`
}
PerformInstanceActionJSONBody defines parameters for PerformInstanceAction.
type PerformInstanceActionJSONRequestBody ¶
type PerformInstanceActionJSONRequestBody PerformInstanceActionJSONBody
PerformInstanceActionJSONRequestBody defines body for PerformInstanceAction for application/json ContentType.
type PerformInstanceActionResponse ¶
type PerformInstanceActionResponse struct {
Body []byte
HTTPResponse *http.Response
JSONDefault *ErrorResponse
}
func ParsePerformInstanceActionResponse ¶
func ParsePerformInstanceActionResponse(rsp *http.Response) (*PerformInstanceActionResponse, error)
ParsePerformInstanceActionResponse parses an HTTP response from a PerformInstanceActionWithResponse call
func (PerformInstanceActionResponse) Status ¶
func (r PerformInstanceActionResponse) Status() string
Status returns HTTPResponse.Status
func (PerformInstanceActionResponse) StatusCode ¶
func (r PerformInstanceActionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Quota ¶ added in v1.0.12
type Quota struct {
Capacity int `json:"capacity"`
Flavors []struct {
FlavorName string `json:"flavor_name"`
ProductName string `json:"product_name"`
Unit string `json:"unit"`
Used int `json:"used"`
} `json:"flavors"`
Key string `json:"key"`
Used int `json:"used"`
}
Quota defines model for Quota.
type QuotasResponse ¶ added in v1.0.12
type QuotasResponse struct {
Quotas []Quota `json:"quotas"`
}
QuotasResponse defines model for QuotasResponse.
type Region ¶
type Region string
Region The region identifier.
const ( RegionEUCDEMUC1 Region = "EUC-DE-MUC-1" RegionEUWGBMNC1 Region = "EUW-GB-MNC-1" RegionEUWNLAMS1 Region = "EUW-NL-AMS-1" RegionNACAFTS1 Region = "NA-CA-FTS-1" RegionNACAMNZ1 Region = "NA-CA-MNZ-1" RegionNACAPRG1 Region = "NA-CA-PRG-1" RegionNORDNOKRS1 Region = "NORD-NO-KRS-1" )
Defines values for Region.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type Reservation ¶ added in v1.0.12
type Reservation struct {
FlavorName string `json:"flavor_name"`
Id string `json:"id"`
Metadata map[string]interface{} `json:"metadata"`
Quota struct {
Capacity int `json:"capacity"`
Used int `json:"used"`
} `json:"quota"`
// Region The region identifier.
Region Region `json:"region"`
}
Reservation defines model for Reservation.
type ReservationsResponse ¶ added in v1.0.12
type ReservationsResponse struct {
Reservations []Reservation `json:"reservations"`
}
ReservationsResponse defines model for ReservationsResponse.
type SSHKey ¶
type SSHKey struct {
CreatedAt Timestamp `json:"created_at"`
// Fingerprint The fingerprint of the SSH key.
Fingerprint string `json:"fingerprint"`
// Id A unique identifier for each SSH key. This is automatically generated.
Id string `json:"id"`
// Name The human-readable name for the SSH key.
Name string `json:"name"`
// Size The length of the SSH key.
Size int `json:"size"`
// Type The encryption algorithm type of the SSH key.
Type string `json:"type"`
UpdatedAt Timestamp `json:"updated_at"`
// Value SSH public key.
Value string `json:"value"`
}
SSHKey defines model for SSHKey.
type SecurityGroup ¶
type SecurityGroup struct {
CreatedAt Timestamp `json:"created_at"`
// Description The human-readable description for the security group.
Description string `json:"description"`
// Id A unique identifier for each security group. This is automatically generated.
Id SecurityGroupId `json:"id"`
IsInternal bool `json:"is_internal"`
// Name The human-readable name for the security group.
Name string `json:"name"`
// Region The region identifier.
Region Region `json:"region"`
Rules []SecurityGroupRule `json:"rules"`
// Status The security group status.
Status SecurityGroupStatus `json:"status"`
UpdatedAt Timestamp `json:"updated_at"`
}
SecurityGroup defines model for SecurityGroup.
type SecurityGroupId ¶ added in v1.0.11
type SecurityGroupId = string
SecurityGroupId A unique identifier for each security group. This is automatically generated.
type SecurityGroupRule ¶
type SecurityGroupRule struct {
// Direction The direction of the rule.
Direction SecurityGroupRuleDirection `json:"direction"`
// PortRangeMax The maximum port number of the rule.
PortRangeMax *int `json:"port_range_max"`
// PortRangeMin The minimum port number of the rule.
PortRangeMin *int `json:"port_range_min"`
// Protocol The protocol of the rule.
Protocol SecurityGroupRuleProtocol `json:"protocol"`
}
SecurityGroupRule defines model for SecurityGroup.Rule.
type SecurityGroupRuleDirection ¶
type SecurityGroupRuleDirection string
SecurityGroupRuleDirection The direction of the rule.
const ( SecurityGroupRuleDirectionEgress SecurityGroupRuleDirection = "egress" SecurityGroupRuleDirectionIngress SecurityGroupRuleDirection = "ingress" )
Defines values for SecurityGroupRuleDirection.
type SecurityGroupRuleProtocol ¶
type SecurityGroupRuleProtocol string
SecurityGroupRuleProtocol The protocol of the rule.
const ( SecurityGroupRuleProtocolAll SecurityGroupRuleProtocol = "all" SecurityGroupRuleProtocolIcmp SecurityGroupRuleProtocol = "icmp" SecurityGroupRuleProtocolTcp SecurityGroupRuleProtocol = "tcp" SecurityGroupRuleProtocolUdp SecurityGroupRuleProtocol = "udp" )
Defines values for SecurityGroupRuleProtocol.
type SecurityGroupStatus ¶
type SecurityGroupStatus string
SecurityGroupStatus The security group status.
const ( SecurityGroupStatusCreated SecurityGroupStatus = "created" SecurityGroupStatusCreating SecurityGroupStatus = "creating" SecurityGroupStatusDeleting SecurityGroupStatus = "deleting" SecurityGroupStatusError SecurityGroupStatus = "error" )
Defines values for SecurityGroupStatus.
type SingleFilesystemResponse ¶ added in v1.0.3
type SingleFilesystemResponse struct {
Filesystem Filesystem `json:"filesystem"`
}
SingleFilesystemResponse defines model for SingleFilesystemResponse.
type SingleFloatingIPResponse ¶
type SingleFloatingIPResponse struct {
FloatingIp FloatingIP `json:"floating_ip"`
}
SingleFloatingIPResponse defines model for SingleFloatingIPResponse.
type SingleInstanceResponse ¶
type SingleInstanceResponse struct {
Instance Instance `json:"instance"`
}
SingleInstanceResponse defines model for SingleInstanceResponse.
type SingleSSHKeyResponse ¶
type SingleSSHKeyResponse = SSHKey
SingleSSHKeyResponse defines model for SingleSSHKeyResponse.
type SingleSecurityGroupResponse ¶
type SingleSecurityGroupResponse struct {
SecurityGroup SecurityGroup `json:"security_group"`
}
SingleSecurityGroupResponse defines model for SingleSecurityGroupResponse.
type SingleSnapshotResponse ¶
type SingleSnapshotResponse struct {
Snapshot Snapshot `json:"snapshot"`
}
SingleSnapshotResponse defines model for SingleSnapshotResponse.
type SingleVolumeResponse ¶
type SingleVolumeResponse struct {
Volume Volume `json:"volume"`
}
SingleVolumeResponse defines model for SingleVolumeResponse.
type Snapshot ¶
type Snapshot struct {
CreatedAt Timestamp `json:"created_at"`
// Id A unique identifier for each snapshot. This is automatically generated.
Id string `json:"id"`
// Name The human-readable name for the snapshot.
Name string `json:"name"`
// OsType The OS type.
OsType OSType `json:"os_type"`
// Region The region identifier.
Region Region `json:"region"`
// Size The storage size of this snapshot given in GiB.
Size int `json:"size"`
// SourceInstanceId The id of the source instance from which this snapshot was derived.
SourceInstanceId *string `json:"source_instance_id,omitempty"`
// SourceSnapshotId The id of the source snapshot from which this snapsot was derived.
SourceSnapshotId *string `json:"source_snapshot_id,omitempty"`
// Status The snapshot status.
Status SnapshotStatus `json:"status"`
UpdatedAt Timestamp `json:"updated_at"`
}
Snapshot defines model for Snapshot.
type SnapshotStatus ¶
type SnapshotStatus string
SnapshotStatus The snapshot status.
const ( SnapshotStatusCreated SnapshotStatus = "created" SnapshotStatusCreating SnapshotStatus = "creating" SnapshotStatusDeleting SnapshotStatus = "deleting" SnapshotStatusError SnapshotStatus = "error" SnapshotStatusPendingDelete SnapshotStatus = "pending_delete" )
Defines values for SnapshotStatus.
type UpdateFilesystemJSONBody ¶ added in v1.0.3
type UpdateFilesystemJSONBody struct {
// Description The human-readable description set for the filesystem.
Description *string `json:"description,omitempty"`
// Name The human-readable name set for the filesystem.
Name *string `json:"name,omitempty"`
// Size The storage size of this filesystem given in GiB (min: previous size).
Size *int `json:"size,omitempty"`
}
UpdateFilesystemJSONBody defines parameters for UpdateFilesystem.
type UpdateFilesystemJSONRequestBody ¶ added in v1.0.3
type UpdateFilesystemJSONRequestBody UpdateFilesystemJSONBody
UpdateFilesystemJSONRequestBody defines body for UpdateFilesystem for application/json ContentType.
type UpdateFilesystemResponse ¶ added in v1.0.3
type UpdateFilesystemResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SingleFilesystemResponse
JSONDefault *ErrorResponse
}
func ParseUpdateFilesystemResponse ¶ added in v1.0.3
func ParseUpdateFilesystemResponse(rsp *http.Response) (*UpdateFilesystemResponse, error)
ParseUpdateFilesystemResponse parses an HTTP response from a UpdateFilesystemWithResponse call
func (UpdateFilesystemResponse) Status ¶ added in v1.0.3
func (r UpdateFilesystemResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateFilesystemResponse) StatusCode ¶ added in v1.0.3
func (r UpdateFilesystemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateFloatingIPJSONBody ¶ added in v1.0.3
type UpdateFloatingIPJSONBody struct {
// Description The human-readable description set for the floating IP.
Description *string `json:"description,omitempty"`
// Name The human-readable name set for the floating IP.
Name *string `json:"name,omitempty"`
}
UpdateFloatingIPJSONBody defines parameters for UpdateFloatingIP.
type UpdateFloatingIPJSONRequestBody ¶ added in v1.0.3
type UpdateFloatingIPJSONRequestBody UpdateFloatingIPJSONBody
UpdateFloatingIPJSONRequestBody defines body for UpdateFloatingIP for application/json ContentType.
type UpdateFloatingIPResponse ¶ added in v1.0.3
type UpdateFloatingIPResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SingleFloatingIPResponse
JSONDefault *ErrorResponse
}
func ParseUpdateFloatingIPResponse ¶ added in v1.0.3
func ParseUpdateFloatingIPResponse(rsp *http.Response) (*UpdateFloatingIPResponse, error)
ParseUpdateFloatingIPResponse parses an HTTP response from a UpdateFloatingIPWithResponse call
func (UpdateFloatingIPResponse) Status ¶ added in v1.0.3
func (r UpdateFloatingIPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateFloatingIPResponse) StatusCode ¶ added in v1.0.3
func (r UpdateFloatingIPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateInstanceJSONBody ¶
type UpdateInstanceJSONBody struct {
// DiskSize The storage size of the instance's boot volume given in GiB.
DiskSize *InstanceDiskSize `json:"disk_size,omitempty"`
// IsProtected Specifies if the instance is termination protected.
// When set to `true`, it"s not possible to destroy the instance until it"s switched to `false`.
// Set to `true` automatically for long-term billed instances.
IsProtected *InstanceIsProtected `json:"is_protected,omitempty"`
// Name The human-readable name set for the instance.
Name *InstanceName `json:"name,omitempty"`
// ReservationId The unique ID of the reservation the instance is associated with.
ReservationId *string `json:"reservation_id,omitempty"`
SecurityGroups *InstanceUpdateSecurityGroups `json:"security_groups,omitempty"`
Volumes *InstanceUpdateVolumes `json:"volumes,omitempty"`
}
UpdateInstanceJSONBody defines parameters for UpdateInstance.
type UpdateInstanceJSONRequestBody ¶
type UpdateInstanceJSONRequestBody UpdateInstanceJSONBody
UpdateInstanceJSONRequestBody defines body for UpdateInstance for application/json ContentType.
type UpdateInstanceResponse ¶
type UpdateInstanceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SingleInstanceResponse
JSONDefault *ErrorResponse
}
func ParseUpdateInstanceResponse ¶
func ParseUpdateInstanceResponse(rsp *http.Response) (*UpdateInstanceResponse, error)
ParseUpdateInstanceResponse parses an HTTP response from a UpdateInstanceWithResponse call
func (UpdateInstanceResponse) Status ¶
func (r UpdateInstanceResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateInstanceResponse) StatusCode ¶
func (r UpdateInstanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateSSHKeyJSONBody ¶
type UpdateSSHKeyJSONBody struct {
// Name The new human-readable name for your ssh key.
Name *string `json:"name,omitempty"`
}
UpdateSSHKeyJSONBody defines parameters for UpdateSSHKey.
type UpdateSSHKeyJSONRequestBody ¶
type UpdateSSHKeyJSONRequestBody UpdateSSHKeyJSONBody
UpdateSSHKeyJSONRequestBody defines body for UpdateSSHKey for application/json ContentType.
type UpdateSSHKeyResponse ¶
type UpdateSSHKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SingleSSHKeyResponse
JSONDefault *ErrorResponse
}
func ParseUpdateSSHKeyResponse ¶
func ParseUpdateSSHKeyResponse(rsp *http.Response) (*UpdateSSHKeyResponse, error)
ParseUpdateSSHKeyResponse parses an HTTP response from a UpdateSSHKeyWithResponse call
func (UpdateSSHKeyResponse) Status ¶
func (r UpdateSSHKeyResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateSSHKeyResponse) StatusCode ¶
func (r UpdateSSHKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateSecurityGroupJSONBody ¶
type UpdateSecurityGroupJSONBody struct {
// Description he human-readable description set for the security group.
Description *string `json:"description,omitempty"`
// Name The human-readable name set for the security group.
Name *string `json:"name,omitempty"`
// Rules The list of rules of the security group.
Rules *[]SecurityGroupRule `json:"rules,omitempty"`
}
UpdateSecurityGroupJSONBody defines parameters for UpdateSecurityGroup.
type UpdateSecurityGroupJSONRequestBody ¶
type UpdateSecurityGroupJSONRequestBody UpdateSecurityGroupJSONBody
UpdateSecurityGroupJSONRequestBody defines body for UpdateSecurityGroup for application/json ContentType.
type UpdateSecurityGroupResponse ¶
type UpdateSecurityGroupResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SingleSecurityGroupResponse
JSONDefault *ErrorResponse
}
func ParseUpdateSecurityGroupResponse ¶
func ParseUpdateSecurityGroupResponse(rsp *http.Response) (*UpdateSecurityGroupResponse, error)
ParseUpdateSecurityGroupResponse parses an HTTP response from a UpdateSecurityGroupWithResponse call
func (UpdateSecurityGroupResponse) Status ¶
func (r UpdateSecurityGroupResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateSecurityGroupResponse) StatusCode ¶
func (r UpdateSecurityGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateSnapshotJSONBody ¶
type UpdateSnapshotJSONBody struct {
// Name The new human-readable name for your snapshot.
Name *string `json:"name,omitempty"`
}
UpdateSnapshotJSONBody defines parameters for UpdateSnapshot.
type UpdateSnapshotJSONRequestBody ¶
type UpdateSnapshotJSONRequestBody UpdateSnapshotJSONBody
UpdateSnapshotJSONRequestBody defines body for UpdateSnapshot for application/json ContentType.
type UpdateSnapshotResponse ¶
type UpdateSnapshotResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SingleSnapshotResponse
JSONDefault *ErrorResponse
}
func ParseUpdateSnapshotResponse ¶
func ParseUpdateSnapshotResponse(rsp *http.Response) (*UpdateSnapshotResponse, error)
ParseUpdateSnapshotResponse parses an HTTP response from a UpdateSnapshotWithResponse call
func (UpdateSnapshotResponse) Status ¶
func (r UpdateSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateSnapshotResponse) StatusCode ¶
func (r UpdateSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateVolumeJSONBody ¶
type UpdateVolumeJSONBody struct {
// Description The human-readable description set for the volume.
Description *string `json:"description,omitempty"`
// Name The human-readable name set for the volume.
Name *string `json:"name,omitempty"`
// Size The storage size of this volume given in GiB (min: previous size).
Size *int `json:"size,omitempty"`
}
UpdateVolumeJSONBody defines parameters for UpdateVolume.
type UpdateVolumeJSONRequestBody ¶
type UpdateVolumeJSONRequestBody UpdateVolumeJSONBody
UpdateVolumeJSONRequestBody defines body for UpdateVolume for application/json ContentType.
type UpdateVolumeResponse ¶
type UpdateVolumeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SingleVolumeResponse
JSONDefault *ErrorResponse
}
func ParseUpdateVolumeResponse ¶
func ParseUpdateVolumeResponse(rsp *http.Response) (*UpdateVolumeResponse, error)
ParseUpdateVolumeResponse parses an HTTP response from a UpdateVolumeWithResponse call
func (UpdateVolumeResponse) Status ¶
func (r UpdateVolumeResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateVolumeResponse) StatusCode ¶
func (r UpdateVolumeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Volume ¶
type Volume struct {
CreatedAt Timestamp `json:"created_at"`
// Description The human-readable description for the volume.
Description string `json:"description"`
// Id A unique identifier for each volume. This is automatically generated.
Id VolumeId `json:"id"`
// Instances The attached instances.
Instances []struct {
// Id The id of the attached instance.
Id string `json:"id"`
// Name The name of the attached instance.
Name string `json:"name"`
} `json:"instances"`
// Name The human-readable name for the volume.
Name string `json:"name"`
// Region The region identifier.
Region Region `json:"region"`
// Size The storage size of this volume given in GiB.
Size int `json:"size"`
Status VolumeStatus `json:"status"`
// Type The volume type.
Type VolumeType `json:"type"`
UpdatedAt Timestamp `json:"updated_at"`
}
Volume defines model for Volume.
type VolumeId ¶
type VolumeId = string
VolumeId A unique identifier for each volume. This is automatically generated.
type VolumeStatus ¶
type VolumeStatus string
VolumeStatus defines model for Volume.Status.
const ( VolumeStatusCreated VolumeStatus = "created" VolumeStatusCreating VolumeStatus = "creating" VolumeStatusDeleting VolumeStatus = "deleting" VolumeStatusError VolumeStatus = "error" VolumeStatusPendingDelete VolumeStatus = "pending_delete" )
Defines values for VolumeStatus.
type VolumeType ¶
type VolumeType string
VolumeType The volume type.
const ( VolumeTypeHdd VolumeType = "hdd" VolumeTypeSsd VolumeType = "ssd" )
Defines values for VolumeType.