imageversions

package
v0.20241128.1084944 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/devopsinfrastructure/2024-04-04-preview/imageversions Documentation

The imageversions SDK allows for interaction with Azure Resource Manager devopsinfrastructure (API Version 2024-04-04-preview).

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/devopsinfrastructure/2024-04-04-preview/imageversions"

Client Initialization

client := imageversions.NewImageVersionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ImageVersionsClient.ListByImage

ctx := context.TODO()
id := imageversions.NewImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "imageName")

// alternatively `client.ListByImage(ctx, id)` can be used to do batched pagination
items, err := client.ListByImageComplete(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 ValidateImageID

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

ValidateImageID checks that 'input' can be parsed as a Image ID

Types

type ImageId

type ImageId struct {
	SubscriptionId    string
	ResourceGroupName string
	ImageName         string
}

ImageId is a struct representing the Resource ID for a Image

func NewImageID

func NewImageID(subscriptionId string, resourceGroupName string, imageName string) ImageId

NewImageID returns a new ImageId struct

func ParseImageID

func ParseImageID(input string) (*ImageId, error)

ParseImageID parses 'input' into a ImageId

func ParseImageIDInsensitively

func ParseImageIDInsensitively(input string) (*ImageId, error)

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

func (*ImageId) FromParseResult

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

func (ImageId) ID

func (id ImageId) ID() string

ID returns the formatted Image ID

func (ImageId) Segments

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

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

func (ImageId) String

func (id ImageId) String() string

String returns a human-readable description of this Image ID

type ImageVersion

type ImageVersion struct {
	Id         *string                 `json:"id,omitempty"`
	Name       *string                 `json:"name,omitempty"`
	Properties *ImageVersionProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData  `json:"systemData,omitempty"`
	Type       *string                 `json:"type,omitempty"`
}

type ImageVersionOperationPredicate

type ImageVersionOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (ImageVersionOperationPredicate) Matches

type ImageVersionProperties

type ImageVersionProperties struct {
	Version string `json:"version"`
}

type ImageVersionsClient

type ImageVersionsClient struct {
	Client *resourcemanager.Client
}

func NewImageVersionsClientWithBaseURI

func NewImageVersionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ImageVersionsClient, error)

func (ImageVersionsClient) ListByImage

func (c ImageVersionsClient) ListByImage(ctx context.Context, id ImageId) (result ListByImageOperationResponse, err error)

ListByImage ...

func (ImageVersionsClient) ListByImageComplete

func (c ImageVersionsClient) ListByImageComplete(ctx context.Context, id ImageId) (ListByImageCompleteResult, error)

ListByImageComplete retrieves all the results into a single object

func (ImageVersionsClient) ListByImageCompleteMatchingPredicate

func (c ImageVersionsClient) ListByImageCompleteMatchingPredicate(ctx context.Context, id ImageId, predicate ImageVersionOperationPredicate) (result ListByImageCompleteResult, err error)

ListByImageCompleteMatchingPredicate retrieves all the results and then applies the predicate

type ListByImageCompleteResult

type ListByImageCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ImageVersion
}

type ListByImageCustomPager

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

type ListByImageOperationResponse

type ListByImageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ImageVersion
}

Jump to

Keyboard shortcuts

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