README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2023-01-01/linkedresources
Documentation
The linkedresources
SDK allows for interaction with the Azure Resource Manager Service datadog
(API Version 2023-01-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/2023-01-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 ¶
- func ValidateMonitorID(input interface{}, key string) (warnings []string, errors []error)
- type LinkedResource
- type LinkedResourceOperationPredicate
- type LinkedResourcesClient
- func (c LinkedResourcesClient) MonitorsListLinkedResources(ctx context.Context, id MonitorId) (result MonitorsListLinkedResourcesOperationResponse, err error)
- func (c LinkedResourcesClient) MonitorsListLinkedResourcesComplete(ctx context.Context, id MonitorId) (MonitorsListLinkedResourcesCompleteResult, error)
- func (c LinkedResourcesClient) MonitorsListLinkedResourcesCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate LinkedResourceOperationPredicate) (result MonitorsListLinkedResourcesCompleteResult, err error)
- type MonitorId
- type MonitorsListLinkedResourcesCompleteResult
- type MonitorsListLinkedResourcesOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateMonitorID ¶
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 ¶
func (p LinkedResourceOperationPredicate) Matches(input LinkedResource) bool
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 ¶
MonitorId is a struct representing the Resource ID for a Monitor
func NewMonitorID ¶
NewMonitorID returns a new MonitorId struct
func ParseMonitorID ¶
ParseMonitorID parses 'input' into a MonitorId
func ParseMonitorIDInsensitively ¶
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) Segments ¶
func (id MonitorId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Monitor ID
type MonitorsListLinkedResourcesCompleteResult ¶
type MonitorsListLinkedResourcesCompleteResult struct {
Items []LinkedResource
}
type MonitorsListLinkedResourcesOperationResponse ¶
type MonitorsListLinkedResourcesOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]LinkedResource }