costmanagement

package
v40.1.0+incompatible Latest Latest
Warning

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

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

Documentation

Overview

Package costmanagement implements the Azure ARM Costmanagement service API version 2019-03-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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type BasicShowbackRuleProperties

type BasicShowbackRuleProperties interface {
	AsCustomPriceDetailsKind() (*CustomPriceDetailsKind, bool)
	AsCostAllocationDetailsKind() (*CostAllocationDetailsKind, bool)
	AsShowbackRuleProperties() (*ShowbackRuleProperties, bool)
}

BasicShowbackRuleProperties the properties of a showback rule.

type CloudConnectorClient

type CloudConnectorClient struct {
	BaseClient
}

CloudConnectorClient is the client for the CloudConnector methods of the Costmanagement service.

func NewCloudConnectorClient

func NewCloudConnectorClient(subscriptionID string) CloudConnectorClient

NewCloudConnectorClient creates an instance of the CloudConnectorClient client.

func NewCloudConnectorClientWithBaseURI

func NewCloudConnectorClientWithBaseURI(baseURI string, subscriptionID string) CloudConnectorClient

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

func (CloudConnectorClient) CreateOrUpdate

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

CreateOrUpdate create or update a cloud connector definition Parameters: connectorName - connector Name. connector - connector details

func (CloudConnectorClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (CloudConnectorClient) CreateOrUpdateResponder

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

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

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

Delete delete a cloud connector definition Parameters: connectorName - connector Name.

func (CloudConnectorClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (CloudConnectorClient) DeleteResponder

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

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

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

Get get a cloud connector definition Parameters: connectorName - connector Name. expand - may be used to expand the collectionInfo property. By default, collectionInfo is not included.

func (CloudConnectorClient) GetPreparer

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

GetPreparer prepares the Get request.

func (CloudConnectorClient) GetResponder

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

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

List list all cloud connector definitions

func (CloudConnectorClient) ListPreparer

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

ListPreparer prepares the List request.

func (CloudConnectorClient) ListResponder

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

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

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

Update update a cloud connector definition Parameters: connectorName - connector Name. connector - connector details

func (CloudConnectorClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (CloudConnectorClient) UpdateResponder

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

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

type ConnectorBillingModel string

ConnectorBillingModel enumerates the values for connector billing model.

const (
	// AutoUpgrade ...
	AutoUpgrade ConnectorBillingModel = "autoUpgrade"
	// Expired ...
	Expired ConnectorBillingModel = "expired"
	// Premium ...
	Premium ConnectorBillingModel = "premium"
	// Trial ...
	Trial ConnectorBillingModel = "trial"
)

func PossibleConnectorBillingModelValues

func PossibleConnectorBillingModelValues() []ConnectorBillingModel

PossibleConnectorBillingModelValues returns an array of possible values for the ConnectorBillingModel const type.

type ConnectorCollectionErrorInfo

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

ConnectorCollectionErrorInfo details of any error encountered on last collection attempt

type ConnectorCollectionInfo

type ConnectorCollectionInfo struct {
	// LastChecked - READ-ONLY; Last time the data acquisition process initiated connecting to the external provider
	LastChecked *date.Time `json:"lastChecked,omitempty"`
	// SourceLastUpdated - READ-ONLY; Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)
	SourceLastUpdated *date.Time `json:"sourceLastUpdated,omitempty"`
	// LastUpdated - READ-ONLY; Last time the external data was updated into Azure
	LastUpdated *date.Time `json:"lastUpdated,omitempty"`
	// Error - Error information of last collection
	Error *ConnectorCollectionErrorInfo `json:"error,omitempty"`
}

ConnectorCollectionInfo collection and ingestion information

type ConnectorDefinition

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

ConnectorDefinition the Connector model definition

func (ConnectorDefinition) MarshalJSON

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

MarshalJSON is the custom marshaler for ConnectorDefinition.

func (*ConnectorDefinition) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ConnectorDefinition struct.

type ConnectorDefinitionListResult

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

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

type ConnectorProperties

type ConnectorProperties struct {
	// DisplayName - Connector DisplayName
	DisplayName *string `json:"displayName,omitempty"`
	// ProviderBillingAccountID - READ-ONLY; Connector providerBillingAccountId, determined from credentials (eg AWS Consolidated account number)
	ProviderBillingAccountID *string `json:"providerBillingAccountId,omitempty"`
	// ProviderBillingAccountDisplayName - READ-ONLY; The display name of the providerBillingAccountId as defined on the external provider
	ProviderBillingAccountDisplayName *string `json:"providerBillingAccountDisplayName,omitempty"`
	// CredentialsKey - Credentials authentication key (eg AWS ARN)
	CredentialsKey *string `json:"credentialsKey,omitempty"`
	// CredentialsSecret - Credentials secret (eg AWS ExternalId)
	CredentialsSecret *string `json:"credentialsSecret,omitempty"`
	// ReportID - Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
	ReportID *string `json:"reportId,omitempty"`
	// CreatedOn - READ-ONLY; Connector definition creation datetime
	CreatedOn *date.Time `json:"createdOn,omitempty"`
	// ModifiedOn - READ-ONLY; Connector last modified datetime
	ModifiedOn *date.Time `json:"modifiedOn,omitempty"`
	// Status - READ-ONLY; Connector status. Possible values include: 'ConnectorStatusActive', 'ConnectorStatusError', 'ConnectorStatusExpired', 'ConnectorStatusWarning'
	Status ConnectorStatus `json:"status,omitempty"`
	// ExternalBillingAccountID - READ-ONLY; Associated ExternalBillingAccountId
	ExternalBillingAccountID *string `json:"externalBillingAccountId,omitempty"`
	// DefaultManagementGroupID - Default ManagementGroupId
	DefaultManagementGroupID *string `json:"defaultManagementGroupId,omitempty"`
	// SubscriptionID - Billing SubscriptionId
	SubscriptionID *string `json:"subscriptionId,omitempty"`
	// BillingModel - Connector billing model. Possible values include: 'Trial', 'AutoUpgrade', 'Premium', 'Expired'
	BillingModel ConnectorBillingModel `json:"billingModel,omitempty"`
	// DaysTrialRemaining - READ-ONLY; Number of days remaining of trial
	DaysTrialRemaining *int32 `json:"daysTrialRemaining,omitempty"`
	// CollectionInfo - READ-ONLY; Collection information
	CollectionInfo *ConnectorCollectionInfo `json:"collectionInfo,omitempty"`
}

ConnectorProperties the properties of a Connector

type ConnectorStatus

type ConnectorStatus string

ConnectorStatus enumerates the values for connector status.

const (
	// ConnectorStatusActive ...
	ConnectorStatusActive ConnectorStatus = "active"
	// ConnectorStatusError ...
	ConnectorStatusError ConnectorStatus = "error"
	// ConnectorStatusExpired ...
	ConnectorStatusExpired ConnectorStatus = "expired"
	// ConnectorStatusWarning ...
	ConnectorStatusWarning ConnectorStatus = "warning"
)

func PossibleConnectorStatusValues

func PossibleConnectorStatusValues() []ConnectorStatus

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

type CostAllocationDetails

type CostAllocationDetails struct {
	// Policy - Cost allocation policy. Possible values include: 'Proportional', 'Evenly', 'Fixed'
	Policy CostAllocationPolicy `json:"policy,omitempty"`
}

CostAllocationDetails represents CostAllocation showback rule model

type CostAllocationDetailsKind

type CostAllocationDetailsKind struct {
	// CostAllocationDetails - The CostAllocation properties to validate.
	*CostAllocationDetails `json:"details,omitempty"`
	// Description - Description of a showback rule.
	Description *string `json:"description,omitempty"`
	// Status - The current status of the showback rule. Possible values include: 'NotActive', 'Active'
	Status ShowbackRuleStatus `json:"status,omitempty"`
	// Version - READ-ONLY; The current version of showback rule.
	Version *int32 `json:"version,omitempty"`
	// Scopes - List of authorized assigned scopes.
	Scopes *[]Scope `json:"scopes,omitempty"`
	// CreationTime - READ-ONLY; The time when the showback rule was created.
	CreationTime *date.Time `json:"creationTime,omitempty"`
	// DeprecationTime - READ-ONLY; The current time when showback rule was deprecate.
	DeprecationTime *date.Time `json:"deprecationTime,omitempty"`
	// ModificationTime - READ-ONLY; The current status when showback rule was modified.
	ModificationTime *date.Time `json:"modificationTime,omitempty"`
	// RuleType - Possible values include: 'RuleTypeShowbackRuleProperties', 'RuleTypeCustomPrice', 'RuleTypeCostAllocation'
	RuleType RuleType `json:"ruleType,omitempty"`
}

CostAllocationDetailsKind represents CostAllocation showback rule model

func (CostAllocationDetailsKind) AsBasicShowbackRuleProperties

func (cadk CostAllocationDetailsKind) AsBasicShowbackRuleProperties() (BasicShowbackRuleProperties, bool)

AsBasicShowbackRuleProperties is the BasicShowbackRuleProperties implementation for CostAllocationDetailsKind.

func (CostAllocationDetailsKind) AsCostAllocationDetailsKind

func (cadk CostAllocationDetailsKind) AsCostAllocationDetailsKind() (*CostAllocationDetailsKind, bool)

AsCostAllocationDetailsKind is the BasicShowbackRuleProperties implementation for CostAllocationDetailsKind.

func (CostAllocationDetailsKind) AsCustomPriceDetailsKind

func (cadk CostAllocationDetailsKind) AsCustomPriceDetailsKind() (*CustomPriceDetailsKind, bool)

AsCustomPriceDetailsKind is the BasicShowbackRuleProperties implementation for CostAllocationDetailsKind.

func (CostAllocationDetailsKind) AsShowbackRuleProperties

func (cadk CostAllocationDetailsKind) AsShowbackRuleProperties() (*ShowbackRuleProperties, bool)

AsShowbackRuleProperties is the BasicShowbackRuleProperties implementation for CostAllocationDetailsKind.

func (CostAllocationDetailsKind) MarshalJSON

func (cadk CostAllocationDetailsKind) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CostAllocationDetailsKind.

func (*CostAllocationDetailsKind) UnmarshalJSON

func (cadk *CostAllocationDetailsKind) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CostAllocationDetailsKind struct.

type CostAllocationPolicy

type CostAllocationPolicy string

CostAllocationPolicy enumerates the values for cost allocation policy.

const (
	// Evenly ...
	Evenly CostAllocationPolicy = "Evenly"
	// Fixed ...
	Fixed CostAllocationPolicy = "Fixed"
	// Proportional ...
	Proportional CostAllocationPolicy = "Proportional"
)

func PossibleCostAllocationPolicyValues

func PossibleCostAllocationPolicyValues() []CostAllocationPolicy

PossibleCostAllocationPolicyValues returns an array of possible values for the CostAllocationPolicy const type.

type CustomPriceDetails

type CustomPriceDetails struct {
	Pricesheet *string `json:"pricesheet,omitempty"`
	// Benefits - Array of benefits.
	Benefits *[]FunctionType `json:"benefits,omitempty"`
	// Markups - List of markups.
	Markups *[]Markup `json:"markups,omitempty"`
}

CustomPriceDetails represents Custom price showback rule model

type CustomPriceDetailsKind

type CustomPriceDetailsKind struct {
	// CustomPriceDetails - The Custom price properties to validate.
	*CustomPriceDetails `json:"details,omitempty"`
	// Description - Description of a showback rule.
	Description *string `json:"description,omitempty"`
	// Status - The current status of the showback rule. Possible values include: 'NotActive', 'Active'
	Status ShowbackRuleStatus `json:"status,omitempty"`
	// Version - READ-ONLY; The current version of showback rule.
	Version *int32 `json:"version,omitempty"`
	// Scopes - List of authorized assigned scopes.
	Scopes *[]Scope `json:"scopes,omitempty"`
	// CreationTime - READ-ONLY; The time when the showback rule was created.
	CreationTime *date.Time `json:"creationTime,omitempty"`
	// DeprecationTime - READ-ONLY; The current time when showback rule was deprecate.
	DeprecationTime *date.Time `json:"deprecationTime,omitempty"`
	// ModificationTime - READ-ONLY; The current status when showback rule was modified.
	ModificationTime *date.Time `json:"modificationTime,omitempty"`
	// RuleType - Possible values include: 'RuleTypeShowbackRuleProperties', 'RuleTypeCustomPrice', 'RuleTypeCostAllocation'
	RuleType RuleType `json:"ruleType,omitempty"`
}

CustomPriceDetailsKind represents Custom price showback rule model

func (CustomPriceDetailsKind) AsBasicShowbackRuleProperties

func (cpdk CustomPriceDetailsKind) AsBasicShowbackRuleProperties() (BasicShowbackRuleProperties, bool)

AsBasicShowbackRuleProperties is the BasicShowbackRuleProperties implementation for CustomPriceDetailsKind.

func (CustomPriceDetailsKind) AsCostAllocationDetailsKind

func (cpdk CustomPriceDetailsKind) AsCostAllocationDetailsKind() (*CostAllocationDetailsKind, bool)

AsCostAllocationDetailsKind is the BasicShowbackRuleProperties implementation for CustomPriceDetailsKind.

func (CustomPriceDetailsKind) AsCustomPriceDetailsKind

func (cpdk CustomPriceDetailsKind) AsCustomPriceDetailsKind() (*CustomPriceDetailsKind, bool)

AsCustomPriceDetailsKind is the BasicShowbackRuleProperties implementation for CustomPriceDetailsKind.

func (CustomPriceDetailsKind) AsShowbackRuleProperties

func (cpdk CustomPriceDetailsKind) AsShowbackRuleProperties() (*ShowbackRuleProperties, bool)

AsShowbackRuleProperties is the BasicShowbackRuleProperties implementation for CustomPriceDetailsKind.

func (CustomPriceDetailsKind) MarshalJSON

func (cpdk CustomPriceDetailsKind) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CustomPriceDetailsKind.

func (*CustomPriceDetailsKind) UnmarshalJSON

func (cpdk *CustomPriceDetailsKind) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CustomPriceDetailsKind struct.

type Dimension

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

Dimension ...

func (Dimension) MarshalJSON

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

MarshalJSON is the custom marshaler for Dimension.

func (*Dimension) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Dimension struct.

type DimensionProperties

type DimensionProperties struct {
	Description     *string    `json:"description,omitempty"`
	FilterEnabled   *bool      `json:"filterEnabled,omitempty"`
	GroupingEnabled *bool      `json:"groupingEnabled,omitempty"`
	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 DimensionsClient

type DimensionsClient struct {
	BaseClient
}

DimensionsClient is the client for the Dimensions methods of the Costmanagement service.

func NewDimensionsClient

func NewDimensionsClient(subscriptionID string) DimensionsClient

NewDimensionsClient creates an instance of the DimensionsClient client.

func NewDimensionsClientWithBaseURI

func NewDimensionsClientWithBaseURI(baseURI string, subscriptionID string) DimensionsClient

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

func (DimensionsClient) ListByBillingAccount

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

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

func (DimensionsClient) ListByBillingAccountPreparer

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

ListByBillingAccountPreparer prepares the ListByBillingAccount request.

func (DimensionsClient) ListByBillingAccountResponder

func (client DimensionsClient) ListByBillingAccountResponder(resp *http.Response) (result DimensionsListResult, err error)

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

func (DimensionsClient) ListByBillingAccountSender

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

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

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

func (DimensionsClient) ListByDepartmentPreparer

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

ListByDepartmentPreparer prepares the ListByDepartment request.

func (DimensionsClient) ListByDepartmentResponder

func (client DimensionsClient) ListByDepartmentResponder(resp *http.Response) (result DimensionsListResult, err error)

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

func (DimensionsClient) ListByDepartmentSender

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

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

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

func (DimensionsClient) ListByEnrollmentAccountPreparer

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

ListByEnrollmentAccountPreparer prepares the ListByEnrollmentAccount request.

func (DimensionsClient) ListByEnrollmentAccountResponder

func (client DimensionsClient) ListByEnrollmentAccountResponder(resp *http.Response) (result DimensionsListResult, err error)

ListByEnrollmentAccountResponder handles the response to the ListByEnrollmentAccount request. The method always closes the http.Response Body.

func (DimensionsClient) ListByEnrollmentAccountSender

func (client DimensionsClient) ListByEnrollmentAccountSender(req *http.Request) (*http.Response, error)

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

func (DimensionsClient) ListByManagementGroup

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

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

func (DimensionsClient) ListByManagementGroupPreparer

func (client DimensionsClient) ListByManagementGroupPreparer(ctx context.Context, managementGroupID string, filter string, expand string, skiptoken string, top *int32) (*http.Request, error)

ListByManagementGroupPreparer prepares the ListByManagementGroup request.

func (DimensionsClient) ListByManagementGroupResponder

func (client DimensionsClient) ListByManagementGroupResponder(resp *http.Response) (result DimensionsListResult, err error)

ListByManagementGroupResponder handles the response to the ListByManagementGroup request. The method always closes the http.Response Body.

func (DimensionsClient) ListByManagementGroupSender

func (client DimensionsClient) ListByManagementGroupSender(req *http.Request) (*http.Response, error)

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

func (DimensionsClient) ListByResourceGroup

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

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

func (DimensionsClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (DimensionsClient) ListByResourceGroupResponder

func (client DimensionsClient) ListByResourceGroupResponder(resp *http.Response) (result DimensionsListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (DimensionsClient) ListByResourceGroupSender

func (client DimensionsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

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

func (DimensionsClient) ListBySubscription

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

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

func (DimensionsClient) ListBySubscriptionPreparer

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

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (DimensionsClient) ListBySubscriptionResponder

func (client DimensionsClient) ListBySubscriptionResponder(resp *http.Response) (result DimensionsListResult, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (DimensionsClient) ListBySubscriptionSender

func (client DimensionsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

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

type DimensionsListResult

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

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

type Direction

type Direction string

Direction enumerates the values for direction.

const (
	// Ascending ...
	Ascending Direction = "Ascending"
	// Descending ...
	Descending Direction = "Descending"
)

func PossibleDirectionValues

func PossibleDirectionValues() []Direction

PossibleDirectionValues returns an array of possible values for the Direction const type.

type ErrorBase

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

ErrorBase the details of the error.

type ErrorDetails

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

ErrorDetails the details of the error.

type ErrorResponse

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

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

type ExternalBillingAccountClient

type ExternalBillingAccountClient struct {
	BaseClient
}

ExternalBillingAccountClient is the client for the ExternalBillingAccount methods of the Costmanagement service.

func NewExternalBillingAccountClient

func NewExternalBillingAccountClient(subscriptionID string) ExternalBillingAccountClient

NewExternalBillingAccountClient creates an instance of the ExternalBillingAccountClient client.

func NewExternalBillingAccountClientWithBaseURI

func NewExternalBillingAccountClientWithBaseURI(baseURI string, subscriptionID string) ExternalBillingAccountClient

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

func (ExternalBillingAccountClient) Get

func (client ExternalBillingAccountClient) Get(ctx context.Context, externalBillingAccountName string, expand string) (result ExternalBillingAccountDefinition, err error)

Get get a ExternalBillingAccount definition Parameters: externalBillingAccountName - external Billing Account Name. (eg 'aws-{PayerAccountId}') expand - may be used to expand the collectionInfo property. By default, collectionInfo is not included.

func (ExternalBillingAccountClient) GetPreparer

func (client ExternalBillingAccountClient) GetPreparer(ctx context.Context, externalBillingAccountName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ExternalBillingAccountClient) GetResponder

func (client ExternalBillingAccountClient) GetResponder(resp *http.Response) (result ExternalBillingAccountDefinition, err error)

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

func (ExternalBillingAccountClient) GetSender

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

List list all ExternalBillingAccount definitions

func (ExternalBillingAccountClient) ListPreparer

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

ListPreparer prepares the List request.

func (ExternalBillingAccountClient) ListResponder

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

func (ExternalBillingAccountClient) ListSender

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

type ExternalBillingAccountDefinition struct {
	autorest.Response `json:"-"`
	// ID - READ-ONLY; ExternalBillingAccount id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; ExternalBillingAccount name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; ExternalBillingAccount type
	Type *string `json:"type,omitempty"`
	// Kind - READ-ONLY; ExternalBillingAccount kind (eg aws)
	Kind *string `json:"kind,omitempty"`
	// ExternalBillingAccountProperties - ExternalBillingAccount properties
	*ExternalBillingAccountProperties `json:"properties,omitempty"`
}

ExternalBillingAccountDefinition the ExternalBillingAccount model definition

func (ExternalBillingAccountDefinition) MarshalJSON

func (ebad ExternalBillingAccountDefinition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExternalBillingAccountDefinition.

func (*ExternalBillingAccountDefinition) UnmarshalJSON

func (ebad *ExternalBillingAccountDefinition) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ExternalBillingAccountDefinition struct.

type ExternalBillingAccountDefinitionListResult

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

ExternalBillingAccountDefinitionListResult result of listing ExternalBillingAccount definitions. It contains a list of available ExternalBillingAccount definitions in the scope provided.

type ExternalBillingAccountProperties

type ExternalBillingAccountProperties struct {
	// DisplayName - READ-ONLY; ExternalBillingAccount DisplayName
	DisplayName *string `json:"displayName,omitempty"`
	// ProviderBillingAccountID - READ-ONLY; Provider BillingAccountId (eg AWS Consolidated Account number)
	ProviderBillingAccountID *string `json:"providerBillingAccountId,omitempty"`
	// ConnectorID - READ-ONLY; Underlying ConnectorId
	ConnectorID *string `json:"connectorId,omitempty"`
	// CollectionInfo - READ-ONLY; Collection information
	CollectionInfo *ConnectorCollectionInfo `json:"collectionInfo,omitempty"`
}

ExternalBillingAccountProperties the properties of a ExternalBillingAccount

type ExternalSubscriptionClient

type ExternalSubscriptionClient struct {
	BaseClient
}

ExternalSubscriptionClient is the client for the ExternalSubscription methods of the Costmanagement service.

func NewExternalSubscriptionClient

func NewExternalSubscriptionClient(subscriptionID string) ExternalSubscriptionClient

NewExternalSubscriptionClient creates an instance of the ExternalSubscriptionClient client.

func NewExternalSubscriptionClientWithBaseURI

func NewExternalSubscriptionClientWithBaseURI(baseURI string, subscriptionID string) ExternalSubscriptionClient

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

func (ExternalSubscriptionClient) Get

func (client ExternalSubscriptionClient) Get(ctx context.Context, externalSubscriptionName string, expand string) (result ExternalSubscriptionDefinition, err error)

Get get an ExternalSubscription definition Parameters: externalSubscriptionName - external Subscription Name. (eg 'aws-{UsageAccountId}') expand - may be used to expand the collectionInfo property. By default, collectionInfo is not included.

func (ExternalSubscriptionClient) GetPreparer

func (client ExternalSubscriptionClient) GetPreparer(ctx context.Context, externalSubscriptionName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ExternalSubscriptionClient) GetResponder

func (client ExternalSubscriptionClient) GetResponder(resp *http.Response) (result ExternalSubscriptionDefinition, err error)

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

func (ExternalSubscriptionClient) GetSender

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

List list all ExternalSubscription definitions

func (ExternalSubscriptionClient) ListByExternalBillingAccount

func (client ExternalSubscriptionClient) ListByExternalBillingAccount(ctx context.Context, externalBillingAccountName string) (result ExternalSubscriptionDefinitionListResult, err error)

ListByExternalBillingAccount list all ExternalSubscriptions by ExternalBillingAccount definitions Parameters: externalBillingAccountName - external Billing Account Name. (eg 'aws-{PayerAccountId}')

func (ExternalSubscriptionClient) ListByExternalBillingAccountPreparer

func (client ExternalSubscriptionClient) ListByExternalBillingAccountPreparer(ctx context.Context, externalBillingAccountName string) (*http.Request, error)

ListByExternalBillingAccountPreparer prepares the ListByExternalBillingAccount request.

func (ExternalSubscriptionClient) ListByExternalBillingAccountResponder

func (client ExternalSubscriptionClient) ListByExternalBillingAccountResponder(resp *http.Response) (result ExternalSubscriptionDefinitionListResult, err error)

ListByExternalBillingAccountResponder handles the response to the ListByExternalBillingAccount request. The method always closes the http.Response Body.

func (ExternalSubscriptionClient) ListByExternalBillingAccountSender

func (client ExternalSubscriptionClient) ListByExternalBillingAccountSender(req *http.Request) (*http.Response, error)

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

func (ExternalSubscriptionClient) ListByManagementGroup

func (client ExternalSubscriptionClient) ListByManagementGroup(ctx context.Context, managementGroupID string, recurse *bool) (result ExternalSubscriptionDefinitionListResult, err error)

ListByManagementGroup list all ExternalSubscription definitions for Management Group Parameters: managementGroupID - managementGroup ID recurse - the $recurse=true query string parameter allows returning externalSubscriptions associated with the specified managementGroup, or any of its descendants.

func (ExternalSubscriptionClient) ListByManagementGroupPreparer

func (client ExternalSubscriptionClient) ListByManagementGroupPreparer(ctx context.Context, managementGroupID string, recurse *bool) (*http.Request, error)

ListByManagementGroupPreparer prepares the ListByManagementGroup request.

func (ExternalSubscriptionClient) ListByManagementGroupResponder

func (client ExternalSubscriptionClient) ListByManagementGroupResponder(resp *http.Response) (result ExternalSubscriptionDefinitionListResult, err error)

ListByManagementGroupResponder handles the response to the ListByManagementGroup request. The method always closes the http.Response Body.

func (ExternalSubscriptionClient) ListByManagementGroupSender

func (client ExternalSubscriptionClient) ListByManagementGroupSender(req *http.Request) (*http.Response, error)

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

func (ExternalSubscriptionClient) ListPreparer

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

ListPreparer prepares the List request.

func (ExternalSubscriptionClient) ListResponder

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

func (ExternalSubscriptionClient) ListSender

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

func (client ExternalSubscriptionClient) UpdateManagementGroup(ctx context.Context, managementGroupID string, externalSubscriptionName string) (result autorest.Response, err error)

UpdateManagementGroup updates the management group of an ExternalSubscription Parameters: managementGroupID - managementGroup ID externalSubscriptionName - external Subscription Name. (eg 'aws-{UsageAccountId}')

func (ExternalSubscriptionClient) UpdateManagementGroupPreparer

func (client ExternalSubscriptionClient) UpdateManagementGroupPreparer(ctx context.Context, managementGroupID string, externalSubscriptionName string) (*http.Request, error)

UpdateManagementGroupPreparer prepares the UpdateManagementGroup request.

func (ExternalSubscriptionClient) UpdateManagementGroupResponder

func (client ExternalSubscriptionClient) UpdateManagementGroupResponder(resp *http.Response) (result autorest.Response, err error)

UpdateManagementGroupResponder handles the response to the UpdateManagementGroup request. The method always closes the http.Response Body.

func (ExternalSubscriptionClient) UpdateManagementGroupSender

func (client ExternalSubscriptionClient) UpdateManagementGroupSender(req *http.Request) (*http.Response, error)

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

type ExternalSubscriptionDefinition

type ExternalSubscriptionDefinition struct {
	autorest.Response `json:"-"`
	// ID - READ-ONLY; ExternalSubscription id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; ExternalSubscription name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; ExternalSubscription type
	Type *string `json:"type,omitempty"`
	// Kind - READ-ONLY; ExternalSubscription kind (eg aws)
	Kind *string `json:"kind,omitempty"`
	// ExternalSubscriptionProperties - ExternalSubscription properties
	*ExternalSubscriptionProperties `json:"properties,omitempty"`
}

ExternalSubscriptionDefinition the ExternalSubscription model definition

func (ExternalSubscriptionDefinition) MarshalJSON

func (esd ExternalSubscriptionDefinition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExternalSubscriptionDefinition.

func (*ExternalSubscriptionDefinition) UnmarshalJSON

func (esd *ExternalSubscriptionDefinition) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ExternalSubscriptionDefinition struct.

type ExternalSubscriptionDefinitionListResult

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

ExternalSubscriptionDefinitionListResult result of listing ExternalSubscription definitions. It contains a list of available ExternalSubscription definitions in the scope provided.

type ExternalSubscriptionIDListRequest

type ExternalSubscriptionIDListRequest struct {
	// Value - The list of ExternalSubscriptionIds.
	Value *[]string `json:"value,omitempty"`
}

ExternalSubscriptionIDListRequest the list of ExternalSubscriptionIds operation request.

type ExternalSubscriptionProperties

type ExternalSubscriptionProperties struct {
	// DisplayName - READ-ONLY; ExternalSubscription DisplayName
	DisplayName *string `json:"displayName,omitempty"`
	// ManagementGroupID - READ-ONLY; Assigned ManagementGroupId
	ManagementGroupID *string `json:"managementGroupId,omitempty"`
	// ProviderBillingAccountID - READ-ONLY; Provider BillingAccountId (eg AWS Consolidated Account number)
	ProviderBillingAccountID *string `json:"providerBillingAccountId,omitempty"`
	// ProviderAccountID - READ-ONLY; Provider AccountId (eg AWS Linked Account number)
	ProviderAccountID *string `json:"providerAccountId,omitempty"`
	// ExternalBillingAccountID - READ-ONLY; Parent ExternalBillingAccountId
	ExternalBillingAccountID *string `json:"externalBillingAccountId,omitempty"`
	// CollectionInfo - READ-ONLY; Collection information
	CollectionInfo *ConnectorCollectionInfo `json:"collectionInfo,omitempty"`
}

ExternalSubscriptionProperties the properties of a ExternalSubscription

type ForecastClient

type ForecastClient struct {
	BaseClient
}

ForecastClient is the client for the Forecast methods of the Costmanagement service.

func NewForecastClient

func NewForecastClient(subscriptionID string) ForecastClient

NewForecastClient creates an instance of the ForecastClient client.

func NewForecastClientWithBaseURI

func NewForecastClientWithBaseURI(baseURI string, subscriptionID string) ForecastClient

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

func (ForecastClient) UsageByBillingAccount

func (client ForecastClient) UsageByBillingAccount(ctx context.Context, billingAccountID string, parameters ReportConfigDefinition) (result QueryResult, err error)

UsageByBillingAccount forecast the usage data for billing account. Parameters: billingAccountID - billingAccount ID parameters - parameters supplied to the CreateOrUpdate Report Config operation.

func (ForecastClient) UsageByBillingAccountPreparer

func (client ForecastClient) UsageByBillingAccountPreparer(ctx context.Context, billingAccountID string, parameters ReportConfigDefinition) (*http.Request, error)

UsageByBillingAccountPreparer prepares the UsageByBillingAccount request.

func (ForecastClient) UsageByBillingAccountResponder

func (client ForecastClient) UsageByBillingAccountResponder(resp *http.Response) (result QueryResult, err error)

UsageByBillingAccountResponder handles the response to the UsageByBillingAccount request. The method always closes the http.Response Body.

func (ForecastClient) UsageByBillingAccountSender

func (client ForecastClient) UsageByBillingAccountSender(req *http.Request) (*http.Response, error)

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

func (ForecastClient) UsageByDepartment

func (client ForecastClient) UsageByDepartment(ctx context.Context, billingAccountID string, departmentID string, parameters ReportConfigDefinition) (result QueryResult, err error)

UsageByDepartment forecast the usage data for department. Parameters: billingAccountID - billingAccount ID departmentID - department ID parameters - parameters supplied to the CreateOrUpdate Report Config operation.

func (ForecastClient) UsageByDepartmentPreparer

func (client ForecastClient) UsageByDepartmentPreparer(ctx context.Context, billingAccountID string, departmentID string, parameters ReportConfigDefinition) (*http.Request, error)

UsageByDepartmentPreparer prepares the UsageByDepartment request.

func (ForecastClient) UsageByDepartmentResponder

func (client ForecastClient) UsageByDepartmentResponder(resp *http.Response) (result QueryResult, err error)

UsageByDepartmentResponder handles the response to the UsageByDepartment request. The method always closes the http.Response Body.

func (ForecastClient) UsageByDepartmentSender

func (client ForecastClient) UsageByDepartmentSender(req *http.Request) (*http.Response, error)

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

func (ForecastClient) UsageByEnrollmentAccount

func (client ForecastClient) UsageByEnrollmentAccount(ctx context.Context, billingAccountID string, enrollmentAccountID string, parameters ReportConfigDefinition) (result QueryResult, err error)

UsageByEnrollmentAccount forecast the usage data for an enrollment account. Parameters: billingAccountID - billingAccount ID enrollmentAccountID - enrollment Account ID parameters - parameters supplied to the CreateOrUpdate Report Config operation.

func (ForecastClient) UsageByEnrollmentAccountPreparer

func (client ForecastClient) UsageByEnrollmentAccountPreparer(ctx context.Context, billingAccountID string, enrollmentAccountID string, parameters ReportConfigDefinition) (*http.Request, error)

UsageByEnrollmentAccountPreparer prepares the UsageByEnrollmentAccount request.

func (ForecastClient) UsageByEnrollmentAccountResponder

func (client ForecastClient) UsageByEnrollmentAccountResponder(resp *http.Response) (result QueryResult, err error)

UsageByEnrollmentAccountResponder handles the response to the UsageByEnrollmentAccount request. The method always closes the http.Response Body.

func (ForecastClient) UsageByEnrollmentAccountSender

func (client ForecastClient) UsageByEnrollmentAccountSender(req *http.Request) (*http.Response, error)

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

func (ForecastClient) UsageByExternalBillingAccount

func (client ForecastClient) UsageByExternalBillingAccount(ctx context.Context, externalBillingAccountName string, parameters ReportConfigDefinition) (result QueryResult, err error)

UsageByExternalBillingAccount forecast the usage data for external billing account. Parameters: externalBillingAccountName - external Billing Account Name. (eg 'aws-{PayerAccountId}') parameters - parameters supplied to the CreateOrUpdate Report Config operation.

func (ForecastClient) UsageByExternalBillingAccountPreparer

func (client ForecastClient) UsageByExternalBillingAccountPreparer(ctx context.Context, externalBillingAccountName string, parameters ReportConfigDefinition) (*http.Request, error)

UsageByExternalBillingAccountPreparer prepares the UsageByExternalBillingAccount request.

func (ForecastClient) UsageByExternalBillingAccountResponder

func (client ForecastClient) UsageByExternalBillingAccountResponder(resp *http.Response) (result QueryResult, err error)

UsageByExternalBillingAccountResponder handles the response to the UsageByExternalBillingAccount request. The method always closes the http.Response Body.

func (ForecastClient) UsageByExternalBillingAccountSender

func (client ForecastClient) UsageByExternalBillingAccountSender(req *http.Request) (*http.Response, error)

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

func (ForecastClient) UsageByManagementGroup

func (client ForecastClient) UsageByManagementGroup(ctx context.Context, managementGroupID string, parameters ReportConfigDefinition) (result QueryResult, err error)

UsageByManagementGroup lists the usage data for management group. Parameters: managementGroupID - managementGroup ID parameters - parameters supplied to the CreateOrUpdate Report Config operation.

func (ForecastClient) UsageByManagementGroupPreparer

func (client ForecastClient) UsageByManagementGroupPreparer(ctx context.Context, managementGroupID string, parameters ReportConfigDefinition) (*http.Request, error)

UsageByManagementGroupPreparer prepares the UsageByManagementGroup request.

func (ForecastClient) UsageByManagementGroupResponder

func (client ForecastClient) UsageByManagementGroupResponder(resp *http.Response) (result QueryResult, err error)

UsageByManagementGroupResponder handles the response to the UsageByManagementGroup request. The method always closes the http.Response Body.

func (ForecastClient) UsageByManagementGroupSender

func (client ForecastClient) UsageByManagementGroupSender(req *http.Request) (*http.Response, error)

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

func (ForecastClient) UsageByResourceGroup

func (client ForecastClient) UsageByResourceGroup(ctx context.Context, resourceGroupName string, parameters ReportConfigDefinition) (result QueryResult, err error)

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

func (ForecastClient) UsageByResourceGroupPreparer

func (client ForecastClient) UsageByResourceGroupPreparer(ctx context.Context, resourceGroupName string, parameters ReportConfigDefinition) (*http.Request, error)

UsageByResourceGroupPreparer prepares the UsageByResourceGroup request.

func (ForecastClient) UsageByResourceGroupResponder

func (client ForecastClient) UsageByResourceGroupResponder(resp *http.Response) (result QueryResult, err error)

UsageByResourceGroupResponder handles the response to the UsageByResourceGroup request. The method always closes the http.Response Body.

func (ForecastClient) UsageByResourceGroupSender

func (client ForecastClient) UsageByResourceGroupSender(req *http.Request) (*http.Response, error)

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

func (ForecastClient) UsageBySubscription

func (client ForecastClient) UsageBySubscription(ctx context.Context, parameters ReportConfigDefinition) (result QueryResult, err error)

UsageBySubscription forecast the usage data for subscriptionId. Parameters: parameters - parameters supplied to the CreateOrUpdate Report Config operation.

func (ForecastClient) UsageBySubscriptionPreparer

func (client ForecastClient) UsageBySubscriptionPreparer(ctx context.Context, parameters ReportConfigDefinition) (*http.Request, error)

UsageBySubscriptionPreparer prepares the UsageBySubscription request.

func (ForecastClient) UsageBySubscriptionResponder

func (client ForecastClient) UsageBySubscriptionResponder(resp *http.Response) (result QueryResult, err error)

UsageBySubscriptionResponder handles the response to the UsageBySubscription request. The method always closes the http.Response Body.

func (ForecastClient) UsageBySubscriptionSender

func (client ForecastClient) UsageBySubscriptionSender(req *http.Request) (*http.Response, error)

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

type FunctionType

type FunctionType string

FunctionType enumerates the values for function type.

const (
	// AHUB ...
	AHUB FunctionType = "AHUB"
	// All ...
	All FunctionType = "All"
	// None ...
	None FunctionType = "None"
	// Reservations ...
	Reservations FunctionType = "Reservations"
)

func PossibleFunctionTypeValues

func PossibleFunctionTypeValues() []FunctionType

PossibleFunctionTypeValues returns an array of possible values for the FunctionType const type.

type GranularityType

type GranularityType string

GranularityType enumerates the values for granularity type.

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

func PossibleGranularityTypeValues

func PossibleGranularityTypeValues() []GranularityType

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

type Markup

type Markup struct {
	Percentage *string `json:"percentage,omitempty"`
}

Markup the Markup model definition

type Operation

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

Operation a Cost management REST API operation.

type OperationDisplay

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

OperationDisplay the object that represents the operation.

type OperationListResult

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

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

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator

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

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

func (iter *OperationListResultIterator) Next() error

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

func (*OperationListResultIterator) NextWithContext

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

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

func (OperationListResultIterator) NotDone

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response

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

func (OperationListResultIterator) Value

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

type OperationListResultPage

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

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage

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

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

func (page *OperationListResultPage) Next() error

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

func (*OperationListResultPage) NextWithContext

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

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

func (OperationListResultPage) NotDone

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response

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

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []Operation

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

type OperationsClient

type OperationsClient struct {
	BaseClient
}

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

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

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

func (OperationsClient) List

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

List lists all of the available consumption REST API operations.

func (OperationsClient) ListComplete

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

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

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

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

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

func (OperationsClient) ListSender

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

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

type OperatorType

type OperatorType string

OperatorType enumerates the values for operator type.

const (
	// Contains ...
	Contains OperatorType = "Contains"
	// In ...
	In OperatorType = "In"
)

func PossibleOperatorTypeValues

func PossibleOperatorTypeValues() []OperatorType

PossibleOperatorTypeValues returns an array of possible values for the OperatorType const type.

type Query

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

Query ...

func (Query) MarshalJSON

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

MarshalJSON is the custom marshaler for Query.

func (*Query) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Query struct.

type QueryClient

type QueryClient struct {
	BaseClient
}

QueryClient is the client for the Query methods of the Costmanagement service.

func NewQueryClient

func NewQueryClient(subscriptionID string) QueryClient

NewQueryClient creates an instance of the QueryClient client.

func NewQueryClientWithBaseURI

func NewQueryClientWithBaseURI(baseURI string, subscriptionID string) QueryClient

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

func (QueryClient) UsageByBillingAccount

func (client QueryClient) UsageByBillingAccount(ctx context.Context, billingAccountID string, parameters ReportConfigDefinition) (result QueryResult, err error)

UsageByBillingAccount query the usage data for billing account. Parameters: billingAccountID - billingAccount ID parameters - parameters supplied to the CreateOrUpdate Report Config operation.

func (QueryClient) UsageByBillingAccountPreparer

func (client QueryClient) UsageByBillingAccountPreparer(ctx context.Context, billingAccountID string, parameters ReportConfigDefinition) (*http.Request, error)

UsageByBillingAccountPreparer prepares the UsageByBillingAccount request.

func (QueryClient) UsageByBillingAccountResponder

func (client QueryClient) UsageByBillingAccountResponder(resp *http.Response) (result QueryResult, err error)

UsageByBillingAccountResponder handles the response to the UsageByBillingAccount request. The method always closes the http.Response Body.

func (QueryClient) UsageByBillingAccountSender

func (client QueryClient) UsageByBillingAccountSender(req *http.Request) (*http.Response, error)

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

func (QueryClient) UsageByDepartment

func (client QueryClient) UsageByDepartment(ctx context.Context, billingAccountID string, departmentID string, parameters ReportConfigDefinition) (result QueryResult, err error)

UsageByDepartment query the usage data for department. Parameters: billingAccountID - billingAccount ID departmentID - department ID parameters - parameters supplied to the CreateOrUpdate Report Config operation.

func (QueryClient) UsageByDepartmentPreparer

func (client QueryClient) UsageByDepartmentPreparer(ctx context.Context, billingAccountID string, departmentID string, parameters ReportConfigDefinition) (*http.Request, error)

UsageByDepartmentPreparer prepares the UsageByDepartment request.

func (QueryClient) UsageByDepartmentResponder

func (client QueryClient) UsageByDepartmentResponder(resp *http.Response) (result QueryResult, err error)

UsageByDepartmentResponder handles the response to the UsageByDepartment request. The method always closes the http.Response Body.

func (QueryClient) UsageByDepartmentSender

func (client QueryClient) UsageByDepartmentSender(req *http.Request) (*http.Response, error)

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

func (QueryClient) UsageByEnrollmentAccount

func (client QueryClient) UsageByEnrollmentAccount(ctx context.Context, billingAccountID string, enrollmentAccountID string, parameters ReportConfigDefinition) (result QueryResult, err error)

UsageByEnrollmentAccount query the usage data for an enrollment account. Parameters: billingAccountID - billingAccount ID enrollmentAccountID - enrollment Account ID parameters - parameters supplied to the CreateOrUpdate Report Config operation.

func (QueryClient) UsageByEnrollmentAccountPreparer

func (client QueryClient) UsageByEnrollmentAccountPreparer(ctx context.Context, billingAccountID string, enrollmentAccountID string, parameters ReportConfigDefinition) (*http.Request, error)

UsageByEnrollmentAccountPreparer prepares the UsageByEnrollmentAccount request.

func (QueryClient) UsageByEnrollmentAccountResponder

func (client QueryClient) UsageByEnrollmentAccountResponder(resp *http.Response) (result QueryResult, err error)

UsageByEnrollmentAccountResponder handles the response to the UsageByEnrollmentAccount request. The method always closes the http.Response Body.

func (QueryClient) UsageByEnrollmentAccountSender

func (client QueryClient) UsageByEnrollmentAccountSender(req *http.Request) (*http.Response, error)

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

func (QueryClient) UsageByManagementGroup

func (client QueryClient) UsageByManagementGroup(ctx context.Context, managementGroupID string, parameters ReportConfigDefinition) (result QueryResult, err error)

UsageByManagementGroup lists the usage data for management group. Parameters: managementGroupID - managementGroup ID parameters - parameters supplied to the CreateOrUpdate Report Config operation.

func (QueryClient) UsageByManagementGroupPreparer

func (client QueryClient) UsageByManagementGroupPreparer(ctx context.Context, managementGroupID string, parameters ReportConfigDefinition) (*http.Request, error)

UsageByManagementGroupPreparer prepares the UsageByManagementGroup request.

func (QueryClient) UsageByManagementGroupResponder

func (client QueryClient) UsageByManagementGroupResponder(resp *http.Response) (result QueryResult, err error)

UsageByManagementGroupResponder handles the response to the UsageByManagementGroup request. The method always closes the http.Response Body.

func (QueryClient) UsageByManagementGroupSender

func (client QueryClient) UsageByManagementGroupSender(req *http.Request) (*http.Response, error)

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

func (QueryClient) UsageByResourceGroup

func (client QueryClient) UsageByResourceGroup(ctx context.Context, resourceGroupName string, parameters ReportConfigDefinition) (result QueryResult, err error)

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

func (QueryClient) UsageByResourceGroupPreparer

func (client QueryClient) UsageByResourceGroupPreparer(ctx context.Context, resourceGroupName string, parameters ReportConfigDefinition) (*http.Request, error)

UsageByResourceGroupPreparer prepares the UsageByResourceGroup request.

func (QueryClient) UsageByResourceGroupResponder

func (client QueryClient) UsageByResourceGroupResponder(resp *http.Response) (result QueryResult, err error)

UsageByResourceGroupResponder handles the response to the UsageByResourceGroup request. The method always closes the http.Response Body.

func (QueryClient) UsageByResourceGroupSender

func (client QueryClient) UsageByResourceGroupSender(req *http.Request) (*http.Response, error)

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

func (QueryClient) UsageBySubscription

func (client QueryClient) UsageBySubscription(ctx context.Context, parameters ReportConfigDefinition) (result QueryResult, err error)

UsageBySubscription query the usage data for subscriptionId. Parameters: parameters - parameters supplied to the CreateOrUpdate Report Config operation.

func (QueryClient) UsageBySubscriptionPreparer

func (client QueryClient) UsageBySubscriptionPreparer(ctx context.Context, parameters ReportConfigDefinition) (*http.Request, error)

UsageBySubscriptionPreparer prepares the UsageBySubscription request.

func (QueryClient) UsageBySubscriptionResponder

func (client QueryClient) UsageBySubscriptionResponder(resp *http.Response) (result QueryResult, err error)

UsageBySubscriptionResponder handles the response to the UsageBySubscription request. The method always closes the http.Response Body.

func (QueryClient) UsageBySubscriptionSender

func (client QueryClient) UsageBySubscriptionSender(req *http.Request) (*http.Response, error)

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

type QueryColumn

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

QueryColumn ...

type QueryProperties

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

QueryProperties ...

type QueryResult

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

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

type ReportConfigAggregation

type ReportConfigAggregation 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"`
}

ReportConfigAggregation the aggregation expression to be used in the report.

type ReportConfigColumnType

type ReportConfigColumnType string

ReportConfigColumnType enumerates the values for report config column type.

const (
	// ReportConfigColumnTypeDimension ...
	ReportConfigColumnTypeDimension ReportConfigColumnType = "Dimension"
	// ReportConfigColumnTypeTag ...
	ReportConfigColumnTypeTag ReportConfigColumnType = "Tag"
)

func PossibleReportConfigColumnTypeValues

func PossibleReportConfigColumnTypeValues() []ReportConfigColumnType

PossibleReportConfigColumnTypeValues returns an array of possible values for the ReportConfigColumnType const type.

type ReportConfigComparisonExpression

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

ReportConfigComparisonExpression the comparison expression to be used in the report.

type ReportConfigDataset

type ReportConfigDataset struct {
	// Granularity - The granularity of rows in the report. Possible values include: 'Daily', 'Monthly'
	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 *ReportConfigDatasetConfiguration `json:"configuration,omitempty"`
	// Aggregation - Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
	Aggregation map[string]*ReportConfigAggregation `json:"aggregation"`
	// Grouping - Array of group by expression to use in the report. Report can have up to 2 group by clauses.
	Grouping *[]ReportConfigGrouping `json:"grouping,omitempty"`
	// Sorting - Array of order by expression to use in the report.
	Sorting *[]ReportConfigSorting `json:"sorting,omitempty"`
	// Filter - Has filter expression to use in the report.
	Filter *ReportConfigFilter `json:"filter,omitempty"`
}

ReportConfigDataset the definition of data present in the report.

func (ReportConfigDataset) MarshalJSON

func (rcd ReportConfigDataset) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ReportConfigDataset.

type ReportConfigDatasetConfiguration

type ReportConfigDatasetConfiguration 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"`
}

ReportConfigDatasetConfiguration the configuration of dataset in the report.

type ReportConfigDefinition

type ReportConfigDefinition struct {
	// Type - The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.
	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', 'YearToDate', 'Custom'
	Timeframe TimeframeType `json:"timeframe,omitempty"`
	// TimePeriod - Has time period for pulling data for the report.
	TimePeriod *ReportConfigTimePeriod `json:"timePeriod,omitempty"`
	// Dataset - Has definition for data in this report config.
	Dataset *ReportConfigDataset `json:"dataset,omitempty"`
}

ReportConfigDefinition the definition of a report config.

type ReportConfigFilter

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

ReportConfigFilter the filter expression to be used in the report.

type ReportConfigGrouping

type ReportConfigGrouping struct {
	// Type - Has type of the column to group. Possible values include: 'ReportConfigColumnTypeTag', 'ReportConfigColumnTypeDimension'
	Type ReportConfigColumnType `json:"type,omitempty"`
	// Name - The name of the column to group. This version supports subscription lowest possible grain.
	Name *string `json:"name,omitempty"`
}

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

type ReportConfigSorting

type ReportConfigSorting struct {
	// Direction - Direction of sort. Possible values include: 'Ascending', 'Descending'
	Direction Direction `json:"direction,omitempty"`
	// Name - The name of the column to sort.
	Name *string `json:"name,omitempty"`
}

ReportConfigSorting the order by expression to be used in the report.

type ReportConfigTimePeriod

type ReportConfigTimePeriod 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"`
}

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

type Resource

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

Resource the Resource model definition.

func (Resource) MarshalJSON

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

MarshalJSON is the custom marshaler for Resource.

type RuleType

type RuleType string

RuleType enumerates the values for rule type.

const (
	// RuleTypeCostAllocation ...
	RuleTypeCostAllocation RuleType = "CostAllocation"
	// RuleTypeCustomPrice ...
	RuleTypeCustomPrice RuleType = "CustomPrice"
	// RuleTypeShowbackRuleProperties ...
	RuleTypeShowbackRuleProperties RuleType = "ShowbackRuleProperties"
)

func PossibleRuleTypeValues

func PossibleRuleTypeValues() []RuleType

PossibleRuleTypeValues returns an array of possible values for the RuleType const type.

type Scope

type Scope struct {
	// ID - Scope id
	ID *string `json:"id,omitempty"`
	// Name - Scope name
	Name *string `json:"name,omitempty"`
	// Type - Scope type
	Type       *string `json:"type,omitempty"`
	ChildScope *Scope  `json:"childScope,omitempty"`
}

Scope the Scope model definition

type ShowbackRule

type ShowbackRule struct {
	autorest.Response `json:"-"`
	// ID - READ-ONLY; Rule id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Rule name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Rule type
	Type *string `json:"type,omitempty"`
	// BasicShowbackRuleProperties - Showback rule properties
	BasicShowbackRuleProperties `json:"properties,omitempty"`
}

ShowbackRule the showback rule model definition

func (ShowbackRule) MarshalJSON

func (sr ShowbackRule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ShowbackRule.

func (*ShowbackRule) UnmarshalJSON

func (sr *ShowbackRule) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ShowbackRule struct.

type ShowbackRuleClient

type ShowbackRuleClient struct {
	BaseClient
}

ShowbackRuleClient is the client for the ShowbackRule methods of the Costmanagement service.

func NewShowbackRuleClient

func NewShowbackRuleClient(subscriptionID string) ShowbackRuleClient

NewShowbackRuleClient creates an instance of the ShowbackRuleClient client.

func NewShowbackRuleClientWithBaseURI

func NewShowbackRuleClientWithBaseURI(baseURI string, subscriptionID string) ShowbackRuleClient

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

func (ShowbackRuleClient) CreateUpdateRule

func (client ShowbackRuleClient) CreateUpdateRule(ctx context.Context, billingAccountID string, ruleName string, showbackRule ShowbackRule) (result ShowbackRule, err error)

CreateUpdateRule create/Update showback rule for billing account. Parameters: billingAccountID - billingAccount ID ruleName - showback rule name showbackRule - showback rule to create or update.

func (ShowbackRuleClient) CreateUpdateRulePreparer

func (client ShowbackRuleClient) CreateUpdateRulePreparer(ctx context.Context, billingAccountID string, ruleName string, showbackRule ShowbackRule) (*http.Request, error)

CreateUpdateRulePreparer prepares the CreateUpdateRule request.

func (ShowbackRuleClient) CreateUpdateRuleResponder

func (client ShowbackRuleClient) CreateUpdateRuleResponder(resp *http.Response) (result ShowbackRule, err error)

CreateUpdateRuleResponder handles the response to the CreateUpdateRule request. The method always closes the http.Response Body.

func (ShowbackRuleClient) CreateUpdateRuleSender

func (client ShowbackRuleClient) CreateUpdateRuleSender(req *http.Request) (*http.Response, error)

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

func (ShowbackRuleClient) GetBillingAccountID

func (client ShowbackRuleClient) GetBillingAccountID(ctx context.Context, billingAccountID string, ruleName string) (result ShowbackRule, err error)

GetBillingAccountID gets the showback rule by rule name. Parameters: billingAccountID - billingAccount ID ruleName - showback rule name

func (ShowbackRuleClient) GetBillingAccountIDPreparer

func (client ShowbackRuleClient) GetBillingAccountIDPreparer(ctx context.Context, billingAccountID string, ruleName string) (*http.Request, error)

GetBillingAccountIDPreparer prepares the GetBillingAccountID request.

func (ShowbackRuleClient) GetBillingAccountIDResponder

func (client ShowbackRuleClient) GetBillingAccountIDResponder(resp *http.Response) (result ShowbackRule, err error)

GetBillingAccountIDResponder handles the response to the GetBillingAccountID request. The method always closes the http.Response Body.

func (ShowbackRuleClient) GetBillingAccountIDSender

func (client ShowbackRuleClient) GetBillingAccountIDSender(req *http.Request) (*http.Response, error)

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

type ShowbackRuleListResult

type ShowbackRuleListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of showback rules.
	Value *[]ShowbackRule `json:"value,omitempty"`
}

ShowbackRuleListResult result of listing showback rules. It contains a list of available rules in the scope provided.

type ShowbackRuleProperties

type ShowbackRuleProperties struct {
	// Description - Description of a showback rule.
	Description *string `json:"description,omitempty"`
	// Status - The current status of the showback rule. Possible values include: 'NotActive', 'Active'
	Status ShowbackRuleStatus `json:"status,omitempty"`
	// Version - READ-ONLY; The current version of showback rule.
	Version *int32 `json:"version,omitempty"`
	// Scopes - List of authorized assigned scopes.
	Scopes *[]Scope `json:"scopes,omitempty"`
	// CreationTime - READ-ONLY; The time when the showback rule was created.
	CreationTime *date.Time `json:"creationTime,omitempty"`
	// DeprecationTime - READ-ONLY; The current time when showback rule was deprecate.
	DeprecationTime *date.Time `json:"deprecationTime,omitempty"`
	// ModificationTime - READ-ONLY; The current status when showback rule was modified.
	ModificationTime *date.Time `json:"modificationTime,omitempty"`
	// RuleType - Possible values include: 'RuleTypeShowbackRuleProperties', 'RuleTypeCustomPrice', 'RuleTypeCostAllocation'
	RuleType RuleType `json:"ruleType,omitempty"`
}

ShowbackRuleProperties the properties of a showback rule.

func (ShowbackRuleProperties) AsBasicShowbackRuleProperties

func (srp ShowbackRuleProperties) AsBasicShowbackRuleProperties() (BasicShowbackRuleProperties, bool)

AsBasicShowbackRuleProperties is the BasicShowbackRuleProperties implementation for ShowbackRuleProperties.

func (ShowbackRuleProperties) AsCostAllocationDetailsKind

func (srp ShowbackRuleProperties) AsCostAllocationDetailsKind() (*CostAllocationDetailsKind, bool)

AsCostAllocationDetailsKind is the BasicShowbackRuleProperties implementation for ShowbackRuleProperties.

func (ShowbackRuleProperties) AsCustomPriceDetailsKind

func (srp ShowbackRuleProperties) AsCustomPriceDetailsKind() (*CustomPriceDetailsKind, bool)

AsCustomPriceDetailsKind is the BasicShowbackRuleProperties implementation for ShowbackRuleProperties.

func (ShowbackRuleProperties) AsShowbackRuleProperties

func (srp ShowbackRuleProperties) AsShowbackRuleProperties() (*ShowbackRuleProperties, bool)

AsShowbackRuleProperties is the BasicShowbackRuleProperties implementation for ShowbackRuleProperties.

func (ShowbackRuleProperties) MarshalJSON

func (srp ShowbackRuleProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ShowbackRuleProperties.

type ShowbackRuleStatus

type ShowbackRuleStatus string

ShowbackRuleStatus enumerates the values for showback rule status.

const (
	// Active ...
	Active ShowbackRuleStatus = "Active"
	// NotActive ...
	NotActive ShowbackRuleStatus = "NotActive"
)

func PossibleShowbackRuleStatusValues

func PossibleShowbackRuleStatusValues() []ShowbackRuleStatus

PossibleShowbackRuleStatusValues returns an array of possible values for the ShowbackRuleStatus const type.

type ShowbackRulesClient

type ShowbackRulesClient struct {
	BaseClient
}

ShowbackRulesClient is the client for the ShowbackRules methods of the Costmanagement service.

func NewShowbackRulesClient

func NewShowbackRulesClient(subscriptionID string) ShowbackRulesClient

NewShowbackRulesClient creates an instance of the ShowbackRulesClient client.

func NewShowbackRulesClientWithBaseURI

func NewShowbackRulesClientWithBaseURI(baseURI string, subscriptionID string) ShowbackRulesClient

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

func (ShowbackRulesClient) List

func (client ShowbackRulesClient) List(ctx context.Context, billingAccountID string) (result ShowbackRuleListResult, err error)

List get list all Showback Rules. Parameters: billingAccountID - billingAccount ID

func (ShowbackRulesClient) ListPreparer

func (client ShowbackRulesClient) ListPreparer(ctx context.Context, billingAccountID string) (*http.Request, error)

ListPreparer prepares the List request.

func (ShowbackRulesClient) ListResponder

func (client ShowbackRulesClient) ListResponder(resp *http.Response) (result ShowbackRuleListResult, err error)

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

func (ShowbackRulesClient) ListSender

func (client ShowbackRulesClient) 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"
	// YearToDate ...
	YearToDate TimeframeType = "YearToDate"
)

func PossibleTimeframeTypeValues

func PossibleTimeframeTypeValues() []TimeframeType

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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