From dfed580bb7b8879d1add1cae4685a84e383eb063 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 12 Nov 2020 05:26:51 +0000 Subject: [PATCH] CodeGen from PR 11641 in Azure/azure-rest-api-specs update (#11641) --- .../mgmt/2015-10-01-preview/policy/models.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/services/preview/resources/mgmt/2015-10-01-preview/policy/models.go b/services/preview/resources/mgmt/2015-10-01-preview/policy/models.go index eef9b44fa404..3c88ee76c88a 100644 --- a/services/preview/resources/mgmt/2015-10-01-preview/policy/models.go +++ b/services/preview/resources/mgmt/2015-10-01-preview/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.