accounts

package
v0.20240123.1162016 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01-preview/accounts Documentation

The accounts SDK allows for interaction with the Azure Resource Manager Service newrelic (API Version 2022-07-01-preview).

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-preview/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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountProperties

type AccountProperties struct {
	AccountId      *string `json:"accountId,omitempty"`
	AccountName    *string `json:"accountName,omitempty"`
	OrganizationId *string `json:"organizationId,omitempty"`
	Region         *string `json:"region,omitempty"`
}

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

type AccountResourceOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (AccountResourceOperationPredicate) Matches

type AccountsClient

type AccountsClient struct {
	Client *resourcemanager.Client
}

func NewAccountsClientWithBaseURI

func NewAccountsClientWithBaseURI(sdkApi sdkEnv.Api) (*AccountsClient, error)

func (AccountsClient) List

List ...

func (AccountsClient) ListComplete

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

type ListOperationOptions struct {
	Location  *string
	UserEmail *string
}

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

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]AccountResource
}

Jump to

Keyboard shortcuts

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