compute

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2016 License: MIT, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiVersion     = "2015-06-15"
	DefaultBaseUri = "https://management.azure.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

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"`
}

Gets or sets 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 ApiErrorBase

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

Api error base.

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"`
	Properties        struct {
		PlatformUpdateDomainCount int                  `json:"platformUpdateDomainCount,omitempty"`
		PlatformFaultDomainCount  int                  `json:"platformFaultDomainCount,omitempty"`
		VirtualMachines           []SubResource        `json:"virtualMachines,omitempty"`
		Statuses                  []InstanceViewStatus `json:"statuses,omitempty"`
	} `json:"properties,omitempty"`
}

Create or update Availability Set parameters.

type AvailabilitySetListResult

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

The List Availability Set operation response.

type AvailabilitySetsClient

type AvailabilitySetsClient struct {
	ComputeManagementClient
}

AvailabilitySets Client

func NewAvailabilitySetsClient

func NewAvailabilitySetsClient(subscriptionId string) AvailabilitySetsClient

func NewAvailabilitySetsClientWithBaseUri

func NewAvailabilitySetsClientWithBaseUri(baseUri string, subscriptionId string) AvailabilitySetsClient

func (AvailabilitySetsClient) CreateOrUpdate

func (client AvailabilitySetsClient) CreateOrUpdate(resourceGroupName string, name string, parameters AvailabilitySet) (result AvailabilitySet, ae autorest.Error)

CreateOrUpdate the operation to create or update the availability set.

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

func (AvailabilitySetsClient) CreateOrUpdateRequestPreparer

func (client AvailabilitySetsClient) CreateOrUpdateRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the CreateOrUpdate request.

func (AvailabilitySetsClient) Delete

func (client AvailabilitySetsClient) Delete(resourceGroupName string, availabilitySetName string) (result autorest.Response, ae autorest.Error)

Delete the operation to delete the availability set.

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

func (AvailabilitySetsClient) DeleteRequestPreparer

func (client AvailabilitySetsClient) DeleteRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Delete request.

func (AvailabilitySetsClient) Get

func (client AvailabilitySetsClient) Get(resourceGroupName string, availabilitySetName string) (result AvailabilitySet, ae autorest.Error)

Get the operation to get the availability set.

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

func (AvailabilitySetsClient) GetRequestPreparer

func (client AvailabilitySetsClient) GetRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Get request.

func (AvailabilitySetsClient) List

func (client AvailabilitySetsClient) List(resourceGroupName string) (result AvailabilitySetListResult, ae autorest.Error)

List the operation to list the availability sets.

resourceGroupName is the name of the resource group.

func (AvailabilitySetsClient) ListAvailableSizes

func (client AvailabilitySetsClient) ListAvailableSizes(resourceGroupName string, availabilitySetName string) (result VirtualMachineSizeListResult, ae autorest.Error)

ListAvailableSizes lists virtual-machine-sizes available to be used for an availability set.

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

func (AvailabilitySetsClient) ListAvailableSizesRequestPreparer

func (client AvailabilitySetsClient) ListAvailableSizesRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the ListAvailableSizes request.

func (AvailabilitySetsClient) ListRequestPreparer

func (client AvailabilitySetsClient) ListRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the List request.

func (AvailabilitySetsClient) NewCreateOrUpdateRequest

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

Create the CreateOrUpdate request.

func (AvailabilitySetsClient) NewDeleteRequest

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

Create the Delete request.

func (AvailabilitySetsClient) NewGetRequest

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

Create the Get request.

func (AvailabilitySetsClient) NewListAvailableSizesRequest

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

Create the ListAvailableSizes request.

func (AvailabilitySetsClient) NewListRequest

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

Create the List request.

type CachingTypes

type CachingTypes string
const (
	None      CachingTypes = "None"
	ReadOnly  CachingTypes = "ReadOnly"
	ReadWrite CachingTypes = "ReadWrite"
)

type ComponentNames

type ComponentNames string
const (
	MicrosoftWindowsShellSetup ComponentNames = "Microsoft-Windows-Shell-Setup"
)

type ComputeLongRunningOperationResult

type ComputeLongRunningOperationResult struct {
	autorest.Response `json:"-"`
	OperationId       string                 `json:"operationId,omitempty"`
	Status            ComputeOperationStatus `json:"status,omitempty"`
	StartTime         date.Time              `json:"startTime,omitempty"`
	EndTime           date.Time              `json:"endTime,omitempty"`
	Properties        struct {
		Output map[string]string `json:"output,omitempty"`
	} `json:"properties,omitempty"`
	Error struct {
		Details    []ApiErrorBase `json:"details,omitempty"`
		Innererror struct {
			Exceptiontype string `json:"exceptiontype,omitempty"`
			Errordetail   string `json:"errordetail,omitempty"`
		} `json:"innererror,omitempty"`
		Code    string `json:"code,omitempty"`
		Target  string `json:"target,omitempty"`
		Message string `json:"message,omitempty"`
	} `json:"error,omitempty"`
}

The Compute service response for long-running operations.

type ComputeManagementClient

type ComputeManagementClient struct {
	autorest.Client
	BaseUri        string
	SubscriptionId string
}

func New

func New(subscriptionId string) ComputeManagementClient

func NewWithBaseUri

func NewWithBaseUri(baseUri string, subscriptionId string) ComputeManagementClient

type ComputeOperationStatus

type ComputeOperationStatus string
const (
	ComputeOperationStatusFailed     ComputeOperationStatus = "Failed"
	ComputeOperationStatusInProgress ComputeOperationStatus = "InProgress"
	ComputeOperationStatusPreempted  ComputeOperationStatus = "Preempted"
	ComputeOperationStatusSucceeded  ComputeOperationStatus = "Succeeded"
)

type DataDisk

type DataDisk struct {
	Lun        int    `json:"lun,omitempty"`
	DiskSizeGB int    `json:"diskSizeGB,omitempty"`
	Name       string `json:"name,omitempty"`
	Vhd        struct {
		Uri string `json:"uri,omitempty"`
	} `json:"vhd,omitempty"`
	Image struct {
		Uri string `json:"uri,omitempty"`
	} `json:"image,omitempty"`
	Caching      CachingTypes          `json:"caching,omitempty"`
	CreateOption DiskCreateOptionTypes `json:"createOption,omitempty"`
}

Describes a data disk.

type DataDiskImage

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

Contains the data disk images information.

type DiskCreateOptionTypes

type DiskCreateOptionTypes string
const (
	Attach    DiskCreateOptionTypes = "attach"
	Empty     DiskCreateOptionTypes = "empty"
	FromImage DiskCreateOptionTypes = "fromImage"
)

type DiskInstanceView

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

The instance view of the disk.

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"`
}

Instance view status.

type ListUsagesResult

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

The List Usages operation response.

type NetworkInterfaceReference

type NetworkInterfaceReference struct {
	Id         string `json:"id,omitempty"`
	Properties struct {
		Primary bool `json:"primary,omitempty"`
	} `json:"properties,omitempty"`
}

Describes a network interface reference.

type OperatingSystemTypes

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

type OperationStatus

type OperationStatus string
const (
	OperationStatusFailed     OperationStatus = "Failed"
	OperationStatusInProgress OperationStatus = "InProgress"
	OperationStatusSucceeded  OperationStatus = "Succeeded"
)

type PassNames

type PassNames string
const (
	OobeSystem PassNames = "oobeSystem"
)

type ProtocolTypes

type ProtocolTypes string
const (
	Http  ProtocolTypes = "Http"
	Https ProtocolTypes = "Https"
)

type SettingNames

type SettingNames string
const (
	AutoLogon          SettingNames = "AutoLogon"
	FirstLogonCommands SettingNames = "FirstLogonCommands"
)

type SshPublicKey

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

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

type StatusLevelTypes

type StatusLevelTypes string
const (
	Error   StatusLevelTypes = "Error"
	Info    StatusLevelTypes = "Info"
	Warning StatusLevelTypes = "Warning"
)

type SubResource

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

type Usage

type Usage struct {
	Unit         UsageUnit `json:"unit,omitempty"`
	CurrentValue int       `json:"currentValue,omitempty"`
	Limit        int32     `json:"limit,omitempty"`
	Name         struct {
		Value          string `json:"value,omitempty"`
		LocalizedValue string `json:"localizedValue,omitempty"`
	} `json:"name,omitempty"`
}

Describes Compute Resource Usage.

type UsageOperationsClient

type UsageOperationsClient struct {
	ComputeManagementClient
}

UsageOperations Client

func NewUsageOperationsClient

func NewUsageOperationsClient(subscriptionId string) UsageOperationsClient

func NewUsageOperationsClientWithBaseUri

func NewUsageOperationsClientWithBaseUri(baseUri string, subscriptionId string) UsageOperationsClient

func (UsageOperationsClient) List

func (client UsageOperationsClient) List(location string) (result ListUsagesResult, ae autorest.Error)

List lists compute usages for a subscription.

location is the location upon which resource usage is queried.

func (UsageOperationsClient) ListRequestPreparer

func (client UsageOperationsClient) ListRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the List request.

func (UsageOperationsClient) NewListRequest

func (client UsageOperationsClient) NewListRequest(location string) (*http.Request, error)

Create the List request.

type UsageUnit

type UsageUnit string
const (
	Count UsageUnit = "Count"
)

type VaultCertificate

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

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

type VaultSecretGroup

type VaultSecretGroup struct {
	SourceVault struct {
		Id string `json:"id,omitempty"`
	} `json:"sourceVault,omitempty"`
	VaultCertificates []VaultCertificate `json:"vaultCertificates,omitempty"`
}

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

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              struct {
		Name          string `json:"name,omitempty"`
		Publisher     string `json:"publisher,omitempty"`
		Product       string `json:"product,omitempty"`
		PromotionCode string `json:"promotionCode,omitempty"`
	} `json:"plan,omitempty"`
	Properties struct {
		HardwareProfile struct {
			VmSize VirtualMachineSizeTypes `json:"vmSize,omitempty"`
		} `json:"hardwareProfile,omitempty"`
		StorageProfile struct {
			ImageReference struct {
				Publisher string `json:"publisher,omitempty"`
				Offer     string `json:"offer,omitempty"`
				Sku       string `json:"sku,omitempty"`
				Version   string `json:"version,omitempty"`
			} `json:"imageReference,omitempty"`
			OsDisk struct {
				OsType OperatingSystemTypes `json:"osType,omitempty"`
				Name   string               `json:"name,omitempty"`
				Vhd    struct {
					Uri string `json:"uri,omitempty"`
				} `json:"vhd,omitempty"`
				Image struct {
					Uri string `json:"uri,omitempty"`
				} `json:"image,omitempty"`
				Caching      CachingTypes          `json:"caching,omitempty"`
				CreateOption DiskCreateOptionTypes `json:"createOption,omitempty"`
			} `json:"osDisk,omitempty"`
			DataDisks []DataDisk `json:"dataDisks,omitempty"`
		} `json:"storageProfile,omitempty"`
		OsProfile struct {
			ComputerName         string `json:"computerName,omitempty"`
			AdminUsername        string `json:"adminUsername,omitempty"`
			AdminPassword        string `json:"adminPassword,omitempty"`
			CustomData           string `json:"customData,omitempty"`
			WindowsConfiguration struct {
				ProvisionVMAgent          bool                        `json:"provisionVMAgent,omitempty"`
				EnableAutomaticUpdates    bool                        `json:"enableAutomaticUpdates,omitempty"`
				TimeZone                  string                      `json:"timeZone,omitempty"`
				AdditionalUnattendContent []AdditionalUnattendContent `json:"additionalUnattendContent,omitempty"`
				WinRM                     struct {
					Listeners []WinRMListener `json:"listeners,omitempty"`
				} `json:"winRM,omitempty"`
			} `json:"windowsConfiguration,omitempty"`
			LinuxConfiguration struct {
				DisablePasswordAuthentication bool `json:"disablePasswordAuthentication,omitempty"`
				Ssh                           struct {
					PublicKeys []SshPublicKey `json:"publicKeys,omitempty"`
				} `json:"ssh,omitempty"`
			} `json:"linuxConfiguration,omitempty"`
			Secrets []VaultSecretGroup `json:"secrets,omitempty"`
		} `json:"osProfile,omitempty"`
		NetworkProfile struct {
			NetworkInterfaces []NetworkInterfaceReference `json:"networkInterfaces,omitempty"`
		} `json:"networkProfile,omitempty"`
		AvailabilitySet struct {
			Id string `json:"id,omitempty"`
		} `json:"availabilitySet,omitempty"`
		ProvisioningState string `json:"provisioningState,omitempty"`
		InstanceView      struct {
			PlatformUpdateDomain int    `json:"platformUpdateDomain,omitempty"`
			PlatformFaultDomain  int    `json:"platformFaultDomain,omitempty"`
			RdpThumbPrint        string `json:"rdpThumbPrint,omitempty"`
			VmAgent              struct {
				VmAgentVersion    string                                       `json:"vmAgentVersion,omitempty"`
				ExtensionHandlers []VirtualMachineExtensionHandlerInstanceView `json:"extensionHandlers,omitempty"`
				Statuses          []InstanceViewStatus                         `json:"statuses,omitempty"`
			} `json:"vmAgent,omitempty"`
			Disks      []DiskInstanceView                    `json:"disks,omitempty"`
			Extensions []VirtualMachineExtensionInstanceView `json:"extensions,omitempty"`
			Statuses   []InstanceViewStatus                  `json:"statuses,omitempty"`
		} `json:"instanceView,omitempty"`
	} `json:"properties,omitempty"`
	Resources []VirtualMachineExtension `json:"resources,omitempty"`
}

Describes a Virtual Machine.

type VirtualMachineCaptureParameters

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

Capture Virtual Machine parameters.

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"`
	Properties        struct {
		Publisher               string            `json:"publisher,omitempty"`
		Type                    string            `json:"type,omitempty"`
		TypeHandlerVersion      string            `json:"typeHandlerVersion,omitempty"`
		AutoUpgradeMinorVersion bool              `json:"autoUpgradeMinorVersion,omitempty"`
		Settings                map[string]string `json:"settings,omitempty"`
		ProtectedSettings       map[string]string `json:"protectedSettings,omitempty"`
		ProvisioningState       string            `json:"provisioningState,omitempty"`
		InstanceView            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"`
		} `json:"instanceView,omitempty"`
	} `json:"properties,omitempty"`
}

Describes a Virtual Machine Extension.

type VirtualMachineExtensionHandlerInstanceView

type VirtualMachineExtensionHandlerInstanceView struct {
	Type               string `json:"type,omitempty"`
	TypeHandlerVersion string `json:"typeHandlerVersion,omitempty"`
	Status             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"`
	} `json:"status,omitempty"`
}

The instance view of a virtual machine extension handler.

type VirtualMachineExtensionImage

type VirtualMachineExtensionImage struct {
	autorest.Response `json:"-"`
	Id                string `json:"id,omitempty"`
	Properties        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"`
	} `json:"properties,omitempty"`
	Name     string            `json:"name,omitempty"`
	Location string            `json:"location,omitempty"`
	Tags     map[string]string `json:"tags,omitempty"`
}

Describes a Virtual Machine Extension Image.

type VirtualMachineExtensionImagesClient

type VirtualMachineExtensionImagesClient struct {
	ComputeManagementClient
}

VirtualMachineExtensionImages Client

func NewVirtualMachineExtensionImagesClient

func NewVirtualMachineExtensionImagesClient(subscriptionId string) VirtualMachineExtensionImagesClient

func NewVirtualMachineExtensionImagesClientWithBaseUri

func NewVirtualMachineExtensionImagesClientWithBaseUri(baseUri string, subscriptionId string) VirtualMachineExtensionImagesClient

func (VirtualMachineExtensionImagesClient) Get

func (client VirtualMachineExtensionImagesClient) Get(location string, publisherName string, type__ string, version string) (result VirtualMachineExtensionImage, ae autorest.Error)

Get gets a virtual machine extension image.

func (VirtualMachineExtensionImagesClient) GetRequestPreparer

func (client VirtualMachineExtensionImagesClient) GetRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Get request.

func (VirtualMachineExtensionImagesClient) ListTypes

func (client VirtualMachineExtensionImagesClient) ListTypes(location string, publisherName string) (result VirtualMachineImageResourceList, ae autorest.Error)

ListTypes gets a list of virtual machine extension image types.

func (VirtualMachineExtensionImagesClient) ListTypesRequestPreparer

func (client VirtualMachineExtensionImagesClient) ListTypesRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the ListTypes request.

func (VirtualMachineExtensionImagesClient) ListVersions

func (client VirtualMachineExtensionImagesClient) ListVersions(location string, publisherName string, type__ string, filter string, top int, orderby string) (result VirtualMachineImageResourceList, ae autorest.Error)

ListVersions gets a list of virtual machine extension image versions.

filter is the filter to apply on the operation.

func (VirtualMachineExtensionImagesClient) ListVersionsRequestPreparer

func (client VirtualMachineExtensionImagesClient) ListVersionsRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the ListVersions request.

func (VirtualMachineExtensionImagesClient) NewGetRequest

func (client VirtualMachineExtensionImagesClient) NewGetRequest(location string, publisherName string, type__ string, version string) (*http.Request, error)

Create the Get request.

func (VirtualMachineExtensionImagesClient) NewListTypesRequest

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

Create the ListTypes request.

func (VirtualMachineExtensionImagesClient) NewListVersionsRequest

func (client VirtualMachineExtensionImagesClient) NewListVersionsRequest(location string, publisherName string, type__ string, filter string, top int, orderby string) (*http.Request, error)

Create the ListVersions request.

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"`
}

The instance view of a virtual machine extension.

type VirtualMachineExtensionsClient

type VirtualMachineExtensionsClient struct {
	ComputeManagementClient
}

VirtualMachineExtensions Client

func NewVirtualMachineExtensionsClient

func NewVirtualMachineExtensionsClient(subscriptionId string) VirtualMachineExtensionsClient

func NewVirtualMachineExtensionsClientWithBaseUri

func NewVirtualMachineExtensionsClientWithBaseUri(baseUri string, subscriptionId string) VirtualMachineExtensionsClient

func (VirtualMachineExtensionsClient) CreateOrUpdate

func (client VirtualMachineExtensionsClient) CreateOrUpdate(resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtension) (result VirtualMachineExtension, ae autorest.Error)

CreateOrUpdate the operation to create or update the extension.

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

func (client VirtualMachineExtensionsClient) CreateOrUpdateRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the CreateOrUpdate request.

func (VirtualMachineExtensionsClient) Delete

func (client VirtualMachineExtensionsClient) Delete(resourceGroupName string, vmName string, vmExtensionName string) (result autorest.Response, ae autorest.Error)

Delete the operation to delete the extension.

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

func (client VirtualMachineExtensionsClient) DeleteRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Delete request.

func (VirtualMachineExtensionsClient) Get

func (client VirtualMachineExtensionsClient) Get(resourceGroupName string, vmName string, vmExtensionName string, expand string) (result VirtualMachineExtension, ae autorest.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 name of the property to expand. Allowed value is null or 'instanceView'.

func (VirtualMachineExtensionsClient) GetRequestPreparer

func (client VirtualMachineExtensionsClient) GetRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Get request.

func (VirtualMachineExtensionsClient) NewCreateOrUpdateRequest

func (client VirtualMachineExtensionsClient) NewCreateOrUpdateRequest(resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtension) (*http.Request, error)

Create the CreateOrUpdate request.

func (VirtualMachineExtensionsClient) NewDeleteRequest

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

Create the Delete request.

func (VirtualMachineExtensionsClient) NewGetRequest

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

Create the Get request.

type VirtualMachineImage

type VirtualMachineImage struct {
	autorest.Response `json:"-"`
	Id                string `json:"id,omitempty"`
	Properties        struct {
		Plan struct {
			Publisher string `json:"publisher,omitempty"`
			Name      string `json:"name,omitempty"`
			Product   string `json:"product,omitempty"`
		} `json:"plan,omitempty"`
		OsDiskImage struct {
			OperatingSystem OperatingSystemTypes `json:"operatingSystem,omitempty"`
		} `json:"osDiskImage,omitempty"`
		DataDiskImages []DataDiskImage `json:"dataDiskImages,omitempty"`
	} `json:"properties,omitempty"`
	Name     string            `json:"name,omitempty"`
	Location string            `json:"location,omitempty"`
	Tags     map[string]string `json:"tags,omitempty"`
}

Describes 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"`
}

Virtual machine image resource information.

type VirtualMachineImageResourceList

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

type VirtualMachineImagesClient

type VirtualMachineImagesClient struct {
	ComputeManagementClient
}

VirtualMachineImages Client

func NewVirtualMachineImagesClient

func NewVirtualMachineImagesClient(subscriptionId string) VirtualMachineImagesClient

func NewVirtualMachineImagesClientWithBaseUri

func NewVirtualMachineImagesClientWithBaseUri(baseUri string, subscriptionId string) VirtualMachineImagesClient

func (VirtualMachineImagesClient) Get

func (client VirtualMachineImagesClient) Get(location string, publisherName string, offer string, skus string, version string) (result VirtualMachineImage, ae autorest.Error)

Get gets a virtual machine image.

func (VirtualMachineImagesClient) GetRequestPreparer

func (client VirtualMachineImagesClient) GetRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Get request.

func (VirtualMachineImagesClient) List

func (client VirtualMachineImagesClient) List(location string, publisherName string, offer string, skus string, filter string, top int, orderby string) (result VirtualMachineImageResourceList, ae autorest.Error)

List gets a list of virtual machine images.

filter is the filter to apply on the operation.

func (VirtualMachineImagesClient) ListOffers

func (client VirtualMachineImagesClient) ListOffers(location string, publisherName string) (result VirtualMachineImageResourceList, ae autorest.Error)

ListOffers gets a list of virtual machine image offers.

func (VirtualMachineImagesClient) ListOffersRequestPreparer

func (client VirtualMachineImagesClient) ListOffersRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the ListOffers request.

func (VirtualMachineImagesClient) ListPublishers

func (client VirtualMachineImagesClient) ListPublishers(location string) (result VirtualMachineImageResourceList, ae autorest.Error)

ListPublishers gets a list of virtual machine image publishers.

func (VirtualMachineImagesClient) ListPublishersRequestPreparer

func (client VirtualMachineImagesClient) ListPublishersRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the ListPublishers request.

func (VirtualMachineImagesClient) ListRequestPreparer

func (client VirtualMachineImagesClient) ListRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the List request.

func (VirtualMachineImagesClient) ListSkus

func (client VirtualMachineImagesClient) ListSkus(location string, publisherName string, offer string) (result VirtualMachineImageResourceList, ae autorest.Error)

ListSkus gets a list of virtual machine image skus.

func (VirtualMachineImagesClient) ListSkusRequestPreparer

func (client VirtualMachineImagesClient) ListSkusRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the ListSkus request.

func (VirtualMachineImagesClient) NewGetRequest

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

Create the Get request.

func (VirtualMachineImagesClient) NewListOffersRequest

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

Create the ListOffers request.

func (VirtualMachineImagesClient) NewListPublishersRequest

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

Create the ListPublishers request.

func (VirtualMachineImagesClient) NewListRequest

func (client VirtualMachineImagesClient) NewListRequest(location string, publisherName string, offer string, skus string, filter string, top int, orderby string) (*http.Request, error)

Create the List request.

func (VirtualMachineImagesClient) NewListSkusRequest

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

Create the ListSkus request.

type VirtualMachineListResult

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

The List Virtual Machine operation response.

type VirtualMachineSize

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

Describes the properties of a VM size.

type VirtualMachineSizeListResult

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

The List Virtual Machine operation response.

type VirtualMachineSizeTypes

type VirtualMachineSizeTypes string
const (
	BasicA0    VirtualMachineSizeTypes = "Basic_A0"
	BasicA1    VirtualMachineSizeTypes = "Basic_A1"
	BasicA2    VirtualMachineSizeTypes = "Basic_A2"
	BasicA3    VirtualMachineSizeTypes = "Basic_A3"
	BasicA4    VirtualMachineSizeTypes = "Basic_A4"
	StandardA0 VirtualMachineSizeTypes = "Standard_A0"
	StandardA1 VirtualMachineSizeTypes = "Standard_A1"
	StandardA2 VirtualMachineSizeTypes = "Standard_A2"
	StandardA3 VirtualMachineSizeTypes = "Standard_A3"
	StandardA4 VirtualMachineSizeTypes = "Standard_A4"
	StandardA5 VirtualMachineSizeTypes = "Standard_A5"
	StandardA6 VirtualMachineSizeTypes = "Standard_A6"
	StandardA7 VirtualMachineSizeTypes = "Standard_A7"
	StandardA8 VirtualMachineSizeTypes = "Standard_A8"
	StandardA9 VirtualMachineSizeTypes = "Standard_A9"
	StandardG1 VirtualMachineSizeTypes = "Standard_G1"
	StandardG2 VirtualMachineSizeTypes = "Standard_G2"
	StandardG3 VirtualMachineSizeTypes = "Standard_G3"
	StandardG4 VirtualMachineSizeTypes = "Standard_G4"
	StandardG5 VirtualMachineSizeTypes = "Standard_G5"
)

type VirtualMachineSizesClient

type VirtualMachineSizesClient struct {
	ComputeManagementClient
}

VirtualMachineSizes Client

func NewVirtualMachineSizesClient

func NewVirtualMachineSizesClient(subscriptionId string) VirtualMachineSizesClient

func NewVirtualMachineSizesClientWithBaseUri

func NewVirtualMachineSizesClientWithBaseUri(baseUri string, subscriptionId string) VirtualMachineSizesClient

func (VirtualMachineSizesClient) List

func (client VirtualMachineSizesClient) List(location string) (result VirtualMachineSizeListResult, ae autorest.Error)

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

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

func (VirtualMachineSizesClient) ListRequestPreparer

func (client VirtualMachineSizesClient) ListRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the List request.

func (VirtualMachineSizesClient) NewListRequest

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

Create the List request.

type VirtualMachinesClient

type VirtualMachinesClient struct {
	ComputeManagementClient
}

VirtualMachines Client

func NewVirtualMachinesClient

func NewVirtualMachinesClient(subscriptionId string) VirtualMachinesClient

func NewVirtualMachinesClientWithBaseUri

func NewVirtualMachinesClientWithBaseUri(baseUri string, subscriptionId string) VirtualMachinesClient

func (VirtualMachinesClient) Capture

func (client VirtualMachinesClient) Capture(resourceGroupName string, vmName string, parameters VirtualMachineCaptureParameters) (result ComputeLongRunningOperationResult, ae autorest.Error)

Capture captures the VM by copying VirtualHardDisks of the VM and outputs a template that can be used to create similar VMs.

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

func (client VirtualMachinesClient) CaptureRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Capture request.

func (VirtualMachinesClient) CreateOrUpdate

func (client VirtualMachinesClient) CreateOrUpdate(resourceGroupName string, vmName string, parameters VirtualMachine) (result VirtualMachine, ae autorest.Error)

CreateOrUpdate the operation to create or update a virtual machine.

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

func (client VirtualMachinesClient) CreateOrUpdateRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the CreateOrUpdate request.

func (VirtualMachinesClient) Deallocate

func (client VirtualMachinesClient) Deallocate(resourceGroupName string, vmName string) (result autorest.Response, ae autorest.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.

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

func (VirtualMachinesClient) DeallocateRequestPreparer

func (client VirtualMachinesClient) DeallocateRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Deallocate request.

func (VirtualMachinesClient) Delete

func (client VirtualMachinesClient) Delete(resourceGroupName string, vmName string) (result autorest.Response, ae autorest.Error)

Delete the operation to delete a virtual machine.

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

func (VirtualMachinesClient) DeleteRequestPreparer

func (client VirtualMachinesClient) DeleteRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Delete request.

func (VirtualMachinesClient) Generalize

func (client VirtualMachinesClient) Generalize(resourceGroupName string, vmName string) (result autorest.Response, ae autorest.Error)

Generalize sets the state of the VM as Generalized.

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

func (VirtualMachinesClient) GeneralizeRequestPreparer

func (client VirtualMachinesClient) GeneralizeRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Generalize request.

func (VirtualMachinesClient) Get

func (client VirtualMachinesClient) Get(resourceGroupName string, vmName string, expand string) (result VirtualMachine, ae autorest.Error)

Get the operation to get a virtual machine.

resourceGroupName is the name of the resource group. vmName is the name of the virtual machine. expand is name of the property to expand. Allowed value is null or 'instanceView'.

func (VirtualMachinesClient) GetRequestPreparer

func (client VirtualMachinesClient) GetRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Get request.

func (VirtualMachinesClient) List

func (client VirtualMachinesClient) List(resourceGroupName string) (result VirtualMachineListResult, ae autorest.Error)

List the operation to list virtual machines under a resource group.

resourceGroupName is the name of the resource group.

func (VirtualMachinesClient) ListAll

func (client VirtualMachinesClient) ListAll() (result VirtualMachineListResult, ae autorest.Error)

ListAll gets the list of Virtual Machines in the subscription. Use nextLink property in the response to get the next page of Virtual Machines. Do this till nextLink is not null to fetch all the Virtual Machines.

func (VirtualMachinesClient) ListAllRequestPreparer

func (client VirtualMachinesClient) ListAllRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the ListAll request.

func (VirtualMachinesClient) ListAvailableSizes

func (client VirtualMachinesClient) ListAvailableSizes(resourceGroupName string, vmName string) (result VirtualMachineSizeListResult, ae autorest.Error)

ListAvailableSizes lists virtual-machine-sizes available to be used for a virtual machine.

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

func (VirtualMachinesClient) ListAvailableSizesRequestPreparer

func (client VirtualMachinesClient) ListAvailableSizesRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the ListAvailableSizes request.

func (VirtualMachinesClient) ListRequestPreparer

func (client VirtualMachinesClient) ListRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the List request.

func (VirtualMachinesClient) NewCaptureRequest

func (client VirtualMachinesClient) NewCaptureRequest(resourceGroupName string, vmName string, parameters VirtualMachineCaptureParameters) (*http.Request, error)

Create the Capture request.

func (VirtualMachinesClient) NewCreateOrUpdateRequest

func (client VirtualMachinesClient) NewCreateOrUpdateRequest(resourceGroupName string, vmName string, parameters VirtualMachine) (*http.Request, error)

Create the CreateOrUpdate request.

func (VirtualMachinesClient) NewDeallocateRequest

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

Create the Deallocate request.

func (VirtualMachinesClient) NewDeleteRequest

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

Create the Delete request.

func (VirtualMachinesClient) NewGeneralizeRequest

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

Create the Generalize request.

func (VirtualMachinesClient) NewGetRequest

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

Create the Get request.

func (VirtualMachinesClient) NewListAllRequest

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

Create the ListAll request.

func (VirtualMachinesClient) NewListAvailableSizesRequest

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

Create the ListAvailableSizes request.

func (VirtualMachinesClient) NewListRequest

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

Create the List request.

func (VirtualMachinesClient) NewPowerOffRequest

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

Create the PowerOff request.

func (VirtualMachinesClient) NewRestartRequest

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

Create the Restart request.

func (VirtualMachinesClient) NewStartRequest

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

Create the Start request.

func (VirtualMachinesClient) PowerOff

func (client VirtualMachinesClient) PowerOff(resourceGroupName string, vmName string) (result autorest.Response, ae autorest.Error)

PowerOff the operation to power off (stop) a virtual machine.

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

func (VirtualMachinesClient) PowerOffRequestPreparer

func (client VirtualMachinesClient) PowerOffRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the PowerOff request.

func (VirtualMachinesClient) Restart

func (client VirtualMachinesClient) Restart(resourceGroupName string, vmName string) (result autorest.Response, ae autorest.Error)

Restart the operation to restart a virtual machine.

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

func (VirtualMachinesClient) RestartRequestPreparer

func (client VirtualMachinesClient) RestartRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Restart request.

func (VirtualMachinesClient) Start

func (client VirtualMachinesClient) Start(resourceGroupName string, vmName string) (result autorest.Response, ae autorest.Error)

Start the operation to start a virtual machine.

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

func (VirtualMachinesClient) StartRequestPreparer

func (client VirtualMachinesClient) StartRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Start request.

type WinRMListener

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

Describes Protocol and thumbprint of Windows Remote Management listener

Jump to

Keyboard shortcuts

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