Documentation ¶
Index ¶
- func ValidateSnapshotID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVolumeID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListOperationResponse
- type RestoreFilesOperationResponse
- type Snapshot
- type SnapshotId
- type SnapshotProperties
- type SnapshotRestoreFiles
- type SnapshotsClient
- func (c SnapshotsClient) Create(ctx context.Context, id SnapshotId, input Snapshot) (result CreateOperationResponse, err error)
- func (c SnapshotsClient) CreateThenPoll(ctx context.Context, id SnapshotId, input Snapshot) error
- func (c SnapshotsClient) Delete(ctx context.Context, id SnapshotId) (result DeleteOperationResponse, err error)
- func (c SnapshotsClient) DeleteThenPoll(ctx context.Context, id SnapshotId) error
- func (c SnapshotsClient) Get(ctx context.Context, id SnapshotId) (result GetOperationResponse, err error)
- func (c SnapshotsClient) List(ctx context.Context, id VolumeId) (result ListOperationResponse, err error)
- func (c SnapshotsClient) RestoreFiles(ctx context.Context, id SnapshotId, input SnapshotRestoreFiles) (result RestoreFilesOperationResponse, err error)
- func (c SnapshotsClient) RestoreFilesThenPoll(ctx context.Context, id SnapshotId, input SnapshotRestoreFiles) error
- func (c SnapshotsClient) Update(ctx context.Context, id SnapshotId, input interface{}) (result UpdateOperationResponse, err error)
- func (c SnapshotsClient) UpdateThenPoll(ctx context.Context, id SnapshotId, input interface{}) error
- type SnapshotsList
- type UpdateOperationResponse
- type VolumeId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateSnapshotID ¶
ValidateSnapshotID checks that 'input' can be parsed as a Snapshot ID
func ValidateVolumeID ¶
ValidateVolumeID checks that 'input' can be parsed as a Volume ID
Types ¶
type CreateOperationResponse ¶
type CreateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type GetOperationResponse ¶
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *SnapshotsList }
type RestoreFilesOperationResponse ¶
type RestoreFilesOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type Snapshot ¶
type Snapshot struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *SnapshotProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type SnapshotId ¶
type SnapshotId struct { SubscriptionId string ResourceGroupName string NetAppAccountName string CapacityPoolName string VolumeName string SnapshotName string }
SnapshotId is a struct representing the Resource ID for a Snapshot
func NewSnapshotID ¶
func NewSnapshotID(subscriptionId string, resourceGroupName string, netAppAccountName string, capacityPoolName string, volumeName string, snapshotName string) SnapshotId
NewSnapshotID returns a new SnapshotId struct
func ParseSnapshotID ¶
func ParseSnapshotID(input string) (*SnapshotId, error)
ParseSnapshotID parses 'input' into a SnapshotId
func ParseSnapshotIDInsensitively ¶
func ParseSnapshotIDInsensitively(input string) (*SnapshotId, error)
ParseSnapshotIDInsensitively parses 'input' case-insensitively into a SnapshotId note: this method should only be used for API response data and not user input
func (SnapshotId) Segments ¶
func (id SnapshotId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Snapshot ID
func (SnapshotId) String ¶
func (id SnapshotId) String() string
String returns a human-readable description of this Snapshot ID
type SnapshotProperties ¶
type SnapshotProperties struct { Created *string `json:"created,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` SnapshotId *string `json:"snapshotId,omitempty"` }
func (*SnapshotProperties) GetCreatedAsTime ¶
func (o *SnapshotProperties) GetCreatedAsTime() (*time.Time, error)
func (*SnapshotProperties) SetCreatedAsTime ¶
func (o *SnapshotProperties) SetCreatedAsTime(input time.Time)
type SnapshotRestoreFiles ¶
type SnapshotsClient ¶
func NewSnapshotsClientWithBaseURI ¶
func NewSnapshotsClientWithBaseURI(endpoint string) SnapshotsClient
func (SnapshotsClient) Create ¶
func (c SnapshotsClient) Create(ctx context.Context, id SnapshotId, input Snapshot) (result CreateOperationResponse, err error)
Create ...
func (SnapshotsClient) CreateThenPoll ¶
func (c SnapshotsClient) CreateThenPoll(ctx context.Context, id SnapshotId, input Snapshot) error
CreateThenPoll performs Create then polls until it's completed
func (SnapshotsClient) Delete ¶
func (c SnapshotsClient) Delete(ctx context.Context, id SnapshotId) (result DeleteOperationResponse, err error)
Delete ...
func (SnapshotsClient) DeleteThenPoll ¶
func (c SnapshotsClient) DeleteThenPoll(ctx context.Context, id SnapshotId) error
DeleteThenPoll performs Delete then polls until it's completed
func (SnapshotsClient) Get ¶
func (c SnapshotsClient) Get(ctx context.Context, id SnapshotId) (result GetOperationResponse, err error)
Get ...
func (SnapshotsClient) List ¶
func (c SnapshotsClient) List(ctx context.Context, id VolumeId) (result ListOperationResponse, err error)
List ...
func (SnapshotsClient) RestoreFiles ¶
func (c SnapshotsClient) RestoreFiles(ctx context.Context, id SnapshotId, input SnapshotRestoreFiles) (result RestoreFilesOperationResponse, err error)
RestoreFiles ...
func (SnapshotsClient) RestoreFilesThenPoll ¶
func (c SnapshotsClient) RestoreFilesThenPoll(ctx context.Context, id SnapshotId, input SnapshotRestoreFiles) error
RestoreFilesThenPoll performs RestoreFiles then polls until it's completed
func (SnapshotsClient) Update ¶
func (c SnapshotsClient) Update(ctx context.Context, id SnapshotId, input interface{}) (result UpdateOperationResponse, err error)
Update ...
func (SnapshotsClient) UpdateThenPoll ¶
func (c SnapshotsClient) UpdateThenPoll(ctx context.Context, id SnapshotId, input interface{}) error
UpdateThenPoll performs Update then polls until it's completed
type SnapshotsList ¶
type SnapshotsList struct {
Value *[]Snapshot `json:"value,omitempty"`
}
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type VolumeId ¶
type VolumeId struct { SubscriptionId string ResourceGroupName string NetAppAccountName string CapacityPoolName string VolumeName string }
VolumeId is a struct representing the Resource ID for a Volume
func NewVolumeID ¶
func NewVolumeID(subscriptionId string, resourceGroupName string, netAppAccountName string, capacityPoolName string, volumeName string) VolumeId
NewVolumeID returns a new VolumeId struct
func ParseVolumeID ¶
ParseVolumeID parses 'input' into a VolumeId
func ParseVolumeIDInsensitively ¶
ParseVolumeIDInsensitively parses 'input' case-insensitively into a VolumeId note: this method should only be used for API response data and not user input
func (VolumeId) Segments ¶
func (id VolumeId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Volume ID
Source Files ¶
- client.go
- id_snapshot.go
- id_volume.go
- method_create_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- method_restorefiles_autorest.go
- method_update_autorest.go
- model_snapshot.go
- model_snapshotproperties.go
- model_snapshotrestorefiles.go
- model_snapshotslist.go
- version.go