From c45f974cc2829763de2da70e3775823ffd2c8b34 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 12 Nov 2020 05:19:48 +0000 Subject: [PATCH] CodeGen from PR 11641 in Azure/azure-rest-api-specs update (#11641) --- .../mgmt/2019-01-01/policy/models.go | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/services/resources/mgmt/2019-01-01/policy/models.go b/services/resources/mgmt/2019-01-01/policy/models.go index faeff7af979a..4109f081db4a 100644 --- a/services/resources/mgmt/2019-01-01/policy/models.go +++ b/services/resources/mgmt/2019-01-01/policy/models.go @@ -296,8 +296,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. @@ -543,8 +546,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. @@ -573,8 +579,8 @@ type DefinitionReference struct { Parameters interface{} `json:"parameters,omitempty"` } -// ErrorResponse error response indicates Azure Resource Manager is not able to process the incoming request. -// The reason is provided in the error message. +// ErrorResponse error response indicates Azure Resource Manager is not able to process the incoming +// request. The reason is provided in the error message. type ErrorResponse struct { // HTTPStatus - Http status code. HTTPStatus *string `json:"httpStatus,omitempty"` @@ -828,8 +834,11 @@ func (page SetDefinitionListResultPage) Values() []SetDefinition { } // Creates a new instance of the SetDefinitionListResultPage type. -func NewSetDefinitionListResultPage(getNextPage func(context.Context, SetDefinitionListResult) (SetDefinitionListResult, error)) SetDefinitionListResultPage { - return SetDefinitionListResultPage{fn: getNextPage} +func NewSetDefinitionListResultPage(cur SetDefinitionListResult, getNextPage func(context.Context, SetDefinitionListResult) (SetDefinitionListResult, error)) SetDefinitionListResultPage { + return SetDefinitionListResultPage{ + fn: getNextPage, + sdlr: cur, + } } // SetDefinitionProperties the policy set definition properties.