costmanagement

package
v40.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package costmanagement implements the Azure ARM Costmanagement service API version 2018-08-01-preview.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Costmanagement
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type Alert

type Alert struct {
	autorest.Response `json:"-"`
	// ID - READ-ONLY; Alert id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Alert name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Alert type
	Type *string `json:"type,omitempty"`
	// AlertProperties - Alert properties
	*AlertProperties `json:"properties,omitempty"`
}

Alert the Alert model definition

func (Alert) MarshalJSON

func (a Alert) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Alert.

func (*Alert) UnmarshalJSON

func (a *Alert) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Alert struct.

type AlertCategory

type AlertCategory string

AlertCategory enumerates the values for alert category.

const (
	// Billing ...
	Billing AlertCategory = "Billing"
	// Cost ...
	Cost AlertCategory = "Cost"
	// Usage ...
	Usage AlertCategory = "Usage"
)

func PossibleAlertCategoryValues

func PossibleAlertCategoryValues() []AlertCategory

PossibleAlertCategoryValues returns an array of possible values for the AlertCategory const type.

type AlertCriteria

type AlertCriteria string

AlertCriteria enumerates the values for alert criteria.

const (
	// CostThresholdExceeded ...
	CostThresholdExceeded AlertCriteria = "CostThresholdExceeded"
	// CreditThresholdReached ...
	CreditThresholdReached AlertCriteria = "CreditThresholdReached"
	// UsageThresholdExceeded ...
	UsageThresholdExceeded AlertCriteria = "UsageThresholdExceeded"
)

func PossibleAlertCriteriaValues

func PossibleAlertCriteriaValues() []AlertCriteria

PossibleAlertCriteriaValues returns an array of possible values for the AlertCriteria const type.

type AlertDefinition

type AlertDefinition struct {
	// Category - READ-ONLY; Category of the alert. Possible values include: 'Cost', 'Usage', 'Billing'
	Category AlertCategory `json:"category,omitempty"`
	// Type - READ-ONLY; The type of cost-entity the alert is defined on. Possible values include: 'Budget', 'Invoice', 'Credit'
	Type AlertType `json:"type,omitempty"`
	// Criteria - READ-ONLY; Criteria (condition) of the alert. Possible values include: 'CostThresholdExceeded', 'UsageThresholdExceeded', 'CreditThresholdReached'
	Criteria AlertCriteria `json:"criteria,omitempty"`
}

AlertDefinition the definition (rule) of an Alert

type AlertListResult

type AlertListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of alerts.
	Value *[]Alert `json:"value,omitempty"`
	// NextLink - READ-ONLY; The URI to fetch the next page of Alerts.
	NextLink *string `json:"nextLink,omitempty"`
}

AlertListResult result of listing alerts. It contains a list of available alerts in the scope provided.

func (AlertListResult) IsEmpty

func (alr AlertListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AlertListResultIterator

type AlertListResultIterator struct {
	// contains filtered or unexported fields
}

AlertListResultIterator provides access to a complete listing of Alert values.

func NewAlertListResultIterator

func NewAlertListResultIterator(page AlertListResultPage) AlertListResultIterator

Creates a new instance of the AlertListResultIterator type.

func (*AlertListResultIterator) Next

func (iter *AlertListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AlertListResultIterator) NextWithContext

func (iter *AlertListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AlertListResultIterator) NotDone

func (iter AlertListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (AlertListResultIterator) Response

func (iter AlertListResultIterator) Response() AlertListResult

Response returns the raw server response from the last page request.

func (AlertListResultIterator) Value

func (iter AlertListResultIterator) Value() Alert

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AlertListResultPage

type AlertListResultPage struct {
	// contains filtered or unexported fields
}

AlertListResultPage contains a page of Alert values.

func NewAlertListResultPage

func NewAlertListResultPage(getNextPage func(context.Context, AlertListResult) (AlertListResult, error)) AlertListResultPage

Creates a new instance of the AlertListResultPage type.

func (*AlertListResultPage) Next

func (page *AlertListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AlertListResultPage) NextWithContext

func (page *AlertListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AlertListResultPage) NotDone

func (page AlertListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AlertListResultPage) Response

func (page AlertListResultPage) Response() AlertListResult

Response returns the raw server response from the last page request.

func (AlertListResultPage) Values

func (page AlertListResultPage) Values() []Alert

Values returns the slice of values for the current page or nil if there are no values.

type AlertProperties

type AlertProperties struct {
	// CostEntityID - READ-ONLY; The id of the creating cost-entity (budget, invoice, credit).
	CostEntityID *string `json:"costEntityId,omitempty"`
	// Definition - READ-ONLY; The definition (rule) of an Alert
	Definition *AlertDefinition `json:"definition,omitempty"`
	// Description - READ-ONLY; Description of an alert.
	Description *string `json:"description,omitempty"`
	// Scope - READ-ONLY; The scope of an alert.
	Scope *string `json:"scope,omitempty"`
	// Source - READ-ONLY; The source of an Alert. Possible values include: 'Preset', 'User'
	Source AlertSource `json:"source,omitempty"`
	// Details - READ-ONLY; Specific details of an alert - key-value dictionary.
	Details map[string]*string `json:"details"`
	// CreationTime - READ-ONLY; The time when the alert was created.
	CreationTime *date.Time `json:"creationTime,omitempty"`
	// CloseTime - READ-ONLY; The time when the alert was closed (resolved / overridden).
	CloseTime *date.Time `json:"closeTime,omitempty"`
	// Status - The current status of the alert. Possible values include: 'Active', 'Overridden', 'Resolved', 'Dismissed'
	Status AlertStatus `json:"status,omitempty"`
	// StatusModificationTime - READ-ONLY; The current status when alert status was modified.
	StatusModificationTime *date.Time `json:"statusModificationTime,omitempty"`
	// ModificationTime - READ-ONLY; The current status when alert was modified.
	ModificationTime *date.Time `json:"modificationTime,omitempty"`
	// ModificationUsername - READ-ONLY; The username who modified the alert.
	ModificationUsername *string `json:"modificationUsername,omitempty"`
}

AlertProperties the properties of an Alert.

func (AlertProperties) MarshalJSON

func (ap AlertProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AlertProperties.

type AlertSource

type AlertSource string

AlertSource enumerates the values for alert source.

const (
	// Preset ...
	Preset AlertSource = "Preset"
	// User ...
	User AlertSource = "User"
)

func PossibleAlertSourceValues

func PossibleAlertSourceValues() []AlertSource

PossibleAlertSourceValues returns an array of possible values for the AlertSource const type.

type AlertStatus

type AlertStatus string

AlertStatus enumerates the values for alert status.

const (
	// Active ...
	Active AlertStatus = "Active"
	// Dismissed ...
	Dismissed AlertStatus = "Dismissed"
	// Overridden ...
	Overridden AlertStatus = "Overridden"
	// Resolved ...
	Resolved AlertStatus = "Resolved"
)

func PossibleAlertStatusValues

func PossibleAlertStatusValues() []AlertStatus

PossibleAlertStatusValues returns an array of possible values for the AlertStatus const type.

type AlertType

type AlertType string

AlertType enumerates the values for alert type.

const (
	// Budget ...
	Budget AlertType = "Budget"
	// Credit ...
	Credit AlertType = "Credit"
	// Invoice ...
	Invoice AlertType = "Invoice"
)

func PossibleAlertTypeValues

func PossibleAlertTypeValues() []AlertType

PossibleAlertTypeValues returns an array of possible values for the AlertType const type.

type AlertsClient

type AlertsClient struct {
	BaseClient
}

AlertsClient is the client for the Alerts methods of the Costmanagement service.

func NewAlertsClient

func NewAlertsClient(subscriptionID string) AlertsClient

NewAlertsClient creates an instance of the AlertsClient client.

func NewAlertsClientWithBaseURI

func NewAlertsClientWithBaseURI(baseURI string, subscriptionID string) AlertsClient

NewAlertsClientWithBaseURI creates an instance of the AlertsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AlertsClient) GetAlertByManagementGroups

func (client AlertsClient) GetAlertByManagementGroups(ctx context.Context, managementGroupID string, alertID string) (result Alert, err error)

GetAlertByManagementGroups gets an alert for Management Groups by alert ID. Parameters: managementGroupID - management Group ID alertID - alert ID.

func (AlertsClient) GetAlertByManagementGroupsPreparer

func (client AlertsClient) GetAlertByManagementGroupsPreparer(ctx context.Context, managementGroupID string, alertID string) (*http.Request, error)

GetAlertByManagementGroupsPreparer prepares the GetAlertByManagementGroups request.

func (AlertsClient) GetAlertByManagementGroupsResponder

func (client AlertsClient) GetAlertByManagementGroupsResponder(resp *http.Response) (result Alert, err error)

GetAlertByManagementGroupsResponder handles the response to the GetAlertByManagementGroups request. The method always closes the http.Response Body.

func (AlertsClient) GetAlertByManagementGroupsSender

func (client AlertsClient) GetAlertByManagementGroupsSender(req *http.Request) (*http.Response, error)

GetAlertByManagementGroupsSender sends the GetAlertByManagementGroups request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) GetByAccount

func (client AlertsClient) GetByAccount(ctx context.Context, billingAccountID string, enrollmentAccountID string, alertID string) (result Alert, err error)

GetByAccount gets the alert for an account by alert ID. Parameters: billingAccountID - billingAccount ID enrollmentAccountID - enrollment Account Id alertID - alert ID.

func (AlertsClient) GetByAccountPreparer

func (client AlertsClient) GetByAccountPreparer(ctx context.Context, billingAccountID string, enrollmentAccountID string, alertID string) (*http.Request, error)

GetByAccountPreparer prepares the GetByAccount request.

func (AlertsClient) GetByAccountResponder

func (client AlertsClient) GetByAccountResponder(resp *http.Response) (result Alert, err error)

GetByAccountResponder handles the response to the GetByAccount request. The method always closes the http.Response Body.

func (AlertsClient) GetByAccountSender

func (client AlertsClient) GetByAccountSender(req *http.Request) (*http.Response, error)

GetByAccountSender sends the GetByAccount request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) GetByDepartment

func (client AlertsClient) GetByDepartment(ctx context.Context, billingAccountID string, departmentID string, alertID string) (result Alert, err error)

GetByDepartment gets the alert for a department by alert ID. Parameters: billingAccountID - billingAccount ID departmentID - department ID alertID - alert ID.

func (AlertsClient) GetByDepartmentPreparer

func (client AlertsClient) GetByDepartmentPreparer(ctx context.Context, billingAccountID string, departmentID string, alertID string) (*http.Request, error)

GetByDepartmentPreparer prepares the GetByDepartment request.

func (AlertsClient) GetByDepartmentResponder

func (client AlertsClient) GetByDepartmentResponder(resp *http.Response) (result Alert, err error)

GetByDepartmentResponder handles the response to the GetByDepartment request. The method always closes the http.Response Body.

func (AlertsClient) GetByDepartmentSender

func (client AlertsClient) GetByDepartmentSender(req *http.Request) (*http.Response, error)

GetByDepartmentSender sends the GetByDepartment request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) GetByEnrollment

func (client AlertsClient) GetByEnrollment(ctx context.Context, billingAccountID string, alertID string) (result Alert, err error)

GetByEnrollment gets the alert for an enrollment by alert ID. Parameters: billingAccountID - billingAccount ID alertID - alert ID.

func (AlertsClient) GetByEnrollmentPreparer

func (client AlertsClient) GetByEnrollmentPreparer(ctx context.Context, billingAccountID string, alertID string) (*http.Request, error)

GetByEnrollmentPreparer prepares the GetByEnrollment request.

func (AlertsClient) GetByEnrollmentResponder

func (client AlertsClient) GetByEnrollmentResponder(resp *http.Response) (result Alert, err error)

GetByEnrollmentResponder handles the response to the GetByEnrollment request. The method always closes the http.Response Body.

func (AlertsClient) GetByEnrollmentSender

func (client AlertsClient) GetByEnrollmentSender(req *http.Request) (*http.Response, error)

GetByEnrollmentSender sends the GetByEnrollment request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) GetByResourceGroupName

func (client AlertsClient) GetByResourceGroupName(ctx context.Context, resourceGroupName string, alertID string) (result Alert, err error)

GetByResourceGroupName gets the alert for a resource group under a subscription by alert ID. Parameters: resourceGroupName - azure Resource Group Name. alertID - alert ID.

func (AlertsClient) GetByResourceGroupNamePreparer

func (client AlertsClient) GetByResourceGroupNamePreparer(ctx context.Context, resourceGroupName string, alertID string) (*http.Request, error)

GetByResourceGroupNamePreparer prepares the GetByResourceGroupName request.

func (AlertsClient) GetByResourceGroupNameResponder

func (client AlertsClient) GetByResourceGroupNameResponder(resp *http.Response) (result Alert, err error)

GetByResourceGroupNameResponder handles the response to the GetByResourceGroupName request. The method always closes the http.Response Body.

func (AlertsClient) GetByResourceGroupNameSender

func (client AlertsClient) GetByResourceGroupNameSender(req *http.Request) (*http.Response, error)

GetByResourceGroupNameSender sends the GetByResourceGroupName request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) GetBySubscription

func (client AlertsClient) GetBySubscription(ctx context.Context, alertID string) (result Alert, err error)

GetBySubscription gets the alert for a subscription by alert ID. Parameters: alertID - alert ID.

func (AlertsClient) GetBySubscriptionPreparer

func (client AlertsClient) GetBySubscriptionPreparer(ctx context.Context, alertID string) (*http.Request, error)

GetBySubscriptionPreparer prepares the GetBySubscription request.

func (AlertsClient) GetBySubscriptionResponder

func (client AlertsClient) GetBySubscriptionResponder(resp *http.Response) (result Alert, err error)

GetBySubscriptionResponder handles the response to the GetBySubscription request. The method always closes the http.Response Body.

func (AlertsClient) GetBySubscriptionSender

func (client AlertsClient) GetBySubscriptionSender(req *http.Request) (*http.Response, error)

GetBySubscriptionSender sends the GetBySubscription request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) List

func (client AlertsClient) List(ctx context.Context, filter string, skiptoken string, top *int32) (result AlertListResultPage, err error)

List list all alerts for a subscription. Parameters: filter - may be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'. skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. top - may be used to limit the number of results to the most recent N alerts.

func (AlertsClient) ListByAccount

func (client AlertsClient) ListByAccount(ctx context.Context, billingAccountID string, enrollmentAccountID string, filter string, skiptoken string, top *int32) (result AlertListResultPage, err error)

ListByAccount list all alerts for an account. Parameters: billingAccountID - billingAccount ID enrollmentAccountID - enrollment Account Id filter - may be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'. skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. top - may be used to limit the number of results to the most recent N alerts.

func (AlertsClient) ListByAccountComplete

func (client AlertsClient) ListByAccountComplete(ctx context.Context, billingAccountID string, enrollmentAccountID string, filter string, skiptoken string, top *int32) (result AlertListResultIterator, err error)

ListByAccountComplete enumerates all values, automatically crossing page boundaries as required.

func (AlertsClient) ListByAccountPreparer

func (client AlertsClient) ListByAccountPreparer(ctx context.Context, billingAccountID string, enrollmentAccountID string, filter string, skiptoken string, top *int32) (*http.Request, error)

ListByAccountPreparer prepares the ListByAccount request.

func (AlertsClient) ListByAccountResponder

func (client AlertsClient) ListByAccountResponder(resp *http.Response) (result AlertListResult, err error)

ListByAccountResponder handles the response to the ListByAccount request. The method always closes the http.Response Body.

func (AlertsClient) ListByAccountSender

func (client AlertsClient) ListByAccountSender(req *http.Request) (*http.Response, error)

ListByAccountSender sends the ListByAccount request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) ListByDepartment

func (client AlertsClient) ListByDepartment(ctx context.Context, billingAccountID string, departmentID string, filter string, skiptoken string, top *int32) (result AlertListResultPage, err error)

ListByDepartment list all alerts for a department. Parameters: billingAccountID - billingAccount ID departmentID - department ID filter - may be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'. skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. top - may be used to limit the number of results to the most recent N alerts.

func (AlertsClient) ListByDepartmentComplete

func (client AlertsClient) ListByDepartmentComplete(ctx context.Context, billingAccountID string, departmentID string, filter string, skiptoken string, top *int32) (result AlertListResultIterator, err error)

ListByDepartmentComplete enumerates all values, automatically crossing page boundaries as required.

func (AlertsClient) ListByDepartmentPreparer

func (client AlertsClient) ListByDepartmentPreparer(ctx context.Context, billingAccountID string, departmentID string, filter string, skiptoken string, top *int32) (*http.Request, error)

ListByDepartmentPreparer prepares the ListByDepartment request.

func (AlertsClient) ListByDepartmentResponder

func (client AlertsClient) ListByDepartmentResponder(resp *http.Response) (result AlertListResult, err error)

ListByDepartmentResponder handles the response to the ListByDepartment request. The method always closes the http.Response Body.

func (AlertsClient) ListByDepartmentSender

func (client AlertsClient) ListByDepartmentSender(req *http.Request) (*http.Response, error)

ListByDepartmentSender sends the ListByDepartment request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) ListByEnrollment

func (client AlertsClient) ListByEnrollment(ctx context.Context, billingAccountID string, filter string, skiptoken string, top *int32) (result AlertListResultPage, err error)

ListByEnrollment list all alerts for an enrollment. Parameters: billingAccountID - billingAccount ID filter - may be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'. skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. top - may be used to limit the number of results to the most recent N alerts.

func (AlertsClient) ListByEnrollmentComplete

func (client AlertsClient) ListByEnrollmentComplete(ctx context.Context, billingAccountID string, filter string, skiptoken string, top *int32) (result AlertListResultIterator, err error)

ListByEnrollmentComplete enumerates all values, automatically crossing page boundaries as required.

func (AlertsClient) ListByEnrollmentPreparer

func (client AlertsClient) ListByEnrollmentPreparer(ctx context.Context, billingAccountID string, filter string, skiptoken string, top *int32) (*http.Request, error)

ListByEnrollmentPreparer prepares the ListByEnrollment request.

func (AlertsClient) ListByEnrollmentResponder

func (client AlertsClient) ListByEnrollmentResponder(resp *http.Response) (result AlertListResult, err error)

ListByEnrollmentResponder handles the response to the ListByEnrollment request. The method always closes the http.Response Body.

func (AlertsClient) ListByEnrollmentSender

func (client AlertsClient) ListByEnrollmentSender(req *http.Request) (*http.Response, error)

ListByEnrollmentSender sends the ListByEnrollment request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) ListByManagementGroups

func (client AlertsClient) ListByManagementGroups(ctx context.Context, managementGroupID string, filter string, skiptoken string, top *int32) (result AlertListResultPage, err error)

ListByManagementGroups list all alerts for Management Groups. Parameters: managementGroupID - management Group ID filter - may be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'. skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. top - may be used to limit the number of results to the most recent N alerts.

func (AlertsClient) ListByManagementGroupsComplete

func (client AlertsClient) ListByManagementGroupsComplete(ctx context.Context, managementGroupID string, filter string, skiptoken string, top *int32) (result AlertListResultIterator, err error)

ListByManagementGroupsComplete enumerates all values, automatically crossing page boundaries as required.

func (AlertsClient) ListByManagementGroupsPreparer

func (client AlertsClient) ListByManagementGroupsPreparer(ctx context.Context, managementGroupID string, filter string, skiptoken string, top *int32) (*http.Request, error)

ListByManagementGroupsPreparer prepares the ListByManagementGroups request.

func (AlertsClient) ListByManagementGroupsResponder

func (client AlertsClient) ListByManagementGroupsResponder(resp *http.Response) (result AlertListResult, err error)

ListByManagementGroupsResponder handles the response to the ListByManagementGroups request. The method always closes the http.Response Body.

func (AlertsClient) ListByManagementGroupsSender

func (client AlertsClient) ListByManagementGroupsSender(req *http.Request) (*http.Response, error)

ListByManagementGroupsSender sends the ListByManagementGroups request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) ListByResourceGroupName

func (client AlertsClient) ListByResourceGroupName(ctx context.Context, resourceGroupName string, filter string, skiptoken string, top *int32) (result AlertListResultPage, err error)

ListByResourceGroupName list all alerts for a resource group under a subscription. Parameters: resourceGroupName - azure Resource Group Name. filter - may be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'. skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. top - may be used to limit the number of results to the most recent N alerts.

func (AlertsClient) ListByResourceGroupNameComplete

func (client AlertsClient) ListByResourceGroupNameComplete(ctx context.Context, resourceGroupName string, filter string, skiptoken string, top *int32) (result AlertListResultIterator, err error)

ListByResourceGroupNameComplete enumerates all values, automatically crossing page boundaries as required.

func (AlertsClient) ListByResourceGroupNamePreparer

func (client AlertsClient) ListByResourceGroupNamePreparer(ctx context.Context, resourceGroupName string, filter string, skiptoken string, top *int32) (*http.Request, error)

ListByResourceGroupNamePreparer prepares the ListByResourceGroupName request.

func (AlertsClient) ListByResourceGroupNameResponder

func (client AlertsClient) ListByResourceGroupNameResponder(resp *http.Response) (result AlertListResult, err error)

ListByResourceGroupNameResponder handles the response to the ListByResourceGroupName request. The method always closes the http.Response Body.

func (AlertsClient) ListByResourceGroupNameSender

func (client AlertsClient) ListByResourceGroupNameSender(req *http.Request) (*http.Response, error)

ListByResourceGroupNameSender sends the ListByResourceGroupName request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) ListComplete

func (client AlertsClient) ListComplete(ctx context.Context, filter string, skiptoken string, top *int32) (result AlertListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (AlertsClient) ListPreparer

func (client AlertsClient) ListPreparer(ctx context.Context, filter string, skiptoken string, top *int32) (*http.Request, error)

ListPreparer prepares the List request.

func (AlertsClient) ListResponder

func (client AlertsClient) ListResponder(resp *http.Response) (result AlertListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (AlertsClient) ListSender

func (client AlertsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) UpdateBillingAccountAlertStatus

func (client AlertsClient) UpdateBillingAccountAlertStatus(ctx context.Context, billingAccountID string, alertID string, parameters Alert) (result Alert, err error)

UpdateBillingAccountAlertStatus update alerts status for billing account. Parameters: billingAccountID - billingAccount ID alertID - alert ID. parameters - parameters supplied to the update alerts status operation.

func (AlertsClient) UpdateBillingAccountAlertStatusPreparer

func (client AlertsClient) UpdateBillingAccountAlertStatusPreparer(ctx context.Context, billingAccountID string, alertID string, parameters Alert) (*http.Request, error)

UpdateBillingAccountAlertStatusPreparer prepares the UpdateBillingAccountAlertStatus request.

func (AlertsClient) UpdateBillingAccountAlertStatusResponder

func (client AlertsClient) UpdateBillingAccountAlertStatusResponder(resp *http.Response) (result Alert, err error)

UpdateBillingAccountAlertStatusResponder handles the response to the UpdateBillingAccountAlertStatus request. The method always closes the http.Response Body.

func (AlertsClient) UpdateBillingAccountAlertStatusSender

func (client AlertsClient) UpdateBillingAccountAlertStatusSender(req *http.Request) (*http.Response, error)

UpdateBillingAccountAlertStatusSender sends the UpdateBillingAccountAlertStatus request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) UpdateDepartmentsAlertStatus

func (client AlertsClient) UpdateDepartmentsAlertStatus(ctx context.Context, billingAccountID string, departmentID string, alertID string, parameters Alert) (result Alert, err error)

UpdateDepartmentsAlertStatus update alerts status for a department. Parameters: billingAccountID - billingAccount ID departmentID - department ID alertID - alert ID. parameters - parameters supplied to the update alerts status operation.

func (AlertsClient) UpdateDepartmentsAlertStatusPreparer

func (client AlertsClient) UpdateDepartmentsAlertStatusPreparer(ctx context.Context, billingAccountID string, departmentID string, alertID string, parameters Alert) (*http.Request, error)

UpdateDepartmentsAlertStatusPreparer prepares the UpdateDepartmentsAlertStatus request.

func (AlertsClient) UpdateDepartmentsAlertStatusResponder

func (client AlertsClient) UpdateDepartmentsAlertStatusResponder(resp *http.Response) (result Alert, err error)

UpdateDepartmentsAlertStatusResponder handles the response to the UpdateDepartmentsAlertStatus request. The method always closes the http.Response Body.

func (AlertsClient) UpdateDepartmentsAlertStatusSender

func (client AlertsClient) UpdateDepartmentsAlertStatusSender(req *http.Request) (*http.Response, error)

UpdateDepartmentsAlertStatusSender sends the UpdateDepartmentsAlertStatus request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) UpdateEnrollmentAccountAlertStatus

func (client AlertsClient) UpdateEnrollmentAccountAlertStatus(ctx context.Context, billingAccountID string, enrollmentAccountID string, alertID string, parameters Alert) (result Alert, err error)

UpdateEnrollmentAccountAlertStatus update alerts status for an enrollment account. Parameters: billingAccountID - billingAccount ID enrollmentAccountID - enrollment Account Id alertID - alert ID. parameters - parameters supplied to the update alerts status operation.

func (AlertsClient) UpdateEnrollmentAccountAlertStatusPreparer

func (client AlertsClient) UpdateEnrollmentAccountAlertStatusPreparer(ctx context.Context, billingAccountID string, enrollmentAccountID string, alertID string, parameters Alert) (*http.Request, error)

UpdateEnrollmentAccountAlertStatusPreparer prepares the UpdateEnrollmentAccountAlertStatus request.

func (AlertsClient) UpdateEnrollmentAccountAlertStatusResponder

func (client AlertsClient) UpdateEnrollmentAccountAlertStatusResponder(resp *http.Response) (result Alert, err error)

UpdateEnrollmentAccountAlertStatusResponder handles the response to the UpdateEnrollmentAccountAlertStatus request. The method always closes the http.Response Body.

func (AlertsClient) UpdateEnrollmentAccountAlertStatusSender

func (client AlertsClient) UpdateEnrollmentAccountAlertStatusSender(req *http.Request) (*http.Response, error)

UpdateEnrollmentAccountAlertStatusSender sends the UpdateEnrollmentAccountAlertStatus request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) UpdateManagementGroupAlertStatus

func (client AlertsClient) UpdateManagementGroupAlertStatus(ctx context.Context, managementGroupID string, alertID string, parameters Alert) (result Alert, err error)

UpdateManagementGroupAlertStatus update alerts status for management group. Parameters: managementGroupID - management Group ID alertID - alert ID. parameters - parameters supplied to the update alerts status operation.

func (AlertsClient) UpdateManagementGroupAlertStatusPreparer

func (client AlertsClient) UpdateManagementGroupAlertStatusPreparer(ctx context.Context, managementGroupID string, alertID string, parameters Alert) (*http.Request, error)

UpdateManagementGroupAlertStatusPreparer prepares the UpdateManagementGroupAlertStatus request.

func (AlertsClient) UpdateManagementGroupAlertStatusResponder

func (client AlertsClient) UpdateManagementGroupAlertStatusResponder(resp *http.Response) (result Alert, err error)

UpdateManagementGroupAlertStatusResponder handles the response to the UpdateManagementGroupAlertStatus request. The method always closes the http.Response Body.

func (AlertsClient) UpdateManagementGroupAlertStatusSender

func (client AlertsClient) UpdateManagementGroupAlertStatusSender(req *http.Request) (*http.Response, error)

UpdateManagementGroupAlertStatusSender sends the UpdateManagementGroupAlertStatus request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) UpdateResourceGroupNameAlertStatus

func (client AlertsClient) UpdateResourceGroupNameAlertStatus(ctx context.Context, resourceGroupName string, alertID string, parameters Alert) (result Alert, err error)

UpdateResourceGroupNameAlertStatus update alerts status for a resource group under a subscription. Parameters: resourceGroupName - azure Resource Group Name. alertID - alert ID. parameters - parameters supplied to the update alerts status operation.

func (AlertsClient) UpdateResourceGroupNameAlertStatusPreparer

func (client AlertsClient) UpdateResourceGroupNameAlertStatusPreparer(ctx context.Context, resourceGroupName string, alertID string, parameters Alert) (*http.Request, error)

UpdateResourceGroupNameAlertStatusPreparer prepares the UpdateResourceGroupNameAlertStatus request.

func (AlertsClient) UpdateResourceGroupNameAlertStatusResponder

func (client AlertsClient) UpdateResourceGroupNameAlertStatusResponder(resp *http.Response) (result Alert, err error)

UpdateResourceGroupNameAlertStatusResponder handles the response to the UpdateResourceGroupNameAlertStatus request. The method always closes the http.Response Body.

func (AlertsClient) UpdateResourceGroupNameAlertStatusSender

func (client AlertsClient) UpdateResourceGroupNameAlertStatusSender(req *http.Request) (*http.Response, error)

UpdateResourceGroupNameAlertStatusSender sends the UpdateResourceGroupNameAlertStatus request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) UpdateSubscriptionAlertStatus

func (client AlertsClient) UpdateSubscriptionAlertStatus(ctx context.Context, alertID string, parameters Alert) (result Alert, err error)

UpdateSubscriptionAlertStatus update alerts status for a subscription. Parameters: alertID - alert ID. parameters - parameters supplied to the update alerts status operation.

func (AlertsClient) UpdateSubscriptionAlertStatusPreparer

func (client AlertsClient) UpdateSubscriptionAlertStatusPreparer(ctx context.Context, alertID string, parameters Alert) (*http.Request, error)

UpdateSubscriptionAlertStatusPreparer prepares the UpdateSubscriptionAlertStatus request.

func (AlertsClient) UpdateSubscriptionAlertStatusResponder

func (client AlertsClient) UpdateSubscriptionAlertStatusResponder(resp *http.Response) (result Alert, err error)

UpdateSubscriptionAlertStatusResponder handles the response to the UpdateSubscriptionAlertStatus request. The method always closes the http.Response Body.

func (AlertsClient) UpdateSubscriptionAlertStatusSender

func (client AlertsClient) UpdateSubscriptionAlertStatusSender(req *http.Request) (*http.Response, error)

UpdateSubscriptionAlertStatusSender sends the UpdateSubscriptionAlertStatus request. The method will close the http.Response Body if it receives an error.

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Costmanagement.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (BaseClient) QueryBillingAccount

func (client BaseClient) QueryBillingAccount(ctx context.Context, billingAccountID string, parameters ReportDefinition) (result QueryResult, err error)

QueryBillingAccount lists the usage data for billing account. Parameters: billingAccountID - billingAccount ID parameters - parameters supplied to the CreateOrUpdate Report operation.

func (BaseClient) QueryBillingAccountPreparer

func (client BaseClient) QueryBillingAccountPreparer(ctx context.Context, billingAccountID string, parameters ReportDefinition) (*http.Request, error)

QueryBillingAccountPreparer prepares the QueryBillingAccount request.

func (BaseClient) QueryBillingAccountResponder

func (client BaseClient) QueryBillingAccountResponder(resp *http.Response) (result QueryResult, err error)

QueryBillingAccountResponder handles the response to the QueryBillingAccount request. The method always closes the http.Response Body.

func (BaseClient) QueryBillingAccountSender

func (client BaseClient) QueryBillingAccountSender(req *http.Request) (*http.Response, error)

QueryBillingAccountSender sends the QueryBillingAccount request. The method will close the http.Response Body if it receives an error.

func (BaseClient) QueryResourceGroup

func (client BaseClient) QueryResourceGroup(ctx context.Context, resourceGroupName string, parameters ReportDefinition) (result QueryResult, err error)

QueryResourceGroup lists the usage data for subscriptionId and resource group. Parameters: resourceGroupName - azure Resource Group Name. parameters - parameters supplied to the CreateOrUpdate Report operation.

func (BaseClient) QueryResourceGroupPreparer

func (client BaseClient) QueryResourceGroupPreparer(ctx context.Context, resourceGroupName string, parameters ReportDefinition) (*http.Request, error)

QueryResourceGroupPreparer prepares the QueryResourceGroup request.

func (BaseClient) QueryResourceGroupResponder

func (client BaseClient) QueryResourceGroupResponder(resp *http.Response) (result QueryResult, err error)

QueryResourceGroupResponder handles the response to the QueryResourceGroup request. The method always closes the http.Response Body.

func (BaseClient) QueryResourceGroupSender

func (client BaseClient) QueryResourceGroupSender(req *http.Request) (*http.Response, error)

QueryResourceGroupSender sends the QueryResourceGroup request. The method will close the http.Response Body if it receives an error.

func (BaseClient) QuerySubscription

func (client BaseClient) QuerySubscription(ctx context.Context, parameters ReportDefinition) (result QueryResult, err error)

QuerySubscription lists the usage data for subscriptionId. Parameters: parameters - parameters supplied to the CreateOrUpdate Report operation.

func (BaseClient) QuerySubscriptionPreparer

func (client BaseClient) QuerySubscriptionPreparer(ctx context.Context, parameters ReportDefinition) (*http.Request, error)

QuerySubscriptionPreparer prepares the QuerySubscription request.

func (BaseClient) QuerySubscriptionResponder

func (client BaseClient) QuerySubscriptionResponder(resp *http.Response) (result QueryResult, err error)

QuerySubscriptionResponder handles the response to the QuerySubscription request. The method always closes the http.Response Body.

func (BaseClient) QuerySubscriptionSender

func (client BaseClient) QuerySubscriptionSender(req *http.Request) (*http.Response, error)

QuerySubscriptionSender sends the QuerySubscription request. The method will close the http.Response Body if it receives an error.

type BillingAccountDimensionsClient

type BillingAccountDimensionsClient struct {
	BaseClient
}

BillingAccountDimensionsClient is the client for the BillingAccountDimensions methods of the Costmanagement service.

func NewBillingAccountDimensionsClient

func NewBillingAccountDimensionsClient(subscriptionID string) BillingAccountDimensionsClient

NewBillingAccountDimensionsClient creates an instance of the BillingAccountDimensionsClient client.

func NewBillingAccountDimensionsClientWithBaseURI

func NewBillingAccountDimensionsClientWithBaseURI(baseURI string, subscriptionID string) BillingAccountDimensionsClient

NewBillingAccountDimensionsClientWithBaseURI creates an instance of the BillingAccountDimensionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (BillingAccountDimensionsClient) List

func (client BillingAccountDimensionsClient) List(ctx context.Context, billingAccountID string, filter string, expand string, skiptoken string, top *int32) (result DimensionsListResult, err error)

List lists the dimensions by billingAccount Id. Parameters: billingAccountID - billingAccount ID filter - may be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'. expand - may be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions. skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. top - may be used to limit the number of results to the most recent N dimension data.

func (BillingAccountDimensionsClient) ListPreparer

func (client BillingAccountDimensionsClient) ListPreparer(ctx context.Context, billingAccountID string, filter string, expand string, skiptoken string, top *int32) (*http.Request, error)

ListPreparer prepares the List request.

func (BillingAccountDimensionsClient) ListResponder

func (client BillingAccountDimensionsClient) ListResponder(resp *http.Response) (result DimensionsListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (BillingAccountDimensionsClient) ListSender

func (client BillingAccountDimensionsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type CommonReportProperties

type CommonReportProperties struct {
	// Format - The format of the report being delivered. Possible values include: 'Csv'
	Format FormatType `json:"format,omitempty"`
	// DeliveryInfo - Has delivery information for the report.
	DeliveryInfo *ReportDeliveryInfo `json:"deliveryInfo,omitempty"`
	// Definition - Has definition for the report.
	Definition *ReportDefinition `json:"definition,omitempty"`
}

CommonReportProperties the common properties of the report.

type ConnectorClient

type ConnectorClient struct {
	BaseClient
}

ConnectorClient is the client for the Connector methods of the Costmanagement service.

func NewConnectorClient

func NewConnectorClient(subscriptionID string) ConnectorClient

NewConnectorClient creates an instance of the ConnectorClient client.

func NewConnectorClientWithBaseURI

func NewConnectorClientWithBaseURI(baseURI string, subscriptionID string) ConnectorClient

NewConnectorClientWithBaseURI creates an instance of the ConnectorClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ConnectorClient) CreateOrUpdate

func (client ConnectorClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, connectorName string, connector ConnectorDefinition) (result ConnectorDefinition, err error)

CreateOrUpdate create or update a connector definition Parameters: resourceGroupName - azure Resource Group Name. connectorName - connector Name. connector - connector details

func (ConnectorClient) CreateOrUpdatePreparer

func (client ConnectorClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, connectorName string, connector ConnectorDefinition) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ConnectorClient) CreateOrUpdateResponder

func (client ConnectorClient) CreateOrUpdateResponder(resp *http.Response) (result ConnectorDefinition, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ConnectorClient) CreateOrUpdateSender

func (client ConnectorClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ConnectorClient) Delete

func (client ConnectorClient) Delete(ctx context.Context, resourceGroupName string, connectorName string) (result autorest.Response, err error)

Delete delete a connector definition Parameters: resourceGroupName - azure Resource Group Name. connectorName - connector Name.

func (ConnectorClient) DeletePreparer

func (client ConnectorClient) DeletePreparer(ctx context.Context, resourceGroupName string, connectorName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ConnectorClient) DeleteResponder

func (client ConnectorClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ConnectorClient) DeleteSender

func (client ConnectorClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ConnectorClient) Get

func (client ConnectorClient) Get(ctx context.Context, resourceGroupName string, connectorName string) (result ConnectorDefinition, err error)

Get get a connector definition Parameters: resourceGroupName - azure Resource Group Name. connectorName - connector Name.

func (ConnectorClient) GetPreparer

func (client ConnectorClient) GetPreparer(ctx context.Context, resourceGroupName string, connectorName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ConnectorClient) GetResponder

func (client ConnectorClient) GetResponder(resp *http.Response) (result ConnectorDefinition, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ConnectorClient) GetSender

func (client ConnectorClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ConnectorClient) List

func (client ConnectorClient) List(ctx context.Context) (result ConnectorDefinitionListResult, err error)

List list all connector definitions for a subscription

func (ConnectorClient) ListByResourceGroupName

func (client ConnectorClient) ListByResourceGroupName(ctx context.Context, resourceGroupName string) (result ConnectorDefinitionListResult, err error)

ListByResourceGroupName list all connector definitions for a resource group under a subscription. Parameters: resourceGroupName - azure Resource Group Name.

func (ConnectorClient) ListByResourceGroupNamePreparer

func (client ConnectorClient) ListByResourceGroupNamePreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupNamePreparer prepares the ListByResourceGroupName request.

func (ConnectorClient) ListByResourceGroupNameResponder

func (client ConnectorClient) ListByResourceGroupNameResponder(resp *http.Response) (result ConnectorDefinitionListResult, err error)

ListByResourceGroupNameResponder handles the response to the ListByResourceGroupName request. The method always closes the http.Response Body.

func (ConnectorClient) ListByResourceGroupNameSender

func (client ConnectorClient) ListByResourceGroupNameSender(req *http.Request) (*http.Response, error)

ListByResourceGroupNameSender sends the ListByResourceGroupName request. The method will close the http.Response Body if it receives an error.

func (ConnectorClient) ListPreparer

func (client ConnectorClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (ConnectorClient) ListResponder

func (client ConnectorClient) ListResponder(resp *http.Response) (result ConnectorDefinitionListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ConnectorClient) ListSender

func (client ConnectorClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (ConnectorClient) Update

func (client ConnectorClient) Update(ctx context.Context, resourceGroupName string, connectorName string, connector ConnectorDefinition) (result ConnectorDefinition, err error)

Update update a connector definition Parameters: resourceGroupName - azure Resource Group Name. connectorName - connector Name. connector - connector details

func (ConnectorClient) UpdatePreparer

func (client ConnectorClient) UpdatePreparer(ctx context.Context, resourceGroupName string, connectorName string, connector ConnectorDefinition) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ConnectorClient) UpdateResponder

func (client ConnectorClient) UpdateResponder(resp *http.Response) (result ConnectorDefinition, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ConnectorClient) UpdateSender

func (client ConnectorClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type ConnectorCollectionErrorInfo

type ConnectorCollectionErrorInfo struct {
	// ErrorMessage - READ-ONLY; Detailed error message
	ErrorMessage *string `json:"errorMessage,omitempty"`
	// ErrorCode - READ-ONLY; Short error message
	ErrorCode *string `json:"errorCode,omitempty"`
	// ErrorStartTime - READ-ONLY; Time the error started occurring (Last time error occurred in lastRun)
	ErrorStartTime *date.Time `json:"errorStartTime,omitempty"`
}

ConnectorCollectionErrorInfo details of any error encountered on last collection attempt

type ConnectorCollectionInfo

type ConnectorCollectionInfo struct {
	// LastRun - READ-ONLY; Last time the data acquisition process completed (even if no new data was found)
	LastRun *date.Time `json:"lastRun,omitempty"`
	// SourceLastUpdated - READ-ONLY; Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)
	SourceLastUpdated *date.Time `json:"sourceLastUpdated,omitempty"`
	// LastUpdated - READ-ONLY; Last time the external data was updated into Azure
	LastUpdated *date.Time `json:"lastUpdated,omitempty"`
	// Error - Error information of last collection
	Error *ConnectorCollectionErrorInfo `json:"error,omitempty"`
}

ConnectorCollectionInfo collection and ingestion information

type ConnectorDefinition

type ConnectorDefinition struct {
	autorest.Response `json:"-"`
	// Kind - Connector kind (eg aws)
	Kind *string `json:"kind,omitempty"`
	// ID - READ-ONLY; Connector id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Connector name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Connector type
	Type *string `json:"type,omitempty"`
	// Location - Connector location
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ConnectorProperties - Connector properties
	*ConnectorProperties `json:"properties,omitempty"`
}

ConnectorDefinition the Connector model definition

func (ConnectorDefinition) MarshalJSON

func (cd ConnectorDefinition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ConnectorDefinition.

func (*ConnectorDefinition) UnmarshalJSON

func (cd *ConnectorDefinition) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ConnectorDefinition struct.

type ConnectorDefinitionListResult

type ConnectorDefinitionListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of connector definitions.
	Value *[]ConnectorDefinition `json:"value,omitempty"`
}

ConnectorDefinitionListResult result of listing connector definitions. It contains a list of available connector definitions in the scope provided.

type ConnectorProperties

type ConnectorProperties struct {
	// DisplayName - Connector DisplayName (defaults to Name)
	DisplayName *string `json:"displayName,omitempty"`
	// ProviderAccountID - READ-ONLY; Connector providerAccountId (determined from credentials)
	ProviderAccountID *string `json:"providerAccountId,omitempty"`
	// CredentialsKey - Credentials authentication key (eg AWS ARN)
	CredentialsKey *string `json:"credentialsKey,omitempty"`
	// CredentialsSecret - Credentials secret (eg AWS ExternalId)
	CredentialsSecret *string `json:"credentialsSecret,omitempty"`
	// ReportID - Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
	ReportID *string `json:"reportId,omitempty"`
	// CreatedOn - READ-ONLY; Connector definition creation datetime
	CreatedOn *date.Time `json:"createdOn,omitempty"`
	// ModifiedOn - READ-ONLY; Connector last modified datetime
	ModifiedOn *date.Time `json:"modifiedOn,omitempty"`
	// Status - Connector status. Possible values include: 'ConnectorStatusActive', 'ConnectorStatusError', 'ConnectorStatusSuspended'
	Status ConnectorStatus `json:"status,omitempty"`
	// Collection - READ-ONLY; Collection information
	Collection *ConnectorCollectionInfo `json:"collection,omitempty"`
}

ConnectorProperties the properties of a Connector

type ConnectorStatus

type ConnectorStatus string

ConnectorStatus enumerates the values for connector status.

const (
	// ConnectorStatusActive ...
	ConnectorStatusActive ConnectorStatus = "active"
	// ConnectorStatusError ...
	ConnectorStatusError ConnectorStatus = "error"
	// ConnectorStatusSuspended ...
	ConnectorStatusSuspended ConnectorStatus = "suspended"
)

func PossibleConnectorStatusValues

func PossibleConnectorStatusValues() []ConnectorStatus

PossibleConnectorStatusValues returns an array of possible values for the ConnectorStatus const type.

type Dimension

type Dimension struct {
	*DimensionProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
	// Tags - READ-ONLY; Resource tags.
	Tags map[string]*string `json:"tags"`
}

Dimension ...

func (Dimension) MarshalJSON

func (d Dimension) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Dimension.

func (*Dimension) UnmarshalJSON

func (d *Dimension) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Dimension struct.

type DimensionProperties

type DimensionProperties struct {
	Data       *[]string  `json:"data,omitempty"`
	Total      *int32     `json:"total,omitempty"`
	Category   *string    `json:"category,omitempty"`
	UsageStart *date.Time `json:"usageStart,omitempty"`
	UsageEnd   *date.Time `json:"usageEnd,omitempty"`
	NextLink   *string    `json:"nextLink,omitempty"`
}

DimensionProperties ...

type DimensionsListResult

type DimensionsListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of dimensions.
	Value *[]Dimension `json:"value,omitempty"`
}

DimensionsListResult result of listing dimensions. It contains a list of available dimensions.

type ErrorBase

type ErrorBase struct {
	// Code - READ-ONLY; A machine readable error code.
	Code *string `json:"code,omitempty"`
	// Message - READ-ONLY; A human readable error message.
	Message *string `json:"message,omitempty"`
	// Target - READ-ONLY; Indicates which property in the request is responsible for the error.
	Target *string `json:"target,omitempty"`
}

ErrorBase the details of the error.

type ErrorDetails

type ErrorDetails struct {
	// Code - READ-ONLY; A machine readable error code.
	Code *string `json:"code,omitempty"`
	// Message - READ-ONLY; A human readable error message.
	Message *string `json:"message,omitempty"`
	// Target - Indicates which property in the request is responsible for the error.
	Target *string `json:"target,omitempty"`
	// Details - error details.
	Details *[]ErrorBase `json:"details,omitempty"`
}

ErrorDetails the details of the error.

type ErrorResponse

type ErrorResponse struct {
	// Error - The details of the error.
	Error *ErrorDetails `json:"error,omitempty"`
}

ErrorResponse error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.

type ExecutionStatus

type ExecutionStatus string

ExecutionStatus enumerates the values for execution status.

const (
	// Completed ...
	Completed ExecutionStatus = "Completed"
	// DataNotAvailable ...
	DataNotAvailable ExecutionStatus = "DataNotAvailable"
	// Failed ...
	Failed ExecutionStatus = "Failed"
	// InProgress ...
	InProgress ExecutionStatus = "InProgress"
	// NewDataNotAvailable ...
	NewDataNotAvailable ExecutionStatus = "NewDataNotAvailable"
	// Queued ...
	Queued ExecutionStatus = "Queued"
	// Timeout ...
	Timeout ExecutionStatus = "Timeout"
)

func PossibleExecutionStatusValues

func PossibleExecutionStatusValues() []ExecutionStatus

PossibleExecutionStatusValues returns an array of possible values for the ExecutionStatus const type.

type ExecutionType

type ExecutionType string

ExecutionType enumerates the values for execution type.

const (
	// OnDemand ...
	OnDemand ExecutionType = "OnDemand"
	// Scheduled ...
	Scheduled ExecutionType = "Scheduled"
)

func PossibleExecutionTypeValues

func PossibleExecutionTypeValues() []ExecutionType

PossibleExecutionTypeValues returns an array of possible values for the ExecutionType const type.

type FormatType

type FormatType string

FormatType enumerates the values for format type.

const (
	// Csv ...
	Csv FormatType = "Csv"
)

func PossibleFormatTypeValues

func PossibleFormatTypeValues() []FormatType

PossibleFormatTypeValues returns an array of possible values for the FormatType const type.

type GranularityType

type GranularityType string

GranularityType enumerates the values for granularity type.

const (
	// Daily ...
	Daily GranularityType = "Daily"
	// Hourly ...
	Hourly GranularityType = "Hourly"
)

func PossibleGranularityTypeValues

func PossibleGranularityTypeValues() []GranularityType

PossibleGranularityTypeValues returns an array of possible values for the GranularityType const type.

type Operation

type Operation struct {
	// Name - READ-ONLY; Operation name: {provider}/{resource}/{operation}.
	Name *string `json:"name,omitempty"`
	// Display - The object that represents the operation.
	Display *OperationDisplay `json:"display,omitempty"`
}

Operation a Cost Management REST API operation.

type OperationDisplay

type OperationDisplay struct {
	// Provider - READ-ONLY; Service provider: Microsoft.CostManagement.
	Provider *string `json:"provider,omitempty"`
	// Resource - READ-ONLY; Resource on which the operation is performed: UsageDetail, etc.
	Resource *string `json:"resource,omitempty"`
	// Operation - READ-ONLY; Operation type: Read, write, delete, etc.
	Operation *string `json:"operation,omitempty"`
}

OperationDisplay the object that represents the operation.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; List of CostManagement operations supported by the Microsoft.CostManagement resource provider.
	Value *[]Operation `json:"value,omitempty"`
	// NextLink - READ-ONLY; URL to get the next set of operation list results if there are any.
	NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult result of listing CostManagement operations. It contains a list of operations and a URL link to get the next set of results.

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator

type OperationListResultIterator struct {
	// contains filtered or unexported fields
}

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

func (iter *OperationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultIterator) NextWithContext

func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationListResultIterator) NotDone

func (iter OperationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListResultIterator) Response

Response returns the raw server response from the last page request.

func (OperationListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListResultPage

type OperationListResultPage struct {
	// contains filtered or unexported fields
}

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage

func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

func (page *OperationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultPage) NextWithContext

func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationListResultPage) NotDone

func (page OperationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListResultPage) Response

Response returns the raw server response from the last page request.

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []Operation

Values returns the slice of values for the current page or nil if there are no values.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the client for the Operations methods of the Costmanagement service.

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)

List lists all of the available cost management REST API operations.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Query

type Query struct {
	*QueryProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
	// Tags - READ-ONLY; Resource tags.
	Tags map[string]*string `json:"tags"`
}

Query ...

func (Query) MarshalJSON

func (q Query) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Query.

func (*Query) UnmarshalJSON

func (q *Query) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Query struct.

type QueryColumn

type QueryColumn struct {
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

QueryColumn ...

type QueryProperties

type QueryProperties struct {
	NextLink *string `json:"nextLink,omitempty"`
	// Columns - Array of columns
	Columns *[]QueryColumn   `json:"columns,omitempty"`
	Rows    *[][]interface{} `json:"rows,omitempty"`
}

QueryProperties ...

type QueryResult

type QueryResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of usage data.
	Value *[]Query `json:"value,omitempty"`
}

QueryResult result of query. It contains all columns listed under groupings and aggregation.

type RecurrenceType

type RecurrenceType string

RecurrenceType enumerates the values for recurrence type.

const (
	// RecurrenceTypeAnnually ...
	RecurrenceTypeAnnually RecurrenceType = "Annually"
	// RecurrenceTypeDaily ...
	RecurrenceTypeDaily RecurrenceType = "Daily"
	// RecurrenceTypeMonthly ...
	RecurrenceTypeMonthly RecurrenceType = "Monthly"
	// RecurrenceTypeWeekly ...
	RecurrenceTypeWeekly RecurrenceType = "Weekly"
)

func PossibleRecurrenceTypeValues

func PossibleRecurrenceTypeValues() []RecurrenceType

PossibleRecurrenceTypeValues returns an array of possible values for the RecurrenceType const type.

type Report

type Report struct {
	autorest.Response `json:"-"`
	*ReportProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
	// Tags - READ-ONLY; Resource tags.
	Tags map[string]*string `json:"tags"`
}

Report a report resource.

func (Report) MarshalJSON

func (r Report) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Report.

func (*Report) UnmarshalJSON

func (r *Report) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Report struct.

type ReportAggregation

type ReportAggregation struct {
	// Name - The name of the column to aggregate.
	Name *string `json:"name,omitempty"`
	// Function - The name of the aggregation function to use.
	Function *string `json:"function,omitempty"`
}

ReportAggregation the aggregation expression to be used in the report.

type ReportColumnType

type ReportColumnType string

ReportColumnType enumerates the values for report column type.

const (
	// ReportColumnTypeDimension ...
	ReportColumnTypeDimension ReportColumnType = "Dimension"
	// ReportColumnTypeTag ...
	ReportColumnTypeTag ReportColumnType = "Tag"
)

func PossibleReportColumnTypeValues

func PossibleReportColumnTypeValues() []ReportColumnType

PossibleReportColumnTypeValues returns an array of possible values for the ReportColumnType const type.

type ReportComparisonExpression

type ReportComparisonExpression struct {
	// Name - The name of the column to use in comparison.
	Name *string `json:"name,omitempty"`
	// Operator - The operator to use for comparison.
	Operator *string `json:"operator,omitempty"`
	// Values - Array of values to use for comparison
	Values *[]string `json:"values,omitempty"`
}

ReportComparisonExpression the comparison expression to be used in the report.

type ReportDataset

type ReportDataset struct {
	// Granularity - The granularity of rows in the report. Possible values include: 'Daily', 'Hourly'
	Granularity GranularityType `json:"granularity,omitempty"`
	// Configuration - Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
	Configuration *ReportDatasetConfiguration `json:"configuration,omitempty"`
	// Aggregation - Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
	Aggregation map[string]*ReportAggregation `json:"aggregation"`
	// Grouping - Array of group by expression to use in the report. Report can have up to 2 group by clauses.
	Grouping *[]ReportGrouping `json:"grouping,omitempty"`
	// Filter - Has filter expression to use in the report.
	Filter *ReportFilter `json:"filter,omitempty"`
}

ReportDataset the definition of data present in the report.

func (ReportDataset) MarshalJSON

func (rd ReportDataset) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ReportDataset.

type ReportDatasetConfiguration

type ReportDatasetConfiguration struct {
	// Columns - Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.
	Columns *[]string `json:"columns,omitempty"`
}

ReportDatasetConfiguration the configuration of dataset in the report.

type ReportDefinition

type ReportDefinition struct {
	// Type - The type of the report.
	Type *string `json:"type,omitempty"`
	// Timeframe - The time frame for pulling data for the report. If custom, then a specific time period must be provided. Possible values include: 'WeekToDate', 'MonthToDate', 'Custom'
	Timeframe TimeframeType `json:"timeframe,omitempty"`
	// TimePeriod - Has time period for pulling data for the report.
	TimePeriod *ReportTimePeriod `json:"timePeriod,omitempty"`
	// Dataset - Has definition for data in this report.
	Dataset *ReportDataset `json:"dataset,omitempty"`
}

ReportDefinition the definition of a report.

type ReportDeliveryDestination

type ReportDeliveryDestination struct {
	// ResourceID - The resource id of the storage account where reports will be delivered.
	ResourceID *string `json:"resourceId,omitempty"`
	// Container - The name of the container where reports will be uploaded.
	Container *string `json:"container,omitempty"`
	// RootFolderPath - The name of the directory where reports will be uploaded.
	RootFolderPath *string `json:"rootFolderPath,omitempty"`
}

ReportDeliveryDestination the destination information for the delivery of the report.

type ReportDeliveryInfo

type ReportDeliveryInfo struct {
	// Destination - Has destination for the report being delivered.
	Destination *ReportDeliveryDestination `json:"destination,omitempty"`
}

ReportDeliveryInfo the delivery information associated with a report.

type ReportExecution

type ReportExecution struct {
	*ReportExecutionProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
	// Tags - READ-ONLY; Resource tags.
	Tags map[string]*string `json:"tags"`
}

ReportExecution a report execution.

func (ReportExecution) MarshalJSON

func (re ReportExecution) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ReportExecution.

func (*ReportExecution) UnmarshalJSON

func (re *ReportExecution) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ReportExecution struct.

type ReportExecutionListResult

type ReportExecutionListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of report executions.
	Value *[]ReportExecution `json:"value,omitempty"`
}

ReportExecutionListResult result of listing reports execution history of a report by name

type ReportExecutionProperties

type ReportExecutionProperties struct {
	// ExecutionType - The type of the report execution. Possible values include: 'OnDemand', 'Scheduled'
	ExecutionType ExecutionType `json:"executionType,omitempty"`
	// Status - The status of the report execution. Possible values include: 'Queued', 'InProgress', 'Completed', 'Failed', 'Timeout', 'NewDataNotAvailable', 'DataNotAvailable'
	Status ExecutionStatus `json:"status,omitempty"`
	// SubmittedBy - The identifier for the entity that executed the report. For OnDemand executions, it is the email id. For Scheduled executions, it is the constant value - System.
	SubmittedBy *string `json:"submittedBy,omitempty"`
	// SubmittedTime - The time when report was queued to be executed.
	SubmittedTime *date.Time `json:"submittedTime,omitempty"`
	// ProcessingStartTime - The time when report was picked up to be executed.
	ProcessingStartTime *date.Time `json:"processingStartTime,omitempty"`
	// ProcessingEndTime - The time when report execution finished.
	ProcessingEndTime *date.Time `json:"processingEndTime,omitempty"`
	// FileName - The name of the file report got written to.
	FileName       *string                 `json:"fileName,omitempty"`
	ReportSettings *CommonReportProperties `json:"reportSettings,omitempty"`
}

ReportExecutionProperties the properties of the report execution.

type ReportFilter

type ReportFilter struct {
	// And - The logical "AND" expression. Must have at least 2 items.
	And *[]ReportFilter `json:"and,omitempty"`
	// Or - The logical "OR" expression. Must have at least 2 items.
	Or *[]ReportFilter `json:"or,omitempty"`
	// Not - The logical "NOT" expression.
	Not *ReportFilter `json:"not,omitempty"`
	// Dimension - Has comparison expression for a dimension
	Dimension *ReportComparisonExpression `json:"dimension,omitempty"`
	// Tag - Has comparison expression for a tag
	Tag *ReportComparisonExpression `json:"tag,omitempty"`
}

ReportFilter the filter expression to be used in the report.

type ReportGrouping

type ReportGrouping struct {
	// Type - Has type of the column to group. Possible values include: 'ReportColumnTypeTag', 'ReportColumnTypeDimension'
	Type ReportColumnType `json:"type,omitempty"`
	// Name - The name of the column to group.
	Name *string `json:"name,omitempty"`
}

ReportGrouping the group by expression to be used in the report.

type ReportListResult

type ReportListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of reports.
	Value *[]Report `json:"value,omitempty"`
}

ReportListResult result of listing reports. It contains a list of available reports in the scope provided.

type ReportProperties

type ReportProperties struct {
	// Schedule - Has schedule information for the report.
	Schedule *ReportSchedule `json:"schedule,omitempty"`
	// Format - The format of the report being delivered. Possible values include: 'Csv'
	Format FormatType `json:"format,omitempty"`
	// DeliveryInfo - Has delivery information for the report.
	DeliveryInfo *ReportDeliveryInfo `json:"deliveryInfo,omitempty"`
	// Definition - Has definition for the report.
	Definition *ReportDefinition `json:"definition,omitempty"`
}

ReportProperties the properties of the report.

type ReportRecurrencePeriod

type ReportRecurrencePeriod struct {
	// From - The start date of recurrence.
	From *date.Time `json:"from,omitempty"`
	// To - The end date of recurrence.
	To *date.Time `json:"to,omitempty"`
}

ReportRecurrencePeriod the start and end date for recurrence schedule.

type ReportSchedule

type ReportSchedule struct {
	// Status - The status of the schedule. Whether active or not. If inactive, the report's scheduled execution is paused. Possible values include: 'StatusTypeActive', 'StatusTypeInactive'
	Status StatusType `json:"status,omitempty"`
	// Recurrence - The schedule recurrence. Possible values include: 'RecurrenceTypeDaily', 'RecurrenceTypeWeekly', 'RecurrenceTypeMonthly', 'RecurrenceTypeAnnually'
	Recurrence RecurrenceType `json:"recurrence,omitempty"`
	// RecurrencePeriod - Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
	RecurrencePeriod *ReportRecurrencePeriod `json:"recurrencePeriod,omitempty"`
}

ReportSchedule the schedule associated with a report.

type ReportTimePeriod

type ReportTimePeriod struct {
	// From - The start date to pull data from.
	From *date.Time `json:"from,omitempty"`
	// To - The end date to pull data to.
	To *date.Time `json:"to,omitempty"`
}

ReportTimePeriod the start and end date for pulling data for the report.

type ReportsClient

type ReportsClient struct {
	BaseClient
}

ReportsClient is the client for the Reports methods of the Costmanagement service.

func NewReportsClient

func NewReportsClient(subscriptionID string) ReportsClient

NewReportsClient creates an instance of the ReportsClient client.

func NewReportsClientWithBaseURI

func NewReportsClientWithBaseURI(baseURI string, subscriptionID string) ReportsClient

NewReportsClientWithBaseURI creates an instance of the ReportsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ReportsClient) CreateOrUpdate

func (client ReportsClient) CreateOrUpdate(ctx context.Context, reportName string, parameters Report) (result Report, err error)

CreateOrUpdate the operation to create or update a report. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag. Parameters: reportName - report Name. parameters - parameters supplied to the CreateOrUpdate Report operation.

func (ReportsClient) CreateOrUpdateByBillingAccount

func (client ReportsClient) CreateOrUpdateByBillingAccount(ctx context.Context, billingAccountID string, reportName string, parameters Report) (result Report, err error)

CreateOrUpdateByBillingAccount the operation to create or update a report for billingAccount. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag. Parameters: billingAccountID - billingAccount ID reportName - report Name. parameters - parameters supplied to the CreateOrUpdate Report operation.

func (ReportsClient) CreateOrUpdateByBillingAccountPreparer

func (client ReportsClient) CreateOrUpdateByBillingAccountPreparer(ctx context.Context, billingAccountID string, reportName string, parameters Report) (*http.Request, error)

CreateOrUpdateByBillingAccountPreparer prepares the CreateOrUpdateByBillingAccount request.

func (ReportsClient) CreateOrUpdateByBillingAccountResponder

func (client ReportsClient) CreateOrUpdateByBillingAccountResponder(resp *http.Response) (result Report, err error)

CreateOrUpdateByBillingAccountResponder handles the response to the CreateOrUpdateByBillingAccount request. The method always closes the http.Response Body.

func (ReportsClient) CreateOrUpdateByBillingAccountSender

func (client ReportsClient) CreateOrUpdateByBillingAccountSender(req *http.Request) (*http.Response, error)

CreateOrUpdateByBillingAccountSender sends the CreateOrUpdateByBillingAccount request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) CreateOrUpdateByDepartment

func (client ReportsClient) CreateOrUpdateByDepartment(ctx context.Context, departmentID string, reportName string, parameters Report) (result Report, err error)

CreateOrUpdateByDepartment the operation to create or update a report for department. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag. Parameters: departmentID - department ID reportName - report Name. parameters - parameters supplied to the CreateOrUpdate Report operation.

func (ReportsClient) CreateOrUpdateByDepartmentPreparer

func (client ReportsClient) CreateOrUpdateByDepartmentPreparer(ctx context.Context, departmentID string, reportName string, parameters Report) (*http.Request, error)

CreateOrUpdateByDepartmentPreparer prepares the CreateOrUpdateByDepartment request.

func (ReportsClient) CreateOrUpdateByDepartmentResponder

func (client ReportsClient) CreateOrUpdateByDepartmentResponder(resp *http.Response) (result Report, err error)

CreateOrUpdateByDepartmentResponder handles the response to the CreateOrUpdateByDepartment request. The method always closes the http.Response Body.

func (ReportsClient) CreateOrUpdateByDepartmentSender

func (client ReportsClient) CreateOrUpdateByDepartmentSender(req *http.Request) (*http.Response, error)

CreateOrUpdateByDepartmentSender sends the CreateOrUpdateByDepartment request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) CreateOrUpdateByResourceGroupName

func (client ReportsClient) CreateOrUpdateByResourceGroupName(ctx context.Context, resourceGroupName string, reportName string, parameters Report) (result Report, err error)

CreateOrUpdateByResourceGroupName the operation to create or update a report. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag. Parameters: resourceGroupName - azure Resource Group Name. reportName - report Name. parameters - parameters supplied to the CreateOrUpdate Report operation.

func (ReportsClient) CreateOrUpdateByResourceGroupNamePreparer

func (client ReportsClient) CreateOrUpdateByResourceGroupNamePreparer(ctx context.Context, resourceGroupName string, reportName string, parameters Report) (*http.Request, error)

CreateOrUpdateByResourceGroupNamePreparer prepares the CreateOrUpdateByResourceGroupName request.

func (ReportsClient) CreateOrUpdateByResourceGroupNameResponder

func (client ReportsClient) CreateOrUpdateByResourceGroupNameResponder(resp *http.Response) (result Report, err error)

CreateOrUpdateByResourceGroupNameResponder handles the response to the CreateOrUpdateByResourceGroupName request. The method always closes the http.Response Body.

func (ReportsClient) CreateOrUpdateByResourceGroupNameSender

func (client ReportsClient) CreateOrUpdateByResourceGroupNameSender(req *http.Request) (*http.Response, error)

CreateOrUpdateByResourceGroupNameSender sends the CreateOrUpdateByResourceGroupName request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) CreateOrUpdatePreparer

func (client ReportsClient) CreateOrUpdatePreparer(ctx context.Context, reportName string, parameters Report) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ReportsClient) CreateOrUpdateResponder

func (client ReportsClient) CreateOrUpdateResponder(resp *http.Response) (result Report, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ReportsClient) CreateOrUpdateSender

func (client ReportsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) Delete

func (client ReportsClient) Delete(ctx context.Context, reportName string) (result autorest.Response, err error)

Delete the operation to delete a report. Parameters: reportName - report Name.

func (ReportsClient) DeleteByBillingAccount

func (client ReportsClient) DeleteByBillingAccount(ctx context.Context, billingAccountID string, reportName string) (result autorest.Response, err error)

DeleteByBillingAccount the operation to delete a report for billing account. Parameters: billingAccountID - billingAccount ID reportName - report Name.

func (ReportsClient) DeleteByBillingAccountPreparer

func (client ReportsClient) DeleteByBillingAccountPreparer(ctx context.Context, billingAccountID string, reportName string) (*http.Request, error)

DeleteByBillingAccountPreparer prepares the DeleteByBillingAccount request.

func (ReportsClient) DeleteByBillingAccountResponder

func (client ReportsClient) DeleteByBillingAccountResponder(resp *http.Response) (result autorest.Response, err error)

DeleteByBillingAccountResponder handles the response to the DeleteByBillingAccount request. The method always closes the http.Response Body.

func (ReportsClient) DeleteByBillingAccountSender

func (client ReportsClient) DeleteByBillingAccountSender(req *http.Request) (*http.Response, error)

DeleteByBillingAccountSender sends the DeleteByBillingAccount request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) DeleteByDepartment

func (client ReportsClient) DeleteByDepartment(ctx context.Context, departmentID string, reportName string) (result autorest.Response, err error)

DeleteByDepartment the operation to delete a report for department. Parameters: departmentID - department ID reportName - report Name.

func (ReportsClient) DeleteByDepartmentPreparer

func (client ReportsClient) DeleteByDepartmentPreparer(ctx context.Context, departmentID string, reportName string) (*http.Request, error)

DeleteByDepartmentPreparer prepares the DeleteByDepartment request.

func (ReportsClient) DeleteByDepartmentResponder

func (client ReportsClient) DeleteByDepartmentResponder(resp *http.Response) (result autorest.Response, err error)

DeleteByDepartmentResponder handles the response to the DeleteByDepartment request. The method always closes the http.Response Body.

func (ReportsClient) DeleteByDepartmentSender

func (client ReportsClient) DeleteByDepartmentSender(req *http.Request) (*http.Response, error)

DeleteByDepartmentSender sends the DeleteByDepartment request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) DeleteByResourceGroupName

func (client ReportsClient) DeleteByResourceGroupName(ctx context.Context, resourceGroupName string, reportName string) (result autorest.Response, err error)

DeleteByResourceGroupName the operation to delete a report. Parameters: resourceGroupName - azure Resource Group Name. reportName - report Name.

func (ReportsClient) DeleteByResourceGroupNamePreparer

func (client ReportsClient) DeleteByResourceGroupNamePreparer(ctx context.Context, resourceGroupName string, reportName string) (*http.Request, error)

DeleteByResourceGroupNamePreparer prepares the DeleteByResourceGroupName request.

func (ReportsClient) DeleteByResourceGroupNameResponder

func (client ReportsClient) DeleteByResourceGroupNameResponder(resp *http.Response) (result autorest.Response, err error)

DeleteByResourceGroupNameResponder handles the response to the DeleteByResourceGroupName request. The method always closes the http.Response Body.

func (ReportsClient) DeleteByResourceGroupNameSender

func (client ReportsClient) DeleteByResourceGroupNameSender(req *http.Request) (*http.Response, error)

DeleteByResourceGroupNameSender sends the DeleteByResourceGroupName request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) DeletePreparer

func (client ReportsClient) DeletePreparer(ctx context.Context, reportName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ReportsClient) DeleteResponder

func (client ReportsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ReportsClient) DeleteSender

func (client ReportsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) Execute

func (client ReportsClient) Execute(ctx context.Context, reportName string) (result autorest.Response, err error)

Execute the operation to execute a report. Parameters: reportName - report Name.

func (ReportsClient) ExecuteByBillingAccount

func (client ReportsClient) ExecuteByBillingAccount(ctx context.Context, billingAccountID string, reportName string) (result autorest.Response, err error)

ExecuteByBillingAccount the operation to execute a report by billing account. Parameters: billingAccountID - billingAccount ID reportName - report Name.

func (ReportsClient) ExecuteByBillingAccountPreparer

func (client ReportsClient) ExecuteByBillingAccountPreparer(ctx context.Context, billingAccountID string, reportName string) (*http.Request, error)

ExecuteByBillingAccountPreparer prepares the ExecuteByBillingAccount request.

func (ReportsClient) ExecuteByBillingAccountResponder

func (client ReportsClient) ExecuteByBillingAccountResponder(resp *http.Response) (result autorest.Response, err error)

ExecuteByBillingAccountResponder handles the response to the ExecuteByBillingAccount request. The method always closes the http.Response Body.

func (ReportsClient) ExecuteByBillingAccountSender

func (client ReportsClient) ExecuteByBillingAccountSender(req *http.Request) (*http.Response, error)

ExecuteByBillingAccountSender sends the ExecuteByBillingAccount request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) ExecuteByDepartment

func (client ReportsClient) ExecuteByDepartment(ctx context.Context, departmentID string, reportName string) (result autorest.Response, err error)

ExecuteByDepartment the operation to execute a report by department. Parameters: departmentID - department ID reportName - report Name.

func (ReportsClient) ExecuteByDepartmentPreparer

func (client ReportsClient) ExecuteByDepartmentPreparer(ctx context.Context, departmentID string, reportName string) (*http.Request, error)

ExecuteByDepartmentPreparer prepares the ExecuteByDepartment request.

func (ReportsClient) ExecuteByDepartmentResponder

func (client ReportsClient) ExecuteByDepartmentResponder(resp *http.Response) (result autorest.Response, err error)

ExecuteByDepartmentResponder handles the response to the ExecuteByDepartment request. The method always closes the http.Response Body.

func (ReportsClient) ExecuteByDepartmentSender

func (client ReportsClient) ExecuteByDepartmentSender(req *http.Request) (*http.Response, error)

ExecuteByDepartmentSender sends the ExecuteByDepartment request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) ExecuteByResourceGroupName

func (client ReportsClient) ExecuteByResourceGroupName(ctx context.Context, resourceGroupName string, reportName string) (result autorest.Response, err error)

ExecuteByResourceGroupName the operation to execute a report. Parameters: resourceGroupName - azure Resource Group Name. reportName - report Name.

func (ReportsClient) ExecuteByResourceGroupNamePreparer

func (client ReportsClient) ExecuteByResourceGroupNamePreparer(ctx context.Context, resourceGroupName string, reportName string) (*http.Request, error)

ExecuteByResourceGroupNamePreparer prepares the ExecuteByResourceGroupName request.

func (ReportsClient) ExecuteByResourceGroupNameResponder

func (client ReportsClient) ExecuteByResourceGroupNameResponder(resp *http.Response) (result autorest.Response, err error)

ExecuteByResourceGroupNameResponder handles the response to the ExecuteByResourceGroupName request. The method always closes the http.Response Body.

func (ReportsClient) ExecuteByResourceGroupNameSender

func (client ReportsClient) ExecuteByResourceGroupNameSender(req *http.Request) (*http.Response, error)

ExecuteByResourceGroupNameSender sends the ExecuteByResourceGroupName request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) ExecutePreparer

func (client ReportsClient) ExecutePreparer(ctx context.Context, reportName string) (*http.Request, error)

ExecutePreparer prepares the Execute request.

func (ReportsClient) ExecuteResponder

func (client ReportsClient) ExecuteResponder(resp *http.Response) (result autorest.Response, err error)

ExecuteResponder handles the response to the Execute request. The method always closes the http.Response Body.

func (ReportsClient) ExecuteSender

func (client ReportsClient) ExecuteSender(req *http.Request) (*http.Response, error)

ExecuteSender sends the Execute request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) Get

func (client ReportsClient) Get(ctx context.Context, reportName string) (result Report, err error)

Get gets the report for a subscription by report name. Parameters: reportName - report Name.

func (ReportsClient) GetByBillingAccount

func (client ReportsClient) GetByBillingAccount(ctx context.Context, billingAccountID string, reportName string) (result Report, err error)

GetByBillingAccount gets the report for a billing account by report name. Parameters: billingAccountID - billingAccount ID reportName - report Name.

func (ReportsClient) GetByBillingAccountPreparer

func (client ReportsClient) GetByBillingAccountPreparer(ctx context.Context, billingAccountID string, reportName string) (*http.Request, error)

GetByBillingAccountPreparer prepares the GetByBillingAccount request.

func (ReportsClient) GetByBillingAccountResponder

func (client ReportsClient) GetByBillingAccountResponder(resp *http.Response) (result Report, err error)

GetByBillingAccountResponder handles the response to the GetByBillingAccount request. The method always closes the http.Response Body.

func (ReportsClient) GetByBillingAccountSender

func (client ReportsClient) GetByBillingAccountSender(req *http.Request) (*http.Response, error)

GetByBillingAccountSender sends the GetByBillingAccount request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) GetByDepartment

func (client ReportsClient) GetByDepartment(ctx context.Context, departmentID string, reportName string) (result Report, err error)

GetByDepartment gets the report for a department by report name. Parameters: departmentID - department ID reportName - report Name.

func (ReportsClient) GetByDepartmentPreparer

func (client ReportsClient) GetByDepartmentPreparer(ctx context.Context, departmentID string, reportName string) (*http.Request, error)

GetByDepartmentPreparer prepares the GetByDepartment request.

func (ReportsClient) GetByDepartmentResponder

func (client ReportsClient) GetByDepartmentResponder(resp *http.Response) (result Report, err error)

GetByDepartmentResponder handles the response to the GetByDepartment request. The method always closes the http.Response Body.

func (ReportsClient) GetByDepartmentSender

func (client ReportsClient) GetByDepartmentSender(req *http.Request) (*http.Response, error)

GetByDepartmentSender sends the GetByDepartment request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) GetByResourceGroupName

func (client ReportsClient) GetByResourceGroupName(ctx context.Context, resourceGroupName string, reportName string) (result Report, err error)

GetByResourceGroupName gets the report for a resource group under a subscription by report name. Parameters: resourceGroupName - azure Resource Group Name. reportName - report Name.

func (ReportsClient) GetByResourceGroupNamePreparer

func (client ReportsClient) GetByResourceGroupNamePreparer(ctx context.Context, resourceGroupName string, reportName string) (*http.Request, error)

GetByResourceGroupNamePreparer prepares the GetByResourceGroupName request.

func (ReportsClient) GetByResourceGroupNameResponder

func (client ReportsClient) GetByResourceGroupNameResponder(resp *http.Response) (result Report, err error)

GetByResourceGroupNameResponder handles the response to the GetByResourceGroupName request. The method always closes the http.Response Body.

func (ReportsClient) GetByResourceGroupNameSender

func (client ReportsClient) GetByResourceGroupNameSender(req *http.Request) (*http.Response, error)

GetByResourceGroupNameSender sends the GetByResourceGroupName request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) GetExecutionHistory

func (client ReportsClient) GetExecutionHistory(ctx context.Context, reportName string) (result ReportExecutionListResult, err error)

GetExecutionHistory gets the execution history of a report for a subscription by report name. Parameters: reportName - report Name.

func (ReportsClient) GetExecutionHistoryByBillingAccount

func (client ReportsClient) GetExecutionHistoryByBillingAccount(ctx context.Context, billingAccountID string, reportName string) (result ReportExecutionListResult, err error)

GetExecutionHistoryByBillingAccount gets the execution history of a report for a billing account by report name. Parameters: billingAccountID - billingAccount ID reportName - report Name.

func (ReportsClient) GetExecutionHistoryByBillingAccountPreparer

func (client ReportsClient) GetExecutionHistoryByBillingAccountPreparer(ctx context.Context, billingAccountID string, reportName string) (*http.Request, error)

GetExecutionHistoryByBillingAccountPreparer prepares the GetExecutionHistoryByBillingAccount request.

func (ReportsClient) GetExecutionHistoryByBillingAccountResponder

func (client ReportsClient) GetExecutionHistoryByBillingAccountResponder(resp *http.Response) (result ReportExecutionListResult, err error)

GetExecutionHistoryByBillingAccountResponder handles the response to the GetExecutionHistoryByBillingAccount request. The method always closes the http.Response Body.

func (ReportsClient) GetExecutionHistoryByBillingAccountSender

func (client ReportsClient) GetExecutionHistoryByBillingAccountSender(req *http.Request) (*http.Response, error)

GetExecutionHistoryByBillingAccountSender sends the GetExecutionHistoryByBillingAccount request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) GetExecutionHistoryByDepartment

func (client ReportsClient) GetExecutionHistoryByDepartment(ctx context.Context, departmentID string, reportName string) (result ReportExecutionListResult, err error)

GetExecutionHistoryByDepartment gets the execution history of a report for a department by report name. Parameters: departmentID - department ID reportName - report Name.

func (ReportsClient) GetExecutionHistoryByDepartmentPreparer

func (client ReportsClient) GetExecutionHistoryByDepartmentPreparer(ctx context.Context, departmentID string, reportName string) (*http.Request, error)

GetExecutionHistoryByDepartmentPreparer prepares the GetExecutionHistoryByDepartment request.

func (ReportsClient) GetExecutionHistoryByDepartmentResponder

func (client ReportsClient) GetExecutionHistoryByDepartmentResponder(resp *http.Response) (result ReportExecutionListResult, err error)

GetExecutionHistoryByDepartmentResponder handles the response to the GetExecutionHistoryByDepartment request. The method always closes the http.Response Body.

func (ReportsClient) GetExecutionHistoryByDepartmentSender

func (client ReportsClient) GetExecutionHistoryByDepartmentSender(req *http.Request) (*http.Response, error)

GetExecutionHistoryByDepartmentSender sends the GetExecutionHistoryByDepartment request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) GetExecutionHistoryByResourceGroupName

func (client ReportsClient) GetExecutionHistoryByResourceGroupName(ctx context.Context, resourceGroupName string, reportName string) (result ReportExecutionListResult, err error)

GetExecutionHistoryByResourceGroupName gets the execution history of a report for a resource group by report name. Parameters: resourceGroupName - azure Resource Group Name. reportName - report Name.

func (ReportsClient) GetExecutionHistoryByResourceGroupNamePreparer

func (client ReportsClient) GetExecutionHistoryByResourceGroupNamePreparer(ctx context.Context, resourceGroupName string, reportName string) (*http.Request, error)

GetExecutionHistoryByResourceGroupNamePreparer prepares the GetExecutionHistoryByResourceGroupName request.

func (ReportsClient) GetExecutionHistoryByResourceGroupNameResponder

func (client ReportsClient) GetExecutionHistoryByResourceGroupNameResponder(resp *http.Response) (result ReportExecutionListResult, err error)

GetExecutionHistoryByResourceGroupNameResponder handles the response to the GetExecutionHistoryByResourceGroupName request. The method always closes the http.Response Body.

func (ReportsClient) GetExecutionHistoryByResourceGroupNameSender

func (client ReportsClient) GetExecutionHistoryByResourceGroupNameSender(req *http.Request) (*http.Response, error)

GetExecutionHistoryByResourceGroupNameSender sends the GetExecutionHistoryByResourceGroupName request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) GetExecutionHistoryPreparer

func (client ReportsClient) GetExecutionHistoryPreparer(ctx context.Context, reportName string) (*http.Request, error)

GetExecutionHistoryPreparer prepares the GetExecutionHistory request.

func (ReportsClient) GetExecutionHistoryResponder

func (client ReportsClient) GetExecutionHistoryResponder(resp *http.Response) (result ReportExecutionListResult, err error)

GetExecutionHistoryResponder handles the response to the GetExecutionHistory request. The method always closes the http.Response Body.

func (ReportsClient) GetExecutionHistorySender

func (client ReportsClient) GetExecutionHistorySender(req *http.Request) (*http.Response, error)

GetExecutionHistorySender sends the GetExecutionHistory request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) GetPreparer

func (client ReportsClient) GetPreparer(ctx context.Context, reportName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ReportsClient) GetResponder

func (client ReportsClient) GetResponder(resp *http.Response) (result Report, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ReportsClient) GetSender

func (client ReportsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) List

func (client ReportsClient) List(ctx context.Context) (result ReportListResult, err error)

List lists all reports for a subscription.

func (ReportsClient) ListByBillingAccount

func (client ReportsClient) ListByBillingAccount(ctx context.Context, billingAccountID string) (result ReportListResult, err error)

ListByBillingAccount lists all reports for a billing account. Parameters: billingAccountID - billingAccount ID

func (ReportsClient) ListByBillingAccountPreparer

func (client ReportsClient) ListByBillingAccountPreparer(ctx context.Context, billingAccountID string) (*http.Request, error)

ListByBillingAccountPreparer prepares the ListByBillingAccount request.

func (ReportsClient) ListByBillingAccountResponder

func (client ReportsClient) ListByBillingAccountResponder(resp *http.Response) (result ReportListResult, err error)

ListByBillingAccountResponder handles the response to the ListByBillingAccount request. The method always closes the http.Response Body.

func (ReportsClient) ListByBillingAccountSender

func (client ReportsClient) ListByBillingAccountSender(req *http.Request) (*http.Response, error)

ListByBillingAccountSender sends the ListByBillingAccount request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) ListByDepartment

func (client ReportsClient) ListByDepartment(ctx context.Context, departmentID string) (result ReportListResult, err error)

ListByDepartment lists all reports for a department. Parameters: departmentID - department ID

func (ReportsClient) ListByDepartmentPreparer

func (client ReportsClient) ListByDepartmentPreparer(ctx context.Context, departmentID string) (*http.Request, error)

ListByDepartmentPreparer prepares the ListByDepartment request.

func (ReportsClient) ListByDepartmentResponder

func (client ReportsClient) ListByDepartmentResponder(resp *http.Response) (result ReportListResult, err error)

ListByDepartmentResponder handles the response to the ListByDepartment request. The method always closes the http.Response Body.

func (ReportsClient) ListByDepartmentSender

func (client ReportsClient) ListByDepartmentSender(req *http.Request) (*http.Response, error)

ListByDepartmentSender sends the ListByDepartment request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) ListByResourceGroupName

func (client ReportsClient) ListByResourceGroupName(ctx context.Context, resourceGroupName string) (result ReportListResult, err error)

ListByResourceGroupName lists all reports for a resource group under a subscription. Parameters: resourceGroupName - azure Resource Group Name.

func (ReportsClient) ListByResourceGroupNamePreparer

func (client ReportsClient) ListByResourceGroupNamePreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupNamePreparer prepares the ListByResourceGroupName request.

func (ReportsClient) ListByResourceGroupNameResponder

func (client ReportsClient) ListByResourceGroupNameResponder(resp *http.Response) (result ReportListResult, err error)

ListByResourceGroupNameResponder handles the response to the ListByResourceGroupName request. The method always closes the http.Response Body.

func (ReportsClient) ListByResourceGroupNameSender

func (client ReportsClient) ListByResourceGroupNameSender(req *http.Request) (*http.Response, error)

ListByResourceGroupNameSender sends the ListByResourceGroupName request. The method will close the http.Response Body if it receives an error.

func (ReportsClient) ListPreparer

func (client ReportsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (ReportsClient) ListResponder

func (client ReportsClient) ListResponder(resp *http.Response) (result ReportListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ReportsClient) ListSender

func (client ReportsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Resource

type Resource struct {
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
	// Tags - READ-ONLY; Resource tags.
	Tags map[string]*string `json:"tags"`
}

Resource the Resource model definition.

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type ResourceGroupDimensionsClient

type ResourceGroupDimensionsClient struct {
	BaseClient
}

ResourceGroupDimensionsClient is the client for the ResourceGroupDimensions methods of the Costmanagement service.

func NewResourceGroupDimensionsClient

func NewResourceGroupDimensionsClient(subscriptionID string) ResourceGroupDimensionsClient

NewResourceGroupDimensionsClient creates an instance of the ResourceGroupDimensionsClient client.

func NewResourceGroupDimensionsClientWithBaseURI

func NewResourceGroupDimensionsClientWithBaseURI(baseURI string, subscriptionID string) ResourceGroupDimensionsClient

NewResourceGroupDimensionsClientWithBaseURI creates an instance of the ResourceGroupDimensionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ResourceGroupDimensionsClient) List

func (client ResourceGroupDimensionsClient) List(ctx context.Context, resourceGroupName string, filter string, expand string, skiptoken string, top *int32) (result DimensionsListResult, err error)

List lists the dimensions by resource group Id. Parameters: resourceGroupName - azure Resource Group Name. filter - may be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'. expand - may be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions. skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. top - may be used to limit the number of results to the most recent N dimension data.

func (ResourceGroupDimensionsClient) ListPreparer

func (client ResourceGroupDimensionsClient) ListPreparer(ctx context.Context, resourceGroupName string, filter string, expand string, skiptoken string, top *int32) (*http.Request, error)

ListPreparer prepares the List request.

func (ResourceGroupDimensionsClient) ListResponder

func (client ResourceGroupDimensionsClient) ListResponder(resp *http.Response) (result DimensionsListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ResourceGroupDimensionsClient) ListSender

func (client ResourceGroupDimensionsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type StatusType

type StatusType string

StatusType enumerates the values for status type.

const (
	// StatusTypeActive ...
	StatusTypeActive StatusType = "Active"
	// StatusTypeInactive ...
	StatusTypeInactive StatusType = "Inactive"
)

func PossibleStatusTypeValues

func PossibleStatusTypeValues() []StatusType

PossibleStatusTypeValues returns an array of possible values for the StatusType const type.

type SubscriptionDimensionsClient

type SubscriptionDimensionsClient struct {
	BaseClient
}

SubscriptionDimensionsClient is the client for the SubscriptionDimensions methods of the Costmanagement service.

func NewSubscriptionDimensionsClient

func NewSubscriptionDimensionsClient(subscriptionID string) SubscriptionDimensionsClient

NewSubscriptionDimensionsClient creates an instance of the SubscriptionDimensionsClient client.

func NewSubscriptionDimensionsClientWithBaseURI

func NewSubscriptionDimensionsClientWithBaseURI(baseURI string, subscriptionID string) SubscriptionDimensionsClient

NewSubscriptionDimensionsClientWithBaseURI creates an instance of the SubscriptionDimensionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (SubscriptionDimensionsClient) List

func (client SubscriptionDimensionsClient) List(ctx context.Context, filter string, expand string, skiptoken string, top *int32) (result DimensionsListResult, err error)

List lists the dimensions by subscription Id. Parameters: filter - may be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'. expand - may be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions. skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. top - may be used to limit the number of results to the most recent N dimension data.

func (SubscriptionDimensionsClient) ListPreparer

func (client SubscriptionDimensionsClient) ListPreparer(ctx context.Context, filter string, expand string, skiptoken string, top *int32) (*http.Request, error)

ListPreparer prepares the List request.

func (SubscriptionDimensionsClient) ListResponder

func (client SubscriptionDimensionsClient) ListResponder(resp *http.Response) (result DimensionsListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (SubscriptionDimensionsClient) ListSender

func (client SubscriptionDimensionsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type TimeframeType

type TimeframeType string

TimeframeType enumerates the values for timeframe type.

const (
	// Custom ...
	Custom TimeframeType = "Custom"
	// MonthToDate ...
	MonthToDate TimeframeType = "MonthToDate"
	// WeekToDate ...
	WeekToDate TimeframeType = "WeekToDate"
)

func PossibleTimeframeTypeValues

func PossibleTimeframeTypeValues() []TimeframeType

PossibleTimeframeTypeValues returns an array of possible values for the TimeframeType const type.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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