Documentation

ISOService extends VultrService
in package

ISO service handler, for all iso endpoints.

Tags
see
https://www.vultr.com/api/#tag/iso

Table of Contents

Properties

$vultr  : VultrClient
$client  : VultrClientHandler

Methods

__construct()  : mixed
createISO()  : ISO
Create an ISO from a url endpoint
deleteISO()  : void
Delete an ISO on the account.
getISO()  : ISO
Get the ISO on the account.
getISOs()  : array<string|int, ISO>
Get ISOS on the account.
getPublicISOs()  : array<string|int, PublicISO>
Get all publically available isos regardless of account.
createObject()  : ModelInterface
deleteObject()  : void
getClientHandler()  : VultrClientHandler
getListObjects()  : array<string|int, ModelInterface>
getObject()  : ModelInterface
getVultrClient()  : VultrClient
list()  : array<string|int, mixed>
patchObject()  : void
getReadableClassType()  : string

Properties

Methods

createISO()

Create an ISO from a url endpoint

public createISO( $url) : ISO
Parameters
$url :
  • string - Example: https://youramazing.com/url.iso
Tags
throws
ISOException
Return values
ISO

deleteISO()

Delete an ISO on the account.

public deleteISO( $iso_id) : void
Parameters
$iso_id :
  • string
Tags
throws
ISOException

getISO()

Get the ISO on the account.

public getISO( $iso_id) : ISO
Parameters
$iso_id :
  • string
Tags
throws
ISOException
Return values
ISO

getISOs()

Get ISOS on the account.

public getISOs([ &$options = null ]) : array<string|int, ISO>
Parameters
$options : = null
  • ListOptions|null - Interact via reference.
Tags
throws
ISOException
Return values
array<string|int, ISO>

getPublicISOs()

Get all publically available isos regardless of account.

public getPublicISOs([ &$options = null ]) : array<string|int, PublicISO>
Parameters
$options : = null
  • ListOptions|null - Interact via reference.
Tags
throws
ISOException
Return values
array<string|int, PublicISO>

createObject()

protected createObject( $uri,  $model,  $params) : ModelInterface
Parameters
$uri :
  • string - the url address to query after api.vultr.com/v2
$model :
  • ModelInterface - the object model that we are creating
$params :
  • array - The values that we will be sending. Refactor to use getUpdateParams/getUpdateArray?
Tags
throws
Child

of VultrServiceObject

Return values
ModelInterface

deleteObject()

protected deleteObject( $uri,  $model) : void
Parameters
$uri :
  • string - the url address to query after api.vultr.com/v2
$model :
  • ModelInterface - the object model that we are acting on deleting. This doesn't need to be a fully initialized object.
Tags
throws
Child

of VultrServiceObject

getListObjects()

protected getListObjects( $uri,  $model[,  &$options = null ][,  $params = null ]) : array<string|int, ModelInterface>
Parameters
$uri :
  • string - the url address to query after api.vultr.com/v2
$model :
  • ModelInterface - the object that will be mapped to the get response.
$options : = null
  • ListOptions - Pagination object
$params : = null
  • array - filter parameters.
Tags
throws
Child

of VultrServiceObject

Return values
array<string|int, ModelInterface>

getObject()

protected getObject( $uri,  $model) : ModelInterface
Parameters
$uri :
  • string - the url address to query after api.vultr.com/v2
$model :
  • ModelInterface - the object that will be mapped to the get response.
Tags
throws
Child

of VultrServiceObject

Return values
ModelInterface

list()

protected list(string $uri, ModelInterface $model, ListOptions &$options[, array<string|int, mixed>|null $params = null ]) : array<string|int, mixed>
Parameters
$uri : string
$model : ModelInterface
$options : ListOptions
$params : array<string|int, mixed>|null = null
Return values
array<string|int, mixed>

patchObject()

protected patchObject( $uri,  $model[, array<string|int, mixed>|null $params = null ]) : void
Parameters
$uri :
  • string - the url address to query after api.vultr.com/v2
$model :
  • ModelInterface - the object model that we are updating. This needs to be a fully initialized object.
$params : array<string|int, mixed>|null = null
Tags
throws
Child

of VultrServiceObject


        
On this page

Search results