compute

package
v8.1.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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

The Compute Management Client.

Index

Constants

View Source
const (
	// APIVersion is the version of the Compute
	APIVersion = "2016-04-30-preview"

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

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

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

func Version

func Version() string

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

Types

type APIEntityReference

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

APIEntityReference is the API entity reference.

type APIError

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

APIError is api error.

type APIErrorBase

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

APIErrorBase is api error base.

type AdditionalUnattendContent

type AdditionalUnattendContent struct {
	PassName      PassNames      `json:"passName,omitempty"`
	ComponentName ComponentNames `json:"componentName,omitempty"`
	SettingName   SettingNames   `json:"settingName,omitempty"`
	Content       *string        `json:"content,omitempty"`
}

AdditionalUnattendContent is 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 a applied.

type AvailabilitySet

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

AvailabilitySet is create or update availability set parameters.

type AvailabilitySetListResult

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

AvailabilitySetListResult is the List Availability Set operation response.

type AvailabilitySetProperties

type AvailabilitySetProperties struct {
	PlatformUpdateDomainCount *int32                `json:"platformUpdateDomainCount,omitempty"`
	PlatformFaultDomainCount  *int32                `json:"platformFaultDomainCount,omitempty"`
	VirtualMachines           *[]SubResource        `json:"virtualMachines,omitempty"`
	Statuses                  *[]InstanceViewStatus `json:"statuses,omitempty"`
	Managed                   *bool                 `json:"managed,omitempty"`
}

AvailabilitySetProperties is the instance view of a resource.

type AvailabilitySetsClient

type AvailabilitySetsClient struct {
	ManagementClient
}

AvailabilitySetsClient is the the Compute Management Client.

func NewAvailabilitySetsClient

func NewAvailabilitySetsClient(subscriptionID string) AvailabilitySetsClient

NewAvailabilitySetsClient creates an instance of the AvailabilitySetsClient client.

func NewAvailabilitySetsClientWithBaseURI

func NewAvailabilitySetsClientWithBaseURI(baseURI string, subscriptionID string) AvailabilitySetsClient

NewAvailabilitySetsClientWithBaseURI creates an instance of the AvailabilitySetsClient client.

func (AvailabilitySetsClient) CreateOrUpdate

func (client AvailabilitySetsClient) CreateOrUpdate(resourceGroupName string, name string, parameters AvailabilitySet) (result AvailabilitySet, err error)

CreateOrUpdate create or update an availability set.

resourceGroupName is the name of the resource group. name is the name of the availability set. parameters is parameters supplied to the Create Availability Set operation.

func (AvailabilitySetsClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AvailabilitySetsClient) CreateOrUpdateResponder

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

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

func (client AvailabilitySetsClient) Delete(resourceGroupName string, availabilitySetName string) (result OperationStatusResponse, err error)

Delete delete an availability set.

resourceGroupName is the name of the resource group. availabilitySetName is the name of the availability set.

func (AvailabilitySetsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (AvailabilitySetsClient) DeleteResponder

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

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

func (client AvailabilitySetsClient) Get(resourceGroupName string, availabilitySetName string) (result AvailabilitySet, err error)

Get retrieves information about an availability set.

resourceGroupName is the name of the resource group. availabilitySetName is the name of the availability set.

func (AvailabilitySetsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (AvailabilitySetsClient) GetResponder

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

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

func (client AvailabilitySetsClient) List(resourceGroupName string) (result AvailabilitySetListResult, err error)

List lists all availability sets in a resource group.

resourceGroupName is the name of the resource group.

func (AvailabilitySetsClient) ListAvailableSizes

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

resourceGroupName is the name of the resource group. availabilitySetName is the name of the availability set.

func (AvailabilitySetsClient) ListAvailableSizesPreparer

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

ListAvailableSizesPreparer prepares the ListAvailableSizes request.

func (AvailabilitySetsClient) ListAvailableSizesResponder

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

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) ListPreparer

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

ListPreparer prepares the List request.

func (AvailabilitySetsClient) ListResponder

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

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 BootDiagnostics

type BootDiagnostics struct {
	Enabled    *bool   `json:"enabled,omitempty"`
	StorageURI *string `json:"storageUri,omitempty"`
}

BootDiagnostics is describes Boot Diagnostics.

type BootDiagnosticsInstanceView

type BootDiagnosticsInstanceView struct {
	ConsoleScreenshotBlobURI *string `json:"consoleScreenshotBlobUri,omitempty"`
	SerialConsoleLogBlobURI  *string `json:"serialConsoleLogBlobUri,omitempty"`
}

BootDiagnosticsInstanceView is the instance view of a virtual machine boot diagnostics.

type CachingTypes

type CachingTypes string

CachingTypes enumerates the values for caching types.

const (
	// None specifies the none state for caching types.
	None CachingTypes = "None"
	// ReadOnly specifies the read only state for caching types.
	ReadOnly CachingTypes = "ReadOnly"
	// ReadWrite specifies the read write state for caching types.
	ReadWrite CachingTypes = "ReadWrite"
)

type ComponentNames

type ComponentNames string

ComponentNames enumerates the values for component names.

const (
	// MicrosoftWindowsShellSetup specifies the microsoft windows shell setup
	// state for component names.
	MicrosoftWindowsShellSetup ComponentNames = "Microsoft-Windows-Shell-Setup"
)

type DataDisk

type DataDisk struct {
	Lun          *int32                 `json:"lun,omitempty"`
	Name         *string                `json:"name,omitempty"`
	Vhd          *VirtualHardDisk       `json:"vhd,omitempty"`
	Image        *VirtualHardDisk       `json:"image,omitempty"`
	Caching      CachingTypes           `json:"caching,omitempty"`
	CreateOption DiskCreateOptionTypes  `json:"createOption,omitempty"`
	DiskSizeGB   *int32                 `json:"diskSizeGB,omitempty"`
	ManagedDisk  *ManagedDiskParameters `json:"managedDisk,omitempty"`
}

DataDisk is describes a data disk.

type DataDiskImage

type DataDiskImage struct {
	Lun *int32 `json:"lun,omitempty"`
}

DataDiskImage is contains the data disk images information.

type DiagnosticsProfile

type DiagnosticsProfile struct {
	BootDiagnostics *BootDiagnostics `json:"bootDiagnostics,omitempty"`
}

DiagnosticsProfile is describes a diagnostics profile.

type DiskCreateOptionTypes

type DiskCreateOptionTypes string

DiskCreateOptionTypes enumerates the values for disk create option types.

const (
	// Attach specifies the attach state for disk create option types.
	Attach DiskCreateOptionTypes = "attach"
	// Empty specifies the empty state for disk create option types.
	Empty DiskCreateOptionTypes = "empty"
	// FromImage specifies the from image state for disk create option types.
	FromImage DiskCreateOptionTypes = "fromImage"
)

type DiskEncryptionSettings

type DiskEncryptionSettings struct {
	DiskEncryptionKey *KeyVaultSecretReference `json:"diskEncryptionKey,omitempty"`
	KeyEncryptionKey  *KeyVaultKeyReference    `json:"keyEncryptionKey,omitempty"`
	Enabled           *bool                    `json:"enabled,omitempty"`
}

DiskEncryptionSettings is describes a Encryption Settings for a Disk

type DiskInstanceView

type DiskInstanceView struct {
	Name     *string               `json:"name,omitempty"`
	Statuses *[]InstanceViewStatus `json:"statuses,omitempty"`
}

DiskInstanceView is the instance view of the disk.

type HardwareProfile

type HardwareProfile struct {
	VMSize VirtualMachineSizeTypes `json:"vmSize,omitempty"`
}

HardwareProfile is describes a hardware profile.

type Image

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

Image is describes an Image.

type ImageDataDisk

type ImageDataDisk struct {
	Lun         *int32       `json:"lun,omitempty"`
	Snapshot    *SubResource `json:"snapshot,omitempty"`
	ManagedDisk *SubResource `json:"managedDisk,omitempty"`
	BlobURI     *string      `json:"blobUri,omitempty"`
	Caching     CachingTypes `json:"caching,omitempty"`
	DiskSizeGB  *int32       `json:"diskSizeGB,omitempty"`
}

ImageDataDisk is describes a data disk.

type ImageListResult

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

ImageListResult is the List Image operation response.

func (ImageListResult) ImageListResultPreparer

func (client ImageListResult) ImageListResultPreparer() (*http.Request, error)

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

type ImageOSDisk

type ImageOSDisk struct {
	OsType      OperatingSystemTypes      `json:"osType,omitempty"`
	OsState     OperatingSystemStateTypes `json:"osState,omitempty"`
	Snapshot    *SubResource              `json:"snapshot,omitempty"`
	ManagedDisk *SubResource              `json:"managedDisk,omitempty"`
	BlobURI     *string                   `json:"blobUri,omitempty"`
	Caching     CachingTypes              `json:"caching,omitempty"`
	DiskSizeGB  *int32                    `json:"diskSizeGB,omitempty"`
}

ImageOSDisk is describes an Operating System disk.

type ImageProperties

type ImageProperties struct {
	SourceVirtualMachine *SubResource         `json:"sourceVirtualMachine,omitempty"`
	StorageProfile       *ImageStorageProfile `json:"storageProfile,omitempty"`
	ProvisioningState    *string              `json:"provisioningState,omitempty"`
}

ImageProperties is describes the properties of an Image.

type ImageReference

type ImageReference struct {
	ID        *string `json:"id,omitempty"`
	Publisher *string `json:"publisher,omitempty"`
	Offer     *string `json:"offer,omitempty"`
	Sku       *string `json:"sku,omitempty"`
	Version   *string `json:"version,omitempty"`
}

ImageReference is the image reference.

type ImageStorageProfile

type ImageStorageProfile struct {
	OsDisk    *ImageOSDisk     `json:"osDisk,omitempty"`
	DataDisks *[]ImageDataDisk `json:"dataDisks,omitempty"`
}

ImageStorageProfile is describes a storage profile.

type ImagesClient

type ImagesClient struct {
	ManagementClient
}

ImagesClient is the the Compute Management Client.

func NewImagesClient

func NewImagesClient(subscriptionID string) ImagesClient

NewImagesClient creates an instance of the ImagesClient client.

func NewImagesClientWithBaseURI

func NewImagesClientWithBaseURI(baseURI string, subscriptionID string) ImagesClient

NewImagesClientWithBaseURI creates an instance of the ImagesClient client.

func (ImagesClient) CreateOrUpdate

func (client ImagesClient) CreateOrUpdate(resourceGroupName string, imageName string, parameters Image, cancel <-chan struct{}) (result autorest.Response, err error)

CreateOrUpdate create or update an image. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. imageName is the name of the image. parameters is parameters supplied to the Create Image operation.

func (ImagesClient) CreateOrUpdatePreparer

func (client ImagesClient) CreateOrUpdatePreparer(resourceGroupName string, imageName string, parameters Image, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ImagesClient) CreateOrUpdateResponder

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

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

func (ImagesClient) CreateOrUpdateSender

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

func (client ImagesClient) Delete(resourceGroupName string, imageName string, cancel <-chan struct{}) (result autorest.Response, err error)

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

resourceGroupName is the name of the resource group. imageName is the name of the image.

func (ImagesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ImagesClient) DeleteResponder

func (client ImagesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

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

func (ImagesClient) DeleteSender

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

func (client ImagesClient) Get(resourceGroupName string, imageName string, expand string) (result Image, err error)

Get gets an image.

resourceGroupName is the name of the resource group. imageName is the name of the image. expand is the expand expression to apply on the operation.

func (ImagesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ImagesClient) GetResponder

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

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

func (client ImagesClient) List() (result ImageListResult, 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 not null to fetch all the Images.

func (ImagesClient) ListByResourceGroup

func (client ImagesClient) ListByResourceGroup(resourceGroupName string) (result ImageListResult, err error)

ListByResourceGroup gets the list of images under a resource group.

resourceGroupName is the name of the resource group.

func (ImagesClient) ListByResourceGroupNextResults

func (client ImagesClient) ListByResourceGroupNextResults(lastResults ImageListResult) (result ImageListResult, err error)

ListByResourceGroupNextResults retrieves the next set of results, if any.

func (ImagesClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ImagesClient) ListByResourceGroupResponder

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

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) ListNextResults

func (client ImagesClient) ListNextResults(lastResults ImageListResult) (result ImageListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (ImagesClient) ListPreparer

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

ListPreparer prepares the List request.

func (ImagesClient) ListResponder

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

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 InnerError

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

InnerError is inner error details.

type InstanceViewStatus

type InstanceViewStatus struct {
	Code          *string          `json:"code,omitempty"`
	Level         StatusLevelTypes `json:"level,omitempty"`
	DisplayStatus *string          `json:"displayStatus,omitempty"`
	Message       *string          `json:"message,omitempty"`
	Time          *date.Time       `json:"time,omitempty"`
}

InstanceViewStatus is instance view status.

type InstanceViewTypes

type InstanceViewTypes string

InstanceViewTypes enumerates the values for instance view types.

const (
	// InstanceView specifies the instance view state for instance view types.
	InstanceView InstanceViewTypes = "instanceView"
)

type KeyVaultKeyReference

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

KeyVaultKeyReference is describes a reference to Key Vault Key

type KeyVaultSecretReference

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

KeyVaultSecretReference is describes a reference to Key Vault Secret

type LinuxConfiguration

type LinuxConfiguration struct {
	DisablePasswordAuthentication *bool             `json:"disablePasswordAuthentication,omitempty"`
	SSH                           *SSHConfiguration `json:"ssh,omitempty"`
}

LinuxConfiguration is describes Windows configuration of the OS Profile.

type ListUsagesResult

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

ListUsagesResult is the List Usages operation response.

func (ListUsagesResult) ListUsagesResultPreparer

func (client ListUsagesResult) ListUsagesResultPreparer() (*http.Request, error)

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

type ListVirtualMachineExtensionImage

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

ListVirtualMachineExtensionImage is

type ListVirtualMachineImageResource

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

ListVirtualMachineImageResource is

type LongRunningOperationProperties

type LongRunningOperationProperties struct {
	Output *map[string]interface{} `json:"output,omitempty"`
}

LongRunningOperationProperties is compute-specific operation properties, including output

type ManagedDiskParameters

type ManagedDiskParameters struct {
	ID                 *string             `json:"id,omitempty"`
	StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"`
}

ManagedDiskParameters is the parameters of a managed disk.

type ManagementClient

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

ManagementClient is the base client for Compute.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

type NetworkInterfaceReference

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

NetworkInterfaceReference is describes a network interface reference.

type NetworkInterfaceReferenceProperties

type NetworkInterfaceReferenceProperties struct {
	Primary *bool `json:"primary,omitempty"`
}

NetworkInterfaceReferenceProperties is describes a network interface reference properties.

type NetworkProfile

type NetworkProfile struct {
	NetworkInterfaces *[]NetworkInterfaceReference `json:"networkInterfaces,omitempty"`
}

NetworkProfile is describes a network profile.

type OSDisk

type OSDisk struct {
	OsType             OperatingSystemTypes    `json:"osType,omitempty"`
	EncryptionSettings *DiskEncryptionSettings `json:"encryptionSettings,omitempty"`
	Name               *string                 `json:"name,omitempty"`
	Vhd                *VirtualHardDisk        `json:"vhd,omitempty"`
	Image              *VirtualHardDisk        `json:"image,omitempty"`
	Caching            CachingTypes            `json:"caching,omitempty"`
	CreateOption       DiskCreateOptionTypes   `json:"createOption,omitempty"`
	DiskSizeGB         *int32                  `json:"diskSizeGB,omitempty"`
	ManagedDisk        *ManagedDiskParameters  `json:"managedDisk,omitempty"`
}

OSDisk is describes an Operating System disk.

type OSDiskImage

type OSDiskImage struct {
	OperatingSystem OperatingSystemTypes `json:"operatingSystem,omitempty"`
}

OSDiskImage is contains the os disk image information.

type OSProfile

type OSProfile struct {
	ComputerName         *string               `json:"computerName,omitempty"`
	AdminUsername        *string               `json:"adminUsername,omitempty"`
	AdminPassword        *string               `json:"adminPassword,omitempty"`
	CustomData           *string               `json:"customData,omitempty"`
	WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"`
	LinuxConfiguration   *LinuxConfiguration   `json:"linuxConfiguration,omitempty"`
	Secrets              *[]VaultSecretGroup   `json:"secrets,omitempty"`
}

OSProfile is describes an OS profile.

type OperatingSystemStateTypes

type OperatingSystemStateTypes string

OperatingSystemStateTypes enumerates the values for operating system state types.

const (
	// Generalized specifies the generalized state for operating system state
	// types.
	Generalized OperatingSystemStateTypes = "Generalized"
	// Specialized specifies the specialized state for operating system state
	// types.
	Specialized OperatingSystemStateTypes = "Specialized"
)

type OperatingSystemTypes

type OperatingSystemTypes string

OperatingSystemTypes enumerates the values for operating system types.

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

type OperationStatusResponse

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

OperationStatusResponse is operation status response

type PassNames

type PassNames string

PassNames enumerates the values for pass names.

const (
	// OobeSystem specifies the oobe system state for pass names.
	OobeSystem PassNames = "oobeSystem"
)

type Plan

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

Plan is plan for the resource.

type ProtocolTypes

type ProtocolTypes string

ProtocolTypes enumerates the values for protocol types.

const (
	// HTTP specifies the http state for protocol types.
	HTTP ProtocolTypes = "Http"
	// HTTPS specifies the https state for protocol types.
	HTTPS ProtocolTypes = "Https"
)

type PurchasePlan

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

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

type Resource

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

Resource is the Resource model definition.

type SSHConfiguration

type SSHConfiguration struct {
	PublicKeys *[]SSHPublicKey `json:"publicKeys,omitempty"`
}

SSHConfiguration is sSH configuration for Linux based VMs running on Azure

type SSHPublicKey

type SSHPublicKey struct {
	Path    *string `json:"path,omitempty"`
	KeyData *string `json:"keyData,omitempty"`
}

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

type SettingNames

type SettingNames string

SettingNames enumerates the values for setting names.

const (
	// AutoLogon specifies the auto logon state for setting names.
	AutoLogon SettingNames = "AutoLogon"
	// FirstLogonCommands specifies the first logon commands state for setting
	// names.
	FirstLogonCommands SettingNames = "FirstLogonCommands"
)

type Sku

type Sku struct {
	Name     *string `json:"name,omitempty"`
	Tier     *string `json:"tier,omitempty"`
	Capacity *int64  `json:"capacity,omitempty"`
}

Sku is describes a virtual machine scale set sku.

type StatusLevelTypes

type StatusLevelTypes string

StatusLevelTypes enumerates the values for status level types.

const (
	// Error specifies the error state for status level types.
	Error StatusLevelTypes = "Error"
	// Info specifies the info state for status level types.
	Info StatusLevelTypes = "Info"
	// Warning specifies the warning state for status level types.
	Warning StatusLevelTypes = "Warning"
)

type StorageAccountTypes

type StorageAccountTypes string

StorageAccountTypes enumerates the values for storage account types.

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

type StorageProfile

type StorageProfile struct {
	ImageReference *ImageReference `json:"imageReference,omitempty"`
	OsDisk         *OSDisk         `json:"osDisk,omitempty"`
	DataDisks      *[]DataDisk     `json:"dataDisks,omitempty"`
}

StorageProfile is describes a storage profile.

type SubResource

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

SubResource is

type SubResourceReadOnly

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

SubResourceReadOnly is

type UpgradeMode

type UpgradeMode string

UpgradeMode enumerates the values for upgrade mode.

const (
	// Automatic specifies the automatic state for upgrade mode.
	Automatic UpgradeMode = "Automatic"
	// Manual specifies the manual state for upgrade mode.
	Manual UpgradeMode = "Manual"
)

type UpgradePolicy

type UpgradePolicy struct {
	Mode UpgradeMode `json:"mode,omitempty"`
}

UpgradePolicy is describes an upgrade policy - automatic or manual.

type Usage

type Usage struct {
	Unit         *string    `json:"unit,omitempty"`
	CurrentValue *int32     `json:"currentValue,omitempty"`
	Limit        *int64     `json:"limit,omitempty"`
	Name         *UsageName `json:"name,omitempty"`
}

Usage is describes Compute Resource Usage.

type UsageClient

type UsageClient struct {
	ManagementClient
}

UsageClient is the the Compute Management Client.

func NewUsageClient

func NewUsageClient(subscriptionID string) UsageClient

NewUsageClient creates an instance of the UsageClient client.

func NewUsageClientWithBaseURI

func NewUsageClientWithBaseURI(baseURI string, subscriptionID string) UsageClient

NewUsageClientWithBaseURI creates an instance of the UsageClient client.

func (UsageClient) List

func (client UsageClient) List(location string) (result ListUsagesResult, 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.

location is the location for which resource usage is queried.

func (UsageClient) ListNextResults

func (client UsageClient) ListNextResults(lastResults ListUsagesResult) (result ListUsagesResult, err error)

ListNextResults retrieves the next set of results, if any.

func (UsageClient) ListPreparer

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

ListPreparer prepares the List request.

func (UsageClient) ListResponder

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

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

type UsageName struct {
	Value          *string `json:"value,omitempty"`
	LocalizedValue *string `json:"localizedValue,omitempty"`
}

UsageName is the Usage Names.

type VaultCertificate

type VaultCertificate struct {
	CertificateURL   *string `json:"certificateUrl,omitempty"`
	CertificateStore *string `json:"certificateStore,omitempty"`
}

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

type VaultSecretGroup

type VaultSecretGroup struct {
	SourceVault       *SubResource        `json:"sourceVault,omitempty"`
	VaultCertificates *[]VaultCertificate `json:"vaultCertificates,omitempty"`
}

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

type VirtualHardDisk

type VirtualHardDisk struct {
	URI *string `json:"uri,omitempty"`
}

VirtualHardDisk is describes the uri of a disk.

type VirtualMachine

type VirtualMachine struct {
	autorest.Response         `json:"-"`
	ID                        *string             `json:"id,omitempty"`
	Name                      *string             `json:"name,omitempty"`
	Type                      *string             `json:"type,omitempty"`
	Location                  *string             `json:"location,omitempty"`
	Tags                      *map[string]*string `json:"tags,omitempty"`
	Plan                      *Plan               `json:"plan,omitempty"`
	*VirtualMachineProperties `json:"properties,omitempty"`
	Resources                 *[]VirtualMachineExtension `json:"resources,omitempty"`
}

VirtualMachine is describes a Virtual Machine.

type VirtualMachineAgentInstanceView

type VirtualMachineAgentInstanceView struct {
	VMAgentVersion    *string                                       `json:"vmAgentVersion,omitempty"`
	ExtensionHandlers *[]VirtualMachineExtensionHandlerInstanceView `json:"extensionHandlers,omitempty"`
	Statuses          *[]InstanceViewStatus                         `json:"statuses,omitempty"`
}

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

type VirtualMachineCaptureParameters

type VirtualMachineCaptureParameters struct {
	VhdPrefix                *string `json:"vhdPrefix,omitempty"`
	DestinationContainerName *string `json:"destinationContainerName,omitempty"`
	OverwriteVhds            *bool   `json:"overwriteVhds,omitempty"`
}

VirtualMachineCaptureParameters is capture Virtual Machine parameters.

type VirtualMachineCaptureResult

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

VirtualMachineCaptureResult is resource Id.

type VirtualMachineCaptureResultProperties

type VirtualMachineCaptureResultProperties struct {
	Output *map[string]interface{} `json:"output,omitempty"`
}

VirtualMachineCaptureResultProperties is compute-specific operation properties, including output

type VirtualMachineExtension

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

VirtualMachineExtension is describes a Virtual Machine Extension.

type VirtualMachineExtensionHandlerInstanceView

type VirtualMachineExtensionHandlerInstanceView struct {
	Type               *string             `json:"type,omitempty"`
	TypeHandlerVersion *string             `json:"typeHandlerVersion,omitempty"`
	Status             *InstanceViewStatus `json:"status,omitempty"`
}

VirtualMachineExtensionHandlerInstanceView is the instance view of a virtual machine extension handler.

type VirtualMachineExtensionImage

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

VirtualMachineExtensionImage is describes a Virtual Machine Extension Image.

type VirtualMachineExtensionImageProperties

type VirtualMachineExtensionImageProperties struct {
	OperatingSystem            *string `json:"operatingSystem,omitempty"`
	ComputeRole                *string `json:"computeRole,omitempty"`
	HandlerSchema              *string `json:"handlerSchema,omitempty"`
	VMScaleSetEnabled          *bool   `json:"vmScaleSetEnabled,omitempty"`
	SupportsMultipleExtensions *bool   `json:"supportsMultipleExtensions,omitempty"`
}

VirtualMachineExtensionImageProperties is describes the properties of a Virtual Machine Extension Image.

type VirtualMachineExtensionImagesClient

type VirtualMachineExtensionImagesClient struct {
	ManagementClient
}

VirtualMachineExtensionImagesClient is the the Compute Management Client.

func NewVirtualMachineExtensionImagesClient

func NewVirtualMachineExtensionImagesClient(subscriptionID string) VirtualMachineExtensionImagesClient

NewVirtualMachineExtensionImagesClient creates an instance of the VirtualMachineExtensionImagesClient client.

func NewVirtualMachineExtensionImagesClientWithBaseURI

func NewVirtualMachineExtensionImagesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineExtensionImagesClient

NewVirtualMachineExtensionImagesClientWithBaseURI creates an instance of the VirtualMachineExtensionImagesClient client.

func (VirtualMachineExtensionImagesClient) Get

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

Get gets a virtual machine extension image.

func (VirtualMachineExtensionImagesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (VirtualMachineExtensionImagesClient) GetResponder

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

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

func (VirtualMachineExtensionImagesClient) ListTypes

func (client VirtualMachineExtensionImagesClient) ListTypes(location string, publisherName string) (result ListVirtualMachineExtensionImage, err error)

ListTypes gets a list of virtual machine extension image types.

func (VirtualMachineExtensionImagesClient) ListTypesPreparer

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

ListTypesPreparer prepares the ListTypes request.

func (VirtualMachineExtensionImagesClient) ListTypesResponder

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

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

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

filter is the filter to apply on the operation.

func (VirtualMachineExtensionImagesClient) ListVersionsPreparer

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

ListVersionsPreparer prepares the ListVersions request.

func (VirtualMachineExtensionImagesClient) ListVersionsResponder

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

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

type VirtualMachineExtensionInstanceView struct {
	Name               *string               `json:"name,omitempty"`
	Type               *string               `json:"type,omitempty"`
	TypeHandlerVersion *string               `json:"typeHandlerVersion,omitempty"`
	Substatuses        *[]InstanceViewStatus `json:"substatuses,omitempty"`
	Statuses           *[]InstanceViewStatus `json:"statuses,omitempty"`
}

VirtualMachineExtensionInstanceView is the instance view of a virtual machine extension.

type VirtualMachineExtensionProperties

type VirtualMachineExtensionProperties struct {
	ForceUpdateTag          *string                              `json:"forceUpdateTag,omitempty"`
	Publisher               *string                              `json:"publisher,omitempty"`
	Type                    *string                              `json:"type,omitempty"`
	TypeHandlerVersion      *string                              `json:"typeHandlerVersion,omitempty"`
	AutoUpgradeMinorVersion *bool                                `json:"autoUpgradeMinorVersion,omitempty"`
	Settings                *map[string]interface{}              `json:"settings,omitempty"`
	ProtectedSettings       *map[string]interface{}              `json:"protectedSettings,omitempty"`
	ProvisioningState       *string                              `json:"provisioningState,omitempty"`
	InstanceView            *VirtualMachineExtensionInstanceView `json:"instanceView,omitempty"`
}

VirtualMachineExtensionProperties is describes the properties of a Virtual Machine Extension.

type VirtualMachineExtensionsClient

type VirtualMachineExtensionsClient struct {
	ManagementClient
}

VirtualMachineExtensionsClient is the the Compute Management Client.

func NewVirtualMachineExtensionsClient

func NewVirtualMachineExtensionsClient(subscriptionID string) VirtualMachineExtensionsClient

NewVirtualMachineExtensionsClient creates an instance of the VirtualMachineExtensionsClient client.

func NewVirtualMachineExtensionsClientWithBaseURI

func NewVirtualMachineExtensionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineExtensionsClient

NewVirtualMachineExtensionsClientWithBaseURI creates an instance of the VirtualMachineExtensionsClient client.

func (VirtualMachineExtensionsClient) CreateOrUpdate

func (client VirtualMachineExtensionsClient) CreateOrUpdate(resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtension, cancel <-chan struct{}) (result autorest.Response, err error)

CreateOrUpdate the operation to create or update the extension. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmName is the name of the virtual machine where the extension should be create or updated. vmExtensionName is the name of the virtual machine extension. extensionParameters is parameters supplied to the Create Virtual Machine Extension operation.

func (VirtualMachineExtensionsClient) CreateOrUpdatePreparer

func (client VirtualMachineExtensionsClient) CreateOrUpdatePreparer(resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtension, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VirtualMachineExtensionsClient) CreateOrUpdateResponder

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

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

func (VirtualMachineExtensionsClient) CreateOrUpdateSender

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

func (client VirtualMachineExtensionsClient) Delete(resourceGroupName string, vmName string, vmExtensionName string, cancel <-chan struct{}) (result autorest.Response, err error)

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

resourceGroupName is the name of the resource group. vmName is the name of the virtual machine where the extension should be deleted. vmExtensionName is the name of the virtual machine extension.

func (VirtualMachineExtensionsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (VirtualMachineExtensionsClient) DeleteResponder

func (client VirtualMachineExtensionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

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

func (VirtualMachineExtensionsClient) DeleteSender

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

func (client VirtualMachineExtensionsClient) Get(resourceGroupName string, vmName string, vmExtensionName string, expand string) (result VirtualMachineExtension, err error)

Get the operation to get the extension.

resourceGroupName is the name of the resource group. vmName is the name of the virtual machine containing the extension. vmExtensionName is the name of the virtual machine extension. expand is the expand expression to apply on the operation.

func (VirtualMachineExtensionsClient) GetPreparer

func (client VirtualMachineExtensionsClient) GetPreparer(resourceGroupName string, vmName string, vmExtensionName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualMachineExtensionsClient) GetResponder

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

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.

type VirtualMachineImage

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

VirtualMachineImage is describes a Virtual Machine Image.

type VirtualMachineImageProperties

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

VirtualMachineImageProperties is describes the properties of a Virtual Machine Image.

type VirtualMachineImageResource

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

VirtualMachineImageResource is virtual machine image resource information.

type VirtualMachineImagesClient

type VirtualMachineImagesClient struct {
	ManagementClient
}

VirtualMachineImagesClient is the the Compute Management Client.

func NewVirtualMachineImagesClient

func NewVirtualMachineImagesClient(subscriptionID string) VirtualMachineImagesClient

NewVirtualMachineImagesClient creates an instance of the VirtualMachineImagesClient client.

func NewVirtualMachineImagesClientWithBaseURI

func NewVirtualMachineImagesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineImagesClient

NewVirtualMachineImagesClientWithBaseURI creates an instance of the VirtualMachineImagesClient client.

func (VirtualMachineImagesClient) Get

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

Get gets a virtual machine image.

location is the name of a supported Azure region. publisherName is a valid image publisher. offer is a valid image publisher offer. skus is a valid image SKU. version is a valid image SKU version.

func (VirtualMachineImagesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (VirtualMachineImagesClient) GetResponder

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

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

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

location is the name of a supported Azure region. publisherName is a valid image publisher. offer is a valid image publisher offer. skus is a valid image SKU. filter is the filter to apply on the operation.

func (VirtualMachineImagesClient) ListOffers

func (client VirtualMachineImagesClient) ListOffers(location string, publisherName string) (result ListVirtualMachineImageResource, err error)

ListOffers gets a list of virtual machine image offers for the specified location and publisher.

location is the name of a supported Azure region. publisherName is a valid image publisher.

func (VirtualMachineImagesClient) ListOffersPreparer

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

ListOffersPreparer prepares the ListOffers request.

func (VirtualMachineImagesClient) ListOffersResponder

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

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

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

func (client VirtualMachineImagesClient) ListPublishers(location string) (result ListVirtualMachineImageResource, err error)

ListPublishers gets a list of virtual machine image publishers for the specified Azure location.

location is the name of a supported Azure region.

func (VirtualMachineImagesClient) ListPublishersPreparer

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

ListPublishersPreparer prepares the ListPublishers request.

func (VirtualMachineImagesClient) ListPublishersResponder

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

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

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

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

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

location is the name of a supported Azure region. publisherName is a valid image publisher. offer is a valid image publisher offer.

func (VirtualMachineImagesClient) ListSkusPreparer

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

ListSkusPreparer prepares the ListSkus request.

func (VirtualMachineImagesClient) ListSkusResponder

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

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

type VirtualMachineInstanceView struct {
	PlatformUpdateDomain *int32                                 `json:"platformUpdateDomain,omitempty"`
	PlatformFaultDomain  *int32                                 `json:"platformFaultDomain,omitempty"`
	RdpThumbPrint        *string                                `json:"rdpThumbPrint,omitempty"`
	VMAgent              *VirtualMachineAgentInstanceView       `json:"vmAgent,omitempty"`
	Disks                *[]DiskInstanceView                    `json:"disks,omitempty"`
	Extensions           *[]VirtualMachineExtensionInstanceView `json:"extensions,omitempty"`
	BootDiagnostics      *BootDiagnosticsInstanceView           `json:"bootDiagnostics,omitempty"`
	Statuses             *[]InstanceViewStatus                  `json:"statuses,omitempty"`
}

VirtualMachineInstanceView is the instance view of a virtual machine.

type VirtualMachineListResult

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

VirtualMachineListResult is the List Virtual Machine operation response.

func (VirtualMachineListResult) VirtualMachineListResultPreparer

func (client VirtualMachineListResult) VirtualMachineListResultPreparer() (*http.Request, error)

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

type VirtualMachineProperties

type VirtualMachineProperties struct {
	HardwareProfile    *HardwareProfile            `json:"hardwareProfile,omitempty"`
	StorageProfile     *StorageProfile             `json:"storageProfile,omitempty"`
	OsProfile          *OSProfile                  `json:"osProfile,omitempty"`
	NetworkProfile     *NetworkProfile             `json:"networkProfile,omitempty"`
	DiagnosticsProfile *DiagnosticsProfile         `json:"diagnosticsProfile,omitempty"`
	AvailabilitySet    *SubResource                `json:"availabilitySet,omitempty"`
	ProvisioningState  *string                     `json:"provisioningState,omitempty"`
	InstanceView       *VirtualMachineInstanceView `json:"instanceView,omitempty"`
	LicenseType        *string                     `json:"licenseType,omitempty"`
	VMID               *string                     `json:"vmId,omitempty"`
}

VirtualMachineProperties is describes the properties of a Virtual Machine.

type VirtualMachineScaleSet

type VirtualMachineScaleSet struct {
	autorest.Response                 `json:"-"`
	ID                                *string             `json:"id,omitempty"`
	Name                              *string             `json:"name,omitempty"`
	Type                              *string             `json:"type,omitempty"`
	Location                          *string             `json:"location,omitempty"`
	Tags                              *map[string]*string `json:"tags,omitempty"`
	Sku                               *Sku                `json:"sku,omitempty"`
	Plan                              *Plan               `json:"plan,omitempty"`
	*VirtualMachineScaleSetProperties `json:"properties,omitempty"`
}

VirtualMachineScaleSet is describes a Virtual Machine Scale Set.

type VirtualMachineScaleSetDataDisk

type VirtualMachineScaleSetDataDisk struct {
	Name         *string                                      `json:"name,omitempty"`
	Lun          *int32                                       `json:"lun,omitempty"`
	Caching      CachingTypes                                 `json:"caching,omitempty"`
	CreateOption DiskCreateOptionTypes                        `json:"createOption,omitempty"`
	DiskSizeGB   *int32                                       `json:"diskSizeGB,omitempty"`
	ManagedDisk  *VirtualMachineScaleSetManagedDiskParameters `json:"managedDisk,omitempty"`
}

VirtualMachineScaleSetDataDisk is describes a virtual machine scale set data disk.

type VirtualMachineScaleSetExtension

type VirtualMachineScaleSetExtension struct {
	ID                                         *string `json:"id,omitempty"`
	Name                                       *string `json:"name,omitempty"`
	*VirtualMachineScaleSetExtensionProperties `json:"properties,omitempty"`
}

VirtualMachineScaleSetExtension is describes a Virtual Machine Scale Set Extension.

type VirtualMachineScaleSetExtensionProfile

type VirtualMachineScaleSetExtensionProfile struct {
	Extensions *[]VirtualMachineScaleSetExtension `json:"extensions,omitempty"`
}

VirtualMachineScaleSetExtensionProfile is describes a virtual machine scale set extension profile.

type VirtualMachineScaleSetExtensionProperties

type VirtualMachineScaleSetExtensionProperties struct {
	Publisher               *string                 `json:"publisher,omitempty"`
	Type                    *string                 `json:"type,omitempty"`
	TypeHandlerVersion      *string                 `json:"typeHandlerVersion,omitempty"`
	AutoUpgradeMinorVersion *bool                   `json:"autoUpgradeMinorVersion,omitempty"`
	Settings                *map[string]interface{} `json:"settings,omitempty"`
	ProtectedSettings       *map[string]interface{} `json:"protectedSettings,omitempty"`
	ProvisioningState       *string                 `json:"provisioningState,omitempty"`
}

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

type VirtualMachineScaleSetIPConfiguration

type VirtualMachineScaleSetIPConfiguration struct {
	ID                                               *string `json:"id,omitempty"`
	Name                                             *string `json:"name,omitempty"`
	*VirtualMachineScaleSetIPConfigurationProperties `json:"properties,omitempty"`
}

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

type VirtualMachineScaleSetIPConfigurationProperties

type VirtualMachineScaleSetIPConfigurationProperties struct {
	Subnet                                *APIEntityReference `json:"subnet,omitempty"`
	ApplicationGatewayBackendAddressPools *[]SubResource      `json:"applicationGatewayBackendAddressPools,omitempty"`
	LoadBalancerBackendAddressPools       *[]SubResource      `json:"loadBalancerBackendAddressPools,omitempty"`
	LoadBalancerInboundNatPools           *[]SubResource      `json:"loadBalancerInboundNatPools,omitempty"`
}

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

type VirtualMachineScaleSetInstanceView

type VirtualMachineScaleSetInstanceView struct {
	autorest.Response `json:"-"`
	VirtualMachine    *VirtualMachineScaleSetInstanceViewStatusesSummary `json:"virtualMachine,omitempty"`
	Extensions        *[]VirtualMachineScaleSetVMExtensionsSummary       `json:"extensions,omitempty"`
	Statuses          *[]InstanceViewStatus                              `json:"statuses,omitempty"`
}

VirtualMachineScaleSetInstanceView is the instance view of a virtual machine scale set.

type VirtualMachineScaleSetInstanceViewStatusesSummary

type VirtualMachineScaleSetInstanceViewStatusesSummary struct {
	StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"`
}

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

type VirtualMachineScaleSetListResult

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

VirtualMachineScaleSetListResult is the List Virtual Machine operation response.

func (VirtualMachineScaleSetListResult) VirtualMachineScaleSetListResultPreparer

func (client VirtualMachineScaleSetListResult) VirtualMachineScaleSetListResultPreparer() (*http.Request, error)

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

type VirtualMachineScaleSetListSkusResult

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

VirtualMachineScaleSetListSkusResult is the Virtual Machine Scale Set List Skus operation response.

func (VirtualMachineScaleSetListSkusResult) VirtualMachineScaleSetListSkusResultPreparer

func (client VirtualMachineScaleSetListSkusResult) VirtualMachineScaleSetListSkusResultPreparer() (*http.Request, error)

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

type VirtualMachineScaleSetListWithLinkResult

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

VirtualMachineScaleSetListWithLinkResult is the List Virtual Machine operation response.

func (VirtualMachineScaleSetListWithLinkResult) VirtualMachineScaleSetListWithLinkResultPreparer

func (client VirtualMachineScaleSetListWithLinkResult) VirtualMachineScaleSetListWithLinkResultPreparer() (*http.Request, error)

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

type VirtualMachineScaleSetManagedDiskParameters

type VirtualMachineScaleSetManagedDiskParameters struct {
	StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"`
}

VirtualMachineScaleSetManagedDiskParameters is describes the parameters of a ScaleSet managed disk.

type VirtualMachineScaleSetNetworkConfiguration

type VirtualMachineScaleSetNetworkConfiguration struct {
	ID                                                    *string `json:"id,omitempty"`
	Name                                                  *string `json:"name,omitempty"`
	*VirtualMachineScaleSetNetworkConfigurationProperties `json:"properties,omitempty"`
}

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

type VirtualMachineScaleSetNetworkConfigurationProperties

type VirtualMachineScaleSetNetworkConfigurationProperties struct {
	Primary          *bool                                    `json:"primary,omitempty"`
	IPConfigurations *[]VirtualMachineScaleSetIPConfiguration `json:"ipConfigurations,omitempty"`
}

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

type VirtualMachineScaleSetNetworkProfile

type VirtualMachineScaleSetNetworkProfile struct {
	NetworkInterfaceConfigurations *[]VirtualMachineScaleSetNetworkConfiguration `json:"networkInterfaceConfigurations,omitempty"`
}

VirtualMachineScaleSetNetworkProfile is describes a virtual machine scale set network profile.

type VirtualMachineScaleSetOSDisk

type VirtualMachineScaleSetOSDisk struct {
	Name          *string                                      `json:"name,omitempty"`
	Caching       CachingTypes                                 `json:"caching,omitempty"`
	CreateOption  DiskCreateOptionTypes                        `json:"createOption,omitempty"`
	OsType        OperatingSystemTypes                         `json:"osType,omitempty"`
	Image         *VirtualHardDisk                             `json:"image,omitempty"`
	VhdContainers *[]string                                    `json:"vhdContainers,omitempty"`
	ManagedDisk   *VirtualMachineScaleSetManagedDiskParameters `json:"managedDisk,omitempty"`
}

VirtualMachineScaleSetOSDisk is describes a virtual machine scale set operating system disk.

type VirtualMachineScaleSetOSProfile

type VirtualMachineScaleSetOSProfile struct {
	ComputerNamePrefix   *string               `json:"computerNamePrefix,omitempty"`
	AdminUsername        *string               `json:"adminUsername,omitempty"`
	AdminPassword        *string               `json:"adminPassword,omitempty"`
	CustomData           *string               `json:"customData,omitempty"`
	WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"`
	LinuxConfiguration   *LinuxConfiguration   `json:"linuxConfiguration,omitempty"`
	Secrets              *[]VaultSecretGroup   `json:"secrets,omitempty"`
}

VirtualMachineScaleSetOSProfile is describes a virtual machine scale set OS profile.

type VirtualMachineScaleSetProperties

type VirtualMachineScaleSetProperties struct {
	UpgradePolicy         *UpgradePolicy                   `json:"upgradePolicy,omitempty"`
	VirtualMachineProfile *VirtualMachineScaleSetVMProfile `json:"virtualMachineProfile,omitempty"`
	ProvisioningState     *string                          `json:"provisioningState,omitempty"`
	Overprovision         *bool                            `json:"overprovision,omitempty"`
	SinglePlacementGroup  *bool                            `json:"singlePlacementGroup,omitempty"`
}

VirtualMachineScaleSetProperties is describes the properties of a Virtual Machine Scale Set.

type VirtualMachineScaleSetSku

type VirtualMachineScaleSetSku struct {
	ResourceType *string                            `json:"resourceType,omitempty"`
	Sku          *Sku                               `json:"sku,omitempty"`
	Capacity     *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"`
}

VirtualMachineScaleSetSku is describes an available virtual machine scale set sku.

type VirtualMachineScaleSetSkuCapacity

type VirtualMachineScaleSetSkuCapacity struct {
	Minimum         *int64                             `json:"minimum,omitempty"`
	Maximum         *int64                             `json:"maximum,omitempty"`
	DefaultCapacity *int64                             `json:"defaultCapacity,omitempty"`
	ScaleType       VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"`
}

VirtualMachineScaleSetSkuCapacity is describes scaling information of a sku.

type VirtualMachineScaleSetSkuScaleType

type VirtualMachineScaleSetSkuScaleType string

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

const (
	// VirtualMachineScaleSetSkuScaleTypeAutomatic specifies the virtual
	// machine scale set sku scale type automatic state for virtual machine
	// scale set sku scale type.
	VirtualMachineScaleSetSkuScaleTypeAutomatic VirtualMachineScaleSetSkuScaleType = "Automatic"
	// VirtualMachineScaleSetSkuScaleTypeNone specifies the virtual machine
	// scale set sku scale type none state for virtual machine scale set sku
	// scale type.
	VirtualMachineScaleSetSkuScaleTypeNone VirtualMachineScaleSetSkuScaleType = "None"
)

type VirtualMachineScaleSetStorageProfile

type VirtualMachineScaleSetStorageProfile struct {
	ImageReference *ImageReference                   `json:"imageReference,omitempty"`
	OsDisk         *VirtualMachineScaleSetOSDisk     `json:"osDisk,omitempty"`
	DataDisks      *[]VirtualMachineScaleSetDataDisk `json:"dataDisks,omitempty"`
}

VirtualMachineScaleSetStorageProfile is describes a virtual machine scale set storage profile.

type VirtualMachineScaleSetVM

type VirtualMachineScaleSetVM struct {
	autorest.Response                   `json:"-"`
	ID                                  *string             `json:"id,omitempty"`
	Name                                *string             `json:"name,omitempty"`
	Type                                *string             `json:"type,omitempty"`
	Location                            *string             `json:"location,omitempty"`
	Tags                                *map[string]*string `json:"tags,omitempty"`
	InstanceID                          *string             `json:"instanceId,omitempty"`
	Sku                                 *Sku                `json:"sku,omitempty"`
	*VirtualMachineScaleSetVMProperties `json:"properties,omitempty"`
	Plan                                *Plan                      `json:"plan,omitempty"`
	Resources                           *[]VirtualMachineExtension `json:"resources,omitempty"`
}

VirtualMachineScaleSetVM is describes a virtual machine scale set virtual machine.

type VirtualMachineScaleSetVMExtensionsSummary

type VirtualMachineScaleSetVMExtensionsSummary struct {
	Name            *string                          `json:"name,omitempty"`
	StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"`
}

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

type VirtualMachineScaleSetVMInstanceIDs

type VirtualMachineScaleSetVMInstanceIDs struct {
	InstanceIds *[]string `json:"instanceIds,omitempty"`
}

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

type VirtualMachineScaleSetVMInstanceRequiredIDs

type VirtualMachineScaleSetVMInstanceRequiredIDs struct {
	InstanceIds *[]string `json:"instanceIds,omitempty"`
}

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

type VirtualMachineScaleSetVMInstanceView

type VirtualMachineScaleSetVMInstanceView struct {
	autorest.Response    `json:"-"`
	PlatformUpdateDomain *int32                                 `json:"platformUpdateDomain,omitempty"`
	PlatformFaultDomain  *int32                                 `json:"platformFaultDomain,omitempty"`
	RdpThumbPrint        *string                                `json:"rdpThumbPrint,omitempty"`
	VMAgent              *VirtualMachineAgentInstanceView       `json:"vmAgent,omitempty"`
	Disks                *[]DiskInstanceView                    `json:"disks,omitempty"`
	Extensions           *[]VirtualMachineExtensionInstanceView `json:"extensions,omitempty"`
	BootDiagnostics      *BootDiagnosticsInstanceView           `json:"bootDiagnostics,omitempty"`
	Statuses             *[]InstanceViewStatus                  `json:"statuses,omitempty"`
	PlacementGroupID     *string                                `json:"placementGroupId,omitempty"`
}

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

type VirtualMachineScaleSetVMListResult

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

VirtualMachineScaleSetVMListResult is the List Virtual Machine Scale Set VMs operation response.

func (VirtualMachineScaleSetVMListResult) VirtualMachineScaleSetVMListResultPreparer

func (client VirtualMachineScaleSetVMListResult) VirtualMachineScaleSetVMListResultPreparer() (*http.Request, error)

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

type VirtualMachineScaleSetVMProfile

type VirtualMachineScaleSetVMProfile struct {
	OsProfile        *VirtualMachineScaleSetOSProfile        `json:"osProfile,omitempty"`
	StorageProfile   *VirtualMachineScaleSetStorageProfile   `json:"storageProfile,omitempty"`
	NetworkProfile   *VirtualMachineScaleSetNetworkProfile   `json:"networkProfile,omitempty"`
	ExtensionProfile *VirtualMachineScaleSetExtensionProfile `json:"extensionProfile,omitempty"`
}

VirtualMachineScaleSetVMProfile is describes a virtual machine scale set virtual machine profile.

type VirtualMachineScaleSetVMProperties

type VirtualMachineScaleSetVMProperties struct {
	LatestModelApplied *bool                       `json:"latestModelApplied,omitempty"`
	VMID               *string                     `json:"vmId,omitempty"`
	InstanceView       *VirtualMachineInstanceView `json:"instanceView,omitempty"`
	HardwareProfile    *HardwareProfile            `json:"hardwareProfile,omitempty"`
	StorageProfile     *StorageProfile             `json:"storageProfile,omitempty"`
	OsProfile          *OSProfile                  `json:"osProfile,omitempty"`
	NetworkProfile     *NetworkProfile             `json:"networkProfile,omitempty"`
	DiagnosticsProfile *DiagnosticsProfile         `json:"diagnosticsProfile,omitempty"`
	AvailabilitySet    *SubResource                `json:"availabilitySet,omitempty"`
	ProvisioningState  *string                     `json:"provisioningState,omitempty"`
	LicenseType        *string                     `json:"licenseType,omitempty"`
}

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

type VirtualMachineScaleSetVMsClient

type VirtualMachineScaleSetVMsClient struct {
	ManagementClient
}

VirtualMachineScaleSetVMsClient is the the Compute Management Client.

func NewVirtualMachineScaleSetVMsClient

func NewVirtualMachineScaleSetVMsClient(subscriptionID string) VirtualMachineScaleSetVMsClient

NewVirtualMachineScaleSetVMsClient creates an instance of the VirtualMachineScaleSetVMsClient client.

func NewVirtualMachineScaleSetVMsClientWithBaseURI

func NewVirtualMachineScaleSetVMsClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineScaleSetVMsClient

NewVirtualMachineScaleSetVMsClientWithBaseURI creates an instance of the VirtualMachineScaleSetVMsClient client.

func (VirtualMachineScaleSetVMsClient) Deallocate

func (client VirtualMachineScaleSetVMsClient) Deallocate(resourceGroupName string, vmScaleSetName string, instanceID string, cancel <-chan struct{}) (result autorest.Response, 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. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set. instanceID is the instance ID of the virtual machine.

func (VirtualMachineScaleSetVMsClient) DeallocatePreparer

func (client VirtualMachineScaleSetVMsClient) DeallocatePreparer(resourceGroupName string, vmScaleSetName string, instanceID string, cancel <-chan struct{}) (*http.Request, error)

DeallocatePreparer prepares the Deallocate request.

func (VirtualMachineScaleSetVMsClient) DeallocateResponder

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

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

func (VirtualMachineScaleSetVMsClient) DeallocateSender

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

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

func (VirtualMachineScaleSetVMsClient) Delete

func (client VirtualMachineScaleSetVMsClient) Delete(resourceGroupName string, vmScaleSetName string, instanceID string, cancel <-chan struct{}) (result autorest.Response, err error)

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

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set. instanceID is the instance ID of the virtual machine.

func (VirtualMachineScaleSetVMsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (VirtualMachineScaleSetVMsClient) DeleteResponder

func (client VirtualMachineScaleSetVMsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

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

func (VirtualMachineScaleSetVMsClient) DeleteSender

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

func (client VirtualMachineScaleSetVMsClient) Get(resourceGroupName string, vmScaleSetName string, instanceID string) (result VirtualMachineScaleSetVM, err error)

Get gets a virtual machine from a VM scale set.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set. instanceID is the instance ID of the virtual machine.

func (VirtualMachineScaleSetVMsClient) GetInstanceView

func (client VirtualMachineScaleSetVMsClient) GetInstanceView(resourceGroupName string, vmScaleSetName string, instanceID string) (result VirtualMachineScaleSetVMInstanceView, err error)

GetInstanceView gets the status of a virtual machine from a VM scale set.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set. instanceID is the instance ID of the virtual machine.

func (VirtualMachineScaleSetVMsClient) GetInstanceViewPreparer

func (client VirtualMachineScaleSetVMsClient) GetInstanceViewPreparer(resourceGroupName string, vmScaleSetName string, instanceID string) (*http.Request, error)

GetInstanceViewPreparer prepares the GetInstanceView request.

func (VirtualMachineScaleSetVMsClient) GetInstanceViewResponder

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

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

func (client VirtualMachineScaleSetVMsClient) GetPreparer(resourceGroupName string, vmScaleSetName string, instanceID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualMachineScaleSetVMsClient) GetResponder

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

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

func (client VirtualMachineScaleSetVMsClient) List(resourceGroupName string, virtualMachineScaleSetName string, filter string, selectParameter string, expand string) (result VirtualMachineScaleSetVMListResult, err error)

List gets a list of all virtual machines in a VM scale sets.

resourceGroupName is the name of the resource group. virtualMachineScaleSetName is the name of the VM scale set. filter is the filter to apply to the operation. selectParameter is the list parameters. expand is the expand expression to apply to the operation.

func (VirtualMachineScaleSetVMsClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (VirtualMachineScaleSetVMsClient) ListPreparer

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

ListPreparer prepares the List request.

func (VirtualMachineScaleSetVMsClient) ListResponder

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

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

func (client VirtualMachineScaleSetVMsClient) PowerOff(resourceGroupName string, vmScaleSetName string, instanceID string, cancel <-chan struct{}) (result autorest.Response, 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. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set. instanceID is the instance ID of the virtual machine.

func (VirtualMachineScaleSetVMsClient) PowerOffPreparer

func (client VirtualMachineScaleSetVMsClient) PowerOffPreparer(resourceGroupName string, vmScaleSetName string, instanceID string, cancel <-chan struct{}) (*http.Request, error)

PowerOffPreparer prepares the PowerOff request.

func (VirtualMachineScaleSetVMsClient) PowerOffResponder

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

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

func (VirtualMachineScaleSetVMsClient) PowerOffSender

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

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

func (VirtualMachineScaleSetVMsClient) Reimage

func (client VirtualMachineScaleSetVMsClient) Reimage(resourceGroupName string, vmScaleSetName string, instanceID string, cancel <-chan struct{}) (result autorest.Response, err error)

Reimage reimages (upgrade the operating system) a specific virtual machine in a VM scale set. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set. instanceID is the instance ID of the virtual machine.

func (VirtualMachineScaleSetVMsClient) ReimageAll

func (client VirtualMachineScaleSetVMsClient) ReimageAll(resourceGroupName string, vmScaleSetName string, instanceID string, cancel <-chan struct{}) (result autorest.Response, err error)

ReimageAll allows you to re-image all the disks ( including data disks ) in the a virtual machine scale set instance. This operation is only supported for managed disks. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set. instanceID is the instance ID of the virtual machine.

func (VirtualMachineScaleSetVMsClient) ReimageAllPreparer

func (client VirtualMachineScaleSetVMsClient) ReimageAllPreparer(resourceGroupName string, vmScaleSetName string, instanceID string, cancel <-chan struct{}) (*http.Request, error)

ReimageAllPreparer prepares the ReimageAll request.

func (VirtualMachineScaleSetVMsClient) ReimageAllResponder

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

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

func (VirtualMachineScaleSetVMsClient) ReimageAllSender

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

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

func (VirtualMachineScaleSetVMsClient) ReimagePreparer

func (client VirtualMachineScaleSetVMsClient) ReimagePreparer(resourceGroupName string, vmScaleSetName string, instanceID string, cancel <-chan struct{}) (*http.Request, error)

ReimagePreparer prepares the Reimage request.

func (VirtualMachineScaleSetVMsClient) ReimageResponder

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

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

func (VirtualMachineScaleSetVMsClient) ReimageSender

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

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

func (VirtualMachineScaleSetVMsClient) Restart

func (client VirtualMachineScaleSetVMsClient) Restart(resourceGroupName string, vmScaleSetName string, instanceID string, cancel <-chan struct{}) (result autorest.Response, err error)

Restart restarts a virtual machine in a VM scale set. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set. instanceID is the instance ID of the virtual machine.

func (VirtualMachineScaleSetVMsClient) RestartPreparer

func (client VirtualMachineScaleSetVMsClient) RestartPreparer(resourceGroupName string, vmScaleSetName string, instanceID string, cancel <-chan struct{}) (*http.Request, error)

RestartPreparer prepares the Restart request.

func (VirtualMachineScaleSetVMsClient) RestartResponder

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

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

func (VirtualMachineScaleSetVMsClient) RestartSender

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

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

func (VirtualMachineScaleSetVMsClient) Start

func (client VirtualMachineScaleSetVMsClient) Start(resourceGroupName string, vmScaleSetName string, instanceID string, cancel <-chan struct{}) (result autorest.Response, err error)

Start starts a virtual machine in a VM scale set. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set. instanceID is the instance ID of the virtual machine.

func (VirtualMachineScaleSetVMsClient) StartPreparer

func (client VirtualMachineScaleSetVMsClient) StartPreparer(resourceGroupName string, vmScaleSetName string, instanceID string, cancel <-chan struct{}) (*http.Request, error)

StartPreparer prepares the Start request.

func (VirtualMachineScaleSetVMsClient) StartResponder

func (client VirtualMachineScaleSetVMsClient) StartResponder(resp *http.Response) (result autorest.Response, err error)

StartResponder handles the response to the Start request. The method always closes the http.Response Body.

func (VirtualMachineScaleSetVMsClient) StartSender

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

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

type VirtualMachineScaleSetsClient

type VirtualMachineScaleSetsClient struct {
	ManagementClient
}

VirtualMachineScaleSetsClient is the the Compute Management Client.

func NewVirtualMachineScaleSetsClient

func NewVirtualMachineScaleSetsClient(subscriptionID string) VirtualMachineScaleSetsClient

NewVirtualMachineScaleSetsClient creates an instance of the VirtualMachineScaleSetsClient client.

func NewVirtualMachineScaleSetsClientWithBaseURI

func NewVirtualMachineScaleSetsClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineScaleSetsClient

NewVirtualMachineScaleSetsClientWithBaseURI creates an instance of the VirtualMachineScaleSetsClient client.

func (VirtualMachineScaleSetsClient) CreateOrUpdate

func (client VirtualMachineScaleSetsClient) CreateOrUpdate(resourceGroupName string, name string, parameters VirtualMachineScaleSet, cancel <-chan struct{}) (result autorest.Response, err error)

CreateOrUpdate create or update a VM scale set. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. name is the name of the VM scale set to create or update. parameters is the scale set object.

func (VirtualMachineScaleSetsClient) CreateOrUpdatePreparer

func (client VirtualMachineScaleSetsClient) CreateOrUpdatePreparer(resourceGroupName string, name string, parameters VirtualMachineScaleSet, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VirtualMachineScaleSetsClient) CreateOrUpdateResponder

func (client VirtualMachineScaleSetsClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (VirtualMachineScaleSetsClient) CreateOrUpdateSender

func (client VirtualMachineScaleSetsClient) 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 (VirtualMachineScaleSetsClient) Deallocate

func (client VirtualMachineScaleSetsClient) Deallocate(resourceGroupName string, vmScaleSetName string, vmInstanceIDs *VirtualMachineScaleSetVMInstanceIDs, cancel <-chan struct{}) (result autorest.Response, err error)

Deallocate deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set. vmInstanceIDs is a list of virtual machine instance IDs from the VM scale set.

func (VirtualMachineScaleSetsClient) DeallocatePreparer

func (client VirtualMachineScaleSetsClient) DeallocatePreparer(resourceGroupName string, vmScaleSetName string, vmInstanceIDs *VirtualMachineScaleSetVMInstanceIDs, cancel <-chan struct{}) (*http.Request, error)

DeallocatePreparer prepares the Deallocate request.

func (VirtualMachineScaleSetsClient) DeallocateResponder

func (client VirtualMachineScaleSetsClient) DeallocateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (VirtualMachineScaleSetsClient) DeallocateSender

func (client VirtualMachineScaleSetsClient) DeallocateSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachineScaleSetsClient) Delete

func (client VirtualMachineScaleSetsClient) Delete(resourceGroupName string, vmScaleSetName string, cancel <-chan struct{}) (result autorest.Response, err error)

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

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set.

func (VirtualMachineScaleSetsClient) DeleteInstances

func (client VirtualMachineScaleSetsClient) DeleteInstances(resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, cancel <-chan struct{}) (result autorest.Response, err error)

DeleteInstances deletes virtual machines in a VM scale set. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set. vmInstanceIDs is a list of virtual machine instance IDs from the VM scale set.

func (VirtualMachineScaleSetsClient) DeleteInstancesPreparer

func (client VirtualMachineScaleSetsClient) DeleteInstancesPreparer(resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, cancel <-chan struct{}) (*http.Request, error)

DeleteInstancesPreparer prepares the DeleteInstances request.

func (VirtualMachineScaleSetsClient) DeleteInstancesResponder

func (client VirtualMachineScaleSetsClient) DeleteInstancesResponder(resp *http.Response) (result autorest.Response, err error)

DeleteInstancesResponder handles the response to the DeleteInstances request. The method always closes the http.Response Body.

func (VirtualMachineScaleSetsClient) DeleteInstancesSender

func (client VirtualMachineScaleSetsClient) DeleteInstancesSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachineScaleSetsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (VirtualMachineScaleSetsClient) DeleteResponder

func (client VirtualMachineScaleSetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

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

func (VirtualMachineScaleSetsClient) DeleteSender

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

func (client VirtualMachineScaleSetsClient) Get(resourceGroupName string, vmScaleSetName string) (result VirtualMachineScaleSet, err error)

Get display information about a virtual machine scale set.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set.

func (VirtualMachineScaleSetsClient) GetInstanceView

func (client VirtualMachineScaleSetsClient) GetInstanceView(resourceGroupName string, vmScaleSetName string) (result VirtualMachineScaleSetInstanceView, err error)

GetInstanceView gets the status of a VM scale set instance.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set.

func (VirtualMachineScaleSetsClient) GetInstanceViewPreparer

func (client VirtualMachineScaleSetsClient) GetInstanceViewPreparer(resourceGroupName string, vmScaleSetName string) (*http.Request, error)

GetInstanceViewPreparer prepares the GetInstanceView request.

func (VirtualMachineScaleSetsClient) GetInstanceViewResponder

func (client VirtualMachineScaleSetsClient) GetInstanceViewResponder(resp *http.Response) (result VirtualMachineScaleSetInstanceView, err error)

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

func (VirtualMachineScaleSetsClient) GetInstanceViewSender

func (client VirtualMachineScaleSetsClient) 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 (VirtualMachineScaleSetsClient) GetPreparer

func (client VirtualMachineScaleSetsClient) GetPreparer(resourceGroupName string, vmScaleSetName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualMachineScaleSetsClient) GetResponder

func (client VirtualMachineScaleSetsClient) GetResponder(resp *http.Response) (result VirtualMachineScaleSet, err error)

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

func (VirtualMachineScaleSetsClient) GetSender

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

func (client VirtualMachineScaleSetsClient) List(resourceGroupName string) (result VirtualMachineScaleSetListResult, err error)

List gets a list of all VM scale sets under a resource group.

resourceGroupName is the name of the resource group.

func (VirtualMachineScaleSetsClient) ListAll

ListAll gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is not null to fetch all the VM Scale Sets.

func (VirtualMachineScaleSetsClient) ListAllNextResults

ListAllNextResults retrieves the next set of results, if any.

func (VirtualMachineScaleSetsClient) ListAllPreparer

func (client VirtualMachineScaleSetsClient) ListAllPreparer() (*http.Request, error)

ListAllPreparer prepares the ListAll request.

func (VirtualMachineScaleSetsClient) ListAllResponder

func (client VirtualMachineScaleSetsClient) ListAllResponder(resp *http.Response) (result VirtualMachineScaleSetListWithLinkResult, err error)

ListAllResponder handles the response to the ListAll request. The method always closes the http.Response Body.

func (VirtualMachineScaleSetsClient) ListAllSender

func (client VirtualMachineScaleSetsClient) ListAllSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachineScaleSetsClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (VirtualMachineScaleSetsClient) ListPreparer

func (client VirtualMachineScaleSetsClient) ListPreparer(resourceGroupName string) (*http.Request, error)

ListPreparer prepares the List request.

func (VirtualMachineScaleSetsClient) ListResponder

func (client VirtualMachineScaleSetsClient) ListResponder(resp *http.Response) (result VirtualMachineScaleSetListResult, err error)

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

func (VirtualMachineScaleSetsClient) ListSender

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

func (client VirtualMachineScaleSetsClient) ListSkus(resourceGroupName string, vmScaleSetName string) (result VirtualMachineScaleSetListSkusResult, err error)

ListSkus gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set.

func (VirtualMachineScaleSetsClient) ListSkusNextResults

ListSkusNextResults retrieves the next set of results, if any.

func (VirtualMachineScaleSetsClient) ListSkusPreparer

func (client VirtualMachineScaleSetsClient) ListSkusPreparer(resourceGroupName string, vmScaleSetName string) (*http.Request, error)

ListSkusPreparer prepares the ListSkus request.

func (VirtualMachineScaleSetsClient) ListSkusResponder

func (client VirtualMachineScaleSetsClient) ListSkusResponder(resp *http.Response) (result VirtualMachineScaleSetListSkusResult, err error)

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

func (VirtualMachineScaleSetsClient) ListSkusSender

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

func (VirtualMachineScaleSetsClient) PowerOff

func (client VirtualMachineScaleSetsClient) PowerOff(resourceGroupName string, vmScaleSetName string, vmInstanceIDs *VirtualMachineScaleSetVMInstanceIDs, cancel <-chan struct{}) (result autorest.Response, err error)

PowerOff power off (stop) one or more virtual machines 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. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set. vmInstanceIDs is a list of virtual machine instance IDs from the VM scale set.

func (VirtualMachineScaleSetsClient) PowerOffPreparer

func (client VirtualMachineScaleSetsClient) PowerOffPreparer(resourceGroupName string, vmScaleSetName string, vmInstanceIDs *VirtualMachineScaleSetVMInstanceIDs, cancel <-chan struct{}) (*http.Request, error)

PowerOffPreparer prepares the PowerOff request.

func (VirtualMachineScaleSetsClient) PowerOffResponder

func (client VirtualMachineScaleSetsClient) PowerOffResponder(resp *http.Response) (result autorest.Response, err error)

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

func (VirtualMachineScaleSetsClient) PowerOffSender

func (client VirtualMachineScaleSetsClient) PowerOffSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachineScaleSetsClient) Reimage

func (client VirtualMachineScaleSetsClient) Reimage(resourceGroupName string, vmScaleSetName string, cancel <-chan struct{}) (result autorest.Response, err error)

Reimage reimages (upgrade the operating system) one or more virtual machines in a VM scale set. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set.

func (VirtualMachineScaleSetsClient) ReimageAll

func (client VirtualMachineScaleSetsClient) ReimageAll(resourceGroupName string, vmScaleSetName string, cancel <-chan struct{}) (result autorest.Response, err error)

ReimageAll reimages all the disks ( including data disks ) in the virtual machines in a virtual machine scale set. This operation is only supported for managed disks. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set.

func (VirtualMachineScaleSetsClient) ReimageAllPreparer

func (client VirtualMachineScaleSetsClient) ReimageAllPreparer(resourceGroupName string, vmScaleSetName string, cancel <-chan struct{}) (*http.Request, error)

ReimageAllPreparer prepares the ReimageAll request.

func (VirtualMachineScaleSetsClient) ReimageAllResponder

func (client VirtualMachineScaleSetsClient) ReimageAllResponder(resp *http.Response) (result autorest.Response, err error)

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

func (VirtualMachineScaleSetsClient) ReimageAllSender

func (client VirtualMachineScaleSetsClient) ReimageAllSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachineScaleSetsClient) ReimagePreparer

func (client VirtualMachineScaleSetsClient) ReimagePreparer(resourceGroupName string, vmScaleSetName string, cancel <-chan struct{}) (*http.Request, error)

ReimagePreparer prepares the Reimage request.

func (VirtualMachineScaleSetsClient) ReimageResponder

func (client VirtualMachineScaleSetsClient) ReimageResponder(resp *http.Response) (result autorest.Response, err error)

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

func (VirtualMachineScaleSetsClient) ReimageSender

func (client VirtualMachineScaleSetsClient) ReimageSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachineScaleSetsClient) Restart

func (client VirtualMachineScaleSetsClient) Restart(resourceGroupName string, vmScaleSetName string, vmInstanceIDs *VirtualMachineScaleSetVMInstanceIDs, cancel <-chan struct{}) (result autorest.Response, err error)

Restart restarts one or more virtual machines in a VM scale set. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set. vmInstanceIDs is a list of virtual machine instance IDs from the VM scale set.

func (VirtualMachineScaleSetsClient) RestartPreparer

func (client VirtualMachineScaleSetsClient) RestartPreparer(resourceGroupName string, vmScaleSetName string, vmInstanceIDs *VirtualMachineScaleSetVMInstanceIDs, cancel <-chan struct{}) (*http.Request, error)

RestartPreparer prepares the Restart request.

func (VirtualMachineScaleSetsClient) RestartResponder

func (client VirtualMachineScaleSetsClient) RestartResponder(resp *http.Response) (result autorest.Response, err error)

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

func (VirtualMachineScaleSetsClient) RestartSender

func (client VirtualMachineScaleSetsClient) RestartSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachineScaleSetsClient) Start

func (client VirtualMachineScaleSetsClient) Start(resourceGroupName string, vmScaleSetName string, vmInstanceIDs *VirtualMachineScaleSetVMInstanceIDs, cancel <-chan struct{}) (result autorest.Response, err error)

Start starts one or more virtual machines in a VM scale set. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set. vmInstanceIDs is a list of virtual machine instance IDs from the VM scale set.

func (VirtualMachineScaleSetsClient) StartPreparer

func (client VirtualMachineScaleSetsClient) StartPreparer(resourceGroupName string, vmScaleSetName string, vmInstanceIDs *VirtualMachineScaleSetVMInstanceIDs, cancel <-chan struct{}) (*http.Request, error)

StartPreparer prepares the Start request.

func (VirtualMachineScaleSetsClient) StartResponder

func (client VirtualMachineScaleSetsClient) StartResponder(resp *http.Response) (result autorest.Response, err error)

StartResponder handles the response to the Start request. The method always closes the http.Response Body.

func (VirtualMachineScaleSetsClient) StartSender

func (client VirtualMachineScaleSetsClient) StartSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachineScaleSetsClient) UpdateInstances

func (client VirtualMachineScaleSetsClient) UpdateInstances(resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, cancel <-chan struct{}) (result autorest.Response, err error)

UpdateInstances upgrades one or more virtual machines to the latest SKU set in the VM scale set model. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmScaleSetName is the name of the VM scale set. vmInstanceIDs is a list of virtual machine instance IDs from the VM scale set.

func (VirtualMachineScaleSetsClient) UpdateInstancesPreparer

func (client VirtualMachineScaleSetsClient) UpdateInstancesPreparer(resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, cancel <-chan struct{}) (*http.Request, error)

UpdateInstancesPreparer prepares the UpdateInstances request.

func (VirtualMachineScaleSetsClient) UpdateInstancesResponder

func (client VirtualMachineScaleSetsClient) UpdateInstancesResponder(resp *http.Response) (result autorest.Response, err error)

UpdateInstancesResponder handles the response to the UpdateInstances request. The method always closes the http.Response Body.

func (VirtualMachineScaleSetsClient) UpdateInstancesSender

func (client VirtualMachineScaleSetsClient) UpdateInstancesSender(req *http.Request) (*http.Response, error)

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

type VirtualMachineSize

type VirtualMachineSize struct {
	Name                 *string `json:"name,omitempty"`
	NumberOfCores        *int32  `json:"numberOfCores,omitempty"`
	OsDiskSizeInMB       *int32  `json:"osDiskSizeInMB,omitempty"`
	ResourceDiskSizeInMB *int32  `json:"resourceDiskSizeInMB,omitempty"`
	MemoryInMB           *int32  `json:"memoryInMB,omitempty"`
	MaxDataDiskCount     *int32  `json:"maxDataDiskCount,omitempty"`
}

VirtualMachineSize is describes the properties of a VM size.

type VirtualMachineSizeListResult

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

VirtualMachineSizeListResult is the List Virtual Machine operation response.

type VirtualMachineSizeTypes

type VirtualMachineSizeTypes string

VirtualMachineSizeTypes enumerates the values for virtual machine size types.

const (
	// BasicA0 specifies the basic a0 state for virtual machine size types.
	BasicA0 VirtualMachineSizeTypes = "Basic_A0"
	// BasicA1 specifies the basic a1 state for virtual machine size types.
	BasicA1 VirtualMachineSizeTypes = "Basic_A1"
	// BasicA2 specifies the basic a2 state for virtual machine size types.
	BasicA2 VirtualMachineSizeTypes = "Basic_A2"
	// BasicA3 specifies the basic a3 state for virtual machine size types.
	BasicA3 VirtualMachineSizeTypes = "Basic_A3"
	// BasicA4 specifies the basic a4 state for virtual machine size types.
	BasicA4 VirtualMachineSizeTypes = "Basic_A4"
	// StandardA0 specifies the standard a0 state for virtual machine size
	// types.
	StandardA0 VirtualMachineSizeTypes = "Standard_A0"
	// StandardA1 specifies the standard a1 state for virtual machine size
	// types.
	StandardA1 VirtualMachineSizeTypes = "Standard_A1"
	// StandardA10 specifies the standard a10 state for virtual machine size
	// types.
	StandardA10 VirtualMachineSizeTypes = "Standard_A10"
	// StandardA11 specifies the standard a11 state for virtual machine size
	// types.
	StandardA11 VirtualMachineSizeTypes = "Standard_A11"
	// StandardA2 specifies the standard a2 state for virtual machine size
	// types.
	StandardA2 VirtualMachineSizeTypes = "Standard_A2"
	// StandardA3 specifies the standard a3 state for virtual machine size
	// types.
	StandardA3 VirtualMachineSizeTypes = "Standard_A3"
	// StandardA4 specifies the standard a4 state for virtual machine size
	// types.
	StandardA4 VirtualMachineSizeTypes = "Standard_A4"
	// StandardA5 specifies the standard a5 state for virtual machine size
	// types.
	StandardA5 VirtualMachineSizeTypes = "Standard_A5"
	// StandardA6 specifies the standard a6 state for virtual machine size
	// types.
	StandardA6 VirtualMachineSizeTypes = "Standard_A6"
	// StandardA7 specifies the standard a7 state for virtual machine size
	// types.
	StandardA7 VirtualMachineSizeTypes = "Standard_A7"
	// StandardA8 specifies the standard a8 state for virtual machine size
	// types.
	StandardA8 VirtualMachineSizeTypes = "Standard_A8"
	// StandardA9 specifies the standard a9 state for virtual machine size
	// types.
	StandardA9 VirtualMachineSizeTypes = "Standard_A9"
	// StandardD1 specifies the standard d1 state for virtual machine size
	// types.
	StandardD1 VirtualMachineSizeTypes = "Standard_D1"
	// StandardD11 specifies the standard d11 state for virtual machine size
	// types.
	StandardD11 VirtualMachineSizeTypes = "Standard_D11"
	// StandardD11V2 specifies the standard d11v2 state for virtual machine
	// size types.
	StandardD11V2 VirtualMachineSizeTypes = "Standard_D11_v2"
	// StandardD12 specifies the standard d12 state for virtual machine size
	// types.
	StandardD12 VirtualMachineSizeTypes = "Standard_D12"
	// StandardD12V2 specifies the standard d12v2 state for virtual machine
	// size types.
	StandardD12V2 VirtualMachineSizeTypes = "Standard_D12_v2"
	// StandardD13 specifies the standard d13 state for virtual machine size
	// types.
	StandardD13 VirtualMachineSizeTypes = "Standard_D13"
	// StandardD13V2 specifies the standard d13v2 state for virtual machine
	// size types.
	StandardD13V2 VirtualMachineSizeTypes = "Standard_D13_v2"
	// StandardD14 specifies the standard d14 state for virtual machine size
	// types.
	StandardD14 VirtualMachineSizeTypes = "Standard_D14"
	// StandardD14V2 specifies the standard d14v2 state for virtual machine
	// size types.
	StandardD14V2 VirtualMachineSizeTypes = "Standard_D14_v2"
	// StandardD15V2 specifies the standard d15v2 state for virtual machine
	// size types.
	StandardD15V2 VirtualMachineSizeTypes = "Standard_D15_v2"
	// StandardD1V2 specifies the standard d1v2 state for virtual machine size
	// types.
	StandardD1V2 VirtualMachineSizeTypes = "Standard_D1_v2"
	// StandardD2 specifies the standard d2 state for virtual machine size
	// types.
	StandardD2 VirtualMachineSizeTypes = "Standard_D2"
	// StandardD2V2 specifies the standard d2v2 state for virtual machine size
	// types.
	StandardD2V2 VirtualMachineSizeTypes = "Standard_D2_v2"
	// StandardD3 specifies the standard d3 state for virtual machine size
	// types.
	StandardD3 VirtualMachineSizeTypes = "Standard_D3"
	// StandardD3V2 specifies the standard d3v2 state for virtual machine size
	// types.
	StandardD3V2 VirtualMachineSizeTypes = "Standard_D3_v2"
	// StandardD4 specifies the standard d4 state for virtual machine size
	// types.
	StandardD4 VirtualMachineSizeTypes = "Standard_D4"
	// StandardD4V2 specifies the standard d4v2 state for virtual machine size
	// types.
	StandardD4V2 VirtualMachineSizeTypes = "Standard_D4_v2"
	// StandardD5V2 specifies the standard d5v2 state for virtual machine size
	// types.
	StandardD5V2 VirtualMachineSizeTypes = "Standard_D5_v2"
	// StandardDS1 specifies the standard ds1 state for virtual machine size
	// types.
	StandardDS1 VirtualMachineSizeTypes = "Standard_DS1"
	// StandardDS11 specifies the standard ds11 state for virtual machine size
	// types.
	StandardDS11 VirtualMachineSizeTypes = "Standard_DS11"
	// StandardDS11V2 specifies the standard ds11v2 state for virtual machine
	// size types.
	StandardDS11V2 VirtualMachineSizeTypes = "Standard_DS11_v2"
	// StandardDS12 specifies the standard ds12 state for virtual machine size
	// types.
	StandardDS12 VirtualMachineSizeTypes = "Standard_DS12"
	// StandardDS12V2 specifies the standard ds12v2 state for virtual machine
	// size types.
	StandardDS12V2 VirtualMachineSizeTypes = "Standard_DS12_v2"
	// StandardDS13 specifies the standard ds13 state for virtual machine size
	// types.
	StandardDS13 VirtualMachineSizeTypes = "Standard_DS13"
	// StandardDS13V2 specifies the standard ds13v2 state for virtual machine
	// size types.
	StandardDS13V2 VirtualMachineSizeTypes = "Standard_DS13_v2"
	// StandardDS14 specifies the standard ds14 state for virtual machine size
	// types.
	StandardDS14 VirtualMachineSizeTypes = "Standard_DS14"
	// StandardDS14V2 specifies the standard ds14v2 state for virtual machine
	// size types.
	StandardDS14V2 VirtualMachineSizeTypes = "Standard_DS14_v2"
	// StandardDS15V2 specifies the standard ds15v2 state for virtual machine
	// size types.
	StandardDS15V2 VirtualMachineSizeTypes = "Standard_DS15_v2"
	// StandardDS1V2 specifies the standard ds1v2 state for virtual machine
	// size types.
	StandardDS1V2 VirtualMachineSizeTypes = "Standard_DS1_v2"
	// StandardDS2 specifies the standard ds2 state for virtual machine size
	// types.
	StandardDS2 VirtualMachineSizeTypes = "Standard_DS2"
	// StandardDS2V2 specifies the standard ds2v2 state for virtual machine
	// size types.
	StandardDS2V2 VirtualMachineSizeTypes = "Standard_DS2_v2"
	// StandardDS3 specifies the standard ds3 state for virtual machine size
	// types.
	StandardDS3 VirtualMachineSizeTypes = "Standard_DS3"
	// StandardDS3V2 specifies the standard ds3v2 state for virtual machine
	// size types.
	StandardDS3V2 VirtualMachineSizeTypes = "Standard_DS3_v2"
	// StandardDS4 specifies the standard ds4 state for virtual machine size
	// types.
	StandardDS4 VirtualMachineSizeTypes = "Standard_DS4"
	// StandardDS4V2 specifies the standard ds4v2 state for virtual machine
	// size types.
	StandardDS4V2 VirtualMachineSizeTypes = "Standard_DS4_v2"
	// StandardDS5V2 specifies the standard ds5v2 state for virtual machine
	// size types.
	StandardDS5V2 VirtualMachineSizeTypes = "Standard_DS5_v2"
	// StandardG1 specifies the standard g1 state for virtual machine size
	// types.
	StandardG1 VirtualMachineSizeTypes = "Standard_G1"
	// StandardG2 specifies the standard g2 state for virtual machine size
	// types.
	StandardG2 VirtualMachineSizeTypes = "Standard_G2"
	// StandardG3 specifies the standard g3 state for virtual machine size
	// types.
	StandardG3 VirtualMachineSizeTypes = "Standard_G3"
	// StandardG4 specifies the standard g4 state for virtual machine size
	// types.
	StandardG4 VirtualMachineSizeTypes = "Standard_G4"
	// StandardG5 specifies the standard g5 state for virtual machine size
	// types.
	StandardG5 VirtualMachineSizeTypes = "Standard_G5"
	// StandardGS1 specifies the standard gs1 state for virtual machine size
	// types.
	StandardGS1 VirtualMachineSizeTypes = "Standard_GS1"
	// StandardGS2 specifies the standard gs2 state for virtual machine size
	// types.
	StandardGS2 VirtualMachineSizeTypes = "Standard_GS2"
	// StandardGS3 specifies the standard gs3 state for virtual machine size
	// types.
	StandardGS3 VirtualMachineSizeTypes = "Standard_GS3"
	// StandardGS4 specifies the standard gs4 state for virtual machine size
	// types.
	StandardGS4 VirtualMachineSizeTypes = "Standard_GS4"
	// StandardGS5 specifies the standard gs5 state for virtual machine size
	// types.
	StandardGS5 VirtualMachineSizeTypes = "Standard_GS5"
)

type VirtualMachineSizesClient

type VirtualMachineSizesClient struct {
	ManagementClient
}

VirtualMachineSizesClient is the the Compute Management Client.

func NewVirtualMachineSizesClient

func NewVirtualMachineSizesClient(subscriptionID string) VirtualMachineSizesClient

NewVirtualMachineSizesClient creates an instance of the VirtualMachineSizesClient client.

func NewVirtualMachineSizesClientWithBaseURI

func NewVirtualMachineSizesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineSizesClient

NewVirtualMachineSizesClientWithBaseURI creates an instance of the VirtualMachineSizesClient client.

func (VirtualMachineSizesClient) List

func (client VirtualMachineSizesClient) List(location string) (result VirtualMachineSizeListResult, err error)

List lists all available virtual machine sizes for a subscription in a location.

location is the location upon which virtual-machine-sizes is queried.

func (VirtualMachineSizesClient) ListPreparer

func (client VirtualMachineSizesClient) ListPreparer(location string) (*http.Request, error)

ListPreparer prepares the List request.

func (VirtualMachineSizesClient) ListResponder

func (client VirtualMachineSizesClient) ListResponder(resp *http.Response) (result VirtualMachineSizeListResult, err error)

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

func (VirtualMachineSizesClient) ListSender

func (client VirtualMachineSizesClient) 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 VirtualMachineStatusCodeCount

type VirtualMachineStatusCodeCount struct {
	Code  *string `json:"code,omitempty"`
	Count *int32  `json:"count,omitempty"`
}

VirtualMachineStatusCodeCount is the status code and count of the virtual machine scale set instance view status summary.

type VirtualMachinesClient

type VirtualMachinesClient struct {
	ManagementClient
}

VirtualMachinesClient is the the Compute Management Client.

func NewVirtualMachinesClient

func NewVirtualMachinesClient(subscriptionID string) VirtualMachinesClient

NewVirtualMachinesClient creates an instance of the VirtualMachinesClient client.

func NewVirtualMachinesClientWithBaseURI

func NewVirtualMachinesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachinesClient

NewVirtualMachinesClientWithBaseURI creates an instance of the VirtualMachinesClient client.

func (VirtualMachinesClient) Capture

func (client VirtualMachinesClient) Capture(resourceGroupName string, vmName string, parameters VirtualMachineCaptureParameters, cancel <-chan struct{}) (result autorest.Response, err error)

Capture captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmName is the name of the virtual machine. parameters is parameters supplied to the Capture Virtual Machine operation.

func (VirtualMachinesClient) CapturePreparer

func (client VirtualMachinesClient) CapturePreparer(resourceGroupName string, vmName string, parameters VirtualMachineCaptureParameters, cancel <-chan struct{}) (*http.Request, error)

CapturePreparer prepares the Capture request.

func (VirtualMachinesClient) CaptureResponder

func (client VirtualMachinesClient) CaptureResponder(resp *http.Response) (result autorest.Response, err error)

CaptureResponder handles the response to the Capture request. The method always closes the http.Response Body.

func (VirtualMachinesClient) CaptureSender

func (client VirtualMachinesClient) CaptureSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachinesClient) ConvertToManagedDisks

func (client VirtualMachinesClient) ConvertToManagedDisks(resourceGroupName string, vmName string, cancel <-chan struct{}) (result autorest.Response, err error)

ConvertToManagedDisks converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmName is the name of the virtual machine.

func (VirtualMachinesClient) ConvertToManagedDisksPreparer

func (client VirtualMachinesClient) ConvertToManagedDisksPreparer(resourceGroupName string, vmName string, cancel <-chan struct{}) (*http.Request, error)

ConvertToManagedDisksPreparer prepares the ConvertToManagedDisks request.

func (VirtualMachinesClient) ConvertToManagedDisksResponder

func (client VirtualMachinesClient) ConvertToManagedDisksResponder(resp *http.Response) (result autorest.Response, err error)

ConvertToManagedDisksResponder handles the response to the ConvertToManagedDisks request. The method always closes the http.Response Body.

func (VirtualMachinesClient) ConvertToManagedDisksSender

func (client VirtualMachinesClient) ConvertToManagedDisksSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachinesClient) CreateOrUpdate

func (client VirtualMachinesClient) CreateOrUpdate(resourceGroupName string, vmName string, parameters VirtualMachine, cancel <-chan struct{}) (result autorest.Response, err error)

CreateOrUpdate the operation to create or update a virtual machine. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmName is the name of the virtual machine. parameters is parameters supplied to the Create Virtual Machine operation.

func (VirtualMachinesClient) CreateOrUpdatePreparer

func (client VirtualMachinesClient) CreateOrUpdatePreparer(resourceGroupName string, vmName string, parameters VirtualMachine, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VirtualMachinesClient) CreateOrUpdateResponder

func (client VirtualMachinesClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (VirtualMachinesClient) CreateOrUpdateSender

func (client VirtualMachinesClient) 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 (VirtualMachinesClient) Deallocate

func (client VirtualMachinesClient) Deallocate(resourceGroupName string, vmName string, cancel <-chan struct{}) (result autorest.Response, err error)

Deallocate shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmName is the name of the virtual machine.

func (VirtualMachinesClient) DeallocatePreparer

func (client VirtualMachinesClient) DeallocatePreparer(resourceGroupName string, vmName string, cancel <-chan struct{}) (*http.Request, error)

DeallocatePreparer prepares the Deallocate request.

func (VirtualMachinesClient) DeallocateResponder

func (client VirtualMachinesClient) DeallocateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (VirtualMachinesClient) DeallocateSender

func (client VirtualMachinesClient) DeallocateSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachinesClient) Delete

func (client VirtualMachinesClient) Delete(resourceGroupName string, vmName string, cancel <-chan struct{}) (result autorest.Response, err error)

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

resourceGroupName is the name of the resource group. vmName is the name of the virtual machine.

func (VirtualMachinesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (VirtualMachinesClient) DeleteResponder

func (client VirtualMachinesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

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

func (VirtualMachinesClient) DeleteSender

func (client VirtualMachinesClient) 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 (VirtualMachinesClient) Generalize

func (client VirtualMachinesClient) Generalize(resourceGroupName string, vmName string) (result OperationStatusResponse, err error)

Generalize sets the state of the virtual machine to generalized.

resourceGroupName is the name of the resource group. vmName is the name of the virtual machine.

func (VirtualMachinesClient) GeneralizePreparer

func (client VirtualMachinesClient) GeneralizePreparer(resourceGroupName string, vmName string) (*http.Request, error)

GeneralizePreparer prepares the Generalize request.

func (VirtualMachinesClient) GeneralizeResponder

func (client VirtualMachinesClient) GeneralizeResponder(resp *http.Response) (result OperationStatusResponse, err error)

GeneralizeResponder handles the response to the Generalize request. The method always closes the http.Response Body.

func (VirtualMachinesClient) GeneralizeSender

func (client VirtualMachinesClient) GeneralizeSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachinesClient) Get

func (client VirtualMachinesClient) Get(resourceGroupName string, vmName string, expand InstanceViewTypes) (result VirtualMachine, err error)

Get retrieves information about the model view or the instance view of a virtual machine.

resourceGroupName is the name of the resource group. vmName is the name of the virtual machine. expand is the expand expression to apply on the operation.

func (VirtualMachinesClient) GetPreparer

func (client VirtualMachinesClient) GetPreparer(resourceGroupName string, vmName string, expand InstanceViewTypes) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualMachinesClient) GetResponder

func (client VirtualMachinesClient) GetResponder(resp *http.Response) (result VirtualMachine, err error)

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

func (VirtualMachinesClient) GetSender

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

func (client VirtualMachinesClient) List(resourceGroupName string) (result VirtualMachineListResult, err error)

List lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines.

resourceGroupName is the name of the resource group.

func (VirtualMachinesClient) ListAll

func (client VirtualMachinesClient) ListAll() (result VirtualMachineListResult, err error)

ListAll lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines.

func (VirtualMachinesClient) ListAllNextResults

func (client VirtualMachinesClient) ListAllNextResults(lastResults VirtualMachineListResult) (result VirtualMachineListResult, err error)

ListAllNextResults retrieves the next set of results, if any.

func (VirtualMachinesClient) ListAllPreparer

func (client VirtualMachinesClient) ListAllPreparer() (*http.Request, error)

ListAllPreparer prepares the ListAll request.

func (VirtualMachinesClient) ListAllResponder

func (client VirtualMachinesClient) ListAllResponder(resp *http.Response) (result VirtualMachineListResult, err error)

ListAllResponder handles the response to the ListAll request. The method always closes the http.Response Body.

func (VirtualMachinesClient) ListAllSender

func (client VirtualMachinesClient) ListAllSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachinesClient) ListAvailableSizes

func (client VirtualMachinesClient) ListAvailableSizes(resourceGroupName string, vmName string) (result VirtualMachineSizeListResult, err error)

ListAvailableSizes lists all available virtual machine sizes to which the specified virtual machine can be resized.

resourceGroupName is the name of the resource group. vmName is the name of the virtual machine.

func (VirtualMachinesClient) ListAvailableSizesPreparer

func (client VirtualMachinesClient) ListAvailableSizesPreparer(resourceGroupName string, vmName string) (*http.Request, error)

ListAvailableSizesPreparer prepares the ListAvailableSizes request.

func (VirtualMachinesClient) ListAvailableSizesResponder

func (client VirtualMachinesClient) 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 (VirtualMachinesClient) ListAvailableSizesSender

func (client VirtualMachinesClient) 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 (VirtualMachinesClient) ListNextResults

func (client VirtualMachinesClient) ListNextResults(lastResults VirtualMachineListResult) (result VirtualMachineListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (VirtualMachinesClient) ListPreparer

func (client VirtualMachinesClient) ListPreparer(resourceGroupName string) (*http.Request, error)

ListPreparer prepares the List request.

func (VirtualMachinesClient) ListResponder

func (client VirtualMachinesClient) ListResponder(resp *http.Response) (result VirtualMachineListResult, err error)

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

func (VirtualMachinesClient) ListSender

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

func (client VirtualMachinesClient) PowerOff(resourceGroupName string, vmName string, cancel <-chan struct{}) (result autorest.Response, err error)

PowerOff the operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmName is the name of the virtual machine.

func (VirtualMachinesClient) PowerOffPreparer

func (client VirtualMachinesClient) PowerOffPreparer(resourceGroupName string, vmName string, cancel <-chan struct{}) (*http.Request, error)

PowerOffPreparer prepares the PowerOff request.

func (VirtualMachinesClient) PowerOffResponder

func (client VirtualMachinesClient) PowerOffResponder(resp *http.Response) (result autorest.Response, err error)

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

func (VirtualMachinesClient) PowerOffSender

func (client VirtualMachinesClient) PowerOffSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachinesClient) Redeploy

func (client VirtualMachinesClient) Redeploy(resourceGroupName string, vmName string, cancel <-chan struct{}) (result autorest.Response, err error)

Redeploy the operation to redeploy a virtual machine. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmName is the name of the virtual machine.

func (VirtualMachinesClient) RedeployPreparer

func (client VirtualMachinesClient) RedeployPreparer(resourceGroupName string, vmName string, cancel <-chan struct{}) (*http.Request, error)

RedeployPreparer prepares the Redeploy request.

func (VirtualMachinesClient) RedeployResponder

func (client VirtualMachinesClient) RedeployResponder(resp *http.Response) (result autorest.Response, err error)

RedeployResponder handles the response to the Redeploy request. The method always closes the http.Response Body.

func (VirtualMachinesClient) RedeploySender

func (client VirtualMachinesClient) RedeploySender(req *http.Request) (*http.Response, error)

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

func (VirtualMachinesClient) Restart

func (client VirtualMachinesClient) Restart(resourceGroupName string, vmName string, cancel <-chan struct{}) (result autorest.Response, err error)

Restart the operation to restart a virtual machine. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmName is the name of the virtual machine.

func (VirtualMachinesClient) RestartPreparer

func (client VirtualMachinesClient) RestartPreparer(resourceGroupName string, vmName string, cancel <-chan struct{}) (*http.Request, error)

RestartPreparer prepares the Restart request.

func (VirtualMachinesClient) RestartResponder

func (client VirtualMachinesClient) RestartResponder(resp *http.Response) (result autorest.Response, err error)

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

func (VirtualMachinesClient) RestartSender

func (client VirtualMachinesClient) RestartSender(req *http.Request) (*http.Response, error)

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

func (VirtualMachinesClient) Start

func (client VirtualMachinesClient) Start(resourceGroupName string, vmName string, cancel <-chan struct{}) (result autorest.Response, err error)

Start the operation to start a virtual machine. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. vmName is the name of the virtual machine.

func (VirtualMachinesClient) StartPreparer

func (client VirtualMachinesClient) StartPreparer(resourceGroupName string, vmName string, cancel <-chan struct{}) (*http.Request, error)

StartPreparer prepares the Start request.

func (VirtualMachinesClient) StartResponder

func (client VirtualMachinesClient) StartResponder(resp *http.Response) (result autorest.Response, err error)

StartResponder handles the response to the Start request. The method always closes the http.Response Body.

func (VirtualMachinesClient) StartSender

func (client VirtualMachinesClient) StartSender(req *http.Request) (*http.Response, error)

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

type WinRMConfiguration

type WinRMConfiguration struct {
	Listeners *[]WinRMListener `json:"listeners,omitempty"`
}

WinRMConfiguration is describes Windows Remote Management configuration of the VM

type WinRMListener

type WinRMListener struct {
	Protocol       ProtocolTypes `json:"protocol,omitempty"`
	CertificateURL *string       `json:"certificateUrl,omitempty"`
}

WinRMListener is describes Protocol and thumbprint of Windows Remote Management listener

type WindowsConfiguration

type WindowsConfiguration struct {
	ProvisionVMAgent          *bool                        `json:"provisionVMAgent,omitempty"`
	EnableAutomaticUpdates    *bool                        `json:"enableAutomaticUpdates,omitempty"`
	TimeZone                  *string                      `json:"timeZone,omitempty"`
	AdditionalUnattendContent *[]AdditionalUnattendContent `json:"additionalUnattendContent,omitempty"`
	WinRM                     *WinRMConfiguration          `json:"winRM,omitempty"`
}

WindowsConfiguration is describes Windows Configuration of the OS Profile.

Jump to

Keyboard shortcuts

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