Documentation ¶
Index ¶
- func PossibleValuesForOperationStatusType() []string
- func ValidateBillingAccountBillingPeriodID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateBillingPeriodID(input interface{}, key string) (warnings []string, errors []error)
- type BillingAccountBillingPeriodId
- func NewBillingAccountBillingPeriodID(billingAccountId string, billingPeriodName string) BillingAccountBillingPeriodId
- func ParseBillingAccountBillingPeriodID(input string) (*BillingAccountBillingPeriodId, error)
- func ParseBillingAccountBillingPeriodIDInsensitively(input string) (*BillingAccountBillingPeriodId, error)
- type BillingPeriodId
- type DownloadByBillingAccountPeriodOperationResponse
- type GetByBillingPeriodOperationOptions
- type GetByBillingPeriodOperationResponse
- type GetOperationOptions
- type GetOperationResponse
- type MeterDetails
- type OperationStatus
- type OperationStatusType
- type PriceSheetClient
- func (c PriceSheetClient) DownloadByBillingAccountPeriod(ctx context.Context, id BillingAccountBillingPeriodId) (result DownloadByBillingAccountPeriodOperationResponse, err error)
- func (c PriceSheetClient) DownloadByBillingAccountPeriodThenPoll(ctx context.Context, id BillingAccountBillingPeriodId) error
- func (c PriceSheetClient) Get(ctx context.Context, id commonids.SubscriptionId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c PriceSheetClient) GetByBillingPeriod(ctx context.Context, id BillingPeriodId, ...) (result GetByBillingPeriodOperationResponse, err error)
- type PriceSheetModel
- type PriceSheetProperties
- type PriceSheetResult
- type PricesheetDownloadProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForOperationStatusType ¶
func PossibleValuesForOperationStatusType() []string
func ValidateBillingAccountBillingPeriodID ¶
func ValidateBillingAccountBillingPeriodID(input interface{}, key string) (warnings []string, errors []error)
ValidateBillingAccountBillingPeriodID checks that 'input' can be parsed as a Billing Account Billing Period ID
func ValidateBillingPeriodID ¶
ValidateBillingPeriodID checks that 'input' can be parsed as a Billing Period ID
Types ¶
type BillingAccountBillingPeriodId ¶
BillingAccountBillingPeriodId is a struct representing the Resource ID for a Billing Account Billing Period
func NewBillingAccountBillingPeriodID ¶
func NewBillingAccountBillingPeriodID(billingAccountId string, billingPeriodName string) BillingAccountBillingPeriodId
NewBillingAccountBillingPeriodID returns a new BillingAccountBillingPeriodId struct
func ParseBillingAccountBillingPeriodID ¶
func ParseBillingAccountBillingPeriodID(input string) (*BillingAccountBillingPeriodId, error)
ParseBillingAccountBillingPeriodID parses 'input' into a BillingAccountBillingPeriodId
func ParseBillingAccountBillingPeriodIDInsensitively ¶
func ParseBillingAccountBillingPeriodIDInsensitively(input string) (*BillingAccountBillingPeriodId, error)
ParseBillingAccountBillingPeriodIDInsensitively parses 'input' case-insensitively into a BillingAccountBillingPeriodId note: this method should only be used for API response data and not user input
func (BillingAccountBillingPeriodId) ID ¶
func (id BillingAccountBillingPeriodId) ID() string
ID returns the formatted Billing Account Billing Period ID
func (BillingAccountBillingPeriodId) Segments ¶
func (id BillingAccountBillingPeriodId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Billing Account Billing Period ID
func (BillingAccountBillingPeriodId) String ¶
func (id BillingAccountBillingPeriodId) String() string
String returns a human-readable description of this Billing Account Billing Period ID
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) 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 OperationStatus ¶
type OperationStatus struct { Properties *PricesheetDownloadProperties `json:"properties,omitempty"` Status *OperationStatusType `json:"status,omitempty"` }
type OperationStatusType ¶
type OperationStatusType string
const ( OperationStatusTypeCompleted OperationStatusType = "Completed" OperationStatusTypeFailed OperationStatusType = "Failed" OperationStatusTypeRunning OperationStatusType = "Running" )
func (*OperationStatusType) UnmarshalJSON ¶
func (s *OperationStatusType) UnmarshalJSON(bytes []byte) error
type PriceSheetClient ¶
type PriceSheetClient struct {
Client *resourcemanager.Client
}
func NewPriceSheetClientWithBaseURI ¶
func NewPriceSheetClientWithBaseURI(api environments.Api) (*PriceSheetClient, error)
func (PriceSheetClient) DownloadByBillingAccountPeriod ¶
func (c PriceSheetClient) DownloadByBillingAccountPeriod(ctx context.Context, id BillingAccountBillingPeriodId) (result DownloadByBillingAccountPeriodOperationResponse, err error)
DownloadByBillingAccountPeriod ...
func (PriceSheetClient) DownloadByBillingAccountPeriodThenPoll ¶
func (c PriceSheetClient) DownloadByBillingAccountPeriodThenPoll(ctx context.Context, id BillingAccountBillingPeriodId) error
DownloadByBillingAccountPeriodThenPoll performs DownloadByBillingAccountPeriod then polls until it's completed
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"` }
type PriceSheetResult ¶
type PricesheetDownloadProperties ¶
type PricesheetDownloadProperties struct { DownloadUrl *string `json:"downloadUrl,omitempty"` ValidTill *string `json:"validTill,omitempty"` }
func (*PricesheetDownloadProperties) GetValidTillAsTime ¶
func (o *PricesheetDownloadProperties) GetValidTillAsTime() (*time.Time, error)
func (*PricesheetDownloadProperties) SetValidTillAsTime ¶
func (o *PricesheetDownloadProperties) SetValidTillAsTime(input time.Time)
Source Files ¶
- client.go
- constants.go
- id_billingaccountbillingperiod.go
- id_billingperiod.go
- method_downloadbybillingaccountperiod.go
- method_get.go
- method_getbybillingperiod.go
- model_meterdetails.go
- model_operationstatus.go
- model_pricesheetdownloadproperties.go
- model_pricesheetmodel.go
- model_pricesheetproperties.go
- model_pricesheetresult.go
- version.go