Documentation ¶
Index ¶
- func PossibleValuesForProvisioningStates() []string
- func ValidateSnapshotID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVolumeGroupID(input interface{}, key string) (warnings []string, errors []error)
- type ProvisioningStates
- type Snapshot
- type SnapshotCreationData
- type SnapshotId
- type SnapshotOperationPredicate
- type SnapshotProperties
- type SnapshotsClient
- func (c SnapshotsClient) VolumeSnapshotsCreate(ctx context.Context, id SnapshotId, input Snapshot) (result VolumeSnapshotsCreateOperationResponse, err error)
- func (c SnapshotsClient) VolumeSnapshotsCreateThenPoll(ctx context.Context, id SnapshotId, input Snapshot) error
- func (c SnapshotsClient) VolumeSnapshotsDelete(ctx context.Context, id SnapshotId) (result VolumeSnapshotsDeleteOperationResponse, err error)
- func (c SnapshotsClient) VolumeSnapshotsDeleteThenPoll(ctx context.Context, id SnapshotId) error
- func (c SnapshotsClient) VolumeSnapshotsGet(ctx context.Context, id SnapshotId) (result VolumeSnapshotsGetOperationResponse, err error)
- func (c SnapshotsClient) VolumeSnapshotsListByVolumeGroup(ctx context.Context, id VolumeGroupId, ...) (result VolumeSnapshotsListByVolumeGroupOperationResponse, err error)
- func (c SnapshotsClient) VolumeSnapshotsListByVolumeGroupComplete(ctx context.Context, id VolumeGroupId, ...) (VolumeSnapshotsListByVolumeGroupCompleteResult, error)
- func (c SnapshotsClient) VolumeSnapshotsListByVolumeGroupCompleteMatchingPredicate(ctx context.Context, id VolumeGroupId, ...) (result VolumeSnapshotsListByVolumeGroupCompleteResult, err error)
- type VolumeGroupId
- type VolumeSnapshotsCreateOperationResponse
- type VolumeSnapshotsDeleteOperationResponse
- type VolumeSnapshotsGetOperationResponse
- type VolumeSnapshotsListByVolumeGroupCompleteResult
- type VolumeSnapshotsListByVolumeGroupCustomPager
- type VolumeSnapshotsListByVolumeGroupOperationOptions
- type VolumeSnapshotsListByVolumeGroupOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningStates ¶
func PossibleValuesForProvisioningStates() []string
func ValidateSnapshotID ¶
ValidateSnapshotID checks that 'input' can be parsed as a Snapshot ID
func ValidateVolumeGroupID ¶
ValidateVolumeGroupID checks that 'input' can be parsed as a Volume Group ID
Types ¶
type ProvisioningStates ¶
type ProvisioningStates string
const ( ProvisioningStatesCanceled ProvisioningStates = "Canceled" ProvisioningStatesCreating ProvisioningStates = "Creating" ProvisioningStatesDeleting ProvisioningStates = "Deleting" ProvisioningStatesFailed ProvisioningStates = "Failed" ProvisioningStatesInvalid ProvisioningStates = "Invalid" ProvisioningStatesPending ProvisioningStates = "Pending" ProvisioningStatesSucceeded ProvisioningStates = "Succeeded" ProvisioningStatesUpdating ProvisioningStates = "Updating" )
func (*ProvisioningStates) UnmarshalJSON ¶
func (s *ProvisioningStates) UnmarshalJSON(bytes []byte) error
type Snapshot ¶
type Snapshot struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties SnapshotProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type SnapshotCreationData ¶
type SnapshotCreationData struct {
SourceId string `json:"sourceId"`
}
type SnapshotId ¶
type SnapshotId struct { SubscriptionId string ResourceGroupName string ElasticSanName string VolumeGroupName string SnapshotName string }
SnapshotId is a struct representing the Resource ID for a Snapshot
func NewSnapshotID ¶
func NewSnapshotID(subscriptionId string, resourceGroupName string, elasticSanName string, volumeGroupName 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) FromParseResult ¶
func (id *SnapshotId) FromParseResult(input resourceids.ParseResult) error
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 SnapshotOperationPredicate ¶
func (SnapshotOperationPredicate) Matches ¶
func (p SnapshotOperationPredicate) Matches(input Snapshot) bool
type SnapshotProperties ¶
type SnapshotProperties struct { CreationData SnapshotCreationData `json:"creationData"` ProvisioningState *ProvisioningStates `json:"provisioningState,omitempty"` SourceVolumeSizeGiB *int64 `json:"sourceVolumeSizeGiB,omitempty"` VolumeName *string `json:"volumeName,omitempty"` }
type SnapshotsClient ¶
type SnapshotsClient struct {
Client *resourcemanager.Client
}
func NewSnapshotsClientWithBaseURI ¶
func NewSnapshotsClientWithBaseURI(sdkApi sdkEnv.Api) (*SnapshotsClient, error)
func (SnapshotsClient) VolumeSnapshotsCreate ¶
func (c SnapshotsClient) VolumeSnapshotsCreate(ctx context.Context, id SnapshotId, input Snapshot) (result VolumeSnapshotsCreateOperationResponse, err error)
VolumeSnapshotsCreate ...
func (SnapshotsClient) VolumeSnapshotsCreateThenPoll ¶
func (c SnapshotsClient) VolumeSnapshotsCreateThenPoll(ctx context.Context, id SnapshotId, input Snapshot) error
VolumeSnapshotsCreateThenPoll performs VolumeSnapshotsCreate then polls until it's completed
func (SnapshotsClient) VolumeSnapshotsDelete ¶
func (c SnapshotsClient) VolumeSnapshotsDelete(ctx context.Context, id SnapshotId) (result VolumeSnapshotsDeleteOperationResponse, err error)
VolumeSnapshotsDelete ...
func (SnapshotsClient) VolumeSnapshotsDeleteThenPoll ¶
func (c SnapshotsClient) VolumeSnapshotsDeleteThenPoll(ctx context.Context, id SnapshotId) error
VolumeSnapshotsDeleteThenPoll performs VolumeSnapshotsDelete then polls until it's completed
func (SnapshotsClient) VolumeSnapshotsGet ¶
func (c SnapshotsClient) VolumeSnapshotsGet(ctx context.Context, id SnapshotId) (result VolumeSnapshotsGetOperationResponse, err error)
VolumeSnapshotsGet ...
func (SnapshotsClient) VolumeSnapshotsListByVolumeGroup ¶
func (c SnapshotsClient) VolumeSnapshotsListByVolumeGroup(ctx context.Context, id VolumeGroupId, options VolumeSnapshotsListByVolumeGroupOperationOptions) (result VolumeSnapshotsListByVolumeGroupOperationResponse, err error)
VolumeSnapshotsListByVolumeGroup ...
func (SnapshotsClient) VolumeSnapshotsListByVolumeGroupComplete ¶
func (c SnapshotsClient) VolumeSnapshotsListByVolumeGroupComplete(ctx context.Context, id VolumeGroupId, options VolumeSnapshotsListByVolumeGroupOperationOptions) (VolumeSnapshotsListByVolumeGroupCompleteResult, error)
VolumeSnapshotsListByVolumeGroupComplete retrieves all the results into a single object
func (SnapshotsClient) VolumeSnapshotsListByVolumeGroupCompleteMatchingPredicate ¶
func (c SnapshotsClient) VolumeSnapshotsListByVolumeGroupCompleteMatchingPredicate(ctx context.Context, id VolumeGroupId, options VolumeSnapshotsListByVolumeGroupOperationOptions, predicate SnapshotOperationPredicate) (result VolumeSnapshotsListByVolumeGroupCompleteResult, err error)
VolumeSnapshotsListByVolumeGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
type VolumeGroupId ¶
type VolumeGroupId struct { SubscriptionId string ResourceGroupName string ElasticSanName string VolumeGroupName string }
VolumeGroupId is a struct representing the Resource ID for a Volume Group
func NewVolumeGroupID ¶
func NewVolumeGroupID(subscriptionId string, resourceGroupName string, elasticSanName string, volumeGroupName string) VolumeGroupId
NewVolumeGroupID returns a new VolumeGroupId struct
func ParseVolumeGroupID ¶
func ParseVolumeGroupID(input string) (*VolumeGroupId, error)
ParseVolumeGroupID parses 'input' into a VolumeGroupId
func ParseVolumeGroupIDInsensitively ¶
func ParseVolumeGroupIDInsensitively(input string) (*VolumeGroupId, error)
ParseVolumeGroupIDInsensitively parses 'input' case-insensitively into a VolumeGroupId note: this method should only be used for API response data and not user input
func (*VolumeGroupId) FromParseResult ¶
func (id *VolumeGroupId) FromParseResult(input resourceids.ParseResult) error
func (VolumeGroupId) ID ¶
func (id VolumeGroupId) ID() string
ID returns the formatted Volume Group ID
func (VolumeGroupId) Segments ¶
func (id VolumeGroupId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Volume Group ID
func (VolumeGroupId) String ¶
func (id VolumeGroupId) String() string
String returns a human-readable description of this Volume Group ID
type VolumeSnapshotsListByVolumeGroupCustomPager ¶ added in v0.20240628.1153531
func (*VolumeSnapshotsListByVolumeGroupCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *VolumeSnapshotsListByVolumeGroupCustomPager) NextPageLink() *odata.Link
type VolumeSnapshotsListByVolumeGroupOperationOptions ¶
type VolumeSnapshotsListByVolumeGroupOperationOptions struct {
Filter *string
}
func DefaultVolumeSnapshotsListByVolumeGroupOperationOptions ¶
func DefaultVolumeSnapshotsListByVolumeGroupOperationOptions() VolumeSnapshotsListByVolumeGroupOperationOptions
func (VolumeSnapshotsListByVolumeGroupOperationOptions) ToHeaders ¶
func (o VolumeSnapshotsListByVolumeGroupOperationOptions) ToHeaders() *client.Headers
func (VolumeSnapshotsListByVolumeGroupOperationOptions) ToOData ¶
func (o VolumeSnapshotsListByVolumeGroupOperationOptions) ToOData() *odata.Query
func (VolumeSnapshotsListByVolumeGroupOperationOptions) ToQuery ¶
func (o VolumeSnapshotsListByVolumeGroupOperationOptions) ToQuery() *client.QueryParams