Documentation
¶
Index ¶
- type BackupResource
- type BackupService
- type BillingType
- type BillingTypeNotFoundError
- type ComputeResource
- type ComputeResourceNotFoundError
- type DRaaSService
- type FailoverPlan
- type FailoverPlanNotFoundError
- type GetBackupResourceResponseBody
- type GetBackupResourceSliceResponseBody
- type GetBackupServiceResponseBody
- type GetBackupServiceSliceResponseBody
- type GetBillingTypeResponseBody
- type GetBillingTypeSliceResponseBody
- type GetComputeResourceResponseBody
- type GetComputeResourceSliceResponseBody
- type GetFailoverPlanResponseBody
- type GetFailoverPlanSliceResponseBody
- type GetHardwarePlanResponseBody
- type GetHardwarePlanSliceResponseBody
- type GetIOPSTierResponseBody
- type GetIOPSTierSliceResponseBody
- type GetReplicaResponseBody
- type GetReplicaSliceResponseBody
- type GetSolutionResponseBody
- type GetSolutionSliceResponseBody
- type HardwarePlan
- type HardwarePlanNotFoundError
- type IOPSTier
- type IOPSTierNotFoundError
- type PaginatedBackupResource
- type PaginatedBillingType
- type PaginatedComputeResource
- type PaginatedFailoverPlan
- type PaginatedHardwarePlan
- type PaginatedIOPSTier
- type PaginatedReplica
- type PaginatedSolution
- type PatchSolutionRequest
- type Replica
- type ReplicaNotFoundError
- type ResetBackupServiceCredentialsRequest
- type Service
- func (s *Service) GetBillingType(billingTypeID string) (BillingType, error)
- func (s *Service) GetBillingTypes(parameters connection.APIRequestParameters) ([]BillingType, error)
- func (s *Service) GetBillingTypesPaginated(parameters connection.APIRequestParameters) (*PaginatedBillingType, error)
- func (s *Service) GetIOPSTier(iopsTierID string) (IOPSTier, error)
- func (s *Service) GetIOPSTiers(parameters connection.APIRequestParameters) ([]IOPSTier, error)
- func (s *Service) GetIOPSTiersPaginated(parameters connection.APIRequestParameters) (*PaginatedIOPSTier, error)
- func (s *Service) GetSolution(solutionID string) (Solution, error)
- func (s *Service) GetSolutionBackupResources(solutionID string, parameters connection.APIRequestParameters) ([]BackupResource, error)
- func (s *Service) GetSolutionBackupResourcesPaginated(solutionID string, parameters connection.APIRequestParameters) (*PaginatedBackupResource, error)
- func (s *Service) GetSolutionBackupService(solutionID string) (BackupService, error)
- func (s *Service) GetSolutionComputeResource(solutionID string, computeResourceID string) (ComputeResource, error)
- func (s *Service) GetSolutionComputeResources(solutionID string, parameters connection.APIRequestParameters) ([]ComputeResource, error)
- func (s *Service) GetSolutionComputeResourcesPaginated(solutionID string, parameters connection.APIRequestParameters) (*PaginatedComputeResource, error)
- func (s *Service) GetSolutionFailoverPlan(solutionID string, failoverPlanID string) (FailoverPlan, error)
- func (s *Service) GetSolutionFailoverPlans(solutionID string, parameters connection.APIRequestParameters) ([]FailoverPlan, error)
- func (s *Service) GetSolutionFailoverPlansPaginated(solutionID string, parameters connection.APIRequestParameters) (*PaginatedFailoverPlan, error)
- func (s *Service) GetSolutionHardwarePlan(solutionID string, hardwarePlanID string) (HardwarePlan, error)
- func (s *Service) GetSolutionHardwarePlanReplicas(solutionID string, hardwarePlanID string, ...) ([]Replica, error)
- func (s *Service) GetSolutionHardwarePlanReplicasPaginated(solutionID string, hardwarePlanID string, ...) (*PaginatedReplica, error)
- func (s *Service) GetSolutionHardwarePlans(solutionID string, parameters connection.APIRequestParameters) ([]HardwarePlan, error)
- func (s *Service) GetSolutionHardwarePlansPaginated(solutionID string, parameters connection.APIRequestParameters) (*PaginatedHardwarePlan, error)
- func (s *Service) GetSolutions(parameters connection.APIRequestParameters) ([]Solution, error)
- func (s *Service) GetSolutionsPaginated(parameters connection.APIRequestParameters) (*PaginatedSolution, error)
- func (s *Service) PatchSolution(solutionID string, req PatchSolutionRequest) error
- func (s *Service) ResetSolutionBackupServiceCredentials(solutionID string, req ResetBackupServiceCredentialsRequest) error
- func (s *Service) StartSolutionFailoverPlan(solutionID string, failoverPlanID string, req StartFailoverPlanRequest) error
- func (s *Service) StopSolutionFailoverPlan(solutionID string, failoverPlanID string) error
- func (s *Service) UpdateSolutionReplicaIOPS(solutionID string, replicaID string, req UpdateReplicaIOPSRequest) error
- type Solution
- type SolutionNotFoundError
- type StartFailoverPlanRequest
- type UpdateReplicaIOPSRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupResource ¶
type BackupResource struct { ID string `json:"id"` Name string `json:"name"` // Quota in DB Quota int `json:"quota"` // Used quota in DB UsedQuota float32 `json:"used_quota"` }
BackupResource represents backup resources for a solution +genie:model_response +genie:model_paginated
type BackupService ¶
type BackupService struct { Service string `json:"service"` AccountName string `json:"account_name"` Gateway string `json:"gateway"` Port int `json:"port"` }
BackupService represents the backup service for a solution +genie:model_response
type BillingType ¶
BillingType represents a billing type +genie:model_response +genie:model_paginated
type BillingTypeNotFoundError ¶
type BillingTypeNotFoundError struct {
ID string
}
BillingTypeNotFoundError indicates billing type was not found
func (*BillingTypeNotFoundError) Error ¶
func (e *BillingTypeNotFoundError) Error() string
type ComputeResource ¶
type ComputeResource struct { ID string `json:"id"` HardwarePlanID string `json:"hardware_plan_id"` Memory struct { // Used memory in GB Used float32 `json:"used"` // Memory limit in GB Limit float32 `json:"limit"` } `json:"memory"` CPU struct { Used int `json:"used"` } `json:"cpu"` Storage []struct { Name string `json:"name"` // Used storage in GB Used int `json:"used"` // Storage limit in GB Limit int `json:"limit"` } `json:"storage"` }
ComputeResource represents compute resources for a solution +genie:model_response +genie:model_paginated
type ComputeResourceNotFoundError ¶
type ComputeResourceNotFoundError struct {
ID string
}
ComputeResourceNotFoundError indicates compute resources was not found
func (*ComputeResourceNotFoundError) Error ¶
func (e *ComputeResourceNotFoundError) Error() string
type DRaaSService ¶
type DRaaSService interface { GetSolutions(parameters connection.APIRequestParameters) ([]Solution, error) GetSolutionsPaginated(parameters connection.APIRequestParameters) (*PaginatedSolution, error) GetSolution(solutionID string) (Solution, error) PatchSolution(solutionID string, req PatchSolutionRequest) error GetSolutionBackupResources(solutionID string, parameters connection.APIRequestParameters) ([]BackupResource, error) GetSolutionBackupResourcesPaginated(solutionID string, parameters connection.APIRequestParameters) (*PaginatedBackupResource, error) GetSolutionBackupService(solutionID string) (BackupService, error) ResetSolutionBackupServiceCredentials(solutionID string, req ResetBackupServiceCredentialsRequest) error GetSolutionFailoverPlans(solutionID string, parameters connection.APIRequestParameters) ([]FailoverPlan, error) GetSolutionFailoverPlansPaginated(solutionID string, parameters connection.APIRequestParameters) (*PaginatedFailoverPlan, error) GetSolutionFailoverPlan(solutionID string, failoverPlanID string) (FailoverPlan, error) StartSolutionFailoverPlan(solutionID string, failoverPlanID string, req StartFailoverPlanRequest) error StopSolutionFailoverPlan(solutionID string, failoverPlanID string) error GetSolutionComputeResources(solutionID string, parameters connection.APIRequestParameters) ([]ComputeResource, error) GetSolutionComputeResourcesPaginated(solutionID string, parameters connection.APIRequestParameters) (*PaginatedComputeResource, error) GetSolutionComputeResource(solutionID string, computeResourcesID string) (ComputeResource, error) GetSolutionHardwarePlans(solutionID string, parameters connection.APIRequestParameters) ([]HardwarePlan, error) GetSolutionHardwarePlansPaginated(solutionID string, parameters connection.APIRequestParameters) (*PaginatedHardwarePlan, error) GetSolutionHardwarePlan(solutionID string, hardwarePlanID string) (HardwarePlan, error) GetSolutionHardwarePlanReplicas(solutionID string, hardwarePlanID string, parameters connection.APIRequestParameters) ([]Replica, error) UpdateSolutionReplicaIOPS(solutionID string, replicaID string, req UpdateReplicaIOPSRequest) error GetIOPSTiers(parameters connection.APIRequestParameters) ([]IOPSTier, error) GetIOPSTier(iopsTierID string) (IOPSTier, error) GetBillingTypes(parameters connection.APIRequestParameters) ([]BillingType, error) GetBillingTypesPaginated(parameters connection.APIRequestParameters) (*PaginatedBillingType, error) GetBillingType(billingTypeID string) (BillingType, error) }
DRaaSService is an interface for managing the DRaaS service
type FailoverPlan ¶
type FailoverPlan struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Status string `json:"status"` VMs []struct { Name string `json:"name"` } `json:"vms"` }
FailoverPlan represents a failover plan +genie:model_response +genie:model_paginated
type FailoverPlanNotFoundError ¶
type FailoverPlanNotFoundError struct {
ID string
}
FailoverPlanNotFoundError indicates a failover plan was not found
func (*FailoverPlanNotFoundError) Error ¶
func (e *FailoverPlanNotFoundError) Error() string
type GetBackupResourceResponseBody ¶ added in v1.3.16
type GetBackupResourceResponseBody struct { connection.APIResponseBody Data BackupResource `json:"data"` }
GetBackupResourceResponseBody represents an API response body containing BackupResource data
type GetBackupResourceSliceResponseBody ¶ added in v1.3.17
type GetBackupResourceSliceResponseBody struct { connection.APIResponseBody Data []BackupResource `json:"data"` }
GetBackupResourceSliceResponseBody represents an API response body containing []BackupResource data
type GetBackupServiceResponseBody ¶
type GetBackupServiceResponseBody struct { connection.APIResponseBody Data BackupService `json:"data"` }
GetBackupServiceResponseBody represents an API response body containing BackupService data
type GetBackupServiceSliceResponseBody ¶ added in v1.3.17
type GetBackupServiceSliceResponseBody struct { connection.APIResponseBody Data []BackupService `json:"data"` }
GetBackupServiceSliceResponseBody represents an API response body containing []BackupService data
type GetBillingTypeResponseBody ¶
type GetBillingTypeResponseBody struct { connection.APIResponseBody Data BillingType `json:"data"` }
GetBillingTypeResponseBody represents an API response body containing BillingType data
type GetBillingTypeSliceResponseBody ¶ added in v1.3.17
type GetBillingTypeSliceResponseBody struct { connection.APIResponseBody Data []BillingType `json:"data"` }
GetBillingTypeSliceResponseBody represents an API response body containing []BillingType data
type GetComputeResourceResponseBody ¶
type GetComputeResourceResponseBody struct { connection.APIResponseBody Data ComputeResource `json:"data"` }
GetComputeResourceResponseBody represents an API response body containing ComputeResource data
type GetComputeResourceSliceResponseBody ¶ added in v1.3.17
type GetComputeResourceSliceResponseBody struct { connection.APIResponseBody Data []ComputeResource `json:"data"` }
GetComputeResourceSliceResponseBody represents an API response body containing []ComputeResource data
type GetFailoverPlanResponseBody ¶
type GetFailoverPlanResponseBody struct { connection.APIResponseBody Data FailoverPlan `json:"data"` }
GetFailoverPlanResponseBody represents an API response body containing FailoverPlan data
type GetFailoverPlanSliceResponseBody ¶ added in v1.3.17
type GetFailoverPlanSliceResponseBody struct { connection.APIResponseBody Data []FailoverPlan `json:"data"` }
GetFailoverPlanSliceResponseBody represents an API response body containing []FailoverPlan data
type GetHardwarePlanResponseBody ¶
type GetHardwarePlanResponseBody struct { connection.APIResponseBody Data HardwarePlan `json:"data"` }
GetHardwarePlanResponseBody represents an API response body containing HardwarePlan data
type GetHardwarePlanSliceResponseBody ¶ added in v1.3.17
type GetHardwarePlanSliceResponseBody struct { connection.APIResponseBody Data []HardwarePlan `json:"data"` }
GetHardwarePlanSliceResponseBody represents an API response body containing []HardwarePlan data
type GetIOPSTierResponseBody ¶
type GetIOPSTierResponseBody struct { connection.APIResponseBody Data IOPSTier `json:"data"` }
GetIOPSTierResponseBody represents an API response body containing IOPSTier data
type GetIOPSTierSliceResponseBody ¶ added in v1.3.17
type GetIOPSTierSliceResponseBody struct { connection.APIResponseBody Data []IOPSTier `json:"data"` }
GetIOPSTierSliceResponseBody represents an API response body containing []IOPSTier data
type GetReplicaResponseBody ¶ added in v1.3.16
type GetReplicaResponseBody struct { connection.APIResponseBody Data Replica `json:"data"` }
GetReplicaResponseBody represents an API response body containing Replica data
type GetReplicaSliceResponseBody ¶ added in v1.3.17
type GetReplicaSliceResponseBody struct { connection.APIResponseBody Data []Replica `json:"data"` }
GetReplicaSliceResponseBody represents an API response body containing []Replica data
type GetSolutionResponseBody ¶
type GetSolutionResponseBody struct { connection.APIResponseBody Data Solution `json:"data"` }
GetSolutionResponseBody represents an API response body containing Solution data
type GetSolutionSliceResponseBody ¶ added in v1.3.17
type GetSolutionSliceResponseBody struct { connection.APIResponseBody Data []Solution `json:"data"` }
GetSolutionSliceResponseBody represents an API response body containing []Solution data
type HardwarePlan ¶
type HardwarePlan struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Limits struct { Processor int `json:"processor"` Memory int `json:"memory"` } `json:"limits"` Networks struct { Public int `json:"public"` Private int `json:"private"` } `json:"networks"` Storage []struct { ID string `json:"id"` Name string `json:"name"` Type string `json:"Type"` Quota int `json:"quota"` } `json:"storage"` }
HardwarePlan represents a hardware plan +genie:model_response +genie:model_paginated
type HardwarePlanNotFoundError ¶
type HardwarePlanNotFoundError struct {
ID string
}
HardwarePlanNotFoundError indicates hardware plan was not found
func (*HardwarePlanNotFoundError) Error ¶
func (e *HardwarePlanNotFoundError) Error() string
type IOPSTierNotFoundError ¶
type IOPSTierNotFoundError struct {
ID string
}
IOPSTierNotFoundError indicates an IOPS tier was not found
func (*IOPSTierNotFoundError) Error ¶
func (e *IOPSTierNotFoundError) Error() string
type PaginatedBackupResource ¶
type PaginatedBackupResource struct { *connection.PaginatedBase Items []BackupResource }
PaginatedBackupResource represents a paginated collection of BackupResource
func NewPaginatedBackupResource ¶
func NewPaginatedBackupResource(getFunc connection.PaginatedGetFunc, parameters connection.APIRequestParameters, pagination connection.APIResponseMetadataPagination, items []BackupResource) *PaginatedBackupResource
NewPaginatedBackupResource returns a pointer to an initialized PaginatedBackupResource struct
type PaginatedBillingType ¶
type PaginatedBillingType struct { *connection.PaginatedBase Items []BillingType }
PaginatedBillingType represents a paginated collection of BillingType
func NewPaginatedBillingType ¶
func NewPaginatedBillingType(getFunc connection.PaginatedGetFunc, parameters connection.APIRequestParameters, pagination connection.APIResponseMetadataPagination, items []BillingType) *PaginatedBillingType
NewPaginatedBillingType returns a pointer to an initialized PaginatedBillingType struct
type PaginatedComputeResource ¶
type PaginatedComputeResource struct { *connection.PaginatedBase Items []ComputeResource }
PaginatedComputeResource represents a paginated collection of ComputeResource
func NewPaginatedComputeResource ¶
func NewPaginatedComputeResource(getFunc connection.PaginatedGetFunc, parameters connection.APIRequestParameters, pagination connection.APIResponseMetadataPagination, items []ComputeResource) *PaginatedComputeResource
NewPaginatedComputeResource returns a pointer to an initialized PaginatedComputeResource struct
type PaginatedFailoverPlan ¶
type PaginatedFailoverPlan struct { *connection.PaginatedBase Items []FailoverPlan }
PaginatedFailoverPlan represents a paginated collection of FailoverPlan
func NewPaginatedFailoverPlan ¶
func NewPaginatedFailoverPlan(getFunc connection.PaginatedGetFunc, parameters connection.APIRequestParameters, pagination connection.APIResponseMetadataPagination, items []FailoverPlan) *PaginatedFailoverPlan
NewPaginatedFailoverPlan returns a pointer to an initialized PaginatedFailoverPlan struct
type PaginatedHardwarePlan ¶
type PaginatedHardwarePlan struct { *connection.PaginatedBase Items []HardwarePlan }
PaginatedHardwarePlan represents a paginated collection of HardwarePlan
func NewPaginatedHardwarePlan ¶
func NewPaginatedHardwarePlan(getFunc connection.PaginatedGetFunc, parameters connection.APIRequestParameters, pagination connection.APIResponseMetadataPagination, items []HardwarePlan) *PaginatedHardwarePlan
NewPaginatedHardwarePlan returns a pointer to an initialized PaginatedHardwarePlan struct
type PaginatedIOPSTier ¶
type PaginatedIOPSTier struct { *connection.PaginatedBase Items []IOPSTier }
PaginatedIOPSTier represents a paginated collection of IOPSTier
func NewPaginatedIOPSTier ¶
func NewPaginatedIOPSTier(getFunc connection.PaginatedGetFunc, parameters connection.APIRequestParameters, pagination connection.APIResponseMetadataPagination, items []IOPSTier) *PaginatedIOPSTier
NewPaginatedIOPSTier returns a pointer to an initialized PaginatedIOPSTier struct
type PaginatedReplica ¶
type PaginatedReplica struct { *connection.PaginatedBase Items []Replica }
PaginatedReplica represents a paginated collection of Replica
func NewPaginatedReplica ¶
func NewPaginatedReplica(getFunc connection.PaginatedGetFunc, parameters connection.APIRequestParameters, pagination connection.APIResponseMetadataPagination, items []Replica) *PaginatedReplica
NewPaginatedReplica returns a pointer to an initialized PaginatedReplica struct
type PaginatedSolution ¶
type PaginatedSolution struct { *connection.PaginatedBase Items []Solution }
PaginatedSolution represents a paginated collection of Solution
func NewPaginatedSolution ¶
func NewPaginatedSolution(getFunc connection.PaginatedGetFunc, parameters connection.APIRequestParameters, pagination connection.APIResponseMetadataPagination, items []Solution) *PaginatedSolution
NewPaginatedSolution returns a pointer to an initialized PaginatedSolution struct
type PatchSolutionRequest ¶
type PatchSolutionRequest struct { Name string `json:"name,omitempty"` IOPSTierID string `json:"iops_tier_id,omitempty"` }
PatchSolutionRequest represents a request to patch a solution
type Replica ¶
type Replica struct { ID string `json:"id"` Name string `json:"name"` Platform string `json:"platform"` CPU int `json:"cpu"` RAM int `json:"ram"` Disk int `json:"disk"` IOPS int `json:"iops"` Power bool `json:"power"` }
Replica represents a replica +genie:model_response +genie:model_paginated
type ReplicaNotFoundError ¶ added in v1.3.12
type ReplicaNotFoundError struct {
ID string
}
ReplicaNotFoundError indicates a replica was not found
func (*ReplicaNotFoundError) Error ¶ added in v1.3.12
func (e *ReplicaNotFoundError) Error() string
type ResetBackupServiceCredentialsRequest ¶
type ResetBackupServiceCredentialsRequest struct {
Password string `json:"password"`
}
ResetBackupServiceCredentialsRequest represents a request to reset backup service credentials
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements DRaaSService for managing DRaaS certificates via the UKFast API
func NewService ¶
func NewService(connection connection.Connection) *Service
NewService returns a new instance of DRaaSService
func (*Service) GetBillingType ¶
func (s *Service) GetBillingType(billingTypeID string) (BillingType, error)
GetBillingType retrieves a single solution by id
func (*Service) GetBillingTypes ¶
func (s *Service) GetBillingTypes(parameters connection.APIRequestParameters) ([]BillingType, error)
GetBillingTypes retrieves a list of solutions
func (*Service) GetBillingTypesPaginated ¶
func (s *Service) GetBillingTypesPaginated(parameters connection.APIRequestParameters) (*PaginatedBillingType, error)
GetBillingTypesPaginated retrieves a paginated list of solutions
func (*Service) GetIOPSTier ¶
GetIOPSTier retrieves a single solution by id
func (*Service) GetIOPSTiers ¶
func (s *Service) GetIOPSTiers(parameters connection.APIRequestParameters) ([]IOPSTier, error)
GetIOPSTiers retrieves a list of solutions
func (*Service) GetIOPSTiersPaginated ¶
func (s *Service) GetIOPSTiersPaginated(parameters connection.APIRequestParameters) (*PaginatedIOPSTier, error)
GetIOPSTiersPaginated retrieves a paginated list of solutions
func (*Service) GetSolution ¶
GetSolution retrieves a single solution by id
func (*Service) GetSolutionBackupResources ¶
func (s *Service) GetSolutionBackupResources(solutionID string, parameters connection.APIRequestParameters) ([]BackupResource, error)
GetSolutionBackupResources retrieves a collection of backup resources for specified solution
func (*Service) GetSolutionBackupResourcesPaginated ¶
func (s *Service) GetSolutionBackupResourcesPaginated(solutionID string, parameters connection.APIRequestParameters) (*PaginatedBackupResource, error)
GetSolutionsPaginated retrieves a paginated list of solutions
func (*Service) GetSolutionBackupService ¶
func (s *Service) GetSolutionBackupService(solutionID string) (BackupService, error)
GetSolutionBackupService retrieves the backup service for the specified solution
func (*Service) GetSolutionComputeResource ¶
func (s *Service) GetSolutionComputeResource(solutionID string, computeResourceID string) (ComputeResource, error)
GetSolutionComputeResource retrieves compute resources by id
func (*Service) GetSolutionComputeResources ¶
func (s *Service) GetSolutionComputeResources(solutionID string, parameters connection.APIRequestParameters) ([]ComputeResource, error)
GetSolutionComputeResources retrieves a collection of compute resources for specified solution
func (*Service) GetSolutionComputeResourcesPaginated ¶
func (s *Service) GetSolutionComputeResourcesPaginated(solutionID string, parameters connection.APIRequestParameters) (*PaginatedComputeResource, error)
GetSolutionComputeResourcesPaginated retrieves a paginated list of solution compute resources
func (*Service) GetSolutionFailoverPlan ¶
func (s *Service) GetSolutionFailoverPlan(solutionID string, failoverPlanID string) (FailoverPlan, error)
GetSolutionFailoverPlan retrieves a single solution failover plan by id
func (*Service) GetSolutionFailoverPlans ¶
func (s *Service) GetSolutionFailoverPlans(solutionID string, parameters connection.APIRequestParameters) ([]FailoverPlan, error)
GetSolutionFailoverPlans retrieves a collection of failover plans for specified solution
func (*Service) GetSolutionFailoverPlansPaginated ¶
func (s *Service) GetSolutionFailoverPlansPaginated(solutionID string, parameters connection.APIRequestParameters) (*PaginatedFailoverPlan, error)
GetSolutionsPaginated retrieves a paginated list of solution failover plans
func (*Service) GetSolutionHardwarePlan ¶
func (s *Service) GetSolutionHardwarePlan(solutionID string, hardwarePlanID string) (HardwarePlan, error)
GetSolutionHardwarePlan retrieves hardware plans by id
func (*Service) GetSolutionHardwarePlanReplicas ¶
func (s *Service) GetSolutionHardwarePlanReplicas(solutionID string, hardwarePlanID string, parameters connection.APIRequestParameters) ([]Replica, error)
GetSolutionHardwarePlanReplicas retrieves a collection of hardware plans for specified solution
func (*Service) GetSolutionHardwarePlanReplicasPaginated ¶
func (s *Service) GetSolutionHardwarePlanReplicasPaginated(solutionID string, hardwarePlanID string, parameters connection.APIRequestParameters) (*PaginatedReplica, error)
GetSolutionHardwarePlanReplicasPaginated retrieves a paginated list of solution hardware plans
func (*Service) GetSolutionHardwarePlans ¶
func (s *Service) GetSolutionHardwarePlans(solutionID string, parameters connection.APIRequestParameters) ([]HardwarePlan, error)
GetSolutionHardwarePlans retrieves a collection of hardware plans for specified solution
func (*Service) GetSolutionHardwarePlansPaginated ¶
func (s *Service) GetSolutionHardwarePlansPaginated(solutionID string, parameters connection.APIRequestParameters) (*PaginatedHardwarePlan, error)
GetSolutionHardwarePlansPaginated retrieves a paginated list of solution hardware plans
func (*Service) GetSolutions ¶
func (s *Service) GetSolutions(parameters connection.APIRequestParameters) ([]Solution, error)
GetSolutions retrieves a list of solutions
func (*Service) GetSolutionsPaginated ¶
func (s *Service) GetSolutionsPaginated(parameters connection.APIRequestParameters) (*PaginatedSolution, error)
GetSolutionsPaginated retrieves a paginated list of solutions
func (*Service) PatchSolution ¶
func (s *Service) PatchSolution(solutionID string, req PatchSolutionRequest) error
PatchSolution patches a solution by ID
func (*Service) ResetSolutionBackupServiceCredentials ¶
func (s *Service) ResetSolutionBackupServiceCredentials(solutionID string, req ResetBackupServiceCredentialsRequest) error
ResetSolutionBackupServiceCredentials resets the credentials for the solution backup service
func (*Service) StartSolutionFailoverPlan ¶
func (s *Service) StartSolutionFailoverPlan(solutionID string, failoverPlanID string, req StartFailoverPlanRequest) error
StartSolutionFailoverPlan starts the specified failover plan
func (*Service) StopSolutionFailoverPlan ¶
StopSolutionFailoverPlan stops the specified failover plan
func (*Service) UpdateSolutionReplicaIOPS ¶ added in v1.3.12
func (s *Service) UpdateSolutionReplicaIOPS(solutionID string, replicaID string, req UpdateReplicaIOPSRequest) error
UpdateSolutionReplicaIOPS updates a solution replica by ID
type Solution ¶
type Solution struct { ID string `json:"id"` Name string `json:"name"` IOPSTierID string `json:"iops_tier_id"` BillingTypeID string `json:"billing_type_id"` }
Solution represents a solution +genie:model_response +genie:model_paginated
type SolutionNotFoundError ¶
type SolutionNotFoundError struct {
ID string
}
SolutionNotFoundError indicates a solution was not found
func (*SolutionNotFoundError) Error ¶
func (e *SolutionNotFoundError) Error() string
type StartFailoverPlanRequest ¶ added in v1.3.12
type StartFailoverPlanRequest struct {
StartDate connection.DateTime `json:"start_date,omitempty"`
}
StartFailoverPlanRequest represents a request to start a failover plan
type UpdateReplicaIOPSRequest ¶ added in v1.3.12
type UpdateReplicaIOPSRequest struct {
IOPSTierID string `json:"iops_tier_id"`
}
UpdateReplicaIOPSRequest represents a request to update the IOPS for a replica