VultrClient
in package
Table of Contents
Properties
- $account : AccountService
- $applications : ApplicationService
- $backups : BackupService
- $baremetal : BareMetalService
- $billing : BillingService
- $blockstorage : BlockStorageService
- $dns : DNSService
- $firewall : FirewallService
- $instances : InstanceService
- $iso : ISOService
- $kubernetes : KubernetesService
- $loadbalancers : LoadBalancerService
- $objectstorage : ObjectStorageService
- $operating_system : OperatingSystemService
- $plans : PlanService
- $regions : RegionService
- $reserved_ip : ReservedIPService
- $snapshots : SnapshotService
- $ssh_keys : SSHKeyService
- $startup_scripts : StartupScriptService
- $users : UserService
- $vpc : VPCService
- $_account : AccountService
- $_applications : ApplicationService
- $_backups : BackupService
- $_baremetal : BareMetalService
- $_billing : BillingService
- $_blockstorage : BlockStorageService
- $_dns : DNSService
- $_firewall : FirewallService
- $_instances : InstanceService
- $_iso : ISOService
- $_kubernetes : KubernetesService
- $_loadbalancers : LoadBalancerService
- $_objectstorage : ObjectStorageService
- $_operating_system : OperatingSystemService
- $_plans : PlanService
- $_regions : RegionService
- $_reserved_ip : ReservedIPService
- $_snapshots : SnapshotService
- $_ssh_keys : SSHKeyService
- $_startup_scripts : StartupScriptService
- $_users : UserService
- $_vpc : VPCService
- $client : VultrClientHandler
- $service_props : array<string|int, int>
Methods
- __get() : mixed
- Magic method that allows interaction with readonly properties that house service handlers.
- create() : VultrClient
- The entry point into using the client and all its related services.
- setClient() : void
- setRequestFactory() : void
- setResponseFactory() : void
- setStreamFactory() : void
- setClientHandler() : void
- __construct() : mixed
Properties
$account read-only
public
AccountService
$account
$applications read-only
public
ApplicationService
$applications
$backups read-only
public
BackupService
$backups
$baremetal read-only
public
BareMetalService
$baremetal
$billing read-only
public
BillingService
$billing
$blockstorage read-only
public
BlockStorageService
$blockstorage
$dns read-only
public
DNSService
$dns
$firewall read-only
public
FirewallService
$firewall
$instances read-only
public
InstanceService
$instances
$iso read-only
public
ISOService
$iso
$kubernetes read-only
public
KubernetesService
$kubernetes
$loadbalancers read-only
public
LoadBalancerService
$loadbalancers
$objectstorage read-only
public
ObjectStorageService
$objectstorage
$operating_system read-only
public
OperatingSystemService
$operating_system
$plans read-only
public
PlanService
$plans
$regions read-only
public
RegionService
$regions
$reserved_ip read-only
public
ReservedIPService
$reserved_ip
$snapshots read-only
public
SnapshotService
$snapshots
$ssh_keys read-only
public
SSHKeyService
$ssh_keys
$startup_scripts read-only
public
StartupScriptService
$startup_scripts
$users read-only
public
UserService
$users
$vpc read-only
public
VPCService
$vpc
$_account
private
AccountService
$_account
$_applications
private
ApplicationService
$_applications
$_backups
private
BackupService
$_backups
$_baremetal
private
BareMetalService
$_baremetal
$_billing
private
BillingService
$_billing
$_blockstorage
private
BlockStorageService
$_blockstorage
$_dns
private
DNSService
$_dns
$_firewall
private
FirewallService
$_firewall
$_instances
private
InstanceService
$_instances
$_iso
private
ISOService
$_iso
$_kubernetes
private
KubernetesService
$_kubernetes
$_loadbalancers
private
LoadBalancerService
$_loadbalancers
$_objectstorage
private
ObjectStorageService
$_objectstorage
$_operating_system
private
OperatingSystemService
$_operating_system
$_plans
private
PlanService
$_plans
$_regions
private
RegionService
$_regions
$_reserved_ip
private
ReservedIPService
$_reserved_ip
$_snapshots
private
SnapshotService
$_snapshots
$_ssh_keys
private
SSHKeyService
$_ssh_keys
$_startup_scripts
private
StartupScriptService
$_startup_scripts
$_users
private
UserService
$_users
$_vpc
private
VPCService
$_vpc
$client
private
VultrClientHandler
$client
$service_props
private
array<string|int, int>
$service_props
= []
Methods
__get()
Magic method that allows interaction with readonly properties that house service handlers.
public
__get(string $name) : mixed
Client will return null if the service object does not exist.
Parameters
- $name : string
create()
The entry point into using the client and all its related services.
public
static create(string $API_KEY[, ClientInterface|null $http = null ][, RequestFactoryInterface|null $request = null ][, ResponseFactoryInterface|null $response = null ][, StreamFactoryInterface|null $stream = null ]) : VultrClient
Parameters
- $API_KEY : string
- $http : ClientInterface|null = null
- $request : RequestFactoryInterface|null = null
- $response : ResponseFactoryInterface|null = null
- $stream : StreamFactoryInterface|null = null
Return values
VultrClientsetClient()
public
setClient(ClientInterface $http) : void
Parameters
- $http : ClientInterface
setRequestFactory()
public
setRequestFactory(RequestFactoryInterface $request) : void
Parameters
- $request : RequestFactoryInterface
setResponseFactory()
public
setResponseFactory(ResponseFactoryInterface $response) : void
Parameters
- $response : ResponseFactoryInterface
setStreamFactory()
public
setStreamFactory(StreamFactoryInterface $stream) : void
Parameters
- $stream : StreamFactoryInterface
setClientHandler()
protected
setClientHandler(string $API_KEY[, ClientInterface|null $http = null ][, RequestFactoryInterface|null $request = null ][, ResponseFactoryInterface|null $response = null ][, StreamFactoryInterface|null $stream = null ]) : void
Parameters
- $API_KEY : string
- $http : ClientInterface|null = null
- $request : RequestFactoryInterface|null = null
- $response : ResponseFactoryInterface|null = null
- $stream : StreamFactoryInterface|null = null
__construct()
private
__construct(string $API_KEY[, $http = null ][, $request = null ][, $response = null ][, $stream = null ]) : mixed
Parameters
- $API_KEY : string
- $http : = null
-
- PSR18 ClientInterface - https://www.php-fig.org/psr/psr-18/
- $request : = null
-
- PSR17 RequestFactoryInterface - https://www.php-fig.org/psr/psr-17/#21-requestfactoryinterface
- $response : = null
-
- PSR17 ResponseFactoryInterface - https://www.php-fig.org/psr/psr-17/#22-responsefactoryinterface
- $stream : = null
-
- PSR17 StreamFactoryInterface - https://www.php-fig.org/psr/psr-17/#22-responsefactoryinterface