Documentation ¶
Index ¶
- func PossibleValuesForDiskMode() []string
- func PossibleValuesForDiskType() []string
- func PossibleValuesForFirmwareType() []string
- func PossibleValuesForIPAddressAllocationMethod() []string
- func PossibleValuesForNICType() []string
- func PossibleValuesForOsType() []string
- func PossibleValuesForPowerOnBootOption() []string
- func PossibleValuesForProvisioningState() []string
- func ValidateVirtualMachineTemplateID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type DiskMode
- type DiskType
- type ExtendedLocation
- type FirmwareType
- type GetOperationResponse
- type IPAddressAllocationMethod
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupCustomPager
- type ListByResourceGroupOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationResponse
- type NICType
- type NetworkInterface
- type NicIPAddressSettings
- type NicIPSettings
- type OsType
- type PowerOnBootOption
- type ProvisioningState
- type ResourcePatch
- type ResourceStatus
- type UpdateOperationResponse
- type VirtualDisk
- type VirtualMachineTemplate
- type VirtualMachineTemplateId
- type VirtualMachineTemplateOperationPredicate
- type VirtualMachineTemplateProperties
- type VirtualMachineTemplatesClient
- func (c VirtualMachineTemplatesClient) Create(ctx context.Context, id VirtualMachineTemplateId, input VirtualMachineTemplate) (result CreateOperationResponse, err error)
- func (c VirtualMachineTemplatesClient) CreateThenPoll(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) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, 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) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
- func (c VirtualMachineTemplatesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListCompleteResult, err error)
- func (c VirtualMachineTemplatesClient) Update(ctx context.Context, id VirtualMachineTemplateId, input ResourcePatch) (result UpdateOperationResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForDiskMode ¶
func PossibleValuesForDiskMode() []string
func PossibleValuesForDiskType ¶
func PossibleValuesForDiskType() []string
func PossibleValuesForFirmwareType ¶
func PossibleValuesForFirmwareType() []string
func PossibleValuesForIPAddressAllocationMethod ¶
func PossibleValuesForIPAddressAllocationMethod() []string
func PossibleValuesForNICType ¶
func PossibleValuesForNICType() []string
func PossibleValuesForOsType ¶
func PossibleValuesForOsType() []string
func PossibleValuesForPowerOnBootOption ¶
func PossibleValuesForPowerOnBootOption() []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 CreateOperationResponse ¶
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
Force *bool
}
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 ExtendedLocation ¶
type FirmwareType ¶
type FirmwareType string
const ( FirmwareTypeBios FirmwareType = "bios" FirmwareTypeEfi FirmwareType = "efi" )
func (*FirmwareType) UnmarshalJSON ¶
func (s *FirmwareType) UnmarshalJSON(bytes []byte) error
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *VirtualMachineTemplate }
type IPAddressAllocationMethod ¶
type IPAddressAllocationMethod string
const ( IPAddressAllocationMethodDynamic IPAddressAllocationMethod = "dynamic" IPAddressAllocationMethodLinklayer IPAddressAllocationMethod = "linklayer" IPAddressAllocationMethodOther IPAddressAllocationMethod = "other" IPAddressAllocationMethodRandom IPAddressAllocationMethod = "random" IPAddressAllocationMethodStatic IPAddressAllocationMethod = "static" IPAddressAllocationMethodUnset IPAddressAllocationMethod = "unset" )
func (*IPAddressAllocationMethod) UnmarshalJSON ¶
func (s *IPAddressAllocationMethod) UnmarshalJSON(bytes []byte) error
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct { LatestHttpResponse *http.Response Items []VirtualMachineTemplate }
type ListByResourceGroupCustomPager ¶
func (*ListByResourceGroupCustomPager) NextPageLink ¶
func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]VirtualMachineTemplate }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []VirtualMachineTemplate }
type ListCustomPager ¶
func (*ListCustomPager) NextPageLink ¶
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]VirtualMachineTemplate }
type NetworkInterface ¶
type NetworkInterface struct { DeviceKey *int64 `json:"deviceKey,omitempty"` IPAddresses *[]string `json:"ipAddresses,omitempty"` IPSettings *NicIPSettings `json:"ipSettings,omitempty"` Label *string `json:"label,omitempty"` MacAddress *string `json:"macAddress,omitempty"` Name *string `json:"name,omitempty"` NetworkId *string `json:"networkId,omitempty"` NetworkMoName *string `json:"networkMoName,omitempty"` NetworkMoRefId *string `json:"networkMoRefId,omitempty"` NicType *NICType `json:"nicType,omitempty"` PowerOnBoot *PowerOnBootOption `json:"powerOnBoot,omitempty"` }
type NicIPAddressSettings ¶
type NicIPSettings ¶
type NicIPSettings struct { AllocationMethod *IPAddressAllocationMethod `json:"allocationMethod,omitempty"` DnsServers *[]string `json:"dnsServers,omitempty"` Gateway *[]string `json:"gateway,omitempty"` IPAddress *string `json:"ipAddress,omitempty"` IPAddressInfo *[]NicIPAddressSettings `json:"ipAddressInfo,omitempty"` PrimaryWinsServer *string `json:"primaryWinsServer,omitempty"` SecondaryWinsServer *string `json:"secondaryWinsServer,omitempty"` SubnetMask *string `json:"subnetMask,omitempty"` }
type PowerOnBootOption ¶
type PowerOnBootOption string
const ( PowerOnBootOptionDisabled PowerOnBootOption = "disabled" PowerOnBootOptionEnabled PowerOnBootOption = "enabled" )
func (*PowerOnBootOption) UnmarshalJSON ¶
func (s *PowerOnBootOption) UnmarshalJSON(bytes []byte) error
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 ResourceStatus ¶
type ResourceStatus struct { LastUpdatedAt *string `json:"lastUpdatedAt,omitempty"` Message *string `json:"message,omitempty"` Reason *string `json:"reason,omitempty"` Severity *string `json:"severity,omitempty"` Status *string `json:"status,omitempty"` Type *string `json:"type,omitempty"` }
func (*ResourceStatus) GetLastUpdatedAtAsTime ¶
func (o *ResourceStatus) GetLastUpdatedAtAsTime() (*time.Time, error)
func (*ResourceStatus) SetLastUpdatedAtAsTime ¶
func (o *ResourceStatus) SetLastUpdatedAtAsTime(input time.Time)
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *VirtualMachineTemplate }
type VirtualDisk ¶
type VirtualDisk struct { ControllerKey *int64 `json:"controllerKey,omitempty"` DeviceKey *int64 `json:"deviceKey,omitempty"` DeviceName *string `json:"deviceName,omitempty"` DiskMode *DiskMode `json:"diskMode,omitempty"` DiskObjectId *string `json:"diskObjectId,omitempty"` DiskSizeGB *int64 `json:"diskSizeGB,omitempty"` DiskType *DiskType `json:"diskType,omitempty"` Label *string `json:"label,omitempty"` Name *string `json:"name,omitempty"` UnitNumber *int64 `json:"unitNumber,omitempty"` }
type VirtualMachineTemplate ¶
type VirtualMachineTemplate struct { ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` Id *string `json:"id,omitempty"` Kind *string `json:"kind,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) FromParseResult ¶
func (id *VirtualMachineTemplateId) FromParseResult(input resourceids.ParseResult) error
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 Kind *string Location *string Name *string Type *string }
func (VirtualMachineTemplateOperationPredicate) Matches ¶
func (p VirtualMachineTemplateOperationPredicate) Matches(input VirtualMachineTemplate) bool
type VirtualMachineTemplateProperties ¶
type VirtualMachineTemplateProperties struct { CustomResourceName *string `json:"customResourceName,omitempty"` Disks *[]VirtualDisk `json:"disks,omitempty"` FirmwareType *FirmwareType `json:"firmwareType,omitempty"` FolderPath *string `json:"folderPath,omitempty"` InventoryItemId *string `json:"inventoryItemId,omitempty"` MemorySizeMB *int64 `json:"memorySizeMB,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` NumCPUs *int64 `json:"numCPUs,omitempty"` NumCoresPerSocket *int64 `json:"numCoresPerSocket,omitempty"` OsName *string `json:"osName,omitempty"` OsType *OsType `json:"osType,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Statuses *[]ResourceStatus `json:"statuses,omitempty"` ToolsVersion *string `json:"toolsVersion,omitempty"` ToolsVersionStatus *string `json:"toolsVersionStatus,omitempty"` Uuid *string `json:"uuid,omitempty"` VCenterId *string `json:"vCenterId,omitempty"` }
type VirtualMachineTemplatesClient ¶
type VirtualMachineTemplatesClient struct {
Client *resourcemanager.Client
}
func NewVirtualMachineTemplatesClientWithBaseURI ¶
func NewVirtualMachineTemplatesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachineTemplatesClient, error)
func (VirtualMachineTemplatesClient) Create ¶
func (c VirtualMachineTemplatesClient) Create(ctx context.Context, id VirtualMachineTemplateId, input VirtualMachineTemplate) (result CreateOperationResponse, err error)
Create ...
func (VirtualMachineTemplatesClient) CreateThenPoll ¶
func (c VirtualMachineTemplatesClient) CreateThenPoll(ctx context.Context, id VirtualMachineTemplateId, input VirtualMachineTemplate) error
CreateThenPoll performs Create 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) List ¶
func (c VirtualMachineTemplatesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
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) ListComplete ¶
func (c VirtualMachineTemplatesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (VirtualMachineTemplatesClient) ListCompleteMatchingPredicate ¶
func (c VirtualMachineTemplatesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VirtualMachineTemplateOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate 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 ...
Source Files ¶
- client.go
- constants.go
- id_virtualmachinetemplate.go
- method_create.go
- method_delete.go
- method_get.go
- method_list.go
- method_listbyresourcegroup.go
- method_update.go
- model_extendedlocation.go
- model_networkinterface.go
- model_nicipaddresssettings.go
- model_nicipsettings.go
- model_resourcepatch.go
- model_resourcestatus.go
- model_virtualdisk.go
- model_virtualmachinetemplate.go
- model_virtualmachinetemplateproperties.go
- predicates.go
- version.go