Documentation ¶
Index ¶
- func ValidateBillingPeriodID(input interface{}, key string) (warnings []string, errors []error)
- type BillingPeriodId
- type GetByBillingPeriodOperationOptions
- type GetByBillingPeriodOperationResponse
- type GetOperationOptions
- type GetOperationResponse
- type MeterDetails
- type PriceSheetClient
- type PriceSheetModel
- type PriceSheetProperties
- type PriceSheetResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateBillingPeriodID ¶
ValidateBillingPeriodID checks that 'input' can be parsed as a Billing Period ID
Types ¶
type BillingPeriodId ¶
BillingPeriodId is a struct representing the Resource ID for a Billing Period
func NewBillingPeriodID ¶
func NewBillingPeriodID(subscriptionId string, billingPeriodName string) BillingPeriodId
NewBillingPeriodID returns a new BillingPeriodId struct
func ParseBillingPeriodID ¶
func ParseBillingPeriodID(input string) (*BillingPeriodId, error)
ParseBillingPeriodID parses 'input' into a BillingPeriodId
func ParseBillingPeriodIDInsensitively ¶
func ParseBillingPeriodIDInsensitively(input string) (*BillingPeriodId, error)
ParseBillingPeriodIDInsensitively parses 'input' case-insensitively into a BillingPeriodId note: this method should only be used for API response data and not user input
func (*BillingPeriodId) FromParseResult ¶
func (id *BillingPeriodId) FromParseResult(input resourceids.ParseResult) error
func (BillingPeriodId) ID ¶
func (id BillingPeriodId) ID() string
ID returns the formatted Billing Period ID
func (BillingPeriodId) Segments ¶
func (id BillingPeriodId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Billing Period ID
func (BillingPeriodId) String ¶
func (id BillingPeriodId) String() string
String returns a human-readable description of this Billing Period ID
type GetByBillingPeriodOperationOptions ¶
func DefaultGetByBillingPeriodOperationOptions ¶
func DefaultGetByBillingPeriodOperationOptions() GetByBillingPeriodOperationOptions
func (GetByBillingPeriodOperationOptions) ToHeaders ¶
func (o GetByBillingPeriodOperationOptions) ToHeaders() *client.Headers
func (GetByBillingPeriodOperationOptions) ToOData ¶
func (o GetByBillingPeriodOperationOptions) ToOData() *odata.Query
func (GetByBillingPeriodOperationOptions) ToQuery ¶
func (o GetByBillingPeriodOperationOptions) ToQuery() *client.QueryParams
type GetByBillingPeriodOperationResponse ¶
type GetByBillingPeriodOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PriceSheetResult }
type GetOperationOptions ¶
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PriceSheetResult }
type MeterDetails ¶
type MeterDetails struct { MeterCategory *string `json:"meterCategory,omitempty"` MeterLocation *string `json:"meterLocation,omitempty"` MeterName *string `json:"meterName,omitempty"` MeterSubCategory *string `json:"meterSubCategory,omitempty"` PretaxStandardRate *float64 `json:"pretaxStandardRate,omitempty"` ServiceName *string `json:"serviceName,omitempty"` ServiceTier *string `json:"serviceTier,omitempty"` TotalIncludedQuantity *float64 `json:"totalIncludedQuantity,omitempty"` Unit *string `json:"unit,omitempty"` }
type PriceSheetClient ¶
type PriceSheetClient struct {
Client *resourcemanager.Client
}
func NewPriceSheetClientWithBaseURI ¶
func NewPriceSheetClientWithBaseURI(sdkApi sdkEnv.Api) (*PriceSheetClient, error)
func (PriceSheetClient) Get ¶
func (c PriceSheetClient) Get(ctx context.Context, id commonids.SubscriptionId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (PriceSheetClient) GetByBillingPeriod ¶
func (c PriceSheetClient) GetByBillingPeriod(ctx context.Context, id BillingPeriodId, options GetByBillingPeriodOperationOptions) (result GetByBillingPeriodOperationResponse, err error)
GetByBillingPeriod ...
type PriceSheetModel ¶
type PriceSheetModel struct { Download *MeterDetails `json:"download,omitempty"` NextLink *string `json:"nextLink,omitempty"` Pricesheets *[]PriceSheetProperties `json:"pricesheets,omitempty"` }
type PriceSheetProperties ¶
type PriceSheetProperties struct { BillingPeriodId *string `json:"billingPeriodId,omitempty"` CurrencyCode *string `json:"currencyCode,omitempty"` IncludedQuantity *float64 `json:"includedQuantity,omitempty"` MeterDetails *MeterDetails `json:"meterDetails,omitempty"` MeterId *string `json:"meterId,omitempty"` OfferId *string `json:"offerId,omitempty"` PartNumber *string `json:"partNumber,omitempty"` UnitOfMeasure *string `json:"unitOfMeasure,omitempty"` UnitPrice *float64 `json:"unitPrice,omitempty"` }