usagedetails

package
v0.20230619.1075353 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MPL-2.0 Imports: 13 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-03-01/usagedetails Documentation

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

Client Initialization

client := usagedetails.NewUsageDetailsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: UsageDetailsClient.GenerateDetailedCostReportCreateOperation

ctx := context.TODO()
id := usagedetails.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

payload := usagedetails.GenerateDetailedCostReportDefinition{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForGenerateDetailedCostReportMetricType

func PossibleValuesForGenerateDetailedCostReportMetricType() []string

Types

type DownloadUrl

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

func (*DownloadUrl) GetExpiryTimeAsTime

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

func (*DownloadUrl) GetValidTillAsTime

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

func (*DownloadUrl) SetExpiryTimeAsTime

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

func (*DownloadUrl) SetValidTillAsTime

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

type GenerateDetailedCostReportCreateOperationOperationResponse

type GenerateDetailedCostReportCreateOperationOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type GenerateDetailedCostReportDefinition

type GenerateDetailedCostReportDefinition struct {
	BillingPeriod *string                               `json:"billingPeriod,omitempty"`
	CustomerId    *string                               `json:"customerId,omitempty"`
	InvoiceId     *string                               `json:"invoiceId,omitempty"`
	Metric        *GenerateDetailedCostReportMetricType `json:"metric,omitempty"`
	TimePeriod    *GenerateDetailedCostReportTimePeriod `json:"timePeriod,omitempty"`
}

type GenerateDetailedCostReportMetricType

type GenerateDetailedCostReportMetricType string
const (
	GenerateDetailedCostReportMetricTypeActualCost    GenerateDetailedCostReportMetricType = "ActualCost"
	GenerateDetailedCostReportMetricTypeAmortizedCost GenerateDetailedCostReportMetricType = "AmortizedCost"
)

func (*GenerateDetailedCostReportMetricType) UnmarshalJSON

func (s *GenerateDetailedCostReportMetricType) UnmarshalJSON(bytes []byte) error

type GenerateDetailedCostReportOperationResult

type GenerateDetailedCostReportOperationResult struct {
	Id         *string      `json:"id,omitempty"`
	Name       *string      `json:"name,omitempty"`
	Properties *DownloadUrl `json:"properties,omitempty"`
	Type       *string      `json:"type,omitempty"`
}

type GenerateDetailedCostReportTimePeriod

type GenerateDetailedCostReportTimePeriod struct {
	End   string `json:"end"`
	Start string `json:"start"`
}

type UsageDetailsClient

type UsageDetailsClient struct {
	Client *resourcemanager.Client
}

func NewUsageDetailsClientWithBaseURI

func NewUsageDetailsClientWithBaseURI(api environments.Api) (*UsageDetailsClient, error)

func (UsageDetailsClient) GenerateDetailedCostReportCreateOperation

GenerateDetailedCostReportCreateOperation ...

func (UsageDetailsClient) GenerateDetailedCostReportCreateOperationThenPoll

func (c UsageDetailsClient) GenerateDetailedCostReportCreateOperationThenPoll(ctx context.Context, id commonids.ScopeId, input GenerateDetailedCostReportDefinition) error

GenerateDetailedCostReportCreateOperationThenPoll performs GenerateDetailedCostReportCreateOperation then polls until it's completed

Jump to

Keyboard shortcuts

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