Documentation
¶
Index ¶
- type AggregatedCostClient
- func (client *AggregatedCostClient) GetByManagementGroup(ctx context.Context, managementGroupID string, ...) (AggregatedCostGetByManagementGroupResponse, error)
- func (client *AggregatedCostClient) GetForBillingPeriodByManagementGroup(ctx context.Context, managementGroupID string, billingPeriodName string, ...) (AggregatedCostGetForBillingPeriodByManagementGroupResponse, error)
- type AggregatedCostGetByManagementGroupOptions
- type AggregatedCostGetByManagementGroupResponse
- type AggregatedCostGetByManagementGroupResult
- type AggregatedCostGetForBillingPeriodByManagementGroupOptions
- type AggregatedCostGetForBillingPeriodByManagementGroupResponse
- type AggregatedCostGetForBillingPeriodByManagementGroupResult
- type Amount
- type AmountWithExchangeRate
- type Balance
- type BalanceProperties
- type BalancePropertiesAdjustmentDetailsItem
- type BalancePropertiesNewPurchasesDetailsItem
- type BalancesClient
- func (client *BalancesClient) GetByBillingAccount(ctx context.Context, billingAccountID string, ...) (BalancesGetByBillingAccountResponse, error)
- func (client *BalancesClient) GetForBillingPeriodByBillingAccount(ctx context.Context, billingAccountID string, billingPeriodName string, ...) (BalancesGetForBillingPeriodByBillingAccountResponse, error)
- type BalancesGetByBillingAccountOptions
- type BalancesGetByBillingAccountResponse
- type BalancesGetByBillingAccountResult
- type BalancesGetForBillingPeriodByBillingAccountOptions
- type BalancesGetForBillingPeriodByBillingAccountResponse
- type BalancesGetForBillingPeriodByBillingAccountResult
- type BillingFrequency
- type Budget
- type BudgetComparisonExpression
- type BudgetFilter
- type BudgetFilterProperties
- type BudgetOperatorType
- type BudgetProperties
- type BudgetTimePeriod
- type BudgetsClient
- func (client *BudgetsClient) CreateOrUpdate(ctx context.Context, scope string, budgetName string, parameters Budget, ...) (BudgetsCreateOrUpdateResponse, error)
- func (client *BudgetsClient) Delete(ctx context.Context, scope string, budgetName string, ...) (BudgetsDeleteResponse, error)
- func (client *BudgetsClient) Get(ctx context.Context, scope string, budgetName string, ...) (BudgetsGetResponse, error)
- func (client *BudgetsClient) List(scope string, options *BudgetsListOptions) *BudgetsListPager
- type BudgetsCreateOrUpdateOptions
- type BudgetsCreateOrUpdateResponse
- type BudgetsCreateOrUpdateResult
- type BudgetsDeleteOptions
- type BudgetsDeleteResponse
- type BudgetsGetOptions
- type BudgetsGetResponse
- type BudgetsGetResult
- type BudgetsListOptions
- type BudgetsListPager
- type BudgetsListResponse
- type BudgetsListResult
- type BudgetsListResultEnvelope
- type CategoryType
- type ChargeSummary
- type ChargeSummaryClassification
- type ChargeSummaryKind
- type ChargesClient
- type ChargesListOptions
- type ChargesListResponse
- type ChargesListResult
- type ChargesListResultEnvelope
- type CreditBalanceSummary
- type CreditSummary
- type CreditSummaryProperties
- type CreditsClient
- type CreditsGetOptions
- type CreditsGetResponse
- type CreditsGetResult
- type CurrentSpend
- type Datagrain
- type DownloadProperties
- type ErrorDetails
- type ErrorResponse
- type EventProperties
- type EventSummary
- type EventType
- type Events
- type EventsClient
- func (client *EventsClient) ListByBillingAccount(billingAccountID string, options *EventsListByBillingAccountOptions) *EventsListByBillingAccountPager
- func (client *EventsClient) ListByBillingProfile(billingAccountID string, billingProfileID string, startDate string, ...) *EventsListByBillingProfilePager
- type EventsListByBillingAccountOptions
- type EventsListByBillingAccountPager
- type EventsListByBillingAccountResponse
- type EventsListByBillingAccountResult
- type EventsListByBillingProfileOptions
- type EventsListByBillingProfilePager
- type EventsListByBillingProfileResponse
- type EventsListByBillingProfileResult
- type ForecastSpend
- type HighCasedErrorDetails
- type HighCasedErrorResponse
- type LegacyChargeSummary
- type LegacyChargeSummaryProperties
- type LegacyReservationRecommendation
- type LegacyReservationRecommendationProperties
- type LegacyReservationTransaction
- type LegacyReservationTransactionProperties
- type LegacyUsageDetail
- type LegacyUsageDetailProperties
- type LookBackPeriod
- type LotProperties
- type LotSource
- type LotSummary
- type Lots
- type LotsClient
- type LotsListByBillingAccountOptions
- type LotsListByBillingAccountPager
- type LotsListByBillingAccountResponse
- type LotsListByBillingAccountResult
- type LotsListByBillingProfileOptions
- type LotsListByBillingProfilePager
- type LotsListByBillingProfileResponse
- type LotsListByBillingProfileResult
- type ManagementGroupAggregatedCostProperties
- type ManagementGroupAggregatedCostResult
- type Marketplace
- type MarketplaceProperties
- type MarketplacesClient
- type MarketplacesListOptions
- type MarketplacesListPager
- type MarketplacesListResponse
- type MarketplacesListResult
- type MarketplacesListResultEnvelope
- type MeterDetails
- type MeterDetailsResponse
- type Metrictype
- type ModernChargeSummary
- type ModernChargeSummaryProperties
- type ModernReservationRecommendation
- type ModernReservationRecommendationProperties
- type ModernReservationTransaction
- type ModernReservationTransactionProperties
- type ModernReservationTransactionsListResult
- type ModernUsageDetail
- type ModernUsageDetailProperties
- type Notification
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsListOptions
- type OperationsListPager
- type OperationsListResponse
- type OperationsListResult
- type OperatorType
- type PriceSheetClient
- type PriceSheetGetByBillingPeriodOptions
- type PriceSheetGetByBillingPeriodResponse
- type PriceSheetGetByBillingPeriodResult
- type PriceSheetGetOptions
- type PriceSheetGetResponse
- type PriceSheetGetResult
- type PriceSheetModel
- type PriceSheetProperties
- type PriceSheetResult
- type PricingModelType
- type ProxyResource
- type Reseller
- type ReservationDetail
- type ReservationDetailProperties
- type ReservationDetailsListResult
- type ReservationRecommendation
- type ReservationRecommendationClassification
- type ReservationRecommendationDetailsCalculatedSavingsProperties
- type ReservationRecommendationDetailsClient
- type ReservationRecommendationDetailsGetOptions
- type ReservationRecommendationDetailsGetResponse
- type ReservationRecommendationDetailsGetResult
- type ReservationRecommendationDetailsModel
- type ReservationRecommendationDetailsProperties
- type ReservationRecommendationDetailsResourceProperties
- type ReservationRecommendationDetailsSavingsProperties
- type ReservationRecommendationDetailsUsageProperties
- type ReservationRecommendationKind
- type ReservationRecommendationsClient
- type ReservationRecommendationsListOptions
- type ReservationRecommendationsListPager
- type ReservationRecommendationsListResponse
- type ReservationRecommendationsListResult
- type ReservationRecommendationsListResultEnvelope
- type ReservationSummariesListResult
- type ReservationSummary
- type ReservationSummaryProperties
- type ReservationTransaction
- type ReservationTransactionResource
- type ReservationTransactionsClient
- func (client *ReservationTransactionsClient) List(billingAccountID string, options *ReservationTransactionsListOptions) *ReservationTransactionsListPager
- func (client *ReservationTransactionsClient) ListByBillingProfile(billingAccountID string, billingProfileID string, ...) *ReservationTransactionsListByBillingProfilePager
- type ReservationTransactionsListByBillingProfileOptions
- type ReservationTransactionsListByBillingProfilePager
- type ReservationTransactionsListByBillingProfileResponse
- type ReservationTransactionsListByBillingProfileResult
- type ReservationTransactionsListOptions
- type ReservationTransactionsListPager
- type ReservationTransactionsListResponse
- type ReservationTransactionsListResult
- type ReservationTransactionsListResultEnvelope
- type ReservationsDetailsClient
- func (client *ReservationsDetailsClient) List(scope string, options *ReservationsDetailsListOptions) *ReservationsDetailsListPager
- func (client *ReservationsDetailsClient) ListByReservationOrder(reservationOrderID string, filter string, ...) *ReservationsDetailsListByReservationOrderPager
- func (client *ReservationsDetailsClient) ListByReservationOrderAndReservation(reservationOrderID string, reservationID string, filter string, ...) *ReservationsDetailsListByReservationOrderAndReservationPager
- type ReservationsDetailsListByReservationOrderAndReservationOptions
- type ReservationsDetailsListByReservationOrderAndReservationPager
- func (p *ReservationsDetailsListByReservationOrderAndReservationPager) Err() error
- func (p *ReservationsDetailsListByReservationOrderAndReservationPager) NextPage(ctx context.Context) bool
- func (p *ReservationsDetailsListByReservationOrderAndReservationPager) PageResponse() ReservationsDetailsListByReservationOrderAndReservationResponse
- type ReservationsDetailsListByReservationOrderAndReservationResponse
- type ReservationsDetailsListByReservationOrderAndReservationResult
- type ReservationsDetailsListByReservationOrderOptions
- type ReservationsDetailsListByReservationOrderPager
- type ReservationsDetailsListByReservationOrderResponse
- type ReservationsDetailsListByReservationOrderResult
- type ReservationsDetailsListOptions
- type ReservationsDetailsListPager
- type ReservationsDetailsListResponse
- type ReservationsDetailsListResult
- type ReservationsSummariesClient
- func (client *ReservationsSummariesClient) List(scope string, grain Datagrain, options *ReservationsSummariesListOptions) *ReservationsSummariesListPager
- func (client *ReservationsSummariesClient) ListByReservationOrder(reservationOrderID string, grain Datagrain, ...) *ReservationsSummariesListByReservationOrderPager
- func (client *ReservationsSummariesClient) ListByReservationOrderAndReservation(reservationOrderID string, reservationID string, grain Datagrain, ...) *ReservationsSummariesListByReservationOrderAndReservationPager
- type ReservationsSummariesListByReservationOrderAndReservationOptions
- type ReservationsSummariesListByReservationOrderAndReservationPager
- func (p *ReservationsSummariesListByReservationOrderAndReservationPager) Err() error
- func (p *ReservationsSummariesListByReservationOrderAndReservationPager) NextPage(ctx context.Context) bool
- func (p *ReservationsSummariesListByReservationOrderAndReservationPager) PageResponse() ReservationsSummariesListByReservationOrderAndReservationResponse
- type ReservationsSummariesListByReservationOrderAndReservationResponse
- type ReservationsSummariesListByReservationOrderAndReservationResult
- type ReservationsSummariesListByReservationOrderOptions
- type ReservationsSummariesListByReservationOrderPager
- type ReservationsSummariesListByReservationOrderResponse
- type ReservationsSummariesListByReservationOrderResult
- type ReservationsSummariesListOptions
- type ReservationsSummariesListPager
- type ReservationsSummariesListResponse
- type ReservationsSummariesListResult
- type Resource
- type ResourceAttributes
- type SKUProperty
- type Scope
- type Status
- type Tag
- type TagProperties
- type TagsClient
- type TagsGetOptions
- type TagsGetResponse
- type TagsGetResult
- type TagsResult
- type Term
- type ThresholdType
- type TimeGrainType
- type UsageDetail
- type UsageDetailClassification
- type UsageDetailsClient
- type UsageDetailsKind
- type UsageDetailsListOptions
- type UsageDetailsListPager
- type UsageDetailsListResponse
- type UsageDetailsListResult
- type UsageDetailsListResultEnvelope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregatedCostClient ¶
type AggregatedCostClient struct {
// contains filtered or unexported fields
}
AggregatedCostClient contains the methods for the AggregatedCost group. Don't use this type directly, use NewAggregatedCostClient() instead.
func NewAggregatedCostClient ¶
func NewAggregatedCostClient(credential azcore.TokenCredential, options *arm.ClientOptions) *AggregatedCostClient
NewAggregatedCostClient creates a new instance of AggregatedCostClient with the specified values.
func (*AggregatedCostClient) GetByManagementGroup ¶
func (client *AggregatedCostClient) GetByManagementGroup(ctx context.Context, managementGroupID string, options *AggregatedCostGetByManagementGroupOptions) (AggregatedCostGetByManagementGroupResponse, error)
GetByManagementGroup - Provides the aggregate cost of a management group and all child management groups by current billing period. If the operation fails it returns the *ErrorResponse error type.
func (*AggregatedCostClient) GetForBillingPeriodByManagementGroup ¶
func (client *AggregatedCostClient) GetForBillingPeriodByManagementGroup(ctx context.Context, managementGroupID string, billingPeriodName string, options *AggregatedCostGetForBillingPeriodByManagementGroupOptions) (AggregatedCostGetForBillingPeriodByManagementGroupResponse, error)
GetForBillingPeriodByManagementGroup - Provides the aggregate cost of a management group and all child management groups by specified billing period If the operation fails it returns the *ErrorResponse error type.
type AggregatedCostGetByManagementGroupOptions ¶
type AggregatedCostGetByManagementGroupOptions struct { // May be used to filter aggregated cost by properties/usageStart (Utc time), properties/usageEnd (Utc time). The filter supports 'eq', 'lt', 'gt', 'le', // 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon // (:). Filter *string }
AggregatedCostGetByManagementGroupOptions contains the optional parameters for the AggregatedCost.GetByManagementGroup method.
type AggregatedCostGetByManagementGroupResponse ¶
type AggregatedCostGetByManagementGroupResponse struct { AggregatedCostGetByManagementGroupResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
AggregatedCostGetByManagementGroupResponse contains the response from method AggregatedCost.GetByManagementGroup.
type AggregatedCostGetByManagementGroupResult ¶
type AggregatedCostGetByManagementGroupResult struct {
ManagementGroupAggregatedCostResult
}
AggregatedCostGetByManagementGroupResult contains the result from method AggregatedCost.GetByManagementGroup.
type AggregatedCostGetForBillingPeriodByManagementGroupOptions ¶
type AggregatedCostGetForBillingPeriodByManagementGroupOptions struct { }
AggregatedCostGetForBillingPeriodByManagementGroupOptions contains the optional parameters for the AggregatedCost.GetForBillingPeriodByManagementGroup method.
type AggregatedCostGetForBillingPeriodByManagementGroupResponse ¶
type AggregatedCostGetForBillingPeriodByManagementGroupResponse struct { AggregatedCostGetForBillingPeriodByManagementGroupResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
AggregatedCostGetForBillingPeriodByManagementGroupResponse contains the response from method AggregatedCost.GetForBillingPeriodByManagementGroup.
type AggregatedCostGetForBillingPeriodByManagementGroupResult ¶
type AggregatedCostGetForBillingPeriodByManagementGroupResult struct {
ManagementGroupAggregatedCostResult
}
AggregatedCostGetForBillingPeriodByManagementGroupResult contains the result from method AggregatedCost.GetForBillingPeriodByManagementGroup.
type Amount ¶
type Amount struct { // READ-ONLY; Amount currency. Currency *string `json:"currency,omitempty" azure:"ro"` // READ-ONLY; Amount. Value *float64 `json:"value,omitempty" azure:"ro"` }
Amount - The amount plus currency .
type AmountWithExchangeRate ¶
type AmountWithExchangeRate struct { Amount // READ-ONLY; The exchange rate. ExchangeRate *float64 `json:"exchangeRate,omitempty" azure:"ro"` // READ-ONLY; The exchange rate month. ExchangeRateMonth *int32 `json:"exchangeRateMonth,omitempty" azure:"ro"` }
AmountWithExchangeRate - The amount with exchange rate.
type Balance ¶
type Balance struct { Resource // The properties of the balance. Properties *BalanceProperties `json:"properties,omitempty"` }
Balance - A balance resource.
func (Balance) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Balance.
func (*Balance) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Balance.
type BalanceProperties ¶
type BalanceProperties struct { // The billing frequency. BillingFrequency *BillingFrequency `json:"billingFrequency,omitempty"` // READ-ONLY; List of Adjustments (Promo credit, SIE credit etc.). AdjustmentDetails []*BalancePropertiesAdjustmentDetailsItem `json:"adjustmentDetails,omitempty" azure:"ro"` // READ-ONLY; Total adjustment amount. Adjustments *float64 `json:"adjustments,omitempty" azure:"ro"` // READ-ONLY; Total charges for Azure Marketplace. AzureMarketplaceServiceCharges *float64 `json:"azureMarketplaceServiceCharges,omitempty" azure:"ro"` // READ-ONLY; The beginning balance for the billing period. BeginningBalance *float64 `json:"beginningBalance,omitempty" azure:"ro"` // READ-ONLY; Charges Billed separately. ChargesBilledSeparately *float64 `json:"chargesBilledSeparately,omitempty" azure:"ro"` // READ-ONLY; The ISO currency in which the meter is charged, for example, USD. Currency *string `json:"currency,omitempty" azure:"ro"` // READ-ONLY; The ending balance for the billing period (for open periods this will be updated daily). EndingBalance *float64 `json:"endingBalance,omitempty" azure:"ro"` // READ-ONLY; Total new purchase amount. NewPurchases *float64 `json:"newPurchases,omitempty" azure:"ro"` // READ-ONLY; List of new purchases. NewPurchasesDetails []*BalancePropertiesNewPurchasesDetailsItem `json:"newPurchasesDetails,omitempty" azure:"ro"` // READ-ONLY; Price is hidden or not. PriceHidden *bool `json:"priceHidden,omitempty" azure:"ro"` // READ-ONLY; Overage for Azure services. ServiceOverage *float64 `json:"serviceOverage,omitempty" azure:"ro"` // READ-ONLY; serviceOverage + chargesBilledSeparately. TotalOverage *float64 `json:"totalOverage,omitempty" azure:"ro"` // READ-ONLY; Azure service commitment + total Overage. TotalUsage *float64 `json:"totalUsage,omitempty" azure:"ro"` // READ-ONLY; Total Commitment usage. Utilized *float64 `json:"utilized,omitempty" azure:"ro"` }
BalanceProperties - The properties of the balance.
func (BalanceProperties) MarshalJSON ¶
func (b BalanceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BalanceProperties.
type BalancesClient ¶
type BalancesClient struct {
// contains filtered or unexported fields
}
BalancesClient contains the methods for the Balances group. Don't use this type directly, use NewBalancesClient() instead.
func NewBalancesClient ¶
func NewBalancesClient(credential azcore.TokenCredential, options *arm.ClientOptions) *BalancesClient
NewBalancesClient creates a new instance of BalancesClient with the specified values.
func (*BalancesClient) GetByBillingAccount ¶
func (client *BalancesClient) GetByBillingAccount(ctx context.Context, billingAccountID string, options *BalancesGetByBillingAccountOptions) (BalancesGetByBillingAccountResponse, error)
GetByBillingAccount - Gets the balances for a scope by billingAccountId. Balances are available via this API only for May 1, 2014 or later. If the operation fails it returns the *ErrorResponse error type.
func (*BalancesClient) GetForBillingPeriodByBillingAccount ¶
func (client *BalancesClient) GetForBillingPeriodByBillingAccount(ctx context.Context, billingAccountID string, billingPeriodName string, options *BalancesGetForBillingPeriodByBillingAccountOptions) (BalancesGetForBillingPeriodByBillingAccountResponse, error)
GetForBillingPeriodByBillingAccount - Gets the balances for a scope by billing period and billingAccountId. Balances are available via this API only for May 1, 2014 or later. If the operation fails it returns the *ErrorResponse error type.
type BalancesGetByBillingAccountOptions ¶
type BalancesGetByBillingAccountOptions struct { }
BalancesGetByBillingAccountOptions contains the optional parameters for the Balances.GetByBillingAccount method.
type BalancesGetByBillingAccountResponse ¶
type BalancesGetByBillingAccountResponse struct { BalancesGetByBillingAccountResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BalancesGetByBillingAccountResponse contains the response from method Balances.GetByBillingAccount.
type BalancesGetByBillingAccountResult ¶
type BalancesGetByBillingAccountResult struct {
Balance
}
BalancesGetByBillingAccountResult contains the result from method Balances.GetByBillingAccount.
type BalancesGetForBillingPeriodByBillingAccountOptions ¶
type BalancesGetForBillingPeriodByBillingAccountOptions struct { }
BalancesGetForBillingPeriodByBillingAccountOptions contains the optional parameters for the Balances.GetForBillingPeriodByBillingAccount method.
type BalancesGetForBillingPeriodByBillingAccountResponse ¶
type BalancesGetForBillingPeriodByBillingAccountResponse struct { BalancesGetForBillingPeriodByBillingAccountResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BalancesGetForBillingPeriodByBillingAccountResponse contains the response from method Balances.GetForBillingPeriodByBillingAccount.
type BalancesGetForBillingPeriodByBillingAccountResult ¶
type BalancesGetForBillingPeriodByBillingAccountResult struct {
Balance
}
BalancesGetForBillingPeriodByBillingAccountResult contains the result from method Balances.GetForBillingPeriodByBillingAccount.
type BillingFrequency ¶
type BillingFrequency string
BillingFrequency - The billing frequency.
const ( BillingFrequencyMonth BillingFrequency = "Month" BillingFrequencyQuarter BillingFrequency = "Quarter" BillingFrequencyYear BillingFrequency = "Year" )
func PossibleBillingFrequencyValues ¶
func PossibleBillingFrequencyValues() []BillingFrequency
PossibleBillingFrequencyValues returns the possible values for the BillingFrequency const type.
func (BillingFrequency) ToPtr ¶
func (c BillingFrequency) ToPtr() *BillingFrequency
ToPtr returns a *BillingFrequency pointing to the current value.
type Budget ¶
type Budget struct { ProxyResource // The properties of the budget. Properties *BudgetProperties `json:"properties,omitempty"` }
Budget - A budget resource.
type BudgetComparisonExpression ¶
type BudgetComparisonExpression struct { // REQUIRED; The name of the column to use in comparison. Name *string `json:"name,omitempty"` // REQUIRED; The operator to use for comparison. Operator *BudgetOperatorType `json:"operator,omitempty"` // REQUIRED; Array of values to use for comparison Values []*string `json:"values,omitempty"` }
BudgetComparisonExpression - The comparison expression to be used in the budgets.
func (BudgetComparisonExpression) MarshalJSON ¶
func (b BudgetComparisonExpression) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BudgetComparisonExpression.
type BudgetFilter ¶
type BudgetFilter struct { // The logical "AND" expression. Must have at least 2 items. And []*BudgetFilterProperties `json:"and,omitempty"` // Has comparison expression for a dimension Dimensions *BudgetComparisonExpression `json:"dimensions,omitempty"` // The logical "NOT" expression. Not *BudgetFilterProperties `json:"not,omitempty"` // Has comparison expression for a tag Tags *BudgetComparisonExpression `json:"tags,omitempty"` }
BudgetFilter - May be used to filter budgets by resource group, resource, or meter.
func (BudgetFilter) MarshalJSON ¶
func (b BudgetFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BudgetFilter.
type BudgetFilterProperties ¶
type BudgetFilterProperties struct { // Has comparison expression for a dimension Dimensions *BudgetComparisonExpression `json:"dimensions,omitempty"` // Has comparison expression for a tag Tags *BudgetComparisonExpression `json:"tags,omitempty"` }
BudgetFilterProperties - The Dimensions or Tags to filter a budget by.
type BudgetOperatorType ¶
type BudgetOperatorType string
BudgetOperatorType - The operator to use for comparison.
const (
BudgetOperatorTypeIn BudgetOperatorType = "In"
)
func PossibleBudgetOperatorTypeValues ¶
func PossibleBudgetOperatorTypeValues() []BudgetOperatorType
PossibleBudgetOperatorTypeValues returns the possible values for the BudgetOperatorType const type.
func (BudgetOperatorType) ToPtr ¶
func (c BudgetOperatorType) ToPtr() *BudgetOperatorType
ToPtr returns a *BudgetOperatorType pointing to the current value.
type BudgetProperties ¶
type BudgetProperties struct { // REQUIRED; The total amount of cost to track with the budget Amount *float64 `json:"amount,omitempty"` // REQUIRED; The category of the budget, whether the budget tracks cost or usage. Category *CategoryType `json:"category,omitempty"` // REQUIRED; The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual // are only supported by WD customers TimeGrain *TimeGrainType `json:"timeGrain,omitempty"` // REQUIRED; Has start and end date of the budget. The start date must be first of the month and should be less than the end date. Budget start date must // be on or after June 1, 2017. Future start date should not // be more than twelve months. Past start date should be selected within the timegrain period. There are no restrictions on the end date. TimePeriod *BudgetTimePeriod `json:"timePeriod,omitempty"` // May be used to filter budgets by user-specified dimensions and/or tags. Filter *BudgetFilter `json:"filter,omitempty"` // Dictionary of notifications associated with the budget. Budget can have up to five notifications. Notifications map[string]*Notification `json:"notifications,omitempty"` // READ-ONLY; The current amount of cost which is being tracked for a budget. CurrentSpend *CurrentSpend `json:"currentSpend,omitempty" azure:"ro"` // READ-ONLY; The forecasted cost which is being tracked for a budget. ForecastSpend *ForecastSpend `json:"forecastSpend,omitempty" azure:"ro"` }
BudgetProperties - The properties of the budget.
func (BudgetProperties) MarshalJSON ¶
func (b BudgetProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BudgetProperties.
type BudgetTimePeriod ¶
type BudgetTimePeriod struct { // REQUIRED; The start date for the budget. StartDate *time.Time `json:"startDate,omitempty"` // The end date for the budget. If not provided, we default this to 10 years from the start date. EndDate *time.Time `json:"endDate,omitempty"` }
BudgetTimePeriod - The start and end date for a budget.
func (BudgetTimePeriod) MarshalJSON ¶
func (b BudgetTimePeriod) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BudgetTimePeriod.
func (*BudgetTimePeriod) UnmarshalJSON ¶
func (b *BudgetTimePeriod) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BudgetTimePeriod.
type BudgetsClient ¶
type BudgetsClient struct {
// contains filtered or unexported fields
}
BudgetsClient contains the methods for the Budgets group. Don't use this type directly, use NewBudgetsClient() instead.
func NewBudgetsClient ¶
func NewBudgetsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *BudgetsClient
NewBudgetsClient creates a new instance of BudgetsClient with the specified values.
func (*BudgetsClient) CreateOrUpdate ¶
func (client *BudgetsClient) CreateOrUpdate(ctx context.Context, scope string, budgetName string, parameters Budget, options *BudgetsCreateOrUpdateOptions) (BudgetsCreateOrUpdateResponse, error)
CreateOrUpdate - The operation to create or update a budget. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given budget, perform a get operation prior to your put operation. If the operation fails it returns the *ErrorResponse error type.
func (*BudgetsClient) Delete ¶
func (client *BudgetsClient) Delete(ctx context.Context, scope string, budgetName string, options *BudgetsDeleteOptions) (BudgetsDeleteResponse, error)
Delete - The operation to delete a budget. If the operation fails it returns the *ErrorResponse error type.
func (*BudgetsClient) Get ¶
func (client *BudgetsClient) Get(ctx context.Context, scope string, budgetName string, options *BudgetsGetOptions) (BudgetsGetResponse, error)
Get - Gets the budget for the scope by budget name. If the operation fails it returns the *ErrorResponse error type.
func (*BudgetsClient) List ¶
func (client *BudgetsClient) List(scope string, options *BudgetsListOptions) *BudgetsListPager
List - Lists all budgets for the defined scope. If the operation fails it returns the *ErrorResponse error type.
type BudgetsCreateOrUpdateOptions ¶
type BudgetsCreateOrUpdateOptions struct { }
BudgetsCreateOrUpdateOptions contains the optional parameters for the Budgets.CreateOrUpdate method.
type BudgetsCreateOrUpdateResponse ¶
type BudgetsCreateOrUpdateResponse struct { BudgetsCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BudgetsCreateOrUpdateResponse contains the response from method Budgets.CreateOrUpdate.
type BudgetsCreateOrUpdateResult ¶
type BudgetsCreateOrUpdateResult struct {
Budget
}
BudgetsCreateOrUpdateResult contains the result from method Budgets.CreateOrUpdate.
type BudgetsDeleteOptions ¶
type BudgetsDeleteOptions struct { }
BudgetsDeleteOptions contains the optional parameters for the Budgets.Delete method.
type BudgetsDeleteResponse ¶
type BudgetsDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BudgetsDeleteResponse contains the response from method Budgets.Delete.
type BudgetsGetOptions ¶
type BudgetsGetOptions struct { }
BudgetsGetOptions contains the optional parameters for the Budgets.Get method.
type BudgetsGetResponse ¶
type BudgetsGetResponse struct { BudgetsGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BudgetsGetResponse contains the response from method Budgets.Get.
type BudgetsGetResult ¶
type BudgetsGetResult struct {
Budget
}
BudgetsGetResult contains the result from method Budgets.Get.
type BudgetsListOptions ¶
type BudgetsListOptions struct { }
BudgetsListOptions contains the optional parameters for the Budgets.List method.
type BudgetsListPager ¶
type BudgetsListPager struct {
// contains filtered or unexported fields
}
BudgetsListPager provides operations for iterating over paged responses.
func (*BudgetsListPager) Err ¶
func (p *BudgetsListPager) Err() error
Err returns the last error encountered while paging.
func (*BudgetsListPager) NextPage ¶
func (p *BudgetsListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*BudgetsListPager) PageResponse ¶
func (p *BudgetsListPager) PageResponse() BudgetsListResponse
PageResponse returns the current BudgetsListResponse page.
type BudgetsListResponse ¶
type BudgetsListResponse struct { BudgetsListResultEnvelope // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
BudgetsListResponse contains the response from method Budgets.List.
type BudgetsListResult ¶
type BudgetsListResult struct { // READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; The list of budgets. Value []*Budget `json:"value,omitempty" azure:"ro"` }
BudgetsListResult - Result of listing budgets. It contains a list of available budgets in the scope provided.
func (BudgetsListResult) MarshalJSON ¶
func (b BudgetsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BudgetsListResult.
type BudgetsListResultEnvelope ¶
type BudgetsListResultEnvelope struct {
BudgetsListResult
}
BudgetsListResultEnvelope contains the result from method Budgets.List.
type CategoryType ¶
type CategoryType string
CategoryType - The category of the budget, whether the budget tracks cost or usage.
const (
CategoryTypeCost CategoryType = "Cost"
)
func PossibleCategoryTypeValues ¶
func PossibleCategoryTypeValues() []CategoryType
PossibleCategoryTypeValues returns the possible values for the CategoryType const type.
func (CategoryType) ToPtr ¶
func (c CategoryType) ToPtr() *CategoryType
ToPtr returns a *CategoryType pointing to the current value.
type ChargeSummary ¶
type ChargeSummary struct { Resource // REQUIRED; Specifies the kind of charge summary. Kind *ChargeSummaryKind `json:"kind,omitempty"` }
ChargeSummary - A charge summary resource.
func (*ChargeSummary) GetChargeSummary ¶
func (c *ChargeSummary) GetChargeSummary() *ChargeSummary
GetChargeSummary implements the ChargeSummaryClassification interface for type ChargeSummary.
func (*ChargeSummary) UnmarshalJSON ¶
func (c *ChargeSummary) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ChargeSummary.
type ChargeSummaryClassification ¶
type ChargeSummaryClassification interface { // GetChargeSummary returns the ChargeSummary content of the underlying type. GetChargeSummary() *ChargeSummary }
ChargeSummaryClassification provides polymorphic access to related types. Call the interface's GetChargeSummary() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ChargeSummary, *LegacyChargeSummary, *ModernChargeSummary
type ChargeSummaryKind ¶
type ChargeSummaryKind string
ChargeSummaryKind - Specifies the kind of charge summary.
const ( ChargeSummaryKindLegacy ChargeSummaryKind = "legacy" ChargeSummaryKindModern ChargeSummaryKind = "modern" )
func PossibleChargeSummaryKindValues ¶
func PossibleChargeSummaryKindValues() []ChargeSummaryKind
PossibleChargeSummaryKindValues returns the possible values for the ChargeSummaryKind const type.
func (ChargeSummaryKind) ToPtr ¶
func (c ChargeSummaryKind) ToPtr() *ChargeSummaryKind
ToPtr returns a *ChargeSummaryKind pointing to the current value.
type ChargesClient ¶
type ChargesClient struct {
// contains filtered or unexported fields
}
ChargesClient contains the methods for the Charges group. Don't use this type directly, use NewChargesClient() instead.
func NewChargesClient ¶
func NewChargesClient(credential azcore.TokenCredential, options *arm.ClientOptions) *ChargesClient
NewChargesClient creates a new instance of ChargesClient with the specified values.
func (*ChargesClient) List ¶
func (client *ChargesClient) List(ctx context.Context, scope string, options *ChargesListOptions) (ChargesListResponse, error)
List - Lists the charges based for the defined scope. If the operation fails it returns the *ErrorResponse error type.
type ChargesListOptions ¶
type ChargesListOptions struct { // May be used to group charges for billingAccount scope by properties/billingProfileId, properties/invoiceSectionId, properties/customerId (specific for // Partner Led), or for billingProfile scope by properties/invoiceSectionId. Apply *string // End date EndDate *string // May be used to filter charges by properties/usageEnd (Utc time), properties/usageStart (Utc time). The filter supports 'eq', 'lt', 'gt', 'le', 'ge', // and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:). Filter *string // Start date StartDate *string }
ChargesListOptions contains the optional parameters for the Charges.List method.
type ChargesListResponse ¶
type ChargesListResponse struct { ChargesListResultEnvelope // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ChargesListResponse contains the response from method Charges.List.
type ChargesListResult ¶
type ChargesListResult struct { // READ-ONLY; The list of charge summary Value []ChargeSummaryClassification `json:"value,omitempty" azure:"ro"` }
ChargesListResult - Result of listing charge summary.
func (ChargesListResult) MarshalJSON ¶
func (c ChargesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ChargesListResult.
func (*ChargesListResult) UnmarshalJSON ¶
func (c *ChargesListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ChargesListResult.
type ChargesListResultEnvelope ¶
type ChargesListResultEnvelope struct {
ChargesListResult
}
ChargesListResultEnvelope contains the result from method Charges.List.
type CreditBalanceSummary ¶
type CreditBalanceSummary struct { // READ-ONLY; Current balance. CurrentBalance *Amount `json:"currentBalance,omitempty" azure:"ro"` // READ-ONLY; Estimated balance. EstimatedBalance *Amount `json:"estimatedBalance,omitempty" azure:"ro"` // READ-ONLY; Estimated balance in billing currency. EstimatedBalanceInBillingCurrency *AmountWithExchangeRate `json:"estimatedBalanceInBillingCurrency,omitempty" azure:"ro"` }
CreditBalanceSummary - Summary of credit balances.
type CreditSummary ¶
type CreditSummary struct { Resource // The properties of the credit summary. Properties *CreditSummaryProperties `json:"properties,omitempty"` }
CreditSummary - A credit summary resource.
func (CreditSummary) MarshalJSON ¶
func (c CreditSummary) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CreditSummary.
func (*CreditSummary) UnmarshalJSON ¶
func (c *CreditSummary) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CreditSummary.
type CreditSummaryProperties ¶
type CreditSummaryProperties struct { // READ-ONLY; Summary of balances associated with this credit summary. BalanceSummary *CreditBalanceSummary `json:"balanceSummary,omitempty" azure:"ro"` // READ-ONLY; The billing currency. BillingCurrency *string `json:"billingCurrency,omitempty" azure:"ro"` // READ-ONLY; The credit currency. CreditCurrency *string `json:"creditCurrency,omitempty" azure:"ro"` // READ-ONLY; The eTag for the resource. ETag *string `json:"eTag,omitempty" azure:"ro"` // READ-ONLY; Expired credit. ExpiredCredit *Amount `json:"expiredCredit,omitempty" azure:"ro"` // READ-ONLY; Pending credit adjustments. PendingCreditAdjustments *Amount `json:"pendingCreditAdjustments,omitempty" azure:"ro"` // READ-ONLY; Pending eligible charges. PendingEligibleCharges *Amount `json:"pendingEligibleCharges,omitempty" azure:"ro"` // READ-ONLY; Credit's reseller. Reseller *Reseller `json:"reseller,omitempty" azure:"ro"` }
CreditSummaryProperties - The properties of the credit summary.
type CreditsClient ¶
type CreditsClient struct {
// contains filtered or unexported fields
}
CreditsClient contains the methods for the Credits group. Don't use this type directly, use NewCreditsClient() instead.
func NewCreditsClient ¶
func NewCreditsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *CreditsClient
NewCreditsClient creates a new instance of CreditsClient with the specified values.
func (*CreditsClient) Get ¶
func (client *CreditsClient) Get(ctx context.Context, billingAccountID string, billingProfileID string, options *CreditsGetOptions) (CreditsGetResponse, error)
Get - The credit summary by billingAccountId and billingProfileId. If the operation fails it returns the *ErrorResponse error type.
type CreditsGetOptions ¶
type CreditsGetOptions struct { }
CreditsGetOptions contains the optional parameters for the Credits.Get method.
type CreditsGetResponse ¶
type CreditsGetResponse struct { CreditsGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
CreditsGetResponse contains the response from method Credits.Get.
type CreditsGetResult ¶
type CreditsGetResult struct {
CreditSummary
}
CreditsGetResult contains the result from method Credits.Get.
type CurrentSpend ¶
type CurrentSpend struct { // READ-ONLY; The total amount of cost which is being tracked by the budget. Amount *float64 `json:"amount,omitempty" azure:"ro"` // READ-ONLY; The unit of measure for the budget amount. Unit *string `json:"unit,omitempty" azure:"ro"` }
CurrentSpend - The current amount of cost which is being tracked for a budget.
type Datagrain ¶
type Datagrain string
func PossibleDatagrainValues ¶
func PossibleDatagrainValues() []Datagrain
PossibleDatagrainValues returns the possible values for the Datagrain const type.
type DownloadProperties ¶
type DownloadProperties struct { // READ-ONLY; The link (url) to download the pricesheet. DownloadURL *string `json:"downloadUrl,omitempty" azure:"ro"` // READ-ONLY; Download link validity. ValidTill *string `json:"validTill,omitempty" azure:"ro"` }
DownloadProperties - The properties of the price sheet download.
type ErrorDetails ¶
type ErrorDetails struct { // READ-ONLY; Error code. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; Error message indicating why the operation failed. Message *string `json:"message,omitempty" azure:"ro"` }
ErrorDetails - The details of the error.
type ErrorResponse ¶
type ErrorResponse struct { // The details of the error. InnerError *ErrorDetails `json:"error,omitempty"` // contains filtered or unexported fields }
ErrorResponse - Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. Some Error responses: * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the "x-ms-ratelimit-microsoft.consumption-retry-after" header.
* 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the "Retry-After" header. Implements the error and azcore.HTTPResponse interfaces.
func (ErrorResponse) Error ¶
func (e ErrorResponse) Error() string
Error implements the error interface for type ErrorResponse. The contents of the error text are not contractual and subject to change.
type EventProperties ¶
type EventProperties struct { // Identifies the type of the event. EventType *EventType `json:"eventType,omitempty"` // READ-ONLY; The amount of balance adjustment. The property is not available for ConsumptionCommitment lots. Adjustments *Amount `json:"adjustments,omitempty" azure:"ro"` // READ-ONLY; The amount of balance adjustment in billing currency. AdjustmentsInBillingCurrency *AmountWithExchangeRate `json:"adjustmentsInBillingCurrency,omitempty" azure:"ro"` // READ-ONLY; The billing currency of the event. BillingCurrency *string `json:"billingCurrency,omitempty" azure:"ro"` // READ-ONLY; The display name of the billing profile for which the event happened. The property is only available for billing account of type MicrosoftCustomerAgreement. BillingProfileDisplayName *string `json:"billingProfileDisplayName,omitempty" azure:"ro"` // READ-ONLY; The ID that uniquely identifies the billing profile for which the event happened. The property is only available for billing account of type // MicrosoftCustomerAgreement. BillingProfileID *string `json:"billingProfileId,omitempty" azure:"ro"` // READ-ONLY; Amount of canceled credit. CanceledCredit *Amount `json:"canceledCredit,omitempty" azure:"ro"` // READ-ONLY; The amount of charges for events of type SettleCharges and PendingEligibleCharges. Charges *Amount `json:"charges,omitempty" azure:"ro"` // READ-ONLY; The amount of charges for events of type SettleCharges and PendingEligibleCharges in billing currency. ChargesInBillingCurrency *AmountWithExchangeRate `json:"chargesInBillingCurrency,omitempty" azure:"ro"` // READ-ONLY; The balance after the event. ClosedBalance *Amount `json:"closedBalance,omitempty" azure:"ro"` // READ-ONLY; The balance in billing currency after the event. ClosedBalanceInBillingCurrency *AmountWithExchangeRate `json:"closedBalanceInBillingCurrency,omitempty" azure:"ro"` // READ-ONLY; The credit currency of the event. CreditCurrency *string `json:"creditCurrency,omitempty" azure:"ro"` // READ-ONLY; The amount of expired credit or commitment for NewCredit or SettleCharges event. CreditExpired *Amount `json:"creditExpired,omitempty" azure:"ro"` // READ-ONLY; The amount of expired credit or commitment for NewCredit or SettleCharges event in billing currency. CreditExpiredInBillingCurrency *AmountWithExchangeRate `json:"creditExpiredInBillingCurrency,omitempty" azure:"ro"` // READ-ONLY; The description of the event. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The eTag for the resource. ETag *string `json:"eTag,omitempty" azure:"ro"` // READ-ONLY; The number which uniquely identifies the invoice on which the event was billed. This will be empty for unbilled events. InvoiceNumber *string `json:"invoiceNumber,omitempty" azure:"ro"` // READ-ONLY; The ID that uniquely identifies the lot for which the event happened. LotID *string `json:"lotId,omitempty" azure:"ro"` // READ-ONLY; Identifies the source of the lot for which the event happened. LotSource *string `json:"lotSource,omitempty" azure:"ro"` // READ-ONLY; The amount of new credit or commitment for NewCredit or SettleCharges event. NewCredit *Amount `json:"newCredit,omitempty" azure:"ro"` // READ-ONLY; The amount of new credit or commitment for NewCredit or SettleCharges event in billing currency. NewCreditInBillingCurrency *AmountWithExchangeRate `json:"newCreditInBillingCurrency,omitempty" azure:"ro"` // READ-ONLY; The reseller of the event. Reseller *Reseller `json:"reseller,omitempty" azure:"ro"` // READ-ONLY; The date of the event. TransactionDate *time.Time `json:"transactionDate,omitempty" azure:"ro"` }
EventProperties - The event properties.
func (EventProperties) MarshalJSON ¶
func (e EventProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventProperties.
func (*EventProperties) UnmarshalJSON ¶
func (e *EventProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventProperties.
type EventSummary ¶
type EventSummary struct { Resource // The event properties. Properties *EventProperties `json:"properties,omitempty"` }
EventSummary - An event summary resource.
func (EventSummary) MarshalJSON ¶
func (e EventSummary) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventSummary.
func (*EventSummary) UnmarshalJSON ¶
func (e *EventSummary) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventSummary.
type EventType ¶
type EventType string
EventType - Identifies the type of the event.
const ( EventTypeNewCredit EventType = "NewCredit" EventTypePendingAdjustments EventType = "PendingAdjustments" EventTypePendingCharges EventType = "PendingCharges" EventTypePendingExpiredCredit EventType = "PendingExpiredCredit" EventTypePendingNewCredit EventType = "PendingNewCredit" EventTypeSettledCharges EventType = "SettledCharges" EventTypeUnKnown EventType = "UnKnown" )
func PossibleEventTypeValues ¶
func PossibleEventTypeValues() []EventType
PossibleEventTypeValues returns the possible values for the EventType const type.
type Events ¶
type Events struct { // READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; The list of event summary. Value []*EventSummary `json:"value,omitempty" azure:"ro"` }
Events - Result of listing event summary.
func (Events) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Events.
type EventsClient ¶
type EventsClient struct {
// contains filtered or unexported fields
}
EventsClient contains the methods for the Events group. Don't use this type directly, use NewEventsClient() instead.
func NewEventsClient ¶
func NewEventsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *EventsClient
NewEventsClient creates a new instance of EventsClient with the specified values.
func (*EventsClient) ListByBillingAccount ¶
func (client *EventsClient) ListByBillingAccount(billingAccountID string, options *EventsListByBillingAccountOptions) *EventsListByBillingAccountPager
ListByBillingAccount - Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or a billing profile for a given start and end date. If the operation fails it returns the *ErrorResponse error type.
func (*EventsClient) ListByBillingProfile ¶
func (client *EventsClient) ListByBillingProfile(billingAccountID string, billingProfileID string, startDate string, endDate string, options *EventsListByBillingProfileOptions) *EventsListByBillingProfilePager
ListByBillingProfile - Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or a billing profile for a given start and end date. If the operation fails it returns the *ErrorResponse error type.
type EventsListByBillingAccountOptions ¶
type EventsListByBillingAccountOptions struct { // May be used to filter the events by lotId, lotSource etc. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support // 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:). Filter *string }
EventsListByBillingAccountOptions contains the optional parameters for the Events.ListByBillingAccount method.
type EventsListByBillingAccountPager ¶
type EventsListByBillingAccountPager struct {
// contains filtered or unexported fields
}
EventsListByBillingAccountPager provides operations for iterating over paged responses.
func (*EventsListByBillingAccountPager) Err ¶
func (p *EventsListByBillingAccountPager) Err() error
Err returns the last error encountered while paging.
func (*EventsListByBillingAccountPager) NextPage ¶
func (p *EventsListByBillingAccountPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*EventsListByBillingAccountPager) PageResponse ¶
func (p *EventsListByBillingAccountPager) PageResponse() EventsListByBillingAccountResponse
PageResponse returns the current EventsListByBillingAccountResponse page.
type EventsListByBillingAccountResponse ¶
type EventsListByBillingAccountResponse struct { EventsListByBillingAccountResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
EventsListByBillingAccountResponse contains the response from method Events.ListByBillingAccount.
type EventsListByBillingAccountResult ¶
type EventsListByBillingAccountResult struct {
Events
}
EventsListByBillingAccountResult contains the result from method Events.ListByBillingAccount.
type EventsListByBillingProfileOptions ¶
type EventsListByBillingProfileOptions struct { }
EventsListByBillingProfileOptions contains the optional parameters for the Events.ListByBillingProfile method.
type EventsListByBillingProfilePager ¶
type EventsListByBillingProfilePager struct {
// contains filtered or unexported fields
}
EventsListByBillingProfilePager provides operations for iterating over paged responses.
func (*EventsListByBillingProfilePager) Err ¶
func (p *EventsListByBillingProfilePager) Err() error
Err returns the last error encountered while paging.
func (*EventsListByBillingProfilePager) NextPage ¶
func (p *EventsListByBillingProfilePager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*EventsListByBillingProfilePager) PageResponse ¶
func (p *EventsListByBillingProfilePager) PageResponse() EventsListByBillingProfileResponse
PageResponse returns the current EventsListByBillingProfileResponse page.
type EventsListByBillingProfileResponse ¶
type EventsListByBillingProfileResponse struct { EventsListByBillingProfileResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
EventsListByBillingProfileResponse contains the response from method Events.ListByBillingProfile.
type EventsListByBillingProfileResult ¶
type EventsListByBillingProfileResult struct {
Events
}
EventsListByBillingProfileResult contains the result from method Events.ListByBillingProfile.
type ForecastSpend ¶
type ForecastSpend struct { // READ-ONLY; The forecasted cost for the total time period which is being tracked by the budget. This value is only provided if the budget contains a forecast // alert type. Amount *float64 `json:"amount,omitempty" azure:"ro"` // READ-ONLY; The unit of measure for the budget amount. Unit *string `json:"unit,omitempty" azure:"ro"` }
ForecastSpend - The forecasted cost which is being tracked for a budget.
type HighCasedErrorDetails ¶
type HighCasedErrorDetails struct { // READ-ONLY; Error code. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; Error message indicating why the operation failed. Message *string `json:"message,omitempty" azure:"ro"` }
HighCasedErrorDetails - The details of the error.
type HighCasedErrorResponse ¶
type HighCasedErrorResponse struct { // The details of the error. InnerError *HighCasedErrorDetails `json:"error,omitempty"` // contains filtered or unexported fields }
HighCasedErrorResponse - Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. Some Error responses: * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the "x-ms-ratelimit-microsoft.consumption-retry-after" header.
* 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the "Retry-After" header. Implements the error and azcore.HTTPResponse interfaces.
func (HighCasedErrorResponse) Error ¶
func (e HighCasedErrorResponse) Error() string
Error implements the error interface for type HighCasedErrorResponse. The contents of the error text are not contractual and subject to change.
type LegacyChargeSummary ¶
type LegacyChargeSummary struct { ChargeSummary // REQUIRED; Properties for legacy charge summary Properties *LegacyChargeSummaryProperties `json:"properties,omitempty"` }
LegacyChargeSummary - Legacy charge summary.
func (LegacyChargeSummary) MarshalJSON ¶
func (l LegacyChargeSummary) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LegacyChargeSummary.
func (*LegacyChargeSummary) UnmarshalJSON ¶
func (l *LegacyChargeSummary) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LegacyChargeSummary.
type LegacyChargeSummaryProperties ¶
type LegacyChargeSummaryProperties struct { // READ-ONLY; Azure Charges. AzureCharges *float64 `json:"azureCharges,omitempty" azure:"ro"` // READ-ONLY; The id of the billing period resource that the charge belongs to. BillingPeriodID *string `json:"billingPeriodId,omitempty" azure:"ro"` // READ-ONLY; Charges Billed separately. ChargesBilledSeparately *float64 `json:"chargesBilledSeparately,omitempty" azure:"ro"` // READ-ONLY; Currency Code Currency *string `json:"currency,omitempty" azure:"ro"` // READ-ONLY; Marketplace Charges. MarketplaceCharges *float64 `json:"marketplaceCharges,omitempty" azure:"ro"` // READ-ONLY; Usage end date. UsageEnd *string `json:"usageEnd,omitempty" azure:"ro"` // READ-ONLY; Usage start date. UsageStart *string `json:"usageStart,omitempty" azure:"ro"` }
LegacyChargeSummaryProperties - The properties of legacy charge summary.
type LegacyReservationRecommendation ¶
type LegacyReservationRecommendation struct { ReservationRecommendation // REQUIRED; Properties for legacy reservation recommendation Properties *LegacyReservationRecommendationProperties `json:"properties,omitempty"` }
LegacyReservationRecommendation - Legacy reservation recommendation.
func (LegacyReservationRecommendation) MarshalJSON ¶
func (l LegacyReservationRecommendation) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LegacyReservationRecommendation.
func (*LegacyReservationRecommendation) UnmarshalJSON ¶
func (l *LegacyReservationRecommendation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LegacyReservationRecommendation.
type LegacyReservationRecommendationProperties ¶
type LegacyReservationRecommendationProperties struct { // READ-ONLY; The total amount of cost without reserved instances. CostWithNoReservedInstances *float64 `json:"costWithNoReservedInstances,omitempty" azure:"ro"` // READ-ONLY; The usage date for looking back. FirstUsageDate *time.Time `json:"firstUsageDate,omitempty" azure:"ro"` // READ-ONLY; The instance Flexibility Group. InstanceFlexibilityGroup *string `json:"instanceFlexibilityGroup,omitempty" azure:"ro"` // READ-ONLY; The instance Flexibility Ratio. InstanceFlexibilityRatio *float32 `json:"instanceFlexibilityRatio,omitempty" azure:"ro"` // READ-ONLY; The number of days of usage to look back for recommendation. LookBackPeriod *string `json:"lookBackPeriod,omitempty" azure:"ro"` // READ-ONLY; The meter id (GUID) MeterID *string `json:"meterId,omitempty" azure:"ro"` // READ-ONLY; Total estimated savings with reserved instances. NetSavings *float64 `json:"netSavings,omitempty" azure:"ro"` // READ-ONLY; The normalized Size. NormalizedSize *string `json:"normalizedSize,omitempty" azure:"ro"` // READ-ONLY; Recommended quality for reserved instances. RecommendedQuantity *float64 `json:"recommendedQuantity,omitempty" azure:"ro"` // READ-ONLY; The recommended Quantity Normalized. RecommendedQuantityNormalized *float32 `json:"recommendedQuantityNormalized,omitempty" azure:"ro"` // READ-ONLY; The azure resource type. ResourceType *string `json:"resourceType,omitempty" azure:"ro"` // READ-ONLY; List of sku properties SKUProperties []*SKUProperty `json:"skuProperties,omitempty" azure:"ro"` // READ-ONLY; Shared or single recommendation. Scope *string `json:"scope,omitempty" azure:"ro"` // READ-ONLY; RI recommendations in one or three year terms. Term *string `json:"term,omitempty" azure:"ro"` // READ-ONLY; The total amount of cost with reserved instances. TotalCostWithReservedInstances *float64 `json:"totalCostWithReservedInstances,omitempty" azure:"ro"` }
LegacyReservationRecommendationProperties - The properties of the reservation recommendation.
func (LegacyReservationRecommendationProperties) MarshalJSON ¶
func (l LegacyReservationRecommendationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LegacyReservationRecommendationProperties.
func (*LegacyReservationRecommendationProperties) UnmarshalJSON ¶
func (l *LegacyReservationRecommendationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LegacyReservationRecommendationProperties.
type LegacyReservationTransaction ¶
type LegacyReservationTransaction struct {
ReservationTransaction
}
LegacyReservationTransaction - Legacy Reservation transaction resource.
type LegacyReservationTransactionProperties ¶
type LegacyReservationTransactionProperties struct { // READ-ONLY; The name of the account that makes the transaction. AccountName *string `json:"accountName,omitempty" azure:"ro"` // READ-ONLY; The email of the account owner that makes the transaction. AccountOwnerEmail *string `json:"accountOwnerEmail,omitempty" azure:"ro"` // READ-ONLY; The charge of the transaction. Amount *float64 `json:"amount,omitempty" azure:"ro"` // READ-ONLY; This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. ArmSKUName *string `json:"armSkuName,omitempty" azure:"ro"` // READ-ONLY; The billing frequency, which can be either one-time or recurring. BillingFrequency *string `json:"billingFrequency,omitempty" azure:"ro"` // READ-ONLY; The cost center of this department if it is a department and a cost center is provided. CostCenter *string `json:"costCenter,omitempty" azure:"ro"` // READ-ONLY; The ISO currency in which the transaction is charged, for example, USD. Currency *string `json:"currency,omitempty" azure:"ro"` // READ-ONLY; The current enrollment. CurrentEnrollment *string `json:"currentEnrollment,omitempty" azure:"ro"` // READ-ONLY; The department name. DepartmentName *string `json:"departmentName,omitempty" azure:"ro"` // READ-ONLY; The description of the transaction. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The date of the transaction EventDate *time.Time `json:"eventDate,omitempty" azure:"ro"` // READ-ONLY; The type of the transaction (Purchase, Cancel, etc.) EventType *string `json:"eventType,omitempty" azure:"ro"` // READ-ONLY; The purchasing enrollment. PurchasingEnrollment *string `json:"purchasingEnrollment,omitempty" azure:"ro"` // READ-ONLY; The subscription guid that makes the transaction. PurchasingSubscriptionGUID *string `json:"purchasingSubscriptionGuid,omitempty" azure:"ro"` // READ-ONLY; The subscription name that makes the transaction. PurchasingSubscriptionName *string `json:"purchasingSubscriptionName,omitempty" azure:"ro"` // READ-ONLY; The quantity of the transaction. Quantity *float64 `json:"quantity,omitempty" azure:"ro"` // READ-ONLY; The region of the transaction. Region *string `json:"region,omitempty" azure:"ro"` // READ-ONLY; The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. // A reservation order contains reservations. The reservation // order specifies the VM size and region for the reservations. ReservationOrderID *string `json:"reservationOrderId,omitempty" azure:"ro"` // READ-ONLY; The name of the reservation order. ReservationOrderName *string `json:"reservationOrderName,omitempty" azure:"ro"` // READ-ONLY; This is the term of the transaction. Term *string `json:"term,omitempty" azure:"ro"` }
LegacyReservationTransactionProperties - The properties of a legacy reservation transaction.
func (LegacyReservationTransactionProperties) MarshalJSON ¶
func (l LegacyReservationTransactionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LegacyReservationTransactionProperties.
func (*LegacyReservationTransactionProperties) UnmarshalJSON ¶
func (l *LegacyReservationTransactionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LegacyReservationTransactionProperties.
type LegacyUsageDetail ¶
type LegacyUsageDetail struct { UsageDetail // REQUIRED; Properties for legacy usage details Properties *LegacyUsageDetailProperties `json:"properties,omitempty"` }
LegacyUsageDetail - Legacy usage detail.
func (LegacyUsageDetail) MarshalJSON ¶
func (l LegacyUsageDetail) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LegacyUsageDetail.
func (*LegacyUsageDetail) UnmarshalJSON ¶
func (l *LegacyUsageDetail) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LegacyUsageDetail.
type LegacyUsageDetailProperties ¶
type LegacyUsageDetailProperties struct { // READ-ONLY; Account Name. AccountName *string `json:"accountName,omitempty" azure:"ro"` // READ-ONLY; Account Owner Id. AccountOwnerID *string `json:"accountOwnerId,omitempty" azure:"ro"` // READ-ONLY; Additional details of this usage item. By default this is not populated, unless it's specified in $expand. Use this field to get usage line // item specific details such as the actual VM Size // (ServiceType) or the ratio in which the reservation discount is applied. AdditionalInfo *string `json:"additionalInfo,omitempty" azure:"ro"` // READ-ONLY; Billing Account identifier. BillingAccountID *string `json:"billingAccountId,omitempty" azure:"ro"` // READ-ONLY; Billing Account Name. BillingAccountName *string `json:"billingAccountName,omitempty" azure:"ro"` // READ-ONLY; Billing Currency. BillingCurrency *string `json:"billingCurrency,omitempty" azure:"ro"` // READ-ONLY; The billing period end date. BillingPeriodEndDate *time.Time `json:"billingPeriodEndDate,omitempty" azure:"ro"` // READ-ONLY; The billing period start date. BillingPeriodStartDate *time.Time `json:"billingPeriodStartDate,omitempty" azure:"ro"` // READ-ONLY; Billing Profile identifier. BillingProfileID *string `json:"billingProfileId,omitempty" azure:"ro"` // READ-ONLY; Billing Profile Name. BillingProfileName *string `json:"billingProfileName,omitempty" azure:"ro"` // READ-ONLY; Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund. ChargeType *string `json:"chargeType,omitempty" azure:"ro"` // READ-ONLY; Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace // usage. ConsumedService *string `json:"consumedService,omitempty" azure:"ro"` // READ-ONLY; The amount of cost before tax. Cost *float64 `json:"cost,omitempty" azure:"ro"` // READ-ONLY; The cost center of this department if it is a department and a cost center is provided. CostCenter *string `json:"costCenter,omitempty" azure:"ro"` // READ-ONLY; Date for the usage record. Date *time.Time `json:"date,omitempty" azure:"ro"` // READ-ONLY; Effective Price that's charged for the usage. EffectivePrice *float64 `json:"effectivePrice,omitempty" azure:"ro"` // READ-ONLY; Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and // UsageBased for charges based on how much a service is used. Frequency *string `json:"frequency,omitempty" azure:"ro"` // READ-ONLY; Invoice Section Name. InvoiceSection *string `json:"invoiceSection,omitempty" azure:"ro"` // READ-ONLY; Is Azure Credit Eligible. IsAzureCreditEligible *bool `json:"isAzureCreditEligible,omitempty" azure:"ro"` // READ-ONLY; The details about the meter. By default this is not populated, unless it's specified in $expand. MeterDetails *MeterDetailsResponse `json:"meterDetails,omitempty" azure:"ro"` // READ-ONLY; The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was // purchased. For the actual VM Size for which the reservation is // purchased see productOrderName. MeterID *string `json:"meterId,omitempty" azure:"ro"` // READ-ONLY; Offer Id. Ex: MS-AZR-0017P, MS-AZR-0148P. OfferID *string `json:"offerId,omitempty" azure:"ro"` // READ-ONLY; Part Number of the service used. Can be used to join with the price sheet. Not available for marketplace. PartNumber *string `json:"partNumber,omitempty" azure:"ro"` // READ-ONLY; Retail price for the resource. PayGPrice *float64 `json:"payGPrice,omitempty" azure:"ro"` // READ-ONLY; Plan Name. PlanName *string `json:"planName,omitempty" azure:"ro"` // READ-ONLY; Identifier that indicates how the meter is priced. PricingModel *PricingModelType `json:"pricingModel,omitempty" azure:"ro"` // READ-ONLY; Product name for the consumed service or purchase. Not available for Marketplace. Product *string `json:"product,omitempty" azure:"ro"` // READ-ONLY; Product Order Id. For reservations this is the Reservation Order ID. ProductOrderID *string `json:"productOrderId,omitempty" azure:"ro"` // READ-ONLY; Product Order Name. For reservations this is the SKU that was purchased. ProductOrderName *string `json:"productOrderName,omitempty" azure:"ro"` // READ-ONLY; Publisher Name. PublisherName *string `json:"publisherName,omitempty" azure:"ro"` // READ-ONLY; Publisher Type. PublisherType *string `json:"publisherType,omitempty" azure:"ro"` // READ-ONLY; The usage quantity. Quantity *float64 `json:"quantity,omitempty" azure:"ro"` // READ-ONLY; ARM resource id of the reservation. Only applies to records relevant to reservations. ReservationID *string `json:"reservationId,omitempty" azure:"ro"` // READ-ONLY; User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records // relevant to reservations. ReservationName *string `json:"reservationName,omitempty" azure:"ro"` // READ-ONLY; Resource Group Name. ResourceGroup *string `json:"resourceGroup,omitempty" azure:"ro"` // READ-ONLY; Unique identifier of the Azure Resource Manager usage detail resource. ResourceID *string `json:"resourceId,omitempty" azure:"ro"` // READ-ONLY; Resource Location. ResourceLocation *string `json:"resourceLocation,omitempty" azure:"ro"` // READ-ONLY; Resource Name. ResourceName *string `json:"resourceName,omitempty" azure:"ro"` // READ-ONLY; Service-specific metadata. ServiceInfo1 *string `json:"serviceInfo1,omitempty" azure:"ro"` // READ-ONLY; Legacy field with optional service-specific metadata. ServiceInfo2 *string `json:"serviceInfo2,omitempty" azure:"ro"` // READ-ONLY; Subscription guid. SubscriptionID *string `json:"subscriptionId,omitempty" azure:"ro"` // READ-ONLY; Subscription name. SubscriptionName *string `json:"subscriptionName,omitempty" azure:"ro"` // READ-ONLY; Term (in months). 1 month for monthly recurring purchase. 12 months for a 1 year reservation. 36 months for a 3 year reservation. Term *string `json:"term,omitempty" azure:"ro"` // READ-ONLY; Unit Price is the price applicable to you. (your EA or other contract price). UnitPrice *float64 `json:"unitPrice,omitempty" azure:"ro"` }
LegacyUsageDetailProperties - The properties of the legacy usage detail.
func (LegacyUsageDetailProperties) MarshalJSON ¶
func (l LegacyUsageDetailProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LegacyUsageDetailProperties.
func (*LegacyUsageDetailProperties) UnmarshalJSON ¶
func (l *LegacyUsageDetailProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LegacyUsageDetailProperties.
type LookBackPeriod ¶
type LookBackPeriod string
const ( // LookBackPeriodLast07Days - Use 7 days of data for recommendations LookBackPeriodLast07Days LookBackPeriod = "Last7Days" // LookBackPeriodLast30Days - Use 30 days of data for recommendations LookBackPeriodLast30Days LookBackPeriod = "Last30Days" // LookBackPeriodLast60Days - Use 60 days of data for recommendations LookBackPeriodLast60Days LookBackPeriod = "Last60Days" )
func PossibleLookBackPeriodValues ¶
func PossibleLookBackPeriodValues() []LookBackPeriod
PossibleLookBackPeriodValues returns the possible values for the LookBackPeriod const type.
func (LookBackPeriod) ToPtr ¶
func (c LookBackPeriod) ToPtr() *LookBackPeriod
ToPtr returns a *LookBackPeriod pointing to the current value.
type LotProperties ¶
type LotProperties struct { // READ-ONLY; The billing currency of the lot. BillingCurrency *string `json:"billingCurrency,omitempty" azure:"ro"` // READ-ONLY; The balance as of the last invoice. ClosedBalance *Amount `json:"closedBalance,omitempty" azure:"ro"` // READ-ONLY; The balance as of the last invoice in billing currency. ClosedBalanceInBillingCurrency *AmountWithExchangeRate `json:"closedBalanceInBillingCurrency,omitempty" azure:"ro"` // READ-ONLY; The currency of the lot. CreditCurrency *string `json:"creditCurrency,omitempty" azure:"ro"` // READ-ONLY; The eTag for the resource. ETag *string `json:"eTag,omitempty" azure:"ro"` // READ-ONLY; The expiration date of a lot. ExpirationDate *time.Time `json:"expirationDate,omitempty" azure:"ro"` // READ-ONLY; The original amount of a lot. OriginalAmount *Amount `json:"originalAmount,omitempty" azure:"ro"` // READ-ONLY; The original amount of a lot in billing currency. OriginalAmountInBillingCurrency *AmountWithExchangeRate `json:"originalAmountInBillingCurrency,omitempty" azure:"ro"` // READ-ONLY; The po number of the invoice on which the lot was added. This property is not available for ConsumptionCommitment lots. PoNumber *string `json:"poNumber,omitempty" azure:"ro"` // READ-ONLY; The date when the lot was added. PurchasedDate *time.Time `json:"purchasedDate,omitempty" azure:"ro"` // READ-ONLY; The reseller of the lot. Reseller *Reseller `json:"reseller,omitempty" azure:"ro"` // READ-ONLY; The source of the lot. Source *LotSource `json:"source,omitempty" azure:"ro"` // READ-ONLY; The date when the lot became effective. StartDate *time.Time `json:"startDate,omitempty" azure:"ro"` // READ-ONLY; The status of the lot. Status *Status `json:"status,omitempty" azure:"ro"` }
LotProperties - The lot properties.
func (LotProperties) MarshalJSON ¶
func (l LotProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LotProperties.
func (*LotProperties) UnmarshalJSON ¶
func (l *LotProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LotProperties.
type LotSource ¶
type LotSource string
LotSource - The source of the lot.
func PossibleLotSourceValues ¶
func PossibleLotSourceValues() []LotSource
PossibleLotSourceValues returns the possible values for the LotSource const type.
type LotSummary ¶
type LotSummary struct { Resource // The lot properties. Properties *LotProperties `json:"properties,omitempty"` }
LotSummary - A lot summary resource.
func (LotSummary) MarshalJSON ¶
func (l LotSummary) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LotSummary.
func (*LotSummary) UnmarshalJSON ¶
func (l *LotSummary) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LotSummary.
type Lots ¶
type Lots struct { // READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; The list of lot summary. Value []*LotSummary `json:"value,omitempty" azure:"ro"` }
Lots - Result of listing lot summary.
func (Lots) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Lots.
type LotsClient ¶
type LotsClient struct {
// contains filtered or unexported fields
}
LotsClient contains the methods for the Lots group. Don't use this type directly, use NewLotsClient() instead.
func NewLotsClient ¶
func NewLotsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *LotsClient
NewLotsClient creates a new instance of LotsClient with the specified values.
func (*LotsClient) ListByBillingAccount ¶
func (client *LotsClient) ListByBillingAccount(billingAccountID string, options *LotsListByBillingAccountOptions) *LotsListByBillingAccountPager
ListByBillingAccount - Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile. Microsoft Azure consumption commitments are only supported for the billing account scope. If the operation fails it returns the *ErrorResponse error type.
func (*LotsClient) ListByBillingProfile ¶
func (client *LotsClient) ListByBillingProfile(billingAccountID string, billingProfileID string, options *LotsListByBillingProfileOptions) *LotsListByBillingProfilePager
ListByBillingProfile - Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile. Microsoft Azure consumption commitments are only supported for the billing account scope. If the operation fails it returns the *ErrorResponse error type.
type LotsListByBillingAccountOptions ¶
type LotsListByBillingAccountOptions struct { // May be used to filter the lots by Status, Source etc. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', // 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:). Filter *string }
LotsListByBillingAccountOptions contains the optional parameters for the Lots.ListByBillingAccount method.
type LotsListByBillingAccountPager ¶
type LotsListByBillingAccountPager struct {
// contains filtered or unexported fields
}
LotsListByBillingAccountPager provides operations for iterating over paged responses.
func (*LotsListByBillingAccountPager) Err ¶
func (p *LotsListByBillingAccountPager) Err() error
Err returns the last error encountered while paging.
func (*LotsListByBillingAccountPager) NextPage ¶
func (p *LotsListByBillingAccountPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*LotsListByBillingAccountPager) PageResponse ¶
func (p *LotsListByBillingAccountPager) PageResponse() LotsListByBillingAccountResponse
PageResponse returns the current LotsListByBillingAccountResponse page.
type LotsListByBillingAccountResponse ¶
type LotsListByBillingAccountResponse struct { LotsListByBillingAccountResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
LotsListByBillingAccountResponse contains the response from method Lots.ListByBillingAccount.
type LotsListByBillingAccountResult ¶
type LotsListByBillingAccountResult struct {
Lots
}
LotsListByBillingAccountResult contains the result from method Lots.ListByBillingAccount.
type LotsListByBillingProfileOptions ¶
type LotsListByBillingProfileOptions struct { }
LotsListByBillingProfileOptions contains the optional parameters for the Lots.ListByBillingProfile method.
type LotsListByBillingProfilePager ¶
type LotsListByBillingProfilePager struct {
// contains filtered or unexported fields
}
LotsListByBillingProfilePager provides operations for iterating over paged responses.
func (*LotsListByBillingProfilePager) Err ¶
func (p *LotsListByBillingProfilePager) Err() error
Err returns the last error encountered while paging.
func (*LotsListByBillingProfilePager) NextPage ¶
func (p *LotsListByBillingProfilePager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*LotsListByBillingProfilePager) PageResponse ¶
func (p *LotsListByBillingProfilePager) PageResponse() LotsListByBillingProfileResponse
PageResponse returns the current LotsListByBillingProfileResponse page.
type LotsListByBillingProfileResponse ¶
type LotsListByBillingProfileResponse struct { LotsListByBillingProfileResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
LotsListByBillingProfileResponse contains the response from method Lots.ListByBillingProfile.
type LotsListByBillingProfileResult ¶
type LotsListByBillingProfileResult struct {
Lots
}
LotsListByBillingProfileResult contains the result from method Lots.ListByBillingProfile.
type ManagementGroupAggregatedCostProperties ¶
type ManagementGroupAggregatedCostProperties struct { // Children of a management group Children []*ManagementGroupAggregatedCostResult `json:"children,omitempty"` // List of subscription Guids excluded from the calculation of aggregated cost ExcludedSubscriptions []*string `json:"excludedSubscriptions,omitempty"` // List of subscription Guids included in the calculation of aggregated cost IncludedSubscriptions []*string `json:"includedSubscriptions,omitempty"` // READ-ONLY; Azure Charges. AzureCharges *float64 `json:"azureCharges,omitempty" azure:"ro"` // READ-ONLY; The id of the billing period resource that the aggregated cost belongs to. BillingPeriodID *string `json:"billingPeriodId,omitempty" azure:"ro"` // READ-ONLY; Charges Billed Separately. ChargesBilledSeparately *float64 `json:"chargesBilledSeparately,omitempty" azure:"ro"` // READ-ONLY; The ISO currency in which the meter is charged, for example, USD. Currency *string `json:"currency,omitempty" azure:"ro"` // READ-ONLY; Marketplace Charges. MarketplaceCharges *float64 `json:"marketplaceCharges,omitempty" azure:"ro"` // READ-ONLY; The end of the date time range covered by the aggregated cost. UsageEnd *time.Time `json:"usageEnd,omitempty" azure:"ro"` // READ-ONLY; The start of the date time range covered by aggregated cost. UsageStart *time.Time `json:"usageStart,omitempty" azure:"ro"` }
ManagementGroupAggregatedCostProperties - The properties of the Management Group Aggregated Cost.
func (ManagementGroupAggregatedCostProperties) MarshalJSON ¶
func (m ManagementGroupAggregatedCostProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagementGroupAggregatedCostProperties.
func (*ManagementGroupAggregatedCostProperties) UnmarshalJSON ¶
func (m *ManagementGroupAggregatedCostProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagementGroupAggregatedCostProperties.
type ManagementGroupAggregatedCostResult ¶
type ManagementGroupAggregatedCostResult struct { Resource // The properties of the Management Group Aggregated Cost. Properties *ManagementGroupAggregatedCostProperties `json:"properties,omitempty"` }
ManagementGroupAggregatedCostResult - A management group aggregated cost resource.
func (ManagementGroupAggregatedCostResult) MarshalJSON ¶
func (m ManagementGroupAggregatedCostResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagementGroupAggregatedCostResult.
func (*ManagementGroupAggregatedCostResult) UnmarshalJSON ¶
func (m *ManagementGroupAggregatedCostResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagementGroupAggregatedCostResult.
type Marketplace ¶
type Marketplace struct { Resource // The properties of the marketplace usage detail. Properties *MarketplaceProperties `json:"properties,omitempty"` }
Marketplace - A marketplace resource.
func (Marketplace) MarshalJSON ¶
func (m Marketplace) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Marketplace.
func (*Marketplace) UnmarshalJSON ¶
func (m *Marketplace) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Marketplace.
type MarketplaceProperties ¶
type MarketplaceProperties struct { // READ-ONLY; Account name. AccountName *string `json:"accountName,omitempty" azure:"ro"` // READ-ONLY; Additional information. AdditionalInfo *string `json:"additionalInfo,omitempty" azure:"ro"` // READ-ONLY; Additional details of this usage item. By default this is not populated, unless it's specified in $expand. AdditionalProperties *string `json:"additionalProperties,omitempty" azure:"ro"` // READ-ONLY; The id of the billing period resource that the usage belongs to. BillingPeriodID *string `json:"billingPeriodId,omitempty" azure:"ro"` // READ-ONLY; The quantity of usage. ConsumedQuantity *float64 `json:"consumedQuantity,omitempty" azure:"ro"` // READ-ONLY; Consumed service name. ConsumedService *string `json:"consumedService,omitempty" azure:"ro"` // READ-ONLY; The cost center of this department if it is a department and a costcenter exists CostCenter *string `json:"costCenter,omitempty" azure:"ro"` // READ-ONLY; The ISO currency in which the meter is charged, for example, USD. Currency *string `json:"currency,omitempty" azure:"ro"` // READ-ONLY; Department name. DepartmentName *string `json:"departmentName,omitempty" azure:"ro"` // READ-ONLY; The uri of the resource instance that the usage is about. InstanceID *string `json:"instanceId,omitempty" azure:"ro"` // READ-ONLY; The name of the resource instance that the usage is about. InstanceName *string `json:"instanceName,omitempty" azure:"ro"` // READ-ONLY; The estimated usage is subject to change. IsEstimated *bool `json:"isEstimated,omitempty" azure:"ro"` // READ-ONLY; Flag indicating whether this is a recurring charge or not. IsRecurringCharge *bool `json:"isRecurringCharge,omitempty" azure:"ro"` // READ-ONLY; The meter id (GUID). MeterID *string `json:"meterId,omitempty" azure:"ro"` // READ-ONLY; The type of offer. OfferName *string `json:"offerName,omitempty" azure:"ro"` // READ-ONLY; The order number. OrderNumber *string `json:"orderNumber,omitempty" azure:"ro"` // READ-ONLY; The name of plan. PlanName *string `json:"planName,omitempty" azure:"ro"` // READ-ONLY; The amount of cost before tax. PretaxCost *float64 `json:"pretaxCost,omitempty" azure:"ro"` // READ-ONLY; The name of publisher. PublisherName *string `json:"publisherName,omitempty" azure:"ro"` // READ-ONLY; The name of resource group. ResourceGroup *string `json:"resourceGroup,omitempty" azure:"ro"` // READ-ONLY; The marketplace resource rate. ResourceRate *float64 `json:"resourceRate,omitempty" azure:"ro"` // READ-ONLY; Subscription guid. SubscriptionGUID *string `json:"subscriptionGuid,omitempty" azure:"ro"` // READ-ONLY; Subscription name. SubscriptionName *string `json:"subscriptionName,omitempty" azure:"ro"` // READ-ONLY; The unit of measure. UnitOfMeasure *string `json:"unitOfMeasure,omitempty" azure:"ro"` // READ-ONLY; The end of the date time range covered by the usage detail. UsageEnd *time.Time `json:"usageEnd,omitempty" azure:"ro"` // READ-ONLY; The start of the date time range covered by the usage detail. UsageStart *time.Time `json:"usageStart,omitempty" azure:"ro"` }
MarketplaceProperties - The properties of the marketplace usage detail.
func (MarketplaceProperties) MarshalJSON ¶
func (m MarketplaceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MarketplaceProperties.
func (*MarketplaceProperties) UnmarshalJSON ¶
func (m *MarketplaceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MarketplaceProperties.
type MarketplacesClient ¶
type MarketplacesClient struct {
// contains filtered or unexported fields
}
MarketplacesClient contains the methods for the Marketplaces group. Don't use this type directly, use NewMarketplacesClient() instead.
func NewMarketplacesClient ¶
func NewMarketplacesClient(credential azcore.TokenCredential, options *arm.ClientOptions) *MarketplacesClient
NewMarketplacesClient creates a new instance of MarketplacesClient with the specified values.
func (*MarketplacesClient) List ¶
func (client *MarketplacesClient) List(scope string, options *MarketplacesListOptions) *MarketplacesListPager
List - Lists the marketplaces for a scope at the defined scope. Marketplaces are available via this API only for May 1, 2014 or later. If the operation fails it returns the *ErrorResponse error type.
type MarketplacesListOptions ¶
type MarketplacesListOptions struct { // May be used to filter marketplaces by properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName // or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Filter *string // Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink // element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. Skiptoken *string // May be used to limit the number of results to the most recent N marketplaces. Top *int32 }
MarketplacesListOptions contains the optional parameters for the Marketplaces.List method.
type MarketplacesListPager ¶
type MarketplacesListPager struct {
// contains filtered or unexported fields
}
MarketplacesListPager provides operations for iterating over paged responses.
func (*MarketplacesListPager) Err ¶
func (p *MarketplacesListPager) Err() error
Err returns the last error encountered while paging.
func (*MarketplacesListPager) NextPage ¶
func (p *MarketplacesListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*MarketplacesListPager) PageResponse ¶
func (p *MarketplacesListPager) PageResponse() MarketplacesListResponse
PageResponse returns the current MarketplacesListResponse page.
type MarketplacesListResponse ¶
type MarketplacesListResponse struct { MarketplacesListResultEnvelope // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
MarketplacesListResponse contains the response from method Marketplaces.List.
type MarketplacesListResult ¶
type MarketplacesListResult struct { // READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; The list of marketplaces. Value []*Marketplace `json:"value,omitempty" azure:"ro"` }
MarketplacesListResult - Result of listing marketplaces. It contains a list of available marketplaces in reverse chronological order by billing period.
func (MarketplacesListResult) MarshalJSON ¶
func (m MarketplacesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MarketplacesListResult.
type MarketplacesListResultEnvelope ¶
type MarketplacesListResultEnvelope struct {
MarketplacesListResult
}
MarketplacesListResultEnvelope contains the result from method Marketplaces.List.
type MeterDetails ¶
type MeterDetails struct { // READ-ONLY; The category of the meter, for example, 'Cloud services', 'Networking', etc.. MeterCategory *string `json:"meterCategory,omitempty" azure:"ro"` // READ-ONLY; The location in which the Azure service is available. MeterLocation *string `json:"meterLocation,omitempty" azure:"ro"` // READ-ONLY; The name of the meter, within the given meter category MeterName *string `json:"meterName,omitempty" azure:"ro"` // READ-ONLY; The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc.. MeterSubCategory *string `json:"meterSubCategory,omitempty" azure:"ro"` // READ-ONLY; The pretax listing price. PretaxStandardRate *float64 `json:"pretaxStandardRate,omitempty" azure:"ro"` // READ-ONLY; The name of the service. ServiceName *string `json:"serviceName,omitempty" azure:"ro"` // READ-ONLY; The service tier. ServiceTier *string `json:"serviceTier,omitempty" azure:"ro"` // READ-ONLY; The total included quantity associated with the offer. TotalIncludedQuantity *float64 `json:"totalIncludedQuantity,omitempty" azure:"ro"` // READ-ONLY; The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc. Unit *string `json:"unit,omitempty" azure:"ro"` }
MeterDetails - The properties of the meter detail.
type MeterDetailsResponse ¶
type MeterDetailsResponse struct { // READ-ONLY; The category of the meter, for example, 'Cloud services', 'Networking', etc.. MeterCategory *string `json:"meterCategory,omitempty" azure:"ro"` // READ-ONLY; The name of the meter, within the given meter category MeterName *string `json:"meterName,omitempty" azure:"ro"` // READ-ONLY; The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc.. MeterSubCategory *string `json:"meterSubCategory,omitempty" azure:"ro"` // READ-ONLY; The service family. ServiceFamily *string `json:"serviceFamily,omitempty" azure:"ro"` // READ-ONLY; The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc. UnitOfMeasure *string `json:"unitOfMeasure,omitempty" azure:"ro"` }
MeterDetailsResponse - The properties of the meter detail.
type Metrictype ¶
type Metrictype string
const ( // MetrictypeActualCostMetricType - Actual cost data. MetrictypeActualCostMetricType Metrictype = "actualcost" // MetrictypeAmortizedCostMetricType - Amortized cost data. MetrictypeAmortizedCostMetricType Metrictype = "amortizedcost" // MetrictypeUsageMetricType - Usage data. MetrictypeUsageMetricType Metrictype = "usage" )
func PossibleMetrictypeValues ¶
func PossibleMetrictypeValues() []Metrictype
PossibleMetrictypeValues returns the possible values for the Metrictype const type.
func (Metrictype) ToPtr ¶
func (c Metrictype) ToPtr() *Metrictype
ToPtr returns a *Metrictype pointing to the current value.
type ModernChargeSummary ¶
type ModernChargeSummary struct { ChargeSummary // REQUIRED; Properties for modern charge summary Properties *ModernChargeSummaryProperties `json:"properties,omitempty"` }
ModernChargeSummary - Modern charge summary.
func (ModernChargeSummary) MarshalJSON ¶
func (m ModernChargeSummary) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ModernChargeSummary.
func (*ModernChargeSummary) UnmarshalJSON ¶
func (m *ModernChargeSummary) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ModernChargeSummary.
type ModernChargeSummaryProperties ¶
type ModernChargeSummaryProperties struct { // READ-ONLY; Azure Charges. AzureCharges *Amount `json:"azureCharges,omitempty" azure:"ro"` // READ-ONLY; Billing Account Id BillingAccountID *string `json:"billingAccountId,omitempty" azure:"ro"` // READ-ONLY; The id of the billing period resource that the charge belongs to. BillingPeriodID *string `json:"billingPeriodId,omitempty" azure:"ro"` // READ-ONLY; Billing Profile Id BillingProfileID *string `json:"billingProfileId,omitempty" azure:"ro"` // READ-ONLY; Charges Billed separately. ChargesBilledSeparately *Amount `json:"chargesBilledSeparately,omitempty" azure:"ro"` // READ-ONLY; Customer Id CustomerID *string `json:"customerId,omitempty" azure:"ro"` // READ-ONLY; Invoice Section Id InvoiceSectionID *string `json:"invoiceSectionId,omitempty" azure:"ro"` // READ-ONLY; Is charge Invoiced IsInvoiced *bool `json:"isInvoiced,omitempty" azure:"ro"` // READ-ONLY; Marketplace Charges. MarketplaceCharges *Amount `json:"marketplaceCharges,omitempty" azure:"ro"` // READ-ONLY; Usage end date. UsageEnd *string `json:"usageEnd,omitempty" azure:"ro"` // READ-ONLY; Usage start date. UsageStart *string `json:"usageStart,omitempty" azure:"ro"` }
ModernChargeSummaryProperties - The properties of modern charge summary.
type ModernReservationRecommendation ¶
type ModernReservationRecommendation struct { ReservationRecommendation // REQUIRED; Properties for modern reservation recommendation Properties *ModernReservationRecommendationProperties `json:"properties,omitempty"` }
ModernReservationRecommendation - Modern reservation recommendation.
func (ModernReservationRecommendation) MarshalJSON ¶
func (m ModernReservationRecommendation) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ModernReservationRecommendation.
func (*ModernReservationRecommendation) UnmarshalJSON ¶
func (m *ModernReservationRecommendation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ModernReservationRecommendation.
type ModernReservationRecommendationProperties ¶
type ModernReservationRecommendationProperties struct { // READ-ONLY; The total amount of cost without reserved instances. CostWithNoReservedInstances *Amount `json:"costWithNoReservedInstances,omitempty" azure:"ro"` // READ-ONLY; The usage date for looking back. FirstUsageDate *time.Time `json:"firstUsageDate,omitempty" azure:"ro"` // READ-ONLY; The instance Flexibility Group. InstanceFlexibilityGroup *string `json:"instanceFlexibilityGroup,omitempty" azure:"ro"` // READ-ONLY; The instance Flexibility Ratio. InstanceFlexibilityRatio *float32 `json:"instanceFlexibilityRatio,omitempty" azure:"ro"` // READ-ONLY; Resource Location. Location *string `json:"location,omitempty" azure:"ro"` // READ-ONLY; The number of days of usage to look back for recommendation. LookBackPeriod *int32 `json:"lookBackPeriod,omitempty" azure:"ro"` // READ-ONLY; The meter id (GUID) MeterID *string `json:"meterId,omitempty" azure:"ro"` // READ-ONLY; Total estimated savings with reserved instances. NetSavings *Amount `json:"netSavings,omitempty" azure:"ro"` // READ-ONLY; The normalized Size. NormalizedSize *string `json:"normalizedSize,omitempty" azure:"ro"` // READ-ONLY; Recommended quality for reserved instances. RecommendedQuantity *float64 `json:"recommendedQuantity,omitempty" azure:"ro"` // READ-ONLY; The recommended Quantity Normalized. RecommendedQuantityNormalized *float32 `json:"recommendedQuantityNormalized,omitempty" azure:"ro"` // READ-ONLY; This is the ARM Sku name. SKUName *string `json:"skuName,omitempty" azure:"ro"` // READ-ONLY; List of sku properties SKUProperties []*SKUProperty `json:"skuProperties,omitempty" azure:"ro"` // READ-ONLY; Shared or single recommendation. Scope *string `json:"scope,omitempty" azure:"ro"` // READ-ONLY; RI recommendations in one or three year terms. Term *string `json:"term,omitempty" azure:"ro"` // READ-ONLY; The total amount of cost with reserved instances. TotalCostWithReservedInstances *Amount `json:"totalCostWithReservedInstances,omitempty" azure:"ro"` }
ModernReservationRecommendationProperties - The properties of the reservation recommendation.
func (ModernReservationRecommendationProperties) MarshalJSON ¶
func (m ModernReservationRecommendationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ModernReservationRecommendationProperties.
func (*ModernReservationRecommendationProperties) UnmarshalJSON ¶
func (m *ModernReservationRecommendationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ModernReservationRecommendationProperties.
type ModernReservationTransaction ¶
type ModernReservationTransaction struct { ReservationTransactionResource // REQUIRED; The properties of a modern reservation transaction. Properties *ModernReservationTransactionProperties `json:"properties,omitempty"` }
ModernReservationTransaction - Modern Reservation transaction resource.
func (ModernReservationTransaction) MarshalJSON ¶
func (m ModernReservationTransaction) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ModernReservationTransaction.
type ModernReservationTransactionProperties ¶
type ModernReservationTransactionProperties struct { // READ-ONLY; The charge of the transaction. Amount *float64 `json:"amount,omitempty" azure:"ro"` // READ-ONLY; This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. ArmSKUName *string `json:"armSkuName,omitempty" azure:"ro"` // READ-ONLY; The billing frequency, which can be either one-time or recurring. BillingFrequency *string `json:"billingFrequency,omitempty" azure:"ro"` // READ-ONLY; Billing profile Id. BillingProfileID *string `json:"billingProfileId,omitempty" azure:"ro"` // READ-ONLY; Billing profile name. BillingProfileName *string `json:"billingProfileName,omitempty" azure:"ro"` // READ-ONLY; The ISO currency in which the transaction is charged, for example, USD. Currency *string `json:"currency,omitempty" azure:"ro"` // READ-ONLY; The description of the transaction. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The date of the transaction EventDate *time.Time `json:"eventDate,omitempty" azure:"ro"` // READ-ONLY; The type of the transaction (Purchase, Cancel, etc.) EventType *string `json:"eventType,omitempty" azure:"ro"` // READ-ONLY; Invoice Number Invoice *string `json:"invoice,omitempty" azure:"ro"` // READ-ONLY; Invoice Id as on the invoice where the specific transaction appears. InvoiceID *string `json:"invoiceId,omitempty" azure:"ro"` // READ-ONLY; Invoice Section Id InvoiceSectionID *string `json:"invoiceSectionId,omitempty" azure:"ro"` // READ-ONLY; Invoice Section Name. InvoiceSectionName *string `json:"invoiceSectionName,omitempty" azure:"ro"` // READ-ONLY; The subscription guid that makes the transaction. PurchasingSubscriptionGUID *string `json:"purchasingSubscriptionGuid,omitempty" azure:"ro"` // READ-ONLY; The subscription name that makes the transaction. PurchasingSubscriptionName *string `json:"purchasingSubscriptionName,omitempty" azure:"ro"` // READ-ONLY; The quantity of the transaction. Quantity *float64 `json:"quantity,omitempty" azure:"ro"` // READ-ONLY; The region of the transaction. Region *string `json:"region,omitempty" azure:"ro"` // READ-ONLY; The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. // A reservation order contains reservations. The reservation // order specifies the VM size and region for the reservations. ReservationOrderID *string `json:"reservationOrderId,omitempty" azure:"ro"` // READ-ONLY; The name of the reservation order. ReservationOrderName *string `json:"reservationOrderName,omitempty" azure:"ro"` // READ-ONLY; This is the term of the transaction. Term *string `json:"term,omitempty" azure:"ro"` }
ModernReservationTransactionProperties - The properties of a modern reservation transaction.
func (ModernReservationTransactionProperties) MarshalJSON ¶
func (m ModernReservationTransactionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ModernReservationTransactionProperties.
func (*ModernReservationTransactionProperties) UnmarshalJSON ¶
func (m *ModernReservationTransactionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ModernReservationTransactionProperties.
type ModernReservationTransactionsListResult ¶
type ModernReservationTransactionsListResult struct { // READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; The list of reservation recommendations. Value []*ModernReservationTransaction `json:"value,omitempty" azure:"ro"` }
ModernReservationTransactionsListResult - Result of listing reservation recommendations.
func (ModernReservationTransactionsListResult) MarshalJSON ¶
func (m ModernReservationTransactionsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ModernReservationTransactionsListResult.
type ModernUsageDetail ¶
type ModernUsageDetail struct { UsageDetail // REQUIRED; Properties for modern usage details Properties *ModernUsageDetailProperties `json:"properties,omitempty"` }
ModernUsageDetail - Modern usage detail.
func (ModernUsageDetail) MarshalJSON ¶
func (m ModernUsageDetail) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ModernUsageDetail.
func (*ModernUsageDetail) UnmarshalJSON ¶
func (m *ModernUsageDetail) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ModernUsageDetail.
type ModernUsageDetailProperties ¶
type ModernUsageDetailProperties struct { // READ-ONLY; Additional details of this usage item. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or // the ratio in which the reservation discount is applied. AdditionalInfo *string `json:"additionalInfo,omitempty" azure:"ro"` // READ-ONLY; Unique identifier for the applicable benefit. BenefitID *string `json:"benefitId,omitempty" azure:"ro"` // READ-ONLY; Name of the applicable benefit. BenefitName *string `json:"benefitName,omitempty" azure:"ro"` // READ-ONLY; Billing Account identifier. BillingAccountID *string `json:"billingAccountId,omitempty" azure:"ro"` // READ-ONLY; Name of the Billing Account. BillingAccountName *string `json:"billingAccountName,omitempty" azure:"ro"` // READ-ONLY; The currency defining the billed cost. BillingCurrencyCode *string `json:"billingCurrencyCode,omitempty" azure:"ro"` // READ-ONLY; Billing Period End Date as in the invoice. BillingPeriodEndDate *time.Time `json:"billingPeriodEndDate,omitempty" azure:"ro"` // READ-ONLY; Billing Period Start Date as in the invoice. BillingPeriodStartDate *time.Time `json:"billingPeriodStartDate,omitempty" azure:"ro"` // READ-ONLY; Identifier for the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have // onboarded the Microsoft customer agreement and the // customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc. BillingProfileID *string `json:"billingProfileId,omitempty" azure:"ro"` // READ-ONLY; Name of the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded // the Microsoft customer agreement and the customers in // CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc. BillingProfileName *string `json:"billingProfileName,omitempty" azure:"ro"` // READ-ONLY; Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund. ChargeType *string `json:"chargeType,omitempty" azure:"ro"` // READ-ONLY; Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace // usage. ConsumedService *string `json:"consumedService,omitempty" azure:"ro"` // READ-ONLY; Name for Cost Allocation Rule. CostAllocationRuleName *string `json:"costAllocationRuleName,omitempty" azure:"ro"` // READ-ONLY; The cost center of this department if it is a department and a cost center is provided. CostCenter *string `json:"costCenter,omitempty" azure:"ro"` // READ-ONLY; ExtendedCost or blended cost before tax in billed currency. CostInBillingCurrency *float64 `json:"costInBillingCurrency,omitempty" azure:"ro"` // READ-ONLY; ExtendedCost or blended cost before tax in pricing currency to correlate with prices. CostInPricingCurrency *float64 `json:"costInPricingCurrency,omitempty" azure:"ro"` // READ-ONLY; Estimated extendedCost or blended cost before tax in USD. CostInUSD *float64 `json:"costInUSD,omitempty" azure:"ro"` // READ-ONLY; Name of the customer's AAD tenant. CustomerName *string `json:"customerName,omitempty" azure:"ro"` // READ-ONLY; Identifier of the customer's AAD tenant. CustomerTenantID *string `json:"customerTenantId,omitempty" azure:"ro"` // READ-ONLY; Date for the usage record. Date *time.Time `json:"date,omitempty" azure:"ro"` // READ-ONLY; Effective Price that's charged for the usage. EffectivePrice *float64 `json:"effectivePrice,omitempty" azure:"ro"` // READ-ONLY; Exchange rate used in conversion from pricing currency to billing currency. ExchangeRate *string `json:"exchangeRate,omitempty" azure:"ro"` // READ-ONLY; Date on which exchange rate used in conversion from pricing currency to billing currency. ExchangeRateDate *time.Time `json:"exchangeRateDate,omitempty" azure:"ro"` // READ-ONLY; Exchange Rate from pricing currency to billing currency. ExchangeRatePricingToBilling *float64 `json:"exchangeRatePricingToBilling,omitempty" azure:"ro"` // READ-ONLY; Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and // UsageBased for charges based on how much a service is used. Frequency *string `json:"frequency,omitempty" azure:"ro"` // READ-ONLY; Instance Name. InstanceName *string `json:"instanceName,omitempty" azure:"ro"` // READ-ONLY; Invoice ID as on the invoice where the specific transaction appears. InvoiceID *string `json:"invoiceId,omitempty" azure:"ro"` // READ-ONLY; Identifier of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners. InvoiceSectionID *string `json:"invoiceSectionId,omitempty" azure:"ro"` // READ-ONLY; Name of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners. InvoiceSectionName *string `json:"invoiceSectionName,omitempty" azure:"ro"` // READ-ONLY; Determines if the cost is eligible to be paid for using Azure credits. IsAzureCreditEligible *bool `json:"isAzureCreditEligible,omitempty" azure:"ro"` // READ-ONLY; Market Price that's charged for the usage. MarketPrice *float64 `json:"marketPrice,omitempty" azure:"ro"` // READ-ONLY; Identifies the top-level service for the usage. MeterCategory *string `json:"meterCategory,omitempty" azure:"ro"` // READ-ONLY; The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was // purchased. For the actual VM Size for which the reservation is // purchased see productOrderName. MeterID *string `json:"meterId,omitempty" azure:"ro"` // READ-ONLY; Identifies the name of the meter against which consumption is measured. MeterName *string `json:"meterName,omitempty" azure:"ro"` // READ-ONLY; Identifies the location of the datacenter for certain services that are priced based on datacenter location. MeterRegion *string `json:"meterRegion,omitempty" azure:"ro"` // READ-ONLY; Defines the type or sub-category of Azure service that can affect the rate. MeterSubCategory *string `json:"meterSubCategory,omitempty" azure:"ro"` // READ-ONLY; Flag to indicate if partner earned credit has been applied or not. PartnerEarnedCreditApplied *string `json:"partnerEarnedCreditApplied,omitempty" azure:"ro"` // READ-ONLY; Rate of discount applied if there is a partner earned credit (PEC) based on partner admin link access. PartnerEarnedCreditRate *float64 `json:"partnerEarnedCreditRate,omitempty" azure:"ro"` // READ-ONLY; Name of the partner' AAD tenant. PartnerName *string `json:"partnerName,omitempty" azure:"ro"` // READ-ONLY; Identifier for the partner's AAD tenant. PartnerTenantID *string `json:"partnerTenantId,omitempty" azure:"ro"` // READ-ONLY; Retail price for the resource. PayGPrice *float64 `json:"payGPrice,omitempty" azure:"ro"` // READ-ONLY; The amount of PayG cost before tax in billing currency. PaygCostInBillingCurrency *float64 `json:"paygCostInBillingCurrency,omitempty" azure:"ro"` // READ-ONLY; The amount of PayG cost before tax in US Dollar currency. PaygCostInUSD *float64 `json:"paygCostInUSD,omitempty" azure:"ro"` // READ-ONLY; Reference to an original invoice there is a refund (negative cost). This is populated only when there is a refund. PreviousInvoiceID *string `json:"previousInvoiceId,omitempty" azure:"ro"` // READ-ONLY; Pricing Billing Currency. PricingCurrencyCode *string `json:"pricingCurrencyCode,omitempty" azure:"ro"` // READ-ONLY; Identifier that indicates how the meter is priced PricingModel *PricingModelType `json:"pricingModel,omitempty" azure:"ro"` // READ-ONLY; Name of the product that has accrued charges by consumption or purchase as listed in the invoice. Not available for Marketplace. Product *string `json:"product,omitempty" azure:"ro"` // READ-ONLY; Identifier for the product that has accrued charges by consumption or purchase . This is the concatenated key of productId and SkuId in partner // center. ProductIdentifier *string `json:"productIdentifier,omitempty" azure:"ro"` // READ-ONLY; The identifier for the asset or Azure plan name that the subscription belongs to. For example: Azure Plan. For reservations this is the Reservation // Order ID. ProductOrderID *string `json:"productOrderId,omitempty" azure:"ro"` // READ-ONLY; Product Order Name. For reservations this is the SKU that was purchased. ProductOrderName *string `json:"productOrderName,omitempty" azure:"ro"` // READ-ONLY; Identifier for Product Category or Line Of Business, Ex - Azure, Microsoft 365, AWS e.t.c Provider *string `json:"provider,omitempty" azure:"ro"` // READ-ONLY; Publisher Id. PublisherID *string `json:"publisherId,omitempty" azure:"ro"` // READ-ONLY; Name of the publisher of the service including Microsoft or Third Party publishers. PublisherName *string `json:"publisherName,omitempty" azure:"ro"` // READ-ONLY; Type of publisher that identifies if the publisher is first party, third party reseller or third party agency. PublisherType *string `json:"publisherType,omitempty" azure:"ro"` // READ-ONLY; Measure the quantity purchased or consumed.The amount of the meter used during the billing period. Quantity *float64 `json:"quantity,omitempty" azure:"ro"` // READ-ONLY; MPNId for the reseller associated with the subscription. ResellerMpnID *string `json:"resellerMpnId,omitempty" azure:"ro"` // READ-ONLY; Reseller Name. ResellerName *string `json:"resellerName,omitempty" azure:"ro"` // READ-ONLY; ARM resource id of the reservation. Only applies to records relevant to reservations. ReservationID *string `json:"reservationId,omitempty" azure:"ro"` // READ-ONLY; User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records // relevant to reservations. ReservationName *string `json:"reservationName,omitempty" azure:"ro"` // READ-ONLY; Name of the Azure resource group used for cohesive lifecycle management of resources. ResourceGroup *string `json:"resourceGroup,omitempty" azure:"ro"` // READ-ONLY; Name of the resource location. ResourceLocation *string `json:"resourceLocation,omitempty" azure:"ro"` // READ-ONLY; Resource Location Normalized. ResourceLocationNormalized *string `json:"resourceLocationNormalized,omitempty" azure:"ro"` // READ-ONLY; List the service family for the product purchased or charged (Example: Storage ; Compute). ServiceFamily *string `json:"serviceFamily,omitempty" azure:"ro"` // READ-ONLY; Service-specific metadata. ServiceInfo1 *string `json:"serviceInfo1,omitempty" azure:"ro"` // READ-ONLY; Legacy field with optional service-specific metadata. ServiceInfo2 *string `json:"serviceInfo2,omitempty" azure:"ro"` // READ-ONLY; End date for the period when the service usage was rated for charges. The prices for Azure services are determined based on the rating period. ServicePeriodEndDate *time.Time `json:"servicePeriodEndDate,omitempty" azure:"ro"` // READ-ONLY; Start date for the rating period when the service usage was rated for charges. The prices for Azure services are determined for the rating // period. ServicePeriodStartDate *time.Time `json:"servicePeriodStartDate,omitempty" azure:"ro"` // READ-ONLY; Unique Microsoft generated identifier for the Azure Subscription. SubscriptionGUID *string `json:"subscriptionGuid,omitempty" azure:"ro"` // READ-ONLY; Name of the Azure Subscription. SubscriptionName *string `json:"subscriptionName,omitempty" azure:"ro"` // READ-ONLY; Term (in months). Displays the term for the validity of the offer. For example. In case of reserved instances it displays 12 months for yearly // term of reserved instance. For one time purchases or // recurring purchases, the terms displays 1 month; This is not applicable for Azure consumption. Term *string `json:"term,omitempty" azure:"ro"` // READ-ONLY; Identifies the Unit that the service is charged in. For example, GB, hours, 10,000 s. UnitOfMeasure *string `json:"unitOfMeasure,omitempty" azure:"ro"` // READ-ONLY; Unit Price is the price applicable to you. (your EA or other contract price). UnitPrice *float64 `json:"unitPrice,omitempty" azure:"ro"` }
ModernUsageDetailProperties - The properties of the usage detail.
func (ModernUsageDetailProperties) MarshalJSON ¶
func (m ModernUsageDetailProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ModernUsageDetailProperties.
func (*ModernUsageDetailProperties) UnmarshalJSON ¶
func (m *ModernUsageDetailProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ModernUsageDetailProperties.
type Notification ¶
type Notification struct { // REQUIRED; Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified // at the Subscription or Resource Group scopes. All // other scopes must have at least one contact email specified. ContactEmails []*string `json:"contactEmails,omitempty"` // REQUIRED; The notification is enabled or not. Enabled *bool `json:"enabled,omitempty"` // REQUIRED; The comparison operator. Operator *OperatorType `json:"operator,omitempty"` // REQUIRED; Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to // be between 0 and 1000. Threshold *float64 `json:"threshold,omitempty"` // Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported // at Subscription or Resource Group scopes. ContactGroups []*string `json:"contactGroups,omitempty"` // Contact roles to send the budget notification to when the threshold is exceeded. ContactRoles []*string `json:"contactRoles,omitempty"` // The type of threshold ThresholdType *ThresholdType `json:"thresholdType,omitempty"` }
Notification - The notification associated with a budget.
func (Notification) MarshalJSON ¶
func (n Notification) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Notification.
type Operation ¶
type Operation struct { // The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` // READ-ONLY; Operation Id. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Operation name: {provider}/{resource}/{operation}. Name *string `json:"name,omitempty" azure:"ro"` }
Operation - A Consumption REST API operation.
type OperationDisplay ¶
type OperationDisplay struct { // READ-ONLY; Description of the operation. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; Operation type: Read, write, delete, etc. Operation *string `json:"operation,omitempty" azure:"ro"` // READ-ONLY; Service provider: Microsoft.Consumption. Provider *string `json:"provider,omitempty" azure:"ro"` // READ-ONLY; Resource on which the operation is performed: UsageDetail, etc. Resource *string `json:"resource,omitempty" azure:"ro"` }
OperationDisplay - The object that represents the operation.
type OperationListResult ¶
type OperationListResult struct { // READ-ONLY; URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; List of consumption operations supported by the Microsoft.Consumption resource provider. Value []*Operation `json:"value,omitempty" azure:"ro"` }
OperationListResult - Result of listing consumption operations. It contains a list of operations and a URL link to get the next set of results.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *OperationsClient
NewOperationsClient creates a new instance of OperationsClient with the specified values.
func (*OperationsClient) List ¶
func (client *OperationsClient) List(options *OperationsListOptions) *OperationsListPager
List - Lists all of the available consumption REST API operations. If the operation fails it returns the *ErrorResponse error type.
type OperationsListOptions ¶
type OperationsListOptions struct { }
OperationsListOptions contains the optional parameters for the Operations.List method.
type OperationsListPager ¶
type OperationsListPager struct {
// contains filtered or unexported fields
}
OperationsListPager provides operations for iterating over paged responses.
func (*OperationsListPager) Err ¶
func (p *OperationsListPager) Err() error
Err returns the last error encountered while paging.
func (*OperationsListPager) NextPage ¶
func (p *OperationsListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*OperationsListPager) PageResponse ¶
func (p *OperationsListPager) PageResponse() OperationsListResponse
PageResponse returns the current OperationsListResponse page.
type OperationsListResponse ¶
type OperationsListResponse struct { OperationsListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
OperationsListResponse contains the response from method Operations.List.
type OperationsListResult ¶
type OperationsListResult struct {
OperationListResult
}
OperationsListResult contains the result from method Operations.List.
type OperatorType ¶
type OperatorType string
OperatorType - The comparison operator.
const ( OperatorTypeEqualTo OperatorType = "EqualTo" OperatorTypeGreaterThan OperatorType = "GreaterThan" OperatorTypeGreaterThanOrEqualTo OperatorType = "GreaterThanOrEqualTo" )
func PossibleOperatorTypeValues ¶
func PossibleOperatorTypeValues() []OperatorType
PossibleOperatorTypeValues returns the possible values for the OperatorType const type.
func (OperatorType) ToPtr ¶
func (c OperatorType) ToPtr() *OperatorType
ToPtr returns a *OperatorType pointing to the current value.
type PriceSheetClient ¶
type PriceSheetClient struct {
// contains filtered or unexported fields
}
PriceSheetClient contains the methods for the PriceSheet group. Don't use this type directly, use NewPriceSheetClient() instead.
func NewPriceSheetClient ¶
func NewPriceSheetClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *PriceSheetClient
NewPriceSheetClient creates a new instance of PriceSheetClient with the specified values.
func (*PriceSheetClient) Get ¶
func (client *PriceSheetClient) Get(ctx context.Context, options *PriceSheetGetOptions) (PriceSheetGetResponse, error)
Get - Gets the price sheet for a subscription. Price sheet is available via this API only for May 1, 2014 or later. If the operation fails it returns the *ErrorResponse error type.
func (*PriceSheetClient) GetByBillingPeriod ¶
func (client *PriceSheetClient) GetByBillingPeriod(ctx context.Context, billingPeriodName string, options *PriceSheetGetByBillingPeriodOptions) (PriceSheetGetByBillingPeriodResponse, error)
GetByBillingPeriod - Get the price sheet for a scope by subscriptionId and billing period. Price sheet is available via this API only for May 1, 2014 or later. If the operation fails it returns the *ErrorResponse error type.
type PriceSheetGetByBillingPeriodOptions ¶
type PriceSheetGetByBillingPeriodOptions struct { // May be used to expand the properties/meterDetails within a price sheet. By default, these fields are not included when returning price sheet. Expand *string // Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink // element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. Skiptoken *string // May be used to limit the number of results to the top N results. Top *int32 }
PriceSheetGetByBillingPeriodOptions contains the optional parameters for the PriceSheet.GetByBillingPeriod method.
type PriceSheetGetByBillingPeriodResponse ¶
type PriceSheetGetByBillingPeriodResponse struct { PriceSheetGetByBillingPeriodResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
PriceSheetGetByBillingPeriodResponse contains the response from method PriceSheet.GetByBillingPeriod.
type PriceSheetGetByBillingPeriodResult ¶
type PriceSheetGetByBillingPeriodResult struct {
PriceSheetResult
}
PriceSheetGetByBillingPeriodResult contains the result from method PriceSheet.GetByBillingPeriod.
type PriceSheetGetOptions ¶
type PriceSheetGetOptions struct { // May be used to expand the properties/meterDetails within a price sheet. By default, these fields are not included when returning price sheet. Expand *string // Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink // element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. Skiptoken *string // May be used to limit the number of results to the top N results. Top *int32 }
PriceSheetGetOptions contains the optional parameters for the PriceSheet.Get method.
type PriceSheetGetResponse ¶
type PriceSheetGetResponse struct { PriceSheetGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
PriceSheetGetResponse contains the response from method PriceSheet.Get.
type PriceSheetGetResult ¶
type PriceSheetGetResult struct {
PriceSheetResult
}
PriceSheetGetResult contains the result from method PriceSheet.Get.
type PriceSheetModel ¶
type PriceSheetModel struct { // READ-ONLY; Pricesheet download details. Download *MeterDetails `json:"download,omitempty" azure:"ro"` // READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Price sheet Pricesheets []*PriceSheetProperties `json:"pricesheets,omitempty" azure:"ro"` }
PriceSheetModel - price sheet result. It contains the pricesheet associated with billing period
func (PriceSheetModel) MarshalJSON ¶
func (p PriceSheetModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PriceSheetModel.
type PriceSheetProperties ¶
type PriceSheetProperties struct { // READ-ONLY; The id of the billing period resource that the usage belongs to. BillingPeriodID *string `json:"billingPeriodId,omitempty" azure:"ro"` // READ-ONLY; Currency Code CurrencyCode *string `json:"currencyCode,omitempty" azure:"ro"` // READ-ONLY; Included quality for an offer IncludedQuantity *float64 `json:"includedQuantity,omitempty" azure:"ro"` // READ-ONLY; The details about the meter. By default this is not populated, unless it's specified in $expand. MeterDetails *MeterDetails `json:"meterDetails,omitempty" azure:"ro"` // READ-ONLY; The meter id (GUID) MeterID *string `json:"meterId,omitempty" azure:"ro"` // READ-ONLY; Offer Id OfferID *string `json:"offerId,omitempty" azure:"ro"` // READ-ONLY; Part Number PartNumber *string `json:"partNumber,omitempty" azure:"ro"` // READ-ONLY; Unit of measure UnitOfMeasure *string `json:"unitOfMeasure,omitempty" azure:"ro"` // READ-ONLY; Unit Price UnitPrice *float64 `json:"unitPrice,omitempty" azure:"ro"` }
PriceSheetProperties - The properties of the price sheet.
type PriceSheetResult ¶
type PriceSheetResult struct { Resource // price sheet result. It contains the pricesheet associated with billing period Properties *PriceSheetModel `json:"properties,omitempty"` }
PriceSheetResult - An pricesheet resource.
func (PriceSheetResult) MarshalJSON ¶
func (p PriceSheetResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PriceSheetResult.
func (*PriceSheetResult) UnmarshalJSON ¶
func (p *PriceSheetResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PriceSheetResult.
type PricingModelType ¶
type PricingModelType string
PricingModelType - Identifier that indicates how the meter is priced.
const ( PricingModelTypeOnDemand PricingModelType = "On Demand" PricingModelTypeReservation PricingModelType = "Reservation" PricingModelTypeSpot PricingModelType = "Spot" )
func PossiblePricingModelTypeValues ¶
func PossiblePricingModelTypeValues() []PricingModelType
PossiblePricingModelTypeValues returns the possible values for the PricingModelType const type.
func (PricingModelType) ToPtr ¶
func (c PricingModelType) ToPtr() *PricingModelType
ToPtr returns a *PricingModelType pointing to the current value.
type ProxyResource ¶
type ProxyResource struct { // eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. ETag *string `json:"eTag,omitempty"` // READ-ONLY; Resource Id. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ProxyResource - The Resource model definition.
type Reseller ¶
type Reseller struct { // READ-ONLY; The reseller property description. ResellerDescription *string `json:"resellerDescription,omitempty" azure:"ro"` // READ-ONLY; The reseller property ID. ResellerID *string `json:"resellerId,omitempty" azure:"ro"` }
Reseller - The reseller properties.
type ReservationDetail ¶
type ReservationDetail struct { Resource // The properties of the reservation detail. Properties *ReservationDetailProperties `json:"properties,omitempty"` }
ReservationDetail - reservation detail resource.
func (ReservationDetail) MarshalJSON ¶
func (r ReservationDetail) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReservationDetail.
func (*ReservationDetail) UnmarshalJSON ¶
func (r *ReservationDetail) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReservationDetail.
type ReservationDetailProperties ¶
type ReservationDetailProperties struct { // READ-ONLY; The instance Flexibility Group. InstanceFlexibilityGroup *string `json:"instanceFlexibilityGroup,omitempty" azure:"ro"` // READ-ONLY; The instance Flexibility Ratio. InstanceFlexibilityRatio *string `json:"instanceFlexibilityRatio,omitempty" azure:"ro"` // READ-ONLY; This identifier is the name of the resource or the fully qualified Resource ID. InstanceID *string `json:"instanceId,omitempty" azure:"ro"` // READ-ONLY; The reservation kind. Kind *string `json:"kind,omitempty" azure:"ro"` // READ-ONLY; The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit // scope and also specifies the number of instances to which // the reservation benefit can be applied to. ReservationID *string `json:"reservationId,omitempty" azure:"ro"` // READ-ONLY; The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. // A reservation order contains reservations. The reservation // order specifies the VM size and region for the reservations. ReservationOrderID *string `json:"reservationOrderId,omitempty" azure:"ro"` // READ-ONLY; This is the total hours reserved for the day. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and // 24 hours from subsequent days. ReservedHours *float64 `json:"reservedHours,omitempty" azure:"ro"` // READ-ONLY; This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. SKUName *string `json:"skuName,omitempty" azure:"ro"` // READ-ONLY; This is the total count of instances that are reserved for the reservationId. TotalReservedQuantity *float64 `json:"totalReservedQuantity,omitempty" azure:"ro"` // READ-ONLY; The date on which consumption occurred. UsageDate *time.Time `json:"usageDate,omitempty" azure:"ro"` // READ-ONLY; This is the total hours used by the instance. UsedHours *float64 `json:"usedHours,omitempty" azure:"ro"` }
ReservationDetailProperties - The properties of the reservation detail.
func (ReservationDetailProperties) MarshalJSON ¶
func (r ReservationDetailProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReservationDetailProperties.
func (*ReservationDetailProperties) UnmarshalJSON ¶
func (r *ReservationDetailProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReservationDetailProperties.
type ReservationDetailsListResult ¶
type ReservationDetailsListResult struct { // READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; The list of reservation details. Value []*ReservationDetail `json:"value,omitempty" azure:"ro"` }
ReservationDetailsListResult - Result of listing reservation details.
func (ReservationDetailsListResult) MarshalJSON ¶
func (r ReservationDetailsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReservationDetailsListResult.
type ReservationRecommendation ¶
type ReservationRecommendation struct { Resource ResourceAttributes // REQUIRED; Specifies the kind of reservation recommendation. Kind *ReservationRecommendationKind `json:"kind,omitempty"` }
ReservationRecommendation - A reservation recommendation resource.
func (*ReservationRecommendation) GetReservationRecommendation ¶
func (r *ReservationRecommendation) GetReservationRecommendation() *ReservationRecommendation
GetReservationRecommendation implements the ReservationRecommendationClassification interface for type ReservationRecommendation.
func (*ReservationRecommendation) UnmarshalJSON ¶
func (r *ReservationRecommendation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReservationRecommendation.
type ReservationRecommendationClassification ¶
type ReservationRecommendationClassification interface { // GetReservationRecommendation returns the ReservationRecommendation content of the underlying type. GetReservationRecommendation() *ReservationRecommendation }
ReservationRecommendationClassification provides polymorphic access to related types. Call the interface's GetReservationRecommendation() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *LegacyReservationRecommendation, *ModernReservationRecommendation, *ReservationRecommendation
type ReservationRecommendationDetailsCalculatedSavingsProperties ¶
type ReservationRecommendationDetailsCalculatedSavingsProperties struct { // The number of reserved units used to calculate savings. Always 1 for virtual machines. ReservedUnitCount *float32 `json:"reservedUnitCount,omitempty"` // READ-ONLY; The cost without reservation. OnDemandCost *float32 `json:"onDemandCost,omitempty" azure:"ro"` // READ-ONLY; The difference between total reservation cost and reservation cost. OverageCost *float32 `json:"overageCost,omitempty" azure:"ro"` // READ-ONLY; The quantity for calculated savings. Quantity *float32 `json:"quantity,omitempty" azure:"ro"` // READ-ONLY; The exact cost of the estimated usage using reservation. ReservationCost *float32 `json:"reservationCost,omitempty" azure:"ro"` // READ-ONLY; The amount saved by purchasing the recommended quantity of reservation. Savings *float32 `json:"savings,omitempty" azure:"ro"` // READ-ONLY; The cost of the suggested quantity. TotalReservationCost *float32 `json:"totalReservationCost,omitempty" azure:"ro"` }
ReservationRecommendationDetailsCalculatedSavingsProperties - Details of estimated savings.
type ReservationRecommendationDetailsClient ¶
type ReservationRecommendationDetailsClient struct {
// contains filtered or unexported fields
}
ReservationRecommendationDetailsClient contains the methods for the ReservationRecommendationDetails group. Don't use this type directly, use NewReservationRecommendationDetailsClient() instead.
func NewReservationRecommendationDetailsClient ¶
func NewReservationRecommendationDetailsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *ReservationRecommendationDetailsClient
NewReservationRecommendationDetailsClient creates a new instance of ReservationRecommendationDetailsClient with the specified values.
func (*ReservationRecommendationDetailsClient) Get ¶
func (client *ReservationRecommendationDetailsClient) Get(ctx context.Context, scope string, region string, term Term, lookBackPeriod LookBackPeriod, product string, options *ReservationRecommendationDetailsGetOptions) (ReservationRecommendationDetailsGetResponse, error)
Get - Details of a reservation recommendation for what-if analysis of reserved instances. If the operation fails it returns the *HighCasedErrorResponse error type.
type ReservationRecommendationDetailsGetOptions ¶
type ReservationRecommendationDetailsGetOptions struct { }
ReservationRecommendationDetailsGetOptions contains the optional parameters for the ReservationRecommendationDetails.Get method.
type ReservationRecommendationDetailsGetResponse ¶
type ReservationRecommendationDetailsGetResponse struct { ReservationRecommendationDetailsGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ReservationRecommendationDetailsGetResponse contains the response from method ReservationRecommendationDetails.Get.
type ReservationRecommendationDetailsGetResult ¶
type ReservationRecommendationDetailsGetResult struct {
ReservationRecommendationDetailsModel
}
ReservationRecommendationDetailsGetResult contains the result from method ReservationRecommendationDetails.Get.
type ReservationRecommendationDetailsModel ¶
type ReservationRecommendationDetailsModel struct { Resource // Resource Location. Location *string `json:"location,omitempty"` // The properties of the reservation recommendation. Properties *ReservationRecommendationDetailsProperties `json:"properties,omitempty"` // Resource sku SKU *string `json:"sku,omitempty"` }
ReservationRecommendationDetailsModel - Reservation recommendation details.
func (ReservationRecommendationDetailsModel) MarshalJSON ¶
func (r ReservationRecommendationDetailsModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReservationRecommendationDetailsModel.
func (*ReservationRecommendationDetailsModel) UnmarshalJSON ¶
func (r *ReservationRecommendationDetailsModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReservationRecommendationDetailsModel.
type ReservationRecommendationDetailsProperties ¶
type ReservationRecommendationDetailsProperties struct { // READ-ONLY; An ISO 4217 currency code identifier for the costs and savings Currency *string `json:"currency,omitempty" azure:"ro"` // READ-ONLY; Resource specific properties. Resource *ReservationRecommendationDetailsResourceProperties `json:"resource,omitempty" azure:"ro"` // READ-ONLY; Resource Group. ResourceGroup *string `json:"resourceGroup,omitempty" azure:"ro"` // READ-ONLY; Savings information for the recommendation. Savings *ReservationRecommendationDetailsSavingsProperties `json:"savings,omitempty" azure:"ro"` // READ-ONLY; Scope of the reservation, ex: Single or Shared. Scope *string `json:"scope,omitempty" azure:"ro"` // READ-ONLY; Historical usage details used to calculate the estimated savings. Usage *ReservationRecommendationDetailsUsageProperties `json:"usage,omitempty" azure:"ro"` }
ReservationRecommendationDetailsProperties - The properties of the reservation recommendation.
type ReservationRecommendationDetailsResourceProperties ¶
type ReservationRecommendationDetailsResourceProperties struct { // READ-ONLY; List of subscriptions for which the reservation is applied. AppliedScopes []*string `json:"appliedScopes,omitempty" azure:"ro"` // READ-ONLY; On demand rate of the resource. OnDemandRate *float32 `json:"onDemandRate,omitempty" azure:"ro"` // READ-ONLY; Azure product ex: StandardE8sv3 etc. Product *string `json:"product,omitempty" azure:"ro"` // READ-ONLY; Azure resource region ex:EastUS, WestUS etc. Region *string `json:"region,omitempty" azure:"ro"` // READ-ONLY; Reservation rate of the resource. ReservationRate *float32 `json:"reservationRate,omitempty" azure:"ro"` // READ-ONLY; The azure resource type. ResourceType *string `json:"resourceType,omitempty" azure:"ro"` }
ReservationRecommendationDetailsResourceProperties - Details of the resource.
func (ReservationRecommendationDetailsResourceProperties) MarshalJSON ¶
func (r ReservationRecommendationDetailsResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReservationRecommendationDetailsResourceProperties.
type ReservationRecommendationDetailsSavingsProperties ¶
type ReservationRecommendationDetailsSavingsProperties struct { // List of calculated savings. CalculatedSavings []*ReservationRecommendationDetailsCalculatedSavingsProperties `json:"calculatedSavings,omitempty"` // READ-ONLY; Number of days of usage to look back used for computing the recommendation. LookBackPeriod *int32 `json:"lookBackPeriod,omitempty" azure:"ro"` // READ-ONLY; Number of recommended units of the resource. RecommendedQuantity *float32 `json:"recommendedQuantity,omitempty" azure:"ro"` // READ-ONLY; Term period of the reservation, ex: P1Y or P3Y. ReservationOrderTerm *string `json:"reservationOrderTerm,omitempty" azure:"ro"` // READ-ONLY; Type of savings, ex: instance. SavingsType *string `json:"savingsType,omitempty" azure:"ro"` // READ-ONLY; Measurement unit ex: hour etc. UnitOfMeasure *string `json:"unitOfMeasure,omitempty" azure:"ro"` }
ReservationRecommendationDetailsSavingsProperties - Details of the estimated savings.
func (ReservationRecommendationDetailsSavingsProperties) MarshalJSON ¶
func (r ReservationRecommendationDetailsSavingsProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReservationRecommendationDetailsSavingsProperties.
type ReservationRecommendationDetailsUsageProperties ¶
type ReservationRecommendationDetailsUsageProperties struct { // READ-ONLY; The first usage date used for looking back for computing the recommendation. FirstConsumptionDate *string `json:"firstConsumptionDate,omitempty" azure:"ro"` // READ-ONLY; The last usage date used for looking back for computing the recommendation. LastConsumptionDate *string `json:"lastConsumptionDate,omitempty" azure:"ro"` // READ-ONLY; What the usage data values represent ex: virtual machine instance. LookBackUnitType *string `json:"lookBackUnitType,omitempty" azure:"ro"` // READ-ONLY; The breakdown of historical resource usage. The values are in the order of usage between the firstConsumptionDate and the lastConsumptionDate. UsageData []*float32 `json:"usageData,omitempty" azure:"ro"` // READ-ONLY; The grain of the values represented in the usage data ex: hourly. UsageGrain *string `json:"usageGrain,omitempty" azure:"ro"` }
ReservationRecommendationDetailsUsageProperties - Details about historical usage data that has been used for computing the recommendation.
func (ReservationRecommendationDetailsUsageProperties) MarshalJSON ¶
func (r ReservationRecommendationDetailsUsageProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReservationRecommendationDetailsUsageProperties.
type ReservationRecommendationKind ¶
type ReservationRecommendationKind string
ReservationRecommendationKind - Specifies the kind of reservation recommendation.
const ( ReservationRecommendationKindLegacy ReservationRecommendationKind = "legacy" ReservationRecommendationKindModern ReservationRecommendationKind = "modern" )
func PossibleReservationRecommendationKindValues ¶
func PossibleReservationRecommendationKindValues() []ReservationRecommendationKind
PossibleReservationRecommendationKindValues returns the possible values for the ReservationRecommendationKind const type.
func (ReservationRecommendationKind) ToPtr ¶
func (c ReservationRecommendationKind) ToPtr() *ReservationRecommendationKind
ToPtr returns a *ReservationRecommendationKind pointing to the current value.
type ReservationRecommendationsClient ¶
type ReservationRecommendationsClient struct {
// contains filtered or unexported fields
}
ReservationRecommendationsClient contains the methods for the ReservationRecommendations group. Don't use this type directly, use NewReservationRecommendationsClient() instead.
func NewReservationRecommendationsClient ¶
func NewReservationRecommendationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *ReservationRecommendationsClient
NewReservationRecommendationsClient creates a new instance of ReservationRecommendationsClient with the specified values.
func (*ReservationRecommendationsClient) List ¶
func (client *ReservationRecommendationsClient) List(scope string, options *ReservationRecommendationsListOptions) *ReservationRecommendationsListPager
List - List of recommendations for purchasing reserved instances. If the operation fails it returns the *ErrorResponse error type.
type ReservationRecommendationsListOptions ¶
type ReservationRecommendationsListOptions struct { // May be used to filter reservationRecommendations by: properties/scope with allowed values ['Single', 'Shared'] and default value 'Single'; properties/resourceType // with allowed values ['VirtualMachines', 'SQLDatabases', 'PostgreSQL', 'ManagedDisk', 'MySQL', 'RedHat', 'MariaDB', 'RedisCache', 'CosmosDB', 'SqlDataWarehouse', // 'SUSELinux', 'AppService', 'BlockBlob', 'AzureDataExplorer', 'VMwareCloudSimple'] and default value 'VirtualMachines'; and properties/lookBackPeriod // with allowed values ['Last7Days', 'Last30Days', 'Last60Days'] and default value 'Last7Days'. Filter *string }
ReservationRecommendationsListOptions contains the optional parameters for the ReservationRecommendations.List method.
type ReservationRecommendationsListPager ¶
type ReservationRecommendationsListPager struct {
// contains filtered or unexported fields
}
ReservationRecommendationsListPager provides operations for iterating over paged responses.
func (*ReservationRecommendationsListPager) Err ¶
func (p *ReservationRecommendationsListPager) Err() error
Err returns the last error encountered while paging.
func (*ReservationRecommendationsListPager) NextPage ¶
func (p *ReservationRecommendationsListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ReservationRecommendationsListPager) PageResponse ¶
func (p *ReservationRecommendationsListPager) PageResponse() ReservationRecommendationsListResponse
PageResponse returns the current ReservationRecommendationsListResponse page.
type ReservationRecommendationsListResponse ¶
type ReservationRecommendationsListResponse struct { ReservationRecommendationsListResultEnvelope // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ReservationRecommendationsListResponse contains the response from method ReservationRecommendations.List.
type ReservationRecommendationsListResult ¶
type ReservationRecommendationsListResult struct { // READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; The link (url) to the previous page of results. PreviousLink *string `json:"previousLink,omitempty" azure:"ro"` // READ-ONLY; The list of reservation recommendations. Value []ReservationRecommendationClassification `json:"value,omitempty" azure:"ro"` }
ReservationRecommendationsListResult - Result of listing reservation recommendations.
func (ReservationRecommendationsListResult) MarshalJSON ¶
func (r ReservationRecommendationsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReservationRecommendationsListResult.
func (*ReservationRecommendationsListResult) UnmarshalJSON ¶
func (r *ReservationRecommendationsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReservationRecommendationsListResult.
type ReservationRecommendationsListResultEnvelope ¶
type ReservationRecommendationsListResultEnvelope struct {
ReservationRecommendationsListResult
}
ReservationRecommendationsListResultEnvelope contains the result from method ReservationRecommendations.List.
type ReservationSummariesListResult ¶
type ReservationSummariesListResult struct { // READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; The list of reservation summaries. Value []*ReservationSummary `json:"value,omitempty" azure:"ro"` }
ReservationSummariesListResult - Result of listing reservation summaries.
func (ReservationSummariesListResult) MarshalJSON ¶
func (r ReservationSummariesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReservationSummariesListResult.
type ReservationSummary ¶
type ReservationSummary struct { Resource // The properties of the reservation summary. Properties *ReservationSummaryProperties `json:"properties,omitempty"` }
ReservationSummary - reservation summary resource.
func (ReservationSummary) MarshalJSON ¶
func (r ReservationSummary) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReservationSummary.
func (*ReservationSummary) UnmarshalJSON ¶
func (r *ReservationSummary) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReservationSummary.
type ReservationSummaryProperties ¶
type ReservationSummaryProperties struct { // READ-ONLY; This is average utilization for the entire time range. (day or month depending on the grain) AvgUtilizationPercentage *float64 `json:"avgUtilizationPercentage,omitempty" azure:"ro"` // READ-ONLY; The reservation kind. Kind *string `json:"kind,omitempty" azure:"ro"` // READ-ONLY; This is the maximum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour // 4 and 5, utilization was 100%, this field will return 100% // for that day. MaxUtilizationPercentage *float64 `json:"maxUtilizationPercentage,omitempty" azure:"ro"` // READ-ONLY; This is the minimum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour // 4 and 5, utilization was 10%, this field will return 10% // for that day MinUtilizationPercentage *float64 `json:"minUtilizationPercentage,omitempty" azure:"ro"` // READ-ONLY; This is the purchased quantity for the reservationId. PurchasedQuantity *float64 `json:"purchasedQuantity,omitempty" azure:"ro"` // READ-ONLY; This is the remaining quantity for the reservationId. RemainingQuantity *float64 `json:"remainingQuantity,omitempty" azure:"ro"` // READ-ONLY; The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit // scope and also specifies the number of instances to which // the reservation benefit can be applied to. ReservationID *string `json:"reservationId,omitempty" azure:"ro"` // READ-ONLY; The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. // A reservation order contains reservations. The reservation // order specifies the VM size and region for the reservations. ReservationOrderID *string `json:"reservationOrderId,omitempty" azure:"ro"` // READ-ONLY; This is the total hours reserved. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from // subsequent days ReservedHours *float64 `json:"reservedHours,omitempty" azure:"ro"` // READ-ONLY; This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. SKUName *string `json:"skuName,omitempty" azure:"ro"` // READ-ONLY; This is the total count of instances that are reserved for the reservationId. TotalReservedQuantity *float64 `json:"totalReservedQuantity,omitempty" azure:"ro"` // READ-ONLY; Data corresponding to the utilization record. If the grain of data is monthly, it will be first day of month. UsageDate *time.Time `json:"usageDate,omitempty" azure:"ro"` // READ-ONLY; Total used hours by the reservation UsedHours *float64 `json:"usedHours,omitempty" azure:"ro"` // READ-ONLY; This is the used quantity for the reservationId. UsedQuantity *float64 `json:"usedQuantity,omitempty" azure:"ro"` // READ-ONLY; This is the utilized percentage for the reservation Id. UtilizedPercentage *float64 `json:"utilizedPercentage,omitempty" azure:"ro"` }
ReservationSummaryProperties - The properties of the reservation summary.
func (ReservationSummaryProperties) MarshalJSON ¶
func (r ReservationSummaryProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReservationSummaryProperties.
func (*ReservationSummaryProperties) UnmarshalJSON ¶
func (r *ReservationSummaryProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReservationSummaryProperties.
type ReservationTransaction ¶
type ReservationTransaction struct { ReservationTransactionResource // The properties of a legacy reservation transaction. Properties *LegacyReservationTransactionProperties `json:"properties,omitempty"` }
ReservationTransaction - Reservation transaction resource.
func (ReservationTransaction) MarshalJSON ¶
func (r ReservationTransaction) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReservationTransaction.
type ReservationTransactionResource ¶
type ReservationTransactionResource struct { // READ-ONLY; Resource Id. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource tags. Tags []*string `json:"tags,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ReservationTransactionResource - The Resource model definition.
func (ReservationTransactionResource) MarshalJSON ¶
func (r ReservationTransactionResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReservationTransactionResource.
type ReservationTransactionsClient ¶
type ReservationTransactionsClient struct {
// contains filtered or unexported fields
}
ReservationTransactionsClient contains the methods for the ReservationTransactions group. Don't use this type directly, use NewReservationTransactionsClient() instead.
func NewReservationTransactionsClient ¶
func NewReservationTransactionsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *ReservationTransactionsClient
NewReservationTransactionsClient creates a new instance of ReservationTransactionsClient with the specified values.
func (*ReservationTransactionsClient) List ¶
func (client *ReservationTransactionsClient) List(billingAccountID string, options *ReservationTransactionsListOptions) *ReservationTransactionsListPager
List - List of transactions for reserved instances on billing account scope If the operation fails it returns the *ErrorResponse error type.
func (*ReservationTransactionsClient) ListByBillingProfile ¶
func (client *ReservationTransactionsClient) ListByBillingProfile(billingAccountID string, billingProfileID string, options *ReservationTransactionsListByBillingProfileOptions) *ReservationTransactionsListByBillingProfilePager
ListByBillingProfile - List of transactions for reserved instances on billing account scope If the operation fails it returns the *ErrorResponse error type.
type ReservationTransactionsListByBillingProfileOptions ¶
type ReservationTransactionsListByBillingProfileOptions struct { // Filter reservation transactions by date range. The properties/EventDate for start date and end date. The filter supports 'le' and 'ge' Filter *string }
ReservationTransactionsListByBillingProfileOptions contains the optional parameters for the ReservationTransactions.ListByBillingProfile method.
type ReservationTransactionsListByBillingProfilePager ¶
type ReservationTransactionsListByBillingProfilePager struct {
// contains filtered or unexported fields
}
ReservationTransactionsListByBillingProfilePager provides operations for iterating over paged responses.
func (*ReservationTransactionsListByBillingProfilePager) Err ¶
func (p *ReservationTransactionsListByBillingProfilePager) Err() error
Err returns the last error encountered while paging.
func (*ReservationTransactionsListByBillingProfilePager) NextPage ¶
func (p *ReservationTransactionsListByBillingProfilePager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ReservationTransactionsListByBillingProfilePager) PageResponse ¶
func (p *ReservationTransactionsListByBillingProfilePager) PageResponse() ReservationTransactionsListByBillingProfileResponse
PageResponse returns the current ReservationTransactionsListByBillingProfileResponse page.
type ReservationTransactionsListByBillingProfileResponse ¶
type ReservationTransactionsListByBillingProfileResponse struct { ReservationTransactionsListByBillingProfileResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ReservationTransactionsListByBillingProfileResponse contains the response from method ReservationTransactions.ListByBillingProfile.
type ReservationTransactionsListByBillingProfileResult ¶
type ReservationTransactionsListByBillingProfileResult struct {
ModernReservationTransactionsListResult
}
ReservationTransactionsListByBillingProfileResult contains the result from method ReservationTransactions.ListByBillingProfile.
type ReservationTransactionsListOptions ¶
type ReservationTransactionsListOptions struct { // Filter reservation transactions by date range. The properties/EventDate for start date and end date. The filter supports 'le' and 'ge' Filter *string }
ReservationTransactionsListOptions contains the optional parameters for the ReservationTransactions.List method.
type ReservationTransactionsListPager ¶
type ReservationTransactionsListPager struct {
// contains filtered or unexported fields
}
ReservationTransactionsListPager provides operations for iterating over paged responses.
func (*ReservationTransactionsListPager) Err ¶
func (p *ReservationTransactionsListPager) Err() error
Err returns the last error encountered while paging.
func (*ReservationTransactionsListPager) NextPage ¶
func (p *ReservationTransactionsListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ReservationTransactionsListPager) PageResponse ¶
func (p *ReservationTransactionsListPager) PageResponse() ReservationTransactionsListResponse
PageResponse returns the current ReservationTransactionsListResponse page.
type ReservationTransactionsListResponse ¶
type ReservationTransactionsListResponse struct { ReservationTransactionsListResultEnvelope // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ReservationTransactionsListResponse contains the response from method ReservationTransactions.List.
type ReservationTransactionsListResult ¶
type ReservationTransactionsListResult struct { // READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; The list of reservation recommendations. Value []*ReservationTransaction `json:"value,omitempty" azure:"ro"` }
ReservationTransactionsListResult - Result of listing reservation recommendations.
func (ReservationTransactionsListResult) MarshalJSON ¶
func (r ReservationTransactionsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReservationTransactionsListResult.
type ReservationTransactionsListResultEnvelope ¶
type ReservationTransactionsListResultEnvelope struct {
ReservationTransactionsListResult
}
ReservationTransactionsListResultEnvelope contains the result from method ReservationTransactions.List.
type ReservationsDetailsClient ¶
type ReservationsDetailsClient struct {
// contains filtered or unexported fields
}
ReservationsDetailsClient contains the methods for the ReservationsDetails group. Don't use this type directly, use NewReservationsDetailsClient() instead.
func NewReservationsDetailsClient ¶
func NewReservationsDetailsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *ReservationsDetailsClient
NewReservationsDetailsClient creates a new instance of ReservationsDetailsClient with the specified values.
func (*ReservationsDetailsClient) List ¶
func (client *ReservationsDetailsClient) List(scope string, options *ReservationsDetailsListOptions) *ReservationsDetailsListPager
List - Lists the reservations details for the defined scope and provided date range. If the operation fails it returns the *ErrorResponse error type.
func (*ReservationsDetailsClient) ListByReservationOrder ¶
func (client *ReservationsDetailsClient) ListByReservationOrder(reservationOrderID string, filter string, options *ReservationsDetailsListByReservationOrderOptions) *ReservationsDetailsListByReservationOrderPager
ListByReservationOrder - Lists the reservations details for provided date range. If the operation fails it returns the *ErrorResponse error type.
func (*ReservationsDetailsClient) ListByReservationOrderAndReservation ¶
func (client *ReservationsDetailsClient) ListByReservationOrderAndReservation(reservationOrderID string, reservationID string, filter string, options *ReservationsDetailsListByReservationOrderAndReservationOptions) *ReservationsDetailsListByReservationOrderAndReservationPager
ListByReservationOrderAndReservation - Lists the reservations details for provided date range. If the operation fails it returns the *ErrorResponse error type.
type ReservationsDetailsListByReservationOrderAndReservationOptions ¶
type ReservationsDetailsListByReservationOrderAndReservationOptions struct { }
ReservationsDetailsListByReservationOrderAndReservationOptions contains the optional parameters for the ReservationsDetails.ListByReservationOrderAndReservation method.
type ReservationsDetailsListByReservationOrderAndReservationPager ¶
type ReservationsDetailsListByReservationOrderAndReservationPager struct {
// contains filtered or unexported fields
}
ReservationsDetailsListByReservationOrderAndReservationPager provides operations for iterating over paged responses.
func (*ReservationsDetailsListByReservationOrderAndReservationPager) Err ¶
func (p *ReservationsDetailsListByReservationOrderAndReservationPager) Err() error
Err returns the last error encountered while paging.
func (*ReservationsDetailsListByReservationOrderAndReservationPager) NextPage ¶
func (p *ReservationsDetailsListByReservationOrderAndReservationPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ReservationsDetailsListByReservationOrderAndReservationPager) PageResponse ¶
func (p *ReservationsDetailsListByReservationOrderAndReservationPager) PageResponse() ReservationsDetailsListByReservationOrderAndReservationResponse
PageResponse returns the current ReservationsDetailsListByReservationOrderAndReservationResponse page.
type ReservationsDetailsListByReservationOrderAndReservationResponse ¶
type ReservationsDetailsListByReservationOrderAndReservationResponse struct { ReservationsDetailsListByReservationOrderAndReservationResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ReservationsDetailsListByReservationOrderAndReservationResponse contains the response from method ReservationsDetails.ListByReservationOrderAndReservation.
type ReservationsDetailsListByReservationOrderAndReservationResult ¶
type ReservationsDetailsListByReservationOrderAndReservationResult struct {
ReservationDetailsListResult
}
ReservationsDetailsListByReservationOrderAndReservationResult contains the result from method ReservationsDetails.ListByReservationOrderAndReservation.
type ReservationsDetailsListByReservationOrderOptions ¶
type ReservationsDetailsListByReservationOrderOptions struct { }
ReservationsDetailsListByReservationOrderOptions contains the optional parameters for the ReservationsDetails.ListByReservationOrder method.
type ReservationsDetailsListByReservationOrderPager ¶
type ReservationsDetailsListByReservationOrderPager struct {
// contains filtered or unexported fields
}
ReservationsDetailsListByReservationOrderPager provides operations for iterating over paged responses.
func (*ReservationsDetailsListByReservationOrderPager) Err ¶
func (p *ReservationsDetailsListByReservationOrderPager) Err() error
Err returns the last error encountered while paging.
func (*ReservationsDetailsListByReservationOrderPager) NextPage ¶
func (p *ReservationsDetailsListByReservationOrderPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ReservationsDetailsListByReservationOrderPager) PageResponse ¶
func (p *ReservationsDetailsListByReservationOrderPager) PageResponse() ReservationsDetailsListByReservationOrderResponse
PageResponse returns the current ReservationsDetailsListByReservationOrderResponse page.
type ReservationsDetailsListByReservationOrderResponse ¶
type ReservationsDetailsListByReservationOrderResponse struct { ReservationsDetailsListByReservationOrderResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ReservationsDetailsListByReservationOrderResponse contains the response from method ReservationsDetails.ListByReservationOrder.
type ReservationsDetailsListByReservationOrderResult ¶
type ReservationsDetailsListByReservationOrderResult struct {
ReservationDetailsListResult
}
ReservationsDetailsListByReservationOrderResult contains the result from method ReservationsDetails.ListByReservationOrder.
type ReservationsDetailsListOptions ¶
type ReservationsDetailsListOptions struct { // End date. Only applicable when querying with billing profile EndDate *string // Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'. Not applicable when // querying with billing profile Filter *string // Reservation Id GUID. Only valid if reservationOrderId is also provided. Filter to a specific reservation ReservationID *string // Reservation Order Id GUID. Required if reservationId is provided. Filter to a specific reservation order ReservationOrderID *string // Start date. Only applicable when querying with billing profile StartDate *string }
ReservationsDetailsListOptions contains the optional parameters for the ReservationsDetails.List method.
type ReservationsDetailsListPager ¶
type ReservationsDetailsListPager struct {
// contains filtered or unexported fields
}
ReservationsDetailsListPager provides operations for iterating over paged responses.
func (*ReservationsDetailsListPager) Err ¶
func (p *ReservationsDetailsListPager) Err() error
Err returns the last error encountered while paging.
func (*ReservationsDetailsListPager) NextPage ¶
func (p *ReservationsDetailsListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ReservationsDetailsListPager) PageResponse ¶
func (p *ReservationsDetailsListPager) PageResponse() ReservationsDetailsListResponse
PageResponse returns the current ReservationsDetailsListResponse page.
type ReservationsDetailsListResponse ¶
type ReservationsDetailsListResponse struct { ReservationsDetailsListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ReservationsDetailsListResponse contains the response from method ReservationsDetails.List.
type ReservationsDetailsListResult ¶
type ReservationsDetailsListResult struct {
ReservationDetailsListResult
}
ReservationsDetailsListResult contains the result from method ReservationsDetails.List.
type ReservationsSummariesClient ¶
type ReservationsSummariesClient struct {
// contains filtered or unexported fields
}
ReservationsSummariesClient contains the methods for the ReservationsSummaries group. Don't use this type directly, use NewReservationsSummariesClient() instead.
func NewReservationsSummariesClient ¶
func NewReservationsSummariesClient(credential azcore.TokenCredential, options *arm.ClientOptions) *ReservationsSummariesClient
NewReservationsSummariesClient creates a new instance of ReservationsSummariesClient with the specified values.
func (*ReservationsSummariesClient) List ¶
func (client *ReservationsSummariesClient) List(scope string, grain Datagrain, options *ReservationsSummariesListOptions) *ReservationsSummariesListPager
List - Lists the reservations summaries for the defined scope daily or monthly grain. If the operation fails it returns the *ErrorResponse error type.
func (*ReservationsSummariesClient) ListByReservationOrder ¶
func (client *ReservationsSummariesClient) ListByReservationOrder(reservationOrderID string, grain Datagrain, options *ReservationsSummariesListByReservationOrderOptions) *ReservationsSummariesListByReservationOrderPager
ListByReservationOrder - Lists the reservations summaries for daily or monthly grain. If the operation fails it returns the *ErrorResponse error type.
func (*ReservationsSummariesClient) ListByReservationOrderAndReservation ¶
func (client *ReservationsSummariesClient) ListByReservationOrderAndReservation(reservationOrderID string, reservationID string, grain Datagrain, options *ReservationsSummariesListByReservationOrderAndReservationOptions) *ReservationsSummariesListByReservationOrderAndReservationPager
ListByReservationOrderAndReservation - Lists the reservations summaries for daily or monthly grain. If the operation fails it returns the *ErrorResponse error type.
type ReservationsSummariesListByReservationOrderAndReservationOptions ¶
type ReservationsSummariesListByReservationOrderAndReservationOptions struct { // Required only for daily grain. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge' Filter *string }
ReservationsSummariesListByReservationOrderAndReservationOptions contains the optional parameters for the ReservationsSummaries.ListByReservationOrderAndReservation method.
type ReservationsSummariesListByReservationOrderAndReservationPager ¶
type ReservationsSummariesListByReservationOrderAndReservationPager struct {
// contains filtered or unexported fields
}
ReservationsSummariesListByReservationOrderAndReservationPager provides operations for iterating over paged responses.
func (*ReservationsSummariesListByReservationOrderAndReservationPager) Err ¶
func (p *ReservationsSummariesListByReservationOrderAndReservationPager) Err() error
Err returns the last error encountered while paging.
func (*ReservationsSummariesListByReservationOrderAndReservationPager) NextPage ¶
func (p *ReservationsSummariesListByReservationOrderAndReservationPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ReservationsSummariesListByReservationOrderAndReservationPager) PageResponse ¶
func (p *ReservationsSummariesListByReservationOrderAndReservationPager) PageResponse() ReservationsSummariesListByReservationOrderAndReservationResponse
PageResponse returns the current ReservationsSummariesListByReservationOrderAndReservationResponse page.
type ReservationsSummariesListByReservationOrderAndReservationResponse ¶
type ReservationsSummariesListByReservationOrderAndReservationResponse struct { ReservationsSummariesListByReservationOrderAndReservationResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ReservationsSummariesListByReservationOrderAndReservationResponse contains the response from method ReservationsSummaries.ListByReservationOrderAndReservation.
type ReservationsSummariesListByReservationOrderAndReservationResult ¶
type ReservationsSummariesListByReservationOrderAndReservationResult struct {
ReservationSummariesListResult
}
ReservationsSummariesListByReservationOrderAndReservationResult contains the result from method ReservationsSummaries.ListByReservationOrderAndReservation.
type ReservationsSummariesListByReservationOrderOptions ¶
type ReservationsSummariesListByReservationOrderOptions struct { // Required only for daily grain. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge' Filter *string }
ReservationsSummariesListByReservationOrderOptions contains the optional parameters for the ReservationsSummaries.ListByReservationOrder method.
type ReservationsSummariesListByReservationOrderPager ¶
type ReservationsSummariesListByReservationOrderPager struct {
// contains filtered or unexported fields
}
ReservationsSummariesListByReservationOrderPager provides operations for iterating over paged responses.
func (*ReservationsSummariesListByReservationOrderPager) Err ¶
func (p *ReservationsSummariesListByReservationOrderPager) Err() error
Err returns the last error encountered while paging.
func (*ReservationsSummariesListByReservationOrderPager) NextPage ¶
func (p *ReservationsSummariesListByReservationOrderPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ReservationsSummariesListByReservationOrderPager) PageResponse ¶
func (p *ReservationsSummariesListByReservationOrderPager) PageResponse() ReservationsSummariesListByReservationOrderResponse
PageResponse returns the current ReservationsSummariesListByReservationOrderResponse page.
type ReservationsSummariesListByReservationOrderResponse ¶
type ReservationsSummariesListByReservationOrderResponse struct { ReservationsSummariesListByReservationOrderResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ReservationsSummariesListByReservationOrderResponse contains the response from method ReservationsSummaries.ListByReservationOrder.
type ReservationsSummariesListByReservationOrderResult ¶
type ReservationsSummariesListByReservationOrderResult struct {
ReservationSummariesListResult
}
ReservationsSummariesListByReservationOrderResult contains the result from method ReservationsSummaries.ListByReservationOrder.
type ReservationsSummariesListOptions ¶
type ReservationsSummariesListOptions struct { // End date. Only applicable when querying with billing profile EndDate *string // Required only for daily grain. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'. Not applicable when querying // with billing profile Filter *string // Reservation Id GUID. Only valid if reservationOrderId is also provided. Filter to a specific reservation ReservationID *string // Reservation Order Id GUID. Required if reservationId is provided. Filter to a specific reservation order ReservationOrderID *string // Start date. Only applicable when querying with billing profile StartDate *string }
ReservationsSummariesListOptions contains the optional parameters for the ReservationsSummaries.List method.
type ReservationsSummariesListPager ¶
type ReservationsSummariesListPager struct {
// contains filtered or unexported fields
}
ReservationsSummariesListPager provides operations for iterating over paged responses.
func (*ReservationsSummariesListPager) Err ¶
func (p *ReservationsSummariesListPager) Err() error
Err returns the last error encountered while paging.
func (*ReservationsSummariesListPager) NextPage ¶
func (p *ReservationsSummariesListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ReservationsSummariesListPager) PageResponse ¶
func (p *ReservationsSummariesListPager) PageResponse() ReservationsSummariesListResponse
PageResponse returns the current ReservationsSummariesListResponse page.
type ReservationsSummariesListResponse ¶
type ReservationsSummariesListResponse struct { ReservationsSummariesListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ReservationsSummariesListResponse contains the response from method ReservationsSummaries.List.
type ReservationsSummariesListResult ¶
type ReservationsSummariesListResult struct {
ReservationSummariesListResult
}
ReservationsSummariesListResult contains the result from method ReservationsSummaries.List.
type Resource ¶
type Resource struct { // READ-ONLY; The etag for the resource. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; The full qualified ARM ID of an event. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The ID that uniquely identifies an event. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource tags. Tags map[string]*string `json:"tags,omitempty" azure:"ro"` // READ-ONLY; Resource type. Type *string `json:"type,omitempty" azure:"ro"` }
Resource - The Resource model definition.
func (Resource) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Resource.
func (*Resource) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Resource.
type ResourceAttributes ¶
type ResourceAttributes struct { // READ-ONLY; Resource location Location *string `json:"location,omitempty" azure:"ro"` // READ-ONLY; Resource sku SKU *string `json:"sku,omitempty" azure:"ro"` }
ResourceAttributes - The Resource model definition.
func (*ResourceAttributes) UnmarshalJSON ¶
func (r *ResourceAttributes) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceAttributes.
type SKUProperty ¶
type SKUProperty struct { // READ-ONLY; The name of sku property. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The value of sku property. Value *string `json:"value,omitempty" azure:"ro"` }
SKUProperty - The Sku property
type Scope ¶
type Scope string
const ( ScopeSingle Scope = "Single" )
func PossibleScopeValues ¶
func PossibleScopeValues() []Scope
PossibleScopeValues returns the possible values for the Scope const type.
type Status ¶
type Status string
Status - The status of the lot.
func PossibleStatusValues ¶
func PossibleStatusValues() []Status
PossibleStatusValues returns the possible values for the Status const type.
type Tag ¶
type Tag struct { // Tag key. Key *string `json:"key,omitempty"` // Tag values. Value []*string `json:"value,omitempty"` }
Tag - The tag resource.
func (Tag) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Tag.
type TagProperties ¶
type TagProperties struct { // A list of Tag. Tags []*Tag `json:"tags,omitempty"` // READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; The link (url) to the previous page of results. PreviousLink *string `json:"previousLink,omitempty" azure:"ro"` }
TagProperties - The properties of the tag.
func (TagProperties) MarshalJSON ¶
func (t TagProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TagProperties.
type TagsClient ¶
type TagsClient struct {
// contains filtered or unexported fields
}
TagsClient contains the methods for the Tags group. Don't use this type directly, use NewTagsClient() instead.
func NewTagsClient ¶
func NewTagsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *TagsClient
NewTagsClient creates a new instance of TagsClient with the specified values.
func (*TagsClient) Get ¶
func (client *TagsClient) Get(ctx context.Context, scope string, options *TagsGetOptions) (TagsGetResponse, error)
Get - Get all available tag keys for the defined scope If the operation fails it returns the *ErrorResponse error type.
type TagsGetOptions ¶
type TagsGetOptions struct { }
TagsGetOptions contains the optional parameters for the Tags.Get method.
type TagsGetResponse ¶
type TagsGetResponse struct { TagsGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
TagsGetResponse contains the response from method Tags.Get.
type TagsGetResult ¶
type TagsGetResult struct {
TagsResult
}
TagsGetResult contains the result from method Tags.Get.
type TagsResult ¶
type TagsResult struct { ProxyResource // The properties of the tag. Properties *TagProperties `json:"properties,omitempty"` }
TagsResult - A resource listing all tags.
type Term ¶
type Term string
func PossibleTermValues ¶
func PossibleTermValues() []Term
PossibleTermValues returns the possible values for the Term const type.
type ThresholdType ¶
type ThresholdType string
ThresholdType - The type of threshold
const (
ThresholdTypeActual ThresholdType = "Actual"
)
func PossibleThresholdTypeValues ¶
func PossibleThresholdTypeValues() []ThresholdType
PossibleThresholdTypeValues returns the possible values for the ThresholdType const type.
func (ThresholdType) ToPtr ¶
func (c ThresholdType) ToPtr() *ThresholdType
ToPtr returns a *ThresholdType pointing to the current value.
type TimeGrainType ¶
type TimeGrainType string
TimeGrainType - The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers
const ( TimeGrainTypeAnnually TimeGrainType = "Annually" TimeGrainTypeBillingAnnual TimeGrainType = "BillingAnnual" TimeGrainTypeBillingMonth TimeGrainType = "BillingMonth" TimeGrainTypeBillingQuarter TimeGrainType = "BillingQuarter" TimeGrainTypeMonthly TimeGrainType = "Monthly" TimeGrainTypeQuarterly TimeGrainType = "Quarterly" )
func PossibleTimeGrainTypeValues ¶
func PossibleTimeGrainTypeValues() []TimeGrainType
PossibleTimeGrainTypeValues returns the possible values for the TimeGrainType const type.
func (TimeGrainType) ToPtr ¶
func (c TimeGrainType) ToPtr() *TimeGrainType
ToPtr returns a *TimeGrainType pointing to the current value.
type UsageDetail ¶
type UsageDetail struct { Resource // REQUIRED; Specifies the kind of usage details. Kind *UsageDetailsKind `json:"kind,omitempty"` }
UsageDetail - An usage detail resource.
func (*UsageDetail) GetUsageDetail ¶
func (u *UsageDetail) GetUsageDetail() *UsageDetail
GetUsageDetail implements the UsageDetailClassification interface for type UsageDetail.
func (*UsageDetail) UnmarshalJSON ¶
func (u *UsageDetail) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UsageDetail.
type UsageDetailClassification ¶
type UsageDetailClassification interface { // GetUsageDetail returns the UsageDetail content of the underlying type. GetUsageDetail() *UsageDetail }
UsageDetailClassification provides polymorphic access to related types. Call the interface's GetUsageDetail() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *LegacyUsageDetail, *ModernUsageDetail, *UsageDetail
type UsageDetailsClient ¶
type UsageDetailsClient struct {
// contains filtered or unexported fields
}
UsageDetailsClient contains the methods for the UsageDetails group. Don't use this type directly, use NewUsageDetailsClient() instead.
func NewUsageDetailsClient ¶
func NewUsageDetailsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *UsageDetailsClient
NewUsageDetailsClient creates a new instance of UsageDetailsClient with the specified values.
func (*UsageDetailsClient) List ¶
func (client *UsageDetailsClient) List(scope string, options *UsageDetailsListOptions) *UsageDetailsListPager
List - Lists the usage details for the defined scope. Usage details are available via this API only for May 1, 2014 or later. If the operation fails it returns the *ErrorResponse error type.
type UsageDetailsKind ¶
type UsageDetailsKind string
UsageDetailsKind - Specifies the kind of usage details.
const ( UsageDetailsKindLegacy UsageDetailsKind = "legacy" UsageDetailsKindModern UsageDetailsKind = "modern" )
func PossibleUsageDetailsKindValues ¶
func PossibleUsageDetailsKindValues() []UsageDetailsKind
PossibleUsageDetailsKindValues returns the possible values for the UsageDetailsKind const type.
func (UsageDetailsKind) ToPtr ¶
func (c UsageDetailsKind) ToPtr() *UsageDetailsKind
ToPtr returns a *UsageDetailsKind pointing to the current value.
type UsageDetailsListOptions ¶
type UsageDetailsListOptions struct { // May be used to expand the properties/additionalInfo or properties/meterDetails within a list of usage details. By default, these fields are not included // when listing usage details. Expand *string // May be used to filter usageDetails by properties/resourceGroup, properties/resourceName, properties/resourceId, properties/chargeType, properties/reservationId, // properties/publisherType or tags. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag // filter is a key value pair string where key and value is separated by a colon (:). PublisherType Filter accepts two values azure and marketplace and // it is currently supported for Web Direct Offer Type Filter *string // Allows to select different type of cost/usage records. Metric *Metrictype // Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink // element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. Skiptoken *string // May be used to limit the number of results to the most recent N usageDetails. Top *int32 }
UsageDetailsListOptions contains the optional parameters for the UsageDetails.List method.
type UsageDetailsListPager ¶
type UsageDetailsListPager struct {
// contains filtered or unexported fields
}
UsageDetailsListPager provides operations for iterating over paged responses.
func (*UsageDetailsListPager) Err ¶
func (p *UsageDetailsListPager) Err() error
Err returns the last error encountered while paging.
func (*UsageDetailsListPager) NextPage ¶
func (p *UsageDetailsListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*UsageDetailsListPager) PageResponse ¶
func (p *UsageDetailsListPager) PageResponse() UsageDetailsListResponse
PageResponse returns the current UsageDetailsListResponse page.
type UsageDetailsListResponse ¶
type UsageDetailsListResponse struct { UsageDetailsListResultEnvelope // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
UsageDetailsListResponse contains the response from method UsageDetails.List.
type UsageDetailsListResult ¶
type UsageDetailsListResult struct { // READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; The list of usage details. Value []UsageDetailClassification `json:"value,omitempty" azure:"ro"` }
UsageDetailsListResult - Result of listing usage details. It contains a list of available usage details in reverse chronological order by billing period.
func (UsageDetailsListResult) MarshalJSON ¶
func (u UsageDetailsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UsageDetailsListResult.
func (*UsageDetailsListResult) UnmarshalJSON ¶
func (u *UsageDetailsListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UsageDetailsListResult.
type UsageDetailsListResultEnvelope ¶
type UsageDetailsListResultEnvelope struct {
UsageDetailsListResult
}
UsageDetailsListResultEnvelope contains the result from method UsageDetails.List.
Source Files
¶
- build.go
- zz_generated_aggregatedcost_client.go
- zz_generated_balances_client.go
- zz_generated_budgets_client.go
- zz_generated_charges_client.go
- zz_generated_constants.go
- zz_generated_credits_client.go
- zz_generated_events_client.go
- zz_generated_lots_client.go
- zz_generated_marketplaces_client.go
- zz_generated_models.go
- zz_generated_operations_client.go
- zz_generated_pagers.go
- zz_generated_polymorphic_helpers.go
- zz_generated_pricesheet_client.go
- zz_generated_reservationrecommendationdetails_client.go
- zz_generated_reservationrecommendations_client.go
- zz_generated_reservationsdetails_client.go
- zz_generated_reservationssummaries_client.go
- zz_generated_reservationtransactions_client.go
- zz_generated_response_types.go
- zz_generated_tags_client.go
- zz_generated_time_rfc3339.go
- zz_generated_usagedetails_client.go