pricesheets

package
v0.20241209.1115630 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MPL-2.0 Imports: 13 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-08-01/pricesheets Documentation

The pricesheets SDK allows for interaction with Azure Resource Manager costmanagement (API Version 2023-08-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/costmanagement/2023-08-01/pricesheets"

Client Initialization

client := pricesheets.NewPriceSheetsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: PriceSheetsClient.PriceSheetDownload

ctx := context.TODO()
id := pricesheets.NewInvoiceID("billingAccountName", "billingProfileName", "invoiceName")

if err := client.PriceSheetDownloadThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: PriceSheetsClient.PriceSheetDownloadByBillingProfile

ctx := context.TODO()
id := pricesheets.NewBillingProfileID("billingAccountId", "billingProfileId")

if err := client.PriceSheetDownloadByBillingProfileThenPoll(ctx, id); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateBillingProfileID

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

ValidateBillingProfileID checks that 'input' can be parsed as a Billing Profile ID

func ValidateInvoiceID

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

ValidateInvoiceID checks that 'input' can be parsed as a Invoice ID

Types

type BillingProfileId

type BillingProfileId struct {
	BillingAccountId string
	BillingProfileId string
}

BillingProfileId is a struct representing the Resource ID for a Billing Profile

func NewBillingProfileID

func NewBillingProfileID(billingAccountId string, billingProfileId string) BillingProfileId

NewBillingProfileID returns a new BillingProfileId struct

func ParseBillingProfileID

func ParseBillingProfileID(input string) (*BillingProfileId, error)

ParseBillingProfileID parses 'input' into a BillingProfileId

func ParseBillingProfileIDInsensitively

func ParseBillingProfileIDInsensitively(input string) (*BillingProfileId, error)

ParseBillingProfileIDInsensitively parses 'input' case-insensitively into a BillingProfileId note: this method should only be used for API response data and not user input

func (*BillingProfileId) FromParseResult

func (id *BillingProfileId) FromParseResult(input resourceids.ParseResult) error

func (BillingProfileId) ID

func (id BillingProfileId) ID() string

ID returns the formatted Billing Profile ID

func (BillingProfileId) Segments

func (id BillingProfileId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Billing Profile ID

func (BillingProfileId) String

func (id BillingProfileId) String() string

String returns a human-readable description of this Billing Profile ID

type DownloadURL added in v0.20241009.1142232

type DownloadURL struct {
	DownloadURL *string `json:"downloadUrl,omitempty"`
	ExpiryTime  *string `json:"expiryTime,omitempty"`
	ValidTill   *string `json:"validTill,omitempty"`
}

func (*DownloadURL) GetExpiryTimeAsTime added in v0.20241009.1142232

func (o *DownloadURL) GetExpiryTimeAsTime() (*time.Time, error)

func (*DownloadURL) GetValidTillAsTime added in v0.20241009.1142232

func (o *DownloadURL) GetValidTillAsTime() (*time.Time, error)

func (*DownloadURL) SetExpiryTimeAsTime added in v0.20241009.1142232

func (o *DownloadURL) SetExpiryTimeAsTime(input time.Time)

func (*DownloadURL) SetValidTillAsTime added in v0.20241009.1142232

func (o *DownloadURL) SetValidTillAsTime(input time.Time)

type InvoiceId

type InvoiceId struct {
	BillingAccountName string
	BillingProfileName string
	InvoiceName        string
}

InvoiceId is a struct representing the Resource ID for a Invoice

func NewInvoiceID

func NewInvoiceID(billingAccountName string, billingProfileName string, invoiceName string) InvoiceId

NewInvoiceID returns a new InvoiceId struct

func ParseInvoiceID

func ParseInvoiceID(input string) (*InvoiceId, error)

ParseInvoiceID parses 'input' into a InvoiceId

func ParseInvoiceIDInsensitively

func ParseInvoiceIDInsensitively(input string) (*InvoiceId, error)

ParseInvoiceIDInsensitively parses 'input' case-insensitively into a InvoiceId note: this method should only be used for API response data and not user input

func (*InvoiceId) FromParseResult

func (id *InvoiceId) FromParseResult(input resourceids.ParseResult) error

func (InvoiceId) ID

func (id InvoiceId) ID() string

ID returns the formatted Invoice ID

func (InvoiceId) Segments

func (id InvoiceId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Invoice ID

func (InvoiceId) String

func (id InvoiceId) String() string

String returns a human-readable description of this Invoice ID

type PriceSheetDownloadByBillingProfileOperationResponse

type PriceSheetDownloadByBillingProfileOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DownloadURL
}

type PriceSheetDownloadOperationResponse

type PriceSheetDownloadOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DownloadURL
}

type PriceSheetsClient

type PriceSheetsClient struct {
	Client *resourcemanager.Client
}

func NewPriceSheetsClientWithBaseURI

func NewPriceSheetsClientWithBaseURI(sdkApi sdkEnv.Api) (*PriceSheetsClient, error)

func (PriceSheetsClient) PriceSheetDownload

func (c PriceSheetsClient) PriceSheetDownload(ctx context.Context, id InvoiceId) (result PriceSheetDownloadOperationResponse, err error)

PriceSheetDownload ...

func (PriceSheetsClient) PriceSheetDownloadByBillingProfile

func (c PriceSheetsClient) PriceSheetDownloadByBillingProfile(ctx context.Context, id BillingProfileId) (result PriceSheetDownloadByBillingProfileOperationResponse, err error)

PriceSheetDownloadByBillingProfile ...

func (PriceSheetsClient) PriceSheetDownloadByBillingProfileThenPoll

func (c PriceSheetsClient) PriceSheetDownloadByBillingProfileThenPoll(ctx context.Context, id BillingProfileId) error

PriceSheetDownloadByBillingProfileThenPoll performs PriceSheetDownloadByBillingProfile then polls until it's completed

func (PriceSheetsClient) PriceSheetDownloadThenPoll

func (c PriceSheetsClient) PriceSheetDownloadThenPoll(ctx context.Context, id InvoiceId) error

PriceSheetDownloadThenPoll performs PriceSheetDownload then polls until it's completed

Jump to

Keyboard shortcuts

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