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

package costmanagement

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

Package costmanagement implements the Azure ARM Costmanagement service API version 2019-03-01-preview.

Index

Package Files

client.go cloudconnector.go dimensions.go externalbillingaccount.go externalsubscription.go forecast.go models.go operations.go query.go showbackrule.go showbackrules.go version.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type BaseClient Uses

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

BaseClient is the base client for Costmanagement.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BasicShowbackRuleProperties Uses

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

BasicShowbackRuleProperties the properties of a showback rule.

type CloudConnectorClient Uses

type CloudConnectorClient struct {
    BaseClient
}

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

func NewCloudConnectorClient Uses

func NewCloudConnectorClient(subscriptionID string) CloudConnectorClient

NewCloudConnectorClient creates an instance of the CloudConnectorClient client.

func NewCloudConnectorClientWithBaseURI Uses

func NewCloudConnectorClientWithBaseURI(baseURI string, subscriptionID string) CloudConnectorClient

NewCloudConnectorClientWithBaseURI creates an instance of the CloudConnectorClient client.

func (CloudConnectorClient) CreateOrUpdate Uses

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 Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (CloudConnectorClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (CloudConnectorClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (CloudConnectorClient) GetResponder Uses

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 Uses

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 Uses

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

List list all cloud connector definitions

func (CloudConnectorClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (CloudConnectorClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdatePreparer prepares the Update request.

func (CloudConnectorClient) UpdateResponder Uses

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 Uses

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 Uses

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 Uses

func PossibleConnectorBillingModelValues() []ConnectorBillingModel

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

type ConnectorCollectionErrorInfo Uses

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 Uses

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 Uses

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

ConnectorDefinition the Connector model definition

func (ConnectorDefinition) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ConnectorDefinition.

func (*ConnectorDefinition) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ConnectorDefinition struct.

type ConnectorDefinitionListResult Uses

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

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

type ConnectorProperties Uses

type ConnectorProperties struct {
    // DisplayName - Connector DisplayName
    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 Uses

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 Uses

func PossibleConnectorStatusValues() []ConnectorStatus

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

type CostAllocationDetails Uses

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 Uses

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 Uses

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

AsBasicShowbackRuleProperties is the BasicShowbackRuleProperties implementation for CostAllocationDetailsKind.

func (CostAllocationDetailsKind) AsCostAllocationDetailsKind Uses

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

AsCostAllocationDetailsKind is the BasicShowbackRuleProperties implementation for CostAllocationDetailsKind.

func (CostAllocationDetailsKind) AsCustomPriceDetailsKind Uses

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

AsCustomPriceDetailsKind is the BasicShowbackRuleProperties implementation for CostAllocationDetailsKind.

func (CostAllocationDetailsKind) AsShowbackRuleProperties Uses

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

AsShowbackRuleProperties is the BasicShowbackRuleProperties implementation for CostAllocationDetailsKind.

func (CostAllocationDetailsKind) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for CostAllocationDetailsKind.

func (*CostAllocationDetailsKind) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for CostAllocationDetailsKind struct.

type CostAllocationPolicy Uses

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 Uses

func PossibleCostAllocationPolicyValues() []CostAllocationPolicy

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

type CustomPriceDetails Uses

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 Uses

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 Uses

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

AsBasicShowbackRuleProperties is the BasicShowbackRuleProperties implementation for CustomPriceDetailsKind.

func (CustomPriceDetailsKind) AsCostAllocationDetailsKind Uses

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

AsCostAllocationDetailsKind is the BasicShowbackRuleProperties implementation for CustomPriceDetailsKind.

func (CustomPriceDetailsKind) AsCustomPriceDetailsKind Uses

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

AsCustomPriceDetailsKind is the BasicShowbackRuleProperties implementation for CustomPriceDetailsKind.

func (CustomPriceDetailsKind) AsShowbackRuleProperties Uses

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

AsShowbackRuleProperties is the BasicShowbackRuleProperties implementation for CustomPriceDetailsKind.

func (CustomPriceDetailsKind) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for CustomPriceDetailsKind.

func (*CustomPriceDetailsKind) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for CustomPriceDetailsKind struct.

type Dimension Uses

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

Dimension ...

func (Dimension) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Dimension.

func (*Dimension) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Dimension struct.

type DimensionProperties Uses

type DimensionProperties struct {
    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 Uses

type DimensionsClient struct {
    BaseClient
}

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

func NewDimensionsClient Uses

func NewDimensionsClient(subscriptionID string) DimensionsClient

NewDimensionsClient creates an instance of the DimensionsClient client.

func NewDimensionsClientWithBaseURI Uses

func NewDimensionsClientWithBaseURI(baseURI string, subscriptionID string) DimensionsClient

NewDimensionsClientWithBaseURI creates an instance of the DimensionsClient client.

func (DimensionsClient) ListByBillingAccount Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

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

type Direction Uses

type Direction string

Direction enumerates the values for direction.

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

func PossibleDirectionValues Uses

func PossibleDirectionValues() []Direction

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

type ErrorBase Uses

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

ErrorBase the details of the error.

type ErrorDetails Uses

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

ErrorDetails the details of the error.

type ErrorResponse Uses

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

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

type ExternalBillingAccountClient Uses

type ExternalBillingAccountClient struct {
    BaseClient
}

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

func NewExternalBillingAccountClient Uses

func NewExternalBillingAccountClient(subscriptionID string) ExternalBillingAccountClient

NewExternalBillingAccountClient creates an instance of the ExternalBillingAccountClient client.

func NewExternalBillingAccountClientWithBaseURI Uses

func NewExternalBillingAccountClientWithBaseURI(baseURI string, subscriptionID string) ExternalBillingAccountClient

NewExternalBillingAccountClientWithBaseURI creates an instance of the ExternalBillingAccountClient client.

func (ExternalBillingAccountClient) Get Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ExternalBillingAccountClient) GetResponder Uses

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 Uses

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 Uses

func (client ExternalBillingAccountClient) List(ctx context.Context) (result ExternalBillingAccountDefinitionListResult, err error)

List list all ExternalBillingAccount definitions

func (ExternalBillingAccountClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (ExternalBillingAccountClient) ListResponder Uses

func (client ExternalBillingAccountClient) ListResponder(resp *http.Response) (result ExternalBillingAccountDefinitionListResult, err error)

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

func (ExternalBillingAccountClient) ListSender Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for ExternalBillingAccountDefinition.

func (*ExternalBillingAccountDefinition) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ExternalBillingAccountDefinition struct.

type ExternalBillingAccountDefinitionListResult Uses

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 Uses

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 Uses

type ExternalSubscriptionClient struct {
    BaseClient
}

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

func NewExternalSubscriptionClient Uses

func NewExternalSubscriptionClient(subscriptionID string) ExternalSubscriptionClient

NewExternalSubscriptionClient creates an instance of the ExternalSubscriptionClient client.

func NewExternalSubscriptionClientWithBaseURI Uses

func NewExternalSubscriptionClientWithBaseURI(baseURI string, subscriptionID string) ExternalSubscriptionClient

NewExternalSubscriptionClientWithBaseURI creates an instance of the ExternalSubscriptionClient client.

func (ExternalSubscriptionClient) Get Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ExternalSubscriptionClient) GetResponder Uses

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 Uses

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 Uses

func (client ExternalSubscriptionClient) List(ctx context.Context) (result ExternalSubscriptionDefinitionListResult, err error)

List list all ExternalSubscription definitions

func (ExternalSubscriptionClient) ListByExternalBillingAccount Uses

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 Uses

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

ListByExternalBillingAccountPreparer prepares the ListByExternalBillingAccount request.

func (ExternalSubscriptionClient) ListByExternalBillingAccountResponder Uses

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 Uses

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 Uses

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 Uses

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

ListByManagementGroupPreparer prepares the ListByManagementGroup request.

func (ExternalSubscriptionClient) ListByManagementGroupResponder Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (ExternalSubscriptionClient) ListResponder Uses

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

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

func (ExternalSubscriptionClient) ListSender Uses

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 Uses

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 Uses

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

UpdateManagementGroupPreparer prepares the UpdateManagementGroup request.

func (ExternalSubscriptionClient) UpdateManagementGroupResponder Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for ExternalSubscriptionDefinition.

func (*ExternalSubscriptionDefinition) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ExternalSubscriptionDefinition struct.

type ExternalSubscriptionDefinitionListResult Uses

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 Uses

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

ExternalSubscriptionIDListRequest the list of ExternalSubscriptionIds operation request.

type ExternalSubscriptionProperties Uses

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 Uses

type ForecastClient struct {
    BaseClient
}

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

func NewForecastClient Uses

func NewForecastClient(subscriptionID string) ForecastClient

NewForecastClient creates an instance of the ForecastClient client.

func NewForecastClientWithBaseURI Uses

func NewForecastClientWithBaseURI(baseURI string, subscriptionID string) ForecastClient

NewForecastClientWithBaseURI creates an instance of the ForecastClient client.

func (ForecastClient) UsageByBillingAccount Uses

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 Uses

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

UsageByBillingAccountPreparer prepares the UsageByBillingAccount request.

func (ForecastClient) UsageByBillingAccountResponder Uses

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 Uses

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 Uses

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 Uses

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

UsageByDepartmentPreparer prepares the UsageByDepartment request.

func (ForecastClient) UsageByDepartmentResponder Uses

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 Uses

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 Uses

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 Uses

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

UsageByEnrollmentAccountPreparer prepares the UsageByEnrollmentAccount request.

func (ForecastClient) UsageByEnrollmentAccountResponder Uses

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 Uses

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 Uses

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 Uses

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

UsageByExternalBillingAccountPreparer prepares the UsageByExternalBillingAccount request.

func (ForecastClient) UsageByExternalBillingAccountResponder Uses

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 Uses

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 Uses

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 Uses

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

UsageByManagementGroupPreparer prepares the UsageByManagementGroup request.

func (ForecastClient) UsageByManagementGroupResponder Uses

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 Uses

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 Uses

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 Uses

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

UsageByResourceGroupPreparer prepares the UsageByResourceGroup request.

func (ForecastClient) UsageByResourceGroupResponder Uses

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 Uses

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 Uses

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 Uses

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

UsageBySubscriptionPreparer prepares the UsageBySubscription request.

func (ForecastClient) UsageBySubscriptionResponder Uses

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 Uses

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 Uses

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 Uses

func PossibleFunctionTypeValues() []FunctionType

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

type GranularityType Uses

type GranularityType string

GranularityType enumerates the values for granularity type.

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

func PossibleGranularityTypeValues Uses

func PossibleGranularityTypeValues() []GranularityType

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

type Markup Uses

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

Markup the Markup model definition

type Operation Uses

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

Operation a Cost management REST API operation.

type OperationDisplay Uses

type OperationDisplay struct {
    // Provider - READ-ONLY; Service provider: Microsoft.CostManagement.
    Provider *string `json:"provider,omitempty"`
    // Resource - READ-ONLY; Resource on which the operation is performed: 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 Uses

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 Uses

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator Uses

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

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator Uses

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next Uses

func (iter *OperationListResultIterator) Next() error

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

func (*OperationListResultIterator) NextWithContext Uses

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

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

func (OperationListResultIterator) NotDone Uses

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response Uses

func (iter OperationListResultIterator) Response() OperationListResult

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

func (OperationListResultIterator) Value Uses

func (iter OperationListResultIterator) Value() Operation

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

type OperationListResultPage Uses

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

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage Uses

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

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next Uses

func (page *OperationListResultPage) Next() error

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

func (*OperationListResultPage) NextWithContext Uses

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

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

func (OperationListResultPage) NotDone Uses

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response Uses

func (page OperationListResultPage) Response() OperationListResult

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

func (OperationListResultPage) Values Uses

func (page OperationListResultPage) Values() []Operation

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

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

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

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

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

List lists all of the available consumption REST API operations.

func (OperationsClient) ListComplete Uses

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

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

func (OperationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

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

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

func (OperationsClient) ListSender Uses

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

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

type OperatorType Uses

type OperatorType string

OperatorType enumerates the values for operator type.

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

func PossibleOperatorTypeValues Uses

func PossibleOperatorTypeValues() []OperatorType

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

type Query Uses

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

Query ...

func (Query) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Query.

func (*Query) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Query struct.

type QueryClient Uses

type QueryClient struct {
    BaseClient
}

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

func NewQueryClient Uses

func NewQueryClient(subscriptionID string) QueryClient

NewQueryClient creates an instance of the QueryClient client.

func NewQueryClientWithBaseURI Uses

func NewQueryClientWithBaseURI(baseURI string, subscriptionID string) QueryClient

NewQueryClientWithBaseURI creates an instance of the QueryClient client.

func (QueryClient) UsageByBillingAccount Uses

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 Uses

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

UsageByBillingAccountPreparer prepares the UsageByBillingAccount request.

func (QueryClient) UsageByBillingAccountResponder Uses

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 Uses

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 Uses

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 Uses

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

UsageByDepartmentPreparer prepares the UsageByDepartment request.

func (QueryClient) UsageByDepartmentResponder Uses

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 Uses

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 Uses

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 Uses

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

UsageByEnrollmentAccountPreparer prepares the UsageByEnrollmentAccount request.

func (QueryClient) UsageByEnrollmentAccountResponder Uses

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 Uses

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 Uses

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 Uses

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

UsageByManagementGroupPreparer prepares the UsageByManagementGroup request.

func (QueryClient) UsageByManagementGroupResponder Uses

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 Uses

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 Uses

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 Uses

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

UsageByResourceGroupPreparer prepares the UsageByResourceGroup request.

func (QueryClient) UsageByResourceGroupResponder Uses

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 Uses

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 Uses

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 Uses

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

UsageBySubscriptionPreparer prepares the UsageBySubscription request.

func (QueryClient) UsageBySubscriptionResponder Uses

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 Uses

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 Uses

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

QueryColumn ...

type QueryProperties Uses

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

QueryProperties ...

type QueryResult Uses

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

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

type ReportConfigAggregation Uses

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 Uses

type ReportConfigColumnType string

ReportConfigColumnType enumerates the values for report config column type.

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

func PossibleReportConfigColumnTypeValues Uses

func PossibleReportConfigColumnTypeValues() []ReportConfigColumnType

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

type ReportConfigComparisonExpression Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for ReportConfigDataset.

type ReportConfigDatasetConfiguration Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

Resource the Resource model definition.

func (Resource) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Resource.

type RuleType Uses

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 Uses

func PossibleRuleTypeValues() []RuleType

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

type Scope Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for ShowbackRule.

func (*ShowbackRule) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ShowbackRule struct.

type ShowbackRuleClient Uses

type ShowbackRuleClient struct {
    BaseClient
}

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

func NewShowbackRuleClient Uses

func NewShowbackRuleClient(subscriptionID string) ShowbackRuleClient

NewShowbackRuleClient creates an instance of the ShowbackRuleClient client.

func NewShowbackRuleClientWithBaseURI Uses

func NewShowbackRuleClientWithBaseURI(baseURI string, subscriptionID string) ShowbackRuleClient

NewShowbackRuleClientWithBaseURI creates an instance of the ShowbackRuleClient client.

func (ShowbackRuleClient) CreateUpdateRule Uses

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 Uses

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

CreateUpdateRulePreparer prepares the CreateUpdateRule request.

func (ShowbackRuleClient) CreateUpdateRuleResponder Uses

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 Uses

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 Uses

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 Uses

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

GetBillingAccountIDPreparer prepares the GetBillingAccountID request.

func (ShowbackRuleClient) GetBillingAccountIDResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

AsBasicShowbackRuleProperties is the BasicShowbackRuleProperties implementation for ShowbackRuleProperties.

func (ShowbackRuleProperties) AsCostAllocationDetailsKind Uses

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

AsCostAllocationDetailsKind is the BasicShowbackRuleProperties implementation for ShowbackRuleProperties.

func (ShowbackRuleProperties) AsCustomPriceDetailsKind Uses

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

AsCustomPriceDetailsKind is the BasicShowbackRuleProperties implementation for ShowbackRuleProperties.

func (ShowbackRuleProperties) AsShowbackRuleProperties Uses

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

AsShowbackRuleProperties is the BasicShowbackRuleProperties implementation for ShowbackRuleProperties.

func (ShowbackRuleProperties) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ShowbackRuleProperties.

type ShowbackRuleStatus Uses

type ShowbackRuleStatus string

ShowbackRuleStatus enumerates the values for showback rule status.

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

func PossibleShowbackRuleStatusValues Uses

func PossibleShowbackRuleStatusValues() []ShowbackRuleStatus

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

type ShowbackRulesClient Uses

type ShowbackRulesClient struct {
    BaseClient
}

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

func NewShowbackRulesClient Uses

func NewShowbackRulesClient(subscriptionID string) ShowbackRulesClient

NewShowbackRulesClient creates an instance of the ShowbackRulesClient client.

func NewShowbackRulesClientWithBaseURI Uses

func NewShowbackRulesClientWithBaseURI(baseURI string, subscriptionID string) ShowbackRulesClient

NewShowbackRulesClientWithBaseURI creates an instance of the ShowbackRulesClient client.

func (ShowbackRulesClient) List Uses

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 Uses

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

ListPreparer prepares the List request.

func (ShowbackRulesClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

func PossibleTimeframeTypeValues() []TimeframeType

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

Directories

PathSynopsis
costmanagementapi

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