linkedresources

package
v0.20231215.1114251 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources Documentation

The linkedresources SDK allows for interaction with the Azure Resource Manager Service datadog (API Version 2021-03-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/datadog/2021-03-01/linkedresources"

Client Initialization

client := linkedresources.NewLinkedResourcesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: LinkedResourcesClient.MonitorsListLinkedResources

ctx := context.TODO()
id := linkedresources.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue")

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

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

ValidateMonitorID checks that 'input' can be parsed as a Monitor ID

Types

type LinkedResource

type LinkedResource struct {
	Id *string `json:"id,omitempty"`
}

type LinkedResourceOperationPredicate

type LinkedResourceOperationPredicate struct {
	Id *string
}

func (LinkedResourceOperationPredicate) Matches

type LinkedResourcesClient

type LinkedResourcesClient struct {
	Client *resourcemanager.Client
}

func NewLinkedResourcesClientWithBaseURI

func NewLinkedResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*LinkedResourcesClient, error)

func (LinkedResourcesClient) MonitorsListLinkedResources

func (c LinkedResourcesClient) MonitorsListLinkedResources(ctx context.Context, id MonitorId) (result MonitorsListLinkedResourcesOperationResponse, err error)

MonitorsListLinkedResources ...

func (LinkedResourcesClient) MonitorsListLinkedResourcesComplete

func (c LinkedResourcesClient) MonitorsListLinkedResourcesComplete(ctx context.Context, id MonitorId) (MonitorsListLinkedResourcesCompleteResult, error)

MonitorsListLinkedResourcesComplete retrieves all the results into a single object

func (LinkedResourcesClient) MonitorsListLinkedResourcesCompleteMatchingPredicate

func (c LinkedResourcesClient) MonitorsListLinkedResourcesCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate LinkedResourceOperationPredicate) (result MonitorsListLinkedResourcesCompleteResult, err error)

MonitorsListLinkedResourcesCompleteMatchingPredicate retrieves all the results and then applies the predicate

type MonitorId

type MonitorId struct {
	SubscriptionId    string
	ResourceGroupName string
	MonitorName       string
}

MonitorId is a struct representing the Resource ID for a Monitor

func NewMonitorID

func NewMonitorID(subscriptionId string, resourceGroupName string, monitorName string) MonitorId

NewMonitorID returns a new MonitorId struct

func ParseMonitorID

func ParseMonitorID(input string) (*MonitorId, error)

ParseMonitorID parses 'input' into a MonitorId

func ParseMonitorIDInsensitively

func ParseMonitorIDInsensitively(input string) (*MonitorId, error)

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

func (*MonitorId) FromParseResult added in v0.20231127.1171502

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

func (MonitorId) ID

func (id MonitorId) ID() string

ID returns the formatted Monitor ID

func (MonitorId) Segments

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

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

func (MonitorId) String

func (id MonitorId) String() string

String returns a human-readable description of this Monitor ID

type MonitorsListLinkedResourcesCompleteResult

type MonitorsListLinkedResourcesCompleteResult struct {
	Items []LinkedResource
}

type MonitorsListLinkedResourcesOperationResponse

type MonitorsListLinkedResourcesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]LinkedResource
}

Jump to

Keyboard shortcuts

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