/
constants.go
1095 lines (924 loc) · 35 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armcostmanagement
const (
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement"
moduleVersion = "v2.1.0"
)
// AccumulatedType - Show costs accumulated over time.
type AccumulatedType string
const (
AccumulatedTypeFalse AccumulatedType = "false"
AccumulatedTypeTrue AccumulatedType = "true"
)
// PossibleAccumulatedTypeValues returns the possible values for the AccumulatedType const type.
func PossibleAccumulatedTypeValues() []AccumulatedType {
return []AccumulatedType{
AccumulatedTypeFalse,
AccumulatedTypeTrue,
}
}
// ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
type ActionType string
const (
ActionTypeInternal ActionType = "Internal"
)
// PossibleActionTypeValues returns the possible values for the ActionType const type.
func PossibleActionTypeValues() []ActionType {
return []ActionType{
ActionTypeInternal,
}
}
// AlertCategory - Alert category
type AlertCategory string
const (
AlertCategoryBilling AlertCategory = "Billing"
AlertCategoryCost AlertCategory = "Cost"
AlertCategorySystem AlertCategory = "System"
AlertCategoryUsage AlertCategory = "Usage"
)
// PossibleAlertCategoryValues returns the possible values for the AlertCategory const type.
func PossibleAlertCategoryValues() []AlertCategory {
return []AlertCategory{
AlertCategoryBilling,
AlertCategoryCost,
AlertCategorySystem,
AlertCategoryUsage,
}
}
// AlertCriteria - Criteria that triggered alert
type AlertCriteria string
const (
AlertCriteriaCostThresholdExceeded AlertCriteria = "CostThresholdExceeded"
AlertCriteriaCreditThresholdApproaching AlertCriteria = "CreditThresholdApproaching"
AlertCriteriaCreditThresholdReached AlertCriteria = "CreditThresholdReached"
AlertCriteriaCrossCloudCollectionError AlertCriteria = "CrossCloudCollectionError"
AlertCriteriaCrossCloudNewDataAvailable AlertCriteria = "CrossCloudNewDataAvailable"
AlertCriteriaForecastCostThresholdExceeded AlertCriteria = "ForecastCostThresholdExceeded"
AlertCriteriaForecastUsageThresholdExceeded AlertCriteria = "ForecastUsageThresholdExceeded"
AlertCriteriaGeneralThresholdError AlertCriteria = "GeneralThresholdError"
AlertCriteriaInvoiceDueDateApproaching AlertCriteria = "InvoiceDueDateApproaching"
AlertCriteriaInvoiceDueDateReached AlertCriteria = "InvoiceDueDateReached"
AlertCriteriaMultiCurrency AlertCriteria = "MultiCurrency"
AlertCriteriaQuotaThresholdApproaching AlertCriteria = "QuotaThresholdApproaching"
AlertCriteriaQuotaThresholdReached AlertCriteria = "QuotaThresholdReached"
AlertCriteriaUsageThresholdExceeded AlertCriteria = "UsageThresholdExceeded"
)
// PossibleAlertCriteriaValues returns the possible values for the AlertCriteria const type.
func PossibleAlertCriteriaValues() []AlertCriteria {
return []AlertCriteria{
AlertCriteriaCostThresholdExceeded,
AlertCriteriaCreditThresholdApproaching,
AlertCriteriaCreditThresholdReached,
AlertCriteriaCrossCloudCollectionError,
AlertCriteriaCrossCloudNewDataAvailable,
AlertCriteriaForecastCostThresholdExceeded,
AlertCriteriaForecastUsageThresholdExceeded,
AlertCriteriaGeneralThresholdError,
AlertCriteriaInvoiceDueDateApproaching,
AlertCriteriaInvoiceDueDateReached,
AlertCriteriaMultiCurrency,
AlertCriteriaQuotaThresholdApproaching,
AlertCriteriaQuotaThresholdReached,
AlertCriteriaUsageThresholdExceeded,
}
}
// AlertOperator - operator used to compare currentSpend with amount
type AlertOperator string
const (
AlertOperatorEqualTo AlertOperator = "EqualTo"
AlertOperatorGreaterThan AlertOperator = "GreaterThan"
AlertOperatorGreaterThanOrEqualTo AlertOperator = "GreaterThanOrEqualTo"
AlertOperatorLessThan AlertOperator = "LessThan"
AlertOperatorLessThanOrEqualTo AlertOperator = "LessThanOrEqualTo"
AlertOperatorNone AlertOperator = "None"
)
// PossibleAlertOperatorValues returns the possible values for the AlertOperator const type.
func PossibleAlertOperatorValues() []AlertOperator {
return []AlertOperator{
AlertOperatorEqualTo,
AlertOperatorGreaterThan,
AlertOperatorGreaterThanOrEqualTo,
AlertOperatorLessThan,
AlertOperatorLessThanOrEqualTo,
AlertOperatorNone,
}
}
// AlertSource - Source of alert
type AlertSource string
const (
AlertSourcePreset AlertSource = "Preset"
AlertSourceUser AlertSource = "User"
)
// PossibleAlertSourceValues returns the possible values for the AlertSource const type.
func PossibleAlertSourceValues() []AlertSource {
return []AlertSource{
AlertSourcePreset,
AlertSourceUser,
}
}
// AlertStatus - alert status
type AlertStatus string
const (
AlertStatusActive AlertStatus = "Active"
AlertStatusDismissed AlertStatus = "Dismissed"
AlertStatusNone AlertStatus = "None"
AlertStatusOverridden AlertStatus = "Overridden"
AlertStatusResolved AlertStatus = "Resolved"
)
// PossibleAlertStatusValues returns the possible values for the AlertStatus const type.
func PossibleAlertStatusValues() []AlertStatus {
return []AlertStatus{
AlertStatusActive,
AlertStatusDismissed,
AlertStatusNone,
AlertStatusOverridden,
AlertStatusResolved,
}
}
// AlertTimeGrainType - Type of timegrain cadence
type AlertTimeGrainType string
const (
AlertTimeGrainTypeAnnually AlertTimeGrainType = "Annually"
AlertTimeGrainTypeBillingAnnual AlertTimeGrainType = "BillingAnnual"
AlertTimeGrainTypeBillingMonth AlertTimeGrainType = "BillingMonth"
AlertTimeGrainTypeBillingQuarter AlertTimeGrainType = "BillingQuarter"
AlertTimeGrainTypeMonthly AlertTimeGrainType = "Monthly"
AlertTimeGrainTypeNone AlertTimeGrainType = "None"
AlertTimeGrainTypeQuarterly AlertTimeGrainType = "Quarterly"
)
// PossibleAlertTimeGrainTypeValues returns the possible values for the AlertTimeGrainType const type.
func PossibleAlertTimeGrainTypeValues() []AlertTimeGrainType {
return []AlertTimeGrainType{
AlertTimeGrainTypeAnnually,
AlertTimeGrainTypeBillingAnnual,
AlertTimeGrainTypeBillingMonth,
AlertTimeGrainTypeBillingQuarter,
AlertTimeGrainTypeMonthly,
AlertTimeGrainTypeNone,
AlertTimeGrainTypeQuarterly,
}
}
// AlertType - type of alert
type AlertType string
const (
AlertTypeBudget AlertType = "Budget"
AlertTypeBudgetForecast AlertType = "BudgetForecast"
AlertTypeCredit AlertType = "Credit"
AlertTypeGeneral AlertType = "General"
AlertTypeInvoice AlertType = "Invoice"
AlertTypeQuota AlertType = "Quota"
AlertTypeXCloud AlertType = "xCloud"
)
// PossibleAlertTypeValues returns the possible values for the AlertType const type.
func PossibleAlertTypeValues() []AlertType {
return []AlertType{
AlertTypeBudget,
AlertTypeBudgetForecast,
AlertTypeCredit,
AlertTypeGeneral,
AlertTypeInvoice,
AlertTypeQuota,
AlertTypeXCloud,
}
}
// BenefitKind - Kind/type of the benefit.
type BenefitKind string
const (
// BenefitKindIncludedQuantity - Benefit is IncludedQuantity.
BenefitKindIncludedQuantity BenefitKind = "IncludedQuantity"
// BenefitKindReservation - Benefit is Reservation.
BenefitKindReservation BenefitKind = "Reservation"
// BenefitKindSavingsPlan - Benefit is SavingsPlan.
BenefitKindSavingsPlan BenefitKind = "SavingsPlan"
)
// PossibleBenefitKindValues returns the possible values for the BenefitKind const type.
func PossibleBenefitKindValues() []BenefitKind {
return []BenefitKind{
BenefitKindIncludedQuantity,
BenefitKindReservation,
BenefitKindSavingsPlan,
}
}
// ChartType - Chart type of the main view in Cost Analysis. Required.
type ChartType string
const (
ChartTypeArea ChartType = "Area"
ChartTypeGroupedColumn ChartType = "GroupedColumn"
ChartTypeLine ChartType = "Line"
ChartTypeStackedColumn ChartType = "StackedColumn"
ChartTypeTable ChartType = "Table"
)
// PossibleChartTypeValues returns the possible values for the ChartType const type.
func PossibleChartTypeValues() []ChartType {
return []ChartType{
ChartTypeArea,
ChartTypeGroupedColumn,
ChartTypeLine,
ChartTypeStackedColumn,
ChartTypeTable,
}
}
// CheckNameAvailabilityReason - The reason why the given name is not available.
type CheckNameAvailabilityReason string
const (
CheckNameAvailabilityReasonAlreadyExists CheckNameAvailabilityReason = "AlreadyExists"
CheckNameAvailabilityReasonInvalid CheckNameAvailabilityReason = "Invalid"
)
// PossibleCheckNameAvailabilityReasonValues returns the possible values for the CheckNameAvailabilityReason const type.
func PossibleCheckNameAvailabilityReasonValues() []CheckNameAvailabilityReason {
return []CheckNameAvailabilityReason{
CheckNameAvailabilityReasonAlreadyExists,
CheckNameAvailabilityReasonInvalid,
}
}
// CostDetailsDataFormat - The data format of the report
type CostDetailsDataFormat string
const (
// CostDetailsDataFormatCSVCostDetailsDataFormat - Csv data format.
CostDetailsDataFormatCSVCostDetailsDataFormat CostDetailsDataFormat = "Csv"
)
// PossibleCostDetailsDataFormatValues returns the possible values for the CostDetailsDataFormat const type.
func PossibleCostDetailsDataFormatValues() []CostDetailsDataFormat {
return []CostDetailsDataFormat{
CostDetailsDataFormatCSVCostDetailsDataFormat,
}
}
// CostDetailsMetricType - The type of the detailed report. By default ActualCost is provided
type CostDetailsMetricType string
const (
// CostDetailsMetricTypeActualCostCostDetailsMetricType - Actual cost data.
CostDetailsMetricTypeActualCostCostDetailsMetricType CostDetailsMetricType = "ActualCost"
// CostDetailsMetricTypeAmortizedCostCostDetailsMetricType - Amortized cost data.
CostDetailsMetricTypeAmortizedCostCostDetailsMetricType CostDetailsMetricType = "AmortizedCost"
)
// PossibleCostDetailsMetricTypeValues returns the possible values for the CostDetailsMetricType const type.
func PossibleCostDetailsMetricTypeValues() []CostDetailsMetricType {
return []CostDetailsMetricType{
CostDetailsMetricTypeActualCostCostDetailsMetricType,
CostDetailsMetricTypeAmortizedCostCostDetailsMetricType,
}
}
// CostDetailsStatusType - The status of the cost details operation
type CostDetailsStatusType string
const (
// CostDetailsStatusTypeCompletedCostDetailsStatusType - Operation is Completed.
CostDetailsStatusTypeCompletedCostDetailsStatusType CostDetailsStatusType = "Completed"
// CostDetailsStatusTypeFailedCostDetailsStatusType - Operation Failed.
CostDetailsStatusTypeFailedCostDetailsStatusType CostDetailsStatusType = "Failed"
// CostDetailsStatusTypeNoDataFoundCostDetailsStatusType - Operation is Completed and no cost data found.
CostDetailsStatusTypeNoDataFoundCostDetailsStatusType CostDetailsStatusType = "NoDataFound"
)
// PossibleCostDetailsStatusTypeValues returns the possible values for the CostDetailsStatusType const type.
func PossibleCostDetailsStatusTypeValues() []CostDetailsStatusType {
return []CostDetailsStatusType{
CostDetailsStatusTypeCompletedCostDetailsStatusType,
CostDetailsStatusTypeFailedCostDetailsStatusType,
CostDetailsStatusTypeNoDataFoundCostDetailsStatusType,
}
}
// CreatedByType - The type of identity that created the resource.
type CreatedByType string
const (
CreatedByTypeApplication CreatedByType = "Application"
CreatedByTypeKey CreatedByType = "Key"
CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
CreatedByTypeUser CreatedByType = "User"
)
// PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
func PossibleCreatedByTypeValues() []CreatedByType {
return []CreatedByType{
CreatedByTypeApplication,
CreatedByTypeKey,
CreatedByTypeManagedIdentity,
CreatedByTypeUser,
}
}
// DaysOfWeek - Days of Week.
type DaysOfWeek string
const (
DaysOfWeekFriday DaysOfWeek = "Friday"
DaysOfWeekMonday DaysOfWeek = "Monday"
DaysOfWeekSaturday DaysOfWeek = "Saturday"
DaysOfWeekSunday DaysOfWeek = "Sunday"
DaysOfWeekThursday DaysOfWeek = "Thursday"
DaysOfWeekTuesday DaysOfWeek = "Tuesday"
DaysOfWeekWednesday DaysOfWeek = "Wednesday"
)
// PossibleDaysOfWeekValues returns the possible values for the DaysOfWeek const type.
func PossibleDaysOfWeekValues() []DaysOfWeek {
return []DaysOfWeek{
DaysOfWeekFriday,
DaysOfWeekMonday,
DaysOfWeekSaturday,
DaysOfWeekSunday,
DaysOfWeekThursday,
DaysOfWeekTuesday,
DaysOfWeekWednesday,
}
}
// ExecutionStatus - The last known status of the export run.
type ExecutionStatus string
const (
ExecutionStatusCompleted ExecutionStatus = "Completed"
ExecutionStatusDataNotAvailable ExecutionStatus = "DataNotAvailable"
ExecutionStatusFailed ExecutionStatus = "Failed"
ExecutionStatusInProgress ExecutionStatus = "InProgress"
ExecutionStatusNewDataNotAvailable ExecutionStatus = "NewDataNotAvailable"
ExecutionStatusQueued ExecutionStatus = "Queued"
ExecutionStatusTimeout ExecutionStatus = "Timeout"
)
// PossibleExecutionStatusValues returns the possible values for the ExecutionStatus const type.
func PossibleExecutionStatusValues() []ExecutionStatus {
return []ExecutionStatus{
ExecutionStatusCompleted,
ExecutionStatusDataNotAvailable,
ExecutionStatusFailed,
ExecutionStatusInProgress,
ExecutionStatusNewDataNotAvailable,
ExecutionStatusQueued,
ExecutionStatusTimeout,
}
}
// ExecutionType - The type of the export run.
type ExecutionType string
const (
ExecutionTypeOnDemand ExecutionType = "OnDemand"
ExecutionTypeScheduled ExecutionType = "Scheduled"
)
// PossibleExecutionTypeValues returns the possible values for the ExecutionType const type.
func PossibleExecutionTypeValues() []ExecutionType {
return []ExecutionType{
ExecutionTypeOnDemand,
ExecutionTypeScheduled,
}
}
// ExportType - The type of the query.
type ExportType string
const (
ExportTypeActualCost ExportType = "ActualCost"
ExportTypeAmortizedCost ExportType = "AmortizedCost"
ExportTypeUsage ExportType = "Usage"
)
// PossibleExportTypeValues returns the possible values for the ExportType const type.
func PossibleExportTypeValues() []ExportType {
return []ExportType{
ExportTypeActualCost,
ExportTypeAmortizedCost,
ExportTypeUsage,
}
}
type ExternalCloudProviderType string
const (
ExternalCloudProviderTypeExternalBillingAccounts ExternalCloudProviderType = "externalBillingAccounts"
ExternalCloudProviderTypeExternalSubscriptions ExternalCloudProviderType = "externalSubscriptions"
)
// PossibleExternalCloudProviderTypeValues returns the possible values for the ExternalCloudProviderType const type.
func PossibleExternalCloudProviderTypeValues() []ExternalCloudProviderType {
return []ExternalCloudProviderType{
ExternalCloudProviderTypeExternalBillingAccounts,
ExternalCloudProviderTypeExternalSubscriptions,
}
}
// FileFormat - Destination of the view data. Currently only CSV format is supported.
type FileFormat string
const (
FileFormatCSV FileFormat = "Csv"
)
// PossibleFileFormatValues returns the possible values for the FileFormat const type.
func PossibleFileFormatValues() []FileFormat {
return []FileFormat{
FileFormatCSV,
}
}
// ForecastOperatorType - The operator to use for comparison.
type ForecastOperatorType string
const (
ForecastOperatorTypeIn ForecastOperatorType = "In"
)
// PossibleForecastOperatorTypeValues returns the possible values for the ForecastOperatorType const type.
func PossibleForecastOperatorTypeValues() []ForecastOperatorType {
return []ForecastOperatorType{
ForecastOperatorTypeIn,
}
}
// ForecastTimeframe - The time frame for pulling data for the forecast.
type ForecastTimeframe string
const (
ForecastTimeframeCustom ForecastTimeframe = "Custom"
)
// PossibleForecastTimeframeValues returns the possible values for the ForecastTimeframe const type.
func PossibleForecastTimeframeValues() []ForecastTimeframe {
return []ForecastTimeframe{
ForecastTimeframeCustom,
}
}
// ForecastType - The type of the forecast.
type ForecastType string
const (
ForecastTypeActualCost ForecastType = "ActualCost"
ForecastTypeAmortizedCost ForecastType = "AmortizedCost"
ForecastTypeUsage ForecastType = "Usage"
)
// PossibleForecastTypeValues returns the possible values for the ForecastType const type.
func PossibleForecastTypeValues() []ForecastType {
return []ForecastType{
ForecastTypeActualCost,
ForecastTypeAmortizedCost,
ForecastTypeUsage,
}
}
// FormatType - The format of the export being delivered. Currently only 'Csv' is supported.
type FormatType string
const (
FormatTypeCSV FormatType = "Csv"
)
// PossibleFormatTypeValues returns the possible values for the FormatType const type.
func PossibleFormatTypeValues() []FormatType {
return []FormatType{
FormatTypeCSV,
}
}
// FunctionName - The name of the column to aggregate.
type FunctionName string
const (
FunctionNameCost FunctionName = "Cost"
FunctionNameCostUSD FunctionName = "CostUSD"
FunctionNamePreTaxCost FunctionName = "PreTaxCost"
FunctionNamePreTaxCostUSD FunctionName = "PreTaxCostUSD"
)
// PossibleFunctionNameValues returns the possible values for the FunctionName const type.
func PossibleFunctionNameValues() []FunctionName {
return []FunctionName{
FunctionNameCost,
FunctionNameCostUSD,
FunctionNamePreTaxCost,
FunctionNamePreTaxCostUSD,
}
}
// FunctionType - The name of the aggregation function to use.
type FunctionType string
const (
FunctionTypeSum FunctionType = "Sum"
)
// PossibleFunctionTypeValues returns the possible values for the FunctionType const type.
func PossibleFunctionTypeValues() []FunctionType {
return []FunctionType{
FunctionTypeSum,
}
}
// GenerateDetailedCostReportMetricType - The type of the detailed report. By default ActualCost is provided
type GenerateDetailedCostReportMetricType string
const (
GenerateDetailedCostReportMetricTypeActualCost GenerateDetailedCostReportMetricType = "ActualCost"
GenerateDetailedCostReportMetricTypeAmortizedCost GenerateDetailedCostReportMetricType = "AmortizedCost"
)
// PossibleGenerateDetailedCostReportMetricTypeValues returns the possible values for the GenerateDetailedCostReportMetricType const type.
func PossibleGenerateDetailedCostReportMetricTypeValues() []GenerateDetailedCostReportMetricType {
return []GenerateDetailedCostReportMetricType{
GenerateDetailedCostReportMetricTypeActualCost,
GenerateDetailedCostReportMetricTypeAmortizedCost,
}
}
// Grain - Grain which corresponds to value.
type Grain string
const (
// GrainDaily - Hourly grain corresponds to value per day.
GrainDaily Grain = "Daily"
// GrainHourly - Hourly grain corresponds to value per hour.
GrainHourly Grain = "Hourly"
// GrainMonthly - Hourly grain corresponds to value per month.
GrainMonthly Grain = "Monthly"
)
// PossibleGrainValues returns the possible values for the Grain const type.
func PossibleGrainValues() []Grain {
return []Grain{
GrainDaily,
GrainHourly,
GrainMonthly,
}
}
type GrainParameter string
const (
// GrainParameterDaily - Hourly grain corresponds to value per day.
GrainParameterDaily GrainParameter = "Daily"
// GrainParameterHourly - Hourly grain corresponds to value per hour.
GrainParameterHourly GrainParameter = "Hourly"
// GrainParameterMonthly - Hourly grain corresponds to value per month.
GrainParameterMonthly GrainParameter = "Monthly"
)
// PossibleGrainParameterValues returns the possible values for the GrainParameter const type.
func PossibleGrainParameterValues() []GrainParameter {
return []GrainParameter{
GrainParameterDaily,
GrainParameterHourly,
GrainParameterMonthly,
}
}
// GranularityType - The granularity of rows in the forecast.
type GranularityType string
const (
GranularityTypeDaily GranularityType = "Daily"
)
// PossibleGranularityTypeValues returns the possible values for the GranularityType const type.
func PossibleGranularityTypeValues() []GranularityType {
return []GranularityType{
GranularityTypeDaily,
}
}
// KpiType - KPI type (Forecast, Budget).
type KpiType string
const (
KpiTypeBudget KpiType = "Budget"
KpiTypeForecast KpiType = "Forecast"
)
// PossibleKpiTypeValues returns the possible values for the KpiType const type.
func PossibleKpiTypeValues() []KpiType {
return []KpiType{
KpiTypeBudget,
KpiTypeForecast,
}
}
// LookBackPeriod - The number of days used to look back.
type LookBackPeriod string
const (
// LookBackPeriodLast30Days - 30 days used to look back.
LookBackPeriodLast30Days LookBackPeriod = "Last30Days"
// LookBackPeriodLast60Days - 60 days used to look back.
LookBackPeriodLast60Days LookBackPeriod = "Last60Days"
// LookBackPeriodLast7Days - 7 days used to look back.
LookBackPeriodLast7Days LookBackPeriod = "Last7Days"
)
// PossibleLookBackPeriodValues returns the possible values for the LookBackPeriod const type.
func PossibleLookBackPeriodValues() []LookBackPeriod {
return []LookBackPeriod{
LookBackPeriodLast30Days,
LookBackPeriodLast60Days,
LookBackPeriodLast7Days,
}
}
// MetricType - Metric to use when displaying costs.
type MetricType string
const (
MetricTypeAHUB MetricType = "AHUB"
MetricTypeActualCost MetricType = "ActualCost"
MetricTypeAmortizedCost MetricType = "AmortizedCost"
)
// PossibleMetricTypeValues returns the possible values for the MetricType const type.
func PossibleMetricTypeValues() []MetricType {
return []MetricType{
MetricTypeAHUB,
MetricTypeActualCost,
MetricTypeAmortizedCost,
}
}
// OperationStatusType - The status of the long running operation.
type OperationStatusType string
const (
OperationStatusTypeCompleted OperationStatusType = "Completed"
OperationStatusTypeFailed OperationStatusType = "Failed"
OperationStatusTypeRunning OperationStatusType = "Running"
)
// PossibleOperationStatusTypeValues returns the possible values for the OperationStatusType const type.
func PossibleOperationStatusTypeValues() []OperationStatusType {
return []OperationStatusType{
OperationStatusTypeCompleted,
OperationStatusTypeFailed,
OperationStatusTypeRunning,
}
}
// OperatorType - The operator to use for comparison.
type OperatorType string
const (
OperatorTypeContains OperatorType = "Contains"
OperatorTypeIn OperatorType = "In"
)
// PossibleOperatorTypeValues returns the possible values for the OperatorType const type.
func PossibleOperatorTypeValues() []OperatorType {
return []OperatorType{
OperatorTypeContains,
OperatorTypeIn,
}
}
// Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
// value is "user,system"
type Origin string
const (
OriginSystem Origin = "system"
OriginUser Origin = "user"
OriginUserSystem Origin = "user,system"
)
// PossibleOriginValues returns the possible values for the Origin const type.
func PossibleOriginValues() []Origin {
return []Origin{
OriginSystem,
OriginUser,
OriginUserSystem,
}
}
// PivotType - Data type to show in view.
type PivotType string
const (
PivotTypeDimension PivotType = "Dimension"
PivotTypeTagKey PivotType = "TagKey"
)
// PossiblePivotTypeValues returns the possible values for the PivotType const type.
func PossiblePivotTypeValues() []PivotType {
return []PivotType{
PivotTypeDimension,
PivotTypeTagKey,
}
}
// QueryColumnType - The type of the column in the report.
type QueryColumnType string
const (
// QueryColumnTypeDimension - The dimension of cost data.
QueryColumnTypeDimension QueryColumnType = "Dimension"
// QueryColumnTypeTagKey - The tag associated with the cost data.
QueryColumnTypeTagKey QueryColumnType = "TagKey"
)
// PossibleQueryColumnTypeValues returns the possible values for the QueryColumnType const type.
func PossibleQueryColumnTypeValues() []QueryColumnType {
return []QueryColumnType{
QueryColumnTypeDimension,
QueryColumnTypeTagKey,
}
}
// QueryOperatorType - The operator to use for comparison.
type QueryOperatorType string
const (
QueryOperatorTypeIn QueryOperatorType = "In"
)
// PossibleQueryOperatorTypeValues returns the possible values for the QueryOperatorType const type.
func PossibleQueryOperatorTypeValues() []QueryOperatorType {
return []QueryOperatorType{
QueryOperatorTypeIn,
}
}
// RecurrenceType - The schedule recurrence.
type RecurrenceType string
const (
RecurrenceTypeAnnually RecurrenceType = "Annually"
RecurrenceTypeDaily RecurrenceType = "Daily"
RecurrenceTypeMonthly RecurrenceType = "Monthly"
RecurrenceTypeWeekly RecurrenceType = "Weekly"
)
// PossibleRecurrenceTypeValues returns the possible values for the RecurrenceType const type.
func PossibleRecurrenceTypeValues() []RecurrenceType {
return []RecurrenceType{
RecurrenceTypeAnnually,
RecurrenceTypeDaily,
RecurrenceTypeMonthly,
RecurrenceTypeWeekly,
}
}
// ReportConfigSortingType - Direction of sort.
type ReportConfigSortingType string
const (
ReportConfigSortingTypeAscending ReportConfigSortingType = "Ascending"
ReportConfigSortingTypeDescending ReportConfigSortingType = "Descending"
)
// PossibleReportConfigSortingTypeValues returns the possible values for the ReportConfigSortingType const type.
func PossibleReportConfigSortingTypeValues() []ReportConfigSortingType {
return []ReportConfigSortingType{
ReportConfigSortingTypeAscending,
ReportConfigSortingTypeDescending,
}
}
// ReportGranularityType - The granularity of rows in the report.
type ReportGranularityType string
const (
ReportGranularityTypeDaily ReportGranularityType = "Daily"
ReportGranularityTypeMonthly ReportGranularityType = "Monthly"
)
// PossibleReportGranularityTypeValues returns the possible values for the ReportGranularityType const type.
func PossibleReportGranularityTypeValues() []ReportGranularityType {
return []ReportGranularityType{
ReportGranularityTypeDaily,
ReportGranularityTypeMonthly,
}
}
// ReportOperationStatusType - The status of the long running operation.
type ReportOperationStatusType string
const (
ReportOperationStatusTypeCompleted ReportOperationStatusType = "Completed"
ReportOperationStatusTypeFailed ReportOperationStatusType = "Failed"
ReportOperationStatusTypeInProgress ReportOperationStatusType = "InProgress"
ReportOperationStatusTypeNoDataFound ReportOperationStatusType = "NoDataFound"
ReportOperationStatusTypeQueued ReportOperationStatusType = "Queued"
ReportOperationStatusTypeReadyToDownload ReportOperationStatusType = "ReadyToDownload"
ReportOperationStatusTypeTimedOut ReportOperationStatusType = "TimedOut"
)
// PossibleReportOperationStatusTypeValues returns the possible values for the ReportOperationStatusType const type.
func PossibleReportOperationStatusTypeValues() []ReportOperationStatusType {
return []ReportOperationStatusType{
ReportOperationStatusTypeCompleted,
ReportOperationStatusTypeFailed,
ReportOperationStatusTypeInProgress,
ReportOperationStatusTypeNoDataFound,
ReportOperationStatusTypeQueued,
ReportOperationStatusTypeReadyToDownload,
ReportOperationStatusTypeTimedOut,
}
}
// ReportTimeframeType - The time frame for pulling data for the report. If custom, then a specific time period must be provided.
type ReportTimeframeType string
const (
ReportTimeframeTypeCustom ReportTimeframeType = "Custom"
ReportTimeframeTypeMonthToDate ReportTimeframeType = "MonthToDate"
ReportTimeframeTypeWeekToDate ReportTimeframeType = "WeekToDate"
ReportTimeframeTypeYearToDate ReportTimeframeType = "YearToDate"
)
// PossibleReportTimeframeTypeValues returns the possible values for the ReportTimeframeType const type.
func PossibleReportTimeframeTypeValues() []ReportTimeframeType {
return []ReportTimeframeType{
ReportTimeframeTypeCustom,
ReportTimeframeTypeMonthToDate,
ReportTimeframeTypeWeekToDate,
ReportTimeframeTypeYearToDate,
}
}
// ReportType - 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 ReportType string
const (
ReportTypeUsage ReportType = "Usage"
)
// PossibleReportTypeValues returns the possible values for the ReportType const type.
func PossibleReportTypeValues() []ReportType {
return []ReportType{
ReportTypeUsage,
}
}
// ReservationReportSchema - The CSV file from the reportUrl blob link consists of reservation usage data with the following
// schema at daily granularity
type ReservationReportSchema string
const (
ReservationReportSchemaInstanceFlexibilityGroup ReservationReportSchema = "InstanceFlexibilityGroup"
ReservationReportSchemaInstanceFlexibilityRatio ReservationReportSchema = "InstanceFlexibilityRatio"
ReservationReportSchemaInstanceID ReservationReportSchema = "InstanceId"
ReservationReportSchemaKind ReservationReportSchema = "Kind"
ReservationReportSchemaReservationID ReservationReportSchema = "ReservationId"
ReservationReportSchemaReservationOrderID ReservationReportSchema = "ReservationOrderId"
ReservationReportSchemaReservedHours ReservationReportSchema = "ReservedHours"
ReservationReportSchemaSKUName ReservationReportSchema = "SkuName"
ReservationReportSchemaTotalReservedQuantity ReservationReportSchema = "TotalReservedQuantity"
ReservationReportSchemaUsageDate ReservationReportSchema = "UsageDate"
ReservationReportSchemaUsedHours ReservationReportSchema = "UsedHours"
)
// PossibleReservationReportSchemaValues returns the possible values for the ReservationReportSchema const type.
func PossibleReservationReportSchemaValues() []ReservationReportSchema {
return []ReservationReportSchema{
ReservationReportSchemaInstanceFlexibilityGroup,
ReservationReportSchemaInstanceFlexibilityRatio,
ReservationReportSchemaInstanceID,
ReservationReportSchemaKind,
ReservationReportSchemaReservationID,
ReservationReportSchemaReservationOrderID,
ReservationReportSchemaReservedHours,
ReservationReportSchemaSKUName,
ReservationReportSchemaTotalReservedQuantity,
ReservationReportSchemaUsageDate,
ReservationReportSchemaUsedHours,
}
}
// ScheduleFrequency - Frequency of the schedule.
type ScheduleFrequency string
const (
// ScheduleFrequencyDaily - Cost analysis data will be emailed every day.
ScheduleFrequencyDaily ScheduleFrequency = "Daily"
// ScheduleFrequencyMonthly - Cost analysis data will be emailed every month.
ScheduleFrequencyMonthly ScheduleFrequency = "Monthly"
// ScheduleFrequencyWeekly - Cost analysis data will be emailed every week.
ScheduleFrequencyWeekly ScheduleFrequency = "Weekly"
)
// PossibleScheduleFrequencyValues returns the possible values for the ScheduleFrequency const type.
func PossibleScheduleFrequencyValues() []ScheduleFrequency {
return []ScheduleFrequency{
ScheduleFrequencyDaily,
ScheduleFrequencyMonthly,
ScheduleFrequencyWeekly,
}
}
// ScheduledActionKind - Kind of the scheduled action.
type ScheduledActionKind string
const (
// ScheduledActionKindEmail - Cost analysis data will be emailed.
ScheduledActionKindEmail ScheduledActionKind = "Email"
// ScheduledActionKindInsightAlert - Cost anomaly information will be emailed. Available only on subscription scope at daily
// frequency. If no anomaly is detected on the resource, an email won't be sent.
ScheduledActionKindInsightAlert ScheduledActionKind = "InsightAlert"
)
// PossibleScheduledActionKindValues returns the possible values for the ScheduledActionKind const type.
func PossibleScheduledActionKindValues() []ScheduledActionKind {
return []ScheduledActionKind{
ScheduledActionKindEmail,
ScheduledActionKindInsightAlert,
}
}
// ScheduledActionStatus - Status of the scheduled action.
type ScheduledActionStatus string
const (
// ScheduledActionStatusDisabled - Scheduled action is saved but will not be run.
ScheduledActionStatusDisabled ScheduledActionStatus = "Disabled"
// ScheduledActionStatusEnabled - Scheduled action is saved and will be run.
ScheduledActionStatusEnabled ScheduledActionStatus = "Enabled"
// ScheduledActionStatusExpired - Scheduled action is expired.
ScheduledActionStatusExpired ScheduledActionStatus = "Expired"
)
// PossibleScheduledActionStatusValues returns the possible values for the ScheduledActionStatus const type.
func PossibleScheduledActionStatusValues() []ScheduledActionStatus {
return []ScheduledActionStatus{
ScheduledActionStatusDisabled,
ScheduledActionStatusEnabled,
ScheduledActionStatusExpired,
}
}
// Scope - Kind of the recommendation scope.
type Scope string