From d8454cb5cf4c8770e965b5da85c0650520fc0c21 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 12 Nov 2020 05:25:16 +0000 Subject: [PATCH] CodeGen from PR 11641 in Azure/azure-rest-api-specs update (#11641) --- .../resources/mgmt/2016-04-01/policy/models.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/services/resources/mgmt/2016-04-01/policy/models.go b/services/resources/mgmt/2016-04-01/policy/models.go index 7b45e54bf90b..2fd7ad4ca517 100644 --- a/services/resources/mgmt/2016-04-01/policy/models.go +++ b/services/resources/mgmt/2016-04-01/policy/models.go @@ -263,8 +263,11 @@ func (page AssignmentListResultPage) Values() []Assignment { } // Creates a new instance of the AssignmentListResultPage type. -func NewAssignmentListResultPage(getNextPage func(context.Context, AssignmentListResult) (AssignmentListResult, error)) AssignmentListResultPage { - return AssignmentListResultPage{fn: getNextPage} +func NewAssignmentListResultPage(cur AssignmentListResult, getNextPage func(context.Context, AssignmentListResult) (AssignmentListResult, error)) AssignmentListResultPage { + return AssignmentListResultPage{ + fn: getNextPage, + alr: cur, + } } // AssignmentProperties the policy assignment properties. @@ -494,8 +497,11 @@ func (page DefinitionListResultPage) Values() []Definition { } // Creates a new instance of the DefinitionListResultPage type. -func NewDefinitionListResultPage(getNextPage func(context.Context, DefinitionListResult) (DefinitionListResult, error)) DefinitionListResultPage { - return DefinitionListResultPage{fn: getNextPage} +func NewDefinitionListResultPage(cur DefinitionListResult, getNextPage func(context.Context, DefinitionListResult) (DefinitionListResult, error)) DefinitionListResultPage { + return DefinitionListResultPage{ + fn: getNextPage, + dlr: cur, + } } // DefinitionProperties the policy definition properties.