README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/accounts
Documentation
The accounts
SDK allows for interaction with the Azure Resource Manager Service newrelic
(API Version 2022-07-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/2022-07-01/accounts"
Client Initialization
client := accounts.NewAccountsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: AccountsClient.List
ctx := context.TODO()
id := accounts.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.List(ctx, id, accounts.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, accounts.DefaultListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- type AccountProperties
- type AccountResource
- type AccountResourceOperationPredicate
- type AccountsClient
- func (c AccountsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c AccountsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error)
- func (c AccountsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountProperties ¶
type AccountResource ¶
type AccountResource struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *AccountProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type AccountResourceOperationPredicate ¶
func (AccountResourceOperationPredicate) Matches ¶
func (p AccountResourceOperationPredicate) Matches(input AccountResource) bool
type AccountsClient ¶
type AccountsClient struct {
Client *resourcemanager.Client
}
func NewAccountsClientWithBaseURI ¶
func NewAccountsClientWithBaseURI(sdkApi sdkEnv.Api) (*AccountsClient, error)
func (AccountsClient) List ¶
func (c AccountsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (AccountsClient) ListComplete ¶
func (c AccountsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (AccountsClient) ListCompleteMatchingPredicate ¶
func (c AccountsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, predicate AccountResourceOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []AccountResource }
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]AccountResource }
Click to show internal directories.
Click to hide internal directories.