costmanagement

package
v21.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

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

Index

Constants

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

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

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

func Version

func Version() string

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

Types

type BaseClient

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

BaseClient is the base client for Costmanagement.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

func (BaseClient) QueryBillingAccount

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

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

func (BaseClient) QueryBillingAccountPreparer

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

QueryBillingAccountPreparer prepares the QueryBillingAccount request.

func (BaseClient) QueryBillingAccountResponder

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

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

func (BaseClient) QueryBillingAccountSender

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

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

func (BaseClient) QueryResourceGroup

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

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

func (BaseClient) QueryResourceGroupPreparer

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

QueryResourceGroupPreparer prepares the QueryResourceGroup request.

func (BaseClient) QueryResourceGroupResponder

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

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

func (BaseClient) QueryResourceGroupSender

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

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

func (BaseClient) QuerySubscription

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

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

func (BaseClient) QuerySubscriptionPreparer

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

QuerySubscriptionPreparer prepares the QuerySubscription request.

func (BaseClient) QuerySubscriptionResponder

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

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

func (BaseClient) QuerySubscriptionSender

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

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

type BillingAccountDimensionsClient

type BillingAccountDimensionsClient struct {
	BaseClient
}

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

func NewBillingAccountDimensionsClient

func NewBillingAccountDimensionsClient(subscriptionID string) BillingAccountDimensionsClient

NewBillingAccountDimensionsClient creates an instance of the BillingAccountDimensionsClient client.

func NewBillingAccountDimensionsClientWithBaseURI

func NewBillingAccountDimensionsClientWithBaseURI(baseURI string, subscriptionID string) BillingAccountDimensionsClient

NewBillingAccountDimensionsClientWithBaseURI creates an instance of the BillingAccountDimensionsClient client.

func (BillingAccountDimensionsClient) List

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

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

func (BillingAccountDimensionsClient) ListPreparer

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

ListPreparer prepares the List request.

func (BillingAccountDimensionsClient) ListResponder

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

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

func (BillingAccountDimensionsClient) ListSender

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

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

type CommonReportProperties

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

CommonReportProperties the common properties of the report.

type ConnectorClient

type ConnectorClient struct {
	BaseClient
}

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

func NewConnectorClient

func NewConnectorClient(subscriptionID string) ConnectorClient

NewConnectorClient creates an instance of the ConnectorClient client.

func NewConnectorClientWithBaseURI

func NewConnectorClientWithBaseURI(baseURI string, subscriptionID string) ConnectorClient

NewConnectorClientWithBaseURI creates an instance of the ConnectorClient client.

func (ConnectorClient) CreateOrUpdate

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

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

func (ConnectorClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ConnectorClient) CreateOrUpdateResponder

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

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

func (ConnectorClient) CreateOrUpdateSender

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

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

func (ConnectorClient) Delete

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

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

func (ConnectorClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ConnectorClient) DeleteResponder

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

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

func (ConnectorClient) DeleteSender

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

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

func (ConnectorClient) Get

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

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

func (ConnectorClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ConnectorClient) GetResponder

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

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

func (ConnectorClient) GetSender

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

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

func (ConnectorClient) List

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

List list all connector definitions for a subscription

func (ConnectorClient) ListByResourceGroupName

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

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

func (ConnectorClient) ListByResourceGroupNamePreparer

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

ListByResourceGroupNamePreparer prepares the ListByResourceGroupName request.

func (ConnectorClient) ListByResourceGroupNameResponder

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

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

func (ConnectorClient) ListByResourceGroupNameSender

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

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

func (ConnectorClient) ListPreparer

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

ListPreparer prepares the List request.

func (ConnectorClient) ListResponder

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

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

func (ConnectorClient) ListSender

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

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

func (ConnectorClient) Update

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

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

func (ConnectorClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (ConnectorClient) UpdateResponder

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

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

func (ConnectorClient) UpdateSender

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

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

type ConnectorCollectionErrorInfo

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

ConnectorCollectionErrorInfo details of any error encountered on last collection attempt

type ConnectorCollectionInfo

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

ConnectorCollectionInfo collection and ingestion information

type ConnectorDefinition

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

ConnectorDefinition the Connector model definition

func (ConnectorDefinition) MarshalJSON

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

MarshalJSON is the custom marshaler for ConnectorDefinition.

func (*ConnectorDefinition) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ConnectorDefinition struct.

type ConnectorDefinitionListResult

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

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

type ConnectorProperties

type ConnectorProperties struct {
	// DisplayName - Connector DisplayName (defaults to Name)
	DisplayName *string `json:"displayName,omitempty"`
	// ProviderAccountID - 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 - Connector definition creation datetime
	CreatedOn *date.Time `json:"createdOn,omitempty"`
	// ModifiedOn - Connector last modified datetime
	ModifiedOn *date.Time `json:"modifiedOn,omitempty"`
	// Status - Connector status. Possible values include: 'Active', 'Error', 'Suspended'
	Status ConnectorStatus `json:"status,omitempty"`
	// Collection - Collection information
	Collection *ConnectorCollectionInfo `json:"collection,omitempty"`
}

ConnectorProperties the properties of a Connector

type ConnectorStatus

type ConnectorStatus string

ConnectorStatus enumerates the values for connector status.

const (
	// Active ...
	Active ConnectorStatus = "active"
	// Error ...
	Error ConnectorStatus = "error"
	// Suspended ...
	Suspended ConnectorStatus = "suspended"
)

func PossibleConnectorStatusValues

func PossibleConnectorStatusValues() []ConnectorStatus

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

type Dimension

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

Dimension ...

func (Dimension) MarshalJSON

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

MarshalJSON is the custom marshaler for Dimension.

func (*Dimension) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Dimension struct.

type DimensionProperties

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

DimensionProperties ...

type DimensionsListResult

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

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

type ErrorBase

type ErrorBase struct {
	// Code - A machine readable error code.
	Code *string `json:"code,omitempty"`
	// Message - 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"`
}

ErrorBase the details of the error.

type ErrorDetails

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

ErrorDetails the details of the error.

type ErrorResponse

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

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

type ExecutionStatus

type ExecutionStatus string

ExecutionStatus enumerates the values for execution status.

const (
	// Completed ...
	Completed ExecutionStatus = "Completed"
	// Failed ...
	Failed ExecutionStatus = "Failed"
	// InProgress ...
	InProgress ExecutionStatus = "InProgress"
	// Queud ...
	Queud ExecutionStatus = "Queud"
	// Timeout ...
	Timeout ExecutionStatus = "Timeout"
)

func PossibleExecutionStatusValues

func PossibleExecutionStatusValues() []ExecutionStatus

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

type ExecutionType

type ExecutionType string

ExecutionType enumerates the values for execution type.

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

func PossibleExecutionTypeValues

func PossibleExecutionTypeValues() []ExecutionType

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

type FormatType

type FormatType string

FormatType enumerates the values for format type.

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

func PossibleFormatTypeValues

func PossibleFormatTypeValues() []FormatType

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

type GranularityType

type GranularityType string

GranularityType enumerates the values for granularity type.

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

func PossibleGranularityTypeValues

func PossibleGranularityTypeValues() []GranularityType

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

type Query

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

Query ...

func (Query) MarshalJSON

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

MarshalJSON is the custom marshaler for Query.

func (*Query) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Query struct.

type QueryColumn

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

QueryColumn ...

type QueryProperties

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

QueryProperties ...

type QueryResult

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

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

type RecurrenceType

type RecurrenceType string

RecurrenceType enumerates the values for recurrence type.

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

func PossibleRecurrenceTypeValues

func PossibleRecurrenceTypeValues() []RecurrenceType

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

type Report

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

Report a report resource.

func (Report) MarshalJSON

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

MarshalJSON is the custom marshaler for Report.

func (*Report) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Report struct.

type ReportAggregation

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

ReportAggregation the aggregation expression to be used in the report.

type ReportColumnType

type ReportColumnType string

ReportColumnType enumerates the values for report column type.

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

func PossibleReportColumnTypeValues

func PossibleReportColumnTypeValues() []ReportColumnType

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

type ReportComparisonExpression

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

ReportComparisonExpression the comparison expression to be used in the report.

type ReportDataset

type ReportDataset struct {
	// Granularity - The granularity of rows in the report. Possible values include: 'Daily'
	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 upto 2 aggregation clauses.
	Aggregation map[string]*ReportAggregation `json:"aggregation"`
	// Grouping - Array of group by expression to use in the report. Report can have upto 2 group by clauses.
	Grouping *[]ReportGrouping `json:"grouping,omitempty"`
	// Filter - Has filter expression to use in the report.
	Filter *ReportFilter `json:"filter,omitempty"`
}

ReportDataset the definition of data present in the report.

func (ReportDataset) MarshalJSON

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

MarshalJSON is the custom marshaler for ReportDataset.

type ReportDatasetConfiguration

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

ReportDatasetConfiguration the configuration of dataset in the report.

type ReportDefinition

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

ReportDefinition the definition of a report.

type ReportDeliveryDestination

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

ReportDeliveryDestination the destination information for the delivery of the report.

type ReportDeliveryInfo

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

ReportDeliveryInfo the delivery information associated with a report.

type ReportExecution

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

ReportExecution a report exeuction.

func (ReportExecution) MarshalJSON

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

MarshalJSON is the custom marshaler for ReportExecution.

func (*ReportExecution) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ReportExecution struct.

type ReportExecutionListResult

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

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

type ReportExecutionProperties

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

ReportExecutionProperties the properties of the report execution.

type ReportFilter

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

ReportFilter the filter expression to be used in the report.

type ReportGrouping

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

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

type ReportListResult

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

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

type ReportProperties

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

ReportProperties the properties of the report.

type ReportRecurrencePeriod

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

ReportRecurrencePeriod the start and end date for recurrence schedule.

type ReportSchedule

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

ReportSchedule the schedule associated with a report.

type ReportTimePeriod

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

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

type ReportsClient

type ReportsClient struct {
	BaseClient
}

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

func NewReportsClient

func NewReportsClient(subscriptionID string) ReportsClient

NewReportsClient creates an instance of the ReportsClient client.

func NewReportsClientWithBaseURI

func NewReportsClientWithBaseURI(baseURI string, subscriptionID string) ReportsClient

NewReportsClientWithBaseURI creates an instance of the ReportsClient client.

func (ReportsClient) CreateOrUpdate

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

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

func (ReportsClient) CreateOrUpdateByBillingAccount

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

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

func (ReportsClient) CreateOrUpdateByBillingAccountPreparer

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

CreateOrUpdateByBillingAccountPreparer prepares the CreateOrUpdateByBillingAccount request.

func (ReportsClient) CreateOrUpdateByBillingAccountResponder

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

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

func (ReportsClient) CreateOrUpdateByBillingAccountSender

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

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

func (ReportsClient) CreateOrUpdateByDepartment

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

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

func (ReportsClient) CreateOrUpdateByDepartmentPreparer

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

CreateOrUpdateByDepartmentPreparer prepares the CreateOrUpdateByDepartment request.

func (ReportsClient) CreateOrUpdateByDepartmentResponder

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

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

func (ReportsClient) CreateOrUpdateByDepartmentSender

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

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

func (ReportsClient) CreateOrUpdateByResourceGroupName

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

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

func (ReportsClient) CreateOrUpdateByResourceGroupNamePreparer

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

CreateOrUpdateByResourceGroupNamePreparer prepares the CreateOrUpdateByResourceGroupName request.

func (ReportsClient) CreateOrUpdateByResourceGroupNameResponder

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

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

func (ReportsClient) CreateOrUpdateByResourceGroupNameSender

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

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

func (ReportsClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ReportsClient) CreateOrUpdateResponder

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

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

func (ReportsClient) CreateOrUpdateSender

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

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

func (ReportsClient) Delete

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

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

func (ReportsClient) DeleteByBillingAccount

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

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

func (ReportsClient) DeleteByBillingAccountPreparer

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

DeleteByBillingAccountPreparer prepares the DeleteByBillingAccount request.

func (ReportsClient) DeleteByBillingAccountResponder

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

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

func (ReportsClient) DeleteByBillingAccountSender

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

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

func (ReportsClient) DeleteByDepartment

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

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

func (ReportsClient) DeleteByDepartmentPreparer

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

DeleteByDepartmentPreparer prepares the DeleteByDepartment request.

func (ReportsClient) DeleteByDepartmentResponder

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

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

func (ReportsClient) DeleteByDepartmentSender

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

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

func (ReportsClient) DeleteByResourceGroupName

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

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

func (ReportsClient) DeleteByResourceGroupNamePreparer

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

DeleteByResourceGroupNamePreparer prepares the DeleteByResourceGroupName request.

func (ReportsClient) DeleteByResourceGroupNameResponder

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

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

func (ReportsClient) DeleteByResourceGroupNameSender

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

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

func (ReportsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ReportsClient) DeleteResponder

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

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

func (ReportsClient) DeleteSender

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

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

func (ReportsClient) Execute

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

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

func (ReportsClient) ExecuteByBillingAccount

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

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

func (ReportsClient) ExecuteByBillingAccountPreparer

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

ExecuteByBillingAccountPreparer prepares the ExecuteByBillingAccount request.

func (ReportsClient) ExecuteByBillingAccountResponder

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

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

func (ReportsClient) ExecuteByBillingAccountSender

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

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

func (ReportsClient) ExecuteByDepartment

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

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

func (ReportsClient) ExecuteByDepartmentPreparer

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

ExecuteByDepartmentPreparer prepares the ExecuteByDepartment request.

func (ReportsClient) ExecuteByDepartmentResponder

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

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

func (ReportsClient) ExecuteByDepartmentSender

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

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

func (ReportsClient) ExecuteByResourceGroupName

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

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

func (ReportsClient) ExecuteByResourceGroupNamePreparer

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

ExecuteByResourceGroupNamePreparer prepares the ExecuteByResourceGroupName request.

func (ReportsClient) ExecuteByResourceGroupNameResponder

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

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

func (ReportsClient) ExecuteByResourceGroupNameSender

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

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

func (ReportsClient) ExecutePreparer

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

ExecutePreparer prepares the Execute request.

func (ReportsClient) ExecuteResponder

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

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

func (ReportsClient) ExecuteSender

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

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

func (ReportsClient) Get

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

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

func (ReportsClient) GetByBillingAccount

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

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

func (ReportsClient) GetByBillingAccountPreparer

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

GetByBillingAccountPreparer prepares the GetByBillingAccount request.

func (ReportsClient) GetByBillingAccountResponder

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

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

func (ReportsClient) GetByBillingAccountSender

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

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

func (ReportsClient) GetByDepartment

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

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

func (ReportsClient) GetByDepartmentPreparer

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

GetByDepartmentPreparer prepares the GetByDepartment request.

func (ReportsClient) GetByDepartmentResponder

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

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

func (ReportsClient) GetByDepartmentSender

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

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

func (ReportsClient) GetByResourceGroupName

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

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

func (ReportsClient) GetByResourceGroupNamePreparer

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

GetByResourceGroupNamePreparer prepares the GetByResourceGroupName request.

func (ReportsClient) GetByResourceGroupNameResponder

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

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

func (ReportsClient) GetByResourceGroupNameSender

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

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

func (ReportsClient) GetExecutionHistory

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

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

func (ReportsClient) GetExecutionHistoryByBillingAccount

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

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

func (ReportsClient) GetExecutionHistoryByBillingAccountPreparer

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

GetExecutionHistoryByBillingAccountPreparer prepares the GetExecutionHistoryByBillingAccount request.

func (ReportsClient) GetExecutionHistoryByBillingAccountResponder

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

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

func (ReportsClient) GetExecutionHistoryByBillingAccountSender

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

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

func (ReportsClient) GetExecutionHistoryByDepartment

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

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

func (ReportsClient) GetExecutionHistoryByDepartmentPreparer

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

GetExecutionHistoryByDepartmentPreparer prepares the GetExecutionHistoryByDepartment request.

func (ReportsClient) GetExecutionHistoryByDepartmentResponder

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

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

func (ReportsClient) GetExecutionHistoryByDepartmentSender

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

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

func (ReportsClient) GetExecutionHistoryByResourceGroupName

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

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

func (ReportsClient) GetExecutionHistoryByResourceGroupNamePreparer

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

GetExecutionHistoryByResourceGroupNamePreparer prepares the GetExecutionHistoryByResourceGroupName request.

func (ReportsClient) GetExecutionHistoryByResourceGroupNameResponder

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

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

func (ReportsClient) GetExecutionHistoryByResourceGroupNameSender

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

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

func (ReportsClient) GetExecutionHistoryPreparer

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

GetExecutionHistoryPreparer prepares the GetExecutionHistory request.

func (ReportsClient) GetExecutionHistoryResponder

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

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

func (ReportsClient) GetExecutionHistorySender

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

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

func (ReportsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ReportsClient) GetResponder

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

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

func (ReportsClient) GetSender

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

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

func (ReportsClient) List

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

List lists all reports for a subscription.

func (ReportsClient) ListByBillingAccount

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

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

func (ReportsClient) ListByBillingAccountPreparer

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

ListByBillingAccountPreparer prepares the ListByBillingAccount request.

func (ReportsClient) ListByBillingAccountResponder

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

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

func (ReportsClient) ListByBillingAccountSender

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

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

func (ReportsClient) ListByDepartment

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

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

func (ReportsClient) ListByDepartmentPreparer

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

ListByDepartmentPreparer prepares the ListByDepartment request.

func (ReportsClient) ListByDepartmentResponder

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

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

func (ReportsClient) ListByDepartmentSender

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

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

func (ReportsClient) ListByResourceGroupName

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

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

func (ReportsClient) ListByResourceGroupNamePreparer

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

ListByResourceGroupNamePreparer prepares the ListByResourceGroupName request.

func (ReportsClient) ListByResourceGroupNameResponder

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

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

func (ReportsClient) ListByResourceGroupNameSender

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

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

func (ReportsClient) ListPreparer

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

ListPreparer prepares the List request.

func (ReportsClient) ListResponder

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

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

func (ReportsClient) ListSender

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

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

type Resource

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

Resource the Resource model definition.

func (Resource) MarshalJSON

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

MarshalJSON is the custom marshaler for Resource.

type ResourceGroupDimensionsClient

type ResourceGroupDimensionsClient struct {
	BaseClient
}

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

func NewResourceGroupDimensionsClient

func NewResourceGroupDimensionsClient(subscriptionID string) ResourceGroupDimensionsClient

NewResourceGroupDimensionsClient creates an instance of the ResourceGroupDimensionsClient client.

func NewResourceGroupDimensionsClientWithBaseURI

func NewResourceGroupDimensionsClientWithBaseURI(baseURI string, subscriptionID string) ResourceGroupDimensionsClient

NewResourceGroupDimensionsClientWithBaseURI creates an instance of the ResourceGroupDimensionsClient client.

func (ResourceGroupDimensionsClient) List

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

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

func (ResourceGroupDimensionsClient) ListPreparer

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

ListPreparer prepares the List request.

func (ResourceGroupDimensionsClient) ListResponder

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

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

func (ResourceGroupDimensionsClient) ListSender

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

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

type StatusType

type StatusType string

StatusType enumerates the values for status type.

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

func PossibleStatusTypeValues

func PossibleStatusTypeValues() []StatusType

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

type SubscriptionDimensionsClient

type SubscriptionDimensionsClient struct {
	BaseClient
}

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

func NewSubscriptionDimensionsClient

func NewSubscriptionDimensionsClient(subscriptionID string) SubscriptionDimensionsClient

NewSubscriptionDimensionsClient creates an instance of the SubscriptionDimensionsClient client.

func NewSubscriptionDimensionsClientWithBaseURI

func NewSubscriptionDimensionsClientWithBaseURI(baseURI string, subscriptionID string) SubscriptionDimensionsClient

NewSubscriptionDimensionsClientWithBaseURI creates an instance of the SubscriptionDimensionsClient client.

func (SubscriptionDimensionsClient) List

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

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

func (SubscriptionDimensionsClient) ListPreparer

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

ListPreparer prepares the List request.

func (SubscriptionDimensionsClient) ListResponder

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

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

func (SubscriptionDimensionsClient) ListSender

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

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

type TimeframeType

type TimeframeType string

TimeframeType enumerates the values for timeframe type.

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

func PossibleTimeframeTypeValues

func PossibleTimeframeTypeValues() []TimeframeType

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

Jump to

Keyboard shortcuts

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