marketplacegalleryimages

package
v0.20240516.1091934 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MPL-2.0 Imports: 14 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages Documentation

The marketplacegalleryimages SDK allows for interaction with the Azure Resource Manager Service azurestackhci (API Version 2024-01-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages"

Client Initialization

client := marketplacegalleryimages.NewMarketplaceGalleryImagesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: MarketplaceGalleryImagesClient.CreateOrUpdate

ctx := context.TODO()
id := marketplacegalleryimages.NewMarketplaceGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "marketplaceGalleryImageValue")

payload := marketplacegalleryimages.MarketplaceGalleryImages{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: MarketplaceGalleryImagesClient.Delete

ctx := context.TODO()
id := marketplacegalleryimages.NewMarketplaceGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "marketplaceGalleryImageValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: MarketplaceGalleryImagesClient.Get

ctx := context.TODO()
id := marketplacegalleryimages.NewMarketplaceGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "marketplaceGalleryImageValue")

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

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

// 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
}

Example Usage: MarketplaceGalleryImagesClient.ListAll

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination
items, err := client.ListAllComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: MarketplaceGalleryImagesClient.Update

ctx := context.TODO()
id := marketplacegalleryimages.NewMarketplaceGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "marketplaceGalleryImageValue")

payload := marketplacegalleryimages.MarketplaceGalleryImagesUpdateRequest{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForCloudInitDataSource

func PossibleValuesForCloudInitDataSource() []string

func PossibleValuesForExtendedLocationTypes

func PossibleValuesForExtendedLocationTypes() []string

func PossibleValuesForHyperVGeneration

func PossibleValuesForHyperVGeneration() []string

func PossibleValuesForOperatingSystemTypes

func PossibleValuesForOperatingSystemTypes() []string

func PossibleValuesForProvisioningStateEnum

func PossibleValuesForProvisioningStateEnum() []string

func PossibleValuesForStatus

func PossibleValuesForStatus() []string

func ValidateMarketplaceGalleryImageID

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

ValidateMarketplaceGalleryImageID checks that 'input' can be parsed as a Marketplace Gallery Image ID

Types

type CloudInitDataSource

type CloudInitDataSource string
const (
	CloudInitDataSourceAzure   CloudInitDataSource = "Azure"
	CloudInitDataSourceNoCloud CloudInitDataSource = "NoCloud"
)

func (*CloudInitDataSource) UnmarshalJSON

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

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *MarketplaceGalleryImages
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type ExtendedLocation

type ExtendedLocation struct {
	Name *string                `json:"name,omitempty"`
	Type *ExtendedLocationTypes `json:"type,omitempty"`
}

type ExtendedLocationTypes

type ExtendedLocationTypes string
const (
	ExtendedLocationTypesCustomLocation ExtendedLocationTypes = "CustomLocation"
)

func (*ExtendedLocationTypes) UnmarshalJSON

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

type GalleryDiskImage

type GalleryDiskImage struct {
	SizeInMB *int64 `json:"sizeInMB,omitempty"`
}

type GalleryImageIdentifier

type GalleryImageIdentifier struct {
	Offer     string `json:"offer"`
	Publisher string `json:"publisher"`
	Sku       string `json:"sku"`
}

type GalleryImageVersion

type GalleryImageVersion struct {
	Name       *string                        `json:"name,omitempty"`
	Properties *GalleryImageVersionProperties `json:"properties,omitempty"`
}

type GalleryImageVersionProperties

type GalleryImageVersionProperties struct {
	StorageProfile GalleryImageVersionStorageProfile `json:"storageProfile"`
}

type GalleryImageVersionStorageProfile

type GalleryImageVersionStorageProfile struct {
	OsDiskImage *GalleryDiskImage `json:"osDiskImage,omitempty"`
}

type GetOperationResponse

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

type HyperVGeneration

type HyperVGeneration string
const (
	HyperVGenerationVOne HyperVGeneration = "V1"
	HyperVGenerationVTwo HyperVGeneration = "V2"
)

func (*HyperVGeneration) UnmarshalJSON

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

type ListAllCompleteResult

type ListAllCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []MarketplaceGalleryImages
}

type ListAllOperationResponse

type ListAllOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]MarketplaceGalleryImages
}

type ListCompleteResult

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

type ListOperationResponse

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

type MarketplaceGalleryImageId

type MarketplaceGalleryImageId struct {
	SubscriptionId              string
	ResourceGroupName           string
	MarketplaceGalleryImageName string
}

MarketplaceGalleryImageId is a struct representing the Resource ID for a Marketplace Gallery Image

func NewMarketplaceGalleryImageID

func NewMarketplaceGalleryImageID(subscriptionId string, resourceGroupName string, marketplaceGalleryImageName string) MarketplaceGalleryImageId

NewMarketplaceGalleryImageID returns a new MarketplaceGalleryImageId struct

func ParseMarketplaceGalleryImageID

func ParseMarketplaceGalleryImageID(input string) (*MarketplaceGalleryImageId, error)

ParseMarketplaceGalleryImageID parses 'input' into a MarketplaceGalleryImageId

func ParseMarketplaceGalleryImageIDInsensitively

func ParseMarketplaceGalleryImageIDInsensitively(input string) (*MarketplaceGalleryImageId, error)

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

func (*MarketplaceGalleryImageId) FromParseResult

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

func (MarketplaceGalleryImageId) ID

ID returns the formatted Marketplace Gallery Image ID

func (MarketplaceGalleryImageId) Segments

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

func (MarketplaceGalleryImageId) String

func (id MarketplaceGalleryImageId) String() string

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

type MarketplaceGalleryImageProperties

type MarketplaceGalleryImageProperties struct {
	CloudInitDataSource *CloudInitDataSource           `json:"cloudInitDataSource,omitempty"`
	ContainerId         *string                        `json:"containerId,omitempty"`
	HyperVGeneration    *HyperVGeneration              `json:"hyperVGeneration,omitempty"`
	Identifier          *GalleryImageIdentifier        `json:"identifier,omitempty"`
	OsType              OperatingSystemTypes           `json:"osType"`
	ProvisioningState   *ProvisioningStateEnum         `json:"provisioningState,omitempty"`
	Status              *MarketplaceGalleryImageStatus `json:"status,omitempty"`
	Version             *GalleryImageVersion           `json:"version,omitempty"`
}

type MarketplaceGalleryImageStatus

type MarketplaceGalleryImageStatus struct {
	DownloadStatus     *MarketplaceGalleryImageStatusDownloadStatus     `json:"downloadStatus,omitempty"`
	ErrorCode          *string                                          `json:"errorCode,omitempty"`
	ErrorMessage       *string                                          `json:"errorMessage,omitempty"`
	ProgressPercentage *int64                                           `json:"progressPercentage,omitempty"`
	ProvisioningStatus *MarketplaceGalleryImageStatusProvisioningStatus `json:"provisioningStatus,omitempty"`
}

type MarketplaceGalleryImageStatusDownloadStatus

type MarketplaceGalleryImageStatusDownloadStatus struct {
	DownloadSizeInMB *int64 `json:"downloadSizeInMB,omitempty"`
}

type MarketplaceGalleryImageStatusProvisioningStatus

type MarketplaceGalleryImageStatusProvisioningStatus struct {
	OperationId *string `json:"operationId,omitempty"`
	Status      *Status `json:"status,omitempty"`
}

type MarketplaceGalleryImages

type MarketplaceGalleryImages struct {
	ExtendedLocation *ExtendedLocation                  `json:"extendedLocation,omitempty"`
	Id               *string                            `json:"id,omitempty"`
	Location         string                             `json:"location"`
	Name             *string                            `json:"name,omitempty"`
	Properties       *MarketplaceGalleryImageProperties `json:"properties,omitempty"`
	SystemData       *systemdata.SystemData             `json:"systemData,omitempty"`
	Tags             *map[string]string                 `json:"tags,omitempty"`
	Type             *string                            `json:"type,omitempty"`
}

type MarketplaceGalleryImagesClient

type MarketplaceGalleryImagesClient struct {
	Client *resourcemanager.Client
}

func NewMarketplaceGalleryImagesClientWithBaseURI

func NewMarketplaceGalleryImagesClientWithBaseURI(sdkApi sdkEnv.Api) (*MarketplaceGalleryImagesClient, error)

func (MarketplaceGalleryImagesClient) CreateOrUpdate

CreateOrUpdate ...

func (MarketplaceGalleryImagesClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (MarketplaceGalleryImagesClient) Delete

Delete ...

func (MarketplaceGalleryImagesClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (MarketplaceGalleryImagesClient) Get

Get ...

func (MarketplaceGalleryImagesClient) List

List ...

func (MarketplaceGalleryImagesClient) ListAll

ListAll ...

func (MarketplaceGalleryImagesClient) ListAllComplete

ListAllComplete retrieves all the results into a single object

func (MarketplaceGalleryImagesClient) ListAllCompleteMatchingPredicate

ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MarketplaceGalleryImagesClient) ListComplete

ListComplete retrieves all the results into a single object

func (MarketplaceGalleryImagesClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MarketplaceGalleryImagesClient) Update

Update ...

func (MarketplaceGalleryImagesClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type MarketplaceGalleryImagesOperationPredicate

type MarketplaceGalleryImagesOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (MarketplaceGalleryImagesOperationPredicate) Matches

type MarketplaceGalleryImagesUpdateRequest

type MarketplaceGalleryImagesUpdateRequest struct {
	Tags *map[string]string `json:"tags,omitempty"`
}

type OperatingSystemTypes

type OperatingSystemTypes string
const (
	OperatingSystemTypesLinux   OperatingSystemTypes = "Linux"
	OperatingSystemTypesWindows OperatingSystemTypes = "Windows"
)

func (*OperatingSystemTypes) UnmarshalJSON

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

type ProvisioningStateEnum

type ProvisioningStateEnum string
const (
	ProvisioningStateEnumAccepted   ProvisioningStateEnum = "Accepted"
	ProvisioningStateEnumCanceled   ProvisioningStateEnum = "Canceled"
	ProvisioningStateEnumDeleting   ProvisioningStateEnum = "Deleting"
	ProvisioningStateEnumFailed     ProvisioningStateEnum = "Failed"
	ProvisioningStateEnumInProgress ProvisioningStateEnum = "InProgress"
	ProvisioningStateEnumSucceeded  ProvisioningStateEnum = "Succeeded"
)

func (*ProvisioningStateEnum) UnmarshalJSON

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

type Status

type Status string
const (
	StatusFailed     Status = "Failed"
	StatusInProgress Status = "InProgress"
	StatusSucceeded  Status = "Succeeded"
)

func (*Status) UnmarshalJSON

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

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *MarketplaceGalleryImages
}

Jump to

Keyboard shortcuts

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