AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Disk

import "github.com/aws/aws-sdk-go/service/storagegateway"

type Disk struct { DiskAllocationResource *string `type:"string"` DiskAllocationType *string `min:"3" type:"string"` DiskAttributeList []*string `type:"list"` DiskId *string `min:"1" type:"string"` DiskNode *string `type:"string"` DiskPath *string `type:"string"` DiskSizeInBytes *int64 `type:"long"` DiskStatus *string `type:"string"` }

Represents a gateway's local disk.

DiskAllocationResource

Type: *string

The iSCSI qualified name (IQN) that is defined for a disk. This field is not included in the response if the local disk is not defined as an iSCSI target. The format of this field is targetIqn::LUNNumber::region-volumeId.

DiskAllocationType

Type: *string

One of the DiskAllocationType enumeration values that identifies how a local disk is used. Valid values: UPLOAD_BUFFER, CACHE_STORAGE

DiskAttributeList

Type: []*string

A list of values that represents attributes of a local disk.

DiskId

Type: *string

The unique device ID or other distinguishing data that identifies a local disk.

DiskNode

Type: *string

The device node of a local disk as assigned by the virtualization environment.

DiskPath

Type: *string

The path of a local disk in the gateway virtual machine (VM).

DiskSizeInBytes

Type: *int64

The local disk size in bytes.

DiskStatus

Type: *string

A value that represents the status of a local disk.

Method

GoString

func (s Disk) GoString() string

GoString returns the string representation

SetDiskAllocationResource

func (s *Disk) SetDiskAllocationResource(v string) *Disk

SetDiskAllocationResource sets the DiskAllocationResource field's value.

SetDiskAllocationType

func (s *Disk) SetDiskAllocationType(v string) *Disk

SetDiskAllocationType sets the DiskAllocationType field's value.

SetDiskAttributeList

func (s *Disk) SetDiskAttributeList(v []*string) *Disk

SetDiskAttributeList sets the DiskAttributeList field's value.

SetDiskId

func (s *Disk) SetDiskId(v string) *Disk

SetDiskId sets the DiskId field's value.

SetDiskNode

func (s *Disk) SetDiskNode(v string) *Disk

SetDiskNode sets the DiskNode field's value.

SetDiskPath

func (s *Disk) SetDiskPath(v string) *Disk

SetDiskPath sets the DiskPath field's value.

SetDiskSizeInBytes

func (s *Disk) SetDiskSizeInBytes(v int64) *Disk

SetDiskSizeInBytes sets the DiskSizeInBytes field's value.

SetDiskStatus

func (s *Disk) SetDiskStatus(v string) *Disk

SetDiskStatus sets the DiskStatus field's value.

String

func (s Disk) String() string

String returns the string representation

On this page: