sharedgalleryimageversions

package
v0.20241021.1074254 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MPL-2.0 Imports: 13 Imported by: 1

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 added in v0.20241009.1142232

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

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

func ValidateSharedGalleryImageID added in v0.20241009.1142232

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 added in v0.20241009.1142232

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 added in v0.20241009.1142232

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

NewImageVersionID returns a new ImageVersionId struct

func ParseImageVersionID added in v0.20241009.1142232

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

ParseImageVersionID parses 'input' into a ImageVersionId

func ParseImageVersionIDInsensitively added in v0.20241009.1142232

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 added in v0.20241009.1142232

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

func (ImageVersionId) ID added in v0.20241009.1142232

func (id ImageVersionId) ID() string

ID returns the formatted Image Version ID

func (ImageVersionId) Segments added in v0.20241009.1142232

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

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

func (ImageVersionId) String added in v0.20241009.1142232

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 added in v0.20240628.1153531

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 added in v0.20241009.1142232

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 added in v0.20241009.1142232

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

NewSharedGalleryImageID returns a new SharedGalleryImageId struct

func ParseSharedGalleryImageID added in v0.20241009.1142232

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

ParseSharedGalleryImageID parses 'input' into a SharedGalleryImageId

func ParseSharedGalleryImageIDInsensitively added in v0.20241009.1142232

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 added in v0.20241009.1142232

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

func (SharedGalleryImageId) ID added in v0.20241009.1142232

func (id SharedGalleryImageId) ID() string

ID returns the formatted Shared Gallery Image ID

func (SharedGalleryImageId) Segments added in v0.20241009.1142232

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

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

func (SharedGalleryImageId) String added in v0.20241009.1142232

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