Documentation ¶
Index ¶
- func PossibleValuesForAccumulatedType() []string
- func PossibleValuesForChartType() []string
- func PossibleValuesForFunctionType() []string
- func PossibleValuesForKpiTypeType() []string
- func PossibleValuesForMetricType() []string
- func PossibleValuesForOperatorType() []string
- func PossibleValuesForPivotTypeType() []string
- func PossibleValuesForQueryColumnType() []string
- func PossibleValuesForReportConfigSortingType() []string
- func PossibleValuesForReportGranularityType() []string
- func PossibleValuesForReportTimeframeType() []string
- func PossibleValuesForReportType() []string
- func ValidateScopedViewID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateViewID(input interface{}, key string) (warnings []string, errors []error)
- type AccumulatedType
- type ChartType
- type CreateOrUpdateByScopeOperationResponse
- type CreateOrUpdateOperationResponse
- type DeleteByScopeOperationResponse
- type DeleteOperationResponse
- type FunctionType
- type GetByScopeOperationResponse
- type GetOperationResponse
- type KpiProperties
- type KpiTypeType
- type ListByScopeCompleteResult
- type ListByScopeCustomPager
- type ListByScopeOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationResponse
- type MetricType
- type OperatorType
- type PivotProperties
- type PivotTypeType
- type QueryColumnType
- type ReportConfigAggregation
- type ReportConfigComparisonExpression
- type ReportConfigDataset
- type ReportConfigDatasetConfiguration
- type ReportConfigDefinition
- type ReportConfigFilter
- type ReportConfigGrouping
- type ReportConfigSorting
- type ReportConfigSortingType
- type ReportConfigTimePeriod
- type ReportGranularityType
- type ReportTimeframeType
- type ReportType
- type ScopedViewId
- type View
- type ViewId
- type ViewOperationPredicate
- type ViewProperties
- type ViewsClient
- func (c ViewsClient) CreateOrUpdate(ctx context.Context, id ViewId, input View) (result CreateOrUpdateOperationResponse, err error)
- func (c ViewsClient) CreateOrUpdateByScope(ctx context.Context, id ScopedViewId, input View) (result CreateOrUpdateByScopeOperationResponse, err error)
- func (c ViewsClient) Delete(ctx context.Context, id ViewId) (result DeleteOperationResponse, err error)
- func (c ViewsClient) DeleteByScope(ctx context.Context, id ScopedViewId) (result DeleteByScopeOperationResponse, err error)
- func (c ViewsClient) Get(ctx context.Context, id ViewId) (result GetOperationResponse, err error)
- func (c ViewsClient) GetByScope(ctx context.Context, id ScopedViewId) (result GetByScopeOperationResponse, err error)
- func (c ViewsClient) List(ctx context.Context) (result ListOperationResponse, err error)
- func (c ViewsClient) ListByScope(ctx context.Context, id commonids.ScopeId) (result ListByScopeOperationResponse, err error)
- func (c ViewsClient) ListByScopeComplete(ctx context.Context, id commonids.ScopeId) (ListByScopeCompleteResult, error)
- func (c ViewsClient) ListByScopeCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate ViewOperationPredicate) (result ListByScopeCompleteResult, err error)
- func (c ViewsClient) ListComplete(ctx context.Context) (ListCompleteResult, error)
- func (c ViewsClient) ListCompleteMatchingPredicate(ctx context.Context, predicate ViewOperationPredicate) (result ListCompleteResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAccumulatedType ¶
func PossibleValuesForAccumulatedType() []string
func PossibleValuesForChartType ¶
func PossibleValuesForChartType() []string
func PossibleValuesForFunctionType ¶
func PossibleValuesForFunctionType() []string
func PossibleValuesForKpiTypeType ¶
func PossibleValuesForKpiTypeType() []string
func PossibleValuesForMetricType ¶
func PossibleValuesForMetricType() []string
func PossibleValuesForOperatorType ¶
func PossibleValuesForOperatorType() []string
func PossibleValuesForPivotTypeType ¶
func PossibleValuesForPivotTypeType() []string
func PossibleValuesForQueryColumnType ¶
func PossibleValuesForQueryColumnType() []string
func PossibleValuesForReportConfigSortingType ¶
func PossibleValuesForReportConfigSortingType() []string
func PossibleValuesForReportGranularityType ¶
func PossibleValuesForReportGranularityType() []string
func PossibleValuesForReportTimeframeType ¶
func PossibleValuesForReportTimeframeType() []string
func PossibleValuesForReportType ¶
func PossibleValuesForReportType() []string
func ValidateScopedViewID ¶
ValidateScopedViewID checks that 'input' can be parsed as a Scoped View ID
func ValidateViewID ¶
ValidateViewID checks that 'input' can be parsed as a View ID
Types ¶
type AccumulatedType ¶
type AccumulatedType string
const ( AccumulatedTypeFalse AccumulatedType = "false" AccumulatedTypeTrue AccumulatedType = "true" )
func (*AccumulatedType) UnmarshalJSON ¶
func (s *AccumulatedType) UnmarshalJSON(bytes []byte) error
type DeleteOperationResponse ¶
type FunctionType ¶
type FunctionType string
const (
FunctionTypeSum FunctionType = "Sum"
)
func (*FunctionType) UnmarshalJSON ¶
func (s *FunctionType) UnmarshalJSON(bytes []byte) error
type GetOperationResponse ¶
type KpiProperties ¶
type KpiProperties struct { Enabled *bool `json:"enabled,omitempty"` Id *string `json:"id,omitempty"` Type *KpiTypeType `json:"type,omitempty"` }
type KpiTypeType ¶
type KpiTypeType string
const ( KpiTypeTypeBudget KpiTypeType = "Budget" KpiTypeTypeForecast KpiTypeType = "Forecast" )
func (*KpiTypeType) UnmarshalJSON ¶
func (s *KpiTypeType) UnmarshalJSON(bytes []byte) error
type ListByScopeCustomPager ¶ added in v0.20240628.1153531
func (*ListByScopeCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByScopeCustomPager) NextPageLink() *odata.Link
type ListCompleteResult ¶
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationResponse ¶
type MetricType ¶
type MetricType string
const ( MetricTypeAHUB MetricType = "AHUB" MetricTypeActualCost MetricType = "ActualCost" MetricTypeAmortizedCost MetricType = "AmortizedCost" )
func (*MetricType) UnmarshalJSON ¶
func (s *MetricType) UnmarshalJSON(bytes []byte) error
type OperatorType ¶
type OperatorType string
const ( OperatorTypeContains OperatorType = "Contains" OperatorTypeIn OperatorType = "In" )
func (*OperatorType) UnmarshalJSON ¶
func (s *OperatorType) UnmarshalJSON(bytes []byte) error
type PivotProperties ¶
type PivotProperties struct { Name *string `json:"name,omitempty"` Type *PivotTypeType `json:"type,omitempty"` }
type PivotTypeType ¶
type PivotTypeType string
const ( PivotTypeTypeDimension PivotTypeType = "Dimension" PivotTypeTypeTagKey PivotTypeType = "TagKey" )
func (*PivotTypeType) UnmarshalJSON ¶
func (s *PivotTypeType) UnmarshalJSON(bytes []byte) error
type QueryColumnType ¶
type QueryColumnType string
const ( QueryColumnTypeDimension QueryColumnType = "Dimension" QueryColumnTypeTagKey QueryColumnType = "TagKey" )
func (*QueryColumnType) UnmarshalJSON ¶
func (s *QueryColumnType) UnmarshalJSON(bytes []byte) error
type ReportConfigAggregation ¶
type ReportConfigAggregation struct { Function FunctionType `json:"function"` Name string `json:"name"` }
type ReportConfigComparisonExpression ¶
type ReportConfigComparisonExpression struct { Name string `json:"name"` Operator OperatorType `json:"operator"` Values []string `json:"values"` }
type ReportConfigDataset ¶
type ReportConfigDataset struct { Aggregation *map[string]ReportConfigAggregation `json:"aggregation,omitempty"` Configuration *ReportConfigDatasetConfiguration `json:"configuration,omitempty"` Filter *ReportConfigFilter `json:"filter,omitempty"` Granularity *ReportGranularityType `json:"granularity,omitempty"` Grouping *[]ReportConfigGrouping `json:"grouping,omitempty"` Sorting *[]ReportConfigSorting `json:"sorting,omitempty"` }
type ReportConfigDatasetConfiguration ¶
type ReportConfigDatasetConfiguration struct {
Columns *[]string `json:"columns,omitempty"`
}
type ReportConfigDefinition ¶
type ReportConfigDefinition struct { DataSet *ReportConfigDataset `json:"dataSet,omitempty"` IncludeMonetaryCommitment *bool `json:"includeMonetaryCommitment,omitempty"` TimePeriod *ReportConfigTimePeriod `json:"timePeriod,omitempty"` Timeframe ReportTimeframeType `json:"timeframe"` Type ReportType `json:"type"` }
type ReportConfigFilter ¶
type ReportConfigFilter struct { And *[]ReportConfigFilter `json:"and,omitempty"` Dimensions *ReportConfigComparisonExpression `json:"dimensions,omitempty"` Or *[]ReportConfigFilter `json:"or,omitempty"` Tags *ReportConfigComparisonExpression `json:"tags,omitempty"` }
type ReportConfigGrouping ¶
type ReportConfigGrouping struct { Name string `json:"name"` Type QueryColumnType `json:"type"` }
type ReportConfigSorting ¶
type ReportConfigSorting struct { Direction *ReportConfigSortingType `json:"direction,omitempty"` Name string `json:"name"` }
type ReportConfigSortingType ¶
type ReportConfigSortingType string
const ( ReportConfigSortingTypeAscending ReportConfigSortingType = "Ascending" ReportConfigSortingTypeDescending ReportConfigSortingType = "Descending" )
func (*ReportConfigSortingType) UnmarshalJSON ¶
func (s *ReportConfigSortingType) UnmarshalJSON(bytes []byte) error
type ReportConfigTimePeriod ¶
func (*ReportConfigTimePeriod) GetFromAsTime ¶
func (o *ReportConfigTimePeriod) GetFromAsTime() (*time.Time, error)
func (*ReportConfigTimePeriod) GetToAsTime ¶
func (o *ReportConfigTimePeriod) GetToAsTime() (*time.Time, error)
func (*ReportConfigTimePeriod) SetFromAsTime ¶
func (o *ReportConfigTimePeriod) SetFromAsTime(input time.Time)
func (*ReportConfigTimePeriod) SetToAsTime ¶
func (o *ReportConfigTimePeriod) SetToAsTime(input time.Time)
type ReportGranularityType ¶
type ReportGranularityType string
const ( ReportGranularityTypeDaily ReportGranularityType = "Daily" ReportGranularityTypeMonthly ReportGranularityType = "Monthly" )
func (*ReportGranularityType) UnmarshalJSON ¶
func (s *ReportGranularityType) UnmarshalJSON(bytes []byte) error
type ReportTimeframeType ¶
type ReportTimeframeType string
const ( ReportTimeframeTypeCustom ReportTimeframeType = "Custom" ReportTimeframeTypeMonthToDate ReportTimeframeType = "MonthToDate" ReportTimeframeTypeWeekToDate ReportTimeframeType = "WeekToDate" ReportTimeframeTypeYearToDate ReportTimeframeType = "YearToDate" )
func (*ReportTimeframeType) UnmarshalJSON ¶
func (s *ReportTimeframeType) UnmarshalJSON(bytes []byte) error
type ReportType ¶
type ReportType string
const (
ReportTypeUsage ReportType = "Usage"
)
func (*ReportType) UnmarshalJSON ¶
func (s *ReportType) UnmarshalJSON(bytes []byte) error
type ScopedViewId ¶
ScopedViewId is a struct representing the Resource ID for a Scoped View
func NewScopedViewID ¶
func NewScopedViewID(scope string, viewName string) ScopedViewId
NewScopedViewID returns a new ScopedViewId struct
func ParseScopedViewID ¶
func ParseScopedViewID(input string) (*ScopedViewId, error)
ParseScopedViewID parses 'input' into a ScopedViewId
func ParseScopedViewIDInsensitively ¶
func ParseScopedViewIDInsensitively(input string) (*ScopedViewId, error)
ParseScopedViewIDInsensitively parses 'input' case-insensitively into a ScopedViewId note: this method should only be used for API response data and not user input
func (*ScopedViewId) FromParseResult ¶
func (id *ScopedViewId) FromParseResult(input resourceids.ParseResult) error
func (ScopedViewId) Segments ¶
func (id ScopedViewId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped View ID
func (ScopedViewId) String ¶
func (id ScopedViewId) String() string
String returns a human-readable description of this Scoped View ID
type View ¶
type View struct { ETag *string `json:"eTag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ViewProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type ViewId ¶
type ViewId struct {
ViewName string
}
ViewId is a struct representing the Resource ID for a View
func ParseViewID ¶
ParseViewID parses 'input' into a ViewId
func ParseViewIDInsensitively ¶
ParseViewIDInsensitively parses 'input' case-insensitively into a ViewId note: this method should only be used for API response data and not user input
func (*ViewId) FromParseResult ¶
func (id *ViewId) FromParseResult(input resourceids.ParseResult) error
func (ViewId) Segments ¶
func (id ViewId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this View ID
type ViewOperationPredicate ¶
func (ViewOperationPredicate) Matches ¶
func (p ViewOperationPredicate) Matches(input View) bool
type ViewProperties ¶
type ViewProperties struct { Accumulated *AccumulatedType `json:"accumulated,omitempty"` Chart *ChartType `json:"chart,omitempty"` CreatedOn *string `json:"createdOn,omitempty"` Currency *string `json:"currency,omitempty"` DateRange *string `json:"dateRange,omitempty"` DisplayName *string `json:"displayName,omitempty"` Kpis *[]KpiProperties `json:"kpis,omitempty"` Metric *MetricType `json:"metric,omitempty"` ModifiedOn *string `json:"modifiedOn,omitempty"` Pivots *[]PivotProperties `json:"pivots,omitempty"` Query *ReportConfigDefinition `json:"query,omitempty"` Scope *string `json:"scope,omitempty"` }
func (*ViewProperties) GetCreatedOnAsTime ¶
func (o *ViewProperties) GetCreatedOnAsTime() (*time.Time, error)
func (*ViewProperties) GetModifiedOnAsTime ¶
func (o *ViewProperties) GetModifiedOnAsTime() (*time.Time, error)
func (*ViewProperties) SetCreatedOnAsTime ¶
func (o *ViewProperties) SetCreatedOnAsTime(input time.Time)
func (*ViewProperties) SetModifiedOnAsTime ¶
func (o *ViewProperties) SetModifiedOnAsTime(input time.Time)
type ViewsClient ¶
type ViewsClient struct {
Client *resourcemanager.Client
}
func NewViewsClientWithBaseURI ¶
func NewViewsClientWithBaseURI(sdkApi sdkEnv.Api) (*ViewsClient, error)
func (ViewsClient) CreateOrUpdate ¶
func (c ViewsClient) CreateOrUpdate(ctx context.Context, id ViewId, input View) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ViewsClient) CreateOrUpdateByScope ¶
func (c ViewsClient) CreateOrUpdateByScope(ctx context.Context, id ScopedViewId, input View) (result CreateOrUpdateByScopeOperationResponse, err error)
CreateOrUpdateByScope ...
func (ViewsClient) Delete ¶
func (c ViewsClient) Delete(ctx context.Context, id ViewId) (result DeleteOperationResponse, err error)
Delete ...
func (ViewsClient) DeleteByScope ¶
func (c ViewsClient) DeleteByScope(ctx context.Context, id ScopedViewId) (result DeleteByScopeOperationResponse, err error)
DeleteByScope ...
func (ViewsClient) Get ¶
func (c ViewsClient) Get(ctx context.Context, id ViewId) (result GetOperationResponse, err error)
Get ...
func (ViewsClient) GetByScope ¶
func (c ViewsClient) GetByScope(ctx context.Context, id ScopedViewId) (result GetByScopeOperationResponse, err error)
GetByScope ...
func (ViewsClient) List ¶
func (c ViewsClient) List(ctx context.Context) (result ListOperationResponse, err error)
List ...
func (ViewsClient) ListByScope ¶
func (c ViewsClient) ListByScope(ctx context.Context, id commonids.ScopeId) (result ListByScopeOperationResponse, err error)
ListByScope ...
func (ViewsClient) ListByScopeComplete ¶
func (c ViewsClient) ListByScopeComplete(ctx context.Context, id commonids.ScopeId) (ListByScopeCompleteResult, error)
ListByScopeComplete retrieves all the results into a single object
func (ViewsClient) ListByScopeCompleteMatchingPredicate ¶
func (c ViewsClient) ListByScopeCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate ViewOperationPredicate) (result ListByScopeCompleteResult, err error)
ListByScopeCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ViewsClient) ListComplete ¶
func (c ViewsClient) ListComplete(ctx context.Context) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ViewsClient) ListCompleteMatchingPredicate ¶
func (c ViewsClient) ListCompleteMatchingPredicate(ctx context.Context, predicate ViewOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
Source Files ¶
- client.go
- constants.go
- id_scopedview.go
- id_view.go
- method_createorupdate.go
- method_createorupdatebyscope.go
- method_delete.go
- method_deletebyscope.go
- method_get.go
- method_getbyscope.go
- method_list.go
- method_listbyscope.go
- model_kpiproperties.go
- model_pivotproperties.go
- model_reportconfigaggregation.go
- model_reportconfigcomparisonexpression.go
- model_reportconfigdataset.go
- model_reportconfigdatasetconfiguration.go
- model_reportconfigdefinition.go
- model_reportconfigfilter.go
- model_reportconfiggrouping.go
- model_reportconfigsorting.go
- model_reportconfigtimeperiod.go
- model_view.go
- model_viewproperties.go
- predicates.go
- version.go