README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/lots
Documentation
The lots
SDK allows for interaction with the Azure Resource Manager Service consumption
(API Version 2019-10-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/consumption/2019-10-01/lots"
Client Initialization
client := lots.NewLotsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: LotsClient.List
ctx := context.TODO()
id := lots.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")
// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func PossibleValuesForLotSource() []string
- type Amount
- type AmountWithExchangeRate
- type ListCompleteResult
- type ListOperationResponse
- type LotProperties
- type LotSource
- type LotSummary
- type LotSummaryOperationPredicate
- type LotsClient
- func (c LotsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error)
- func (c LotsClient) ListComplete(ctx context.Context, id commonids.ScopeId) (ListCompleteResult, error)
- func (c LotsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, ...) (result ListCompleteResult, err error)
- type Reseller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForLotSource ¶
func PossibleValuesForLotSource() []string
Types ¶
type AmountWithExchangeRate ¶
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []LotSummary
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]LotSummary }
type LotProperties ¶
type LotProperties struct { BillingCurrency *string `json:"billingCurrency,omitempty"` ClosedBalance *Amount `json:"closedBalance,omitempty"` ClosedBalanceInBillingCurrency *AmountWithExchangeRate `json:"closedBalanceInBillingCurrency,omitempty"` CreditCurrency *string `json:"creditCurrency,omitempty"` ExpirationDate *string `json:"expirationDate,omitempty"` OriginalAmount *Amount `json:"originalAmount,omitempty"` OriginalAmountInBillingCurrency *AmountWithExchangeRate `json:"originalAmountInBillingCurrency,omitempty"` PoNumber *string `json:"poNumber,omitempty"` Reseller *Reseller `json:"reseller,omitempty"` Source *LotSource `json:"source,omitempty"` StartDate *string `json:"startDate,omitempty"` }
func (*LotProperties) GetExpirationDateAsTime ¶
func (o *LotProperties) GetExpirationDateAsTime() (*time.Time, error)
func (*LotProperties) GetStartDateAsTime ¶
func (o *LotProperties) GetStartDateAsTime() (*time.Time, error)
func (*LotProperties) SetExpirationDateAsTime ¶
func (o *LotProperties) SetExpirationDateAsTime(input time.Time)
func (*LotProperties) SetStartDateAsTime ¶
func (o *LotProperties) SetStartDateAsTime(input time.Time)
type LotSource ¶
type LotSource string
func (*LotSource) UnmarshalJSON ¶ added in v0.20230411.1183115
type LotSummary ¶
type LotSummary struct { ETag *string `json:"eTag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *LotProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type LotSummaryOperationPredicate ¶
func (LotSummaryOperationPredicate) Matches ¶
func (p LotSummaryOperationPredicate) Matches(input LotSummary) bool
type LotsClient ¶
type LotsClient struct {
Client *resourcemanager.Client
}
func NewLotsClientWithBaseURI ¶
func NewLotsClientWithBaseURI(sdkApi sdkEnv.Api) (*LotsClient, error)
func (LotsClient) List ¶
func (c LotsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error)
List ...
func (LotsClient) ListComplete ¶
func (c LotsClient) ListComplete(ctx context.Context, id commonids.ScopeId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (LotsClient) ListCompleteMatchingPredicate ¶
func (c LotsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate LotSummaryOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
Click to show internal directories.
Click to hide internal directories.