extensions

package
v0.20231016.1052817 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-12-27/extensions Documentation

The extensions SDK allows for interaction with the Azure Resource Manager Service hybridcompute (API Version 2022-12-27).

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/2022-12-27/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", "locationValue", "publisherValue", "extensionTypeValue", "versionValue")

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", "locationValue", "publisherValue", "extensionTypeValue")

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

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 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 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) 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 ExtensionValueProperties

type ExtensionValueProperties struct {
	ExtensionType *string `json:"extensionType,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

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

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

Jump to

Keyboard shortcuts

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