azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/compute/mgmt/2016-04-30-preview/compute Index | Files | Directories

package compute

import "github.com/Azure/azure-sdk-for-go/services/preview/compute/mgmt/2016-04-30-preview/compute"

Package compute implements the Azure ARM Compute service API version 2016-04-30-preview.

Compute Client

Index

Package Files

availabilitysets.go client.go disks.go images.go models.go snapshots.go usage.go version.go virtualmachineextensionimages.go virtualmachineextensions.go virtualmachineimages.go virtualmachines.go virtualmachinescalesets.go virtualmachinescalesetvms.go virtualmachinesizes.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type APIEntityReference Uses

type APIEntityReference struct {
    // ID - The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/...
    ID *string `json:"id,omitempty"`
}

APIEntityReference the API entity reference.

type APIError Uses

type APIError struct {
    // Details - The Api error details
    Details *[]APIErrorBase `json:"details,omitempty"`
    // Innererror - The Api inner error
    Innererror *InnerError `json:"innererror,omitempty"`
    // Code - The error code.
    Code *string `json:"code,omitempty"`
    // Target - The target of the particular error.
    Target *string `json:"target,omitempty"`
    // Message - The error message.
    Message *string `json:"message,omitempty"`
}

APIError api error.

type APIErrorBase Uses

type APIErrorBase struct {
    // Code - The error code.
    Code *string `json:"code,omitempty"`
    // Target - The target of the particular error.
    Target *string `json:"target,omitempty"`
    // Message - The error message.
    Message *string `json:"message,omitempty"`
}

APIErrorBase api error base.

type AccessLevel Uses

type AccessLevel string

AccessLevel enumerates the values for access level.

const (
    // None ...
    None AccessLevel = "None"
    // Read ...
    Read AccessLevel = "Read"
)

func PossibleAccessLevelValues Uses

func PossibleAccessLevelValues() []AccessLevel

PossibleAccessLevelValues returns an array of possible values for the AccessLevel const type.

type AccessURI Uses

type AccessURI struct {
    autorest.Response `json:"-"`
    // AccessURIOutput - Operation output data (raw JSON)
    *AccessURIOutput `json:"properties,omitempty"`
}

AccessURI a disk access SAS uri.

func (AccessURI) MarshalJSON Uses

func (au AccessURI) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccessURI.

func (*AccessURI) UnmarshalJSON Uses

func (au *AccessURI) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AccessURI struct.

type AccessURIOutput Uses

type AccessURIOutput struct {
    // AccessURIRaw - Operation output data (raw JSON)
    *AccessURIRaw `json:"output,omitempty"`
}

AccessURIOutput azure properties, including output.

func (AccessURIOutput) MarshalJSON Uses

func (auo AccessURIOutput) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccessURIOutput.

func (*AccessURIOutput) UnmarshalJSON Uses

func (auo *AccessURIOutput) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AccessURIOutput struct.

type AccessURIRaw Uses

type AccessURIRaw struct {
    // AccessSAS - READ-ONLY; A SAS uri for accessing a disk.
    AccessSAS *string `json:"accessSAS,omitempty"`
}

AccessURIRaw this object gets 'bubbled up' through flattening.

type AdditionalUnattendContent Uses

type AdditionalUnattendContent struct {
    // PassName - The pass name. Currently, the only allowable value is OobeSystem. Possible values include: 'OobeSystem'
    PassName PassNames `json:"passName,omitempty"`
    // ComponentName - The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup. Possible values include: 'MicrosoftWindowsShellSetup'
    ComponentName ComponentNames `json:"componentName,omitempty"`
    // SettingName - Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: 'AutoLogon', 'FirstLogonCommands'
    SettingName SettingNames `json:"settingName,omitempty"`
    // Content - Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted.
    Content *string `json:"content,omitempty"`
}

AdditionalUnattendContent specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied.

type AvailabilitySet Uses

type AvailabilitySet struct {
    autorest.Response          `json:"-"`
    *AvailabilitySetProperties `json:"properties,omitempty"`
    // Sku - Sku of the availability set
    Sku *Sku `json:"sku,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
    // Location - Resource location
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
}

AvailabilitySet specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> For more information on Azure planned maintenance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set.

func (AvailabilitySet) MarshalJSON Uses

func (as AvailabilitySet) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AvailabilitySet.

func (*AvailabilitySet) UnmarshalJSON Uses

func (as *AvailabilitySet) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AvailabilitySet struct.

type AvailabilitySetListResult Uses

type AvailabilitySetListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of availability sets
    Value *[]AvailabilitySet `json:"value,omitempty"`
    // NextLink - The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the next page of AvailabilitySets.
    NextLink *string `json:"nextLink,omitempty"`
}

AvailabilitySetListResult the List Availability Set operation response.

func (AvailabilitySetListResult) IsEmpty Uses

func (aslr AvailabilitySetListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AvailabilitySetListResultIterator Uses

type AvailabilitySetListResultIterator struct {
    // contains filtered or unexported fields
}

AvailabilitySetListResultIterator provides access to a complete listing of AvailabilitySet values.

func NewAvailabilitySetListResultIterator Uses

func NewAvailabilitySetListResultIterator(page AvailabilitySetListResultPage) AvailabilitySetListResultIterator

Creates a new instance of the AvailabilitySetListResultIterator type.

func (*AvailabilitySetListResultIterator) Next Uses

func (iter *AvailabilitySetListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AvailabilitySetListResultIterator) NextWithContext Uses

func (iter *AvailabilitySetListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AvailabilitySetListResultIterator) NotDone Uses

func (iter AvailabilitySetListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (AvailabilitySetListResultIterator) Response Uses

func (iter AvailabilitySetListResultIterator) Response() AvailabilitySetListResult

Response returns the raw server response from the last page request.

func (AvailabilitySetListResultIterator) Value Uses

func (iter AvailabilitySetListResultIterator) Value() AvailabilitySet

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AvailabilitySetListResultPage Uses

type AvailabilitySetListResultPage struct {
    // contains filtered or unexported fields
}

AvailabilitySetListResultPage contains a page of AvailabilitySet values.

func NewAvailabilitySetListResultPage Uses

func NewAvailabilitySetListResultPage(getNextPage func(context.Context, AvailabilitySetListResult) (AvailabilitySetListResult, error)) AvailabilitySetListResultPage

Creates a new instance of the AvailabilitySetListResultPage type.

func (*AvailabilitySetListResultPage) Next Uses

func (page *AvailabilitySetListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AvailabilitySetListResultPage) NextWithContext Uses

func (page *AvailabilitySetListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AvailabilitySetListResultPage) NotDone Uses

func (page AvailabilitySetListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AvailabilitySetListResultPage) Response Uses

func (page AvailabilitySetListResultPage) Response() AvailabilitySetListResult

Response returns the raw server response from the last page request.

func (AvailabilitySetListResultPage) Values Uses

func (page AvailabilitySetListResultPage) Values() []AvailabilitySet

Values returns the slice of values for the current page or nil if there are no values.

type AvailabilitySetProperties Uses

type AvailabilitySetProperties struct {
    // PlatformUpdateDomainCount - Update Domain count.
    PlatformUpdateDomainCount *int32 `json:"platformUpdateDomainCount,omitempty"`
    // PlatformFaultDomainCount - Fault Domain count.
    PlatformFaultDomainCount *int32 `json:"platformFaultDomainCount,omitempty"`
    // VirtualMachines - A list of references to all virtual machines in the availability set.
    VirtualMachines *[]SubResource `json:"virtualMachines,omitempty"`
    // Statuses - READ-ONLY; The resource status information.
    Statuses *[]InstanceViewStatus `json:"statuses,omitempty"`
    // Managed - If the availability set supports managed disks.
    Managed *bool `json:"managed,omitempty"`
}

AvailabilitySetProperties the instance view of a resource.

type AvailabilitySetsClient Uses

type AvailabilitySetsClient struct {
    BaseClient
}

AvailabilitySetsClient is the compute Client

func NewAvailabilitySetsClient Uses

func NewAvailabilitySetsClient(subscriptionID string) AvailabilitySetsClient

NewAvailabilitySetsClient creates an instance of the AvailabilitySetsClient client.

func NewAvailabilitySetsClientWithBaseURI Uses

func NewAvailabilitySetsClientWithBaseURI(baseURI string, subscriptionID string) AvailabilitySetsClient

NewAvailabilitySetsClientWithBaseURI creates an instance of the AvailabilitySetsClient client.

func (AvailabilitySetsClient) CreateOrUpdate Uses

func (client AvailabilitySetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, name string, parameters AvailabilitySet) (result AvailabilitySet, err error)

CreateOrUpdate create or update an availability set. Parameters: resourceGroupName - the name of the resource group. name - the name of the availability set. parameters - parameters supplied to the Create Availability Set operation.

func (AvailabilitySetsClient) CreateOrUpdatePreparer Uses

func (client AvailabilitySetsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, name string, parameters AvailabilitySet) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AvailabilitySetsClient) CreateOrUpdateResponder Uses

func (client AvailabilitySetsClient) CreateOrUpdateResponder(resp *http.Response) (result AvailabilitySet, err error)

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

func (AvailabilitySetsClient) CreateOrUpdateSender Uses

func (client AvailabilitySetsClient) 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 (AvailabilitySetsClient) Delete Uses

func (client AvailabilitySetsClient) Delete(ctx context.Context, resourceGroupName string, availabilitySetName string) (result OperationStatusResponse, err error)

Delete delete an availability set. Parameters: resourceGroupName - the name of the resource group. availabilitySetName - the name of the availability set.

func (AvailabilitySetsClient) DeletePreparer Uses

func (client AvailabilitySetsClient) DeletePreparer(ctx context.Context, resourceGroupName string, availabilitySetName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (AvailabilitySetsClient) DeleteResponder Uses

func (client AvailabilitySetsClient) 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 (AvailabilitySetsClient) DeleteSender Uses

func (client AvailabilitySetsClient) 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 (AvailabilitySetsClient) Get Uses

func (client AvailabilitySetsClient) Get(ctx context.Context, resourceGroupName string, availabilitySetName string) (result AvailabilitySet, err error)

Get retrieves information about an availability set. Parameters: resourceGroupName - the name of the resource group. availabilitySetName - the name of the availability set.

func (AvailabilitySetsClient) GetPreparer Uses

func (client AvailabilitySetsClient) GetPreparer(ctx context.Context, resourceGroupName string, availabilitySetName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AvailabilitySetsClient) GetResponder Uses

func (client AvailabilitySetsClient) GetResponder(resp *http.Response) (result AvailabilitySet, err error)

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

func (AvailabilitySetsClient) GetSender Uses

func (client AvailabilitySetsClient) 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 (AvailabilitySetsClient) List Uses

func (client AvailabilitySetsClient) List(ctx context.Context, resourceGroupName string) (result AvailabilitySetListResultPage, err error)

List lists all availability sets in a resource group. Parameters: resourceGroupName - the name of the resource group.

func (AvailabilitySetsClient) ListAvailableSizes Uses

func (client AvailabilitySetsClient) ListAvailableSizes(ctx context.Context, resourceGroupName string, availabilitySetName string) (result VirtualMachineSizeListResult, err error)

ListAvailableSizes lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. Parameters: resourceGroupName - the name of the resource group. availabilitySetName - the name of the availability set.

func (AvailabilitySetsClient) ListAvailableSizesPreparer Uses

func (client AvailabilitySetsClient) ListAvailableSizesPreparer(ctx context.Context, resourceGroupName string, availabilitySetName string) (*http.Request, error)

ListAvailableSizesPreparer prepares the ListAvailableSizes request.

func (AvailabilitySetsClient) ListAvailableSizesResponder Uses

func (client AvailabilitySetsClient) ListAvailableSizesResponder(resp *http.Response) (result VirtualMachineSizeListResult, err error)

ListAvailableSizesResponder handles the response to the ListAvailableSizes request. The method always closes the http.Response Body.

func (AvailabilitySetsClient) ListAvailableSizesSender Uses

func (client AvailabilitySetsClient) ListAvailableSizesSender(req *http.Request) (*http.Response, error)

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

func (AvailabilitySetsClient) ListBySubscription Uses

func (client AvailabilitySetsClient) ListBySubscription(ctx context.Context) (result AvailabilitySetListResultPage, err error)

ListBySubscription lists all availability sets in a subscription.

func (AvailabilitySetsClient) ListBySubscriptionComplete Uses

func (client AvailabilitySetsClient) ListBySubscriptionComplete(ctx context.Context) (result AvailabilitySetListResultIterator, err error)

ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (AvailabilitySetsClient) ListBySubscriptionPreparer Uses

func (client AvailabilitySetsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (AvailabilitySetsClient) ListBySubscriptionResponder Uses

func (client AvailabilitySetsClient) ListBySubscriptionResponder(resp *http.Response) (result AvailabilitySetListResult, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (AvailabilitySetsClient) ListBySubscriptionSender Uses

func (client AvailabilitySetsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

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

func (AvailabilitySetsClient) ListComplete Uses

func (client AvailabilitySetsClient) ListComplete(ctx context.Context, resourceGroupName string) (result AvailabilitySetListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (AvailabilitySetsClient) ListPreparer Uses

func (client AvailabilitySetsClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListPreparer prepares the List request.

func (AvailabilitySetsClient) ListResponder Uses

func (client AvailabilitySetsClient) ListResponder(resp *http.Response) (result AvailabilitySetListResult, err error)

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

func (AvailabilitySetsClient) ListSender Uses

func (client AvailabilitySetsClient) 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.

type BaseClient Uses

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

BaseClient is the base client for Compute.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BootDiagnostics Uses

type BootDiagnostics struct {
    // Enabled - Whether boot diagnostics should be enabled on the Virtual Machine.
    Enabled *bool `json:"enabled,omitempty"`
    // StorageURI - Uri of the storage account to use for placing the console output and screenshot.
    StorageURI *string `json:"storageUri,omitempty"`
}

BootDiagnostics boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. <br><br> You can easily view the output of your console log. <br><br> Azure also enables you to see a screenshot of the VM from the hypervisor.

type BootDiagnosticsInstanceView Uses

type BootDiagnosticsInstanceView struct {
    // ConsoleScreenshotBlobURI - READ-ONLY; The console screenshot blob URI.
    ConsoleScreenshotBlobURI *string `json:"consoleScreenshotBlobUri,omitempty"`
    // SerialConsoleLogBlobURI - READ-ONLY; The Linux serial console log blob Uri.
    SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty"`
}

BootDiagnosticsInstanceView the instance view of a virtual machine boot diagnostics.

type CachingTypes Uses

type CachingTypes string

CachingTypes enumerates the values for caching types.

const (
    // CachingTypesNone ...
    CachingTypesNone CachingTypes = "None"
    // CachingTypesReadOnly ...
    CachingTypesReadOnly CachingTypes = "ReadOnly"
    // CachingTypesReadWrite ...
    CachingTypesReadWrite CachingTypes = "ReadWrite"
)

func PossibleCachingTypesValues Uses

func PossibleCachingTypesValues() []CachingTypes

PossibleCachingTypesValues returns an array of possible values for the CachingTypes const type.

type ComponentNames Uses

type ComponentNames string

ComponentNames enumerates the values for component names.

const (
    // MicrosoftWindowsShellSetup ...
    MicrosoftWindowsShellSetup ComponentNames = "Microsoft-Windows-Shell-Setup"
)

func PossibleComponentNamesValues Uses

func PossibleComponentNamesValues() []ComponentNames

PossibleComponentNamesValues returns an array of possible values for the ComponentNames const type.

type CreationData Uses

type CreationData struct {
    // CreateOption - This enumerates the possible sources of a disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore'
    CreateOption DiskCreateOption `json:"createOption,omitempty"`
    // StorageAccountID - If createOption is Import, the Azure Resource Manager identifier of the storage account containing the blob to import as a disk. Required only if the blob is in a different subscription
    StorageAccountID *string `json:"storageAccountId,omitempty"`
    // ImageReference - Disk source information.
    ImageReference *ImageDiskReference `json:"imageReference,omitempty"`
    // SourceURI - If createOption is Import, this is a SAS URI to a blob to be imported into a managed disk. If createOption is Copy, this is a relative Uri containing the id of the source snapshot to be copied into a managed disk.
    SourceURI *string `json:"sourceUri,omitempty"`
    // SourceResourceID - If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.
    SourceResourceID *string `json:"sourceResourceId,omitempty"`
}

CreationData data used when creating a disk.

type DataDisk Uses

type DataDisk struct {
    // Lun - Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.
    Lun *int32 `json:"lun,omitempty"`
    // Name - The disk name.
    Name *string `json:"name,omitempty"`
    // Vhd - The virtual hard disk.
    Vhd *VirtualHardDisk `json:"vhd,omitempty"`
    // Image - The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.
    Image *VirtualHardDisk `json:"image,omitempty"`
    // Caching - Specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'CachingTypesNone', 'CachingTypesReadOnly', 'CachingTypesReadWrite'
    Caching CachingTypes `json:"caching,omitempty"`
    // CreateOption - Specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you  also use the plan element previously described. Possible values include: 'DiskCreateOptionTypesFromImage', 'DiskCreateOptionTypesEmpty', 'DiskCreateOptionTypesAttach'
    CreateOption DiskCreateOptionTypes `json:"createOption,omitempty"`
    // DiskSizeGB - Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB
    DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
    // ManagedDisk - The managed disk parameters.
    ManagedDisk *ManagedDiskParameters `json:"managedDisk,omitempty"`
}

DataDisk describes a data disk.

type DataDiskImage Uses

type DataDiskImage struct {
    // Lun - READ-ONLY; Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.
    Lun *int32 `json:"lun,omitempty"`
}

DataDiskImage contains the data disk images information.

type DiagnosticsProfile Uses

type DiagnosticsProfile struct {
    // BootDiagnostics - Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. <br><br> You can easily view the output of your console log. <br><br> Azure also enables you to see a screenshot of the VM from the hypervisor.
    BootDiagnostics *BootDiagnostics `json:"bootDiagnostics,omitempty"`
}

DiagnosticsProfile specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15.

type Disk Uses

type Disk struct {
    autorest.Response `json:"-"`
    *DiskProperties   `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
    // Location - Resource location
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
}

Disk disk resource.

func (Disk) MarshalJSON Uses

func (d Disk) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Disk.

func (*Disk) UnmarshalJSON Uses

func (d *Disk) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Disk struct.

type DiskCreateOption Uses

type DiskCreateOption string

DiskCreateOption enumerates the values for disk create option.

const (
    // Attach ...
    Attach DiskCreateOption = "Attach"
    // Copy ...
    Copy DiskCreateOption = "Copy"
    // Empty ...
    Empty DiskCreateOption = "Empty"
    // FromImage ...
    FromImage DiskCreateOption = "FromImage"
    // Import ...
    Import DiskCreateOption = "Import"
    // Restore ...
    Restore DiskCreateOption = "Restore"
)

func PossibleDiskCreateOptionValues Uses

func PossibleDiskCreateOptionValues() []DiskCreateOption

PossibleDiskCreateOptionValues returns an array of possible values for the DiskCreateOption const type.

type DiskCreateOptionTypes Uses

type DiskCreateOptionTypes string

DiskCreateOptionTypes enumerates the values for disk create option types.

const (
    // DiskCreateOptionTypesAttach ...
    DiskCreateOptionTypesAttach DiskCreateOptionTypes = "Attach"
    // DiskCreateOptionTypesEmpty ...
    DiskCreateOptionTypesEmpty DiskCreateOptionTypes = "Empty"
    // DiskCreateOptionTypesFromImage ...
    DiskCreateOptionTypesFromImage DiskCreateOptionTypes = "FromImage"
)

func PossibleDiskCreateOptionTypesValues Uses

func PossibleDiskCreateOptionTypesValues() []DiskCreateOptionTypes

PossibleDiskCreateOptionTypesValues returns an array of possible values for the DiskCreateOptionTypes const type.

type DiskEncryptionSettings Uses

type DiskEncryptionSettings struct {
    // DiskEncryptionKey - Specifies the location of the disk encryption key, which is a Key Vault Secret.
    DiskEncryptionKey *KeyVaultSecretReference `json:"diskEncryptionKey,omitempty"`
    // KeyEncryptionKey - Specifies the location of the key encryption key in Key Vault.
    KeyEncryptionKey *KeyVaultKeyReference `json:"keyEncryptionKey,omitempty"`
    // Enabled - Specifies whether disk encryption should be enabled on the virtual machine.
    Enabled *bool `json:"enabled,omitempty"`
}

DiskEncryptionSettings describes a Encryption Settings for a Disk

type DiskInstanceView Uses

type DiskInstanceView struct {
    // Name - The disk name.
    Name *string `json:"name,omitempty"`
    // Statuses - The resource status information.
    Statuses *[]InstanceViewStatus `json:"statuses,omitempty"`
}

DiskInstanceView the instance view of the disk.

type DiskList Uses

type DiskList struct {
    autorest.Response `json:"-"`
    // Value - A list of disks.
    Value *[]Disk `json:"value,omitempty"`
    // NextLink - the uri to fetch the next page of disks. Call ListNext() with this to fetch the next page of disks.
    NextLink *string `json:"nextLink,omitempty"`
}

DiskList the List Disks operation response.

func (DiskList) IsEmpty Uses

func (dl DiskList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DiskListIterator Uses

type DiskListIterator struct {
    // contains filtered or unexported fields
}

DiskListIterator provides access to a complete listing of Disk values.

func NewDiskListIterator Uses

func NewDiskListIterator(page DiskListPage) DiskListIterator

Creates a new instance of the DiskListIterator type.

func (*DiskListIterator) Next Uses

func (iter *DiskListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DiskListIterator) NextWithContext Uses

func (iter *DiskListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (DiskListIterator) NotDone Uses

func (iter DiskListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (DiskListIterator) Response Uses

func (iter DiskListIterator) Response() DiskList

Response returns the raw server response from the last page request.

func (DiskListIterator) Value Uses

func (iter DiskListIterator) Value() Disk

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type DiskListPage Uses

type DiskListPage struct {
    // contains filtered or unexported fields
}

DiskListPage contains a page of Disk values.

func NewDiskListPage Uses

func NewDiskListPage(getNextPage func(context.Context, DiskList) (DiskList, error)) DiskListPage

Creates a new instance of the DiskListPage type.

func (*DiskListPage) Next Uses

func (page *DiskListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DiskListPage) NextWithContext Uses

func (page *DiskListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (DiskListPage) NotDone Uses

func (page DiskListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (DiskListPage) Response Uses

func (page DiskListPage) Response() DiskList

Response returns the raw server response from the last page request.

func (DiskListPage) Values Uses

func (page DiskListPage) Values() []Disk

Values returns the slice of values for the current page or nil if there are no values.

type DiskProperties Uses

type DiskProperties struct {
    // AccountType - the storage account type of the disk. Possible values include: 'StandardLRS', 'PremiumLRS'
    AccountType StorageAccountTypes `json:"accountType,omitempty"`
    // TimeCreated - READ-ONLY; The time when the disk was created.
    TimeCreated *date.Time `json:"timeCreated,omitempty"`
    // OsType - The Operating System type. Possible values include: 'Windows', 'Linux'
    OsType OperatingSystemTypes `json:"osType,omitempty"`
    // CreationData - Disk source information. CreationData information cannot be changed after the disk has been created.
    CreationData *CreationData `json:"creationData,omitempty"`
    // DiskSizeGB - If creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
    DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
    // EncryptionSettings - Encryption settings for disk or snapshot
    EncryptionSettings *EncryptionSettings `json:"encryptionSettings,omitempty"`
    // OwnerID - READ-ONLY; A relative URI containing the VM id that has the disk attached.
    OwnerID *string `json:"ownerId,omitempty"`
    // ProvisioningState - READ-ONLY; The disk provisioning state.
    ProvisioningState *string `json:"provisioningState,omitempty"`
}

DiskProperties disk resource properties.

type DiskUpdate Uses

type DiskUpdate struct {
    *DiskUpdateProperties `json:"properties,omitempty"`
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
}

DiskUpdate disk update resource.

func (DiskUpdate) MarshalJSON Uses

func (du DiskUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DiskUpdate.

func (*DiskUpdate) UnmarshalJSON Uses

func (du *DiskUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DiskUpdate struct.

type DiskUpdateProperties Uses

type DiskUpdateProperties struct {
    // AccountType - the storage account type of the disk. Possible values include: 'StandardLRS', 'PremiumLRS'
    AccountType StorageAccountTypes `json:"accountType,omitempty"`
    // OsType - the Operating System type. Possible values include: 'Windows', 'Linux'
    OsType OperatingSystemTypes `json:"osType,omitempty"`
    // CreationData - disk source information. CreationData information cannot be changed after the disk has been created.
    CreationData *CreationData `json:"creationData,omitempty"`
    // DiskSizeGB - If creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.
    DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
    // EncryptionSettings - Encryption settings for disk or snapshot
    EncryptionSettings *EncryptionSettings `json:"encryptionSettings,omitempty"`
}

DiskUpdateProperties disk resource update properties.

type DisksClient Uses

type DisksClient struct {
    BaseClient
}

DisksClient is the compute Client

func NewDisksClient Uses

func NewDisksClient(subscriptionID string) DisksClient

NewDisksClient creates an instance of the DisksClient client.

func NewDisksClientWithBaseURI Uses

func NewDisksClientWithBaseURI(baseURI string, subscriptionID string) DisksClient

NewDisksClientWithBaseURI creates an instance of the DisksClient client.

func (DisksClient) CreateOrUpdate Uses

func (client DisksClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, diskName string, disk Disk) (result DisksCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a disk. Parameters: resourceGroupName - the name of the resource group. diskName - the name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. disk - disk object supplied in the body of the Put disk operation.

func (DisksClient) CreateOrUpdatePreparer Uses

func (client DisksClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, diskName string, disk Disk) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DisksClient) CreateOrUpdateResponder Uses

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

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

func (DisksClient) CreateOrUpdateSender Uses

func (client DisksClient) CreateOrUpdateSender(req *http.Request) (future DisksCreateOrUpdateFuture, err error)

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

func (DisksClient) Delete Uses

func (client DisksClient) Delete(ctx context.Context, resourceGroupName string, diskName string) (result DisksDeleteFuture, err error)

Delete deletes a disk. Parameters: resourceGroupName - the name of the resource group. diskName - the name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

func (DisksClient) DeletePreparer Uses

func (client DisksClient) DeletePreparer(ctx context.Context, resourceGroupName string, diskName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (DisksClient) DeleteResponder Uses

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 Uses

func (client DisksClient) DeleteSender(req *http.Request) (future DisksDeleteFuture, err error)

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

func (DisksClient) Get Uses

func (client DisksClient) Get(ctx context.Context, resourceGroupName string, diskName string) (result Disk, err error)

Get gets information about a disk. Parameters: resourceGroupName - the name of the resource group. diskName - the name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

func (DisksClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (DisksClient) GetResponder Uses

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

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

func (DisksClient) GetSender Uses

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 Uses

func (client DisksClient) GrantAccess(ctx context.Context, resourceGroupName string, diskName string, grantAccessData GrantAccessData) (result DisksGrantAccessFuture, err error)

GrantAccess grants access to a disk. Parameters: resourceGroupName - the name of the resource group. diskName - the name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. grantAccessData - access data object supplied in the body of the get disk access operation.

func (DisksClient) GrantAccessPreparer Uses

func (client DisksClient) GrantAccessPreparer(ctx context.Context, resourceGroupName string, diskName string, grantAccessData GrantAccessData) (*http.Request, error)

GrantAccessPreparer prepares the GrantAccess request.

func (DisksClient) GrantAccessResponder Uses

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 Uses

func (client DisksClient) GrantAccessSender(req *http.Request) (future DisksGrantAccessFuture, err error)

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

func (DisksClient) List Uses

func (client DisksClient) List(ctx context.Context) (result DiskListPage, err error)

List lists all the disks under a subscription.

func (DisksClient) ListByResourceGroup Uses

func (client DisksClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result DiskListPage, err error)

ListByResourceGroup lists all the disks under a resource group. Parameters: resourceGroupName - the name of the resource group.

func (DisksClient) ListByResourceGroupComplete Uses

func (client DisksClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result DiskListIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (DisksClient) ListByResourceGroupPreparer Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (DisksClient) ListByResourceGroupResponder Uses

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

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

func (DisksClient) ListByResourceGroupSender Uses

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) ListComplete Uses

func (client DisksClient) ListComplete(ctx context.Context) (result DiskListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (DisksClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (DisksClient) ListResponder Uses

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

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

func (DisksClient) ListSender Uses

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 Uses

func (client DisksClient) RevokeAccess(ctx context.Context, resourceGroupName string, diskName string) (result DisksRevokeAccessFuture, err error)

RevokeAccess revokes access to a disk. Parameters: resourceGroupName - the name of the resource group. diskName - the name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

func (DisksClient) RevokeAccessPreparer Uses

func (client DisksClient) RevokeAccessPreparer(ctx context.Context, resourceGroupName string, diskName string) (*http.Request, error)

RevokeAccessPreparer prepares the RevokeAccess request.

func (DisksClient) RevokeAccessResponder Uses

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 Uses

func (client DisksClient) RevokeAccessSender(req *http.Request) (future DisksRevokeAccessFuture, err error)

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

func (DisksClient) Update Uses

func (client DisksClient) Update(ctx context.Context, resourceGroupName string, diskName string, disk DiskUpdate) (result DisksUpdateFuture, err error)

Update updates (patches) a disk. Parameters: resourceGroupName - the name of the resource group. diskName - the name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. disk - disk object supplied in the body of the Patch disk operation.

func (DisksClient) UpdatePreparer Uses

func (client DisksClient) UpdatePreparer(ctx context.Context, resourceGroupName string, diskName string, disk DiskUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (DisksClient) UpdateResponder Uses

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

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

func (DisksClient) UpdateSender Uses

func (client DisksClient) UpdateSender(req *http.Request) (future DisksUpdateFuture, err error)

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

type DisksCreateOrUpdateFuture Uses

type DisksCreateOrUpdateFuture struct {
    azure.Future
}

DisksCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*DisksCreateOrUpdateFuture) Result Uses

func (future *DisksCreateOrUpdateFuture) Result(client DisksClient) (d Disk, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DisksDeleteFuture Uses

type DisksDeleteFuture struct {
    azure.Future
}

DisksDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*DisksDeleteFuture) Result Uses

func (future *DisksDeleteFuture) Result(client DisksClient) (osr OperationStatusResponse, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DisksGrantAccessFuture Uses

type DisksGrantAccessFuture struct {
    azure.Future
}

DisksGrantAccessFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*DisksGrantAccessFuture) Result Uses

func (future *DisksGrantAccessFuture) Result(client DisksClient) (au AccessURI, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DisksRevokeAccessFuture Uses

type DisksRevokeAccessFuture struct {
    azure.Future
}

DisksRevokeAccessFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*DisksRevokeAccessFuture) Result Uses

func (future *DisksRevokeAccessFuture) Result(client DisksClient) (osr OperationStatusResponse, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DisksUpdateFuture Uses

type DisksUpdateFuture struct {
    azure.Future
}

DisksUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*DisksUpdateFuture) Result Uses

func (future *DisksUpdateFuture) Result(client DisksClient) (d Disk, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type EncryptionSettings Uses

type EncryptionSettings struct {
    // Enabled - Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
    Enabled *bool `json:"enabled,omitempty"`
    // DiskEncryptionKey - Key Vault Secret Url and vault id of the disk encryption key
    DiskEncryptionKey *KeyVaultAndSecretReference `json:"diskEncryptionKey,omitempty"`
    // KeyEncryptionKey - Key Vault Key Url and vault id of the key encryption key
    KeyEncryptionKey *KeyVaultAndKeyReference `json:"keyEncryptionKey,omitempty"`
}

EncryptionSettings encryption settings for disk or snapshot

type GrantAccessData Uses

type GrantAccessData struct {
    // Access - Possible values include: 'None', 'Read'
    Access AccessLevel `json:"access,omitempty"`
    // DurationInSeconds - Time duration in seconds until the SAS access expires.
    DurationInSeconds *int32 `json:"durationInSeconds,omitempty"`
}

GrantAccessData data used for requesting a SAS.

type HardwareProfile Uses

type HardwareProfile struct {
    // VMSize - Specifies the size of the virtual machine. For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-sizes?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> The available VM sizes depend on region and availability set. For a list of available sizes use these APIs:  <br><br> [List all available virtual machine sizes in an availability set](virtualmachines-list-sizes-availability-set.md) <br><br> [List all available virtual machine sizes in a region](virtualmachines-list-sizes-region.md) <br><br> [List all available virtual machine sizes for resizing](virtualmachines-list-sizes-for-resizing.md). Possible values include: 'BasicA0', 'BasicA1', 'BasicA2', 'BasicA3', 'BasicA4', 'StandardA0', 'StandardA1', 'StandardA2', 'StandardA3', 'StandardA4', 'StandardA5', 'StandardA6', 'StandardA7', 'StandardA8', 'StandardA9', 'StandardA10', 'StandardA11', 'StandardD1', 'StandardD2', 'StandardD3', 'StandardD4', 'StandardD11', 'StandardD12', 'StandardD13', 'StandardD14', 'StandardD1V2', 'StandardD2V2', 'StandardD3V2', 'StandardD4V2', 'StandardD5V2', 'StandardD11V2', 'StandardD12V2', 'StandardD13V2', 'StandardD14V2', 'StandardD15V2', 'StandardDS1', 'StandardDS2', 'StandardDS3', 'StandardDS4', 'StandardDS11', 'StandardDS12', 'StandardDS13', 'StandardDS14', 'StandardDS1V2', 'StandardDS2V2', 'StandardDS3V2', 'StandardDS4V2', 'StandardDS5V2', 'StandardDS11V2', 'StandardDS12V2', 'StandardDS13V2', 'StandardDS14V2', 'StandardDS15V2', 'StandardG1', 'StandardG2', 'StandardG3', 'StandardG4', 'StandardG5', 'StandardGS1', 'StandardGS2', 'StandardGS3', 'StandardGS4', 'StandardGS5'
    VMSize VirtualMachineSizeTypes `json:"vmSize,omitempty"`
}

HardwareProfile specifies the hardware settings for the virtual machine.

type Image Uses

type Image struct {
    autorest.Response `json:"-"`
    *ImageProperties  `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
    // Location - Resource location
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
}

Image the source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.

func (Image) MarshalJSON Uses

func (i Image) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Image.

func (*Image) UnmarshalJSON Uses

func (i *Image) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Image struct.

type ImageDataDisk Uses

type ImageDataDisk struct {
    // Lun - Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.
    Lun *int32 `json:"lun,omitempty"`
    // Snapshot - The snapshot.
    Snapshot *SubResource `json:"snapshot,omitempty"`
    // ManagedDisk - The managedDisk.
    ManagedDisk *SubResource `json:"managedDisk,omitempty"`
    // BlobURI - The Virtual Hard Disk.
    BlobURI *string `json:"blobUri,omitempty"`
    // Caching - Specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'CachingTypesNone', 'CachingTypesReadOnly', 'CachingTypesReadWrite'
    Caching CachingTypes `json:"caching,omitempty"`
    // DiskSizeGB - Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB
    DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
}

ImageDataDisk describes a data disk.

type ImageDiskReference Uses

type ImageDiskReference struct {
    // ID - A relative uri containing either a Platform Image Repository or user image reference.
    ID  *string `json:"id,omitempty"`
    // Lun - If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
    Lun *int32 `json:"lun,omitempty"`
}

ImageDiskReference the source image used for creating the disk.

type ImageListResult Uses

type ImageListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of Images.
    Value *[]Image `json:"value,omitempty"`
    // NextLink - The uri to fetch the next page of Images. Call ListNext() with this to fetch the next page of Images.
    NextLink *string `json:"nextLink,omitempty"`
}

ImageListResult the List Image operation response.

func (ImageListResult) IsEmpty Uses

func (ilr ImageListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ImageListResultIterator Uses

type ImageListResultIterator struct {
    // contains filtered or unexported fields
}

ImageListResultIterator provides access to a complete listing of Image values.

func NewImageListResultIterator Uses

func NewImageListResultIterator(page ImageListResultPage) ImageListResultIterator

Creates a new instance of the ImageListResultIterator type.

func (*ImageListResultIterator) Next Uses

func (iter *ImageListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ImageListResultIterator) NextWithContext Uses

func (iter *ImageListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ImageListResultIterator) NotDone Uses

func (iter ImageListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ImageListResultIterator) Response Uses

func (iter ImageListResultIterator) Response() ImageListResult

Response returns the raw server response from the last page request.

func (ImageListResultIterator) Value Uses

func (iter ImageListResultIterator) Value() Image

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ImageListResultPage Uses

type ImageListResultPage struct {
    // contains filtered or unexported fields
}

ImageListResultPage contains a page of Image values.

func NewImageListResultPage Uses

func NewImageListResultPage(getNextPage func(context.Context, ImageListResult) (ImageListResult, error)) ImageListResultPage

Creates a new instance of the ImageListResultPage type.

func (*ImageListResultPage) Next Uses

func (page *ImageListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ImageListResultPage) NextWithContext Uses

func (page *ImageListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ImageListResultPage) NotDone Uses

func (page ImageListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ImageListResultPage) Response Uses

func (page ImageListResultPage) Response() ImageListResult

Response returns the raw server response from the last page request.

func (ImageListResultPage) Values Uses

func (page ImageListResultPage) Values() []Image

Values returns the slice of values for the current page or nil if there are no values.

type ImageOSDisk Uses

type ImageOSDisk struct {
    // OsType - This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'
    OsType OperatingSystemTypes `json:"osType,omitempty"`
    // OsState - The OS State. Possible values include: 'Generalized', 'Specialized'
    OsState OperatingSystemStateTypes `json:"osState,omitempty"`
    // Snapshot - The snapshot.
    Snapshot *SubResource `json:"snapshot,omitempty"`
    // ManagedDisk - The managedDisk.
    ManagedDisk *SubResource `json:"managedDisk,omitempty"`
    // BlobURI - The Virtual Hard Disk.
    BlobURI *string `json:"blobUri,omitempty"`
    // Caching - Specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'CachingTypesNone', 'CachingTypesReadOnly', 'CachingTypesReadWrite'
    Caching CachingTypes `json:"caching,omitempty"`
    // DiskSizeGB - Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB
    DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
}

ImageOSDisk describes an Operating System disk.

type ImageProperties Uses

type ImageProperties struct {
    // SourceVirtualMachine - The source virtual machine from which Image is created.
    SourceVirtualMachine *SubResource `json:"sourceVirtualMachine,omitempty"`
    // StorageProfile - Specifies the storage settings for the virtual machine disks.
    StorageProfile *ImageStorageProfile `json:"storageProfile,omitempty"`
    // ProvisioningState - READ-ONLY; The provisioning state.
    ProvisioningState *string `json:"provisioningState,omitempty"`
}

ImageProperties describes the properties of an Image.

type ImageReference Uses

type ImageReference struct {
    // Publisher - The image publisher.
    Publisher *string `json:"publisher,omitempty"`
    // Offer - Specifies the offer of the platform image or marketplace image used to create the virtual machine.
    Offer *string `json:"offer,omitempty"`
    // Sku - The image SKU.
    Sku *string `json:"sku,omitempty"`
    // Version - Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available.
    Version *string `json:"version,omitempty"`
    // ID - Resource Id
    ID  *string `json:"id,omitempty"`
}

ImageReference specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.

type ImageStorageProfile Uses

type ImageStorageProfile struct {
    // OsDisk - Specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
    OsDisk *ImageOSDisk `json:"osDisk,omitempty"`
    // DataDisks - Specifies the parameters that are used to add a data disk to a virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
    DataDisks *[]ImageDataDisk `json:"dataDisks,omitempty"`
}

ImageStorageProfile describes a storage profile.

type ImagesClient Uses

type ImagesClient struct {
    BaseClient
}

ImagesClient is the compute Client

func NewImagesClient Uses

func NewImagesClient(subscriptionID string) ImagesClient

NewImagesClient creates an instance of the ImagesClient client.

func NewImagesClientWithBaseURI Uses

func NewImagesClientWithBaseURI(baseURI string, subscriptionID string) ImagesClient

NewImagesClientWithBaseURI creates an instance of the ImagesClient client.

func (ImagesClient) CreateOrUpdate Uses

func (client ImagesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, imageName string, parameters Image) (result ImagesCreateOrUpdateFuture, err error)

CreateOrUpdate create or update an image. Parameters: resourceGroupName - the name of the resource group. imageName - the name of the image. parameters - parameters supplied to the Create Image operation.

func (ImagesClient) CreateOrUpdatePreparer Uses

func (client ImagesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, imageName string, parameters Image) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ImagesClient) CreateOrUpdateResponder Uses

func (client ImagesClient) CreateOrUpdateResponder(resp *http.Response) (result Image, err error)

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

func (ImagesClient) CreateOrUpdateSender Uses

func (client ImagesClient) CreateOrUpdateSender(req *http.Request) (future ImagesCreateOrUpdateFuture, err error)

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

func (ImagesClient) Delete Uses

func (client ImagesClient) Delete(ctx context.Context, resourceGroupName string, imageName string) (result ImagesDeleteFuture, err error)

Delete deletes an Image. Parameters: resourceGroupName - the name of the resource group. imageName - the name of the image.

func (ImagesClient) DeletePreparer Uses

func (client ImagesClient) DeletePreparer(ctx context.Context, resourceGroupName string, imageName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ImagesClient) DeleteResponder Uses

func (client ImagesClient) 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 (ImagesClient) DeleteSender Uses

func (client ImagesClient) DeleteSender(req *http.Request) (future ImagesDeleteFuture, err error)

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

func (ImagesClient) Get Uses

func (client ImagesClient) Get(ctx context.Context, resourceGroupName string, imageName string, expand string) (result Image, err error)

Get gets an image. Parameters: resourceGroupName - the name of the resource group. imageName - the name of the image. expand - the expand expression to apply on the operation.

func (ImagesClient) GetPreparer Uses

func (client ImagesClient) GetPreparer(ctx context.Context, resourceGroupName string, imageName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ImagesClient) GetResponder Uses

func (client ImagesClient) GetResponder(resp *http.Response) (result Image, err error)

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

func (ImagesClient) GetSender Uses

func (client ImagesClient) 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 (ImagesClient) List Uses

func (client ImagesClient) List(ctx context.Context) (result ImageListResultPage, err error)

List gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.

func (ImagesClient) ListByResourceGroup Uses

func (client ImagesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ImageListResultPage, err error)

ListByResourceGroup gets the list of images under a resource group. Parameters: resourceGroupName - the name of the resource group.

func (ImagesClient) ListByResourceGroupComplete Uses

func (client ImagesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ImageListResultIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (ImagesClient) ListByResourceGroupPreparer Uses

func (client ImagesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ImagesClient) ListByResourceGroupResponder Uses

func (client ImagesClient) ListByResourceGroupResponder(resp *http.Response) (result ImageListResult, err error)

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

func (ImagesClient) ListByResourceGroupSender Uses

func (client ImagesClient) 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 (ImagesClient) ListComplete Uses

func (client ImagesClient) ListComplete(ctx context.Context) (result ImageListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ImagesClient) ListPreparer Uses

func (client ImagesClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (ImagesClient) ListResponder Uses

func (client ImagesClient) ListResponder(resp *http.Response) (result ImageListResult, err error)

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

func (ImagesClient) ListSender Uses

func (client ImagesClient) 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.

type ImagesCreateOrUpdateFuture Uses

type ImagesCreateOrUpdateFuture struct {
    azure.Future
}

ImagesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ImagesCreateOrUpdateFuture) Result Uses

func (future *ImagesCreateOrUpdateFuture) Result(client ImagesClient) (i Image, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ImagesDeleteFuture Uses

type ImagesDeleteFuture struct {
    azure.Future
}

ImagesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ImagesDeleteFuture) Result Uses

func (future *ImagesDeleteFuture) Result(client ImagesClient) (osr OperationStatusResponse, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type InnerError Uses

type InnerError struct {
    // Exceptiontype - The exception type.
    Exceptiontype *string `json:"exceptiontype,omitempty"`
    // Errordetail - The internal error message or exception dump.
    Errordetail *string `json:"errordetail,omitempty"`
}

InnerError inner error details.

type InstanceViewStatus Uses

type InstanceViewStatus struct {
    // Code - The status code.
    Code *string `json:"code,omitempty"`
    // Level - The level code. Possible values include: 'Info', 'Warning', 'Error'
    Level StatusLevelTypes `json:"level,omitempty"`
    // DisplayStatus - The short localizable label for the status.
    DisplayStatus *string `json:"displayStatus,omitempty"`
    // Message - The detailed status message, including for alerts and error messages.
    Message *string `json:"message,omitempty"`
    // Time - The time of the status.
    Time *date.Time `json:"time,omitempty"`
}

InstanceViewStatus instance view status.

type InstanceViewTypes Uses

type InstanceViewTypes string

InstanceViewTypes enumerates the values for instance view types.

const (
    // InstanceView ...
    InstanceView InstanceViewTypes = "instanceView"
)

func PossibleInstanceViewTypesValues Uses

func PossibleInstanceViewTypesValues() []InstanceViewTypes

PossibleInstanceViewTypesValues returns an array of possible values for the InstanceViewTypes const type.

type KeyVaultAndKeyReference Uses

type KeyVaultAndKeyReference struct {
    // SourceVault - Resource id of the KeyVault containing the key or secret
    SourceVault *SourceVault `json:"sourceVault,omitempty"`
    // KeyURL - Url pointing to a key or secret in KeyVault
    KeyURL *string `json:"keyUrl,omitempty"`
}

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

type KeyVaultAndSecretReference Uses

type KeyVaultAndSecretReference struct {
    // SourceVault - Resource id of the KeyVault containing the key or secret
    SourceVault *SourceVault `json:"sourceVault,omitempty"`
    // SecretURL - Url pointing to a key or secret in KeyVault
    SecretURL *string `json:"secretUrl,omitempty"`
}

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

type KeyVaultKeyReference Uses

type KeyVaultKeyReference struct {
    // KeyURL - The URL referencing a key encryption key in Key Vault.
    KeyURL *string `json:"keyUrl,omitempty"`
    // SourceVault - The relative URL of the Key Vault containing the key.
    SourceVault *SubResource `json:"sourceVault,omitempty"`
}

KeyVaultKeyReference describes a reference to Key Vault Key

type KeyVaultSecretReference Uses

type KeyVaultSecretReference struct {
    // SecretURL - The URL referencing a secret in a Key Vault.
    SecretURL *string `json:"secretUrl,omitempty"`
    // SourceVault - The relative URL of the Key Vault containing the secret.
    SourceVault *SubResource `json:"sourceVault,omitempty"`
}

KeyVaultSecretReference describes a reference to Key Vault Secret

type LinuxConfiguration Uses

type LinuxConfiguration struct {
    // DisablePasswordAuthentication - Specifies whether password authentication should be disabled.
    DisablePasswordAuthentication *bool `json:"disablePasswordAuthentication,omitempty"`
    // SSH - Specifies the ssh key configuration for a Linux OS.
    SSH *SSHConfiguration `json:"ssh,omitempty"`
}

LinuxConfiguration specifies the Linux operating system settings on the virtual machine. <br><br>For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) <br><br> For running non-endorsed distributions, see [Information for Non-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).

type ListUsagesResult Uses

type ListUsagesResult struct {
    autorest.Response `json:"-"`
    // Value - The list of compute resource usages.
    Value *[]Usage `json:"value,omitempty"`
    // NextLink - The URI to fetch the next page of compute resource usage information. Call ListNext() with this to fetch the next page of compute resource usage information.
    NextLink *string `json:"nextLink,omitempty"`
}

ListUsagesResult the List Usages operation response.

func (ListUsagesResult) IsEmpty Uses

func (lur ListUsagesResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ListUsagesResultIterator Uses

type ListUsagesResultIterator struct {
    // contains filtered or unexported fields
}

ListUsagesResultIterator provides access to a complete listing of Usage values.

func NewListUsagesResultIterator Uses

func NewListUsagesResultIterator(page ListUsagesResultPage) ListUsagesResultIterator

Creates a new instance of the ListUsagesResultIterator type.

func (*ListUsagesResultIterator) Next Uses

func (iter *ListUsagesResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ListUsagesResultIterator) NextWithContext Uses

func (iter *ListUsagesResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ListUsagesResultIterator) NotDone Uses

func (iter ListUsagesResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ListUsagesResultIterator) Response Uses

func (iter ListUsagesResultIterator) Response() ListUsagesResult

Response returns the raw server response from the last page request.

func (ListUsagesResultIterator) Value Uses

func (iter ListUsagesResultIterator) Value() Usage

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ListUsagesResultPage Uses

type ListUsagesResultPage struct {
    // contains filtered or unexported fields
}

ListUsagesResultPage contains a page of Usage values.

func NewListUsagesResultPage Uses

func NewListUsagesResultPage(getNextPage func(context.Context, ListUsagesResult) (ListUsagesResult, error)) ListUsagesResultPage

Creates a new instance of the ListUsagesResultPage type.

func (*ListUsagesResultPage) Next Uses

func (page *ListUsagesResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ListUsagesResultPage) NextWithContext Uses

func (page *ListUsagesResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ListUsagesResultPage) NotDone Uses

func (page ListUsagesResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ListUsagesResultPage) Response Uses

func (page ListUsagesResultPage) Response() ListUsagesResult

Response returns the raw server response from the last page request.

func (ListUsagesResultPage) Values Uses

func (page ListUsagesResultPage) Values() []Usage

Values returns the slice of values for the current page or nil if there are no values.

type ListVirtualMachineExtensionImage Uses

type ListVirtualMachineExtensionImage struct {
    autorest.Response `json:"-"`
    Value             *[]VirtualMachineExtensionImage `json:"value,omitempty"`
}

ListVirtualMachineExtensionImage ...

type ListVirtualMachineImageResource Uses

type ListVirtualMachineImageResource struct {
    autorest.Response `json:"-"`
    Value             *[]VirtualMachineImageResource `json:"value,omitempty"`
}

ListVirtualMachineImageResource ...

type LongRunningOperationProperties Uses

type LongRunningOperationProperties struct {
    // Output - Operation output data (raw JSON)
    Output interface{} `json:"output,omitempty"`
}

LongRunningOperationProperties compute-specific operation properties, including output

type ManagedDiskParameters Uses

type ManagedDiskParameters struct {
    // StorageAccountType - Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'StandardLRS', 'PremiumLRS'
    StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"`
    // ID - Resource Id
    ID  *string `json:"id,omitempty"`
}

ManagedDiskParameters the parameters of a managed disk.

type NetworkInterfaceReference Uses

type NetworkInterfaceReference struct {
    *NetworkInterfaceReferenceProperties `json:"properties,omitempty"`
    // ID - Resource Id
    ID  *string `json:"id,omitempty"`
}

NetworkInterfaceReference describes a network interface reference.

func (NetworkInterfaceReference) MarshalJSON Uses

func (nir NetworkInterfaceReference) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for NetworkInterfaceReference.

func (*NetworkInterfaceReference) UnmarshalJSON Uses

func (nir *NetworkInterfaceReference) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for NetworkInterfaceReference struct.

type NetworkInterfaceReferenceProperties Uses

type NetworkInterfaceReferenceProperties struct {
    // Primary - Specifies the primary network interface in case the virtual machine has more than 1 network interface.
    Primary *bool `json:"primary,omitempty"`
}

NetworkInterfaceReferenceProperties describes a network interface reference properties.

type NetworkProfile Uses

type NetworkProfile struct {
    // NetworkInterfaces - Specifies the list of resource Ids for the network interfaces associated with the virtual machine.
    NetworkInterfaces *[]NetworkInterfaceReference `json:"networkInterfaces,omitempty"`
}

NetworkProfile specifies the network interfaces of the virtual machine.

type OSDisk Uses

type OSDisk struct {
    // OsType - This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'
    OsType OperatingSystemTypes `json:"osType,omitempty"`
    // EncryptionSettings - Specifies the encryption settings for the OS Disk. <br><br> Minimum api-version: 2015-06-15
    EncryptionSettings *DiskEncryptionSettings `json:"encryptionSettings,omitempty"`
    // Name - The disk name.
    Name *string `json:"name,omitempty"`
    // Vhd - The virtual hard disk.
    Vhd *VirtualHardDisk `json:"vhd,omitempty"`
    // Image - The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.
    Image *VirtualHardDisk `json:"image,omitempty"`
    // Caching - Specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'CachingTypesNone', 'CachingTypesReadOnly', 'CachingTypesReadWrite'
    Caching CachingTypes `json:"caching,omitempty"`
    // CreateOption - Specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you  also use the plan element previously described. Possible values include: 'DiskCreateOptionTypesFromImage', 'DiskCreateOptionTypesEmpty', 'DiskCreateOptionTypesAttach'
    CreateOption DiskCreateOptionTypes `json:"createOption,omitempty"`
    // DiskSizeGB - Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB
    DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
    // ManagedDisk - The managed disk parameters.
    ManagedDisk *ManagedDiskParameters `json:"managedDisk,omitempty"`
}

OSDisk specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).

type OSDiskImage Uses

type OSDiskImage struct {
    // OperatingSystem - The operating system of the osDiskImage. Possible values include: 'Windows', 'Linux'
    OperatingSystem OperatingSystemTypes `json:"operatingSystem,omitempty"`
}

OSDiskImage contains the os disk image information.

type OSProfile Uses

type OSProfile struct {
    // ComputerName - Specifies the host OS name of the virtual machine. <br><br> This name cannot be updated after the VM is created. <br><br> **Max-length (Windows):** 15 characters <br><br> **Max-length (Linux):** 64 characters. <br><br> For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions).
    ComputerName *string `json:"computerName,omitempty"`
    // AdminUsername - Specifies the name of the administrator account. <br><br> **Windows-only restriction:** Cannot end in "." <br><br> **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". <br><br> **Minimum-length (Linux):** 1  character <br><br> **Max-length (Linux):** 64 characters <br><br> **Max-length (Windows):** 20 characters  <br><br><li> For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)<br><li> For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
    AdminUsername *string `json:"adminUsername,omitempty"`
    // AdminPassword - Specifies the password of the administrator account. <br><br> **Minimum-length (Windows):** 8 characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):** 123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" <br><br> For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password)
    AdminPassword *string `json:"adminPassword,omitempty"`
    // CustomData - Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. <br><br> For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
    CustomData *string `json:"customData,omitempty"`
    // WindowsConfiguration - Specifies Windows operating system settings on the virtual machine.
    WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"`
    // LinuxConfiguration - Specifies the Linux operating system settings on the virtual machine. <br><br>For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json) <br><br> For running non-endorsed distributions, see [Information for Non-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
    LinuxConfiguration *LinuxConfiguration `json:"linuxConfiguration,omitempty"`
    // Secrets - Specifies set of certificates that should be installed onto the virtual machine.
    Secrets *[]VaultSecretGroup `json:"secrets,omitempty"`
}

OSProfile specifies the operating system settings for the virtual machine.

type OperatingSystemStateTypes Uses

type OperatingSystemStateTypes string

OperatingSystemStateTypes enumerates the values for operating system state types.

const (
    // Generalized ...
    Generalized OperatingSystemStateTypes = "Generalized"
    // Specialized ...
    Specialized OperatingSystemStateTypes = "Specialized"
)

func PossibleOperatingSystemStateTypesValues Uses

func PossibleOperatingSystemStateTypesValues() []OperatingSystemStateTypes

PossibleOperatingSystemStateTypesValues returns an array of possible values for the OperatingSystemStateTypes const type.

type OperatingSystemTypes Uses

type OperatingSystemTypes string

OperatingSystemTypes enumerates the values for operating system types.

const (
    // Linux ...
    Linux OperatingSystemTypes = "Linux"
    // Windows ...
    Windows OperatingSystemTypes = "Windows"
)

func PossibleOperatingSystemTypesValues Uses

func PossibleOperatingSystemTypesValues() []OperatingSystemTypes

PossibleOperatingSystemTypesValues returns an array of possible values for the OperatingSystemTypes const type.

type OperationStatusResponse Uses

type OperationStatusResponse struct {
    autorest.Response `json:"-"`
    // Name - READ-ONLY; Operation ID
    Name *string `json:"name,omitempty"`
    // Status - READ-ONLY; Operation status
    Status *string `json:"status,omitempty"`
    // StartTime - READ-ONLY; Start time of the operation
    StartTime *date.Time `json:"startTime,omitempty"`
    // EndTime - READ-ONLY; End time of the operation
    EndTime *date.Time `json:"endTime,omitempty"`
    // Error - READ-ONLY; Api error
    Error *APIError `json:"error,omitempty"`
}

OperationStatusResponse operation status response

type PassNames Uses

type PassNames string

PassNames enumerates the values for pass names.

const (
    // OobeSystem ...
    OobeSystem PassNames = "OobeSystem"
)

func PossiblePassNamesValues Uses

func PossiblePassNamesValues() []PassNames

PossiblePassNamesValues returns an array of possible values for the PassNames const type.

type Plan Uses

type Plan struct {
    // Name - The plan ID.
    Name *string `json:"name,omitempty"`
    // Publisher - The publisher ID.
    Publisher *string `json:"publisher,omitempty"`
    // Product - Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
    Product *string `json:"product,omitempty"`
    // PromotionCode - The promotion code.
    PromotionCode *string `json:"promotionCode,omitempty"`
}

Plan specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**.

type ProtocolTypes Uses

type ProtocolTypes string

ProtocolTypes enumerates the values for protocol types.

const (
    // HTTP ...
    HTTP ProtocolTypes = "Http"
    // HTTPS ...
    HTTPS ProtocolTypes = "Https"
)

func PossibleProtocolTypesValues Uses

func PossibleProtocolTypesValues() []ProtocolTypes

PossibleProtocolTypesValues returns an array of possible values for the ProtocolTypes const type.

type PurchasePlan Uses

type PurchasePlan struct {
    // Publisher - The publisher ID.
    Publisher *string `json:"publisher,omitempty"`
    // Name - The plan ID.
    Name *string `json:"name,omitempty"`
    // Product - Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
    Product *string `json:"product,omitempty"`
}

PurchasePlan used for establishing the purchase context of any 3rd Party artifact through MarketPlace.

type Resource Uses

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

Resource the Resource model definition.

func (Resource) MarshalJSON Uses

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type ResourceIdentityType Uses

type ResourceIdentityType string

ResourceIdentityType enumerates the values for resource identity type.

const (
    // SystemAssigned ...
    SystemAssigned ResourceIdentityType = "SystemAssigned"
)

func PossibleResourceIdentityTypeValues Uses

func PossibleResourceIdentityTypeValues() []ResourceIdentityType

PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.

type ResourceUpdate Uses

type ResourceUpdate struct {
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
}

ResourceUpdate the Resource model definition.

func (ResourceUpdate) MarshalJSON Uses

func (ru ResourceUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceUpdate.

type SSHConfiguration Uses

type SSHConfiguration struct {
    // PublicKeys - The list of SSH public keys used to authenticate with linux based VMs.
    PublicKeys *[]SSHPublicKey `json:"publicKeys,omitempty"`
}

SSHConfiguration SSH configuration for Linux based VMs running on Azure

type SSHPublicKey Uses

type SSHPublicKey struct {
    // Path - Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys
    Path *string `json:"path,omitempty"`
    // KeyData - SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. <br><br> For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
    KeyData *string `json:"keyData,omitempty"`
}

SSHPublicKey contains information about SSH certificate public key and the path on the Linux VM where the public key is placed.

type SettingNames Uses

type SettingNames string

SettingNames enumerates the values for setting names.

const (
    // AutoLogon ...
    AutoLogon SettingNames = "AutoLogon"
    // FirstLogonCommands ...
    FirstLogonCommands SettingNames = "FirstLogonCommands"
)

func PossibleSettingNamesValues Uses

func PossibleSettingNamesValues() []SettingNames

PossibleSettingNamesValues returns an array of possible values for the SettingNames const type.

type Sku Uses

type Sku struct {
    // Name - The sku name.
    Name *string `json:"name,omitempty"`
    // Tier - Specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br /><br /> **Basic**
    Tier *string `json:"tier,omitempty"`
    // Capacity - Specifies the number of virtual machines in the scale set.
    Capacity *int64 `json:"capacity,omitempty"`
}

Sku describes a virtual machine scale set sku.

type Snapshot Uses

type Snapshot struct {
    autorest.Response `json:"-"`
    *DiskProperties   `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
    // Location - Resource location
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
}

Snapshot snapshot resource.

func (Snapshot) MarshalJSON Uses

func (s Snapshot) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Snapshot.

func (*Snapshot) UnmarshalJSON Uses

func (s *Snapshot) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Snapshot struct.

type SnapshotList Uses

type SnapshotList struct {
    autorest.Response `json:"-"`
    // Value - A list of snapshots.
    Value *[]Snapshot `json:"value,omitempty"`
    // NextLink - The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the next page of snapshots.
    NextLink *string `json:"nextLink,omitempty"`
}

SnapshotList the List Snapshots operation response.

func (SnapshotList) IsEmpty Uses

func (sl SnapshotList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SnapshotListIterator Uses

type SnapshotListIterator struct {
    // contains filtered or unexported fields
}

SnapshotListIterator provides access to a complete listing of Snapshot values.

func NewSnapshotListIterator Uses

func NewSnapshotListIterator(page SnapshotListPage) SnapshotListIterator

Creates a new instance of the SnapshotListIterator type.

func (*SnapshotListIterator) Next Uses

func (iter *SnapshotListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*SnapshotListIterator) NextWithContext Uses

func (iter *SnapshotListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (SnapshotListIterator) NotDone Uses

func (iter SnapshotListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (SnapshotListIterator) Response Uses

func (iter SnapshotListIterator) Response() SnapshotList

Response returns the raw server response from the last page request.

func (SnapshotListIterator) Value Uses

func (iter SnapshotListIterator) Value() Snapshot

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type SnapshotListPage Uses

type SnapshotListPage struct {
    // contains filtered or unexported fields
}

SnapshotListPage contains a page of Snapshot values.

func NewSnapshotListPage Uses

func NewSnapshotListPage(getNextPage func(context.Context, SnapshotList) (SnapshotList, error)) SnapshotListPage

Creates a new instance of the SnapshotListPage type.

func (*SnapshotListPage) Next Uses

func (page *SnapshotListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*SnapshotListPage) NextWithContext Uses

func (page *SnapshotListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (SnapshotListPage) NotDone Uses

func (page SnapshotListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (SnapshotListPage) Response Uses

func (page SnapshotListPage) Response() SnapshotList

Response returns the raw server response from the last page request.

func (SnapshotListPage) Values Uses

func (page SnapshotListPage) Values() []Snapshot

Values returns the slice of values for the current page or nil if there are no values.

type SnapshotUpdate Uses

type SnapshotUpdate struct {
    *DiskUpdateProperties `json:"properties,omitempty"`
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
}

SnapshotUpdate snapshot update resource.

func (SnapshotUpdate) MarshalJSON Uses

func (su SnapshotUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SnapshotUpdate.

func (*SnapshotUpdate) UnmarshalJSON Uses

func (su *SnapshotUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SnapshotUpdate struct.

type SnapshotsClient Uses

type SnapshotsClient struct {
    BaseClient
}

SnapshotsClient is the compute Client

func NewSnapshotsClient Uses

func NewSnapshotsClient(subscriptionID string) SnapshotsClient

NewSnapshotsClient creates an instance of the SnapshotsClient client.

func NewSnapshotsClientWithBaseURI Uses

func NewSnapshotsClientWithBaseURI(baseURI string, subscriptionID string) SnapshotsClient

NewSnapshotsClientWithBaseURI creates an instance of the SnapshotsClient client.

func (SnapshotsClient) CreateOrUpdate Uses

func (client SnapshotsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, snapshotName string, snapshot Snapshot) (result SnapshotsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a snapshot. Parameters: resourceGroupName - the name of the resource group. snapshotName - the name of the snapshot within the given subscription and resource group. snapshot - snapshot object supplied in the body of the Put disk operation.

func (SnapshotsClient) CreateOrUpdatePreparer Uses

func (client SnapshotsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, snapshotName string, snapshot Snapshot) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SnapshotsClient) CreateOrUpdateResponder Uses

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 Uses

func (client SnapshotsClient) CreateOrUpdateSender(req *http.Request) (future SnapshotsCreateOrUpdateFuture, err error)

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

func (SnapshotsClient) Delete Uses

func (client SnapshotsClient) Delete(ctx context.Context, resourceGroupName string, snapshotName string) (result SnapshotsDeleteFuture, err error)

Delete deletes a snapshot. Parameters: resourceGroupName - the name of the resource group. snapshotName - the name of the snapshot within the given subscription and resource group.

func (SnapshotsClient) DeletePreparer Uses

func (client SnapshotsClient) DeletePreparer(ctx context.Context, resourceGroupName string, snapshotName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (SnapshotsClient) DeleteResponder Uses

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 Uses

func (client SnapshotsClient) DeleteSender(req *http.Request) (future SnapshotsDeleteFuture, err error)

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

func (SnapshotsClient) Get Uses

func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, snapshotName string) (result Snapshot, err error)

Get gets information about a snapshot. Parameters: resourceGroupName - the name of the resource group. snapshotName - the name of the snapshot within the given subscription and resource group.

func (SnapshotsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (SnapshotsClient) GetResponder Uses

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 Uses

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 Uses

func (client SnapshotsClient) GrantAccess(ctx context.Context, resourceGroupName string, snapshotName string, grantAccessData GrantAccessData) (result SnapshotsGrantAccessFuture, err error)

GrantAccess grants access to a snapshot. Parameters: resourceGroupName - the name of the resource group. snapshotName - the name of the snapshot within the given subscription and resource group. grantAccessData - access data object supplied in the body of the get snapshot access operation.

func (SnapshotsClient) GrantAccessPreparer Uses

func (client SnapshotsClient) GrantAccessPreparer(ctx context.Context, resourceGroupName string, snapshotName string, grantAccessData GrantAccessData) (*http.Request, error)

GrantAccessPreparer prepares the GrantAccess request.

func (SnapshotsClient) GrantAccessResponder Uses

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 Uses

func (client SnapshotsClient) GrantAccessSender(req *http.Request) (future SnapshotsGrantAccessFuture, err error)

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

func (SnapshotsClient) List Uses

func (client SnapshotsClient) List(ctx context.Context) (result SnapshotListPage, err error)

List lists snapshots under a subscription.

func (SnapshotsClient) ListByResourceGroup Uses

func (client SnapshotsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result SnapshotListPage, err error)

ListByResourceGroup lists snapshots under a resource group. Parameters: resourceGroupName - the name of the resource group.

func (SnapshotsClient) ListByResourceGroupComplete Uses

func (client SnapshotsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result SnapshotListIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (SnapshotsClient) ListByResourceGroupPreparer Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (SnapshotsClient) ListByResourceGroupResponder Uses

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 Uses

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) ListComplete Uses

func (client SnapshotsClient) ListComplete(ctx context.Context) (result SnapshotListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (SnapshotsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (SnapshotsClient) ListResponder Uses

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 Uses

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 Uses

func (client SnapshotsClient) RevokeAccess(ctx context.Context, resourceGroupName string, snapshotName string) (result SnapshotsRevokeAccessFuture, err error)

RevokeAccess revokes access to a snapshot. Parameters: resourceGroupName - the name of the resource group. snapshotName - the name of the snapshot within the given subscription and resource group.

func (SnapshotsClient) RevokeAccessPreparer Uses

func (client SnapshotsClient) RevokeAccessPreparer(ctx context.Context, resourceGroupName string, snapshotName string) (*http.Request, error)

RevokeAccessPreparer prepares the RevokeAccess request.

func (SnapshotsClient) RevokeAccessResponder Uses

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 Uses

func (client SnapshotsClient) RevokeAccessSender(req *http.Request) (future SnapshotsRevokeAccessFuture, err error)

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

func (SnapshotsClient) Update Uses

func (client SnapshotsClient) Update(ctx context.Context, resourceGroupName string, snapshotName string, snapshot SnapshotUpdate) (result SnapshotsUpdateFuture, err error)

Update updates (patches) a snapshot. Parameters: resourceGroupName - the name of the resource group. snapshotName - the name of the snapshot within the given subscription and resource group. snapshot - snapshot object supplied in the body of the Patch snapshot operation.

func (SnapshotsClient) UpdatePreparer Uses

func (client SnapshotsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, snapshotName string, snapshot SnapshotUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (SnapshotsClient) UpdateResponder Uses

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 Uses

func (client SnapshotsClient) UpdateSender(req *http.Request) (future SnapshotsUpdateFuture, err error)

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

type SnapshotsCreateOrUpdateFuture Uses

type SnapshotsCreateOrUpdateFuture struct {
    azure.Future
}

SnapshotsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SnapshotsCreateOrUpdateFuture) Result Uses

func (future *SnapshotsCreateOrUpdateFuture) Result(client SnapshotsClient) (s Snapshot, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type SnapshotsDeleteFuture Uses

type SnapshotsDeleteFuture struct {
    azure.Future
}

SnapshotsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SnapshotsDeleteFuture) Result Uses

func (future *SnapshotsDeleteFuture) Result(client SnapshotsClient) (osr OperationStatusResponse, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type SnapshotsGrantAccessFuture Uses

type SnapshotsGrantAccessFuture struct {
    azure.Future
}

SnapshotsGrantAccessFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SnapshotsGrantAccessFuture) Result Uses

func (future *SnapshotsGrantAccessFuture) Result(client SnapshotsClient) (au AccessURI, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type SnapshotsRevokeAccessFuture Uses

type SnapshotsRevokeAccessFuture struct {
    azure.Future
}

SnapshotsRevokeAccessFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SnapshotsRevokeAccessFuture) Result Uses

func (future *SnapshotsRevokeAccessFuture) Result(client SnapshotsClient) (osr OperationStatusResponse, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type SnapshotsUpdateFuture Uses

type SnapshotsUpdateFuture struct {
    azure.Future
}

SnapshotsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SnapshotsUpdateFuture) Result Uses

func (future *SnapshotsUpdateFuture) Result(client SnapshotsClient) (s Snapshot, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type SourceVault Uses

type SourceVault struct {
    // ID - Resource Id
    ID *string `json:"id,omitempty"`
}

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

type StatusLevelTypes Uses

type StatusLevelTypes string

StatusLevelTypes enumerates the values for status level types.

const (
    // Error ...
    Error StatusLevelTypes = "Error"
    // Info ...
    Info StatusLevelTypes = "Info"
    // Warning ...
    Warning StatusLevelTypes = "Warning"
)

func PossibleStatusLevelTypesValues Uses

func PossibleStatusLevelTypesValues() []StatusLevelTypes

PossibleStatusLevelTypesValues returns an array of possible values for the StatusLevelTypes const type.

type StorageAccountTypes Uses

type StorageAccountTypes string

StorageAccountTypes enumerates the values for storage account types.

const (
    // PremiumLRS ...
    PremiumLRS StorageAccountTypes = "Premium_LRS"
    // StandardLRS ...
    StandardLRS StorageAccountTypes = "Standard_LRS"
)

func PossibleStorageAccountTypesValues Uses

func PossibleStorageAccountTypesValues() []StorageAccountTypes

PossibleStorageAccountTypesValues returns an array of possible values for the StorageAccountTypes const type.

type StorageProfile Uses

type StorageProfile struct {
    // ImageReference - Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.
    ImageReference *ImageReference `json:"imageReference,omitempty"`
    // OsDisk - Specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
    OsDisk *OSDisk `json:"osDisk,omitempty"`
    // DataDisks - Specifies the parameters that are used to add a data disk to a virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
    DataDisks *[]DataDisk `json:"dataDisks,omitempty"`
}

StorageProfile specifies the storage settings for the virtual machine disks.

type SubResource Uses

type SubResource struct {
    // ID - Resource Id
    ID *string `json:"id,omitempty"`
}

SubResource ...

type SubResourceReadOnly Uses

type SubResourceReadOnly struct {
    // ID - READ-ONLY; Resource Id
    ID *string `json:"id,omitempty"`
}

SubResourceReadOnly ...

type UpdateResource Uses

type UpdateResource struct {
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
}

UpdateResource the Update Resource model definition.

func (UpdateResource) MarshalJSON Uses

func (ur UpdateResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UpdateResource.

type UpgradeMode Uses

type UpgradeMode string

UpgradeMode enumerates the values for upgrade mode.

const (
    // Automatic ...
    Automatic UpgradeMode = "Automatic"
    // Manual ...
    Manual UpgradeMode = "Manual"
)

func PossibleUpgradeModeValues Uses

func PossibleUpgradeModeValues() []UpgradeMode

PossibleUpgradeModeValues returns an array of possible values for the UpgradeMode const type.

type UpgradePolicy Uses

type UpgradePolicy struct {
    // Mode - Specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> **Manual** - You  control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are  automatically updated at the same time. Possible values include: 'Automatic', 'Manual'
    Mode UpgradeMode `json:"mode,omitempty"`
}

UpgradePolicy describes an upgrade policy - automatic or manual.

type Usage Uses

type Usage struct {
    // Unit - An enum describing the unit of usage measurement.
    Unit *string `json:"unit,omitempty"`
    // CurrentValue - The current usage of the resource.
    CurrentValue *int32 `json:"currentValue,omitempty"`
    // Limit - The maximum permitted usage of the resource.
    Limit *int64 `json:"limit,omitempty"`
    // Name - The name of the type of usage.
    Name *UsageName `json:"name,omitempty"`
}

Usage describes Compute Resource Usage.

type UsageClient Uses

type UsageClient struct {
    BaseClient
}

UsageClient is the compute Client

func NewUsageClient Uses

func NewUsageClient(subscriptionID string) UsageClient

NewUsageClient creates an instance of the UsageClient client.

func NewUsageClientWithBaseURI Uses

func NewUsageClientWithBaseURI(baseURI string, subscriptionID string) UsageClient

NewUsageClientWithBaseURI creates an instance of the UsageClient client.

func (UsageClient) List Uses

func (client UsageClient) List(ctx context.Context, location string) (result ListUsagesResultPage, err error)

List gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. Parameters: location - the location for which resource usage is queried.

func (UsageClient) ListComplete Uses

func (client UsageClient) ListComplete(ctx context.Context, location string) (result ListUsagesResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (UsageClient) ListPreparer Uses

func (client UsageClient) ListPreparer(ctx context.Context, location string) (*http.Request, error)

ListPreparer prepares the List request.

func (UsageClient) ListResponder Uses

func (client UsageClient) ListResponder(resp *http.Response) (result ListUsagesResult, err error)

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

func (UsageClient) ListSender Uses

func (client UsageClient) 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.

type UsageName Uses

type UsageName struct {
    // Value - The name of the resource.
    Value *string `json:"value,omitempty"`
    // LocalizedValue - The localized name of the resource.
    LocalizedValue *string `json:"localizedValue,omitempty"`
}

UsageName the Usage Names.

type VaultCertificate Uses

type VaultCertificate struct {
    // CertificateURL - This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br>  "data":"<Base64-encoded-certificate>",<br>  "dataType":"pfx",<br>  "password":"<pfx-file-password>"<br>}
    CertificateURL *string `json:"certificateUrl,omitempty"`
    // CertificateStore - For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account. <br><br>For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbprint>.prv for private key. Both of these files are .pem formatted.
    CertificateStore *string `json:"certificateStore,omitempty"`
}

VaultCertificate describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM.

type VaultSecretGroup Uses

type VaultSecretGroup struct {
    // SourceVault - The relative URL of the Key Vault containing all of the certificates in VaultCertificates.
    SourceVault *SubResource `json:"sourceVault,omitempty"`
    // VaultCertificates - The list of key vault references in SourceVault which contain certificates.
    VaultCertificates *[]VaultCertificate `json:"vaultCertificates,omitempty"`
}

VaultSecretGroup describes a set of certificates which are all in the same Key Vault.

type VirtualHardDisk Uses

type VirtualHardDisk struct {
    // URI - Specifies the virtual hard disk's uri.
    URI *string `json:"uri,omitempty"`
}

VirtualHardDisk describes the uri of a disk.

type VirtualMachine Uses

type VirtualMachine struct {
    autorest.Response `json:"-"`
    // Plan - Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use.  In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**.
    Plan                      *Plan `json:"plan,omitempty"`
    *VirtualMachineProperties `json:"properties,omitempty"`
    // Resources - READ-ONLY; The virtual machine child extension resources.
    Resources *[]VirtualMachineExtension `json:"resources,omitempty"`
    // Identity - The identity of the virtual machine, if configured.
    Identity *VirtualMachineIdentity `json:"identity,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
    // Location - Resource location
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
}

VirtualMachine describes a Virtual Machine.

func (VirtualMachine) MarshalJSON Uses

func (VM VirtualMachine) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachine.

func (*VirtualMachine) UnmarshalJSON Uses

func (VM *VirtualMachine) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualMachine struct.

type VirtualMachineAgentInstanceView Uses

type VirtualMachineAgentInstanceView struct {
    // VMAgentVersion - The VM Agent full version.
    VMAgentVersion *string `json:"vmAgentVersion,omitempty"`
    // ExtensionHandlers - The virtual machine extension handler instance view.
    ExtensionHandlers *[]VirtualMachineExtensionHandlerInstanceView `json:"extensionHandlers,omitempty"`
    // Statuses - The resource status information.
    Statuses *[]InstanceViewStatus `json:"statuses,omitempty"`
}

VirtualMachineAgentInstanceView the instance view of the VM Agent running on the virtual machine.

type VirtualMachineCaptureParameters Uses

type VirtualMachineCaptureParameters struct {
    // VhdPrefix - The captured virtual hard disk's name prefix.
    VhdPrefix *string `json:"vhdPrefix,omitempty"`
    // DestinationContainerName - The destination container name.
    DestinationContainerName *string `json:"destinationContainerName,omitempty"`
    // OverwriteVhds - Specifies whether to overwrite the destination virtual hard disk, in case of conflict.
    OverwriteVhds *bool `json:"overwriteVhds,omitempty"`
}

VirtualMachineCaptureParameters capture Virtual Machine parameters.

type VirtualMachineCaptureResult Uses

type VirtualMachineCaptureResult struct {
    autorest.Response                      `json:"-"`
    *VirtualMachineCaptureResultProperties `json:"properties,omitempty"`
    // ID - Resource Id
    ID  *string `json:"id,omitempty"`
}

VirtualMachineCaptureResult resource Id.

func (VirtualMachineCaptureResult) MarshalJSON Uses

func (vmcr VirtualMachineCaptureResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachineCaptureResult.

func (*VirtualMachineCaptureResult) UnmarshalJSON Uses

func (vmcr *VirtualMachineCaptureResult) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualMachineCaptureResult struct.

type VirtualMachineCaptureResultProperties Uses

type VirtualMachineCaptureResultProperties struct {
    // Output - Operation output data (raw JSON)
    Output interface{} `json:"output,omitempty"`
}

VirtualMachineCaptureResultProperties compute-specific operation properties, including output

type VirtualMachineExtension Uses

type VirtualMachineExtension struct {
    autorest.Response                  `json:"-"`
    *VirtualMachineExtensionProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
    // Location - Resource location
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
}

VirtualMachineExtension describes a Virtual Machine Extension.

func (VirtualMachineExtension) MarshalJSON Uses

func (vme VirtualMachineExtension) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachineExtension.

func (*VirtualMachineExtension) UnmarshalJSON Uses

func (vme *VirtualMachineExtension) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualMachineExtension struct.

type VirtualMachineExtensionHandlerInstanceView Uses

type VirtualMachineExtensionHandlerInstanceView struct {
    // Type - Specifies the type of the extension; an example is "CustomScriptExtension".
    Type *string `json:"type,omitempty"`
    // TypeHandlerVersion - Specifies the version of the script handler.
    TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"`
    // Status - The extension handler status.
    Status *InstanceViewStatus `json:"status,omitempty"`
}

VirtualMachineExtensionHandlerInstanceView the instance view of a virtual machine extension handler.

type VirtualMachineExtensionImage Uses

type VirtualMachineExtensionImage struct {
    autorest.Response                       `json:"-"`
    *VirtualMachineExtensionImageProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
    // Location - Resource location
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
}

VirtualMachineExtensionImage describes a Virtual Machine Extension Image.

func (VirtualMachineExtensionImage) MarshalJSON Uses

func (vmei VirtualMachineExtensionImage) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachineExtensionImage.

func (*VirtualMachineExtensionImage) UnmarshalJSON Uses

func (vmei *VirtualMachineExtensionImage) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualMachineExtensionImage struct.

type VirtualMachineExtensionImageProperties Uses

type VirtualMachineExtensionImageProperties struct {
    // OperatingSystem - The operating system this extension supports.
    OperatingSystem *string `json:"operatingSystem,omitempty"`
    // ComputeRole - The type of role (IaaS or PaaS) this extension supports.
    ComputeRole *string `json:"computeRole,omitempty"`
    // HandlerSchema - The schema defined by publisher, where extension consumers should provide settings in a matching schema.
    HandlerSchema *string `json:"handlerSchema,omitempty"`
    // VMScaleSetEnabled - Whether the extension can be used on xRP VMScaleSets. By default existing extensions are usable on scalesets, but there might be cases where a publisher wants to explicitly indicate the extension is only enabled for CRP VMs but not VMSS.
    VMScaleSetEnabled *bool `json:"vmScaleSetEnabled,omitempty"`
    // SupportsMultipleExtensions - Whether the handler can support multiple extensions.
    SupportsMultipleExtensions *bool `json:"supportsMultipleExtensions,omitempty"`
}

VirtualMachineExtensionImageProperties describes the properties of a Virtual Machine Extension Image.

type VirtualMachineExtensionImagesClient Uses

type VirtualMachineExtensionImagesClient struct {
    BaseClient
}

VirtualMachineExtensionImagesClient is the compute Client

func NewVirtualMachineExtensionImagesClient Uses

func NewVirtualMachineExtensionImagesClient(subscriptionID string) VirtualMachineExtensionImagesClient

NewVirtualMachineExtensionImagesClient creates an instance of the VirtualMachineExtensionImagesClient client.

func NewVirtualMachineExtensionImagesClientWithBaseURI Uses

func NewVirtualMachineExtensionImagesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineExtensionImagesClient

NewVirtualMachineExtensionImagesClientWithBaseURI creates an instance of the VirtualMachineExtensionImagesClient client.

func (VirtualMachineExtensionImagesClient) Get Uses

func (client VirtualMachineExtensionImagesClient) Get(ctx context.Context, location string, publisherName string, typeParameter string, version string) (result VirtualMachineExtensionImage, err error)

Get gets a virtual machine extension image. Parameters: location - the name of a supported Azure region.

func (VirtualMachineExtensionImagesClient) GetPreparer Uses

func (client VirtualMachineExtensionImagesClient) GetPreparer(ctx context.Context, location string, publisherName string, typeParameter string, version string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualMachineExtensionImagesClient) GetResponder Uses

func (client VirtualMachineExtensionImagesClient) GetResponder(resp *http.Response) (result VirtualMachineExtensionImage, err error)

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

func (VirtualMachineExtensionImagesClient) GetSender Uses

func (client VirtualMachineExtensionImagesClient) 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 (VirtualMachineExtensionImagesClient) ListTypes Uses

func (client VirtualMachineExtensionImagesClient) ListTypes(ctx context.Context, location string, publisherName string) (result ListVirtualMachineExtensionImage, err error)

ListTypes gets a list of virtual machine extension image types. Parameters: location - the name of a supported Azure region.

func (VirtualMachineExtensionImagesClient) ListTypesPreparer Uses

func (client VirtualMachineExtensionImagesClient) ListTypesPreparer(ctx context.Context, location string, publisherName string) (*http.Request, error)

ListTypesPreparer prepares the ListTypes request.

func (VirtualMachineExtensionImagesClient) ListTypesResponder Uses

func (client VirtualMachineExtensionImagesClient) ListTypesResponder(resp *http.Response) (result ListVirtualMachineExtensionImage, err error)

ListTypesResponder handles the response to the ListTypes request. The method always closes the http.Response Body.

func (VirtualMachineExtensionImagesClient) ListTypesSender Uses

func (client VirtualMachineExtensionImagesClient) ListTypesSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachineExtensionImagesClient) ListVersions Uses

func (client VirtualMachineExtensionImagesClient) ListVersions(ctx context.Context, location string, publisherName string, typeParameter string, filter string, top *int32, orderby string) (result ListVirtualMachineExtensionImage, err error)

ListVersions gets a list of virtual machine extension image versions. Parameters: location - the name of a supported Azure region. filter - the filter to apply on the operation.

func (VirtualMachineExtensionImagesClient) ListVersionsPreparer Uses

func (client VirtualMachineExtensionImagesClient) ListVersionsPreparer(ctx context.Context, location string, publisherName string, typeParameter string, filter string, top *int32, orderby string) (*http.Request, error)

ListVersionsPreparer prepares the ListVersions request.

func (VirtualMachineExtensionImagesClient) ListVersionsResponder Uses

func (client VirtualMachineExtensionImagesClient) ListVersionsResponder(resp *http.Response) (result ListVirtualMachineExtensionImage, err error)

ListVersionsResponder handles the response to the ListVersions request. The method always closes the http.Response Body.

func (VirtualMachineExtensionImagesClient) ListVersionsSender Uses

func (client VirtualMachineExtensionImagesClient) ListVersionsSender(req *http.Request) (*http.Response, error)

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

type VirtualMachineExtensionInstanceView Uses

type VirtualMachineExtensionInstanceView struct {
    // Name - The virtual machine extension name.
    Name *string `json:"name,omitempty"`
    // Type - Specifies the type of the extension; an example is "CustomScriptExtension".
    Type *string `json:"type,omitempty"`
    // TypeHandlerVersion - Specifies the version of the script handler.
    TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"`
    // Substatuses - The resource status information.
    Substatuses *[]InstanceViewStatus `json:"substatuses,omitempty"`
    // Statuses - The resource status information.
    Statuses *[]InstanceViewStatus `json:"statuses,omitempty"`
}

VirtualMachineExtensionInstanceView the instance view of a virtual machine extension.

type VirtualMachineExtensionProperties Uses

type VirtualMachineExtensionProperties struct {
    // ForceUpdateTag - How the extension handler should be forced to update even if the extension configuration has not changed.
    ForceUpdateTag *string `json:"forceUpdateTag,omitempty"`
    // Publisher - The name of the extension handler publisher.
    Publisher *string `json:"publisher,omitempty"`
    // Type - Specifies the type of the extension; an example is "CustomScriptExtension".
    Type *string `json:"type,omitempty"`
    // TypeHandlerVersion - Specifies the version of the script handler.
    TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"`
    // AutoUpgradeMinorVersion - Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
    AutoUpgradeMinorVersion *bool `json:"autoUpgradeMinorVersion,omitempty"`
    // Settings - Json formatted public settings for the extension.
    Settings interface{} `json:"settings,omitempty"`
    // ProtectedSettings - The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
    ProtectedSettings interface{} `json:"protectedSettings,omitempty"`
    // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response.
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // InstanceView - The virtual machine extension instance view.
    InstanceView *VirtualMachineExtensionInstanceView `json:"instanceView,omitempty"`
}

VirtualMachineExtensionProperties describes the properties of a Virtual Machine Extension.

type VirtualMachineExtensionUpdate Uses

type VirtualMachineExtensionUpdate struct {
    *VirtualMachineExtensionUpdateProperties `json:"properties,omitempty"`
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
}

VirtualMachineExtensionUpdate describes a Virtual Machine Extension.

func (VirtualMachineExtensionUpdate) MarshalJSON Uses

func (vmeu VirtualMachineExtensionUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachineExtensionUpdate.

func (*VirtualMachineExtensionUpdate) UnmarshalJSON Uses

func (vmeu *VirtualMachineExtensionUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualMachineExtensionUpdate struct.

type VirtualMachineExtensionUpdateProperties Uses

type VirtualMachineExtensionUpdateProperties struct {
    // ForceUpdateTag - How the extension handler should be forced to update even if the extension configuration has not changed.
    ForceUpdateTag *string `json:"forceUpdateTag,omitempty"`
    // Publisher - The name of the extension handler publisher.
    Publisher *string `json:"publisher,omitempty"`
    // Type - Specifies the type of the extension; an example is "CustomScriptExtension".
    Type *string `json:"type,omitempty"`
    // TypeHandlerVersion - Specifies the version of the script handler.
    TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"`
    // AutoUpgradeMinorVersion - Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
    AutoUpgradeMinorVersion *bool `json:"autoUpgradeMinorVersion,omitempty"`
    // Settings - Json formatted public settings for the extension.
    Settings interface{} `json:"settings,omitempty"`
    // ProtectedSettings - The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
    ProtectedSettings interface{} `json:"protectedSettings,omitempty"`
}

VirtualMachineExtensionUpdateProperties describes the properties of a Virtual Machine Extension.

type VirtualMachineExtensionsClient Uses

type VirtualMachineExtensionsClient struct {
    BaseClient
}

VirtualMachineExtensionsClient is the compute Client

func NewVirtualMachineExtensionsClient Uses

func NewVirtualMachineExtensionsClient(subscriptionID string) VirtualMachineExtensionsClient

NewVirtualMachineExtensionsClient creates an instance of the VirtualMachineExtensionsClient client.

func NewVirtualMachineExtensionsClientWithBaseURI Uses

func NewVirtualMachineExtensionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineExtensionsClient

NewVirtualMachineExtensionsClientWithBaseURI creates an instance of the VirtualMachineExtensionsClient client.

func (VirtualMachineExtensionsClient) CreateOrUpdate Uses

func (client VirtualMachineExtensionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, VMName string, VMExtensionName string, extensionParameters VirtualMachineExtension) (result VirtualMachineExtensionsCreateOrUpdateFuture, err error)

CreateOrUpdate the operation to create or update the extension. Parameters: resourceGroupName - the name of the resource group. VMName - the name of the virtual machine where the extension should be created or updated. VMExtensionName - the name of the virtual machine extension. extensionParameters - parameters supplied to the Create Virtual Machine Extension operation.

func (VirtualMachineExtensionsClient) CreateOrUpdatePreparer Uses

func (client VirtualMachineExtensionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, VMName string, VMExtensionName string, extensionParameters VirtualMachineExtension) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VirtualMachineExtensionsClient) CreateOrUpdateResponder Uses

func (client VirtualMachineExtensionsClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualMachineExtension, err error)

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

func (VirtualMachineExtensionsClient) CreateOrUpdateSender Uses

func (client VirtualMachineExtensionsClient) CreateOrUpdateSender(req *http.Request) (future VirtualMachineExtensionsCreateOrUpdateFuture, err error)

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

func (VirtualMachineExtensionsClient) Delete Uses

func (client VirtualMachineExtensionsClient) Delete(ctx context.Context, resourceGroupName string, VMName string, VMExtensionName string) (result VirtualMachineExtensionsDeleteFuture, err error)

Delete the operation to delete the extension. Parameters: resourceGroupName - the name of the resource group. VMName - the name of the virtual machine where the extension should be deleted. VMExtensionName - the name of the virtual machine extension.

func (VirtualMachineExtensionsClient) DeletePreparer Uses

func (client VirtualMachineExtensionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, VMName string, VMExtensionName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (VirtualMachineExtensionsClient) DeleteResponder Uses

func (client VirtualMachineExtensionsClient) 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 (VirtualMachineExtensionsClient) DeleteSender Uses

func (client VirtualMachineExtensionsClient) DeleteSender(req *http.Request) (future VirtualMachineExtensionsDeleteFuture, err error)

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

func (VirtualMachineExtensionsClient) Get Uses

func (client VirtualMachineExtensionsClient) Get(ctx context.Context, resourceGroupName string, VMName string, VMExtensionName string, expand string) (result VirtualMachineExtension, err error)

Get the operation to get the extension. Parameters: resourceGroupName - the name of the resource group. VMName - the name of the virtual machine containing the extension. VMExtensionName - the name of the virtual machine extension. expand - the expand expression to apply on the operation.

func (VirtualMachineExtensionsClient) GetPreparer Uses

func (client VirtualMachineExtensionsClient) GetPreparer(ctx context.Context, resourceGroupName string, VMName string, VMExtensionName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualMachineExtensionsClient) GetResponder Uses

func (client VirtualMachineExtensionsClient) GetResponder(resp *http.Response) (result VirtualMachineExtension, err error)

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

func (VirtualMachineExtensionsClient) GetSender Uses

func (client VirtualMachineExtensionsClient) 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 (VirtualMachineExtensionsClient) Update Uses

func (client VirtualMachineExtensionsClient) Update(ctx context.Context, resourceGroupName string, VMName string, VMExtensionName string, extensionParameters VirtualMachineExtensionUpdate) (result VirtualMachineExtensionsUpdateFuture, err error)

Update the operation to update the extension. Parameters: resourceGroupName - the name of the resource group. VMName - the name of the virtual machine where the extension should be updated. VMExtensionName - the name of the virtual machine extension. extensionParameters - parameters supplied to the Update Virtual Machine Extension operation.

func (VirtualMachineExtensionsClient) UpdatePreparer Uses

func (client VirtualMachineExtensionsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, VMName string, VMExtensionName string, extensionParameters VirtualMachineExtensionUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (VirtualMachineExtensionsClient) UpdateResponder Uses

func (client VirtualMachineExtensionsClient) UpdateResponder(resp *http.Response) (result VirtualMachineExtension, err error)

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

func (VirtualMachineExtensionsClient) UpdateSender Uses

func (client VirtualMachineExtensionsClient) UpdateSender(req *http.Request) (future VirtualMachineExtensionsUpdateFuture, err error)

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

type VirtualMachineExtensionsCreateOrUpdateFuture Uses

type VirtualMachineExtensionsCreateOrUpdateFuture struct {
    azure.Future
}

VirtualMachineExtensionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*VirtualMachineExtensionsCreateOrUpdateFuture) Result Uses

func (future *VirtualMachineExtensionsCreateOrUpdateFuture) Result(client VirtualMachineExtensionsClient) (vme VirtualMachineExtension, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualMachineExtensionsDeleteFuture Uses

type VirtualMachineExtensionsDeleteFuture struct {
    azure.Future
}

VirtualMachineExtensionsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*VirtualMachineExtensionsDeleteFuture) Result Uses

func (future *VirtualMachineExtensionsDeleteFuture) Result(client VirtualMachineExtensionsClient) (osr OperationStatusResponse, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualMachineExtensionsListResult Uses

type VirtualMachineExtensionsListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of extensions
    Value *[]VirtualMachineExtension `json:"value,omitempty"`
}

VirtualMachineExtensionsListResult the List Extension operation response

type VirtualMachineExtensionsUpdateFuture Uses

type VirtualMachineExtensionsUpdateFuture struct {
    azure.Future
}

VirtualMachineExtensionsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*VirtualMachineExtensionsUpdateFuture) Result Uses

func (future *VirtualMachineExtensionsUpdateFuture) Result(client VirtualMachineExtensionsClient) (vme VirtualMachineExtension, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualMachineIdentity Uses

type VirtualMachineIdentity struct {
    // PrincipalID - READ-ONLY; The principal id of virtual machine identity.
    PrincipalID *string `json:"principalId,omitempty"`
    // TenantID - READ-ONLY; The tenant id associated with the virtual machine.
    TenantID *string `json:"tenantId,omitempty"`
    // Type - The type of identity used for the virtual machine. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity. Possible values include: 'SystemAssigned'
    Type ResourceIdentityType `json:"type,omitempty"`
}

VirtualMachineIdentity identity for the virtual machine.

type VirtualMachineImage Uses

type VirtualMachineImage struct {
    autorest.Response              `json:"-"`
    *VirtualMachineImageProperties `json:"properties,omitempty"`
    // Name - The name of the resource.
    Name *string `json:"name,omitempty"`
    // Location - The supported Azure location of the resource.
    Location *string `json:"location,omitempty"`
    // Tags - Specifies the tags that are assigned to the virtual machine. For more information about using tags, see [Using tags to organize your Azure resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md).
    Tags map[string]*string `json:"tags"`
    // ID - Resource Id
    ID  *string `json:"id,omitempty"`
}

VirtualMachineImage describes a Virtual Machine Image.

func (VirtualMachineImage) MarshalJSON Uses

func (vmi VirtualMachineImage) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachineImage.

func (*VirtualMachineImage) UnmarshalJSON Uses

func (vmi *VirtualMachineImage) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualMachineImage struct.

type VirtualMachineImageProperties Uses

type VirtualMachineImageProperties struct {
    Plan           *PurchasePlan    `json:"plan,omitempty"`
    OsDiskImage    *OSDiskImage     `json:"osDiskImage,omitempty"`
    DataDiskImages *[]DataDiskImage `json:"dataDiskImages,omitempty"`
}

VirtualMachineImageProperties describes the properties of a Virtual Machine Image.

type VirtualMachineImageResource Uses

type VirtualMachineImageResource struct {
    // Name - The name of the resource.
    Name *string `json:"name,omitempty"`
    // Location - The supported Azure location of the resource.
    Location *string `json:"location,omitempty"`
    // Tags - Specifies the tags that are assigned to the virtual machine. For more information about using tags, see [Using tags to organize your Azure resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md).
    Tags map[string]*string `json:"tags"`
    // ID - Resource Id
    ID  *string `json:"id,omitempty"`
}

VirtualMachineImageResource virtual machine image resource information.

func (VirtualMachineImageResource) MarshalJSON Uses

func (vmir VirtualMachineImageResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachineImageResource.

type VirtualMachineImagesClient Uses

type VirtualMachineImagesClient struct {
    BaseClient
}

VirtualMachineImagesClient is the compute Client

func NewVirtualMachineImagesClient Uses

func NewVirtualMachineImagesClient(subscriptionID string) VirtualMachineImagesClient

NewVirtualMachineImagesClient creates an instance of the VirtualMachineImagesClient client.

func NewVirtualMachineImagesClientWithBaseURI Uses

func NewVirtualMachineImagesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineImagesClient

NewVirtualMachineImagesClientWithBaseURI creates an instance of the VirtualMachineImagesClient client.

func (VirtualMachineImagesClient) Get Uses

func (client VirtualMachineImagesClient) Get(ctx context.Context, location string, publisherName string, offer string, skus string, version string) (result VirtualMachineImage, err error)

Get gets a virtual machine image. Parameters: location - the name of a supported Azure region. publisherName - a valid image publisher. offer - a valid image publisher offer. skus - a valid image SKU. version - a valid image SKU version.

func (VirtualMachineImagesClient) GetPreparer Uses

func (client VirtualMachineImagesClient) GetPreparer(ctx context.Context, location string, publisherName string, offer string, skus string, version string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualMachineImagesClient) GetResponder Uses

func (client VirtualMachineImagesClient) GetResponder(resp *http.Response) (result VirtualMachineImage, err error)

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

func (VirtualMachineImagesClient) GetSender Uses

func (client VirtualMachineImagesClient) 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 (VirtualMachineImagesClient) List Uses

func (client VirtualMachineImagesClient) List(ctx context.Context, location string, publisherName string, offer string, skus string, filter string, top *int32, orderby string) (result ListVirtualMachineImageResource, err error)

List gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. Parameters: location - the name of a supported Azure region. publisherName - a valid image publisher. offer - a valid image publisher offer. skus - a valid image SKU. filter - the filter to apply on the operation.

func (VirtualMachineImagesClient) ListOffers Uses

func (client VirtualMachineImagesClient) ListOffers(ctx context.Context, location string, publisherName string) (result ListVirtualMachineImageResource, err error)

ListOffers gets a list of virtual machine image offers for the specified location and publisher. Parameters: location - the name of a supported Azure region. publisherName - a valid image publisher.

func (VirtualMachineImagesClient) ListOffersPreparer Uses

func (client VirtualMachineImagesClient) ListOffersPreparer(ctx context.Context, location string, publisherName string) (*http.Request, error)

ListOffersPreparer prepares the ListOffers request.

func (VirtualMachineImagesClient) ListOffersResponder Uses

func (client VirtualMachineImagesClient) ListOffersResponder(resp *http.Response) (result ListVirtualMachineImageResource, err error)

ListOffersResponder handles the response to the ListOffers request. The method always closes the http.Response Body.

func (VirtualMachineImagesClient) ListOffersSender Uses

func (client VirtualMachineImagesClient) ListOffersSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachineImagesClient) ListPreparer Uses

func (client VirtualMachineImagesClient) ListPreparer(ctx context.Context, location string, publisherName string, offer string, skus string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (VirtualMachineImagesClient) ListPublishers Uses

func (client VirtualMachineImagesClient) ListPublishers(ctx context.Context, location string) (result ListVirtualMachineImageResource, err error)

ListPublishers gets a list of virtual machine image publishers for the specified Azure location. Parameters: location - the name of a supported Azure region.

func (VirtualMachineImagesClient) ListPublishersPreparer Uses

func (client VirtualMachineImagesClient) ListPublishersPreparer(ctx context.Context, location string) (*http.Request, error)

ListPublishersPreparer prepares the ListPublishers request.

func (VirtualMachineImagesClient) ListPublishersResponder Uses

func (client VirtualMachineImagesClient) ListPublishersResponder(resp *http.Response) (result ListVirtualMachineImageResource, err error)

ListPublishersResponder handles the response to the ListPublishers request. The method always closes the http.Response Body.

func (VirtualMachineImagesClient) ListPublishersSender Uses

func (client VirtualMachineImagesClient) ListPublishersSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachineImagesClient) ListResponder Uses

func (client VirtualMachineImagesClient) ListResponder(resp *http.Response) (result ListVirtualMachineImageResource, err error)

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

func (VirtualMachineImagesClient) ListSender Uses

func (client VirtualMachineImagesClient) 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 (VirtualMachineImagesClient) ListSkus Uses

func (client VirtualMachineImagesClient) ListSkus(ctx context.Context, location string, publisherName string, offer string) (result ListVirtualMachineImageResource, err error)

ListSkus gets a list of virtual machine image SKUs for the specified location, publisher, and offer. Parameters: location - the name of a supported Azure region. publisherName - a valid image publisher. offer - a valid image publisher offer.

func (VirtualMachineImagesClient) ListSkusPreparer Uses

func (client VirtualMachineImagesClient) ListSkusPreparer(ctx context.Context, location string, publisherName string, offer string) (*http.Request, error)

ListSkusPreparer prepares the ListSkus request.

func (VirtualMachineImagesClient) ListSkusResponder Uses

func (client VirtualMachineImagesClient) ListSkusResponder(resp *http.Response) (result ListVirtualMachineImageResource, err error)

ListSkusResponder handles the response to the ListSkus request. The method always closes the http.Response Body.

func (VirtualMachineImagesClient) ListSkusSender Uses

func (client VirtualMachineImagesClient) ListSkusSender(req *http.Request) (*http.Response, error)

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

type VirtualMachineInstanceView Uses

type VirtualMachineInstanceView struct {
    // PlatformUpdateDomain - Specifies the update domain of the virtual machine.
    PlatformUpdateDomain *int32 `json:"platformUpdateDomain,omitempty"`
    // PlatformFaultDomain - Specifies the fault domain of the virtual machine.
    PlatformFaultDomain *int32 `json:"platformFaultDomain,omitempty"`
    // RdpThumbPrint - The Remote desktop certificate thumbprint.
    RdpThumbPrint *string `json:"rdpThumbPrint,omitempty"`
    // VMAgent - The VM Agent running on the virtual machine.
    VMAgent *VirtualMachineAgentInstanceView `json:"vmAgent,omitempty"`
    // Disks - The virtual machine disk information.
    Disks *[]DiskInstanceView `json:"disks,omitempty"`
    // Extensions - The extensions information.
    Extensions *[]VirtualMachineExtensionInstanceView `json:"extensions,omitempty"`
    // BootDiagnostics - Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. <br><br> You can easily view the output of your console log. <br><br> Azure also enables you to see a screenshot of the VM from the hypervisor.
    BootDiagnostics *BootDiagnosticsInstanceView `json:"bootDiagnostics,omitempty"`
    // Statuses - The resource status information.
    Statuses *[]InstanceViewStatus `json:"statuses,omitempty"`
}

VirtualMachineInstanceView the instance view of a virtual machine.

type VirtualMachineListResult Uses

type VirtualMachineListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of virtual machines.
    Value *[]VirtualMachine `json:"value,omitempty"`
    // NextLink - The URI to fetch the next page of VMs. Call ListNext() with this URI to fetch the next page of Virtual Machines.
    NextLink *string `json:"nextLink,omitempty"`
}

VirtualMachineListResult the List Virtual Machine operation response.

func (VirtualMachineListResult) IsEmpty Uses

func (vmlr VirtualMachineListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type VirtualMachineListResultIterator Uses

type VirtualMachineListResultIterator struct {
    // contains filtered or unexported fields
}

VirtualMachineListResultIterator provides access to a complete listing of VirtualMachine values.

func NewVirtualMachineListResultIterator Uses

func NewVirtualMachineListResultIterator(page VirtualMachineListResultPage) VirtualMachineListResultIterator

Creates a new instance of the VirtualMachineListResultIterator type.

func (*VirtualMachineListResultIterator) Next Uses

func (iter *VirtualMachineListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*VirtualMachineListResultIterator) NextWithContext Uses

func (iter *VirtualMachineListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (VirtualMachineListResultIterator) NotDone Uses

func (iter VirtualMachineListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (VirtualMachineListResultIterator) Response Uses

func (iter VirtualMachineListResultIterator) Response() VirtualMachineListResult

Response returns the raw server response from the last page request.

func (VirtualMachineListResultIterator) Value Uses

func (iter VirtualMachineListResultIterator) Value() VirtualMachine

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type VirtualMachineListResultPage Uses

type VirtualMachineListResultPage struct {
    // contains filtered or unexported fields
}

VirtualMachineListResultPage contains a page of VirtualMachine values.

func NewVirtualMachineListResultPage Uses

func NewVirtualMachineListResultPage(getNextPage func(context.Context, VirtualMachineListResult) (VirtualMachineListResult, error)) VirtualMachineListResultPage

Creates a new instance of the VirtualMachineListResultPage type.

func (*VirtualMachineListResultPage) Next Uses

func (page *VirtualMachineListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*VirtualMachineListResultPage) NextWithContext Uses

func (page *VirtualMachineListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (VirtualMachineListResultPage) NotDone Uses

func (page VirtualMachineListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (VirtualMachineListResultPage) Response Uses

func (page VirtualMachineListResultPage) Response() VirtualMachineListResult

Response returns the raw server response from the last page request.

func (VirtualMachineListResultPage) Values Uses

func (page VirtualMachineListResultPage) Values() []VirtualMachine

Values returns the slice of values for the current page or nil if there are no values.

type VirtualMachineProperties Uses

type VirtualMachineProperties struct {
    // HardwareProfile - Specifies the hardware settings for the virtual machine.
    HardwareProfile *HardwareProfile `json:"hardwareProfile,omitempty"`
    // StorageProfile - Specifies the storage settings for the virtual machine disks.
    StorageProfile *StorageProfile `json:"storageProfile,omitempty"`
    // OsProfile - Specifies the operating system settings for the virtual machine.
    OsProfile *OSProfile `json:"osProfile,omitempty"`
    // NetworkProfile - Specifies the network interfaces of the virtual machine.
    NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"`
    // DiagnosticsProfile - Specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15.
    DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"`
    // AvailabilitySet - Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> For more information on Azure planned maintenance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set.
    AvailabilitySet *SubResource `json:"availabilitySet,omitempty"`
    // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response.
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // InstanceView - READ-ONLY; The virtual machine instance view.
    InstanceView *VirtualMachineInstanceView `json:"instanceView,omitempty"`
    // LicenseType - Specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system. <br><br> Possible values are: <br><br> Windows_Client <br><br> Windows_Server <br><br> If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Minimum api-version: 2015-06-15
    LicenseType *string `json:"licenseType,omitempty"`
    // VMID - READ-ONLY; Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands.
    VMID *string `json:"vmId,omitempty"`
}

VirtualMachineProperties describes the properties of a Virtual Machine.

type VirtualMachineScaleSet Uses

type VirtualMachineScaleSet struct {
    autorest.Response `json:"-"`
    // Sku - The virtual machine scale set sku.
    Sku *Sku `json:"sku,omitempty"`
    // Plan - Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use.  In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**.
    Plan                              *Plan `json:"plan,omitempty"`
    *VirtualMachineScaleSetProperties `json:"properties,omitempty"`
    // Identity - The identity of the virtual machine scale set, if configured.
    Identity *VirtualMachineScaleSetIdentity `json:"identity,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
    // Location - Resource location
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
}

VirtualMachineScaleSet describes a Virtual Machine Scale Set.

func (VirtualMachineScaleSet) MarshalJSON Uses

func (vmss VirtualMachineScaleSet) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachineScaleSet.

func (*VirtualMachineScaleSet) UnmarshalJSON Uses

func (vmss *VirtualMachineScaleSet) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualMachineScaleSet struct.

type VirtualMachineScaleSetDataDisk Uses

type VirtualMachineScaleSetDataDisk struct {
    // Name - The disk name.
    Name *string `json:"name,omitempty"`
    // Lun - Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.
    Lun *int32 `json:"lun,omitempty"`
    // Caching - Specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'CachingTypesNone', 'CachingTypesReadOnly', 'CachingTypesReadWrite'
    Caching CachingTypes `json:"caching,omitempty"`
    // CreateOption - The create option. Possible values include: 'DiskCreateOptionTypesFromImage', 'DiskCreateOptionTypesEmpty', 'DiskCreateOptionTypesAttach'
    CreateOption DiskCreateOptionTypes `json:"createOption,omitempty"`
    // DiskSizeGB - Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB
    DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
    // ManagedDisk - The managed disk parameters.
    ManagedDisk *VirtualMachineScaleSetManagedDiskParameters `json:"managedDisk,omitempty"`
}

VirtualMachineScaleSetDataDisk describes a virtual machine scale set data disk.

type VirtualMachineScaleSetExtension Uses

type VirtualMachineScaleSetExtension struct {
    // Name - The name of the extension.
    Name                                       *string `json:"name,omitempty"`
    *VirtualMachineScaleSetExtensionProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
}

VirtualMachineScaleSetExtension describes a Virtual Machine Scale Set Extension.

func (VirtualMachineScaleSetExtension) MarshalJSON Uses

func (vmsse VirtualMachineScaleSetExtension) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachineScaleSetExtension.

func (*VirtualMachineScaleSetExtension) UnmarshalJSON Uses

func (vmsse *VirtualMachineScaleSetExtension) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualMachineScaleSetExtension struct.

type VirtualMachineScaleSetExtensionProfile Uses

type VirtualMachineScaleSetExtensionProfile struct {
    // Extensions - The virtual machine scale set child extension resources.
    Extensions *[]VirtualMachineScaleSetExtension `json:"extensions,omitempty"`
}

VirtualMachineScaleSetExtensionProfile describes a virtual machine scale set extension profile.

type VirtualMachineScaleSetExtensionProperties Uses

type VirtualMachineScaleSetExtensionProperties struct {
    // Publisher - The name of the extension handler publisher.
    Publisher *string `json:"publisher,omitempty"`
    // Type - Specifies the type of the extension; an example is "CustomScriptExtension".
    Type *string `json:"type,omitempty"`
    // TypeHandlerVersion - Specifies the version of the script handler.
    TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"`
    // AutoUpgradeMinorVersion - Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
    AutoUpgradeMinorVersion *bool `json:"autoUpgradeMinorVersion,omitempty"`
    // Settings - Json formatted public settings for the extension.
    Settings interface{} `json:"settings,omitempty"`
    // ProtectedSettings - The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
    ProtectedSettings interface{} `json:"protectedSettings,omitempty"`
    // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response.
    ProvisioningState *string `json:"provisioningState,omitempty"`
}

VirtualMachineScaleSetExtensionProperties describes the properties of a Virtual Machine Scale Set Extension.

type VirtualMachineScaleSetIPConfiguration Uses

type VirtualMachineScaleSetIPConfiguration struct {
    // Name - The IP configuration name.
    Name                                             *string `json:"name,omitempty"`
    *VirtualMachineScaleSetIPConfigurationProperties `json:"properties,omitempty"`
    // ID - Resource Id
    ID  *string `json:"id,omitempty"`
}

VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP configuration.

func (VirtualMachineScaleSetIPConfiguration) MarshalJSON Uses

func (vmssic VirtualMachineScaleSetIPConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachineScaleSetIPConfiguration.

func (*VirtualMachineScaleSetIPConfiguration) UnmarshalJSON Uses

func (vmssic *VirtualMachineScaleSetIPConfiguration) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualMachineScaleSetIPConfiguration struct.

type VirtualMachineScaleSetIPConfigurationProperties Uses

type VirtualMachineScaleSetIPConfigurationProperties struct {
    // Subnet - The subnet.
    Subnet *APIEntityReference `json:"subnet,omitempty"`
    // ApplicationGatewayBackendAddressPools - The application gateway backend address pools.
    ApplicationGatewayBackendAddressPools *[]SubResource `json:"applicationGatewayBackendAddressPools,omitempty"`
    // LoadBalancerBackendAddressPools - The load balancer backend address pools.
    LoadBalancerBackendAddressPools *[]SubResource `json:"loadBalancerBackendAddressPools,omitempty"`
    // LoadBalancerInboundNatPools - The load balancer inbound nat pools.
    LoadBalancerInboundNatPools *[]SubResource `json:"loadBalancerInboundNatPools,omitempty"`
}

VirtualMachineScaleSetIPConfigurationProperties describes a virtual machine scale set network profile's IP configuration properties.

type VirtualMachineScaleSetIdentity Uses

type VirtualMachineScaleSetIdentity struct {
    // PrincipalID - READ-ONLY; The principal id of virtual machine scale set identity.
    PrincipalID *string `json:"principalId,omitempty"`
    // TenantID - READ-ONLY; The tenant id associated with the virtual machine scale set.
    TenantID *string `json:"tenantId,omitempty"`
    // Type - The type of identity used for the virtual machine scale set. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity. Possible values include: 'SystemAssigned'
    Type ResourceIdentityType `json:"type,omitempty"`
}

VirtualMachineScaleSetIdentity identity for the virtual machine scale set.

type VirtualMachineScaleSetInstanceView Uses

type VirtualMachineScaleSetInstanceView struct {
    autorest.Response `json:"-"`
    // VirtualMachine - READ-ONLY; The instance view status summary for the virtual machine scale set.
    VirtualMachine *VirtualMachineScaleSetInstanceViewStatusesSummary `json:"virtualMachine,omitempty"`
    // Extensions - READ-ONLY; The extensions information.
    Extensions *[]VirtualMachineScaleSetVMExtensionsSummary `json:"extensions,omitempty"`
    // Statuses - The resource status information.
    Statuses *[]InstanceViewStatus `json:"statuses,omitempty"`
}

VirtualMachineScaleSetInstanceView the instance view of a virtual machine scale set.

type VirtualMachineScaleSetInstanceViewStatusesSummary Uses

type VirtualMachineScaleSetInstanceViewStatusesSummary struct {
    // StatusesSummary - READ-ONLY; The extensions information.
    StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"`
}

VirtualMachineScaleSetInstanceViewStatusesSummary instance view statuses summary for virtual machines of a virtual machine scale set.

type VirtualMachineScaleSetListResult Uses

type VirtualMachineScaleSetListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of virtual machine scale sets.
    Value *[]VirtualMachineScaleSet `json:"value,omitempty"`
    // NextLink - The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of VMSS.
    NextLink *string `json:"nextLink,omitempty"`
}

VirtualMachineScaleSetListResult the List Virtual Machine operation response.

func (VirtualMachineScaleSetListResult) IsEmpty Uses

func (vmsslr VirtualMachineScaleSetListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type VirtualMachineScaleSetListResultIterator Uses

type VirtualMachineScaleSetListResultIterator struct {
    // contains filtered or unexported fields
}

VirtualMachineScaleSetListResultIterator provides access to a complete listing of VirtualMachineScaleSet values.

func NewVirtualMachineScaleSetListResultIterator Uses

func NewVirtualMachineScaleSetListResultIterator(page VirtualMachineScaleSetListResultPage) VirtualMachineScaleSetListResultIterator

Creates a new instance of the VirtualMachineScaleSetListResultIterator type.

func (*VirtualMachineScaleSetListResultIterator) Next Uses

func (iter *VirtualMachineScaleSetListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*VirtualMachineScaleSetListResultIterator) NextWithContext Uses

func (iter *VirtualMachineScaleSetListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (VirtualMachineScaleSetListResultIterator) NotDone Uses

func (iter VirtualMachineScaleSetListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (VirtualMachineScaleSetListResultIterator) Response Uses

func (iter VirtualMachineScaleSetListResultIterator) Response() VirtualMachineScaleSetListResult

Response returns the raw server response from the last page request.

func (VirtualMachineScaleSetListResultIterator) Value Uses

func (iter VirtualMachineScaleSetListResultIterator) Value() VirtualMachineScaleSet

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type VirtualMachineScaleSetListResultPage Uses

type VirtualMachineScaleSetListResultPage struct {
    // contains filtered or unexported fields
}

VirtualMachineScaleSetListResultPage contains a page of VirtualMachineScaleSet values.

func NewVirtualMachineScaleSetListResultPage Uses

func NewVirtualMachineScaleSetListResultPage(getNextPage func(context.Context, VirtualMachineScaleSetListResult) (VirtualMachineScaleSetListResult, error)) VirtualMachineScaleSetListResultPage

Creates a new instance of the VirtualMachineScaleSetListResultPage type.

func (*VirtualMachineScaleSetListResultPage) Next Uses

func (page *VirtualMachineScaleSetListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*VirtualMachineScaleSetListResultPage) NextWithContext Uses

func (page *VirtualMachineScaleSetListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (VirtualMachineScaleSetListResultPage) NotDone Uses

func (page VirtualMachineScaleSetListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (VirtualMachineScaleSetListResultPage) Response Uses

func (page VirtualMachineScaleSetListResultPage) Response() VirtualMachineScaleSetListResult

Response returns the raw server response from the last page request.

func (VirtualMachineScaleSetListResultPage) Values Uses

func (page VirtualMachineScaleSetListResultPage) Values() []VirtualMachineScaleSet

Values returns the slice of values for the current page or nil if there are no values.

type VirtualMachineScaleSetListSkusResult Uses

type VirtualMachineScaleSetListSkusResult struct {
    autorest.Response `json:"-"`
    // Value - The list of skus available for the virtual machine scale set.
    Value *[]VirtualMachineScaleSetSku `json:"value,omitempty"`
    // NextLink - The uri to fetch the next page of Virtual Machine Scale Set Skus. Call ListNext() with this to fetch the next page of VMSS Skus.
    NextLink *string `json:"nextLink,omitempty"`
}

VirtualMachineScaleSetListSkusResult the Virtual Machine Scale Set List Skus operation response.

func (VirtualMachineScaleSetListSkusResult) IsEmpty Uses

func (vmsslsr VirtualMachineScaleSetListSkusResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type VirtualMachineScaleSetListSkusResultIterator Uses

type VirtualMachineScaleSetListSkusResultIterator struct {
    // contains filtered or unexported fields
}

VirtualMachineScaleSetListSkusResultIterator provides access to a complete listing of VirtualMachineScaleSetSku values.

func NewVirtualMachineScaleSetListSkusResultIterator Uses

func NewVirtualMachineScaleSetListSkusResultIterator(page VirtualMachineScaleSetListSkusResultPage) VirtualMachineScaleSetListSkusResultIterator

Creates a new instance of the VirtualMachineScaleSetListSkusResultIterator type.

func (*VirtualMachineScaleSetListSkusResultIterator) Next Uses

func (iter *VirtualMachineScaleSetListSkusResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*VirtualMachineScaleSetListSkusResultIterator) NextWithContext Uses

func (iter *VirtualMachineScaleSetListSkusResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (VirtualMachineScaleSetListSkusResultIterator) NotDone Uses

func (iter VirtualMachineScaleSetListSkusResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (VirtualMachineScaleSetListSkusResultIterator) Response Uses

func (iter VirtualMachineScaleSetListSkusResultIterator) Response() VirtualMachineScaleSetListSkusResult

Response returns the raw server response from the last page request.

func (VirtualMachineScaleSetListSkusResultIterator) Value Uses

func (iter VirtualMachineScaleSetListSkusResultIterator) Value() VirtualMachineScaleSetSku

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type VirtualMachineScaleSetListSkusResultPage Uses

type VirtualMachineScaleSetListSkusResultPage struct {
    // contains filtered or unexported fields
}

VirtualMachineScaleSetListSkusResultPage contains a page of VirtualMachineScaleSetSku values.

func NewVirtualMachineScaleSetListSkusResultPage Uses

func NewVirtualMachineScaleSetListSkusResultPage(getNextPage func(context.Context, VirtualMachineScaleSetListSkusResult) (VirtualMachineScaleSetListSkusResult, error)) VirtualMachineScaleSetListSkusResultPage

Creates a new instance of the VirtualMachineScaleSetListSkusResultPage type.

func (*VirtualMachineScaleSetListSkusResultPage) Next Uses

func (page *VirtualMachineScaleSetListSkusResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*VirtualMachineScaleSetListSkusResultPage) NextWithContext Uses

func (page *VirtualMachineScaleSetListSkusResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (VirtualMachineScaleSetListSkusResultPage) NotDone Uses

func (page VirtualMachineScaleSetListSkusResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (VirtualMachineScaleSetListSkusResultPage) Response Uses

func (page VirtualMachineScaleSetListSkusResultPage) Response() VirtualMachineScaleSetListSkusResult

Response returns the raw server response from the last page request.

func (VirtualMachineScaleSetListSkusResultPage) Values Uses

func (page VirtualMachineScaleSetListSkusResultPage) Values() []VirtualMachineScaleSetSku

Values returns the slice of values for the current page or nil if there are no values.

type VirtualMachineScaleSetListWithLinkResult Uses

type VirtualMachineScaleSetListWithLinkResult struct {
    autorest.Response `json:"-"`
    // Value - The list of virtual machine scale sets.
    Value *[]VirtualMachineScaleSet `json:"value,omitempty"`
    // NextLink - The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of Virtual Machine Scale Sets.
    NextLink *string `json:"nextLink,omitempty"`
}

VirtualMachineScaleSetListWithLinkResult the List Virtual Machine operation response.

func (VirtualMachineScaleSetListWithLinkResult) IsEmpty Uses

func (vmsslwlr VirtualMachineScaleSetListWithLinkResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type VirtualMachineScaleSetListWithLinkResultIterator Uses

type VirtualMachineScaleSetListWithLinkResultIterator struct {
    // contains filtered or unexported fields
}

VirtualMachineScaleSetListWithLinkResultIterator provides access to a complete listing of VirtualMachineScaleSet values.

func NewVirtualMachineScaleSetListWithLinkResultIterator Uses

func NewVirtualMachineScaleSetListWithLinkResultIterator(page VirtualMachineScaleSetListWithLinkResultPage) VirtualMachineScaleSetListWithLinkResultIterator

Creates a new instance of the VirtualMachineScaleSetListWithLinkResultIterator type.

func (*VirtualMachineScaleSetListWithLinkResultIterator) Next Uses

func (iter *VirtualMachineScaleSetListWithLinkResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*VirtualMachineScaleSetListWithLinkResultIterator) NextWithContext Uses

func (iter *VirtualMachineScaleSetListWithLinkResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (VirtualMachineScaleSetListWithLinkResultIterator) NotDone Uses

func (iter VirtualMachineScaleSetListWithLinkResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (VirtualMachineScaleSetListWithLinkResultIterator) Response Uses

func (iter VirtualMachineScaleSetListWithLinkResultIterator) Response() VirtualMachineScaleSetListWithLinkResult

Response returns the raw server response from the last page request.

func (VirtualMachineScaleSetListWithLinkResultIterator) Value Uses

func (iter VirtualMachineScaleSetListWithLinkResultIterator) Value() VirtualMachineScaleSet

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type VirtualMachineScaleSetListWithLinkResultPage Uses

type VirtualMachineScaleSetListWithLinkResultPage struct {
    // contains filtered or unexported fields
}

VirtualMachineScaleSetListWithLinkResultPage contains a page of VirtualMachineScaleSet values.

func NewVirtualMachineScaleSetListWithLinkResultPage Uses

func NewVirtualMachineScaleSetListWithLinkResultPage(getNextPage func(context.Context, VirtualMachineScaleSetListWithLinkResult) (VirtualMachineScaleSetListWithLinkResult, error)) VirtualMachineScaleSetListWithLinkResultPage

Creates a new instance of the VirtualMachineScaleSetListWithLinkResultPage type.

func (*VirtualMachineScaleSetListWithLinkResultPage) Next Uses

func (page *VirtualMachineScaleSetListWithLinkResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*VirtualMachineScaleSetListWithLinkResultPage) NextWithContext Uses

func (page *VirtualMachineScaleSetListWithLinkResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (VirtualMachineScaleSetListWithLinkResultPage) NotDone Uses

func (page VirtualMachineScaleSetListWithLinkResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (VirtualMachineScaleSetListWithLinkResultPage) Response Uses

func (page VirtualMachineScaleSetListWithLinkResultPage) Response() VirtualMachineScaleSetListWithLinkResult

Response returns the raw server response from the last page request.

func (VirtualMachineScaleSetListWithLinkResultPage) Values Uses

func (page VirtualMachineScaleSetListWithLinkResultPage) Values() []VirtualMachineScaleSet

Values returns the slice of values for the current page or nil if there are no values.

type VirtualMachineScaleSetManagedDiskParameters Uses

type VirtualMachineScaleSetManagedDiskParameters struct {
    // StorageAccountType - Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: 'StandardLRS', 'PremiumLRS'
    StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"`
}

VirtualMachineScaleSetManagedDiskParameters describes the parameters of a ScaleSet managed disk.

type VirtualMachineScaleSetNetworkConfiguration Uses

type VirtualMachineScaleSetNetworkConfiguration struct {
    // Name - The network configuration name.
    Name                                                  *string `json:"name,omitempty"`
    *VirtualMachineScaleSetNetworkConfigurationProperties `json:"properties,omitempty"`
    // ID - Resource Id
    ID  *string `json:"id,omitempty"`
}

VirtualMachineScaleSetNetworkConfiguration describes a virtual machine scale set network profile's network configurations.

func (VirtualMachineScaleSetNetworkConfiguration) MarshalJSON Uses

func (vmssnc VirtualMachineScaleSetNetworkConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachineScaleSetNetworkConfiguration.

func (*VirtualMachineScaleSetNetworkConfiguration) UnmarshalJSON Uses

func (vmssnc *VirtualMachineScaleSetNetworkConfiguration) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualMachineScaleSetNetworkConfiguration struct.

type VirtualMachineScaleSetNetworkConfigurationProperties Uses

type VirtualMachineScaleSetNetworkConfigurationProperties struct {
    // Primary - Whether this is a primary NIC on a virtual machine.
    Primary *bool `json:"primary,omitempty"`
    // IPConfigurations - The virtual machine scale set IP Configuration.
    IPConfigurations *[]VirtualMachineScaleSetIPConfiguration `json:"ipConfigurations,omitempty"`
}

VirtualMachineScaleSetNetworkConfigurationProperties describes a virtual machine scale set network profile's IP configuration.

type VirtualMachineScaleSetNetworkProfile Uses

type VirtualMachineScaleSetNetworkProfile struct {
    // NetworkInterfaceConfigurations - The list of network configurations.
    NetworkInterfaceConfigurations *[]VirtualMachineScaleSetNetworkConfiguration `json:"networkInterfaceConfigurations,omitempty"`
}

VirtualMachineScaleSetNetworkProfile describes a virtual machine scale set network profile.

type VirtualMachineScaleSetOSDisk Uses

type VirtualMachineScaleSetOSDisk struct {
    // Name - The disk name.
    Name *string `json:"name,omitempty"`
    // Caching - Specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'CachingTypesNone', 'CachingTypesReadOnly', 'CachingTypesReadWrite'
    Caching CachingTypes `json:"caching,omitempty"`
    // CreateOption - Specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you  also use the plan element previously described. Possible values include: 'DiskCreateOptionTypesFromImage', 'DiskCreateOptionTypesEmpty', 'DiskCreateOptionTypesAttach'
    CreateOption DiskCreateOptionTypes `json:"createOption,omitempty"`
    // OsType - This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'
    OsType OperatingSystemTypes `json:"osType,omitempty"`
    // Image - The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist.
    Image *VirtualHardDisk `json:"image,omitempty"`
    // VhdContainers - The list of virtual hard disk container uris.
    VhdContainers *[]string `json:"vhdContainers,omitempty"`
    // ManagedDisk - The managed disk parameters.
    ManagedDisk *VirtualMachineScaleSetManagedDiskParameters `json:"managedDisk,omitempty"`
}

VirtualMachineScaleSetOSDisk describes a virtual machine scale set operating system disk.

type VirtualMachineScaleSetOSProfile Uses

type VirtualMachineScaleSetOSProfile struct {
    // ComputerNamePrefix - Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long.
    ComputerNamePrefix *string `json:"computerNamePrefix,omitempty"`
    // AdminUsername - Specifies the name of the administrator account. <br><br> **Windows-only restriction:** Cannot end in "." <br><br> **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". <br><br> **Minimum-length (Linux):** 1  character <br><br> **Max-length (Linux):** 64 characters <br><br> **Max-length (Windows):** 20 characters  <br><br><li> For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)<br><li> For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
    AdminUsername *string `json:"adminUsername,omitempty"`
    // AdminPassword - Specifies the password of the administrator account. <br><br> **Minimum-length (Windows):** 8 characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):** 123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" <br><br> For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password)
    AdminPassword *string `json:"adminPassword,omitempty"`
    // CustomData - A base-64 encoded string of custom data.
    CustomData *string `json:"customData,omitempty"`
    // WindowsConfiguration - The Windows Configuration of the OS profile.
    WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"`
    // LinuxConfiguration - The Linux Configuration of the OS profile.
    LinuxConfiguration *LinuxConfiguration `json:"linuxConfiguration,omitempty"`
    // Secrets - The List of certificates for addition to the VM.
    Secrets *[]VaultSecretGroup `json:"secrets,omitempty"`
}

VirtualMachineScaleSetOSProfile describes a virtual machine scale set OS profile.

type VirtualMachineScaleSetProperties Uses

type VirtualMachineScaleSetProperties struct {
    // UpgradePolicy - The upgrade policy.
    UpgradePolicy *UpgradePolicy `json:"upgradePolicy,omitempty"`
    // VirtualMachineProfile - The virtual machine profile.
    VirtualMachineProfile *VirtualMachineScaleSetVMProfile `json:"virtualMachineProfile,omitempty"`
    // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response.
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // OverProvision - Specifies whether the Virtual Machine Scale Set should be overprovisioned.
    OverProvision *bool `json:"overProvision,omitempty"`
    // SinglePlacementGroup - When true this limits the scale set to a single placement group, of max size 100 virtual machines.
    SinglePlacementGroup *bool `json:"singlePlacementGroup,omitempty"`
}

VirtualMachineScaleSetProperties describes the properties of a Virtual Machine Scale Set.

type VirtualMachineScaleSetSku Uses

type VirtualMachineScaleSetSku struct {
    // ResourceType - READ-ONLY; The type of resource the sku applies to.
    ResourceType *string `json:"resourceType,omitempty"`
    // Sku - READ-ONLY; The Sku.
    Sku *Sku `json:"sku,omitempty"`
    // Capacity - READ-ONLY; Specifies the number of virtual machines in the scale set.
    Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"`
}

VirtualMachineScaleSetSku describes an available virtual machine scale set sku.

type VirtualMachineScaleSetSkuCapacity Uses

type VirtualMachineScaleSetSkuCapacity struct {
    // Minimum - READ-ONLY; The minimum capacity.
    Minimum *int64 `json:"minimum,omitempty"`
    // Maximum - READ-ONLY; The maximum capacity that can be set.
    Maximum *int64 `json:"maximum,omitempty"`
    // DefaultCapacity - READ-ONLY; The default capacity.
    DefaultCapacity *int64 `json:"defaultCapacity,omitempty"`
    // ScaleType - READ-ONLY; The scale type applicable to the sku. Possible values include: 'VirtualMachineScaleSetSkuScaleTypeAutomatic', 'VirtualMachineScaleSetSkuScaleTypeNone'
    ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"`
}

VirtualMachineScaleSetSkuCapacity describes scaling information of a sku.

type VirtualMachineScaleSetSkuScaleType Uses

type VirtualMachineScaleSetSkuScaleType string

VirtualMachineScaleSetSkuScaleType enumerates the values for virtual machine scale set sku scale type.

const (
    // VirtualMachineScaleSetSkuScaleTypeAutomatic ...
    VirtualMachineScaleSetSkuScaleTypeAutomatic VirtualMachineScaleSetSkuScaleType = "Automatic"
    // VirtualMachineScaleSetSkuScaleTypeNone ...
    VirtualMachineScaleSetSkuScaleTypeNone VirtualMachineScaleSetSkuScaleType = "None"
)

func PossibleVirtualMachineScaleSetSkuScaleTypeValues Uses

func PossibleVirtualMachineScaleSetSkuScaleTypeValues() []VirtualMachineScaleSetSkuScaleType

PossibleVirtualMachineScaleSetSkuScaleTypeValues returns an array of possible values for the VirtualMachineScaleSetSkuScaleType const type.

type VirtualMachineScaleSetStorageProfile Uses

type VirtualMachineScaleSetStorageProfile struct {
    // ImageReference - The image reference.
    ImageReference *ImageReference `json:"imageReference,omitempty"`
    // OsDisk - The OS disk.
    OsDisk *VirtualMachineScaleSetOSDisk `json:"osDisk,omitempty"`
    // DataDisks - The data disks.
    DataDisks *[]VirtualMachineScaleSetDataDisk `json:"dataDisks,omitempty"`
}

VirtualMachineScaleSetStorageProfile describes a virtual machine scale set storage profile.

type VirtualMachineScaleSetVM Uses

type VirtualMachineScaleSetVM struct {
    autorest.Response `json:"-"`
    // InstanceID - READ-ONLY; The virtual machine instance ID.
    InstanceID *string `json:"instanceId,omitempty"`
    // Sku - READ-ONLY; The virtual machine SKU.
    Sku                                 *Sku `json:"sku,omitempty"`
    *VirtualMachineScaleSetVMProperties `json:"properties,omitempty"`
    // Plan - Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use.  In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**.
    Plan *Plan `json:"plan,omitempty"`
    // Resources - READ-ONLY; The virtual machine child extension resources.
    Resources *[]VirtualMachineExtension `json:"resources,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
    // Location - Resource location
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
}

VirtualMachineScaleSetVM describes a virtual machine scale set virtual machine.

func (VirtualMachineScaleSetVM) MarshalJSON Uses

func (vmssv VirtualMachineScaleSetVM) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachineScaleSetVM.

func (*VirtualMachineScaleSetVM) UnmarshalJSON Uses

func (vmssv *VirtualMachineScaleSetVM) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualMachineScaleSetVM struct.

type VirtualMachineScaleSetVMExtensionsSummary Uses

type VirtualMachineScaleSetVMExtensionsSummary struct {
    // Name - READ-ONLY; The extension name.
    Name *string `json:"name,omitempty"`
    // StatusesSummary - READ-ONLY; The extensions information.
    StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"`
}

VirtualMachineScaleSetVMExtensionsSummary extensions summary for virtual machines of a virtual machine scale set.

type VirtualMachineScaleSetVMInstanceIDs Uses

type VirtualMachineScaleSetVMInstanceIDs struct {
    // InstanceIds - The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set.
    InstanceIds *[]string `json:"instanceIds,omitempty"`
}

VirtualMachineScaleSetVMInstanceIDs specifies a list of virtual machine instance IDs from the VM scale set.

type VirtualMachineScaleSetVMInstanceRequiredIDs Uses

type VirtualMachineScaleSetVMInstanceRequiredIDs struct {
    // InstanceIds - The virtual machine scale set instance ids.
    InstanceIds *[]string `json:"instanceIds,omitempty"`
}

VirtualMachineScaleSetVMInstanceRequiredIDs specifies a list of virtual machine instance IDs from the VM scale set.

type VirtualMachineScaleSetVMInstanceView Uses

type VirtualMachineScaleSetVMInstanceView struct {
    autorest.Response `json:"-"`
    // PlatformUpdateDomain - The Update Domain count.
    PlatformUpdateDomain *int32 `json:"platformUpdateDomain,omitempty"`
    // PlatformFaultDomain - The Fault Domain count.
    PlatformFaultDomain *int32 `json:"platformFaultDomain,omitempty"`
    // RdpThumbPrint - The Remote desktop certificate thumbprint.
    RdpThumbPrint *string `json:"rdpThumbPrint,omitempty"`
    // VMAgent - The VM Agent running on the virtual machine.
    VMAgent *VirtualMachineAgentInstanceView `json:"vmAgent,omitempty"`
    // Disks - The disks information.
    Disks *[]DiskInstanceView `json:"disks,omitempty"`
    // Extensions - The extensions information.
    Extensions *[]VirtualMachineExtensionInstanceView `json:"extensions,omitempty"`
    // BootDiagnostics - Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. <br><br> You can easily view the output of your console log. <br><br> Azure also enables you to see a screenshot of the VM from the hypervisor.
    BootDiagnostics *BootDiagnosticsInstanceView `json:"bootDiagnostics,omitempty"`
    // Statuses - The resource status information.
    Statuses *[]InstanceViewStatus `json:"statuses,omitempty"`
    // PlacementGroupID - The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId.
    PlacementGroupID *string `json:"placementGroupId,omitempty"`
}

VirtualMachineScaleSetVMInstanceView the instance view of a virtual machine scale set VM.

type VirtualMachineScaleSetVMListResult Uses

type VirtualMachineScaleSetVMListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of virtual machine scale sets VMs.
    Value *[]VirtualMachineScaleSetVM `json:"value,omitempty"`
    // NextLink - The uri to fetch the next page of Virtual Machine Scale Set VMs. Call ListNext() with this to fetch the next page of VMSS VMs
    NextLink *string `json:"nextLink,omitempty"`
}

VirtualMachineScaleSetVMListResult the List Virtual Machine Scale Set VMs operation response.

func (VirtualMachineScaleSetVMListResult) IsEmpty Uses

func (vmssvlr VirtualMachineScaleSetVMListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type VirtualMachineScaleSetVMListResultIterator Uses

type VirtualMachineScaleSetVMListResultIterator struct {
    // contains filtered or unexported fields
}

VirtualMachineScaleSetVMListResultIterator provides access to a complete listing of VirtualMachineScaleSetVM values.

func NewVirtualMachineScaleSetVMListResultIterator Uses

func NewVirtualMachineScaleSetVMListResultIterator(page VirtualMachineScaleSetVMListResultPage) VirtualMachineScaleSetVMListResultIterator

Creates a new instance of the VirtualMachineScaleSetVMListResultIterator type.

func (*VirtualMachineScaleSetVMListResultIterator) Next Uses

func (iter *VirtualMachineScaleSetVMListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*VirtualMachineScaleSetVMListResultIterator) NextWithContext Uses

func (iter *VirtualMachineScaleSetVMListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (VirtualMachineScaleSetVMListResultIterator) NotDone Uses

func (iter VirtualMachineScaleSetVMListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (VirtualMachineScaleSetVMListResultIterator) Response Uses

func (iter VirtualMachineScaleSetVMListResultIterator) Response() VirtualMachineScaleSetVMListResult

Response returns the raw server response from the last page request.

func (VirtualMachineScaleSetVMListResultIterator) Value Uses

func (iter VirtualMachineScaleSetVMListResultIterator) Value() VirtualMachineScaleSetVM

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type VirtualMachineScaleSetVMListResultPage Uses

type VirtualMachineScaleSetVMListResultPage struct {
    // contains filtered or unexported fields
}

VirtualMachineScaleSetVMListResultPage contains a page of VirtualMachineScaleSetVM values.

func NewVirtualMachineScaleSetVMListResultPage Uses

func NewVirtualMachineScaleSetVMListResultPage(getNextPage func(context.Context, VirtualMachineScaleSetVMListResult) (VirtualMachineScaleSetVMListResult, error)) VirtualMachineScaleSetVMListResultPage

Creates a new instance of the VirtualMachineScaleSetVMListResultPage type.

func (*VirtualMachineScaleSetVMListResultPage) Next Uses

func (page *VirtualMachineScaleSetVMListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*VirtualMachineScaleSetVMListResultPage) NextWithContext Uses

func (page *VirtualMachineScaleSetVMListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (VirtualMachineScaleSetVMListResultPage) NotDone Uses

func (page VirtualMachineScaleSetVMListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (VirtualMachineScaleSetVMListResultPage) Response Uses

func (page VirtualMachineScaleSetVMListResultPage) Response() VirtualMachineScaleSetVMListResult

Response returns the raw server response from the last page request.

func (VirtualMachineScaleSetVMListResultPage) Values Uses

func (page VirtualMachineScaleSetVMListResultPage) Values() []VirtualMachineScaleSetVM

Values returns the slice of values for the current page or nil if there are no values.

type VirtualMachineScaleSetVMProfile Uses

type VirtualMachineScaleSetVMProfile struct {
    // OsProfile - The virtual machine scale set OS profile.
    OsProfile *VirtualMachineScaleSetOSProfile `json:"osProfile,omitempty"`
    // StorageProfile - The virtual machine scale set storage profile.
    StorageProfile *VirtualMachineScaleSetStorageProfile `json:"storageProfile,omitempty"`
    // NetworkProfile - The virtual machine scale set network profile.
    NetworkProfile *VirtualMachineScaleSetNetworkProfile `json:"networkProfile,omitempty"`
    // ExtensionProfile - The virtual machine scale set extension profile.
    ExtensionProfile *VirtualMachineScaleSetExtensionProfile `json:"extensionProfile,omitempty"`
}

VirtualMachineScaleSetVMProfile describes a virtual machine scale set virtual machine profile.

type VirtualMachineScaleSetVMProperties Uses

type VirtualMachineScaleSetVMProperties struct {
    // LatestModelApplied - READ-ONLY; Specifies whether the latest model has been applied to the virtual machine.
    LatestModelApplied *bool `json:"latestModelApplied,omitempty"`
    // VMID - READ-ONLY; Azure VM unique ID.
    VMID *string `json:"vmId,omitempty"`
    // InstanceView - READ-ONLY; The virtual machine instance view.
    InstanceView *VirtualMachineScaleSetVMInstanceView `json:"instanceView,omitempty"`
    // HardwareProfile - Specifies the hardware settings for the virtual machine.
    HardwareProfile *HardwareProfile `json:"hardwareProfile,omitempty"`
    // StorageProfile - Specifies the storage settings for the virtual machine disks.
    StorageProfile *StorageProfile `json:"storageProfile,omitempty"`
    // OsProfile - Specifies the operating system settings for the virtual machine.
    OsProfile *OSProfile `json:"osProfile,omitempty"`
    // NetworkProfile - Specifies the network interfaces of the virtual machine.
    NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"`
    // DiagnosticsProfile - Specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15.
    DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"`
    // AvailabilitySet - Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). <br><br> For more information on Azure planned maintenance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set.
    AvailabilitySet *SubResource `json:"availabilitySet,omitempty"`
    // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response.
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // LicenseType - Specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system. <br><br> Possible values are: <br><br> Windows_Client <br><br> Windows_Server <br><br> If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> Minimum api-version: 2015-06-15
    LicenseType *string `json:"licenseType,omitempty"`
}

VirtualMachineScaleSetVMProperties describes the properties of a virtual machine scale set virtual machine.

type VirtualMachineScaleSetVMsClient Uses

type VirtualMachineScaleSetVMsClient struct {
    BaseClient
}

VirtualMachineScaleSetVMsClient is the compute Client

func NewVirtualMachineScaleSetVMsClient Uses

func NewVirtualMachineScaleSetVMsClient(subscriptionID string) VirtualMachineScaleSetVMsClient

NewVirtualMachineScaleSetVMsClient creates an instance of the VirtualMachineScaleSetVMsClient client.

func NewVirtualMachineScaleSetVMsClientWithBaseURI Uses

func NewVirtualMachineScaleSetVMsClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineScaleSetVMsClient

NewVirtualMachineScaleSetVMsClientWithBaseURI creates an instance of the VirtualMachineScaleSetVMsClient client.

func (VirtualMachineScaleSetVMsClient) Deallocate Uses

func (client VirtualMachineScaleSetVMsClient) Deallocate(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) (result VirtualMachineScaleSetVMsDeallocateFuture, err error)

Deallocate deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. Parameters: resourceGroupName - the name of the resource group. VMScaleSetName - the name of the VM scale set. instanceID - the instance ID of the virtual machine.

func (VirtualMachineScaleSetVMsClient) DeallocatePreparer Uses

func (client VirtualMachineScaleSetVMsClient) DeallocatePreparer(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) (*http.Request, error)

DeallocatePreparer prepares the Deallocate request.

func (VirtualMachineScaleSetVMsClient) DeallocateResponder Uses

func (client VirtualMachineScaleSetVMsClient) DeallocateResponder(resp *http.Response) (result OperationStatusResponse, err error)

DeallocateResponder handles the response to the Deallocate request. The method always closes the http.Response Body.

func (VirtualMachineScaleSetVMsClient) DeallocateSender Uses

func (client VirtualMachineScaleSetVMsClient) DeallocateSender(req *http.Request) (future VirtualMachineScaleSetVMsDeallocateFuture, err error)

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

func (VirtualMachineScaleSetVMsClient) Delete Uses

func (client VirtualMachineScaleSetVMsClient) Delete(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) (result VirtualMachineScaleSetVMsDeleteFuture, err error)

Delete deletes a virtual machine from a VM scale set. Parameters: resourceGroupName - the name of the resource group. VMScaleSetName - the name of the VM scale set. instanceID - the instance ID of the virtual machine.

func (VirtualMachineScaleSetVMsClient) DeletePreparer Uses

func (client VirtualMachineScaleSetVMsClient) DeletePreparer(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (VirtualMachineScaleSetVMsClient) DeleteResponder Uses

func (client VirtualMachineScaleSetVMsClient) 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 (VirtualMachineScaleSetVMsClient) DeleteSender Uses

func (client VirtualMachineScaleSetVMsClient) DeleteSender(req *http.Request) (future VirtualMachineScaleSetVMsDeleteFuture, err error)

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

func (VirtualMachineScaleSetVMsClient) Get Uses

func (client VirtualMachineScaleSetVMsClient) Get(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) (result VirtualMachineScaleSetVM, err error)

Get gets a virtual machine from a VM scale set. Parameters: resourceGroupName - the name of the resource group. VMScaleSetName - the name of the VM scale set. instanceID - the instance ID of the virtual machine.

func (VirtualMachineScaleSetVMsClient) GetInstanceView Uses

func (client VirtualMachineScaleSetVMsClient) GetInstanceView(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) (result VirtualMachineScaleSetVMInstanceView, err error)

GetInstanceView gets the status of a virtual machine from a VM scale set. Parameters: resourceGroupName - the name of the resource group. VMScaleSetName - the name of the VM scale set. instanceID - the instance ID of the virtual machine.

func (VirtualMachineScaleSetVMsClient) GetInstanceViewPreparer Uses

func (client VirtualMachineScaleSetVMsClient) GetInstanceViewPreparer(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) (*http.Request, error)

GetInstanceViewPreparer prepares the GetInstanceView request.

func (VirtualMachineScaleSetVMsClient) GetInstanceViewResponder Uses

func (client VirtualMachineScaleSetVMsClient) GetInstanceViewResponder(resp *http.Response) (result VirtualMachineScaleSetVMInstanceView, err error)

GetInstanceViewResponder handles the response to the GetInstanceView request. The method always closes the http.Response Body.

func (VirtualMachineScaleSetVMsClient) GetInstanceViewSender Uses

func (client VirtualMachineScaleSetVMsClient) GetInstanceViewSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachineScaleSetVMsClient) GetPreparer Uses

func (client VirtualMachineScaleSetVMsClient) GetPreparer(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualMachineScaleSetVMsClient) GetResponder Uses

func (client VirtualMachineScaleSetVMsClient) GetResponder(resp *http.Response) (result VirtualMachineScaleSetVM, err error)

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

func (VirtualMachineScaleSetVMsClient) GetSender Uses

func (client VirtualMachineScaleSetVMsClient) 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 (VirtualMachineScaleSetVMsClient) List Uses

func (client VirtualMachineScaleSetVMsClient) List(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, filter string, selectParameter string, expand string) (result VirtualMachineScaleSetVMListResultPage, err error)

List gets a list of all virtual machines in a VM scale sets. Parameters: resourceGroupName - the name of the resource group. virtualMachineScaleSetName - the name of the VM scale set. filter - the filter to apply to the operation. selectParameter - the list parameters. expand - the expand expression to apply to the operation.

func (VirtualMachineScaleSetVMsClient) ListComplete Uses

func (client VirtualMachineScaleSetVMsClient) ListComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, filter string, selectParameter string, expand string) (result VirtualMachineScaleSetVMListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (VirtualMachineScaleSetVMsClient) ListPreparer Uses

func (client VirtualMachineScaleSetVMsClient) ListPreparer(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, filter string, selectParameter string, expand string) (*http.Request, error)

ListPreparer prepares the List request.

func (VirtualMachineScaleSetVMsClient) ListResponder Uses

func (client VirtualMachineScaleSetVMsClient) ListResponder(resp *http.Response) (result VirtualMachineScaleSetVMListResult, err error)

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

func (VirtualMachineScaleSetVMsClient) ListSender Uses

func (client VirtualMachineScaleSetVMsClient) 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 (VirtualMachineScaleSetVMsClient) PowerOff Uses

func (client VirtualMachineScaleSetVMsClient) PowerOff(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) (result VirtualMachineScaleSetVMsPowerOffFuture, err error)

PowerOff power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Parameters: resourceGroupName - the name of the resource group. VMScaleSetName - the name of the VM scale set. instanceID - the instance ID of the virtual machine.

func (VirtualMachineScaleSetVMsClient) PowerOffPreparer Uses

func (client VirtualMachineScaleSetVMsClient) PowerOffPreparer(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) (*http.Request, error)

PowerOffPreparer prepares the PowerOff request.

func (VirtualMachineScaleSetVMsClient) PowerOffResponder Uses

func (client VirtualMachineScaleSetVMsClient) PowerOffResponder(resp *http.Response) (result OperationStatusResponse, err error)

PowerOffResponder handles the response to the PowerOff request. The method always closes the http.Response Body.

func (VirtualMachineScaleSetVMsClient) PowerOffSender Uses

func (client VirtualMachineScaleSetVMsClient) PowerOffSender(req *http.Request) (future VirtualMachineScaleSetVMsPowerOffFuture, err error)

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

func (VirtualMachineScaleSetVMsClient) Reimage Uses

func (client VirtualMachineScaleSetVMsClient) Reimage(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) (result VirtualMachineScaleSetVMsReimageFuture, err error)

Reimage reimages (upgrade the operating system) a specific virtual machine in a VM scale set. Parameters: resourceGroupName - the name of the resource group. VMScaleSetName - the name of the VM scale set. instanceID - the instance ID of the virtual machine.

func (VirtualMachineScaleSetVMsClient) ReimageAll Uses

func (client VirtualMachineScaleSetVMsClient) ReimageAll(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) (result VirtualMachineScaleSetVMsReimageAllFuture, err error)

ReimageAll allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. Parameters: resourceGroupName - the name of the resource group. VMScaleSetName - the name of the VM scale set. instanceID - the instance ID of the virtual machine.

func (VirtualMachineScaleSetVMsClient) ReimageAllPreparer Uses

func (client VirtualMachineScaleSetVMsClient) ReimageAllPreparer(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) (*http.Request, error)

ReimageAllPreparer prepares the ReimageAll request.

func (VirtualMachineScaleSetVMsClient) ReimageAllResponder Uses

func (client VirtualMachineScaleSetVMsClient) ReimageAllResponder(resp *http.Response) (result OperationStatusResponse, err error)

ReimageAllResponder handles the response to the ReimageAll request. The method always closes the http.Response Body.

func (VirtualMachineScaleSetVMsClient) ReimageAllSender Uses

func (client VirtualMachineScaleSetVMsClient) ReimageAllSender(req *http.Request) (future VirtualMachineScaleSetVMsReimageAllFuture, err error)

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

func (VirtualMachineScaleSetVMsClient) ReimagePreparer Uses

func (client VirtualMachineScaleSetVMsClient) ReimagePreparer(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) (*http.Request, error)

ReimagePreparer prepares the Reimage request.

func (VirtualMachineScaleSetVMsClient) ReimageResponder Uses

func (client VirtualMachineScaleSetVMsClient) ReimageResponder(resp *http.Response) (result OperationStatusResponse, err error)

ReimageResponder handles the response to the Reimage request. The method always closes the http.Response Body.

func (VirtualMachineScaleSetVMsClient) ReimageSender Uses

func (client VirtualMachineScaleSetVMsClient) ReimageSender(req *http.Request) (future VirtualMachineScaleSetVMsReimageFuture, err error)

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

func (VirtualMachineScaleSetVMsClient) Restart Uses

func (client VirtualMachineScaleSetVMsClient) Restart(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) (result VirtualMachineScaleSetVMsRestartFuture, err error)

Restart restarts a virtual machine in a VM scale set. Parameters: resourceGroupName - the name of the resource group. VMScaleSetName - the name of the VM scale set. instanceID - the instance ID of the virtual machine.

func (VirtualMachineScaleSetVMsClient) RestartPreparer Uses

func (client VirtualMachineScaleSetVMsClient) RestartPreparer(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) (*http.Request, error)

RestartPreparer prepares the Restart request.

func (VirtualMachineScaleSetVMsClient) RestartResponder Uses

func (client VirtualMachineScaleSetVMsClient) RestartResponder(resp *http.Response) (result OperationStatusResponse, err error)

RestartResponder handles the response to the Restart request. The method always closes the http.Response Body.

func (VirtualMachineScaleSetVMsClient) RestartSender Uses

func (client VirtualMachineScaleSetVMsClient) RestartSender(req *http.Request) (future