README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/organizations
Documentation
The organizations
SDK allows for interaction with Azure Resource Manager 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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/organizations"
Client Initialization
client := organizations.NewOrganizationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: OrganizationsClient.List
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.List(ctx, id, organizations.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, organizations.DefaultListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func PossibleValuesForBillingSource() []string
- type BillingSource
- type ListCompleteResult
- type ListCustomPager
- type ListOperationOptions
- type ListOperationResponse
- type OrganizationProperties
- type OrganizationResource
- type OrganizationResourceOperationPredicate
- type OrganizationsClient
- func (c OrganizationsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c OrganizationsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error)
- func (c OrganizationsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForBillingSource ¶
func PossibleValuesForBillingSource() []string
Types ¶
type BillingSource ¶
type BillingSource string
const ( BillingSourceAZURE BillingSource = "AZURE" BillingSourceNEWRELIC BillingSource = "NEWRELIC" )
func (*BillingSource) UnmarshalJSON ¶
func (s *BillingSource) UnmarshalJSON(bytes []byte) error
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []OrganizationResource }
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
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 *[]OrganizationResource }
type OrganizationProperties ¶
type OrganizationProperties struct { BillingSource *BillingSource `json:"billingSource,omitempty"` OrganizationId *string `json:"organizationId,omitempty"` OrganizationName *string `json:"organizationName,omitempty"` }
type OrganizationResource ¶
type OrganizationResource struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *OrganizationProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type OrganizationResourceOperationPredicate ¶
func (OrganizationResourceOperationPredicate) Matches ¶
func (p OrganizationResourceOperationPredicate) Matches(input OrganizationResource) bool
type OrganizationsClient ¶
type OrganizationsClient struct {
Client *resourcemanager.Client
}
func NewOrganizationsClientWithBaseURI ¶
func NewOrganizationsClientWithBaseURI(sdkApi sdkEnv.Api) (*OrganizationsClient, error)
func (OrganizationsClient) List ¶
func (c OrganizationsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (OrganizationsClient) ListComplete ¶
func (c OrganizationsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (OrganizationsClient) ListCompleteMatchingPredicate ¶
func (c OrganizationsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, predicate OrganizationResourceOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
Click to show internal directories.
Click to hide internal directories.