azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement Index | Files | Directories

package costmanagement

import "github.com/Azure/azure-sdk-for-go/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement"

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

Index

Package Files

alerts.go billingaccountdimensions.go client.go connector.go models.go operations.go reports.go resourcegroupdimensions.go subscriptiondimensions.go version.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type Alert Uses

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 Uses

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

MarshalJSON is the custom marshaler for Alert.

func (*Alert) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Alert struct.

type AlertCategory Uses

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 Uses

func PossibleAlertCategoryValues() []AlertCategory

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

type AlertCriteria Uses

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 Uses

func PossibleAlertCriteriaValues() []AlertCriteria

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

type AlertDefinition Uses

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 Uses

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 Uses

func (alr AlertListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AlertListResultIterator Uses

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

AlertListResultIterator provides access to a complete listing of Alert values.

func NewAlertListResultIterator Uses

func NewAlertListResultIterator(page AlertListResultPage) AlertListResultIterator

Creates a new instance of the AlertListResultIterator type.

func (*AlertListResultIterator) Next Uses

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 Uses

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 Uses

func (iter AlertListResultIterator) NotDone() bool

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

func (AlertListResultIterator) Response Uses

func (iter AlertListResultIterator) Response() AlertListResult

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

func (AlertListResultIterator) Value Uses

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 Uses

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

AlertListResultPage contains a page of Alert values.

func NewAlertListResultPage Uses

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

Creates a new instance of the AlertListResultPage type.

func (*AlertListResultPage) Next Uses

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 Uses

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 Uses

func (page AlertListResultPage) NotDone() bool

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

func (AlertListResultPage) Response Uses

func (page AlertListResultPage) Response() AlertListResult

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

func (AlertListResultPage) Values Uses

func (page AlertListResultPage) Values() []Alert

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

type AlertProperties Uses

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 Uses

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

MarshalJSON is the custom marshaler for AlertProperties.

type AlertSource Uses

type AlertSource string

AlertSource enumerates the values for alert source.

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

func PossibleAlertSourceValues Uses

func PossibleAlertSourceValues() []AlertSource

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

type AlertStatus Uses

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 Uses

func PossibleAlertStatusValues() []AlertStatus

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

type AlertType Uses

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 Uses

func PossibleAlertTypeValues() []AlertType

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

type AlertsClient Uses

type AlertsClient struct {
    BaseClient
}

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

func NewAlertsClient Uses

func NewAlertsClient(subscriptionID string) AlertsClient

NewAlertsClient creates an instance of the AlertsClient client.

func NewAlertsClientWithBaseURI Uses

func NewAlertsClientWithBaseURI(baseURI string, subscriptionID string) AlertsClient

NewAlertsClientWithBaseURI creates an instance of the AlertsClient client.

func (AlertsClient) GetAlertByManagementGroups Uses

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 Uses

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

GetAlertByManagementGroupsPreparer prepares the GetAlertByManagementGroups request.

func (AlertsClient) GetAlertByManagementGroupsResponder Uses

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 Uses

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 Uses

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 Uses

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

GetByAccountPreparer prepares the GetByAccount request.

func (AlertsClient) GetByAccountResponder Uses

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 Uses

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 Uses

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 Uses

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

GetByDepartmentPreparer prepares the GetByDepartment request.

func (AlertsClient) GetByDepartmentResponder Uses

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 Uses

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 Uses

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 Uses

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

GetByEnrollmentPreparer prepares the GetByEnrollment request.

func (AlertsClient) GetByEnrollmentResponder Uses

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 Uses

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 Uses

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 Uses

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

GetByResourceGroupNamePreparer prepares the GetByResourceGroupName request.

func (AlertsClient) GetByResourceGroupNameResponder Uses

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 Uses

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 Uses

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 Uses

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

GetBySubscriptionPreparer prepares the GetBySubscription request.

func (AlertsClient) GetBySubscriptionResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (AlertsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdateBillingAccountAlertStatusPreparer prepares the UpdateBillingAccountAlertStatus request.

func (AlertsClient) UpdateBillingAccountAlertStatusResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

UpdateManagementGroupAlertStatusPreparer prepares the UpdateManagementGroupAlertStatus request.

func (AlertsClient) UpdateManagementGroupAlertStatusResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdateResourceGroupNameAlertStatusPreparer prepares the UpdateResourceGroupNameAlertStatus request.

func (AlertsClient) UpdateResourceGroupNameAlertStatusResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdateSubscriptionAlertStatusPreparer prepares the UpdateSubscriptionAlertStatus request.

func (AlertsClient) UpdateSubscriptionAlertStatusResponder Uses

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 Uses

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 Uses

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

BaseClient is the base client for Costmanagement.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

func (BaseClient) QueryBillingAccount Uses

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 Uses

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

QueryBillingAccountPreparer prepares the QueryBillingAccount request.

func (BaseClient) QueryBillingAccountResponder Uses

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 Uses

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 Uses

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 Uses

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

QueryResourceGroupPreparer prepares the QueryResourceGroup request.

func (BaseClient) QueryResourceGroupResponder Uses

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 Uses

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 Uses

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 Uses

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

QuerySubscriptionPreparer prepares the QuerySubscription request.

func (BaseClient) QuerySubscriptionResponder Uses

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 Uses

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 Uses

type BillingAccountDimensionsClient struct {
    BaseClient
}

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

func NewBillingAccountDimensionsClient Uses

func NewBillingAccountDimensionsClient(subscriptionID string) BillingAccountDimensionsClient

NewBillingAccountDimensionsClient creates an instance of the BillingAccountDimensionsClient client.

func NewBillingAccountDimensionsClientWithBaseURI Uses

func NewBillingAccountDimensionsClientWithBaseURI(baseURI string, subscriptionID string) BillingAccountDimensionsClient

NewBillingAccountDimensionsClientWithBaseURI creates an instance of the BillingAccountDimensionsClient client.

func (BillingAccountDimensionsClient) List Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

type ConnectorClient struct {
    BaseClient
}

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

func NewConnectorClient Uses

func NewConnectorClient(subscriptionID string) ConnectorClient

NewConnectorClient creates an instance of the ConnectorClient client.

func NewConnectorClientWithBaseURI Uses

func NewConnectorClientWithBaseURI(baseURI string, subscriptionID string) ConnectorClient

NewConnectorClientWithBaseURI creates an instance of the ConnectorClient client.

func (ConnectorClient) CreateOrUpdate Uses

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 Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ConnectorClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (ConnectorClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ConnectorClient) GetResponder Uses

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 Uses

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 Uses

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

List list all connector definitions for a subscription

func (ConnectorClient) ListByResourceGroupName Uses

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 Uses

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

ListByResourceGroupNamePreparer prepares the ListByResourceGroupName request.

func (ConnectorClient) ListByResourceGroupNameResponder Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (ConnectorClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdatePreparer prepares the Update request.

func (ConnectorClient) UpdateResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for ConnectorDefinition.

func (*ConnectorDefinition) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ConnectorDefinition struct.

type ConnectorDefinitionListResult Uses

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 Uses

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 Uses

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 Uses

func PossibleConnectorStatusValues() []ConnectorStatus

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

type Dimension Uses

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 Uses

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

MarshalJSON is the custom marshaler for Dimension.

func (*Dimension) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Dimension struct.

type DimensionProperties Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func PossibleExecutionStatusValues() []ExecutionStatus

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

type ExecutionType Uses

type ExecutionType string

ExecutionType enumerates the values for execution type.

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

func PossibleExecutionTypeValues Uses

func PossibleExecutionTypeValues() []ExecutionType

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

type FormatType Uses

type FormatType string

FormatType enumerates the values for format type.

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

func PossibleFormatTypeValues Uses

func PossibleFormatTypeValues() []FormatType

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

type GranularityType Uses

type GranularityType string

GranularityType enumerates the values for granularity type.

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

func PossibleGranularityTypeValues Uses

func PossibleGranularityTypeValues() []GranularityType

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

type Operation Uses

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 Uses

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 Uses

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 Uses

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator Uses

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

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator Uses

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next Uses

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 Uses

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 Uses

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response Uses

func (iter OperationListResultIterator) Response() OperationListResult

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

func (OperationListResultIterator) Value Uses

func (iter OperationListResultIterator) Value() Operation

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

type OperationListResultPage Uses

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

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage Uses

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

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next Uses

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 Uses

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 Uses

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response Uses

func (page OperationListResultPage) Response() OperationListResult

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

func (OperationListResultPage) Values Uses

func (page OperationListResultPage) Values() []Operation

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

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

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

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

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 Uses

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

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

func (OperationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for Query.

func (*Query) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Query struct.

type QueryColumn Uses

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

QueryColumn ...

type QueryProperties Uses

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 Uses

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 Uses

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 Uses

func PossibleRecurrenceTypeValues() []RecurrenceType

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

type Report Uses

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 Uses

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

MarshalJSON is the custom marshaler for Report.

func (*Report) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Report struct.

type ReportAggregation Uses

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 Uses

type ReportColumnType string

ReportColumnType enumerates the values for report column type.

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

func PossibleReportColumnTypeValues Uses

func PossibleReportColumnTypeValues() []ReportColumnType

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

type ReportComparisonExpression Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for ReportDataset.

type ReportDatasetConfiguration Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for ReportExecution.

func (*ReportExecution) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ReportExecution struct.

type ReportExecutionListResult Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

type ReportsClient struct {
    BaseClient
}

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

func NewReportsClient Uses

func NewReportsClient(subscriptionID string) ReportsClient

NewReportsClient creates an instance of the ReportsClient client.

func NewReportsClientWithBaseURI Uses

func NewReportsClientWithBaseURI(baseURI string, subscriptionID string) ReportsClient

NewReportsClientWithBaseURI creates an instance of the ReportsClient client.

func (ReportsClient) CreateOrUpdate Uses

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 Uses

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 Uses

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

CreateOrUpdateByBillingAccountPreparer prepares the CreateOrUpdateByBillingAccount request.

func (ReportsClient) CreateOrUpdateByBillingAccountResponder Uses

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 Uses

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 Uses

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 Uses

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

CreateOrUpdateByDepartmentPreparer prepares the CreateOrUpdateByDepartment request.

func (ReportsClient) CreateOrUpdateByDepartmentResponder Uses

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 Uses

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 Uses

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 Uses

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

CreateOrUpdateByResourceGroupNamePreparer prepares the CreateOrUpdateByResourceGroupName request.

func (ReportsClient) CreateOrUpdateByResourceGroupNameResponder Uses

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 Uses

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 Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ReportsClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

DeleteByBillingAccountPreparer prepares the DeleteByBillingAccount request.

func (ReportsClient) DeleteByBillingAccountResponder Uses

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 Uses

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 Uses

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 Uses

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

DeleteByDepartmentPreparer prepares the DeleteByDepartment request.

func (ReportsClient) DeleteByDepartmentResponder Uses

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 Uses

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 Uses

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 Uses

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

DeleteByResourceGroupNamePreparer prepares the DeleteByResourceGroupName request.

func (ReportsClient) DeleteByResourceGroupNameResponder Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (ReportsClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ExecuteByBillingAccountPreparer prepares the ExecuteByBillingAccount request.

func (ReportsClient) ExecuteByBillingAccountResponder Uses

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 Uses

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 Uses

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 Uses

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

ExecuteByDepartmentPreparer prepares the ExecuteByDepartment request.

func (ReportsClient) ExecuteByDepartmentResponder Uses

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 Uses

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 Uses

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 Uses

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

ExecuteByResourceGroupNamePreparer prepares the ExecuteByResourceGroupName request.

func (ReportsClient) ExecuteByResourceGroupNameResponder Uses

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 Uses

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 Uses

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

ExecutePreparer prepares the Execute request.

func (ReportsClient) ExecuteResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

GetByBillingAccountPreparer prepares the GetByBillingAccount request.

func (ReportsClient) GetByBillingAccountResponder Uses

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 Uses

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 Uses

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 Uses

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

GetByDepartmentPreparer prepares the GetByDepartment request.

func (ReportsClient) GetByDepartmentResponder Uses

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 Uses

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 Uses

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 Uses

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

GetByResourceGroupNamePreparer prepares the GetByResourceGroupName request.

func (ReportsClient) GetByResourceGroupNameResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

GetExecutionHistoryByBillingAccountPreparer prepares the GetExecutionHistoryByBillingAccount request.

func (ReportsClient) GetExecutionHistoryByBillingAccountResponder Uses

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 Uses

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 Uses

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 Uses

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

GetExecutionHistoryByDepartmentPreparer prepares the GetExecutionHistoryByDepartment request.

func (ReportsClient) GetExecutionHistoryByDepartmentResponder Uses

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 Uses

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 Uses

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 Uses

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

GetExecutionHistoryByResourceGroupNamePreparer prepares the GetExecutionHistoryByResourceGroupName request.

func (ReportsClient) GetExecutionHistoryByResourceGroupNameResponder Uses

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 Uses

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 Uses

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

GetExecutionHistoryPreparer prepares the GetExecutionHistory request.

func (ReportsClient) GetExecutionHistoryResponder Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ReportsClient) GetResponder Uses

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 Uses

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 Uses

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

List lists all reports for a subscription.

func (ReportsClient) ListByBillingAccount Uses

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 Uses

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

ListByBillingAccountPreparer prepares the ListByBillingAccount request.

func (ReportsClient) ListByBillingAccountResponder Uses

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 Uses

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 Uses

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 Uses

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

ListByDepartmentPreparer prepares the ListByDepartment request.

func (ReportsClient) ListByDepartmentResponder Uses

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 Uses

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 Uses

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 Uses

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

ListByResourceGroupNamePreparer prepares the ListByResourceGroupName request.

func (ReportsClient) ListByResourceGroupNameResponder Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (ReportsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for Resource.

type ResourceGroupDimensionsClient Uses

type ResourceGroupDimensionsClient struct {
    BaseClient
}

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

func NewResourceGroupDimensionsClient Uses

func NewResourceGroupDimensionsClient(subscriptionID string) ResourceGroupDimensionsClient

NewResourceGroupDimensionsClient creates an instance of the ResourceGroupDimensionsClient client.

func NewResourceGroupDimensionsClientWithBaseURI Uses

func NewResourceGroupDimensionsClientWithBaseURI(baseURI string, subscriptionID string) ResourceGroupDimensionsClient

NewResourceGroupDimensionsClientWithBaseURI creates an instance of the ResourceGroupDimensionsClient client.

func (ResourceGroupDimensionsClient) List Uses

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 Uses

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 Uses

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 Uses

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 Uses

type StatusType string

StatusType enumerates the values for status type.

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

func PossibleStatusTypeValues Uses

func PossibleStatusTypeValues() []StatusType

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

type SubscriptionDimensionsClient Uses

type SubscriptionDimensionsClient struct {
    BaseClient
}

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

func NewSubscriptionDimensionsClient Uses

func NewSubscriptionDimensionsClient(subscriptionID string) SubscriptionDimensionsClient

NewSubscriptionDimensionsClient creates an instance of the SubscriptionDimensionsClient client.

func NewSubscriptionDimensionsClientWithBaseURI Uses

func NewSubscriptionDimensionsClientWithBaseURI(baseURI string, subscriptionID string) SubscriptionDimensionsClient

NewSubscriptionDimensionsClientWithBaseURI creates an instance of the SubscriptionDimensionsClient client.

func (SubscriptionDimensionsClient) List Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func PossibleTimeframeTypeValues() []TimeframeType

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

Directories

PathSynopsis
costmanagementapi

Package costmanagement imports 10 packages (graph) and is imported by 3 packages. Updated 2019-07-31. Refresh now. Tools for package owners.