diff --git a/services/costmanagement/mgmt/2018-05-31/costmanagement/CHANGELOG.md b/services/costmanagement/mgmt/2018-05-31/costmanagement/CHANGELOG.md new file mode 100644 index 000000000000..3430499dd2dd --- /dev/null +++ b/services/costmanagement/mgmt/2018-05-31/costmanagement/CHANGELOG.md @@ -0,0 +1,7 @@ +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))` diff --git a/services/costmanagement/mgmt/2018-05-31/costmanagement/models.go b/services/costmanagement/mgmt/2018-05-31/costmanagement/models.go index 58a30bdc5791..ba7101ac2b41 100644 --- a/services/costmanagement/mgmt/2018-05-31/costmanagement/models.go +++ b/services/costmanagement/mgmt/2018-05-31/costmanagement/models.go @@ -171,8 +171,8 @@ type OperationDisplay struct { Operation *string `json:"operation,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. +// OperationListResult result of listing cost management 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 cost management operations supported by the Microsoft.CostManagement resource provider. @@ -324,8 +324,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 ...