From 3fd3366c944cbe29be83d2c5b628208d0cc7f1b6 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 26 Nov 2020 03:49:19 +0000 Subject: [PATCH] CodeGen from PR 11728 in Azure/azure-rest-api-specs python track2 (#11728) --- .../mgmt/2017-04-24-preview/consumption/models.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/services/preview/consumption/mgmt/2017-04-24-preview/consumption/models.go b/services/preview/consumption/mgmt/2017-04-24-preview/consumption/models.go index fb63a71b60a2..aa98d9950895 100644 --- a/services/preview/consumption/mgmt/2017-04-24-preview/consumption/models.go +++ b/services/preview/consumption/mgmt/2017-04-24-preview/consumption/models.go @@ -246,8 +246,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, + } } // Resource the Resource model definition. @@ -543,6 +546,9 @@ func (page UsageDetailsListResultPage) Values() []UsageDetail { } // Creates a new instance of the UsageDetailsListResultPage type. -func NewUsageDetailsListResultPage(getNextPage func(context.Context, UsageDetailsListResult) (UsageDetailsListResult, error)) UsageDetailsListResultPage { - return UsageDetailsListResultPage{fn: getNextPage} +func NewUsageDetailsListResultPage(cur UsageDetailsListResult, getNextPage func(context.Context, UsageDetailsListResult) (UsageDetailsListResult, error)) UsageDetailsListResultPage { + return UsageDetailsListResultPage{ + fn: getNextPage, + udlr: cur, + } }