diff --git a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/CHANGELOG.md b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/CHANGELOG.md new file mode 100644 index 000000000000..8bf339b1b953 --- /dev/null +++ b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/CHANGELOG.md @@ -0,0 +1,8 @@ +Generated from https://github.com/Azure/azure-rest-api-specs/tree/3c764635e7d442b3e74caf593029fcd440b3ef82 + +Code generator @microsoft.azure/autorest.go@~2.1.161 + +## Breaking Changes + +- Function `NewOperationListResultPage` parameter(s) have been changed from `(func(context.Context, OperationListResult) (OperationListResult, error))` to `(OperationListResult, func(context.Context, OperationListResult) (OperationListResult, error))` +- Function `NewAlertListResultPage` parameter(s) have been changed from `(func(context.Context, AlertListResult) (AlertListResult, error))` to `(AlertListResult, func(context.Context, AlertListResult) (AlertListResult, error))` diff --git a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/models.go b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/models.go index c855df64300e..7447faef0ccc 100644 --- a/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/models.go +++ b/services/preview/costmanagement/mgmt/2018-08-01-preview/costmanagement/models.go @@ -265,8 +265,11 @@ func (page AlertListResultPage) Values() []Alert { } // Creates a new instance of the AlertListResultPage type. -func NewAlertListResultPage(getNextPage func(context.Context, AlertListResult) (AlertListResult, error)) AlertListResultPage { - return AlertListResultPage{fn: getNextPage} +func NewAlertListResultPage(cur AlertListResult, getNextPage func(context.Context, AlertListResult) (AlertListResult, error)) AlertListResultPage { + return AlertListResultPage{ + fn: getNextPage, + alr: cur, + } } // AlertProperties the properties of an Alert. @@ -680,8 +683,8 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } -// OperationListResult result of listing CostManagement operations. It contains a list of operations and a URL -// link to get the next set of results. +// OperationListResult result of listing CostManagement operations. It contains a list of operations and a +// URL link to get the next set of results. type OperationListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; List of CostManagement operations supported by the Microsoft.CostManagement resource provider. @@ -833,8 +836,11 @@ func (page OperationListResultPage) Values() []Operation { } // Creates a new instance of the OperationListResultPage type. -func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage { - return OperationListResultPage{fn: getNextPage} +func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage { + return OperationListResultPage{ + fn: getNextPage, + olr: cur, + } } // Query ... @@ -1240,7 +1246,8 @@ type ReportGrouping struct { Name *string `json:"name,omitempty"` } -// ReportListResult result of listing reports. It contains a list of available reports in the scope provided. +// ReportListResult result of listing reports. It contains a list of available reports in the scope +// provided. type ReportListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; The list of reports.