restic/vendor/github.com/Azure/azure-sdk-for-go/management/osimage/entities.go

66 lines
4.0 KiB
Go

// +build go1.7
package osimage
// Copyright 2017 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
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 {
XMLName xml.Name `xml:"http://schemas.microsoft.com/windowsazure OSImage"`
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.
IconURI string `xml:"IconUri"` // Specifies the Uri to the icon that is displayed for the image in the Management Portal.
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"
)