communitygalleryimageversions

package
v0.20230412.1005112 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MPL-2.0 Imports: 9 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 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/communitygalleryimageversions"

Client Initialization

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

Example Usage: CommunityGalleryImageVersionsClient.Get

ctx := context.TODO()
id := communitygalleryimageversions.NewVersionID("12345678-1234-9876-4563-123456789012", "locationValue", "sharedGalleryValue", "imageValue", "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
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateVersionID

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

ValidateVersionID checks that 'input' can be parsed as a 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 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 autorest.Client
	// contains filtered or unexported fields
}

func NewCommunityGalleryImageVersionsClientWithBaseURI

func NewCommunityGalleryImageVersionsClientWithBaseURI(endpoint string) CommunityGalleryImageVersionsClient

func (CommunityGalleryImageVersionsClient) Get

Get ...

type GetOperationResponse

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

type VersionId

type VersionId struct {
	SubscriptionId    string
	LocationName      string
	SharedGalleryName string
	ImageName         string
	VersionName       string
}

VersionId is a struct representing the Resource ID for a Version

func NewVersionID

func NewVersionID(subscriptionId string, locationName string, sharedGalleryName string, imageName string, versionName string) VersionId

NewVersionID returns a new VersionId struct

func ParseVersionID

func ParseVersionID(input string) (*VersionId, error)

ParseVersionID parses 'input' into a VersionId

func ParseVersionIDInsensitively

func ParseVersionIDInsensitively(input string) (*VersionId, error)

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

func (VersionId) ID

func (id VersionId) ID() string

ID returns the formatted Version ID

func (VersionId) Segments

func (id VersionId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Version ID

func (VersionId) String

func (id VersionId) String() string

String returns a human-readable description of this Version ID

Jump to

Keyboard shortcuts

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