# Class VolumeAttachment

The VolumeAttachment class represents a volume that is attached to a server.

  OpenCloud\Common\Base
  OpenCloud\Common\Resource\BaseResource
  OpenCloud\Common\Resource\PersistentResource
  OpenCloud\Common\PersistentObject
  OpenCloud\Compute\Resource\VolumeAttachment

Namespace: OpenCloud\Compute\Resource
Located at OpenCloud/Compute/Resource/VolumeAttachment.php

Methods summary
`public Guzzle\Http\Message\Response` | # `update( array $params = array() )` updates are not permitted updates are not permitted #### Parameters $params `array` $params #### Returns `Guzzle\Http\Message\Response` #### Throws `OpenCloud\UpdateError` always #### Overrides `OpenCloud\Common\Resource\PersistentResource::update()`
`public string` | # `name( )` returns a readable name for the attachment returns a readable name for the attachment Since there is no 'name' attribute, we'll hardcode something #### Returns `string` #### Throws `NameError` #### Api #### Overrides `OpenCloud\Common\Resource\PersistentResource::name()`
`protected `stdClass`` | # `createJson( )` returns the JSON object for Create() returns the JSON object for Create() #### Returns ``stdClass`` #### Throws ``RuntimeException`` #### Overrides `OpenCloud\Common\Resource\PersistentResource::createJson()`

Methods inherited from OpenCloud\Common\Resource\PersistentResource
`checkExtension(), create(), delete(), getAlias(), noCreate(), noDelete(), noUpdate(), refresh(), refreshFromLocationUrl(), updateJson(), waitFor()`

Methods inherited from OpenCloud\Common\Resource\BaseResource
`__construct(), findLink(), getClient(), getMetadata(), getParent(), getService(), getUrl(), jsonCollectionElement(), jsonCollectionName(), jsonName(), parseResponse(), primaryKeyField(), resourceName(), setMetadata(), setParent(), setService()`

Methods inherited from OpenCloud\Common\Base
`__call(), checkJsonError(), generateUuid(), getInstance(), getJsonHeader(), getLogger(), getProperty(), makeResourceIteratorOptions(), populate(), propertyExists(), setLogger(), setProperty(), stripNamespace(), toCamel(), toUnderscores()`

Properties summary
`public mixed` | $id | `` | #
`public mixed` | $device | `` | #
`public mixed` | $serverId | `` | #
`public mixed` | $volumeId | `` | #
`public static string` | $json_name | `'volumeAttachment'` | #
`public static string` | $url_resource | `'os-volume_attachments'` | #

Properties inherited from OpenCloud\Common\Resource\BaseResource
`$metadata, $parent, $service`

Properties inherited from OpenCloud\Common\Base
`$aliases`