communitygalleryimageversions

package
v0.0.0-...-a81a29a Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

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

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

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

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

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

NewCommunityGalleryImageID returns a new CommunityGalleryImageId struct

func ParseCommunityGalleryImageID

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

ParseCommunityGalleryImageID parses 'input' into a CommunityGalleryImageId

func ParseCommunityGalleryImageIDInsensitively

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

ID returns the formatted Community Gallery Image ID

func (CommunityGalleryImageId) Segments

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

func (CommunityGalleryImageId) String

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

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) 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 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 autorest.Client
	// contains filtered or unexported fields
}

func NewCommunityGalleryImageVersionsClientWithBaseURI

func NewCommunityGalleryImageVersionsClientWithBaseURI(endpoint string) CommunityGalleryImageVersionsClient

func (CommunityGalleryImageVersionsClient) Get

Get ...

func (CommunityGalleryImageVersionsClient) List

List ...

func (CommunityGalleryImageVersionsClient) ListComplete

ListComplete retrieves all of the results into a single object

func (CommunityGalleryImageVersionsClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type GetOperationResponse

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

type ListCompleteResult

type ListCompleteResult struct {
	Items []CommunityGalleryImageVersion
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]CommunityGalleryImageVersion
	// contains filtered or unexported fields
}

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

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"
)

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