snapshots

package
v0.20240422.1195251 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MPL-2.0 Imports: 16 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots Documentation

The snapshots SDK allows for interaction with the Azure Resource Manager Service compute (API Version 2022-03-02).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots"

Client Initialization

client := snapshots.NewSnapshotsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SnapshotsClient.CreateOrUpdate

ctx := context.TODO()
id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue")

payload := snapshots.Snapshot{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: SnapshotsClient.Delete

ctx := context.TODO()
id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: SnapshotsClient.Get

ctx := context.TODO()
id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SnapshotsClient.GrantAccess

ctx := context.TODO()
id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue")

payload := snapshots.GrantAccessData{
	// ...
}


if err := client.GrantAccessThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: SnapshotsClient.List

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: SnapshotsClient.ListByResourceGroup

ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.ListByResourceGroupComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: SnapshotsClient.RevokeAccess

ctx := context.TODO()
id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue")

if err := client.RevokeAccessThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: SnapshotsClient.Update

ctx := context.TODO()
id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue")

payload := snapshots.SnapshotUpdate{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAccessLevel

func PossibleValuesForAccessLevel() []string

func PossibleValuesForArchitecture

func PossibleValuesForArchitecture() []string

func PossibleValuesForCopyCompletionErrorReason

func PossibleValuesForCopyCompletionErrorReason() []string

func PossibleValuesForDataAccessAuthMode

func PossibleValuesForDataAccessAuthMode() []string

func PossibleValuesForDiskCreateOption

func PossibleValuesForDiskCreateOption() []string

func PossibleValuesForDiskSecurityTypes

func PossibleValuesForDiskSecurityTypes() []string

func PossibleValuesForDiskState

func PossibleValuesForDiskState() []string

func PossibleValuesForEncryptionType

func PossibleValuesForEncryptionType() []string

func PossibleValuesForHyperVGeneration

func PossibleValuesForHyperVGeneration() []string

func PossibleValuesForNetworkAccessPolicy

func PossibleValuesForNetworkAccessPolicy() []string

func PossibleValuesForOperatingSystemTypes

func PossibleValuesForOperatingSystemTypes() []string

func PossibleValuesForPublicNetworkAccess

func PossibleValuesForPublicNetworkAccess() []string

func PossibleValuesForSnapshotStorageAccountTypes

func PossibleValuesForSnapshotStorageAccountTypes() []string

func ValidateSnapshotID

func ValidateSnapshotID(input interface{}, key string) (warnings []string, errors []error)

ValidateSnapshotID checks that 'input' can be parsed as a Snapshot ID

Types

type AccessLevel

type AccessLevel string
const (
	AccessLevelNone  AccessLevel = "None"
	AccessLevelRead  AccessLevel = "Read"
	AccessLevelWrite AccessLevel = "Write"
)

func (*AccessLevel) UnmarshalJSON

func (s *AccessLevel) UnmarshalJSON(bytes []byte) error

type AccessUri

type AccessUri struct {
	AccessSAS             *string `json:"accessSAS,omitempty"`
	SecurityDataAccessSAS *string `json:"securityDataAccessSAS,omitempty"`
}

type Architecture

type Architecture string
const (
	ArchitectureArmSixFour Architecture = "Arm64"
	ArchitectureXSixFour   Architecture = "x64"
)

func (*Architecture) UnmarshalJSON

func (s *Architecture) UnmarshalJSON(bytes []byte) error

type CopyCompletionError

type CopyCompletionError struct {
	ErrorCode    CopyCompletionErrorReason `json:"errorCode"`
	ErrorMessage string                    `json:"errorMessage"`
}

type CopyCompletionErrorReason

type CopyCompletionErrorReason string
const (
	CopyCompletionErrorReasonCopySourceNotFound CopyCompletionErrorReason = "CopySourceNotFound"
)

func (*CopyCompletionErrorReason) UnmarshalJSON

func (s *CopyCompletionErrorReason) UnmarshalJSON(bytes []byte) error

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Snapshot
}

type CreationData

type CreationData struct {
	CreateOption          DiskCreateOption    `json:"createOption"`
	GalleryImageReference *ImageDiskReference `json:"galleryImageReference,omitempty"`
	ImageReference        *ImageDiskReference `json:"imageReference,omitempty"`
	LogicalSectorSize     *int64              `json:"logicalSectorSize,omitempty"`
	SecurityDataUri       *string             `json:"securityDataUri,omitempty"`
	SourceResourceId      *string             `json:"sourceResourceId,omitempty"`
	SourceUniqueId        *string             `json:"sourceUniqueId,omitempty"`
	SourceUri             *string             `json:"sourceUri,omitempty"`
	StorageAccountId      *string             `json:"storageAccountId,omitempty"`
	UploadSizeBytes       *int64              `json:"uploadSizeBytes,omitempty"`
}

type DataAccessAuthMode

type DataAccessAuthMode string
const (
	DataAccessAuthModeAzureActiveDirectory DataAccessAuthMode = "AzureActiveDirectory"
	DataAccessAuthModeNone                 DataAccessAuthMode = "None"
)

func (*DataAccessAuthMode) UnmarshalJSON

func (s *DataAccessAuthMode) UnmarshalJSON(bytes []byte) error

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type DiskCreateOption

type DiskCreateOption string
const (
	DiskCreateOptionAttach               DiskCreateOption = "Attach"
	DiskCreateOptionCopy                 DiskCreateOption = "Copy"
	DiskCreateOptionCopyStart            DiskCreateOption = "CopyStart"
	DiskCreateOptionEmpty                DiskCreateOption = "Empty"
	DiskCreateOptionFromImage            DiskCreateOption = "FromImage"
	DiskCreateOptionImport               DiskCreateOption = "Import"
	DiskCreateOptionImportSecure         DiskCreateOption = "ImportSecure"
	DiskCreateOptionRestore              DiskCreateOption = "Restore"
	DiskCreateOptionUpload               DiskCreateOption = "Upload"
	DiskCreateOptionUploadPreparedSecure DiskCreateOption = "UploadPreparedSecure"
)

func (*DiskCreateOption) UnmarshalJSON

func (s *DiskCreateOption) UnmarshalJSON(bytes []byte) error

type DiskSecurityProfile

type DiskSecurityProfile struct {
	SecureVMDiskEncryptionSetId *string            `json:"secureVMDiskEncryptionSetId,omitempty"`
	SecurityType                *DiskSecurityTypes `json:"securityType,omitempty"`
}

type DiskSecurityTypes

type DiskSecurityTypes string
const (
	DiskSecurityTypesConfidentialVMDiskEncryptedWithCustomerKey             DiskSecurityTypes = "ConfidentialVM_DiskEncryptedWithCustomerKey"
	DiskSecurityTypesConfidentialVMDiskEncryptedWithPlatformKey             DiskSecurityTypes = "ConfidentialVM_DiskEncryptedWithPlatformKey"
	DiskSecurityTypesConfidentialVMVMGuestStateOnlyEncryptedWithPlatformKey DiskSecurityTypes = "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey"
	DiskSecurityTypesTrustedLaunch                                          DiskSecurityTypes = "TrustedLaunch"
)

func (*DiskSecurityTypes) UnmarshalJSON

func (s *DiskSecurityTypes) UnmarshalJSON(bytes []byte) error

type DiskState

type DiskState string
const (
	DiskStateActiveSAS       DiskState = "ActiveSAS"
	DiskStateActiveSASFrozen DiskState = "ActiveSASFrozen"
	DiskStateActiveUpload    DiskState = "ActiveUpload"
	DiskStateAttached        DiskState = "Attached"
	DiskStateFrozen          DiskState = "Frozen"
	DiskStateReadyToUpload   DiskState = "ReadyToUpload"
	DiskStateReserved        DiskState = "Reserved"
	DiskStateUnattached      DiskState = "Unattached"
)

func (*DiskState) UnmarshalJSON

func (s *DiskState) UnmarshalJSON(bytes []byte) error

type Encryption

type Encryption struct {
	DiskEncryptionSetId *string         `json:"diskEncryptionSetId,omitempty"`
	Type                *EncryptionType `json:"type,omitempty"`
}

type EncryptionSettingsCollection

type EncryptionSettingsCollection struct {
	Enabled                   bool                         `json:"enabled"`
	EncryptionSettings        *[]EncryptionSettingsElement `json:"encryptionSettings,omitempty"`
	EncryptionSettingsVersion *string                      `json:"encryptionSettingsVersion,omitempty"`
}

type EncryptionSettingsElement

type EncryptionSettingsElement struct {
	DiskEncryptionKey *KeyVaultAndSecretReference `json:"diskEncryptionKey,omitempty"`
	KeyEncryptionKey  *KeyVaultAndKeyReference    `json:"keyEncryptionKey,omitempty"`
}

type EncryptionType

type EncryptionType string
const (
	EncryptionTypeEncryptionAtRestWithCustomerKey             EncryptionType = "EncryptionAtRestWithCustomerKey"
	EncryptionTypeEncryptionAtRestWithPlatformAndCustomerKeys EncryptionType = "EncryptionAtRestWithPlatformAndCustomerKeys"
	EncryptionTypeEncryptionAtRestWithPlatformKey             EncryptionType = "EncryptionAtRestWithPlatformKey"
)

func (*EncryptionType) UnmarshalJSON

func (s *EncryptionType) UnmarshalJSON(bytes []byte) error

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Snapshot
}

type GrantAccessData

type GrantAccessData struct {
	Access                   AccessLevel `json:"access"`
	DurationInSeconds        int64       `json:"durationInSeconds"`
	GetSecureVMGuestStateSAS *bool       `json:"getSecureVMGuestStateSAS,omitempty"`
}

type GrantAccessOperationResponse

type GrantAccessOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AccessUri
}

type HyperVGeneration

type HyperVGeneration string
const (
	HyperVGenerationVOne HyperVGeneration = "V1"
	HyperVGenerationVTwo HyperVGeneration = "V2"
)

func (*HyperVGeneration) UnmarshalJSON

func (s *HyperVGeneration) UnmarshalJSON(bytes []byte) error

type ImageDiskReference

type ImageDiskReference struct {
	CommunityGalleryImageId *string `json:"communityGalleryImageId,omitempty"`
	Id                      *string `json:"id,omitempty"`
	Lun                     *int64  `json:"lun,omitempty"`
	SharedGalleryImageId    *string `json:"sharedGalleryImageId,omitempty"`
}

type KeyVaultAndKeyReference

type KeyVaultAndKeyReference struct {
	KeyUrl      string      `json:"keyUrl"`
	SourceVault SourceVault `json:"sourceVault"`
}

type KeyVaultAndSecretReference

type KeyVaultAndSecretReference struct {
	SecretUrl   string      `json:"secretUrl"`
	SourceVault SourceVault `json:"sourceVault"`
}

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Snapshot
}

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Snapshot
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Snapshot
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Snapshot
}

type NetworkAccessPolicy

type NetworkAccessPolicy string
const (
	NetworkAccessPolicyAllowAll     NetworkAccessPolicy = "AllowAll"
	NetworkAccessPolicyAllowPrivate NetworkAccessPolicy = "AllowPrivate"
	NetworkAccessPolicyDenyAll      NetworkAccessPolicy = "DenyAll"
)

func (*NetworkAccessPolicy) UnmarshalJSON

func (s *NetworkAccessPolicy) UnmarshalJSON(bytes []byte) error

type OperatingSystemTypes

type OperatingSystemTypes string
const (
	OperatingSystemTypesLinux   OperatingSystemTypes = "Linux"
	OperatingSystemTypesWindows OperatingSystemTypes = "Windows"
)

func (*OperatingSystemTypes) UnmarshalJSON

func (s *OperatingSystemTypes) UnmarshalJSON(bytes []byte) error

type PublicNetworkAccess

type PublicNetworkAccess string
const (
	PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled"
	PublicNetworkAccessEnabled  PublicNetworkAccess = "Enabled"
)

func (*PublicNetworkAccess) UnmarshalJSON

func (s *PublicNetworkAccess) UnmarshalJSON(bytes []byte) error

type PurchasePlan

type PurchasePlan struct {
	Name          string  `json:"name"`
	Product       string  `json:"product"`
	PromotionCode *string `json:"promotionCode,omitempty"`
	Publisher     string  `json:"publisher"`
}

type RevokeAccessOperationResponse

type RevokeAccessOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type Snapshot

type Snapshot struct {
	ExtendedLocation *edgezones.Model    `json:"extendedLocation,omitempty"`
	Id               *string             `json:"id,omitempty"`
	Location         string              `json:"location"`
	ManagedBy        *string             `json:"managedBy,omitempty"`
	Name             *string             `json:"name,omitempty"`
	Properties       *SnapshotProperties `json:"properties,omitempty"`
	Sku              *SnapshotSku        `json:"sku,omitempty"`
	Tags             *map[string]string  `json:"tags,omitempty"`
	Type             *string             `json:"type,omitempty"`
}

type SnapshotId

type SnapshotId struct {
	SubscriptionId    string
	ResourceGroupName string
	SnapshotName      string
}

SnapshotId is a struct representing the Resource ID for a Snapshot

func NewSnapshotID

func NewSnapshotID(subscriptionId string, resourceGroupName 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) ID

func (id SnapshotId) ID() string

ID returns the formatted Snapshot ID

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

type SnapshotOperationPredicate struct {
	Id        *string
	Location  *string
	ManagedBy *string
	Name      *string
	Type      *string
}

func (SnapshotOperationPredicate) Matches

func (p SnapshotOperationPredicate) Matches(input Snapshot) bool

type SnapshotProperties

type SnapshotProperties struct {
	CompletionPercent            *float64                      `json:"completionPercent,omitempty"`
	CopyCompletionError          *CopyCompletionError          `json:"copyCompletionError,omitempty"`
	CreationData                 CreationData                  `json:"creationData"`
	DataAccessAuthMode           *DataAccessAuthMode           `json:"dataAccessAuthMode,omitempty"`
	DiskAccessId                 *string                       `json:"diskAccessId,omitempty"`
	DiskSizeBytes                *int64                        `json:"diskSizeBytes,omitempty"`
	DiskSizeGB                   *int64                        `json:"diskSizeGB,omitempty"`
	DiskState                    *DiskState                    `json:"diskState,omitempty"`
	Encryption                   *Encryption                   `json:"encryption,omitempty"`
	EncryptionSettingsCollection *EncryptionSettingsCollection `json:"encryptionSettingsCollection,omitempty"`
	HyperVGeneration             *HyperVGeneration             `json:"hyperVGeneration,omitempty"`
	Incremental                  *bool                         `json:"incremental,omitempty"`
	NetworkAccessPolicy          *NetworkAccessPolicy          `json:"networkAccessPolicy,omitempty"`
	OsType                       *OperatingSystemTypes         `json:"osType,omitempty"`
	ProvisioningState            *string                       `json:"provisioningState,omitempty"`
	PublicNetworkAccess          *PublicNetworkAccess          `json:"publicNetworkAccess,omitempty"`
	PurchasePlan                 *PurchasePlan                 `json:"purchasePlan,omitempty"`
	SecurityProfile              *DiskSecurityProfile          `json:"securityProfile,omitempty"`
	SupportedCapabilities        *SupportedCapabilities        `json:"supportedCapabilities,omitempty"`
	SupportsHibernation          *bool                         `json:"supportsHibernation,omitempty"`
	TimeCreated                  *string                       `json:"timeCreated,omitempty"`
	UniqueId                     *string                       `json:"uniqueId,omitempty"`
}

func (*SnapshotProperties) GetTimeCreatedAsTime

func (o *SnapshotProperties) GetTimeCreatedAsTime() (*time.Time, error)

func (*SnapshotProperties) SetTimeCreatedAsTime

func (o *SnapshotProperties) SetTimeCreatedAsTime(input time.Time)

type SnapshotSku

type SnapshotSku struct {
	Name *SnapshotStorageAccountTypes `json:"name,omitempty"`
	Tier *string                      `json:"tier,omitempty"`
}

type SnapshotStorageAccountTypes

type SnapshotStorageAccountTypes string
const (
	SnapshotStorageAccountTypesPremiumLRS  SnapshotStorageAccountTypes = "Premium_LRS"
	SnapshotStorageAccountTypesStandardLRS SnapshotStorageAccountTypes = "Standard_LRS"
	SnapshotStorageAccountTypesStandardZRS SnapshotStorageAccountTypes = "Standard_ZRS"
)

func (*SnapshotStorageAccountTypes) UnmarshalJSON

func (s *SnapshotStorageAccountTypes) UnmarshalJSON(bytes []byte) error

type SnapshotUpdate

type SnapshotUpdate struct {
	Properties *SnapshotUpdateProperties `json:"properties,omitempty"`
	Sku        *SnapshotSku              `json:"sku,omitempty"`
	Tags       *map[string]string        `json:"tags,omitempty"`
}

type SnapshotUpdateProperties

type SnapshotUpdateProperties struct {
	DataAccessAuthMode           *DataAccessAuthMode           `json:"dataAccessAuthMode,omitempty"`
	DiskAccessId                 *string                       `json:"diskAccessId,omitempty"`
	DiskSizeGB                   *int64                        `json:"diskSizeGB,omitempty"`
	Encryption                   *Encryption                   `json:"encryption,omitempty"`
	EncryptionSettingsCollection *EncryptionSettingsCollection `json:"encryptionSettingsCollection,omitempty"`
	NetworkAccessPolicy          *NetworkAccessPolicy          `json:"networkAccessPolicy,omitempty"`
	OsType                       *OperatingSystemTypes         `json:"osType,omitempty"`
	PublicNetworkAccess          *PublicNetworkAccess          `json:"publicNetworkAccess,omitempty"`
	SupportedCapabilities        *SupportedCapabilities        `json:"supportedCapabilities,omitempty"`
	SupportsHibernation          *bool                         `json:"supportsHibernation,omitempty"`
}

type SnapshotsClient

type SnapshotsClient struct {
	Client *resourcemanager.Client
}

func NewSnapshotsClientWithBaseURI

func NewSnapshotsClientWithBaseURI(sdkApi sdkEnv.Api) (*SnapshotsClient, error)

func (SnapshotsClient) CreateOrUpdate

func (c SnapshotsClient) CreateOrUpdate(ctx context.Context, id SnapshotId, input Snapshot) (result CreateOrUpdateOperationResponse, err error)

CreateOrUpdate ...

func (SnapshotsClient) CreateOrUpdateThenPoll

func (c SnapshotsClient) CreateOrUpdateThenPoll(ctx context.Context, id SnapshotId, input Snapshot) error

CreateOrUpdateThenPoll performs CreateOrUpdate 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) GrantAccess

func (c SnapshotsClient) GrantAccess(ctx context.Context, id SnapshotId, input GrantAccessData) (result GrantAccessOperationResponse, err error)

GrantAccess ...

func (SnapshotsClient) GrantAccessThenPoll

func (c SnapshotsClient) GrantAccessThenPoll(ctx context.Context, id SnapshotId, input GrantAccessData) error

GrantAccessThenPoll performs GrantAccess then polls until it's completed

func (SnapshotsClient) List

List ...

func (SnapshotsClient) ListByResourceGroup

ListByResourceGroup ...

func (SnapshotsClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (SnapshotsClient) ListByResourceGroupCompleteMatchingPredicate

func (c SnapshotsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate SnapshotOperationPredicate) (result ListByResourceGroupCompleteResult, err error)

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SnapshotsClient) ListComplete

ListComplete retrieves all the results into a single object

func (SnapshotsClient) ListCompleteMatchingPredicate

func (c SnapshotsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate SnapshotOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SnapshotsClient) RevokeAccess

func (c SnapshotsClient) RevokeAccess(ctx context.Context, id SnapshotId) (result RevokeAccessOperationResponse, err error)

RevokeAccess ...

func (SnapshotsClient) RevokeAccessThenPoll

func (c SnapshotsClient) RevokeAccessThenPoll(ctx context.Context, id SnapshotId) error

RevokeAccessThenPoll performs RevokeAccess then polls until it's completed

func (SnapshotsClient) Update

func (c SnapshotsClient) Update(ctx context.Context, id SnapshotId, input SnapshotUpdate) (result UpdateOperationResponse, err error)

Update ...

func (SnapshotsClient) UpdateThenPoll

func (c SnapshotsClient) UpdateThenPoll(ctx context.Context, id SnapshotId, input SnapshotUpdate) error

UpdateThenPoll performs Update then polls until it's completed

type SourceVault

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

type SupportedCapabilities

type SupportedCapabilities struct {
	AcceleratedNetwork *bool         `json:"acceleratedNetwork,omitempty"`
	Architecture       *Architecture `json:"architecture,omitempty"`
}

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Snapshot
}

Jump to

Keyboard shortcuts

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