virtualmachineimages

package
v0.20240521.1173452 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages Documentation

The virtualmachineimages SDK allows for interaction with the Azure Resource Manager Service compute (API Version 2024-03-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages"

Client Initialization

client := virtualmachineimages.NewVirtualMachineImagesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: VirtualMachineImagesClient.EdgeZoneGet

ctx := context.TODO()
id := virtualmachineimages.NewOfferSkuVersionID("12345678-1234-9876-4563-123456789012", "locationValue", "edgeZoneValue", "publisherValue", "offerValue", "skuValue", "versionValue")

read, err := client.EdgeZoneGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: VirtualMachineImagesClient.EdgeZoneList

ctx := context.TODO()
id := virtualmachineimages.NewOfferSkuID("12345678-1234-9876-4563-123456789012", "locationValue", "edgeZoneValue", "publisherValue", "offerValue", "skuValue")

read, err := client.EdgeZoneList(ctx, id, virtualmachineimages.DefaultEdgeZoneListOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: VirtualMachineImagesClient.EdgeZoneListOffers

ctx := context.TODO()
id := virtualmachineimages.NewEdgeZonePublisherID("12345678-1234-9876-4563-123456789012", "locationValue", "edgeZoneValue", "publisherValue")

read, err := client.EdgeZoneListOffers(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: VirtualMachineImagesClient.EdgeZoneListPublishers

ctx := context.TODO()
id := virtualmachineimages.NewEdgeZoneID("12345678-1234-9876-4563-123456789012", "locationValue", "edgeZoneValue")

read, err := client.EdgeZoneListPublishers(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: VirtualMachineImagesClient.EdgeZoneListSkus

ctx := context.TODO()
id := virtualmachineimages.NewVMImageOfferID("12345678-1234-9876-4563-123456789012", "locationValue", "edgeZoneValue", "publisherValue", "offerValue")

read, err := client.EdgeZoneListSkus(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: VirtualMachineImagesClient.Get

ctx := context.TODO()
id := virtualmachineimages.NewSkuVersionID("12345678-1234-9876-4563-123456789012", "locationValue", "publisherValue", "offerValue", "skuValue", "versionValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: VirtualMachineImagesClient.List

ctx := context.TODO()
id := virtualmachineimages.NewSkuID("12345678-1234-9876-4563-123456789012", "locationValue", "publisherValue", "offerValue", "skuValue")

read, err := client.List(ctx, id, virtualmachineimages.DefaultListOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: VirtualMachineImagesClient.ListByEdgeZone

ctx := context.TODO()
id := virtualmachineimages.NewEdgeZoneID("12345678-1234-9876-4563-123456789012", "locationValue", "edgeZoneValue")

// alternatively `client.ListByEdgeZone(ctx, id)` can be used to do batched pagination
items, err := client.ListByEdgeZoneComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: VirtualMachineImagesClient.ListOffers

ctx := context.TODO()
id := virtualmachineimages.NewPublisherID("12345678-1234-9876-4563-123456789012", "locationValue", "publisherValue")

read, err := client.ListOffers(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: VirtualMachineImagesClient.ListPublishers

ctx := context.TODO()
id := virtualmachineimages.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")

read, err := client.ListPublishers(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: VirtualMachineImagesClient.ListSkus

ctx := context.TODO()
id := virtualmachineimages.NewOfferID("12345678-1234-9876-4563-123456789012", "locationValue", "publisherValue", "offerValue")

read, err := client.ListSkus(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAlternativeType

func PossibleValuesForAlternativeType() []string

func PossibleValuesForArchitectureTypes

func PossibleValuesForArchitectureTypes() []string

func PossibleValuesForHyperVGenerationTypes

func PossibleValuesForHyperVGenerationTypes() []string

func PossibleValuesForImageState

func PossibleValuesForImageState() []string

func PossibleValuesForOperatingSystemTypes

func PossibleValuesForOperatingSystemTypes() []string

func PossibleValuesForVMDiskTypes

func PossibleValuesForVMDiskTypes() []string

func ValidateEdgeZoneID

func ValidateEdgeZoneID(input interface{}, key string) (warnings []string, errors []error)

ValidateEdgeZoneID checks that 'input' can be parsed as a Edge Zone ID

func ValidateEdgeZonePublisherID

func ValidateEdgeZonePublisherID(input interface{}, key string) (warnings []string, errors []error)

ValidateEdgeZonePublisherID checks that 'input' can be parsed as a Edge Zone Publisher ID

func ValidateLocationID

func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error)

ValidateLocationID checks that 'input' can be parsed as a Location ID

func ValidateOfferID

func ValidateOfferID(input interface{}, key string) (warnings []string, errors []error)

ValidateOfferID checks that 'input' can be parsed as a Offer ID

func ValidateOfferSkuID

func ValidateOfferSkuID(input interface{}, key string) (warnings []string, errors []error)

ValidateOfferSkuID checks that 'input' can be parsed as a Offer Sku ID

func ValidateOfferSkuVersionID

func ValidateOfferSkuVersionID(input interface{}, key string) (warnings []string, errors []error)

ValidateOfferSkuVersionID checks that 'input' can be parsed as a Offer Sku Version ID

func ValidatePublisherID

func ValidatePublisherID(input interface{}, key string) (warnings []string, errors []error)

ValidatePublisherID checks that 'input' can be parsed as a Publisher ID

func ValidateSkuID

func ValidateSkuID(input interface{}, key string) (warnings []string, errors []error)

ValidateSkuID checks that 'input' can be parsed as a Sku ID

func ValidateSkuVersionID

func ValidateSkuVersionID(input interface{}, key string) (warnings []string, errors []error)

ValidateSkuVersionID checks that 'input' can be parsed as a Sku Version ID

func ValidateVMImageOfferID

func ValidateVMImageOfferID(input interface{}, key string) (warnings []string, errors []error)

ValidateVMImageOfferID checks that 'input' can be parsed as a V M Image Offer ID

Types

type AlternativeOption

type AlternativeOption struct {
	Type  *AlternativeType `json:"type,omitempty"`
	Value *string          `json:"value,omitempty"`
}

type AlternativeType

type AlternativeType string
const (
	AlternativeTypeNone  AlternativeType = "None"
	AlternativeTypeOffer AlternativeType = "Offer"
	AlternativeTypePlan  AlternativeType = "Plan"
)

func (*AlternativeType) UnmarshalJSON

func (s *AlternativeType) UnmarshalJSON(bytes []byte) error

type ArchitectureTypes

type ArchitectureTypes string
const (
	ArchitectureTypesArmSixFour ArchitectureTypes = "Arm64"
	ArchitectureTypesXSixFour   ArchitectureTypes = "x64"
)

func (*ArchitectureTypes) UnmarshalJSON

func (s *ArchitectureTypes) UnmarshalJSON(bytes []byte) error

type AutomaticOSUpgradeProperties

type AutomaticOSUpgradeProperties struct {
	AutomaticOSUpgradeSupported bool `json:"automaticOSUpgradeSupported"`
}

type DataDiskImage

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

type DisallowedConfiguration

type DisallowedConfiguration struct {
	VMDiskType *VMDiskTypes `json:"vmDiskType,omitempty"`
}

type EdgeZoneGetOperationResponse

type EdgeZoneGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *VirtualMachineImage
}

type EdgeZoneId

type EdgeZoneId struct {
	SubscriptionId string
	LocationName   string
	EdgeZoneName   string
}

EdgeZoneId is a struct representing the Resource ID for a Edge Zone

func NewEdgeZoneID

func NewEdgeZoneID(subscriptionId string, locationName string, edgeZoneName string) EdgeZoneId

NewEdgeZoneID returns a new EdgeZoneId struct

func ParseEdgeZoneID

func ParseEdgeZoneID(input string) (*EdgeZoneId, error)

ParseEdgeZoneID parses 'input' into a EdgeZoneId

func ParseEdgeZoneIDInsensitively

func ParseEdgeZoneIDInsensitively(input string) (*EdgeZoneId, error)

ParseEdgeZoneIDInsensitively parses 'input' case-insensitively into a EdgeZoneId note: this method should only be used for API response data and not user input

func (*EdgeZoneId) FromParseResult

func (id *EdgeZoneId) FromParseResult(input resourceids.ParseResult) error

func (EdgeZoneId) ID

func (id EdgeZoneId) ID() string

ID returns the formatted Edge Zone ID

func (EdgeZoneId) Segments

func (id EdgeZoneId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Edge Zone ID

func (EdgeZoneId) String

func (id EdgeZoneId) String() string

String returns a human-readable description of this Edge Zone ID

type EdgeZoneListOffersOperationResponse

type EdgeZoneListOffersOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]VirtualMachineImageResource
}

type EdgeZoneListOperationOptions

type EdgeZoneListOperationOptions struct {
	Expand  *string
	Orderby *string
	Top     *int64
}

func DefaultEdgeZoneListOperationOptions

func DefaultEdgeZoneListOperationOptions() EdgeZoneListOperationOptions

func (EdgeZoneListOperationOptions) ToHeaders

func (EdgeZoneListOperationOptions) ToOData

func (EdgeZoneListOperationOptions) ToQuery

type EdgeZoneListOperationResponse

type EdgeZoneListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]VirtualMachineImageResource
}

type EdgeZoneListPublishersOperationResponse

type EdgeZoneListPublishersOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]VirtualMachineImageResource
}

type EdgeZoneListSkusOperationResponse

type EdgeZoneListSkusOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]VirtualMachineImageResource
}

type EdgeZonePublisherId

type EdgeZonePublisherId struct {
	SubscriptionId string
	LocationName   string
	EdgeZoneName   string
	PublisherName  string
}

EdgeZonePublisherId is a struct representing the Resource ID for a Edge Zone Publisher

func NewEdgeZonePublisherID

func NewEdgeZonePublisherID(subscriptionId string, locationName string, edgeZoneName string, publisherName string) EdgeZonePublisherId

NewEdgeZonePublisherID returns a new EdgeZonePublisherId struct

func ParseEdgeZonePublisherID

func ParseEdgeZonePublisherID(input string) (*EdgeZonePublisherId, error)

ParseEdgeZonePublisherID parses 'input' into a EdgeZonePublisherId

func ParseEdgeZonePublisherIDInsensitively

func ParseEdgeZonePublisherIDInsensitively(input string) (*EdgeZonePublisherId, error)

ParseEdgeZonePublisherIDInsensitively parses 'input' case-insensitively into a EdgeZonePublisherId note: this method should only be used for API response data and not user input

func (*EdgeZonePublisherId) FromParseResult

func (id *EdgeZonePublisherId) FromParseResult(input resourceids.ParseResult) error

func (EdgeZonePublisherId) ID

func (id EdgeZonePublisherId) ID() string

ID returns the formatted Edge Zone Publisher ID

func (EdgeZonePublisherId) Segments

func (id EdgeZonePublisherId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Edge Zone Publisher ID

func (EdgeZonePublisherId) String

func (id EdgeZonePublisherId) String() string

String returns a human-readable description of this Edge Zone Publisher ID

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *VirtualMachineImage
}

type HyperVGenerationTypes

type HyperVGenerationTypes string
const (
	HyperVGenerationTypesVOne HyperVGenerationTypes = "V1"
	HyperVGenerationTypesVTwo HyperVGenerationTypes = "V2"
)

func (*HyperVGenerationTypes) UnmarshalJSON

func (s *HyperVGenerationTypes) UnmarshalJSON(bytes []byte) error

type ImageDeprecationStatus

type ImageDeprecationStatus struct {
	AlternativeOption        *AlternativeOption `json:"alternativeOption,omitempty"`
	ImageState               *ImageState        `json:"imageState,omitempty"`
	ScheduledDeprecationTime *string            `json:"scheduledDeprecationTime,omitempty"`
}

func (*ImageDeprecationStatus) GetScheduledDeprecationTimeAsTime

func (o *ImageDeprecationStatus) GetScheduledDeprecationTimeAsTime() (*time.Time, error)

func (*ImageDeprecationStatus) SetScheduledDeprecationTimeAsTime

func (o *ImageDeprecationStatus) SetScheduledDeprecationTimeAsTime(input time.Time)

type ImageState

type ImageState string
const (
	ImageStateActive                  ImageState = "Active"
	ImageStateDeprecated              ImageState = "Deprecated"
	ImageStateScheduledForDeprecation ImageState = "ScheduledForDeprecation"
)

func (*ImageState) UnmarshalJSON

func (s *ImageState) UnmarshalJSON(bytes []byte) error

type ListByEdgeZoneCompleteResult

type ListByEdgeZoneCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []VirtualMachineImageResource
}

type ListByEdgeZoneOperationResponse

type ListByEdgeZoneOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]VirtualMachineImageResource
}

type ListOffersOperationResponse

type ListOffersOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]VirtualMachineImageResource
}

type ListOperationOptions

type ListOperationOptions struct {
	Expand  *string
	Orderby *string
	Top     *int64
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]VirtualMachineImageResource
}

type ListPublishersOperationResponse

type ListPublishersOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]VirtualMachineImageResource
}

type ListSkusOperationResponse

type ListSkusOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]VirtualMachineImageResource
}

type LocationId

type LocationId struct {
	SubscriptionId string
	LocationName   string
}

LocationId is a struct representing the Resource ID for a Location

func NewLocationID

func NewLocationID(subscriptionId string, locationName string) LocationId

NewLocationID returns a new LocationId struct

func ParseLocationID

func ParseLocationID(input string) (*LocationId, error)

ParseLocationID parses 'input' into a LocationId

func ParseLocationIDInsensitively

func ParseLocationIDInsensitively(input string) (*LocationId, error)

ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId note: this method should only be used for API response data and not user input

func (*LocationId) FromParseResult

func (id *LocationId) FromParseResult(input resourceids.ParseResult) error

func (LocationId) ID

func (id LocationId) ID() string

ID returns the formatted Location ID

func (LocationId) Segments

func (id LocationId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Location ID

func (LocationId) String

func (id LocationId) String() string

String returns a human-readable description of this Location ID

type OSDiskImage

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

type OfferId

type OfferId struct {
	SubscriptionId string
	LocationName   string
	PublisherName  string
	OfferName      string
}

OfferId is a struct representing the Resource ID for a Offer

func NewOfferID

func NewOfferID(subscriptionId string, locationName string, publisherName string, offerName string) OfferId

NewOfferID returns a new OfferId struct

func ParseOfferID

func ParseOfferID(input string) (*OfferId, error)

ParseOfferID parses 'input' into a OfferId

func ParseOfferIDInsensitively

func ParseOfferIDInsensitively(input string) (*OfferId, error)

ParseOfferIDInsensitively parses 'input' case-insensitively into a OfferId note: this method should only be used for API response data and not user input

func (*OfferId) FromParseResult

func (id *OfferId) FromParseResult(input resourceids.ParseResult) error

func (OfferId) ID

func (id OfferId) ID() string

ID returns the formatted Offer ID

func (OfferId) Segments

func (id OfferId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Offer ID

func (OfferId) String

func (id OfferId) String() string

String returns a human-readable description of this Offer ID

type OfferSkuId

type OfferSkuId struct {
	SubscriptionId string
	LocationName   string
	EdgeZoneName   string
	PublisherName  string
	OfferName      string
	SkuName        string
}

OfferSkuId is a struct representing the Resource ID for a Offer Sku

func NewOfferSkuID

func NewOfferSkuID(subscriptionId string, locationName string, edgeZoneName string, publisherName string, offerName string, skuName string) OfferSkuId

NewOfferSkuID returns a new OfferSkuId struct

func ParseOfferSkuID

func ParseOfferSkuID(input string) (*OfferSkuId, error)

ParseOfferSkuID parses 'input' into a OfferSkuId

func ParseOfferSkuIDInsensitively

func ParseOfferSkuIDInsensitively(input string) (*OfferSkuId, error)

ParseOfferSkuIDInsensitively parses 'input' case-insensitively into a OfferSkuId note: this method should only be used for API response data and not user input

func (*OfferSkuId) FromParseResult

func (id *OfferSkuId) FromParseResult(input resourceids.ParseResult) error

func (OfferSkuId) ID

func (id OfferSkuId) ID() string

ID returns the formatted Offer Sku ID

func (OfferSkuId) Segments

func (id OfferSkuId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Offer Sku ID

func (OfferSkuId) String

func (id OfferSkuId) String() string

String returns a human-readable description of this Offer Sku ID

type OfferSkuVersionId

type OfferSkuVersionId struct {
	SubscriptionId string
	LocationName   string
	EdgeZoneName   string
	PublisherName  string
	OfferName      string
	SkuName        string
	VersionName    string
}

OfferSkuVersionId is a struct representing the Resource ID for a Offer Sku Version

func NewOfferSkuVersionID

func NewOfferSkuVersionID(subscriptionId string, locationName string, edgeZoneName string, publisherName string, offerName string, skuName string, versionName string) OfferSkuVersionId

NewOfferSkuVersionID returns a new OfferSkuVersionId struct

func ParseOfferSkuVersionID

func ParseOfferSkuVersionID(input string) (*OfferSkuVersionId, error)

ParseOfferSkuVersionID parses 'input' into a OfferSkuVersionId

func ParseOfferSkuVersionIDInsensitively

func ParseOfferSkuVersionIDInsensitively(input string) (*OfferSkuVersionId, error)

ParseOfferSkuVersionIDInsensitively parses 'input' case-insensitively into a OfferSkuVersionId note: this method should only be used for API response data and not user input

func (*OfferSkuVersionId) FromParseResult

func (id *OfferSkuVersionId) FromParseResult(input resourceids.ParseResult) error

func (OfferSkuVersionId) ID

func (id OfferSkuVersionId) ID() string

ID returns the formatted Offer Sku Version ID

func (OfferSkuVersionId) Segments

func (id OfferSkuVersionId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Offer Sku Version ID

func (OfferSkuVersionId) String

func (id OfferSkuVersionId) String() string

String returns a human-readable description of this Offer Sku Version ID

type OperatingSystemTypes

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

func (*OperatingSystemTypes) UnmarshalJSON

func (s *OperatingSystemTypes) UnmarshalJSON(bytes []byte) error

type PublisherId

type PublisherId struct {
	SubscriptionId string
	LocationName   string
	PublisherName  string
}

PublisherId is a struct representing the Resource ID for a Publisher

func NewPublisherID

func NewPublisherID(subscriptionId string, locationName string, publisherName string) PublisherId

NewPublisherID returns a new PublisherId struct

func ParsePublisherID

func ParsePublisherID(input string) (*PublisherId, error)

ParsePublisherID parses 'input' into a PublisherId

func ParsePublisherIDInsensitively

func ParsePublisherIDInsensitively(input string) (*PublisherId, error)

ParsePublisherIDInsensitively parses 'input' case-insensitively into a PublisherId note: this method should only be used for API response data and not user input

func (*PublisherId) FromParseResult

func (id *PublisherId) FromParseResult(input resourceids.ParseResult) error

func (PublisherId) ID

func (id PublisherId) ID() string

ID returns the formatted Publisher ID

func (PublisherId) Segments

func (id PublisherId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Publisher ID

func (PublisherId) String

func (id PublisherId) String() string

String returns a human-readable description of this Publisher ID

type PurchasePlan

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

type SkuId

type SkuId struct {
	SubscriptionId string
	LocationName   string
	PublisherName  string
	OfferName      string
	SkuName        string
}

SkuId is a struct representing the Resource ID for a Sku

func NewSkuID

func NewSkuID(subscriptionId string, locationName string, publisherName string, offerName string, skuName string) SkuId

NewSkuID returns a new SkuId struct

func ParseSkuID

func ParseSkuID(input string) (*SkuId, error)

ParseSkuID parses 'input' into a SkuId

func ParseSkuIDInsensitively

func ParseSkuIDInsensitively(input string) (*SkuId, error)

ParseSkuIDInsensitively parses 'input' case-insensitively into a SkuId note: this method should only be used for API response data and not user input

func (*SkuId) FromParseResult

func (id *SkuId) FromParseResult(input resourceids.ParseResult) error

func (SkuId) ID

func (id SkuId) ID() string

ID returns the formatted Sku ID

func (SkuId) Segments

func (id SkuId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Sku ID

func (SkuId) String

func (id SkuId) String() string

String returns a human-readable description of this Sku ID

type SkuVersionId

type SkuVersionId struct {
	SubscriptionId string
	LocationName   string
	PublisherName  string
	OfferName      string
	SkuName        string
	VersionName    string
}

SkuVersionId is a struct representing the Resource ID for a Sku Version

func NewSkuVersionID

func NewSkuVersionID(subscriptionId string, locationName string, publisherName string, offerName string, skuName string, versionName string) SkuVersionId

NewSkuVersionID returns a new SkuVersionId struct

func ParseSkuVersionID

func ParseSkuVersionID(input string) (*SkuVersionId, error)

ParseSkuVersionID parses 'input' into a SkuVersionId

func ParseSkuVersionIDInsensitively

func ParseSkuVersionIDInsensitively(input string) (*SkuVersionId, error)

ParseSkuVersionIDInsensitively parses 'input' case-insensitively into a SkuVersionId note: this method should only be used for API response data and not user input

func (*SkuVersionId) FromParseResult

func (id *SkuVersionId) FromParseResult(input resourceids.ParseResult) error

func (SkuVersionId) ID

func (id SkuVersionId) ID() string

ID returns the formatted Sku Version ID

func (SkuVersionId) Segments

func (id SkuVersionId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Sku Version ID

func (SkuVersionId) String

func (id SkuVersionId) String() string

String returns a human-readable description of this Sku Version ID

type VMDiskTypes

type VMDiskTypes string
const (
	VMDiskTypesNone      VMDiskTypes = "None"
	VMDiskTypesUnmanaged VMDiskTypes = "Unmanaged"
)

func (*VMDiskTypes) UnmarshalJSON

func (s *VMDiskTypes) UnmarshalJSON(bytes []byte) error

type VMImageOfferId

type VMImageOfferId struct {
	SubscriptionId string
	LocationName   string
	EdgeZoneName   string
	PublisherName  string
	OfferName      string
}

VMImageOfferId is a struct representing the Resource ID for a V M Image Offer

func NewVMImageOfferID

func NewVMImageOfferID(subscriptionId string, locationName string, edgeZoneName string, publisherName string, offerName string) VMImageOfferId

NewVMImageOfferID returns a new VMImageOfferId struct

func ParseVMImageOfferID

func ParseVMImageOfferID(input string) (*VMImageOfferId, error)

ParseVMImageOfferID parses 'input' into a VMImageOfferId

func ParseVMImageOfferIDInsensitively

func ParseVMImageOfferIDInsensitively(input string) (*VMImageOfferId, error)

ParseVMImageOfferIDInsensitively parses 'input' case-insensitively into a VMImageOfferId note: this method should only be used for API response data and not user input

func (*VMImageOfferId) FromParseResult

func (id *VMImageOfferId) FromParseResult(input resourceids.ParseResult) error

func (VMImageOfferId) ID

func (id VMImageOfferId) ID() string

ID returns the formatted V M Image Offer ID

func (VMImageOfferId) Segments

func (id VMImageOfferId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this V M Image Offer ID

func (VMImageOfferId) String

func (id VMImageOfferId) String() string

String returns a human-readable description of this V M Image Offer ID

type VirtualMachineImage

type VirtualMachineImage struct {
	ExtendedLocation *edgezones.Model               `json:"extendedLocation,omitempty"`
	Id               *string                        `json:"id,omitempty"`
	Location         string                         `json:"location"`
	Name             string                         `json:"name"`
	Properties       *VirtualMachineImageProperties `json:"properties,omitempty"`
	Tags             *map[string]string             `json:"tags,omitempty"`
}

type VirtualMachineImageFeature

type VirtualMachineImageFeature struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

type VirtualMachineImageProperties

type VirtualMachineImageProperties struct {
	Architecture                 *ArchitectureTypes            `json:"architecture,omitempty"`
	AutomaticOSUpgradeProperties *AutomaticOSUpgradeProperties `json:"automaticOSUpgradeProperties,omitempty"`
	DataDiskImages               *[]DataDiskImage              `json:"dataDiskImages,omitempty"`
	Disallowed                   *DisallowedConfiguration      `json:"disallowed,omitempty"`
	Features                     *[]VirtualMachineImageFeature `json:"features,omitempty"`
	HyperVGeneration             *HyperVGenerationTypes        `json:"hyperVGeneration,omitempty"`
	ImageDeprecationStatus       *ImageDeprecationStatus       `json:"imageDeprecationStatus,omitempty"`
	OsDiskImage                  *OSDiskImage                  `json:"osDiskImage,omitempty"`
	Plan                         *PurchasePlan                 `json:"plan,omitempty"`
}

type VirtualMachineImageResource

type VirtualMachineImageResource struct {
	ExtendedLocation *edgezones.Model   `json:"extendedLocation,omitempty"`
	Id               *string            `json:"id,omitempty"`
	Location         string             `json:"location"`
	Name             string             `json:"name"`
	Tags             *map[string]string `json:"tags,omitempty"`
}

type VirtualMachineImageResourceOperationPredicate

type VirtualMachineImageResourceOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
}

func (VirtualMachineImageResourceOperationPredicate) Matches

type VirtualMachineImagesClient

type VirtualMachineImagesClient struct {
	Client *resourcemanager.Client
}

func NewVirtualMachineImagesClientWithBaseURI

func NewVirtualMachineImagesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachineImagesClient, error)

func (VirtualMachineImagesClient) EdgeZoneGet

EdgeZoneGet ...

func (VirtualMachineImagesClient) EdgeZoneList

EdgeZoneList ...

func (VirtualMachineImagesClient) EdgeZoneListOffers

EdgeZoneListOffers ...

func (VirtualMachineImagesClient) EdgeZoneListPublishers

EdgeZoneListPublishers ...

func (VirtualMachineImagesClient) EdgeZoneListSkus

EdgeZoneListSkus ...

func (VirtualMachineImagesClient) Get

Get ...

func (VirtualMachineImagesClient) List

List ...

func (VirtualMachineImagesClient) ListByEdgeZone

ListByEdgeZone ...

func (VirtualMachineImagesClient) ListByEdgeZoneComplete

ListByEdgeZoneComplete retrieves all the results into a single object

func (VirtualMachineImagesClient) ListByEdgeZoneCompleteMatchingPredicate

func (c VirtualMachineImagesClient) ListByEdgeZoneCompleteMatchingPredicate(ctx context.Context, id EdgeZoneId, predicate VirtualMachineImageResourceOperationPredicate) (result ListByEdgeZoneCompleteResult, err error)

ListByEdgeZoneCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (VirtualMachineImagesClient) ListOffers

ListOffers ...

func (VirtualMachineImagesClient) ListPublishers

ListPublishers ...

func (VirtualMachineImagesClient) ListSkus

ListSkus ...

Jump to

Keyboard shortcuts

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