communitygalleryimageversions

package
v0.20230807.1063129 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 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.NewCommunityGalleryImageVersionID("12345678-1234-9876-4563-123456789012", "locationValue", "communityGalleryValue", "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 ValidateCommunityGalleryImageVersionID added in v0.20230523.1140858

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 added in v0.20230523.1140858

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 added in v0.20230523.1140858

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

NewCommunityGalleryImageVersionID returns a new CommunityGalleryImageVersionId struct

func ParseCommunityGalleryImageVersionID added in v0.20230523.1140858

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

ParseCommunityGalleryImageVersionID parses 'input' into a CommunityGalleryImageVersionId

func ParseCommunityGalleryImageVersionIDInsensitively added in v0.20230523.1140858

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) ID added in v0.20230523.1140858

ID returns the formatted Community Gallery Image Version ID

func (CommunityGalleryImageVersionId) Segments added in v0.20230523.1140858

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

func (CommunityGalleryImageVersionId) String added in v0.20230523.1140858

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 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
}

Jump to

Keyboard shortcuts

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