communitygalleryimageversions

package
v0.20241212.1154051 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MPL-2.0 Imports: 12 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/communitygalleryimageversions Documentation

The communitygalleryimageversions SDK allows for interaction with Azure Resource Manager 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/communitygalleryimageversions"

Client Initialization

client := communitygalleryimageversions.NewCommunityGalleryImageVersionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: CommunityGalleryImageVersionsClient.Get

ctx := context.TODO()
id := communitygalleryimageversions.NewCommunityGalleryImageVersionID("12345678-1234-9876-4563-123456789012", "locationName", "communityGalleryName", "imageName", "versionName")

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCommunityGalleryImageVersionID

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

ValidateCommunityGalleryImageVersionID checks that 'input' can be parsed as a Community Gallery Image Version ID

Types

type CommunityGalleryIdentifier

type CommunityGalleryIdentifier struct {
	UniqueId *string `json:"uniqueId,omitempty"`
}

type CommunityGalleryImageVersion

type CommunityGalleryImageVersion struct {
	Identifier *CommunityGalleryIdentifier             `json:"identifier,omitempty"`
	Location   *string                                 `json:"location,omitempty"`
	Name       *string                                 `json:"name,omitempty"`
	Properties *CommunityGalleryImageVersionProperties `json:"properties,omitempty"`
	Type       *string                                 `json:"type,omitempty"`
}

type CommunityGalleryImageVersionId

type CommunityGalleryImageVersionId struct {
	SubscriptionId       string
	LocationName         string
	CommunityGalleryName string
	ImageName            string
	VersionName          string
}

CommunityGalleryImageVersionId is a struct representing the Resource ID for a Community Gallery Image Version

func NewCommunityGalleryImageVersionID

func NewCommunityGalleryImageVersionID(subscriptionId string, locationName string, communityGalleryName string, imageName string, versionName string) CommunityGalleryImageVersionId

NewCommunityGalleryImageVersionID returns a new CommunityGalleryImageVersionId struct

func ParseCommunityGalleryImageVersionID

func ParseCommunityGalleryImageVersionID(input string) (*CommunityGalleryImageVersionId, error)

ParseCommunityGalleryImageVersionID parses 'input' into a CommunityGalleryImageVersionId

func ParseCommunityGalleryImageVersionIDInsensitively

func ParseCommunityGalleryImageVersionIDInsensitively(input string) (*CommunityGalleryImageVersionId, error)

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

func (*CommunityGalleryImageVersionId) FromParseResult

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

func (CommunityGalleryImageVersionId) ID

ID returns the formatted Community Gallery Image Version ID

func (CommunityGalleryImageVersionId) Segments

Segments returns a slice of Resource ID Segments which comprise this Community Gallery Image Version ID

func (CommunityGalleryImageVersionId) String

String returns a human-readable description of this Community Gallery Image Version ID

type CommunityGalleryImageVersionProperties

type CommunityGalleryImageVersionProperties struct {
	EndOfLifeDate *string `json:"endOfLifeDate,omitempty"`
	PublishedDate *string `json:"publishedDate,omitempty"`
}

func (*CommunityGalleryImageVersionProperties) GetEndOfLifeDateAsTime

func (o *CommunityGalleryImageVersionProperties) GetEndOfLifeDateAsTime() (*time.Time, error)

func (*CommunityGalleryImageVersionProperties) GetPublishedDateAsTime

func (o *CommunityGalleryImageVersionProperties) GetPublishedDateAsTime() (*time.Time, error)

func (*CommunityGalleryImageVersionProperties) SetEndOfLifeDateAsTime

func (o *CommunityGalleryImageVersionProperties) SetEndOfLifeDateAsTime(input time.Time)

func (*CommunityGalleryImageVersionProperties) SetPublishedDateAsTime

func (o *CommunityGalleryImageVersionProperties) SetPublishedDateAsTime(input time.Time)

type CommunityGalleryImageVersionsClient

type CommunityGalleryImageVersionsClient struct {
	Client *resourcemanager.Client
}

func NewCommunityGalleryImageVersionsClientWithBaseURI

func NewCommunityGalleryImageVersionsClientWithBaseURI(sdkApi sdkEnv.Api) (*CommunityGalleryImageVersionsClient, error)

func (CommunityGalleryImageVersionsClient) Get

Get ...

type GetOperationResponse

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

Jump to

Keyboard shortcuts

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