package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev
# README
github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/virtualmachineimages
Documentation
The virtualmachineimages
SDK allows for interaction with the Azure Resource Manager Service compute
(API Version 2021-07-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/2021-07-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.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
}
# Functions
No description provided by the author
No description provided by the author
NewEdgeZoneID returns a new EdgeZoneId struct.
NewEdgeZonePublisherID returns a new EdgeZonePublisherId struct.
NewLocationID returns a new LocationId struct.
NewOfferID returns a new OfferId struct.
NewOfferSkuID returns a new OfferSkuId struct.
NewOfferSkuVersionID returns a new OfferSkuVersionId struct.
NewPublisherID returns a new PublisherId struct.
NewSkuID returns a new SkuId struct.
NewSkuVersionID returns a new SkuVersionId struct.
No description provided by the author
NewVMImageOfferID returns a new VMImageOfferId struct.
ParseEdgeZoneID parses 'input' into a EdgeZoneId.
ParseEdgeZoneIDInsensitively parses 'input' case-insensitively into a EdgeZoneId note: this method should only be used for API response data and not user input.
ParseEdgeZonePublisherID parses 'input' into a EdgeZonePublisherId.
ParseEdgeZonePublisherIDInsensitively parses 'input' case-insensitively into a EdgeZonePublisherId note: this method should only be used for API response data and not user input.
ParseLocationID parses 'input' into a LocationId.
ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId note: this method should only be used for API response data and not user input.
ParseOfferID parses 'input' into a OfferId.
ParseOfferIDInsensitively parses 'input' case-insensitively into a OfferId note: this method should only be used for API response data and not user input.
ParseOfferSkuID parses 'input' into a OfferSkuId.
ParseOfferSkuIDInsensitively parses 'input' case-insensitively into a OfferSkuId note: this method should only be used for API response data and not user input.
ParseOfferSkuVersionID parses 'input' into a OfferSkuVersionId.
ParseOfferSkuVersionIDInsensitively parses 'input' case-insensitively into a OfferSkuVersionId note: this method should only be used for API response data and not user input.
ParsePublisherID parses 'input' into a PublisherId.
ParsePublisherIDInsensitively parses 'input' case-insensitively into a PublisherId note: this method should only be used for API response data and not user input.
ParseSkuID parses 'input' into a SkuId.
ParseSkuIDInsensitively parses 'input' case-insensitively into a SkuId note: this method should only be used for API response data and not user input.
ParseSkuVersionID parses 'input' into a SkuVersionId.
ParseSkuVersionIDInsensitively parses 'input' case-insensitively into a SkuVersionId note: this method should only be used for API response data and not user input.
ParseVMImageOfferID parses 'input' into a VMImageOfferId.
ParseVMImageOfferIDInsensitively parses 'input' case-insensitively into a VMImageOfferId note: this method should only be used for API response data and not user input.
No description provided by the author
No description provided by the author
No description provided by the author
ValidateEdgeZoneID checks that 'input' can be parsed as a Edge Zone ID.
ValidateEdgeZonePublisherID checks that 'input' can be parsed as a Edge Zone Publisher ID.
ValidateLocationID checks that 'input' can be parsed as a Location ID.
ValidateOfferID checks that 'input' can be parsed as a Offer ID.
ValidateOfferSkuID checks that 'input' can be parsed as a Offer Sku ID.
ValidateOfferSkuVersionID checks that 'input' can be parsed as a Offer Sku Version ID.
ValidatePublisherID checks that 'input' can be parsed as a Publisher ID.
ValidateSkuID checks that 'input' can be parsed as a Sku ID.
ValidateSkuVersionID checks that 'input' can be parsed as a Sku Version ID.
ValidateVMImageOfferID checks that 'input' can be parsed as a V M Image Offer ID.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EdgeZoneId is a struct representing the Resource ID for a Edge Zone.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EdgeZonePublisherId is a struct representing the Resource ID for a Edge Zone Publisher.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LocationId is a struct representing the Resource ID for a Location.
OfferId is a struct representing the Resource ID for a Offer.
OfferSkuId is a struct representing the Resource ID for a Offer Sku.
OfferSkuVersionId is a struct representing the Resource ID for a Offer Sku Version.
No description provided by the author
PublisherId is a struct representing the Resource ID for a Publisher.
No description provided by the author
SkuId is a struct representing the Resource ID for a Sku.
SkuVersionId is a struct representing the Resource ID for a Sku Version.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
VMImageOfferId is a struct representing the Resource ID for a V M Image Offer.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author