connectedresources

package
v0.20241205.1102105 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2024-10-01/connectedresources Documentation

The connectedresources SDK allows for interaction with Azure Resource Manager newrelic (API Version 2024-10-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/newrelic/2024-10-01/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
}

Example Usage: ConnectedResourcesClient.ConnectedPartnerResourcesList

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

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

type ConnectedPartnerResourceProperties struct {
	AccountId       *string `json:"accountId,omitempty"`
	AccountName     *string `json:"accountName,omitempty"`
	AzureResourceId *string `json:"azureResourceId,omitempty"`
	Location        *string `json:"location,omitempty"`
}

type ConnectedPartnerResourcesListCompleteResult

type ConnectedPartnerResourcesListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ConnectedPartnerResourcesListFormat
}

type ConnectedPartnerResourcesListCustomPager

type ConnectedPartnerResourcesListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type ConnectedPartnerResourcesListFormat

type ConnectedPartnerResourcesListFormat struct {
	Properties *ConnectedPartnerResourceProperties `json:"properties,omitempty"`
}

type ConnectedPartnerResourcesListFormatOperationPredicate

type ConnectedPartnerResourcesListFormatOperationPredicate struct {
}

func (ConnectedPartnerResourcesListFormatOperationPredicate) Matches

type ConnectedPartnerResourcesListOperationResponse

type ConnectedPartnerResourcesListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ConnectedPartnerResourcesListFormat
}

type ConnectedResourcesClient

type ConnectedResourcesClient struct {
	Client *resourcemanager.Client
}

func NewConnectedResourcesClientWithBaseURI

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

func (ConnectedResourcesClient) BillingInfoGet

BillingInfoGet ...

func (ConnectedResourcesClient) ConnectedPartnerResourcesList

func (c ConnectedResourcesClient) ConnectedPartnerResourcesList(ctx context.Context, id MonitorId, input string) (result ConnectedPartnerResourcesListOperationResponse, err error)

ConnectedPartnerResourcesList ...

func (ConnectedResourcesClient) ConnectedPartnerResourcesListComplete

func (c ConnectedResourcesClient) ConnectedPartnerResourcesListComplete(ctx context.Context, id MonitorId, input string) (ConnectedPartnerResourcesListCompleteResult, error)

ConnectedPartnerResourcesListComplete retrieves all the results into a single object

func (ConnectedResourcesClient) ConnectedPartnerResourcesListCompleteMatchingPredicate

func (c ConnectedResourcesClient) ConnectedPartnerResourcesListCompleteMatchingPredicate(ctx context.Context, id MonitorId, input string, predicate ConnectedPartnerResourcesListFormatOperationPredicate) (result ConnectedPartnerResourcesListCompleteResult, err error)

ConnectedPartnerResourcesListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type MarketplaceSaaSInfo

type MarketplaceSaaSInfo struct {
	BilledAzureSubscriptionId   *string `json:"billedAzureSubscriptionId,omitempty"`
	MarketplaceResourceId       *string `json:"marketplaceResourceId,omitempty"`
	MarketplaceStatus           *string `json:"marketplaceStatus,omitempty"`
	MarketplaceSubscriptionId   *string `json:"marketplaceSubscriptionId,omitempty"`
	MarketplaceSubscriptionName *string `json:"marketplaceSubscriptionName,omitempty"`
	OfferId                     *string `json:"offerId,omitempty"`
	PublisherId                 *string `json:"publisherId,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 {
	OrganizationId   *string `json:"organizationId,omitempty"`
	OrganizationName *string `json:"organizationName,omitempty"`
}

Jump to

Keyboard shortcuts

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