/usr/share/gocode/src/github.com/Azure/azure-sdk-for-go/management/osimage/entities.go is in golang-github-azure-azure-sdk-for-go-dev 2.1.1~beta-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | package osimage
import (
"encoding/xml"
"github.com/Azure/azure-sdk-for-go/management"
)
// OSImageClient is used to perform operations on Azure Locations
type OSImageClient struct {
client management.Client
}
type ListOSImagesResponse struct {
XMLName xml.Name `xml:"Images"`
OSImages []OSImage `xml:"OSImage"`
}
type OSImage struct {
Category string // Public || Private || MSDN
Label string // Specifies an identifier for the image.
LogicalSizeInGB float64 //Specifies the size, in GB, of the image.
Name string // Specifies the name of the operating system image. This is the name that is used when creating one or more virtual machines using the image.
OS string // Linux || Windows
Eula string // Specifies the End User License Agreement that is associated with the image. The value for this element is a string, but it is recommended that the value be a URL that points to a EULA.
Description string // Specifies the description of the image.
Location string // The geo-location in which this media is located. The Location value is derived from storage account that contains the blob in which the media is located. If the storage account belongs to an affinity group the value is NULL.
AffinityGroup string // Specifies the affinity in which the media is located. The AffinityGroup value is derived from storage account that contains the blob in which the media is located. If the storage account does not belong to an affinity group the value is NULL and the element is not displayed in the response. This value is NULL for platform images.
MediaLink string // Specifies the location of the vhd file for the image. The storage account where the vhd is located must be associated with the specified subscription.
ImageFamily string // Specifies a value that can be used to group images.
PublishedDate string // Specifies the date when the image was added to the image repository.
IsPremium string // Indicates whether the image contains software or associated services that will incur charges above the core price for the virtual machine. For additional details, see the PricingDetailLink element.
PrivacyURI string `xml:"PrivacyUri"` // Specifies the URI that points to a document that contains the privacy policy related to the image.
RecommendedVMSize string // Specifies the size to use for the virtual machine that is created from the image.
PublisherName string // The name of the publisher of the image. All user images have a publisher name of User.
PricingDetailLink string // Specifies a URL for an image with IsPremium set to true, which contains the pricing details for a virtual machine that is created from the image.
SmallIconURI string `xml:"SmallIconUri"` // Specifies the URI to the small icon that is displayed when the image is presented in the Microsoft Azure Management Portal.
Language string // Specifies the language of the image.
IOType IOType // Provisioned || Standard
}
type IOType string
const (
IOTypeProvisioned IOType = "Provisioned"
IOTypeStandard IOType = "Standard"
)
|