Documentation
¶
Index ¶
- type BasePrice
- type Client
- type Currency
- type Exceedance
- type Exceedances
- type ExceedancesWithoutOnDemand
- type PaymentOption
- type PaymentProfile
- type PaymentProfileConnectRequest
- type PaymentProfileContact
- type PaymentProfileContactAddress
- type PaymentProfileContactWithPhone
- type PaymentProfileInvoiceSettings
- type PaymentProfileReferenceInput
- type Plan
- type PlanFeature
- type PlanFeatureBackup
- type PlanFeatureBackupOption
- type PlanFeatureScaling
- type PlanFeatures
- type PlanReferenceInput
- type Quantity
- type SpaceOptionInput
- type SpaceResourcePreprovisioningInput
- type SpaceResourcePreprovisioningInputItem
- type Unit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasePrice ¶
type BasePrice struct {
Value float64 `json:"value"`
Currency Currency `json:"currency"`
Unit Unit `json:"unit,omitempty"`
Interval string `json:"interval,omitempty"`
}
func (BasePrice) ConvertUnit ¶ added in v1.11.0
func (BasePrice) CurrencyAmount ¶ added in v1.11.0
func (BasePrice) MustConvertUnit ¶ added in v1.11.0
type Client ¶ added in v1.11.0
type Client interface {
ListPlans() ([]Plan, error)
ListPaymentProfiles() ([]PaymentProfile, error)
ConnectProfile(customerNumber string, password string) (*PaymentProfile, error)
}
func NewClient ¶ added in v1.11.0
func NewClient(client *lowlevel.SpacesLowlevelClient) Client
type Currency ¶ added in v1.11.0
type Currency int
func (*Currency) MarshalJSON ¶ added in v1.11.0
func (*Currency) UnmarshalJSON ¶ added in v1.11.0
type Exceedance ¶ added in v1.11.0
type Exceedances ¶ added in v1.11.0
type Exceedances struct {
PreProvision Exceedance `json:"preprovision"`
OnDemand Exceedance `json:"ondemand"`
}
type ExceedancesWithoutOnDemand ¶ added in v1.11.0
type ExceedancesWithoutOnDemand struct {
PreProvision Exceedance `json:"preprovision"`
}
type PaymentOption ¶
type PaymentProfile ¶
type PaymentProfile struct {
ID string `json:"id"`
CreatedAt time.Time `json:"createdAt"`
ModifiedAt time.Time `json:"modifiedAt"`
ContractPartner PaymentProfileContactWithPhone `json:"contractPartner"`
InvoiceSettings PaymentProfileInvoiceSettings `json:"invoiceSettings"`
Payment PaymentOption `json:"payment"`
}
type PaymentProfileConnectRequest ¶ added in v1.11.2
type PaymentProfileContact ¶
type PaymentProfileContact struct {
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Title string `json:"title,omitempty"`
Salutation string `json:"salutation"`
Company string `json:"company,omitempty"`
Address PaymentProfileContactAddress `json:"address"`
EmailAddress string `json:"emailAddress"`
}
type PaymentProfileContactWithPhone ¶
type PaymentProfileContactWithPhone struct {
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Title string `json:"title,omitempty"`
Salutation string `json:"salutation"`
Company string `json:"company,omitempty"`
Address PaymentProfileContactAddress `json:"address"`
EmailAddress string `json:"emailAddress"`
Phone string `json:"phone"`
}
type PaymentProfileInvoiceSettings ¶
type PaymentProfileInvoiceSettings struct {
InvoiceRecipient *PaymentProfileContact `json:"invoiceRecipient,omitempty"`
AdditionalEmailRecipients []string `json:"additionalEmailRecipients,omitempty"`
PrintedInvoices bool `json:"printedInvoices"`
VatID string `json:"vatID,omitempty"`
}
type PaymentProfileReferenceInput ¶
type PaymentProfileReferenceInput struct {
ID string `json:"id"`
}
type Plan ¶
type Plan struct {
ID string `json:"id"`
Name string `json:"name"`
BasePrice *BasePrice `json:"basePrice"`
Features PlanFeatures `json:"features"`
}
type PlanFeature ¶ added in v1.11.0
type PlanFeature struct {
Included Quantity `json:"included"`
Exceedance Exceedances `json:"exceedance"`
}
type PlanFeatureBackup ¶ added in v1.11.0
type PlanFeatureBackup struct {
MinimumInterval Quantity `json:"minimumInterval"`
Options []PlanFeatureBackupOption `json:"options,omitempty"`
}
type PlanFeatureBackupOption ¶ added in v1.12.0
type PlanFeatureScaling ¶ added in v1.11.0
type PlanFeatureScaling struct {
Minimum Quantity `json:"minimum"`
Maximum Quantity `json:"maximum"`
Exceedance ExceedancesWithoutOnDemand `json:"exceedance"`
}
type PlanFeatures ¶ added in v1.11.0
type PlanFeatures struct {
Storage PlanFeature `json:"storage"`
Stages PlanFeature `json:"stages"`
Backups PlanFeatureBackup `json:"backups"`
Scaling PlanFeatureScaling `json:"scaling"`
}
type PlanReferenceInput ¶
type PlanReferenceInput struct {
ID string `json:"id"`
}
type SpaceOptionInput ¶ added in v1.12.0
type SpaceOptionInput struct {
BackupIntervalMinutes uint64 `json:"backupIntervalMinutes,omitempty"`
}
type SpaceResourcePreprovisioningInput ¶ added in v1.11.0
type SpaceResourcePreprovisioningInput struct {
Storage *SpaceResourcePreprovisioningInputItem `json:"storage,omitempty"`
Stages *SpaceResourcePreprovisioningInputItem `json:"stages,omitempty"`
Scaling *SpaceResourcePreprovisioningInputItem `json:"scaling,omitempty"`
}
type SpaceResourcePreprovisioningInputItem ¶ added in v1.11.0
type SpaceResourcePreprovisioningInputItem struct {
Quantity uint64 `json:"quantity"`
}
type Unit ¶ added in v1.11.0
type Unit int
func (*Unit) MarshalJSON ¶ added in v1.11.0
func (*Unit) UnmarshalJSON ¶ added in v1.11.0
Click to show internal directories.
Click to hide internal directories.