disk

package
v11.0.0-beta+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package disk implements the Azure ARM Disk service API version 2016-04-30-preview.

The Disk Resource Provider Client.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Disk
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type APIError

type APIError struct {
	Details    *[]APIErrorBase `json:"details,omitempty"`
	Innererror *InnerError     `json:"innererror,omitempty"`
	Code       *string         `json:"code,omitempty"`
	Target     *string         `json:"target,omitempty"`
	Message    *string         `json:"message,omitempty"`
}

APIError is api error.

type APIErrorBase

type APIErrorBase struct {
	Code    *string `json:"code,omitempty"`
	Target  *string `json:"target,omitempty"`
	Message *string `json:"message,omitempty"`
}

APIErrorBase is api error base.

type AccessLevel

type AccessLevel string

AccessLevel enumerates the values for access level.

const (
	// None specifies the none state for access level.
	None AccessLevel = "None"
	// Read specifies the read state for access level.
	Read AccessLevel = "Read"
)

type AccessURI

type AccessURI struct {
	autorest.Response `json:"-"`
	*AccessURIOutput  `json:"properties,omitempty"`
}

AccessURI is a disk access SAS uri.

type AccessURIOutput

type AccessURIOutput struct {
	*AccessURIRaw `json:"output,omitempty"`
}

AccessURIOutput is azure properties, including output.

type AccessURIRaw

type AccessURIRaw struct {
	AccessSAS *string `json:"accessSAS,omitempty"`
}

AccessURIRaw is this object gets 'bubbled up' through flattening.

type CreateOption

type CreateOption string

CreateOption enumerates the values for create option.

const (
	// Attach specifies the attach state for create option.
	Attach CreateOption = "Attach"
	// Copy specifies the copy state for create option.
	Copy CreateOption = "Copy"
	// Empty specifies the empty state for create option.
	Empty CreateOption = "Empty"
	// FromImage specifies the from image state for create option.
	FromImage CreateOption = "FromImage"
	// Import specifies the import state for create option.
	Import CreateOption = "Import"
	// Restore specifies the restore state for create option.
	Restore CreateOption = "Restore"
)

type CreationData

type CreationData struct {
	CreateOption     CreateOption        `json:"createOption,omitempty"`
	StorageAccountID *string             `json:"storageAccountId,omitempty"`
	ImageReference   *ImageDiskReference `json:"imageReference,omitempty"`
	SourceURI        *string             `json:"sourceUri,omitempty"`
	SourceResourceID *string             `json:"sourceResourceId,omitempty"`
}

CreationData is data used when creating a disk.

type DisksClient

type DisksClient struct {
	ManagementClient
}

DisksClient is the the Disk Resource Provider Client.

func NewDisksClient

func NewDisksClient(subscriptionID string) DisksClient

NewDisksClient creates an instance of the DisksClient client.

func NewDisksClientWithBaseURI

func NewDisksClientWithBaseURI(baseURI string, subscriptionID string) DisksClient

NewDisksClientWithBaseURI creates an instance of the DisksClient client.

func (DisksClient) CreateOrUpdate

func (client DisksClient) CreateOrUpdate(resourceGroupName string, diskName string, diskParameter Model, cancel <-chan struct{}) (<-chan Model, <-chan error)

CreateOrUpdate creates or updates a disk. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. diskName is the name of the disk within the given subscription and resource group. diskParameter is disk object supplied in the body of the Put disk operation.

func (DisksClient) CreateOrUpdatePreparer

func (client DisksClient) CreateOrUpdatePreparer(resourceGroupName string, diskName string, diskParameter Model, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DisksClient) CreateOrUpdateResponder

func (client DisksClient) CreateOrUpdateResponder(resp *http.Response) (result Model, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (DisksClient) CreateOrUpdateSender

func (client DisksClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (DisksClient) Delete

func (client DisksClient) Delete(resourceGroupName string, diskName string, cancel <-chan struct{}) (<-chan OperationStatusResponse, <-chan error)

Delete deletes a disk. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. diskName is the name of the disk within the given subscription and resource group.

func (DisksClient) DeletePreparer

func (client DisksClient) DeletePreparer(resourceGroupName string, diskName string, cancel <-chan struct{}) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (DisksClient) DeleteResponder

func (client DisksClient) DeleteResponder(resp *http.Response) (result OperationStatusResponse, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (DisksClient) DeleteSender

func (client DisksClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (DisksClient) Get

func (client DisksClient) Get(resourceGroupName string, diskName string) (result Model, err error)

Get gets information about a disk.

resourceGroupName is the name of the resource group. diskName is the name of the disk within the given subscription and resource group.

func (DisksClient) GetPreparer

func (client DisksClient) GetPreparer(resourceGroupName string, diskName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DisksClient) GetResponder

func (client DisksClient) GetResponder(resp *http.Response) (result Model, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DisksClient) GetSender

func (client DisksClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (DisksClient) GrantAccess

func (client DisksClient) GrantAccess(resourceGroupName string, diskName string, grantAccessData GrantAccessData, cancel <-chan struct{}) (<-chan AccessURI, <-chan error)

GrantAccess grants access to a disk. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. diskName is the name of the disk within the given subscription and resource group. grantAccessData is access data object supplied in the body of the get disk access operation.

func (DisksClient) GrantAccessPreparer

func (client DisksClient) GrantAccessPreparer(resourceGroupName string, diskName string, grantAccessData GrantAccessData, cancel <-chan struct{}) (*http.Request, error)

GrantAccessPreparer prepares the GrantAccess request.

func (DisksClient) GrantAccessResponder

func (client DisksClient) GrantAccessResponder(resp *http.Response) (result AccessURI, err error)

GrantAccessResponder handles the response to the GrantAccess request. The method always closes the http.Response Body.

func (DisksClient) GrantAccessSender

func (client DisksClient) GrantAccessSender(req *http.Request) (*http.Response, error)

GrantAccessSender sends the GrantAccess request. The method will close the http.Response Body if it receives an error.

func (DisksClient) List

func (client DisksClient) List() (result ListType, err error)

List lists all the disks under a subscription.

func (DisksClient) ListByResourceGroup

func (client DisksClient) ListByResourceGroup(resourceGroupName string) (result ListType, err error)

ListByResourceGroup lists all the disks under a resource group.

resourceGroupName is the name of the resource group.

func (DisksClient) ListByResourceGroupNextResults

func (client DisksClient) ListByResourceGroupNextResults(lastResults ListType) (result ListType, err error)

ListByResourceGroupNextResults retrieves the next set of results, if any.

func (DisksClient) ListByResourceGroupPreparer

func (client DisksClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (DisksClient) ListByResourceGroupResponder

func (client DisksClient) ListByResourceGroupResponder(resp *http.Response) (result ListType, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (DisksClient) ListByResourceGroupSender

func (client DisksClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (DisksClient) ListNextResults

func (client DisksClient) ListNextResults(lastResults ListType) (result ListType, err error)

ListNextResults retrieves the next set of results, if any.

func (DisksClient) ListPreparer

func (client DisksClient) ListPreparer() (*http.Request, error)

ListPreparer prepares the List request.

func (DisksClient) ListResponder

func (client DisksClient) ListResponder(resp *http.Response) (result ListType, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (DisksClient) ListSender

func (client DisksClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (DisksClient) RevokeAccess

func (client DisksClient) RevokeAccess(resourceGroupName string, diskName string, cancel <-chan struct{}) (<-chan OperationStatusResponse, <-chan error)

RevokeAccess revokes access to a disk. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. diskName is the name of the disk within the given subscription and resource group.

func (DisksClient) RevokeAccessPreparer

func (client DisksClient) RevokeAccessPreparer(resourceGroupName string, diskName string, cancel <-chan struct{}) (*http.Request, error)

RevokeAccessPreparer prepares the RevokeAccess request.

func (DisksClient) RevokeAccessResponder

func (client DisksClient) RevokeAccessResponder(resp *http.Response) (result OperationStatusResponse, err error)

RevokeAccessResponder handles the response to the RevokeAccess request. The method always closes the http.Response Body.

func (DisksClient) RevokeAccessSender

func (client DisksClient) RevokeAccessSender(req *http.Request) (*http.Response, error)

RevokeAccessSender sends the RevokeAccess request. The method will close the http.Response Body if it receives an error.

func (DisksClient) Update

func (client DisksClient) Update(resourceGroupName string, diskName string, diskParameter UpdateType, cancel <-chan struct{}) (<-chan Model, <-chan error)

Update updates (patches) a disk. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. diskName is the name of the disk within the given subscription and resource group. diskParameter is disk object supplied in the body of the Patch disk operation.

func (DisksClient) UpdatePreparer

func (client DisksClient) UpdatePreparer(resourceGroupName string, diskName string, diskParameter UpdateType, cancel <-chan struct{}) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (DisksClient) UpdateResponder

func (client DisksClient) UpdateResponder(resp *http.Response) (result Model, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (DisksClient) UpdateSender

func (client DisksClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type EncryptionSettings

type EncryptionSettings struct {
	Enabled           *bool                       `json:"enabled,omitempty"`
	DiskEncryptionKey *KeyVaultAndSecretReference `json:"diskEncryptionKey,omitempty"`
	KeyEncryptionKey  *KeyVaultAndKeyReference    `json:"keyEncryptionKey,omitempty"`
}

EncryptionSettings is encryption settings for disk or snapshot

type GrantAccessData

type GrantAccessData struct {
	Access            AccessLevel `json:"access,omitempty"`
	DurationInSeconds *int32      `json:"durationInSeconds,omitempty"`
}

GrantAccessData is data used for requesting a SAS.

type ImageDiskReference

type ImageDiskReference struct {
	ID  *string `json:"id,omitempty"`
	Lun *int32  `json:"lun,omitempty"`
}

ImageDiskReference is the source image used for creating the disk.

type InnerError

type InnerError struct {
	Exceptiontype *string `json:"exceptiontype,omitempty"`
	Errordetail   *string `json:"errordetail,omitempty"`
}

InnerError is inner error details.

type KeyVaultAndKeyReference

type KeyVaultAndKeyReference struct {
	SourceVault *SourceVault `json:"sourceVault,omitempty"`
	KeyURL      *string      `json:"keyUrl,omitempty"`
}

KeyVaultAndKeyReference is key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey

type KeyVaultAndSecretReference

type KeyVaultAndSecretReference struct {
	SourceVault *SourceVault `json:"sourceVault,omitempty"`
	SecretURL   *string      `json:"secretUrl,omitempty"`
}

KeyVaultAndSecretReference is key Vault Secret Url and vault id of the encryption key

type ListType

type ListType struct {
	autorest.Response `json:"-"`
	Value             *[]Model `json:"value,omitempty"`
	NextLink          *string  `json:"nextLink,omitempty"`
}

ListType is the List Disks operation response.

func (ListType) ListTypePreparer

func (client ListType) ListTypePreparer() (*http.Request, error)

ListTypePreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ManagementClient

type ManagementClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

ManagementClient is the base client for Disk.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

type Model

type Model struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	*Properties       `json:"properties,omitempty"`
}

Model is disk resource.

type OperatingSystemTypes

type OperatingSystemTypes string

OperatingSystemTypes enumerates the values for operating system types.

const (
	// Linux specifies the linux state for operating system types.
	Linux OperatingSystemTypes = "Linux"
	// Windows specifies the windows state for operating system types.
	Windows OperatingSystemTypes = "Windows"
)

type OperationStatusResponse

type OperationStatusResponse struct {
	autorest.Response `json:"-"`
	Name              *string    `json:"name,omitempty"`
	Status            *string    `json:"status,omitempty"`
	StartTime         *date.Time `json:"startTime,omitempty"`
	EndTime           *date.Time `json:"endTime,omitempty"`
	Error             *APIError  `json:"error,omitempty"`
}

OperationStatusResponse is operation status response

type Properties

type Properties struct {
	AccountType        StorageAccountTypes  `json:"accountType,omitempty"`
	TimeCreated        *date.Time           `json:"timeCreated,omitempty"`
	OsType             OperatingSystemTypes `json:"osType,omitempty"`
	CreationData       *CreationData        `json:"creationData,omitempty"`
	DiskSizeGB         *int32               `json:"diskSizeGB,omitempty"`
	EncryptionSettings *EncryptionSettings  `json:"encryptionSettings,omitempty"`
	OwnerID            *string              `json:"ownerId,omitempty"`
	ProvisioningState  *string              `json:"provisioningState,omitempty"`
}

Properties is disk resource properties.

type Resource

type Resource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Location *string             `json:"location,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
}

Resource is the Resource model definition.

type ResourceUpdate

type ResourceUpdate struct {
	Tags *map[string]*string `json:"tags,omitempty"`
}

ResourceUpdate is the Resource model definition.

type Snapshot

type Snapshot struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	*Properties       `json:"properties,omitempty"`
}

Snapshot is snapshot resource.

type SnapshotList

type SnapshotList struct {
	autorest.Response `json:"-"`
	Value             *[]Snapshot `json:"value,omitempty"`
	NextLink          *string     `json:"nextLink,omitempty"`
}

SnapshotList is the List Snapshots operation response.

func (SnapshotList) SnapshotListPreparer

func (client SnapshotList) SnapshotListPreparer() (*http.Request, error)

SnapshotListPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type SnapshotUpdate

type SnapshotUpdate struct {
	Tags              *map[string]*string `json:"tags,omitempty"`
	*UpdateProperties `json:"properties,omitempty"`
}

SnapshotUpdate is snapshot update resource.

type SnapshotsClient

type SnapshotsClient struct {
	ManagementClient
}

SnapshotsClient is the the Disk Resource Provider Client.

func NewSnapshotsClient

func NewSnapshotsClient(subscriptionID string) SnapshotsClient

NewSnapshotsClient creates an instance of the SnapshotsClient client.

func NewSnapshotsClientWithBaseURI

func NewSnapshotsClientWithBaseURI(baseURI string, subscriptionID string) SnapshotsClient

NewSnapshotsClientWithBaseURI creates an instance of the SnapshotsClient client.

func (SnapshotsClient) CreateOrUpdate

func (client SnapshotsClient) CreateOrUpdate(resourceGroupName string, snapshotName string, snapshot Snapshot, cancel <-chan struct{}) (<-chan Snapshot, <-chan error)

CreateOrUpdate creates or updates a snapshot. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. snapshotName is the name of the snapshot within the given subscription and resource group. snapshot is snapshot object supplied in the body of the Put disk operation.

func (SnapshotsClient) CreateOrUpdatePreparer

func (client SnapshotsClient) CreateOrUpdatePreparer(resourceGroupName string, snapshotName string, snapshot Snapshot, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SnapshotsClient) CreateOrUpdateResponder

func (client SnapshotsClient) CreateOrUpdateResponder(resp *http.Response) (result Snapshot, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (SnapshotsClient) CreateOrUpdateSender

func (client SnapshotsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (SnapshotsClient) Delete

func (client SnapshotsClient) Delete(resourceGroupName string, snapshotName string, cancel <-chan struct{}) (<-chan OperationStatusResponse, <-chan error)

Delete deletes a snapshot. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. snapshotName is the name of the snapshot within the given subscription and resource group.

func (SnapshotsClient) DeletePreparer

func (client SnapshotsClient) DeletePreparer(resourceGroupName string, snapshotName string, cancel <-chan struct{}) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (SnapshotsClient) DeleteResponder

func (client SnapshotsClient) DeleteResponder(resp *http.Response) (result OperationStatusResponse, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (SnapshotsClient) DeleteSender

func (client SnapshotsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (SnapshotsClient) Get

func (client SnapshotsClient) Get(resourceGroupName string, snapshotName string) (result Snapshot, err error)

Get gets information about a snapshot.

resourceGroupName is the name of the resource group. snapshotName is the name of the snapshot within the given subscription and resource group.

func (SnapshotsClient) GetPreparer

func (client SnapshotsClient) GetPreparer(resourceGroupName string, snapshotName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (SnapshotsClient) GetResponder

func (client SnapshotsClient) GetResponder(resp *http.Response) (result Snapshot, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (SnapshotsClient) GetSender

func (client SnapshotsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (SnapshotsClient) GrantAccess

func (client SnapshotsClient) GrantAccess(resourceGroupName string, snapshotName string, grantAccessData GrantAccessData, cancel <-chan struct{}) (<-chan AccessURI, <-chan error)

GrantAccess grants access to a snapshot. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. snapshotName is the name of the snapshot within the given subscription and resource group. grantAccessData is access data object supplied in the body of the get snapshot access operation.

func (SnapshotsClient) GrantAccessPreparer

func (client SnapshotsClient) GrantAccessPreparer(resourceGroupName string, snapshotName string, grantAccessData GrantAccessData, cancel <-chan struct{}) (*http.Request, error)

GrantAccessPreparer prepares the GrantAccess request.

func (SnapshotsClient) GrantAccessResponder

func (client SnapshotsClient) GrantAccessResponder(resp *http.Response) (result AccessURI, err error)

GrantAccessResponder handles the response to the GrantAccess request. The method always closes the http.Response Body.

func (SnapshotsClient) GrantAccessSender

func (client SnapshotsClient) GrantAccessSender(req *http.Request) (*http.Response, error)

GrantAccessSender sends the GrantAccess request. The method will close the http.Response Body if it receives an error.

func (SnapshotsClient) List

func (client SnapshotsClient) List() (result SnapshotList, err error)

List lists snapshots under a subscription.

func (SnapshotsClient) ListByResourceGroup

func (client SnapshotsClient) ListByResourceGroup(resourceGroupName string) (result SnapshotList, err error)

ListByResourceGroup lists snapshots under a resource group.

resourceGroupName is the name of the resource group.

func (SnapshotsClient) ListByResourceGroupNextResults

func (client SnapshotsClient) ListByResourceGroupNextResults(lastResults SnapshotList) (result SnapshotList, err error)

ListByResourceGroupNextResults retrieves the next set of results, if any.

func (SnapshotsClient) ListByResourceGroupPreparer

func (client SnapshotsClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (SnapshotsClient) ListByResourceGroupResponder

func (client SnapshotsClient) ListByResourceGroupResponder(resp *http.Response) (result SnapshotList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (SnapshotsClient) ListByResourceGroupSender

func (client SnapshotsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (SnapshotsClient) ListNextResults

func (client SnapshotsClient) ListNextResults(lastResults SnapshotList) (result SnapshotList, err error)

ListNextResults retrieves the next set of results, if any.

func (SnapshotsClient) ListPreparer

func (client SnapshotsClient) ListPreparer() (*http.Request, error)

ListPreparer prepares the List request.

func (SnapshotsClient) ListResponder

func (client SnapshotsClient) ListResponder(resp *http.Response) (result SnapshotList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (SnapshotsClient) ListSender

func (client SnapshotsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (SnapshotsClient) RevokeAccess

func (client SnapshotsClient) RevokeAccess(resourceGroupName string, snapshotName string, cancel <-chan struct{}) (<-chan OperationStatusResponse, <-chan error)

RevokeAccess revokes access to a snapshot. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. snapshotName is the name of the snapshot within the given subscription and resource group.

func (SnapshotsClient) RevokeAccessPreparer

func (client SnapshotsClient) RevokeAccessPreparer(resourceGroupName string, snapshotName string, cancel <-chan struct{}) (*http.Request, error)

RevokeAccessPreparer prepares the RevokeAccess request.

func (SnapshotsClient) RevokeAccessResponder

func (client SnapshotsClient) RevokeAccessResponder(resp *http.Response) (result OperationStatusResponse, err error)

RevokeAccessResponder handles the response to the RevokeAccess request. The method always closes the http.Response Body.

func (SnapshotsClient) RevokeAccessSender

func (client SnapshotsClient) RevokeAccessSender(req *http.Request) (*http.Response, error)

RevokeAccessSender sends the RevokeAccess request. The method will close the http.Response Body if it receives an error.

func (SnapshotsClient) Update

func (client SnapshotsClient) Update(resourceGroupName string, snapshotName string, snapshot SnapshotUpdate, cancel <-chan struct{}) (<-chan Snapshot, <-chan error)

Update updates (patches) a snapshot. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. snapshotName is the name of the snapshot within the given subscription and resource group. snapshot is snapshot object supplied in the body of the Patch snapshot operation.

func (SnapshotsClient) UpdatePreparer

func (client SnapshotsClient) UpdatePreparer(resourceGroupName string, snapshotName string, snapshot SnapshotUpdate, cancel <-chan struct{}) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (SnapshotsClient) UpdateResponder

func (client SnapshotsClient) UpdateResponder(resp *http.Response) (result Snapshot, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (SnapshotsClient) UpdateSender

func (client SnapshotsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type SourceVault

type SourceVault struct {
	ID *string `json:"id,omitempty"`
}

SourceVault is the vault id is an Azure Resource Manager Resoure id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}

type StorageAccountTypes

type StorageAccountTypes string

StorageAccountTypes enumerates the values for storage account types.

const (
	// PremiumLRS specifies the premium lrs state for storage account types.
	PremiumLRS StorageAccountTypes = "Premium_LRS"
	// StandardLRS specifies the standard lrs state for storage account types.
	StandardLRS StorageAccountTypes = "Standard_LRS"
)

type UpdateProperties

type UpdateProperties struct {
	AccountType        StorageAccountTypes  `json:"accountType,omitempty"`
	OsType             OperatingSystemTypes `json:"osType,omitempty"`
	CreationData       *CreationData        `json:"creationData,omitempty"`
	DiskSizeGB         *int32               `json:"diskSizeGB,omitempty"`
	EncryptionSettings *EncryptionSettings  `json:"encryptionSettings,omitempty"`
}

UpdateProperties is disk resource update properties.

type UpdateType

type UpdateType struct {
	Tags              *map[string]*string `json:"tags,omitempty"`
	*UpdateProperties `json:"properties,omitempty"`
}

UpdateType is disk update resource.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL