README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-05-20-preview/extensions
Documentation
The extensions
SDK allows for interaction with Azure Resource Manager hybridcompute
(API Version 2024-05-20-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/hybridcompute/2024-05-20-preview/extensions"
Client Initialization
client := extensions.NewExtensionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ExtensionsClient.ExtensionMetadataGet
ctx := context.TODO()
id := extensions.NewVersionID("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.NewExtensionTypeID("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
}
Documentation ¶
Index ¶
- func ValidateExtensionTypeID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVersionID(input interface{}, key string) (warnings []string, errors []error)
- type ExtensionMetadataGetOperationResponse
- type ExtensionMetadataListOperationResponse
- type ExtensionTypeId
- type ExtensionValue
- type ExtensionValueListResult
- type ExtensionValueProperties
- type ExtensionsClient
- type VersionId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateExtensionTypeID ¶
ValidateExtensionTypeID checks that 'input' can be parsed as a Extension Type ID
func ValidateVersionID ¶
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 ExtensionTypeId ¶
type ExtensionTypeId struct { SubscriptionId string LocationName string PublisherName string ExtensionTypeName string }
ExtensionTypeId is a struct representing the Resource ID for a Extension Type
func NewExtensionTypeID ¶
func NewExtensionTypeID(subscriptionId string, 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 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 ExtensionsClient ¶
type ExtensionsClient struct {
Client *resourcemanager.Client
}
func NewExtensionsClientWithBaseURI ¶
func NewExtensionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExtensionsClient, error)
func (ExtensionsClient) ExtensionMetadataGet ¶
func (c ExtensionsClient) ExtensionMetadataGet(ctx context.Context, id VersionId) (result ExtensionMetadataGetOperationResponse, err error)
ExtensionMetadataGet ...
func (ExtensionsClient) ExtensionMetadataList ¶
func (c ExtensionsClient) ExtensionMetadataList(ctx context.Context, id ExtensionTypeId) (result ExtensionMetadataListOperationResponse, err error)
ExtensionMetadataList ...
type VersionId ¶
type VersionId struct { SubscriptionId string LocationName string PublisherName string ExtensionTypeName string VersionName string }
VersionId is a struct representing the Resource ID for a Version
func NewVersionID ¶
func NewVersionID(subscriptionId string, locationName string, publisherName string, extensionTypeName string, versionName string) VersionId
NewVersionID returns a new VersionId struct
func ParseVersionID ¶
ParseVersionID parses 'input' into a VersionId
func ParseVersionIDInsensitively ¶
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) Segments ¶
func (id VersionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Version ID