Versions in this module Expand all Collapse all v0 v0.1.0 Nov 14, 2026 Changes in this version + const DefaultBaseURL + const EnvBaseURL + const EnvToken + const ErrorCodeAccountPending + const ErrorCodeAccountSuspended + const ErrorCodeAccountTerminated + const ErrorCodeActionFailed + const ErrorCodeActionInProgress + const ErrorCodeAlready + const ErrorCodeAlreadyAdopted + const ErrorCodeAlreadyAssigned + const ErrorCodeAlreadyAttached + const ErrorCodeAlreadyExists + const ErrorCodeAlreadyLinked + const ErrorCodeAlreadyRevealed + const ErrorCodeAppliedBySelector + const ErrorCodeAwaitingPriceDifference + const ErrorCodeBackupAlreadyEnabled + const ErrorCodeBackupInProgress + const ErrorCodeBackupNotEnabled + const ErrorCodeBackupTooSoon + const ErrorCodeBadRequest + const ErrorCodeByoipNotFound + const ErrorCodeByoipWrongStage + const ErrorCodeCagefsNotReady + const ErrorCodeCampusMismatch + const ErrorCodeConfirmationMismatch + const ErrorCodeConfirmationRequired + const ErrorCodeConflict + const ErrorCodeConsoleBusy + const ErrorCodeConsoleUnavailable + const ErrorCodeCoreUnavailable + const ErrorCodeCreateRejected + const ErrorCodeCredentialsNotReady + const ErrorCodeDNSPTRRejected + const ErrorCodeDatacenterClosed + const ErrorCodeDatacenterMismatch + const ErrorCodeDatacenterNotFound + const ErrorCodeDatacenterUnavailable + const ErrorCodeDeleteNoteRequired + const ErrorCodeDeleteNoteTooLong + const ErrorCodeDemoServer + const ErrorCodeDiskCannotShrink + const ErrorCodeDomainExistsOnServer + const ErrorCodeDomainTaken + const ErrorCodeDowngradeNotAllowed + const ErrorCodeElasticIPBusy + const ErrorCodeEnabled + const ErrorCodeFailed + const ErrorCodeFeatureUnavailable + const ErrorCodeFirewallNotFound + const ErrorCodeFirewallProtected + const ErrorCodeFloatingIPBusy + const ErrorCodeForbidden + const ErrorCodeGateRequired + const ErrorCodeGuardRefused + const ErrorCodeHostPinMismatch + const ErrorCodeHostUnauthorized + const ErrorCodeHostUnreachable + const ErrorCodeHostnameTaken + const ErrorCodeHypervisorUnavailable + const ErrorCodeIDPrefixInUse + const ErrorCodeIDPrefixTaken + const ErrorCodeIP + const ErrorCodeIPChangeFeeNotConfirmed + const ErrorCodeIPChangeInProgress + const ErrorCodeIPChangeLimitReached + const ErrorCodeIPChangeUnavailable + const ErrorCodeIPInUse + const ErrorCodeIPNotAllowed + const ErrorCodeIPNotFound + const ErrorCodeIPNotRouted + const ErrorCodeIPOutsideNetwork + const ErrorCodeIPRenewAutomatic + const ErrorCodeIPReserved + const ErrorCodeIPV6Unavailable + const ErrorCodeIPsNotSold + const ErrorCodeIdempotencyKeyRequired + const ErrorCodeIdempotencyKeyReused + const ErrorCodeIdentityHold + const ErrorCodeIdentityNeeded + const ErrorCodeImageNeedsMoreRAM + const ErrorCodeImageNotFound + const ErrorCodeImageNotReady + const ErrorCodeImageRequired + const ErrorCodeImageTooLarge + const ErrorCodeImageUnavailable + const ErrorCodeInsufficientBalance + const ErrorCodeInsufficientScope + const ErrorCodeInternalError + const ErrorCodeInvalidAlgorithm + const ErrorCodeInvalidCount + const ErrorCodeInvalidCursor + const ErrorCodeInvalidDNSPTR + const ErrorCodeInvalidDeleteReason + const ErrorCodeInvalidDescription + const ErrorCodeInvalidFilesystem + const ErrorCodeInvalidFilter + const ErrorCodeInvalidID + const ErrorCodeInvalidIP + const ErrorCodeInvalidIPRange + const ErrorCodeInvalidIdempotencyKey + const ErrorCodeInvalidInput + const ErrorCodeInvalidKind + const ErrorCodeInvalidLabel + const ErrorCodeInvalidLabelSelector + const ErrorCodeInvalidLabels + const ErrorCodeInvalidMetrics + const ErrorCodeInvalidName + const ErrorCodeInvalidOperation + const ErrorCodeInvalidPage + const ErrorCodeInvalidProject + const ErrorCodeInvalidRequest + const ErrorCodeInvalidRoute + const ErrorCodeInvalidRule + const ErrorCodeInvalidSSHKey + const ErrorCodeInvalidSize + const ErrorCodeInvalidStage + const ErrorCodeInvalidState + const ErrorCodeInvalidSubnet + const ErrorCodeInvalidTarget + const ErrorCodeInvalidTargetIP + const ErrorCodeInvalidTransition + const ErrorCodeInvalidType + const ErrorCodeInvalidUserData + const ErrorCodeInvalidWindow + const ErrorCodeKey + const ErrorCodeLBBusy + const ErrorCodeLBLocked + const ErrorCodeLBNotReady + const ErrorCodeLBTypeNotFound + const ErrorCodeLastSubnet + const ErrorCodeLimitReached + const ErrorCodeLocked + const ErrorCodeMethodNotAllowed + const ErrorCodeMetricsUnavailable + const ErrorCodeNATGatewayBusy + const ErrorCodeNATGatewayRequired + const ErrorCodeNameTaken + const ErrorCodeNetworkAttached + const ErrorCodeNetworkDetached + const ErrorCodeNetworkInUse + const ErrorCodeNetworkListedTwice + const ErrorCodeNetworkNotFound + const ErrorCodeNetworkNotReady + const ErrorCodeNetworkRequired + const ErrorCodeNoCartForIP + const ErrorCodeNoDefaultWallet + const ErrorCodeNoLiveData + const ErrorCodeNoPrice + const ErrorCodeNoPriceDifference + const ErrorCodeNoPublicIPV4 + const ErrorCodeNoRate + const ErrorCodeNoTax + const ErrorCodeNotApplied + const ErrorCodeNotAssigned + const ErrorCodeNotAttached + const ErrorCodeNotByoip + const ErrorCodeNotCancellable + const ErrorCodeNotForSale + const ErrorCodeNotFound + const ErrorCodeNotImplemented + const ErrorCodeNotLinked + const ErrorCodeNotOnPanel + const ErrorCodeNotOrderedYet + const ErrorCodeNotParked + const ErrorCodeNotPrivateRange + const ErrorCodeNotReady + const ErrorCodeNotRenewedAtSupplier + const ErrorCodeNotRouted + const ErrorCodeOrderCancelled + const ErrorCodeOrderUnavailable + const ErrorCodeOvhOrderIDRequired + const ErrorCodeOvhOrderNotFound + const ErrorCodeOvhOrderUsed + const ErrorCodePanelAccountMissing + const ErrorCodePanelUnavailable + const ErrorCodePhpSelectorDisabled + const ErrorCodePhpSelectorNeedsCagefs + const ErrorCodePhpSelectorUnavailable + const ErrorCodePlacementGroupBusy + const ErrorCodePlacementGroupDatacenter + const ErrorCodePlacementGroupFull + const ErrorCodePlacementGroupInUse + const ErrorCodePlacementGroupNotFound + const ErrorCodePlanMismatch + const ErrorCodePlanNotFound + const ErrorCodePlanSoldOut + const ErrorCodePlanUnavailable + const ErrorCodePrepaidTerm + const ErrorCodePreviewExists + const ErrorCodePreviewReadOnly + const ErrorCodePrimaryNetwork + const ErrorCodePrivateIPRequired + const ErrorCodeProjectNotFound + const ErrorCodeProjectsUnavailable + const ErrorCodeProtected + const ErrorCodePurchaseMismatch + const ErrorCodeQuotaExceeded + const ErrorCodeRateLimitExceeded + const ErrorCodeRateLimited + const ErrorCodeRdnsTemporarilyUnavailable + const ErrorCodeRdnsUnavailable + const ErrorCodeRebuildProtected + const ErrorCodeRedisNeedsCagefs + const ErrorCodeRedisNotRunning + const ErrorCodeRedisOff + const ErrorCodeRedisTierUnavailable + const ErrorCodeRefundUnavailable + const ErrorCodeReinstallInProgress + const ErrorCodeRenewalClosed + const ErrorCodeRenewalNotDue + const ErrorCodeRenewalNotPaid + const ErrorCodeRenewalPaid + const ErrorCodeRequestFailed + const ErrorCodeRescueDisabled + const ErrorCodeRescueEnabled + const ErrorCodeResellerAccountLimit + const ErrorCodeResellerResourceLimit + const ErrorCodeResourceInUse + const ErrorCodeRoutedElsewhere + const ErrorCodeRulesNotAccepted + const ErrorCodeRulesOutdated + const ErrorCodeSSHKeyNotFound + const ErrorCodeSSHKeysUnavailable + const ErrorCodeSameAlgorithm + const ErrorCodeSamePlan + const ErrorCodeSameType + const ErrorCodeServerBusy + const ErrorCodeServerFailed + const ErrorCodeServerHasPublicIP + const ErrorCodeServerInRescue + const ErrorCodeServerInUse + const ErrorCodeServerLocked + const ErrorCodeServerMissing + const ErrorCodeServerMustBeOff + const ErrorCodeServerNotBilledYet + const ErrorCodeServerNotCapped + const ErrorCodeServerNotFound + const ErrorCodeServerNotInNetwork + const ErrorCodeServerNotReady + const ErrorCodeServerNotRunning + const ErrorCodeServerNotSuspended + const ErrorCodeServerPending + const ErrorCodeServerPrivateOnly + const ErrorCodeServerProtected + const ErrorCodeServerProvisioning + const ErrorCodeServerRequired + const ErrorCodeServerSuspended + const ErrorCodeServerTerminated + const ErrorCodeServerUnreachable + const ErrorCodeServiceGone + const ErrorCodeServiceLinked + const ErrorCodeServiceNotFound + const ErrorCodeServiceNotThisOrder + const ErrorCodeServicePredatesOrder + const ErrorCodeShellDisabled + const ErrorCodeShellNotConfined + const ErrorCodeSkuUnavailable + const ErrorCodeSnapshotsInProgress + const ErrorCodeSoldOut + const ErrorCodeStatus + const ErrorCodeSubnetExists + const ErrorCodeSubnetInUse + const ErrorCodeSubnetNotFound + const ErrorCodeSubnetNotReady + const ErrorCodeSubnetOutsideRange + const ErrorCodeSubnetOverlaps + const ErrorCodeSuperseded + const ErrorCodeSupplierUnavailable + const ErrorCodeSuspendedByProvider + const ErrorCodeTargetExists + const ErrorCodeTargetNotFound + const ErrorCodeTaskTimeout + const ErrorCodeTemplateUnavailable + const ErrorCodeTooManyLabels + const ErrorCodeTooManyNetworks + const ErrorCodeTooManyRoutes + const ErrorCodeTooManyRules + const ErrorCodeTooManySSHKeys + const ErrorCodeTooManySelectors + const ErrorCodeTooManyServices + const ErrorCodeTooManySubnets + const ErrorCodeTooManyTargets + const ErrorCodeTooManyVolumes + const ErrorCodeTrafficUnavailable + const ErrorCodeTypeTooSmall + const ErrorCodeUnauthorized + const ErrorCodeUnavailable + const ErrorCodeUnavailableCombo + const ErrorCodeUnknownCountry + const ErrorCodeUnknownIPOffer + const ErrorCodeUnlimited + const ErrorCodeUnpricedOrder + const ErrorCodeUpstreamError + const ErrorCodeUpstreamUnavailable + const ErrorCodeUserDataTooLarge + const ErrorCodeUsernameTaken + const ErrorCodeValidationError + const ErrorCodeValidationFailed + const ErrorCodeVerifyOvhOrder + const ErrorCodeVmNotFound + const ErrorCodeVolumeAttached + const ErrorCodeVolumeBusy + const ErrorCodeVolumeCannotShrink + const ErrorCodeVolumeDetached + const ErrorCodeVolumeNotFound + const ErrorCodeVolumeNotReady + const ErrorCodeVolumeProtected + const ErrorCodeVolumesNeedOneServer + const ErrorCodeWritesUnavailable + const ErrorCodeWrongBlock + const ErrorCodeWrongBlockSize + const RegionHeader + const Version + func Bool(v bool) *bool + func Float(v float64) *float64 + func HasCode(err error, code string) bool + func Int(v int64) *int64 + func IsForbidden(err error) bool + func IsNotFound(err error) bool + func IsRateLimited(err error) bool + func IsUnauthorized(err error) bool + func StatusCode(err error) int + func String(v string) *string + type APIError struct + Body []byte + Code string + Message string + Reason string + RequestID string + RetryAfter time.Duration + StatusCode int + func (e *APIError) Error() string + type BaremetalGetPlanOptionsParams struct + Datacenter *string + Gpu *string + Memory *string + Storage *string + SystemStorage *string + type BaremetalGetServerTrafficParams struct + Link *string + Period *string + type BaremetalListPlansParams struct + Range *string + Supplier *string + type BaremetalListRangesParams struct + Supplier *string + type BaremetalService struct + func (s *BaremetalService) CancelOrder(ctx context.Context, id string, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) CreateOrder(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) GetOrder(ctx context.Context, id string, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) GetPlanOptions(ctx context.Context, catalog string, plan string, ...) (*Response, error) + func (s *BaremetalService) GetReinstall(ctx context.Context, id string, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) GetRules(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) GetServer(ctx context.Context, id string, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) GetServerDetails(ctx context.Context, id string, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) GetServerHistory(ctx context.Context, id string, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) GetServerTraffic(ctx context.Context, id string, params *BaremetalGetServerTrafficParams, ...) (*Response, error) + func (s *BaremetalService) ListByoipDestinations(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) ListIPOffers(ctx context.Context, id string, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) ListIPRenewals(ctx context.Context, id string, ip string, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) ListOSTemplates(ctx context.Context, id string, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) ListOrders(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) ListPlans(ctx context.Context, params *BaremetalListPlansParams, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) ListRanges(ctx context.Context, params *BaremetalListRangesParams, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) ListRenewals(ctx context.Context, id string, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) ListServerIPs(ctx context.Context, id string, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) ListServers(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) ListSuppliers(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) OpenServerConsole(ctx context.Context, id string, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) OrderIP(ctx context.Context, id string, body any, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) PayOrderDifference(ctx context.Context, id string, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) Quote(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) QuoteIP(ctx context.Context, id string, body any, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) ReinstallServer(ctx context.Context, id string, body any, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) RenewIP(ctx context.Context, id string, ip string, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) RenewServer(ctx context.Context, id string, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) RevealCredentials(ctx context.Context, id string, opts ...RequestOption) (*Response, error) + func (s *BaremetalService) WithRegion(region string) *BaremetalService + type Client struct + Baremetal *BaremetalService + Cloud *CloudService + Core *CoreService + Hosting *HostingService + RegionalVPS *RegionalVPSService + SMS *SMSService + func NewClient(token string, opts ...Option) *Client + func (c *Client) Do(ctx context.Context, method, path string, query url.Values, body any, ...) (*Response, error) + type CloudDeleteServerParams struct + DeleteSnapshots *bool + KeepBackups *bool + Note *string + Reason *string + type CloudGetServerMetricsParams struct + End *string + Start *string + Step *int64 + Type *string + type CloudListActionEventsParams struct + After *int64 + Limit *int64 + type CloudListActionsParams struct + Limit *int64 + Page *int64 + PerPage *int64 + ResourceID *int64 + ResourceType *string + Since *string + Status *string + type CloudListBackupsParams struct + LabelSelector *string + Page *int64 + PerPage *int64 + ProjectID *int64 + type CloudListCustomImagesParams struct + Datacenter *string + type CloudListElasticIPsParams struct + LabelSelector *string + Page *int64 + PerPage *int64 + ProjectID *int64 + type CloudListFirewallsParams struct + LabelSelector *string + Page *int64 + PerPage *int64 + ProjectID *int64 + type CloudListFloatingIPsParams struct + LabelSelector *string + Page *int64 + PerPage *int64 + ProjectID *int64 + type CloudListImagesParams struct + Datacenter *string + LabelSelector *string + Page *int64 + PerPage *int64 + ProjectID *int64 + Type *string + type CloudListLimitsParams struct + Datacenter *string + type CloudListLoadBalancersParams struct + LabelSelector *string + Page *int64 + PerPage *int64 + ProjectID *int64 + type CloudListNATGatewaysParams struct + LabelSelector *string + Page *int64 + PerPage *int64 + ProjectID *int64 + type CloudListNetworksParams struct + LabelSelector *string + Page *int64 + PerPage *int64 + ProjectID *int64 + type CloudListPlacementGroupsParams struct + LabelSelector *string + Page *int64 + PerPage *int64 + ProjectID *int64 + type CloudListPlansParams struct + Datacenter *string + type CloudListPricingParams struct + Datacenter *string + type CloudListPrimaryIPsParams struct + LabelSelector *string + Page *int64 + PerPage *int64 + ProjectID *int64 + type CloudListServerEventsParams struct + After *int64 + Limit *int64 + type CloudListServersParams struct + LabelSelector *string + Page *int64 + PerPage *int64 + ProjectID *int64 + type CloudListSnapshotsParams struct + LabelSelector *string + Page *int64 + PerPage *int64 + ProjectID *int64 + type CloudListVolumesParams struct + LabelSelector *string + Page *int64 + PerPage *int64 + ProjectID *int64 + type CloudService struct + func (s *CloudService) AddSubnet(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) AttachServerToNetwork(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) ChangePrimaryIPDNSPTR(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) ChangeServerBackupWindow(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) ConvertBackup(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) CreateElasticIP(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) CreateFirewall(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) CreateFloatingIP(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) CreateLoadBalancer(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) CreateNATGateway(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) CreateNetwork(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) CreatePlacementGroup(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) CreateServer(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) CreateServerBackup(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) CreateServerSnapshot(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) CreateVolume(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) DeleteBackup(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) DeleteElasticIP(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) DeleteFirewall(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) DeleteFloatingIP(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) DeleteLoadBalancer(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) DeleteNATGateway(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) DeleteNetwork(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) DeletePlacementGroup(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) DeleteServer(ctx context.Context, id int64, params *CloudDeleteServerParams, ...) (*Response, error) + func (s *CloudService) DeleteSnapshot(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) DeleteSubnet(ctx context.Context, id int64, subnet int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) DeleteVolume(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) DetachServerFromNetwork(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) DisableServerBackup(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) ElasticIPAction(ctx context.Context, id int64, op string, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) EnableServerBackup(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) FirewallAction(ctx context.Context, id int64, op string, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) FloatingIPAction(ctx context.Context, id int64, op string, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) GetAction(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) GetBackup(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) GetElasticIP(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) GetFirewall(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) GetFloatingIP(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) GetLoadBalancer(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) GetLoadBalancerHealth(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) GetNATGateway(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) GetNetwork(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) GetPlacementGroup(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) GetPrimaryIP(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) GetPublicPricing(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *CloudService) GetServer(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) GetServerCosts(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) GetServerMetrics(ctx context.Context, id int64, params *CloudGetServerMetricsParams, ...) (*Response, error) + func (s *CloudService) GetServerNetworking(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) GetServerStorage(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) GetSnapshot(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) GetVolume(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListActionEvents(ctx context.Context, id int64, params *CloudListActionEventsParams, ...) (*Response, error) + func (s *CloudService) ListActions(ctx context.Context, params *CloudListActionsParams, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListBackups(ctx context.Context, params *CloudListBackupsParams, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListCustomImages(ctx context.Context, params *CloudListCustomImagesParams, ...) (*Response, error) + func (s *CloudService) ListDatacenterImages(ctx context.Context, code string, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListDatacenters(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListElasticIPActions(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListElasticIPs(ctx context.Context, params *CloudListElasticIPsParams, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListFirewallActions(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListFirewalls(ctx context.Context, params *CloudListFirewallsParams, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListFloatingIPActions(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListFloatingIPs(ctx context.Context, params *CloudListFloatingIPsParams, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListImages(ctx context.Context, params *CloudListImagesParams, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListLimits(ctx context.Context, params *CloudListLimitsParams, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListLoadBalancerActions(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListLoadBalancerTypes(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListLoadBalancers(ctx context.Context, params *CloudListLoadBalancersParams, ...) (*Response, error) + func (s *CloudService) ListNATGatewayActions(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListNATGateways(ctx context.Context, params *CloudListNATGatewaysParams, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListNetworkActions(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListNetworks(ctx context.Context, params *CloudListNetworksParams, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListPlacementGroups(ctx context.Context, params *CloudListPlacementGroupsParams, ...) (*Response, error) + func (s *CloudService) ListPlans(ctx context.Context, params *CloudListPlansParams, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListPricing(ctx context.Context, params *CloudListPricingParams, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListPrimaryIPActions(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListPrimaryIPs(ctx context.Context, params *CloudListPrimaryIPsParams, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListServerActions(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListServerBackups(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListServerEvents(ctx context.Context, id int64, params *CloudListServerEventsParams, ...) (*Response, error) + func (s *CloudService) ListServerIPChanges(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListServerSnapshots(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListServers(ctx context.Context, params *CloudListServersParams, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListSnapshots(ctx context.Context, params *CloudListSnapshotsParams, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListVolumePrices(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *CloudService) ListVolumes(ctx context.Context, params *CloudListVolumesParams, opts ...RequestOption) (*Response, error) + func (s *CloudService) LoadBalancerAction(ctx context.Context, id int64, op string, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) OpenServerConsole(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CloudService) ReplaceFirewall(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) RestoreServerBackup(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) ServerAction(ctx context.Context, id int64, op string, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) SetFirewallServers(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) SetNetworkRoutes(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) UpdateElasticIP(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) UpdateFirewall(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) UpdateFloatingIP(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) UpdateLoadBalancer(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) UpdateNATGateway(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) UpdateNetwork(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) UpdatePlacementGroup(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) UpdatePrimaryIP(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) UpdateServer(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) UpdateSnapshot(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) UpdateVolume(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) VolumeAction(ctx context.Context, id int64, op string, body any, opts ...RequestOption) (*Response, error) + func (s *CloudService) WithRegion(region string) *CloudService + type ConnectionError struct + Err error + func (e *ConnectionError) Error() string + func (e *ConnectionError) Unwrap() error + type CoreListFirewallsParams struct + Limit *int64 + Page *int64 + type CoreListInvoicesParams struct + Limit *int64 + Page *int64 + Status *string + type CoreListRegionsParams struct + SystemName *string + type CoreListSSHKeysParams struct + Limit *int64 + Page *int64 + type CoreListServerActionsParams struct + Limit *int64 + type CoreListServersParams struct + Limit *int64 + Page *int64 + Status *string + type CoreListTransactionsParams struct + Limit *int64 + Page *int64 + type CoreService struct + func (s *CoreService) AddFirewallRule(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CoreService) AttachFirewall(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CoreService) CreateFirewall(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *CoreService) CreateSSHKey(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *CoreService) CreateServer(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *CoreService) DeleteFirewall(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CoreService) DeleteFirewallRule(ctx context.Context, id int64, ruleID string, opts ...RequestOption) (*Response, error) + func (s *CoreService) DeleteSSHKey(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CoreService) DeleteServer(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CoreService) DetachFirewall(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CoreService) GetBalance(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *CoreService) GetFirewall(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CoreService) GetInvoice(ctx context.Context, number string, opts ...RequestOption) (*Response, error) + func (s *CoreService) GetMe(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *CoreService) GetPlan(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CoreService) GetSSHKey(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CoreService) GetServer(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CoreService) GetServerStatus(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CoreService) ListFirewalls(ctx context.Context, params *CoreListFirewallsParams, opts ...RequestOption) (*Response, error) + func (s *CoreService) ListInvoices(ctx context.Context, params *CoreListInvoicesParams, opts ...RequestOption) (*Response, error) + func (s *CoreService) ListOSByDatacenter(ctx context.Context, datacenterID int64, opts ...RequestOption) (*Response, error) + func (s *CoreService) ListPlansByDatacenter(ctx context.Context, datacenterID int64, opts ...RequestOption) (*Response, error) + func (s *CoreService) ListRegions(ctx context.Context, params *CoreListRegionsParams, opts ...RequestOption) (*Response, error) + func (s *CoreService) ListSSHKeys(ctx context.Context, params *CoreListSSHKeysParams, opts ...RequestOption) (*Response, error) + func (s *CoreService) ListServerActions(ctx context.Context, id int64, params *CoreListServerActionsParams, ...) (*Response, error) + func (s *CoreService) ListServers(ctx context.Context, params *CoreListServersParams, opts ...RequestOption) (*Response, error) + func (s *CoreService) ListTokens(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *CoreService) ListTransactions(ctx context.Context, params *CoreListTransactionsParams, opts ...RequestOption) (*Response, error) + func (s *CoreService) Logout(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *CoreService) PowerOffServer(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CoreService) PowerOnServer(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CoreService) ReinstallServer(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CoreService) RenameServer(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CoreService) RestartServer(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CoreService) RevokeToken(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *CoreService) ToggleServerProtection(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CoreService) UpdateFirewall(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CoreService) UpdateSSHKey(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *CoreService) WithRegion(region string) *CoreService + type HostingGetCloudLinuxParams struct + Refresh *string + type HostingGetPhpSelectorParams struct + Refresh *string + type HostingGetRedisParams struct + Refresh *string + type HostingGetRedisUsageParams struct + Period *string + type HostingGetResourceUsageParams struct + Period *string + Refresh *string + type HostingGetShellParams struct + Refresh *string + type HostingGetTrafficParams struct + Refresh *string + type HostingListAccountActionsParams struct + Limit *int64 + type HostingListActionsParams struct + Limit *int64 + type HostingListAlertsParams struct + Limit *int64 + type HostingListPlansParams struct + Datacenter *string + Kind *string + type HostingListSSHKeysParams struct + Refresh *string + type HostingService struct + func (s *HostingService) AccountOperation(ctx context.Context, id int64, op string, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) AddSSHKey(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) ChangeDomain(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) CreateAccount(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) CreateDNSRecord(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) CreateDatabase(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) CreateDatabaseUser(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) CreateMailbox(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) DeleteDNSRecord(ctx context.Context, id int64, record string, opts ...RequestOption) (*Response, error) + func (s *HostingService) DeleteDatabase(ctx context.Context, id int64, name string, opts ...RequestOption) (*Response, error) + func (s *HostingService) DeleteDatabaseUser(ctx context.Context, id int64, name string, opts ...RequestOption) (*Response, error) + func (s *HostingService) DeleteMailbox(ctx context.Context, id int64, localPart string, opts ...RequestOption) (*Response, error) + func (s *HostingService) DeleteSSHKey(ctx context.Context, id int64, name string, opts ...RequestOption) (*Response, error) + func (s *HostingService) FlushRedis(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *HostingService) GetAccount(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *HostingService) GetAction(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *HostingService) GetCloudLinux(ctx context.Context, id int64, params *HostingGetCloudLinuxParams, ...) (*Response, error) + func (s *HostingService) GetNameservers(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *HostingService) GetPhpSelector(ctx context.Context, id int64, params *HostingGetPhpSelectorParams, ...) (*Response, error) + func (s *HostingService) GetRedis(ctx context.Context, id int64, params *HostingGetRedisParams, ...) (*Response, error) + func (s *HostingService) GetRedisUsage(ctx context.Context, id int64, params *HostingGetRedisUsageParams, ...) (*Response, error) + func (s *HostingService) GetResellerUsage(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *HostingService) GetResourceUsage(ctx context.Context, id int64, params *HostingGetResourceUsageParams, ...) (*Response, error) + func (s *HostingService) GetShell(ctx context.Context, id int64, params *HostingGetShellParams, ...) (*Response, error) + func (s *HostingService) GetTraffic(ctx context.Context, id int64, params *HostingGetTrafficParams, ...) (*Response, error) + func (s *HostingService) GetUsage(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *HostingService) GrantDatabase(ctx context.Context, id int64, name string, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) ListAccountActions(ctx context.Context, id int64, params *HostingListAccountActionsParams, ...) (*Response, error) + func (s *HostingService) ListAccounts(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *HostingService) ListActions(ctx context.Context, params *HostingListActionsParams, opts ...RequestOption) (*Response, error) + func (s *HostingService) ListAlerts(ctx context.Context, id int64, params *HostingListAlertsParams, ...) (*Response, error) + func (s *HostingService) ListDNSRecords(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *HostingService) ListDatabaseUsers(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *HostingService) ListDatabases(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *HostingService) ListDatacenters(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *HostingService) ListMailboxes(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *HostingService) ListPlans(ctx context.Context, params *HostingListPlansParams, opts ...RequestOption) (*Response, error) + func (s *HostingService) ListResellerAccounts(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *HostingService) ListResellerPackages(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *HostingService) ListSSHKeys(ctx context.Context, id int64, params *HostingListSSHKeysParams, ...) (*Response, error) + func (s *HostingService) Login(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) ResellerChangeDomain(ctx context.Context, id int64, username string, body any, ...) (*Response, error) + func (s *HostingService) ResellerCreateAccount(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) ResellerLogin(ctx context.Context, id int64, username string, body any, ...) (*Response, error) + func (s *HostingService) ResellerResetAccount(ctx context.Context, id int64, username string, body any, ...) (*Response, error) + func (s *HostingService) ResellerSetPackage(ctx context.Context, id int64, username string, body any, ...) (*Response, error) + func (s *HostingService) ResellerSetPassword(ctx context.Context, id int64, username string, body any, ...) (*Response, error) + func (s *HostingService) ResellerSuspend(ctx context.Context, id int64, username string, body any, ...) (*Response, error) + func (s *HostingService) ResellerTerminateAccount(ctx context.Context, id int64, username string, body any, ...) (*Response, error) + func (s *HostingService) ResellerUnsuspend(ctx context.Context, id int64, username string, opts ...RequestOption) (*Response, error) + func (s *HostingService) RestartRedis(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *HostingService) RotateRedisPassword(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *HostingService) SetAccountPassword(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) SetPhpExtensions(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) SetPhpOptions(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) SetPhpVersion(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) SetRedis(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) SetShell(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) SetTrafficSettings(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) TerminateAccount(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *HostingService) UpdateAccount(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) UpdateDNSRecord(ctx context.Context, id int64, record string, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) UpdateDatabaseUser(ctx context.Context, id int64, name string, body any, opts ...RequestOption) (*Response, error) + func (s *HostingService) UpdateMailbox(ctx context.Context, id int64, localPart string, body any, ...) (*Response, error) + func (s *HostingService) WithRegion(region string) *HostingService + type Option func(*Client) + func WithBaseURL(u string) Option + func WithHTTPClient(hc *http.Client) Option + func WithMaxRetries(n int) Option + func WithMaxRetryWait(d time.Duration) Option + func WithUserAgent(ua string) Option + type RegionalVPSGetTrafficParams struct + From *string + Granularity *string + To *string + type RegionalVPSListActionsParams struct + Limit *int64 + type RegionalVPSListImagesParams struct + Datacenter *string + type RegionalVPSListPlansParams struct + Datacenter *string + type RegionalVPSListServerActionsParams struct + Limit *int64 + type RegionalVPSService struct + func (s *RegionalVPSService) CreateServer(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *RegionalVPSService) GetAction(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *RegionalVPSService) GetConsole(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *RegionalVPSService) GetServer(ctx context.Context, id int64, opts ...RequestOption) (*Response, error) + func (s *RegionalVPSService) GetTraffic(ctx context.Context, id int64, params *RegionalVPSGetTrafficParams, ...) (*Response, error) + func (s *RegionalVPSService) ListActions(ctx context.Context, params *RegionalVPSListActionsParams, ...) (*Response, error) + func (s *RegionalVPSService) ListDatacenters(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *RegionalVPSService) ListImages(ctx context.Context, params *RegionalVPSListImagesParams, ...) (*Response, error) + func (s *RegionalVPSService) ListPlans(ctx context.Context, params *RegionalVPSListPlansParams, opts ...RequestOption) (*Response, error) + func (s *RegionalVPSService) ListServerActions(ctx context.Context, id int64, params *RegionalVPSListServerActionsParams, ...) (*Response, error) + func (s *RegionalVPSService) ListServers(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *RegionalVPSService) ReinstallServer(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *RegionalVPSService) ResetServerPassword(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *RegionalVPSService) ResizeServer(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *RegionalVPSService) ServerOperation(ctx context.Context, id int64, op string, opts ...RequestOption) (*Response, error) + func (s *RegionalVPSService) SetTrafficSettings(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *RegionalVPSService) TerminateServer(ctx context.Context, id int64, body any, opts ...RequestOption) (*Response, error) + func (s *RegionalVPSService) WithRegion(region string) *RegionalVPSService + type RequestOption func(*requestConfig) + func WithHeader(name, value string) RequestOption + func WithIdempotencyKey(key string) RequestOption + func WithRegion(region string) RequestOption + type Response struct + Body []byte + Header http.Header + StatusCode int + func (r *Response) Decode(v any) error + func (r *Response) DecodeData(v any) error + type SMSGetReportSummaryParams struct + From *string + To *string + type SMSListBatchesParams struct + Page *int64 + PerPage *int64 + Status *string + type SMSListBlockedRecipientsParams struct + Page *int64 + PerPage *int64 + Phone *string + type SMSListInboundParams struct + Page *int64 + PerPage *int64 + type SMSListLinesParams struct + Page *int64 + PerPage *int64 + type SMSListMessagesParams struct + BatchID *string + Page *int64 + PerPage *int64 + Status *string + To *string + type SMSListScheduledParams struct + Page *int64 + PerPage *int64 + type SMSListTemplatesParams struct + Page *int64 + PerPage *int64 + type SMSService struct + func (s *SMSService) BlockRecipient(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *SMSService) CancelScheduled(ctx context.Context, scheduled string, opts ...RequestOption) (*Response, error) + func (s *SMSService) CreateTemplate(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *SMSService) DeleteTemplate(ctx context.Context, template string, opts ...RequestOption) (*Response, error) + func (s *SMSService) GetBatch(ctx context.Context, batch string, opts ...RequestOption) (*Response, error) + func (s *SMSService) GetMessage(ctx context.Context, message string, opts ...RequestOption) (*Response, error) + func (s *SMSService) GetPrices(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *SMSService) GetReportSummary(ctx context.Context, params *SMSGetReportSummaryParams, opts ...RequestOption) (*Response, error) + func (s *SMSService) GetTemplate(ctx context.Context, template string, opts ...RequestOption) (*Response, error) + func (s *SMSService) GetWebhook(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *SMSService) ListBatches(ctx context.Context, params *SMSListBatchesParams, opts ...RequestOption) (*Response, error) + func (s *SMSService) ListBlockedRecipients(ctx context.Context, params *SMSListBlockedRecipientsParams, ...) (*Response, error) + func (s *SMSService) ListInbound(ctx context.Context, params *SMSListInboundParams, opts ...RequestOption) (*Response, error) + func (s *SMSService) ListLines(ctx context.Context, params *SMSListLinesParams, opts ...RequestOption) (*Response, error) + func (s *SMSService) ListMessages(ctx context.Context, params *SMSListMessagesParams, opts ...RequestOption) (*Response, error) + func (s *SMSService) ListScheduled(ctx context.Context, params *SMSListScheduledParams, opts ...RequestOption) (*Response, error) + func (s *SMSService) ListTemplates(ctx context.Context, params *SMSListTemplatesParams, opts ...RequestOption) (*Response, error) + func (s *SMSService) RequestLine(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *SMSService) RotateWebhookSecret(ctx context.Context, opts ...RequestOption) (*Response, error) + func (s *SMSService) SendMessage(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *SMSService) SetWebhook(ctx context.Context, body any, opts ...RequestOption) (*Response, error) + func (s *SMSService) UnblockRecipient(ctx context.Context, blockedRecipient string, opts ...RequestOption) (*Response, error) + func (s *SMSService) UpdateTemplate(ctx context.Context, template string, body any, opts ...RequestOption) (*Response, error) + func (s *SMSService) WithRegion(region string) *SMSService