grafanaplugin

package
v0.20240304.1112406 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 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")

// alternatively `client.GrafanaFetchAvailablePlugins(ctx, id)` can be used to do batched pagination
items, err := client.GrafanaFetchAvailablePluginsComplete(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 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 GrafanaAvailablePluginOperationPredicate added in v0.20240227.1172434

type GrafanaAvailablePluginOperationPredicate struct {
	Name     *string
	PluginId *string
}

func (GrafanaAvailablePluginOperationPredicate) Matches added in v0.20240227.1172434

type GrafanaFetchAvailablePluginsCompleteResult added in v0.20240227.1172434

type GrafanaFetchAvailablePluginsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []GrafanaAvailablePlugin
}

type GrafanaFetchAvailablePluginsOperationResponse

type GrafanaFetchAvailablePluginsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]GrafanaAvailablePlugin
}

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 ...

func (GrafanaPluginClient) GrafanaFetchAvailablePluginsComplete added in v0.20240227.1172434

func (c GrafanaPluginClient) GrafanaFetchAvailablePluginsComplete(ctx context.Context, id GrafanaId) (GrafanaFetchAvailablePluginsCompleteResult, error)

GrafanaFetchAvailablePluginsComplete retrieves all the results into a single object

func (GrafanaPluginClient) GrafanaFetchAvailablePluginsCompleteMatchingPredicate added in v0.20240227.1172434

func (c GrafanaPluginClient) GrafanaFetchAvailablePluginsCompleteMatchingPredicate(ctx context.Context, id GrafanaId, predicate GrafanaAvailablePluginOperationPredicate) (result GrafanaFetchAvailablePluginsCompleteResult, err error)

GrafanaFetchAvailablePluginsCompleteMatchingPredicate retrieves all the results and then applies the predicate

Jump to

Keyboard shortcuts

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