Documentation ¶
Index ¶
- func PossibleValuesForAllocationMethod() []string
- func PossibleValuesForCreateDiffDisk() []string
- func PossibleValuesForDynamicMemoryEnabled() []string
- func PossibleValuesForForce() []string
- func PossibleValuesForIsCustomizable() []string
- func PossibleValuesForIsHighlyAvailable() []string
- func PossibleValuesForLimitCPUForMigration() []string
- func PossibleValuesForOsType() []string
- func PossibleValuesForProvisioningState() []string
- func ValidateVirtualMachineTemplateID(input interface{}, key string) (warnings []string, errors []error)
- type AllocationMethod
- type CreateDiffDisk
- type CreateOrUpdateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type DynamicMemoryEnabled
- type ExtendedLocation
- type Force
- type GetOperationResponse
- type IsCustomizable
- type IsHighlyAvailable
- type LimitCPUForMigration
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionCompleteResult
- type ListBySubscriptionOperationResponse
- type NetworkInterface
- type OsType
- type ProvisioningState
- type ResourcePatch
- type StorageQoSPolicyDetails
- type UpdateOperationResponse
- type VirtualDisk
- type VirtualMachineTemplate
- type VirtualMachineTemplateId
- type VirtualMachineTemplateOperationPredicate
- type VirtualMachineTemplateProperties
- type VirtualMachineTemplatesClient
- func (c VirtualMachineTemplatesClient) CreateOrUpdate(ctx context.Context, id VirtualMachineTemplateId, input VirtualMachineTemplate) (result CreateOrUpdateOperationResponse, err error)
- func (c VirtualMachineTemplatesClient) CreateOrUpdateThenPoll(ctx context.Context, id VirtualMachineTemplateId, input VirtualMachineTemplate) error
- func (c VirtualMachineTemplatesClient) Delete(ctx context.Context, id VirtualMachineTemplateId, ...) (result DeleteOperationResponse, err error)
- func (c VirtualMachineTemplatesClient) DeleteThenPoll(ctx context.Context, id VirtualMachineTemplateId, ...) error
- func (c VirtualMachineTemplatesClient) Get(ctx context.Context, id VirtualMachineTemplateId) (result GetOperationResponse, err error)
- func (c VirtualMachineTemplatesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c VirtualMachineTemplatesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c VirtualMachineTemplatesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c VirtualMachineTemplatesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
- func (c VirtualMachineTemplatesClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
- func (c VirtualMachineTemplatesClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListBySubscriptionCompleteResult, err error)
- func (c VirtualMachineTemplatesClient) Update(ctx context.Context, id VirtualMachineTemplateId, input ResourcePatch) (result UpdateOperationResponse, err error)
- func (c VirtualMachineTemplatesClient) UpdateThenPoll(ctx context.Context, id VirtualMachineTemplateId, input ResourcePatch) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAllocationMethod ¶
func PossibleValuesForAllocationMethod() []string
func PossibleValuesForCreateDiffDisk ¶
func PossibleValuesForCreateDiffDisk() []string
func PossibleValuesForDynamicMemoryEnabled ¶
func PossibleValuesForDynamicMemoryEnabled() []string
func PossibleValuesForForce ¶
func PossibleValuesForForce() []string
func PossibleValuesForIsCustomizable ¶
func PossibleValuesForIsCustomizable() []string
func PossibleValuesForIsHighlyAvailable ¶
func PossibleValuesForIsHighlyAvailable() []string
func PossibleValuesForLimitCPUForMigration ¶
func PossibleValuesForLimitCPUForMigration() []string
func PossibleValuesForOsType ¶
func PossibleValuesForOsType() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func ValidateVirtualMachineTemplateID ¶
func ValidateVirtualMachineTemplateID(input interface{}, key string) (warnings []string, errors []error)
ValidateVirtualMachineTemplateID checks that 'input' can be parsed as a Virtual Machine Template ID
Types ¶
type AllocationMethod ¶
type AllocationMethod string
const ( AllocationMethodDynamic AllocationMethod = "Dynamic" AllocationMethodStatic AllocationMethod = "Static" )
func (*AllocationMethod) UnmarshalJSON ¶
func (s *AllocationMethod) UnmarshalJSON(bytes []byte) error
type CreateDiffDisk ¶
type CreateDiffDisk string
const ( CreateDiffDiskFalse CreateDiffDisk = "false" CreateDiffDiskTrue CreateDiffDisk = "true" )
func (*CreateDiffDisk) UnmarshalJSON ¶
func (s *CreateDiffDisk) UnmarshalJSON(bytes []byte) error
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
Force *Force
}
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
func (DeleteOperationOptions) ToHeaders ¶
func (o DeleteOperationOptions) ToHeaders() *client.Headers
func (DeleteOperationOptions) ToOData ¶
func (o DeleteOperationOptions) ToOData() *odata.Query
func (DeleteOperationOptions) ToQuery ¶
func (o DeleteOperationOptions) ToQuery() *client.QueryParams
type DeleteOperationResponse ¶
type DynamicMemoryEnabled ¶
type DynamicMemoryEnabled string
const ( DynamicMemoryEnabledFalse DynamicMemoryEnabled = "false" DynamicMemoryEnabledTrue DynamicMemoryEnabled = "true" )
func (*DynamicMemoryEnabled) UnmarshalJSON ¶
func (s *DynamicMemoryEnabled) UnmarshalJSON(bytes []byte) error
type ExtendedLocation ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *VirtualMachineTemplate }
type IsCustomizable ¶
type IsCustomizable string
const ( IsCustomizableFalse IsCustomizable = "false" IsCustomizableTrue IsCustomizable = "true" )
func (*IsCustomizable) UnmarshalJSON ¶
func (s *IsCustomizable) UnmarshalJSON(bytes []byte) error
type IsHighlyAvailable ¶
type IsHighlyAvailable string
const ( IsHighlyAvailableFalse IsHighlyAvailable = "false" IsHighlyAvailableTrue IsHighlyAvailable = "true" )
func (*IsHighlyAvailable) UnmarshalJSON ¶
func (s *IsHighlyAvailable) UnmarshalJSON(bytes []byte) error
type LimitCPUForMigration ¶
type LimitCPUForMigration string
const ( LimitCPUForMigrationFalse LimitCPUForMigration = "false" LimitCPUForMigrationTrue LimitCPUForMigration = "true" )
func (*LimitCPUForMigration) UnmarshalJSON ¶
func (s *LimitCPUForMigration) UnmarshalJSON(bytes []byte) error
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct {
Items []VirtualMachineTemplate
}
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]VirtualMachineTemplate }
type ListBySubscriptionCompleteResult ¶
type ListBySubscriptionCompleteResult struct {
Items []VirtualMachineTemplate
}
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]VirtualMachineTemplate }
type NetworkInterface ¶
type NetworkInterface struct { DisplayName *string `json:"displayName,omitempty"` IPv4AddressType *AllocationMethod `json:"ipv4AddressType,omitempty"` IPv4Addresses *[]string `json:"ipv4Addresses,omitempty"` IPv6AddressType *AllocationMethod `json:"ipv6AddressType,omitempty"` IPv6Addresses *[]string `json:"ipv6Addresses,omitempty"` MacAddress *string `json:"macAddress,omitempty"` MacAddressType *AllocationMethod `json:"macAddressType,omitempty"` Name *string `json:"name,omitempty"` NetworkName *string `json:"networkName,omitempty"` NicId *string `json:"nicId,omitempty"` VirtualNetworkId *string `json:"virtualNetworkId,omitempty"` }
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreated ProvisioningState = "Created" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateProvisioning ProvisioningState = "Provisioning" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type ResourcePatch ¶
type StorageQoSPolicyDetails ¶
type UpdateOperationResponse ¶
type VirtualDisk ¶
type VirtualDisk struct { Bus *int64 `json:"bus,omitempty"` BusType *string `json:"busType,omitempty"` CreateDiffDisk *CreateDiffDisk `json:"createDiffDisk,omitempty"` DiskId *string `json:"diskId,omitempty"` DiskSizeGB *int64 `json:"diskSizeGB,omitempty"` DisplayName *string `json:"displayName,omitempty"` Lun *int64 `json:"lun,omitempty"` MaxDiskSizeGB *int64 `json:"maxDiskSizeGB,omitempty"` Name *string `json:"name,omitempty"` StorageQoSPolicy *StorageQoSPolicyDetails `json:"storageQoSPolicy,omitempty"` TemplateDiskId *string `json:"templateDiskId,omitempty"` VhdFormatType *string `json:"vhdFormatType,omitempty"` VhdType *string `json:"vhdType,omitempty"` VolumeType *string `json:"volumeType,omitempty"` }
type VirtualMachineTemplate ¶
type VirtualMachineTemplate struct { ExtendedLocation ExtendedLocation `json:"extendedLocation"` Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties VirtualMachineTemplateProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type VirtualMachineTemplateId ¶
type VirtualMachineTemplateId struct { SubscriptionId string ResourceGroupName string VirtualMachineTemplateName string }
VirtualMachineTemplateId is a struct representing the Resource ID for a Virtual Machine Template
func NewVirtualMachineTemplateID ¶
func NewVirtualMachineTemplateID(subscriptionId string, resourceGroupName string, virtualMachineTemplateName string) VirtualMachineTemplateId
NewVirtualMachineTemplateID returns a new VirtualMachineTemplateId struct
func ParseVirtualMachineTemplateID ¶
func ParseVirtualMachineTemplateID(input string) (*VirtualMachineTemplateId, error)
ParseVirtualMachineTemplateID parses 'input' into a VirtualMachineTemplateId
func ParseVirtualMachineTemplateIDInsensitively ¶
func ParseVirtualMachineTemplateIDInsensitively(input string) (*VirtualMachineTemplateId, error)
ParseVirtualMachineTemplateIDInsensitively parses 'input' case-insensitively into a VirtualMachineTemplateId note: this method should only be used for API response data and not user input
func (VirtualMachineTemplateId) ID ¶
func (id VirtualMachineTemplateId) ID() string
ID returns the formatted Virtual Machine Template ID
func (VirtualMachineTemplateId) Segments ¶
func (id VirtualMachineTemplateId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Virtual Machine Template ID
func (VirtualMachineTemplateId) String ¶
func (id VirtualMachineTemplateId) String() string
String returns a human-readable description of this Virtual Machine Template ID
type VirtualMachineTemplateOperationPredicate ¶
type VirtualMachineTemplateOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (VirtualMachineTemplateOperationPredicate) Matches ¶
func (p VirtualMachineTemplateOperationPredicate) Matches(input VirtualMachineTemplate) bool
type VirtualMachineTemplateProperties ¶
type VirtualMachineTemplateProperties struct { ComputerName *string `json:"computerName,omitempty"` CpuCount *int64 `json:"cpuCount,omitempty"` Disks *[]VirtualDisk `json:"disks,omitempty"` DynamicMemoryEnabled *DynamicMemoryEnabled `json:"dynamicMemoryEnabled,omitempty"` DynamicMemoryMaxMB *int64 `json:"dynamicMemoryMaxMB,omitempty"` DynamicMemoryMinMB *int64 `json:"dynamicMemoryMinMB,omitempty"` Generation *int64 `json:"generation,omitempty"` InventoryItemId *string `json:"inventoryItemId,omitempty"` IsCustomizable *IsCustomizable `json:"isCustomizable,omitempty"` IsHighlyAvailable *IsHighlyAvailable `json:"isHighlyAvailable,omitempty"` LimitCPUForMigration *LimitCPUForMigration `json:"limitCpuForMigration,omitempty"` MemoryMB *int64 `json:"memoryMB,omitempty"` NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` OsName *string `json:"osName,omitempty"` OsType *OsType `json:"osType,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Uuid *string `json:"uuid,omitempty"` VMmServerId *string `json:"vmmServerId,omitempty"` }
type VirtualMachineTemplatesClient ¶
type VirtualMachineTemplatesClient struct {
Client *resourcemanager.Client
}
func NewVirtualMachineTemplatesClientWithBaseURI ¶
func NewVirtualMachineTemplatesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachineTemplatesClient, error)
func (VirtualMachineTemplatesClient) CreateOrUpdate ¶
func (c VirtualMachineTemplatesClient) CreateOrUpdate(ctx context.Context, id VirtualMachineTemplateId, input VirtualMachineTemplate) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (VirtualMachineTemplatesClient) CreateOrUpdateThenPoll ¶
func (c VirtualMachineTemplatesClient) CreateOrUpdateThenPoll(ctx context.Context, id VirtualMachineTemplateId, input VirtualMachineTemplate) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (VirtualMachineTemplatesClient) Delete ¶
func (c VirtualMachineTemplatesClient) Delete(ctx context.Context, id VirtualMachineTemplateId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (VirtualMachineTemplatesClient) DeleteThenPoll ¶
func (c VirtualMachineTemplatesClient) DeleteThenPoll(ctx context.Context, id VirtualMachineTemplateId, options DeleteOperationOptions) error
DeleteThenPoll performs Delete then polls until it's completed
func (VirtualMachineTemplatesClient) Get ¶
func (c VirtualMachineTemplatesClient) Get(ctx context.Context, id VirtualMachineTemplateId) (result GetOperationResponse, err error)
Get ...
func (VirtualMachineTemplatesClient) ListByResourceGroup ¶
func (c VirtualMachineTemplatesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (VirtualMachineTemplatesClient) ListByResourceGroupComplete ¶
func (c VirtualMachineTemplatesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (VirtualMachineTemplatesClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c VirtualMachineTemplatesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VirtualMachineTemplateOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (VirtualMachineTemplatesClient) ListBySubscription ¶
func (c VirtualMachineTemplatesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (VirtualMachineTemplatesClient) ListBySubscriptionComplete ¶
func (c VirtualMachineTemplatesClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
ListBySubscriptionComplete retrieves all the results into a single object
func (VirtualMachineTemplatesClient) ListBySubscriptionCompleteMatchingPredicate ¶
func (c VirtualMachineTemplatesClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VirtualMachineTemplateOperationPredicate) (result ListBySubscriptionCompleteResult, err error)
ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (VirtualMachineTemplatesClient) Update ¶
func (c VirtualMachineTemplatesClient) Update(ctx context.Context, id VirtualMachineTemplateId, input ResourcePatch) (result UpdateOperationResponse, err error)
Update ...
func (VirtualMachineTemplatesClient) UpdateThenPoll ¶
func (c VirtualMachineTemplatesClient) UpdateThenPoll(ctx context.Context, id VirtualMachineTemplateId, input ResourcePatch) error
UpdateThenPoll performs Update then polls until it's completed
Source Files ¶
- client.go
- constants.go
- id_virtualmachinetemplate.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_listbyresourcegroup.go
- method_listbysubscription.go
- method_update.go
- model_extendedlocation.go
- model_networkinterface.go
- model_resourcepatch.go
- model_storageqospolicydetails.go
- model_virtualdisk.go
- model_virtualmachinetemplate.go
- model_virtualmachinetemplateproperties.go
- predicates.go
- version.go