virtualmachineextensionimages

package
v0.20230807.1063129 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineextensionimages Documentation

The virtualmachineextensionimages SDK allows for interaction with the Azure Resource Manager Service compute (API Version 2023-03-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/2023-03-01/virtualmachineextensionimages"

Client Initialization

client := virtualmachineextensionimages.NewVirtualMachineExtensionImagesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: VirtualMachineExtensionImagesClient.Get

ctx := context.TODO()
id := virtualmachineextensionimages.NewVersionID("12345678-1234-9876-4563-123456789012", "locationValue", "publisherValue", "typeValue", "versionValue")

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: VirtualMachineExtensionImagesClient.ListTypes

ctx := context.TODO()
id := virtualmachineextensionimages.NewPublisherID("12345678-1234-9876-4563-123456789012", "locationValue", "publisherValue")

read, err := client.ListTypes(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: VirtualMachineExtensionImagesClient.ListVersions

ctx := context.TODO()
id := virtualmachineextensionimages.NewTypeID("12345678-1234-9876-4563-123456789012", "locationValue", "publisherValue", "typeValue")

read, err := client.ListVersions(ctx, id, virtualmachineextensionimages.DefaultListVersionsOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatePublisherID

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

ValidatePublisherID checks that 'input' can be parsed as a Publisher ID

func ValidateTypeID

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

ValidateTypeID checks that 'input' can be parsed as a Type ID

func ValidateVersionID

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

ValidateVersionID checks that 'input' can be parsed as a Version ID

Types

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *VirtualMachineExtensionImage
}

type ListTypesOperationResponse

type ListTypesOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]VirtualMachineExtensionImage
}

type ListVersionsOperationOptions

type ListVersionsOperationOptions struct {
	Filter  *string
	Orderby *string
	Top     *int64
}

func DefaultListVersionsOperationOptions

func DefaultListVersionsOperationOptions() ListVersionsOperationOptions

type ListVersionsOperationResponse

type ListVersionsOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]VirtualMachineExtensionImage
}

type PublisherId

type PublisherId struct {
	SubscriptionId string
	LocationName   string
	PublisherName  string
}

PublisherId is a struct representing the Resource ID for a Publisher

func NewPublisherID

func NewPublisherID(subscriptionId string, locationName string, publisherName string) PublisherId

NewPublisherID returns a new PublisherId struct

func ParsePublisherID

func ParsePublisherID(input string) (*PublisherId, error)

ParsePublisherID parses 'input' into a PublisherId

func ParsePublisherIDInsensitively

func ParsePublisherIDInsensitively(input string) (*PublisherId, error)

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

func (PublisherId) ID

func (id PublisherId) ID() string

ID returns the formatted Publisher ID

func (PublisherId) Segments

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

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

func (PublisherId) String

func (id PublisherId) String() string

String returns a human-readable description of this Publisher ID

type TypeId

type TypeId struct {
	SubscriptionId string
	LocationName   string
	PublisherName  string
	TypeName       string
}

TypeId is a struct representing the Resource ID for a Type

func NewTypeID

func NewTypeID(subscriptionId string, locationName string, publisherName string, typeName string) TypeId

NewTypeID returns a new TypeId struct

func ParseTypeID

func ParseTypeID(input string) (*TypeId, error)

ParseTypeID parses 'input' into a TypeId

func ParseTypeIDInsensitively

func ParseTypeIDInsensitively(input string) (*TypeId, error)

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

func (TypeId) ID

func (id TypeId) ID() string

ID returns the formatted Type ID

func (TypeId) Segments

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

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

func (TypeId) String

func (id TypeId) String() string

String returns a human-readable description of this Type ID

type VersionId

type VersionId struct {
	SubscriptionId string
	LocationName   string
	PublisherName  string
	TypeName       string
	VersionName    string
}

VersionId is a struct representing the Resource ID for a Version

func NewVersionID

func NewVersionID(subscriptionId string, locationName string, publisherName string, typeName string, versionName string) VersionId

NewVersionID returns a new VersionId struct

func ParseVersionID

func ParseVersionID(input string) (*VersionId, error)

ParseVersionID parses 'input' into a VersionId

func ParseVersionIDInsensitively

func ParseVersionIDInsensitively(input string) (*VersionId, error)

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

func (VersionId) ID

func (id VersionId) ID() string

ID returns the formatted Version ID

func (VersionId) Segments

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

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

func (VersionId) String

func (id VersionId) String() string

String returns a human-readable description of this Version ID

type VirtualMachineExtensionImage

type VirtualMachineExtensionImage struct {
	Id         *string                                 `json:"id,omitempty"`
	Location   string                                  `json:"location"`
	Name       string                                  `json:"name"`
	Properties *VirtualMachineExtensionImageProperties `json:"properties,omitempty"`
	Tags       *map[string]string                      `json:"tags,omitempty"`
	Type       *string                                 `json:"type,omitempty"`
}

type VirtualMachineExtensionImageProperties

type VirtualMachineExtensionImageProperties struct {
	ComputeRole                string `json:"computeRole"`
	HandlerSchema              string `json:"handlerSchema"`
	OperatingSystem            string `json:"operatingSystem"`
	SupportsMultipleExtensions *bool  `json:"supportsMultipleExtensions,omitempty"`
	VMScaleSetEnabled          *bool  `json:"vmScaleSetEnabled,omitempty"`
}

type VirtualMachineExtensionImagesClient

type VirtualMachineExtensionImagesClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewVirtualMachineExtensionImagesClientWithBaseURI

func NewVirtualMachineExtensionImagesClientWithBaseURI(endpoint string) VirtualMachineExtensionImagesClient

func (VirtualMachineExtensionImagesClient) Get

Get ...

func (VirtualMachineExtensionImagesClient) ListTypes

ListTypes ...

func (VirtualMachineExtensionImagesClient) ListVersions

ListVersions ...

Jump to

Keyboard shortcuts

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