README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/sharedgalleries
Documentation
The sharedgalleries
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/sharedgalleries"
Client Initialization
client := sharedgalleries.NewSharedGalleriesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: SharedGalleriesClient.Get
ctx := context.TODO()
id := sharedgalleries.NewSharedGalleryID("12345678-1234-9876-4563-123456789012", "locationValue", "galleryUniqueValue")
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: SharedGalleriesClient.List
ctx := context.TODO()
id := sharedgalleries.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")
// alternatively `client.List(ctx, id, sharedgalleries.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, sharedgalleries.DefaultListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func PossibleValuesForSharedToValues() []string
- func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateSharedGalleryID(input interface{}, key string) (warnings []string, errors []error)
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type LocationId
- type PirSharedGalleryResource
- type PirSharedGalleryResourceOperationPredicate
- type SharedGalleriesClient
- func (c SharedGalleriesClient) Get(ctx context.Context, id SharedGalleryId) (result GetOperationResponse, err error)
- func (c SharedGalleriesClient) List(ctx context.Context, id LocationId, options ListOperationOptions) (resp ListOperationResponse, err error)
- func (c SharedGalleriesClient) ListComplete(ctx context.Context, id LocationId, options ListOperationOptions) (ListCompleteResult, error)
- func (c SharedGalleriesClient) ListCompleteMatchingPredicate(ctx context.Context, id LocationId, options ListOperationOptions, ...) (resp ListCompleteResult, err error)
- type SharedGalleryId
- type SharedGalleryIdentifier
- type SharedToValues
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForSharedToValues ¶
func PossibleValuesForSharedToValues() []string
func ValidateLocationID ¶
ValidateLocationID checks that 'input' can be parsed as a Location ID
func ValidateSharedGalleryID ¶
ValidateSharedGalleryID checks that 'input' can be parsed as a Shared Gallery ID
Types ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *PirSharedGalleryResource }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []PirSharedGalleryResource
}
type ListOperationOptions ¶
type ListOperationOptions struct {
}func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]PirSharedGalleryResource // 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 LocationId ¶
LocationId is a struct representing the Resource ID for a Location
func NewLocationID ¶
func NewLocationID(subscriptionId string, location string) LocationId
NewLocationID returns a new LocationId struct
func ParseLocationID ¶
func ParseLocationID(input string) (*LocationId, error)
ParseLocationID parses 'input' into a LocationId
func ParseLocationIDInsensitively ¶
func ParseLocationIDInsensitively(input string) (*LocationId, error)
ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId note: this method should only be used for API response data and not user input
func (LocationId) Segments ¶
func (id LocationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Location ID
func (LocationId) String ¶
func (id LocationId) String() string
String returns a human-readable description of this Location ID
type PirSharedGalleryResource ¶
type PirSharedGalleryResource struct {}
type PirSharedGalleryResourceOperationPredicate ¶
type PirSharedGalleryResourceOperationPredicate struct {}
func (PirSharedGalleryResourceOperationPredicate) Matches ¶
func (p PirSharedGalleryResourceOperationPredicate) Matches(input PirSharedGalleryResource) bool
type SharedGalleriesClient ¶
type SharedGalleriesClient struct { // contains filtered or unexported fields }
func NewSharedGalleriesClientWithBaseURI ¶
func NewSharedGalleriesClientWithBaseURI(endpoint string) SharedGalleriesClient
func (SharedGalleriesClient) Get ¶
func (c SharedGalleriesClient) Get(ctx context.Context, id SharedGalleryId) (result GetOperationResponse, err error)
Get ...
func (SharedGalleriesClient) List ¶
func (c SharedGalleriesClient) List(ctx context.Context, id LocationId, options ListOperationOptions) (resp ListOperationResponse, err error)
List ...
func (SharedGalleriesClient) ListComplete ¶
func (c SharedGalleriesClient) ListComplete(ctx context.Context, id LocationId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (SharedGalleriesClient) ListCompleteMatchingPredicate ¶
func (c SharedGalleriesClient) ListCompleteMatchingPredicate(ctx context.Context, id LocationId, options ListOperationOptions, predicate PirSharedGalleryResourceOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type SharedGalleryId ¶
type SharedGalleryId struct {}
SharedGalleryId is a struct representing the Resource ID for a Shared Gallery
func NewSharedGalleryID ¶
func NewSharedGalleryID(subscriptionId string, location string, galleryUniqueName string) SharedGalleryId
NewSharedGalleryID returns a new SharedGalleryId struct
func ParseSharedGalleryID ¶
func ParseSharedGalleryID(input string) (*SharedGalleryId, error)
ParseSharedGalleryID parses 'input' into a SharedGalleryId
func ParseSharedGalleryIDInsensitively ¶
func ParseSharedGalleryIDInsensitively(input string) (*SharedGalleryId, error)
ParseSharedGalleryIDInsensitively parses 'input' case-insensitively into a SharedGalleryId note: this method should only be used for API response data and not user input
func (SharedGalleryId) ID ¶
func (id SharedGalleryId) ID() string
ID returns the formatted Shared Gallery ID
func (SharedGalleryId) Segments ¶
func (id SharedGalleryId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Shared Gallery ID
func (SharedGalleryId) String ¶
func (id SharedGalleryId) String() string
String returns a human-readable description of this Shared Gallery ID
type SharedGalleryIdentifier ¶
type SharedGalleryIdentifier struct {
}