communitygalleryimageversions

package
v0.20231124.1163225 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MPL-2.0 Imports: 12 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/communitygalleryimageversions Documentation

The communitygalleryimageversions SDK allows for interaction with the Azure Resource Manager Service compute (API Version 2022-03-03).

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/2022-03-03/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
}

Example Usage: CommunityGalleryImageVersionsClient.List

ctx := context.TODO()
id := communitygalleryimageversions.NewCommunityGalleryImageID("12345678-1234-9876-4563-123456789012", "locationValue", "communityGalleryValue", "imageValue")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForSharedGalleryHostCaching

func PossibleValuesForSharedGalleryHostCaching() []string

func ValidateCommunityGalleryImageID added in v0.20230523.1140858

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

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

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

type CommunityGalleryImageId struct {
	SubscriptionId       string
	LocationName         string
	CommunityGalleryName string
	ImageName            string
}

CommunityGalleryImageId is a struct representing the Resource ID for a Community Gallery Image

func NewCommunityGalleryImageID added in v0.20230523.1140858

func NewCommunityGalleryImageID(subscriptionId string, locationName string, communityGalleryName string, imageName string) CommunityGalleryImageId

NewCommunityGalleryImageID returns a new CommunityGalleryImageId struct

func ParseCommunityGalleryImageID added in v0.20230523.1140858

func ParseCommunityGalleryImageID(input string) (*CommunityGalleryImageId, error)

ParseCommunityGalleryImageID parses 'input' into a CommunityGalleryImageId

func ParseCommunityGalleryImageIDInsensitively added in v0.20230523.1140858

func ParseCommunityGalleryImageIDInsensitively(input string) (*CommunityGalleryImageId, error)

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

func (CommunityGalleryImageId) ID added in v0.20230523.1140858

ID returns the formatted Community Gallery Image ID

func (CommunityGalleryImageId) Segments added in v0.20230523.1140858

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

func (CommunityGalleryImageId) String added in v0.20230523.1140858

func (id CommunityGalleryImageId) String() string

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

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 CommunityGalleryImageVersionOperationPredicate

type CommunityGalleryImageVersionOperationPredicate struct {
	Location *string
	Name     *string
	Type     *string
}

func (CommunityGalleryImageVersionOperationPredicate) Matches

type CommunityGalleryImageVersionProperties

type CommunityGalleryImageVersionProperties struct {
	EndOfLifeDate     *string                                  `json:"endOfLifeDate,omitempty"`
	ExcludeFromLatest *bool                                    `json:"excludeFromLatest,omitempty"`
	PublishedDate     *string                                  `json:"publishedDate,omitempty"`
	StorageProfile    *SharedGalleryImageVersionStorageProfile `json:"storageProfile,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 ...

func (CommunityGalleryImageVersionsClient) List

List ...

func (CommunityGalleryImageVersionsClient) ListComplete

ListComplete retrieves all the results into a single object

func (CommunityGalleryImageVersionsClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type GetOperationResponse

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

type ListCompleteResult

type ListCompleteResult struct {
	Items []CommunityGalleryImageVersion
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]CommunityGalleryImageVersion
}

type SharedGalleryDataDiskImage

type SharedGalleryDataDiskImage struct {
	DiskSizeGB  *int64                    `json:"diskSizeGB,omitempty"`
	HostCaching *SharedGalleryHostCaching `json:"hostCaching,omitempty"`
	Lun         int64                     `json:"lun"`
}

type SharedGalleryDiskImage

type SharedGalleryDiskImage struct {
	DiskSizeGB  *int64                    `json:"diskSizeGB,omitempty"`
	HostCaching *SharedGalleryHostCaching `json:"hostCaching,omitempty"`
}

type SharedGalleryHostCaching

type SharedGalleryHostCaching string
const (
	SharedGalleryHostCachingNone      SharedGalleryHostCaching = "None"
	SharedGalleryHostCachingReadOnly  SharedGalleryHostCaching = "ReadOnly"
	SharedGalleryHostCachingReadWrite SharedGalleryHostCaching = "ReadWrite"
)

func (*SharedGalleryHostCaching) UnmarshalJSON added in v0.20230808.1103829

func (s *SharedGalleryHostCaching) UnmarshalJSON(bytes []byte) error

type SharedGalleryImageVersionStorageProfile

type SharedGalleryImageVersionStorageProfile struct {
	DataDiskImages *[]SharedGalleryDataDiskImage `json:"dataDiskImages,omitempty"`
	OsDiskImage    *SharedGalleryDiskImage       `json:"osDiskImage,omitempty"`
}

Jump to

Keyboard shortcuts

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