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 ¶
- func ValidateMonitorID(input interface{}, key string) (warnings []string, errors []error)
- type BillingInfoGetOperationResponse
- type BillingInfoResponse
- type ConnectedPartnerResourceProperties
- type ConnectedPartnerResourcesListCompleteResult
- type ConnectedPartnerResourcesListFormat
- type ConnectedPartnerResourcesListFormatOperationPredicate
- type ConnectedPartnerResourcesListOperationResponse
- type ConnectedResourcesClient
- func (c ConnectedResourcesClient) BillingInfoGet(ctx context.Context, id MonitorId) (result BillingInfoGetOperationResponse, err error)
- func (c ConnectedResourcesClient) ConnectedPartnerResourcesList(ctx context.Context, id MonitorId) (result ConnectedPartnerResourcesListOperationResponse, err error)
- func (c ConnectedResourcesClient) ConnectedPartnerResourcesListComplete(ctx context.Context, id MonitorId) (ConnectedPartnerResourcesListCompleteResult, error)
- func (c ConnectedResourcesClient) ConnectedPartnerResourcesListCompleteMatchingPredicate(ctx context.Context, id MonitorId, ...) (result ConnectedPartnerResourcesListCompleteResult, err error)
- type MarketplaceSaaSInfo
- type MarketplaceSaaSInfoMarketplaceSubscription
- type MonitorId
- type PartnerBillingEntity
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 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 ConnectedPartnerResourcesListCompleteResult ¶
type ConnectedPartnerResourcesListCompleteResult struct { LatestHttpResponse *http.Response Items []ConnectedPartnerResourcesListFormat }
type ConnectedPartnerResourcesListFormat ¶
type ConnectedPartnerResourcesListFormat struct {
Properties *ConnectedPartnerResourceProperties `json:"properties,omitempty"`
}
type ConnectedPartnerResourcesListFormatOperationPredicate ¶
type ConnectedPartnerResourcesListFormatOperationPredicate struct { }
func (ConnectedPartnerResourcesListFormatOperationPredicate) Matches ¶
func (p ConnectedPartnerResourcesListFormatOperationPredicate) Matches(input ConnectedPartnerResourcesListFormat) bool
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 ¶
func (c ConnectedResourcesClient) BillingInfoGet(ctx context.Context, id MonitorId) (result BillingInfoGetOperationResponse, err error)
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 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"` 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 ¶
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 ¶
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 PartnerBillingEntity ¶
Source Files ¶
- client.go
- id_monitor.go
- method_billinginfoget.go
- method_connectedpartnerresourceslist.go
- model_billinginforesponse.go
- model_connectedpartnerresourceproperties.go
- model_connectedpartnerresourceslistformat.go
- model_marketplacesaasinfo.go
- model_marketplacesaasinfomarketplacesubscription.go
- model_partnerbillingentity.go
- predicates.go
- version.go