extensions

package
v0.20250409.1192141 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2025-01-13/extensions Documentation

The extensions SDK allows for interaction with Azure Resource Manager hybridcompute (API Version 2025-01-13).

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/hybridcompute/2025-01-13/extensions"

Client Initialization

client := extensions.NewExtensionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ExtensionsClient.ExtensionMetadataGet

ctx := context.TODO()
id := extensions.NewExtensionTypeVersionID("12345678-1234-9876-4563-123456789012", "locationName", "publisherName", "extensionTypeName", "versionName")

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

Example Usage: ExtensionsClient.ExtensionMetadataList

ctx := context.TODO()
id := extensions.NewPublisherExtensionTypeID("12345678-1234-9876-4563-123456789012", "locationName", "publisherName", "extensionTypeName")

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

Example Usage: ExtensionsClient.ExtensionMetadataV2Get

ctx := context.TODO()
id := extensions.NewVersionID("locationName", "publisherName", "extensionTypeName", "versionName")

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

Example Usage: ExtensionsClient.ExtensionMetadataV2List

ctx := context.TODO()
id := extensions.NewExtensionTypeID("locationName", "publisherName", "extensionTypeName")

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

Example Usage: ExtensionsClient.ExtensionPublisherList

ctx := context.TODO()
id := extensions.NewLocationID("locationName")

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

Example Usage: ExtensionsClient.ExtensionTypeList

ctx := context.TODO()
id := extensions.NewPublisherID("locationName", "publisherName")

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

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

ValidateExtensionTypeID checks that 'input' can be parsed as a Extension Type ID

func ValidateExtensionTypeVersionID

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

ValidateExtensionTypeVersionID checks that 'input' can be parsed as a Extension Type Version ID

func ValidateLocationID

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

ValidateLocationID checks that 'input' can be parsed as a Location ID

func ValidatePublisherExtensionTypeID

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

ValidatePublisherExtensionTypeID checks that 'input' can be parsed as a Publisher Extension Type ID

func ValidatePublisherID

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

ValidatePublisherID checks that 'input' can be parsed as a Publisher 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 ExtensionMetadataGetOperationResponse

type ExtensionMetadataGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ExtensionValue
}

type ExtensionMetadataListOperationResponse

type ExtensionMetadataListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ExtensionValueListResult
}

type ExtensionMetadataV2GetOperationResponse

type ExtensionMetadataV2GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ExtensionValueV2
}

type ExtensionMetadataV2ListCompleteResult

type ExtensionMetadataV2ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ExtensionValueV2
}

type ExtensionMetadataV2ListCustomPager

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

type ExtensionMetadataV2ListOperationResponse

type ExtensionMetadataV2ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ExtensionValueV2
}

type ExtensionPublisher

type ExtensionPublisher struct {
	Id   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
}

type ExtensionPublisherListCompleteResult

type ExtensionPublisherListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ExtensionPublisher
}

type ExtensionPublisherListCustomPager

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

type ExtensionPublisherListOperationResponse

type ExtensionPublisherListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ExtensionPublisher
}

type ExtensionPublisherOperationPredicate

type ExtensionPublisherOperationPredicate struct {
	Id   *string
	Name *string
}

func (ExtensionPublisherOperationPredicate) Matches

type ExtensionType

type ExtensionType struct {
	Id   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
}

type ExtensionTypeId

type ExtensionTypeId struct {
	LocationName      string
	PublisherName     string
	ExtensionTypeName string
}

ExtensionTypeId is a struct representing the Resource ID for a Extension Type

func NewExtensionTypeID

func NewExtensionTypeID(locationName string, publisherName string, extensionTypeName string) ExtensionTypeId

NewExtensionTypeID returns a new ExtensionTypeId struct

func ParseExtensionTypeID

func ParseExtensionTypeID(input string) (*ExtensionTypeId, error)

ParseExtensionTypeID parses 'input' into a ExtensionTypeId

func ParseExtensionTypeIDInsensitively

func ParseExtensionTypeIDInsensitively(input string) (*ExtensionTypeId, error)

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

func (*ExtensionTypeId) FromParseResult

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

func (ExtensionTypeId) ID

func (id ExtensionTypeId) ID() string

ID returns the formatted Extension Type ID

func (ExtensionTypeId) Segments

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

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

func (ExtensionTypeId) String

func (id ExtensionTypeId) String() string

String returns a human-readable description of this Extension Type ID

type ExtensionTypeListCompleteResult

type ExtensionTypeListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ExtensionType
}

type ExtensionTypeListCustomPager

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

type ExtensionTypeListOperationResponse

type ExtensionTypeListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ExtensionType
}

type ExtensionTypeOperationPredicate

type ExtensionTypeOperationPredicate struct {
	Id   *string
	Name *string
}

func (ExtensionTypeOperationPredicate) Matches

type ExtensionTypeVersionId

type ExtensionTypeVersionId struct {
	SubscriptionId    string
	LocationName      string
	PublisherName     string
	ExtensionTypeName string
	VersionName       string
}

ExtensionTypeVersionId is a struct representing the Resource ID for a Extension Type Version

func NewExtensionTypeVersionID

func NewExtensionTypeVersionID(subscriptionId string, locationName string, publisherName string, extensionTypeName string, versionName string) ExtensionTypeVersionId

NewExtensionTypeVersionID returns a new ExtensionTypeVersionId struct

func ParseExtensionTypeVersionID

func ParseExtensionTypeVersionID(input string) (*ExtensionTypeVersionId, error)

ParseExtensionTypeVersionID parses 'input' into a ExtensionTypeVersionId

func ParseExtensionTypeVersionIDInsensitively

func ParseExtensionTypeVersionIDInsensitively(input string) (*ExtensionTypeVersionId, error)

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

func (*ExtensionTypeVersionId) FromParseResult

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

func (ExtensionTypeVersionId) ID

ID returns the formatted Extension Type Version ID

func (ExtensionTypeVersionId) Segments

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

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

func (ExtensionTypeVersionId) String

func (id ExtensionTypeVersionId) String() string

String returns a human-readable description of this Extension Type Version ID

type ExtensionValue

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

type ExtensionValueListResult

type ExtensionValueListResult struct {
	Value *[]ExtensionValue `json:"value,omitempty"`
}

type ExtensionValueProperties

type ExtensionValueProperties struct {
	ExtensionType *string `json:"extensionType,omitempty"`
	Publisher     *string `json:"publisher,omitempty"`
	Version       *string `json:"version,omitempty"`
}

type ExtensionValueV2

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

type ExtensionValueV2OperationPredicate

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

func (ExtensionValueV2OperationPredicate) Matches

type ExtensionValueV2Properties

type ExtensionValueV2Properties struct {
	Architecture          *[]string `json:"architecture,omitempty"`
	ExtensionSignatureUri *string   `json:"extensionSignatureUri,omitempty"`
	ExtensionType         *string   `json:"extensionType,omitempty"`
	ExtensionUris         *[]string `json:"extensionUris,omitempty"`
	OperatingSystem       *string   `json:"operatingSystem,omitempty"`
	Publisher             *string   `json:"publisher,omitempty"`
	Version               *string   `json:"version,omitempty"`
}

type ExtensionsClient

type ExtensionsClient struct {
	Client *resourcemanager.Client
}

func NewExtensionsClientWithBaseURI

func NewExtensionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExtensionsClient, error)

func (ExtensionsClient) ExtensionMetadataGet

ExtensionMetadataGet ...

func (ExtensionsClient) ExtensionMetadataList

ExtensionMetadataList ...

func (ExtensionsClient) ExtensionMetadataV2Get

func (c ExtensionsClient) ExtensionMetadataV2Get(ctx context.Context, id VersionId) (result ExtensionMetadataV2GetOperationResponse, err error)

ExtensionMetadataV2Get ...

func (ExtensionsClient) ExtensionMetadataV2List

func (c ExtensionsClient) ExtensionMetadataV2List(ctx context.Context, id ExtensionTypeId) (result ExtensionMetadataV2ListOperationResponse, err error)

ExtensionMetadataV2List ...

func (ExtensionsClient) ExtensionMetadataV2ListComplete

func (c ExtensionsClient) ExtensionMetadataV2ListComplete(ctx context.Context, id ExtensionTypeId) (ExtensionMetadataV2ListCompleteResult, error)

ExtensionMetadataV2ListComplete retrieves all the results into a single object

func (ExtensionsClient) ExtensionMetadataV2ListCompleteMatchingPredicate

func (c ExtensionsClient) ExtensionMetadataV2ListCompleteMatchingPredicate(ctx context.Context, id ExtensionTypeId, predicate ExtensionValueV2OperationPredicate) (result ExtensionMetadataV2ListCompleteResult, err error)

ExtensionMetadataV2ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ExtensionsClient) ExtensionPublisherList

func (c ExtensionsClient) ExtensionPublisherList(ctx context.Context, id LocationId) (result ExtensionPublisherListOperationResponse, err error)

ExtensionPublisherList ...

func (ExtensionsClient) ExtensionPublisherListComplete

func (c ExtensionsClient) ExtensionPublisherListComplete(ctx context.Context, id LocationId) (ExtensionPublisherListCompleteResult, error)

ExtensionPublisherListComplete retrieves all the results into a single object

func (ExtensionsClient) ExtensionPublisherListCompleteMatchingPredicate

func (c ExtensionsClient) ExtensionPublisherListCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate ExtensionPublisherOperationPredicate) (result ExtensionPublisherListCompleteResult, err error)

ExtensionPublisherListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ExtensionsClient) ExtensionTypeList

func (c ExtensionsClient) ExtensionTypeList(ctx context.Context, id PublisherId) (result ExtensionTypeListOperationResponse, err error)

ExtensionTypeList ...

func (ExtensionsClient) ExtensionTypeListComplete

func (c ExtensionsClient) ExtensionTypeListComplete(ctx context.Context, id PublisherId) (ExtensionTypeListCompleteResult, error)

ExtensionTypeListComplete retrieves all the results into a single object

func (ExtensionsClient) ExtensionTypeListCompleteMatchingPredicate

func (c ExtensionsClient) ExtensionTypeListCompleteMatchingPredicate(ctx context.Context, id PublisherId, predicate ExtensionTypeOperationPredicate) (result ExtensionTypeListCompleteResult, err error)

ExtensionTypeListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type LocationId

type LocationId struct {
	LocationName string
}

LocationId is a struct representing the Resource ID for a Location

func NewLocationID

func NewLocationID(locationName string) LocationId

NewLocationID returns a new LocationId struct

func ParseLocationID

func ParseLocationID(input string) (*LocationId, error)

ParseLocationID parses 'input' into a LocationId

func ParseLocationIDInsensitively

func ParseLocationIDInsensitively(input string) (*LocationId, error)

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

func (*LocationId) FromParseResult

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

func (LocationId) ID

func (id LocationId) ID() string

ID returns the formatted Location ID

func (LocationId) Segments

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

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

func (LocationId) String

func (id LocationId) String() string

String returns a human-readable description of this Location ID

type PublisherExtensionTypeId

type PublisherExtensionTypeId struct {
	SubscriptionId    string
	LocationName      string
	PublisherName     string
	ExtensionTypeName string
}

PublisherExtensionTypeId is a struct representing the Resource ID for a Publisher Extension Type

func NewPublisherExtensionTypeID

func NewPublisherExtensionTypeID(subscriptionId string, locationName string, publisherName string, extensionTypeName string) PublisherExtensionTypeId

NewPublisherExtensionTypeID returns a new PublisherExtensionTypeId struct

func ParsePublisherExtensionTypeID

func ParsePublisherExtensionTypeID(input string) (*PublisherExtensionTypeId, error)

ParsePublisherExtensionTypeID parses 'input' into a PublisherExtensionTypeId

func ParsePublisherExtensionTypeIDInsensitively

func ParsePublisherExtensionTypeIDInsensitively(input string) (*PublisherExtensionTypeId, error)

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

func (*PublisherExtensionTypeId) FromParseResult

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

func (PublisherExtensionTypeId) ID

ID returns the formatted Publisher Extension Type ID

func (PublisherExtensionTypeId) Segments

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

func (PublisherExtensionTypeId) String

func (id PublisherExtensionTypeId) String() string

String returns a human-readable description of this Publisher Extension Type ID

type PublisherId

type PublisherId struct {
	LocationName  string
	PublisherName string
}

PublisherId is a struct representing the Resource ID for a Publisher

func NewPublisherID

func NewPublisherID(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) FromParseResult

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

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 VersionId

type VersionId struct {
	LocationName      string
	PublisherName     string
	ExtensionTypeName string
	VersionName       string
}

VersionId is a struct representing the Resource ID for a Version

func NewVersionID

func NewVersionID(locationName string, publisherName string, extensionTypeName 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) FromParseResult

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

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

Jump to

Keyboard shortcuts

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