costmanagement

package
v20.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 31, 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 ReportClient

type ReportClient struct {
	BaseClient
}

ReportClient is the client for the Report methods of the Costmanagement service.

func NewReportClient

func NewReportClient(subscriptionID string) ReportClient

NewReportClient creates an instance of the ReportClient client.

func NewReportClientWithBaseURI

func NewReportClientWithBaseURI(baseURI string, subscriptionID string) ReportClient

NewReportClientWithBaseURI creates an instance of the ReportClient client.

func (ReportClient) CreateOrUpdate

func (client ReportClient) 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 (ReportClient) CreateOrUpdateByResourceGroupName

func (client ReportClient) 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 (ReportClient) CreateOrUpdateByResourceGroupNamePreparer

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

CreateOrUpdateByResourceGroupNamePreparer prepares the CreateOrUpdateByResourceGroupName request.

func (ReportClient) CreateOrUpdateByResourceGroupNameResponder

func (client ReportClient) 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 (ReportClient) CreateOrUpdateByResourceGroupNameSender

func (client ReportClient) 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 (ReportClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ReportClient) CreateOrUpdateResponder

func (client ReportClient) 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 (ReportClient) CreateOrUpdateSender

func (client ReportClient) 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 (ReportClient) Delete

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

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

func (ReportClient) DeleteByResourceGroupName

func (client ReportClient) 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 (ReportClient) DeleteByResourceGroupNamePreparer

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

DeleteByResourceGroupNamePreparer prepares the DeleteByResourceGroupName request.

func (ReportClient) DeleteByResourceGroupNameResponder

func (client ReportClient) 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 (ReportClient) DeleteByResourceGroupNameSender

func (client ReportClient) 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 (ReportClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ReportClient) DeleteResponder

func (client ReportClient) 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 (ReportClient) DeleteSender

func (client ReportClient) 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 (ReportClient) Execute

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

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

func (ReportClient) ExecuteByResourceGroupName

func (client ReportClient) 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 (ReportClient) ExecuteByResourceGroupNamePreparer

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

ExecuteByResourceGroupNamePreparer prepares the ExecuteByResourceGroupName request.

func (ReportClient) ExecuteByResourceGroupNameResponder

func (client ReportClient) 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 (ReportClient) ExecuteByResourceGroupNameSender

func (client ReportClient) 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 (ReportClient) ExecutePreparer

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

ExecutePreparer prepares the Execute request.

func (ReportClient) ExecuteResponder

func (client ReportClient) 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 (ReportClient) ExecuteSender

func (client ReportClient) 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 (ReportClient) Get

func (client ReportClient) 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 (ReportClient) GetByResourceGroupName

func (client ReportClient) 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 (ReportClient) GetByResourceGroupNamePreparer

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

GetByResourceGroupNamePreparer prepares the GetByResourceGroupName request.

func (ReportClient) GetByResourceGroupNameResponder

func (client ReportClient) 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 (ReportClient) GetByResourceGroupNameSender

func (client ReportClient) 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 (ReportClient) GetExecutionHistory

func (client ReportClient) 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 (ReportClient) GetExecutionHistoryByResourceGroupName

func (client ReportClient) 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 (ReportClient) GetExecutionHistoryByResourceGroupNamePreparer

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

GetExecutionHistoryByResourceGroupNamePreparer prepares the GetExecutionHistoryByResourceGroupName request.

func (ReportClient) GetExecutionHistoryByResourceGroupNameResponder

func (client ReportClient) 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 (ReportClient) GetExecutionHistoryByResourceGroupNameSender

func (client ReportClient) 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 (ReportClient) GetExecutionHistoryPreparer

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

GetExecutionHistoryPreparer prepares the GetExecutionHistory request.

func (ReportClient) GetExecutionHistoryResponder

func (client ReportClient) 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 (ReportClient) GetExecutionHistorySender

func (client ReportClient) 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 (ReportClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ReportClient) GetResponder

func (client ReportClient) 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 (ReportClient) GetSender

func (client ReportClient) 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 (ReportClient) List

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

List lists all reports for a subscription.

func (ReportClient) ListByResourceGroupName

func (client ReportClient) 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 (ReportClient) ListByResourceGroupNamePreparer

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

ListByResourceGroupNamePreparer prepares the ListByResourceGroupName request.

func (ReportClient) ListByResourceGroupNameResponder

func (client ReportClient) 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 (ReportClient) ListByResourceGroupNameSender

func (client ReportClient) 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 (ReportClient) ListPreparer

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

ListPreparer prepares the List request.

func (ReportClient) ListResponder

func (client ReportClient) 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 (ReportClient) ListSender

func (client ReportClient) 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 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 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