README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/communitygalleryimages
Documentation
The communitygalleryimages
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/communitygalleryimages"
Client Initialization
client := communitygalleryimages.NewCommunityGalleryImagesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: CommunityGalleryImagesClient.Get
ctx := context.TODO()
id := communitygalleryimages.NewImageID("12345678-1234-9876-4563-123456789012", "locationValue", "galleryUniqueValue", "galleryImageValue")
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
}
Documentation ¶
Index ¶
- func PossibleValuesForHyperVGeneration() []string
- func PossibleValuesForOperatingSystemStateTypes() []string
- func PossibleValuesForOperatingSystemTypes() []string
- func ValidateImageID(input interface{}, key string) (warnings []string, errors []error)
- type CommunityGalleryIdentifier
- type CommunityGalleryImage
- type CommunityGalleryImageProperties
- type CommunityGalleryImagesClient
- type Disallowed
- type GalleryImageFeature
- type GalleryImageIdentifier
- type GetOperationResponse
- type HyperVGeneration
- type ImageId
- type ImagePurchasePlan
- type OperatingSystemStateTypes
- type OperatingSystemTypes
- type RecommendedMachineConfiguration
- type ResourceRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForHyperVGeneration ¶
func PossibleValuesForHyperVGeneration() []string
func PossibleValuesForOperatingSystemStateTypes ¶
func PossibleValuesForOperatingSystemStateTypes() []string
func PossibleValuesForOperatingSystemTypes ¶
func PossibleValuesForOperatingSystemTypes() []string
func ValidateImageID ¶
ValidateImageID checks that 'input' can be parsed as a Image ID
Types ¶
type CommunityGalleryIdentifier ¶
type CommunityGalleryIdentifier struct {
UniqueId *string `json:"uniqueId,omitempty"`
}
type CommunityGalleryImage ¶
type CommunityGalleryImage struct { Identifier *CommunityGalleryIdentifier `json:"identifier,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *CommunityGalleryImageProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type CommunityGalleryImageProperties ¶
type CommunityGalleryImageProperties struct { Disallowed *Disallowed `json:"disallowed,omitempty"` EndOfLifeDate *string `json:"endOfLifeDate,omitempty"` Features *[]GalleryImageFeature `json:"features,omitempty"` HyperVGeneration *HyperVGeneration `json:"hyperVGeneration,omitempty"` Identifier GalleryImageIdentifier `json:"identifier"` OsState OperatingSystemStateTypes `json:"osState"` OsType OperatingSystemTypes `json:"osType"` PurchasePlan *ImagePurchasePlan `json:"purchasePlan,omitempty"` Recommended *RecommendedMachineConfiguration `json:"recommended,omitempty"` }
func (*CommunityGalleryImageProperties) GetEndOfLifeDateAsTime ¶
func (o *CommunityGalleryImageProperties) GetEndOfLifeDateAsTime() (*time.Time, error)
func (*CommunityGalleryImageProperties) SetEndOfLifeDateAsTime ¶
func (o *CommunityGalleryImageProperties) SetEndOfLifeDateAsTime(input time.Time)
type CommunityGalleryImagesClient ¶
type CommunityGalleryImagesClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewCommunityGalleryImagesClientWithBaseURI ¶
func NewCommunityGalleryImagesClientWithBaseURI(endpoint string) CommunityGalleryImagesClient
func (CommunityGalleryImagesClient) Get ¶
func (c CommunityGalleryImagesClient) Get(ctx context.Context, id ImageId) (result GetOperationResponse, err error)
Get ...
type Disallowed ¶
type Disallowed struct {
DiskTypes *[]string `json:"diskTypes,omitempty"`
}
type GalleryImageFeature ¶
type GalleryImageIdentifier ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *CommunityGalleryImage }
type HyperVGeneration ¶
type HyperVGeneration string
const ( HyperVGenerationVOne HyperVGeneration = "V1" HyperVGenerationVTwo HyperVGeneration = "V2" )
type ImageId ¶
type ImageId struct { SubscriptionId string Location string GalleryUniqueName string GalleryImageName string }
ImageId is a struct representing the Resource ID for a Image
func NewImageID ¶
func NewImageID(subscriptionId string, location string, galleryUniqueName string, galleryImageName string) ImageId
NewImageID returns a new ImageId struct
func ParseImageID ¶
ParseImageID parses 'input' into a ImageId
func ParseImageIDInsensitively ¶
ParseImageIDInsensitively parses 'input' case-insensitively into a ImageId note: this method should only be used for API response data and not user input
func (ImageId) Segments ¶
func (id ImageId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Image ID
type ImagePurchasePlan ¶
type OperatingSystemStateTypes ¶
type OperatingSystemStateTypes string
const ( OperatingSystemStateTypesGeneralized OperatingSystemStateTypes = "Generalized" OperatingSystemStateTypesSpecialized OperatingSystemStateTypes = "Specialized" )
type OperatingSystemTypes ¶
type OperatingSystemTypes string
const ( OperatingSystemTypesLinux OperatingSystemTypes = "Linux" OperatingSystemTypesWindows OperatingSystemTypes = "Windows" )
type RecommendedMachineConfiguration ¶
type RecommendedMachineConfiguration struct { Memory *ResourceRange `json:"memory,omitempty"` VCPUs *ResourceRange `json:"vCPUs,omitempty"` }
type ResourceRange ¶
Source Files ¶
- client.go
- constants.go
- id_image.go
- method_get_autorest.go
- model_communitygalleryidentifier.go
- model_communitygalleryimage.go
- model_communitygalleryimageproperties.go
- model_disallowed.go
- model_galleryimagefeature.go
- model_galleryimageidentifier.go
- model_imagepurchaseplan.go
- model_recommendedmachineconfiguration.go
- model_resourcerange.go
- version.go