README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-07-03/communitygalleryimageversions
Documentation
The communitygalleryimageversions
SDK allows for interaction with the Azure Resource Manager Service compute
(API Version 2023-07-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/2023-07-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 ¶
- func PossibleValuesForSharedGalleryHostCaching() []string
- func ValidateCommunityGalleryImageID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateCommunityGalleryImageVersionID(input interface{}, key string) (warnings []string, errors []error)
- type CommunityGalleryDisclaimer
- type CommunityGalleryIdentifier
- type CommunityGalleryImageId
- func NewCommunityGalleryImageID(subscriptionId string, locationName string, communityGalleryName string, ...) CommunityGalleryImageId
- func ParseCommunityGalleryImageID(input string) (*CommunityGalleryImageId, error)
- func ParseCommunityGalleryImageIDInsensitively(input string) (*CommunityGalleryImageId, error)
- type CommunityGalleryImageVersion
- type CommunityGalleryImageVersionId
- func NewCommunityGalleryImageVersionID(subscriptionId string, locationName string, communityGalleryName string, ...) CommunityGalleryImageVersionId
- func ParseCommunityGalleryImageVersionID(input string) (*CommunityGalleryImageVersionId, error)
- func ParseCommunityGalleryImageVersionIDInsensitively(input string) (*CommunityGalleryImageVersionId, error)
- type CommunityGalleryImageVersionOperationPredicate
- type CommunityGalleryImageVersionProperties
- func (o *CommunityGalleryImageVersionProperties) GetEndOfLifeDateAsTime() (*time.Time, error)
- func (o *CommunityGalleryImageVersionProperties) GetPublishedDateAsTime() (*time.Time, error)
- func (o *CommunityGalleryImageVersionProperties) SetEndOfLifeDateAsTime(input time.Time)
- func (o *CommunityGalleryImageVersionProperties) SetPublishedDateAsTime(input time.Time)
- type CommunityGalleryImageVersionsClient
- func (c CommunityGalleryImageVersionsClient) Get(ctx context.Context, id CommunityGalleryImageVersionId) (result GetOperationResponse, err error)
- func (c CommunityGalleryImageVersionsClient) List(ctx context.Context, id CommunityGalleryImageId) (result ListOperationResponse, err error)
- func (c CommunityGalleryImageVersionsClient) ListComplete(ctx context.Context, id CommunityGalleryImageId) (ListCompleteResult, error)
- func (c CommunityGalleryImageVersionsClient) ListCompleteMatchingPredicate(ctx context.Context, id CommunityGalleryImageId, ...) (result ListCompleteResult, err error)
- type GetOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationResponse
- type SharedGalleryDataDiskImage
- type SharedGalleryDiskImage
- type SharedGalleryHostCaching
- type SharedGalleryImageVersionStorageProfile
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 CommunityGalleryDisclaimer ¶
type CommunityGalleryDisclaimer struct {
Disclaimer *string `json:"disclaimer,omitempty"`
}
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) FromParseResult ¶
func (id *CommunityGalleryImageId) FromParseResult(input resourceids.ParseResult) error
func (CommunityGalleryImageId) ID ¶
func (id CommunityGalleryImageId) ID() string
ID returns the formatted Community Gallery Image ID
func (CommunityGalleryImageId) Segments ¶
func (id CommunityGalleryImageId) Segments() []resourceids.Segment
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) FromParseResult ¶
func (id *CommunityGalleryImageVersionId) FromParseResult(input resourceids.ParseResult) error
func (CommunityGalleryImageVersionId) ID ¶
func (id CommunityGalleryImageVersionId) ID() string
ID returns the formatted Community Gallery Image Version ID
func (CommunityGalleryImageVersionId) Segments ¶
func (id CommunityGalleryImageVersionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Community Gallery Image Version ID
func (CommunityGalleryImageVersionId) String ¶
func (id CommunityGalleryImageVersionId) String() 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 ¶
func (p CommunityGalleryImageVersionOperationPredicate) Matches(input CommunityGalleryImageVersion) bool
type CommunityGalleryImageVersionProperties ¶
type CommunityGalleryImageVersionProperties struct { ArtifactTags *map[string]string `json:"artifactTags,omitempty"` Disclaimer *CommunityGalleryDisclaimer `json:"disclaimer,omitempty"` 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 ¶
func (c CommunityGalleryImageVersionsClient) Get(ctx context.Context, id CommunityGalleryImageVersionId) (result GetOperationResponse, err error)
Get ...
func (CommunityGalleryImageVersionsClient) List ¶
func (c CommunityGalleryImageVersionsClient) List(ctx context.Context, id CommunityGalleryImageId) (result ListOperationResponse, err error)
List ...
func (CommunityGalleryImageVersionsClient) ListComplete ¶
func (c CommunityGalleryImageVersionsClient) ListComplete(ctx context.Context, id CommunityGalleryImageId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (CommunityGalleryImageVersionsClient) ListCompleteMatchingPredicate ¶
func (c CommunityGalleryImageVersionsClient) ListCompleteMatchingPredicate(ctx context.Context, id CommunityGalleryImageId, predicate CommunityGalleryImageVersionOperationPredicate) (result ListCompleteResult, err error)
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 { LatestHttpResponse *http.Response Items []CommunityGalleryImageVersion }
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]CommunityGalleryImageVersion }
type SharedGalleryDataDiskImage ¶
type SharedGalleryDataDiskImage struct {}
type SharedGalleryDiskImage ¶
type SharedGalleryDiskImage struct {}
type SharedGalleryHostCaching ¶
type SharedGalleryHostCaching string
const ()
func (*SharedGalleryHostCaching) UnmarshalJSON ¶
func (s *SharedGalleryHostCaching) UnmarshalJSON(bytes []byte) error
type SharedGalleryImageVersionStorageProfile ¶
type SharedGalleryImageVersionStorageProfile struct {}
Source Files ¶
- client.go
- constants.go
- id_communitygalleryimage.go
- id_communitygalleryimageversion.go
- method_get.go
- method_list.go
- model_communitygallerydisclaimer.go
- model_communitygalleryidentifier.go
- model_communitygalleryimageversion.go
- model_communitygalleryimageversionproperties.go
- model_sharedgallerydatadiskimage.go
- model_sharedgallerydiskimage.go
- model_sharedgalleryimageversionstorageprofile.go
- predicates.go
- version.go