sharedgalleryimageversions

package
v0.20241126.2320 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/sharedgalleryimageversions Documentation

The sharedgalleryimageversions SDK allows for interaction with Azure Resource Manager 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/sharedgalleryimageversions"

Client Initialization

client := sharedgalleryimageversions.NewSharedGalleryImageVersionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SharedGalleryImageVersionsClient.Get

ctx := context.TODO()
id := sharedgalleryimageversions.NewImageVersionID("12345678-1234-9876-4563-123456789012", "locationName", "sharedGalleryName", "imageName", "versionName")

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: SharedGalleryImageVersionsClient.List

ctx := context.TODO()
id := sharedgalleryimageversions.NewSharedGalleryImageID("12345678-1234-9876-4563-123456789012", "locationName", "sharedGalleryName", "imageName")

// alternatively `client.List(ctx, id, sharedgalleryimageversions.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, sharedgalleryimageversions.DefaultListOperationOptions())
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 PossibleValuesForSharedToValues

func PossibleValuesForSharedToValues() []string

func ValidateImageVersionID

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

ValidateImageVersionID checks that 'input' can be parsed as a Image Version ID

func ValidateSharedGalleryImageID

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

ValidateSharedGalleryImageID checks that 'input' can be parsed as a Shared Gallery Image ID

Types

type GetOperationResponse

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

type ImageVersionId

type ImageVersionId struct {
	SubscriptionId    string
	LocationName      string
	SharedGalleryName string
	ImageName         string
	VersionName       string
}

ImageVersionId is a struct representing the Resource ID for a Image Version

func NewImageVersionID

func NewImageVersionID(subscriptionId string, locationName string, sharedGalleryName string, imageName string, versionName string) ImageVersionId

NewImageVersionID returns a new ImageVersionId struct

func ParseImageVersionID

func ParseImageVersionID(input string) (*ImageVersionId, error)

ParseImageVersionID parses 'input' into a ImageVersionId

func ParseImageVersionIDInsensitively

func ParseImageVersionIDInsensitively(input string) (*ImageVersionId, error)

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

func (*ImageVersionId) FromParseResult

func (id *ImageVersionId) FromParseResult(input resourceids.ParseResult) error

func (ImageVersionId) ID

func (id ImageVersionId) ID() string

ID returns the formatted Image Version ID

func (ImageVersionId) Segments

func (id ImageVersionId) Segments() []resourceids.Segment

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

func (ImageVersionId) String

func (id ImageVersionId) String() string

String returns a human-readable description of this Image Version ID

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SharedGalleryImageVersion
}

type ListCustomPager

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationOptions

type ListOperationOptions struct {
	SharedTo *SharedToValues
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery

type ListOperationResponse

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

type SharedGalleryIdentifier

type SharedGalleryIdentifier struct {
	UniqueId *string `json:"uniqueId,omitempty"`
}

type SharedGalleryImageId

type SharedGalleryImageId struct {
	SubscriptionId    string
	LocationName      string
	SharedGalleryName string
	ImageName         string
}

SharedGalleryImageId is a struct representing the Resource ID for a Shared Gallery Image

func NewSharedGalleryImageID

func NewSharedGalleryImageID(subscriptionId string, locationName string, sharedGalleryName string, imageName string) SharedGalleryImageId

NewSharedGalleryImageID returns a new SharedGalleryImageId struct

func ParseSharedGalleryImageID

func ParseSharedGalleryImageID(input string) (*SharedGalleryImageId, error)

ParseSharedGalleryImageID parses 'input' into a SharedGalleryImageId

func ParseSharedGalleryImageIDInsensitively

func ParseSharedGalleryImageIDInsensitively(input string) (*SharedGalleryImageId, error)

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

func (*SharedGalleryImageId) FromParseResult

func (id *SharedGalleryImageId) FromParseResult(input resourceids.ParseResult) error

func (SharedGalleryImageId) ID

func (id SharedGalleryImageId) ID() string

ID returns the formatted Shared Gallery Image ID

func (SharedGalleryImageId) Segments

func (id SharedGalleryImageId) Segments() []resourceids.Segment

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

func (SharedGalleryImageId) String

func (id SharedGalleryImageId) String() string

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

type SharedGalleryImageVersion

type SharedGalleryImageVersion struct {
	Identifier *SharedGalleryIdentifier             `json:"identifier,omitempty"`
	Location   *string                              `json:"location,omitempty"`
	Name       *string                              `json:"name,omitempty"`
	Properties *SharedGalleryImageVersionProperties `json:"properties,omitempty"`
}

type SharedGalleryImageVersionOperationPredicate

type SharedGalleryImageVersionOperationPredicate struct {
	Location *string
	Name     *string
}

func (SharedGalleryImageVersionOperationPredicate) Matches

type SharedGalleryImageVersionProperties

type SharedGalleryImageVersionProperties struct {
	EndOfLifeDate *string `json:"endOfLifeDate,omitempty"`
	PublishedDate *string `json:"publishedDate,omitempty"`
}

func (*SharedGalleryImageVersionProperties) GetEndOfLifeDateAsTime

func (o *SharedGalleryImageVersionProperties) GetEndOfLifeDateAsTime() (*time.Time, error)

func (*SharedGalleryImageVersionProperties) GetPublishedDateAsTime

func (o *SharedGalleryImageVersionProperties) GetPublishedDateAsTime() (*time.Time, error)

func (*SharedGalleryImageVersionProperties) SetEndOfLifeDateAsTime

func (o *SharedGalleryImageVersionProperties) SetEndOfLifeDateAsTime(input time.Time)

func (*SharedGalleryImageVersionProperties) SetPublishedDateAsTime

func (o *SharedGalleryImageVersionProperties) SetPublishedDateAsTime(input time.Time)

type SharedGalleryImageVersionsClient

type SharedGalleryImageVersionsClient struct {
	Client *resourcemanager.Client
}

func NewSharedGalleryImageVersionsClientWithBaseURI

func NewSharedGalleryImageVersionsClientWithBaseURI(sdkApi sdkEnv.Api) (*SharedGalleryImageVersionsClient, error)

func (SharedGalleryImageVersionsClient) Get

Get ...

func (SharedGalleryImageVersionsClient) List

List ...

func (SharedGalleryImageVersionsClient) ListComplete

ListComplete retrieves all the results into a single object

func (SharedGalleryImageVersionsClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type SharedToValues

type SharedToValues string
const (
	SharedToValuesTenant SharedToValues = "tenant"
)

func (*SharedToValues) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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