diff --git a/services/resources/mgmt/2019-09-01/policy/models.go b/services/resources/mgmt/2019-09-01/policy/models.go index 9806e85b7b55..2d730e71c054 100644 --- a/services/resources/mgmt/2019-09-01/policy/models.go +++ b/services/resources/mgmt/2019-09-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. @@ -594,8 +597,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. @@ -681,7 +687,8 @@ type ErrorAdditionalInfo struct { Info interface{} `json:"info,omitempty"` } -// ErrorResponse the resource management error response. +// ErrorResponse common error response for all Azure Resource Manager APIs to return error details for +// failed operations. (This also follows the OData error response format.) type ErrorResponse struct { // Code - READ-ONLY; The error code. Code *string `json:"code,omitempty"` @@ -1027,8 +1034,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.