README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/forecasts
Documentation
The forecasts
SDK allows for interaction with the Azure Resource Manager Service consumption
(API Version 2019-10-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/forecasts"
Client Initialization
client := forecasts.NewForecastsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ForecastsClient.List
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
read, err := client.List(ctx, id, forecasts.DefaultListOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- func PossibleValuesForBound() []string
- func PossibleValuesForChargeType() []string
- func PossibleValuesForGrain() []string
- type Bound
- type ChargeType
- type Forecast
- type ForecastProperties
- type ForecastPropertiesConfidenceLevelsInlined
- type ForecastsClient
- type ForecastsListResult
- type Grain
- type ListOperationOptions
- type ListOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForBound ¶
func PossibleValuesForBound() []string
func PossibleValuesForChargeType ¶
func PossibleValuesForChargeType() []string
func PossibleValuesForGrain ¶
func PossibleValuesForGrain() []string
Types ¶
type ChargeType ¶
type ChargeType string
const ( ChargeTypeActual ChargeType = "Actual" ChargeTypeForecast ChargeType = "Forecast" )
func (*ChargeType) UnmarshalJSON ¶
func (s *ChargeType) UnmarshalJSON(bytes []byte) error
type ForecastProperties ¶
type ForecastProperties struct { Charge *float64 `json:"charge,omitempty"` ChargeType *ChargeType `json:"chargeType,omitempty"` ConfidenceLevels *[]ForecastPropertiesConfidenceLevelsInlined `json:"confidenceLevels,omitempty"` Currency *string `json:"currency,omitempty"` Grain *Grain `json:"grain,omitempty"` UsageDate *string `json:"usageDate,omitempty"` }
type ForecastsClient ¶
type ForecastsClient struct {
Client *resourcemanager.Client
}
func NewForecastsClientWithBaseURI ¶
func NewForecastsClientWithBaseURI(sdkApi sdkEnv.Api) (*ForecastsClient, error)
func (ForecastsClient) List ¶
func (c ForecastsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
type ForecastsListResult ¶
type ForecastsListResult struct {
Value *[]Forecast `json:"value,omitempty"`
}
type ListOperationOptions ¶
type ListOperationOptions struct {
Filter *string
}
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ForecastsListResult }
Click to show internal directories.
Click to hide internal directories.