pricesheet20220601

package
v0.20230227.1095030 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2022-06-01/pricesheet20220601 Documentation

The pricesheet20220601 SDK allows for interaction with the Azure Resource Manager Service consumption (API Version 2022-06-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2022-06-01/pricesheet20220601"

Client Initialization

client := pricesheet20220601.NewPriceSheet20220601ClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: PriceSheet20220601Client.PriceSheetsGet

ctx := context.TODO()
id := pricesheet20220601.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

read, err := client.PriceSheetsGet(ctx, id, pricesheet20220601.DefaultPriceSheetsGetOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PriceSheet20220601Client.PriceSheetsGetByBillingPeriod

ctx := context.TODO()
id := pricesheet20220601.NewBillingPeriodID("12345678-1234-9876-4563-123456789012", "billingPeriodValue")

read, err := client.PriceSheetsGetByBillingPeriod(ctx, id, pricesheet20220601.DefaultPriceSheetsGetByBillingPeriodOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateBillingPeriodID

func ValidateBillingPeriodID(input interface{}, key string) (warnings []string, errors []error)

ValidateBillingPeriodID checks that 'input' can be parsed as a Billing Period ID

Types

type BillingPeriodId

type BillingPeriodId struct {
	SubscriptionId    string
	BillingPeriodName string
}

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 MeterDetailsV2

type MeterDetailsV2 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 PriceSheet20220601Client

type PriceSheet20220601Client struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewPriceSheet20220601ClientWithBaseURI

func NewPriceSheet20220601ClientWithBaseURI(endpoint string) PriceSheet20220601Client

func (PriceSheet20220601Client) PriceSheetsGet

PriceSheetsGet ...

func (PriceSheet20220601Client) PriceSheetsGetByBillingPeriod

PriceSheetsGetByBillingPeriod ...

type PriceSheetModelV2

type PriceSheetModelV2 struct {
	Download    *MeterDetailsV2           `json:"download,omitempty"`
	NextLink    *string                   `json:"nextLink,omitempty"`
	Pricesheets *[]PriceSheetPropertiesV2 `json:"pricesheets,omitempty"`
}

type PriceSheetPropertiesV2

type PriceSheetPropertiesV2 struct {
	BillingPeriodId  *string         `json:"billingPeriodId,omitempty"`
	CurrencyCode     *string         `json:"currencyCode,omitempty"`
	IncludedQuantity *float64        `json:"includedQuantity,omitempty"`
	MeterDetails     *MeterDetailsV2 `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 PriceSheetResultV2

type PriceSheetResultV2 struct {
	Etag       *string            `json:"etag,omitempty"`
	Id         *string            `json:"id,omitempty"`
	Name       *string            `json:"name,omitempty"`
	Properties *PriceSheetModelV2 `json:"properties,omitempty"`
	Tags       *map[string]string `json:"tags,omitempty"`
	Type       *string            `json:"type,omitempty"`
}

type PriceSheetsGetByBillingPeriodOperationOptions

type PriceSheetsGetByBillingPeriodOperationOptions struct {
	Expand *string
	Top    *int64
}

func DefaultPriceSheetsGetByBillingPeriodOperationOptions

func DefaultPriceSheetsGetByBillingPeriodOperationOptions() PriceSheetsGetByBillingPeriodOperationOptions

type PriceSheetsGetByBillingPeriodOperationResponse

type PriceSheetsGetByBillingPeriodOperationResponse struct {
	HttpResponse *http.Response
	Model        *PriceSheetResultV2
}

type PriceSheetsGetOperationOptions

type PriceSheetsGetOperationOptions struct {
	Expand *string
	Top    *int64
}

func DefaultPriceSheetsGetOperationOptions

func DefaultPriceSheetsGetOperationOptions() PriceSheetsGetOperationOptions

type PriceSheetsGetOperationResponse

type PriceSheetsGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *PriceSheetResultV2
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL