grafanaplugin

package
v0.20240125.1150118 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaplugin Documentation

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

Client Initialization

client := grafanaplugin.NewGrafanaPluginClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: GrafanaPluginClient.GrafanaFetchAvailablePlugins

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

read, err := client.GrafanaFetchAvailablePlugins(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 ValidateGrafanaID

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

ValidateGrafanaID checks that 'input' can be parsed as a Grafana ID

Types

type GrafanaAvailablePlugin

type GrafanaAvailablePlugin struct {
	Name     *string `json:"name,omitempty"`
	PluginId *string `json:"pluginId,omitempty"`
}

type GrafanaAvailablePluginListResponse

type GrafanaAvailablePluginListResponse struct {
	NextLink *string                   `json:"nextLink,omitempty"`
	Value    *[]GrafanaAvailablePlugin `json:"value,omitempty"`
}

type GrafanaFetchAvailablePluginsOperationResponse

type GrafanaFetchAvailablePluginsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *GrafanaAvailablePluginListResponse
}

type GrafanaId

type GrafanaId struct {
	SubscriptionId    string
	ResourceGroupName string
	GrafanaName       string
}

GrafanaId is a struct representing the Resource ID for a Grafana

func NewGrafanaID

func NewGrafanaID(subscriptionId string, resourceGroupName string, grafanaName string) GrafanaId

NewGrafanaID returns a new GrafanaId struct

func ParseGrafanaID

func ParseGrafanaID(input string) (*GrafanaId, error)

ParseGrafanaID parses 'input' into a GrafanaId

func ParseGrafanaIDInsensitively

func ParseGrafanaIDInsensitively(input string) (*GrafanaId, error)

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

func (*GrafanaId) FromParseResult

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

func (GrafanaId) ID

func (id GrafanaId) ID() string

ID returns the formatted Grafana ID

func (GrafanaId) Segments

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

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

func (GrafanaId) String

func (id GrafanaId) String() string

String returns a human-readable description of this Grafana ID

type GrafanaPluginClient

type GrafanaPluginClient struct {
	Client *resourcemanager.Client
}

func NewGrafanaPluginClientWithBaseURI

func NewGrafanaPluginClientWithBaseURI(sdkApi sdkEnv.Api) (*GrafanaPluginClient, error)

func (GrafanaPluginClient) GrafanaFetchAvailablePlugins

func (c GrafanaPluginClient) GrafanaFetchAvailablePlugins(ctx context.Context, id GrafanaId) (result GrafanaFetchAvailablePluginsOperationResponse, err error)

GrafanaFetchAvailablePlugins ...

Jump to

Keyboard shortcuts

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