connectedresources

package
v0.20250114.1063937 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2023-10-20/connectedresources Documentation

The connectedresources SDK allows for interaction with Azure Resource Manager datadog (API Version 2023-10-20).

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-10-20/connectedresources"

Client Initialization

client := connectedresources.NewConnectedResourcesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ConnectedResourcesClient.BillingInfoGet

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

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

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

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

Types

type BillingInfoGetOperationResponse

type BillingInfoGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BillingInfoResponse
}

type BillingInfoResponse

type BillingInfoResponse struct {
	MarketplaceSaasInfo  *MarketplaceSaaSInfo  `json:"marketplaceSaasInfo,omitempty"`
	PartnerBillingEntity *PartnerBillingEntity `json:"partnerBillingEntity,omitempty"`
}

type ConnectedResourcesClient

type ConnectedResourcesClient struct {
	Client *resourcemanager.Client
}

func NewConnectedResourcesClientWithBaseURI

func NewConnectedResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*ConnectedResourcesClient, error)

func (ConnectedResourcesClient) BillingInfoGet

BillingInfoGet ...

type MarketplaceSaaSInfo

type MarketplaceSaaSInfo struct {
	BilledAzureSubscriptionId *string `json:"billedAzureSubscriptionId,omitempty"`
	MarketplaceName           *string `json:"marketplaceName,omitempty"`
	MarketplaceStatus         *string `json:"marketplaceStatus,omitempty"`
	MarketplaceSubscriptionId *string `json:"marketplaceSubscriptionId,omitempty"`
	Subscribed                *bool   `json:"subscribed,omitempty"`
}

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

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 PartnerBillingEntity

type PartnerBillingEntity struct {
	Id               *string `json:"id,omitempty"`
	Name             *string `json:"name,omitempty"`
	PartnerEntityUri *string `json:"partnerEntityUri,omitempty"`
}

Jump to

Keyboard shortcuts

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