disks

package
v0.20240527.1094340 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks Documentation

The disks SDK allows for interaction with the Azure Resource Manager Service compute (API Version 2023-04-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/2023-04-02/disks"

Client Initialization

client := disks.NewDisksClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DisksClient.CreateOrUpdate

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

payload := disks.Disk{
	// ...
}


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

Example Usage: DisksClient.Delete

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

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

Example Usage: DisksClient.Get

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

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: DisksClient.GrantAccess

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

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


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

Example Usage: DisksClient.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: DisksClient.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: DisksClient.RevokeAccess

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

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

Example Usage: DisksClient.Update

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

payload := disks.DiskUpdate{
	// ...
}


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 PossibleValuesForDataAccessAuthMode

func PossibleValuesForDataAccessAuthMode() []string

func PossibleValuesForDiskCreateOption

func PossibleValuesForDiskCreateOption() []string

func PossibleValuesForDiskSecurityTypes

func PossibleValuesForDiskSecurityTypes() []string

func PossibleValuesForDiskState

func PossibleValuesForDiskState() []string

func PossibleValuesForDiskStorageAccountTypes

func PossibleValuesForDiskStorageAccountTypes() []string

func PossibleValuesForEncryptionType

func PossibleValuesForEncryptionType() []string

func PossibleValuesForFileFormat

func PossibleValuesForFileFormat() []string

func PossibleValuesForHyperVGeneration

func PossibleValuesForHyperVGeneration() []string

func PossibleValuesForNetworkAccessPolicy

func PossibleValuesForNetworkAccessPolicy() []string

func PossibleValuesForOperatingSystemTypes

func PossibleValuesForOperatingSystemTypes() []string

func PossibleValuesForPublicNetworkAccess

func PossibleValuesForPublicNetworkAccess() []string

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 CreateOrUpdateOperationResponse

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

type CreationData

type CreationData struct {
	CreateOption          DiskCreateOption    `json:"createOption"`
	ElasticSanResourceId  *string             `json:"elasticSanResourceId,omitempty"`
	GalleryImageReference *ImageDiskReference `json:"galleryImageReference,omitempty"`
	ImageReference        *ImageDiskReference `json:"imageReference,omitempty"`
	LogicalSectorSize     *int64              `json:"logicalSectorSize,omitempty"`
	PerformancePlus       *bool               `json:"performancePlus,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 Disk

type Disk struct {
	ExtendedLocation  *edgezones.Model   `json:"extendedLocation,omitempty"`
	Id                *string            `json:"id,omitempty"`
	Location          string             `json:"location"`
	ManagedBy         *string            `json:"managedBy,omitempty"`
	ManagedByExtended *[]string          `json:"managedByExtended,omitempty"`
	Name              *string            `json:"name,omitempty"`
	Properties        *DiskProperties    `json:"properties,omitempty"`
	Sku               *DiskSku           `json:"sku,omitempty"`
	Tags              *map[string]string `json:"tags,omitempty"`
	Type              *string            `json:"type,omitempty"`
	Zones             *zones.Schema      `json:"zones,omitempty"`
}

type DiskCreateOption

type DiskCreateOption string
const (
	DiskCreateOptionAttach               DiskCreateOption = "Attach"
	DiskCreateOptionCopy                 DiskCreateOption = "Copy"
	DiskCreateOptionCopyFromSanSnapshot  DiskCreateOption = "CopyFromSanSnapshot"
	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 DiskOperationPredicate

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

func (DiskOperationPredicate) Matches

func (p DiskOperationPredicate) Matches(input Disk) bool

type DiskProperties

type DiskProperties struct {
	BurstingEnabled              *bool                         `json:"burstingEnabled,omitempty"`
	BurstingEnabledTime          *string                       `json:"burstingEnabledTime,omitempty"`
	CompletionPercent            *float64                      `json:"completionPercent,omitempty"`
	CreationData                 CreationData                  `json:"creationData"`
	DataAccessAuthMode           *DataAccessAuthMode           `json:"dataAccessAuthMode,omitempty"`
	DiskAccessId                 *string                       `json:"diskAccessId,omitempty"`
	DiskIOPSReadOnly             *int64                        `json:"diskIOPSReadOnly,omitempty"`
	DiskIOPSReadWrite            *int64                        `json:"diskIOPSReadWrite,omitempty"`
	DiskMBpsReadOnly             *int64                        `json:"diskMBpsReadOnly,omitempty"`
	DiskMBpsReadWrite            *int64                        `json:"diskMBpsReadWrite,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"`
	LastOwnershipUpdateTime      *string                       `json:"LastOwnershipUpdateTime,omitempty"`
	MaxShares                    *int64                        `json:"maxShares,omitempty"`
	NetworkAccessPolicy          *NetworkAccessPolicy          `json:"networkAccessPolicy,omitempty"`
	OptimizedForFrequentAttach   *bool                         `json:"optimizedForFrequentAttach,omitempty"`
	OsType                       *OperatingSystemTypes         `json:"osType,omitempty"`
	PropertyUpdatesInProgress    *PropertyUpdatesInProgress    `json:"propertyUpdatesInProgress,omitempty"`
	ProvisioningState            *string                       `json:"provisioningState,omitempty"`
	PublicNetworkAccess          *PublicNetworkAccess          `json:"publicNetworkAccess,omitempty"`
	PurchasePlan                 *PurchasePlan                 `json:"purchasePlan,omitempty"`
	SecurityProfile              *DiskSecurityProfile          `json:"securityProfile,omitempty"`
	ShareInfo                    *[]ShareInfoElement           `json:"shareInfo,omitempty"`
	SupportedCapabilities        *SupportedCapabilities        `json:"supportedCapabilities,omitempty"`
	SupportsHibernation          *bool                         `json:"supportsHibernation,omitempty"`
	Tier                         *string                       `json:"tier,omitempty"`
	TimeCreated                  *string                       `json:"timeCreated,omitempty"`
	UniqueId                     *string                       `json:"uniqueId,omitempty"`
}

func (*DiskProperties) GetBurstingEnabledTimeAsTime

func (o *DiskProperties) GetBurstingEnabledTimeAsTime() (*time.Time, error)

func (*DiskProperties) GetLastOwnershipUpdateTimeAsTime

func (o *DiskProperties) GetLastOwnershipUpdateTimeAsTime() (*time.Time, error)

func (*DiskProperties) GetTimeCreatedAsTime

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

func (*DiskProperties) SetBurstingEnabledTimeAsTime

func (o *DiskProperties) SetBurstingEnabledTimeAsTime(input time.Time)

func (*DiskProperties) SetLastOwnershipUpdateTimeAsTime

func (o *DiskProperties) SetLastOwnershipUpdateTimeAsTime(input time.Time)

func (*DiskProperties) SetTimeCreatedAsTime

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

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 DiskSku

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

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 DiskStorageAccountTypes

type DiskStorageAccountTypes string
const (
	DiskStorageAccountTypesPremiumLRS     DiskStorageAccountTypes = "Premium_LRS"
	DiskStorageAccountTypesPremiumVTwoLRS DiskStorageAccountTypes = "PremiumV2_LRS"
	DiskStorageAccountTypesPremiumZRS     DiskStorageAccountTypes = "Premium_ZRS"
	DiskStorageAccountTypesStandardLRS    DiskStorageAccountTypes = "Standard_LRS"
	DiskStorageAccountTypesStandardSSDLRS DiskStorageAccountTypes = "StandardSSD_LRS"
	DiskStorageAccountTypesStandardSSDZRS DiskStorageAccountTypes = "StandardSSD_ZRS"
	DiskStorageAccountTypesUltraSSDLRS    DiskStorageAccountTypes = "UltraSSD_LRS"
)

func (*DiskStorageAccountTypes) UnmarshalJSON

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

type DiskUpdate

type DiskUpdate struct {
	Properties *DiskUpdateProperties `json:"properties,omitempty"`
	Sku        *DiskSku              `json:"sku,omitempty"`
	Tags       *map[string]string    `json:"tags,omitempty"`
}

type DiskUpdateProperties

type DiskUpdateProperties struct {
	BurstingEnabled              *bool                         `json:"burstingEnabled,omitempty"`
	DataAccessAuthMode           *DataAccessAuthMode           `json:"dataAccessAuthMode,omitempty"`
	DiskAccessId                 *string                       `json:"diskAccessId,omitempty"`
	DiskIOPSReadOnly             *int64                        `json:"diskIOPSReadOnly,omitempty"`
	DiskIOPSReadWrite            *int64                        `json:"diskIOPSReadWrite,omitempty"`
	DiskMBpsReadOnly             *int64                        `json:"diskMBpsReadOnly,omitempty"`
	DiskMBpsReadWrite            *int64                        `json:"diskMBpsReadWrite,omitempty"`
	DiskSizeGB                   *int64                        `json:"diskSizeGB,omitempty"`
	Encryption                   *Encryption                   `json:"encryption,omitempty"`
	EncryptionSettingsCollection *EncryptionSettingsCollection `json:"encryptionSettingsCollection,omitempty"`
	MaxShares                    *int64                        `json:"maxShares,omitempty"`
	NetworkAccessPolicy          *NetworkAccessPolicy          `json:"networkAccessPolicy,omitempty"`
	OptimizedForFrequentAttach   *bool                         `json:"optimizedForFrequentAttach,omitempty"`
	OsType                       *OperatingSystemTypes         `json:"osType,omitempty"`
	PropertyUpdatesInProgress    *PropertyUpdatesInProgress    `json:"propertyUpdatesInProgress,omitempty"`
	PublicNetworkAccess          *PublicNetworkAccess          `json:"publicNetworkAccess,omitempty"`
	PurchasePlan                 *PurchasePlan                 `json:"purchasePlan,omitempty"`
	SupportedCapabilities        *SupportedCapabilities        `json:"supportedCapabilities,omitempty"`
	SupportsHibernation          *bool                         `json:"supportsHibernation,omitempty"`
	Tier                         *string                       `json:"tier,omitempty"`
}

type DisksClient

type DisksClient struct {
	Client *resourcemanager.Client
}

func NewDisksClientWithBaseURI

func NewDisksClientWithBaseURI(sdkApi sdkEnv.Api) (*DisksClient, error)

func (DisksClient) CreateOrUpdate

func (c DisksClient) CreateOrUpdate(ctx context.Context, id commonids.ManagedDiskId, input Disk) (result CreateOrUpdateOperationResponse, err error)

CreateOrUpdate ...

func (DisksClient) CreateOrUpdateThenPoll

func (c DisksClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.ManagedDiskId, input Disk) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (DisksClient) Delete

Delete ...

func (DisksClient) DeleteThenPoll

func (c DisksClient) DeleteThenPoll(ctx context.Context, id commonids.ManagedDiskId) error

DeleteThenPoll performs Delete then polls until it's completed

func (DisksClient) Get

Get ...

func (DisksClient) GrantAccess

GrantAccess ...

func (DisksClient) GrantAccessThenPoll

func (c DisksClient) GrantAccessThenPoll(ctx context.Context, id commonids.ManagedDiskId, input GrantAccessData) error

GrantAccessThenPoll performs GrantAccess then polls until it's completed

func (DisksClient) List

List ...

func (DisksClient) ListByResourceGroup

func (c DisksClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)

ListByResourceGroup ...

func (DisksClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (DisksClient) ListByResourceGroupCompleteMatchingPredicate

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

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DisksClient) ListComplete

ListComplete retrieves all the results into a single object

func (DisksClient) ListCompleteMatchingPredicate

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

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DisksClient) RevokeAccess

RevokeAccess ...

func (DisksClient) RevokeAccessThenPoll

func (c DisksClient) RevokeAccessThenPoll(ctx context.Context, id commonids.ManagedDiskId) error

RevokeAccessThenPoll performs RevokeAccess then polls until it's completed

func (DisksClient) Update

Update ...

func (DisksClient) UpdateThenPoll

func (c DisksClient) UpdateThenPoll(ctx context.Context, id commonids.ManagedDiskId, input DiskUpdate) error

UpdateThenPoll performs Update then polls until it's completed

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 FileFormat

type FileFormat string
const (
	FileFormatVHD  FileFormat = "VHD"
	FileFormatVHDX FileFormat = "VHDX"
)

func (*FileFormat) UnmarshalJSON

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

type GetOperationResponse

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

type GrantAccessData

type GrantAccessData struct {
	Access                   AccessLevel `json:"access"`
	DurationInSeconds        int64       `json:"durationInSeconds"`
	FileFormat               *FileFormat `json:"fileFormat,omitempty"`
	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              []Disk
}

type ListByResourceGroupOperationResponse

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

type ListCompleteResult

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

type ListOperationResponse

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

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 PropertyUpdatesInProgress

type PropertyUpdatesInProgress struct {
	TargetTier *string `json:"targetTier,omitempty"`
}

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 ShareInfoElement

type ShareInfoElement struct {
	VMUri *string `json:"vmUri,omitempty"`
}

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"`
	DiskControllerTypes *string       `json:"diskControllerTypes,omitempty"`
}

type UpdateOperationResponse

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

Jump to

Keyboard shortcuts

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