connectedresources

package
v0.20240227.1165506 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2024-03-01/connectedresources Documentation

The connectedresources SDK allows for interaction with the Azure Resource Manager Service elastic (API Version 2024-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/elastic/2024-03-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", "monitorValue")

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", "monitorValue")

// alternatively `client.ConnectedPartnerResourcesList(ctx, id)` can be used to do batched pagination
items, err := client.ConnectedPartnerResourcesListComplete(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 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 {
	AzureResourceId       *string `json:"azureResourceId,omitempty"`
	Location              *string `json:"location,omitempty"`
	PartnerDeploymentName *string `json:"partnerDeploymentName,omitempty"`
	PartnerDeploymentUri  *string `json:"partnerDeploymentUri,omitempty"`
}

type ConnectedPartnerResourcesListCompleteResult

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

type ConnectedPartnerResourcesListFormat

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

type ConnectedPartnerResourcesListOperationResponse

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

type ConnectedPartnerResourcesListResponse added in v0.20240226.1173038

type ConnectedPartnerResourcesListResponse struct {
	NextLink *string                                `json:"nextLink,omitempty"`
	Value    *[]ConnectedPartnerResourcesListFormat `json:"value,omitempty"`
}

type ConnectedPartnerResourcesListResponseOperationPredicate added in v0.20240226.1173038

type ConnectedPartnerResourcesListResponseOperationPredicate struct {
	NextLink *string
}

func (ConnectedPartnerResourcesListResponseOperationPredicate) Matches added in v0.20240226.1173038

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) (result ConnectedPartnerResourcesListOperationResponse, err error)

ConnectedPartnerResourcesList ...

func (ConnectedResourcesClient) ConnectedPartnerResourcesListComplete

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

ConnectedPartnerResourcesListComplete retrieves all the results into a single object

func (ConnectedResourcesClient) ConnectedPartnerResourcesListCompleteMatchingPredicate

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

ConnectedPartnerResourcesListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type MarketplaceSaaSInfo

type MarketplaceSaaSInfo struct {
	BilledAzureSubscriptionId *string                                     `json:"billedAzureSubscriptionId,omitempty"`
	MarketplaceName           *string                                     `json:"marketplaceName,omitempty"`
	MarketplaceResourceId     *string                                     `json:"marketplaceResourceId,omitempty"`
	MarketplaceStatus         *string                                     `json:"marketplaceStatus,omitempty"`
	MarketplaceSubscription   *MarketplaceSaaSInfoMarketplaceSubscription `json:"marketplaceSubscription,omitempty"`
	Subscribed                *bool                                       `json:"subscribed,omitempty"`
}

type MarketplaceSaaSInfoMarketplaceSubscription

type MarketplaceSaaSInfoMarketplaceSubscription struct {
	Id *string `json:"id,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