diff --git a/services/preview/logic/mgmt/2018-07-01-preview/logic/models.go b/services/preview/logic/mgmt/2018-07-01-preview/logic/models.go index 1712ad2b6e0e..d576727ec20d 100644 --- a/services/preview/logic/mgmt/2018-07-01-preview/logic/models.go +++ b/services/preview/logic/mgmt/2018-07-01-preview/logic/models.go @@ -740,8 +740,8 @@ type ErrorProperties struct { Message *string `json:"message,omitempty"` } -// ErrorResponse error response indicates Logic service is not able to process the incoming request. The error -// property contains the error details. +// ErrorResponse error response indicates Logic service is not able to process the incoming request. The +// error property contains the error details. type ErrorResponse struct { // Error - The error properties. Error *ErrorProperties `json:"error,omitempty"` @@ -1082,8 +1082,11 @@ func (page IntegrationAccountAgreementListResultPage) Values() []IntegrationAcco } // Creates a new instance of the IntegrationAccountAgreementListResultPage type. -func NewIntegrationAccountAgreementListResultPage(getNextPage func(context.Context, IntegrationAccountAgreementListResult) (IntegrationAccountAgreementListResult, error)) IntegrationAccountAgreementListResultPage { - return IntegrationAccountAgreementListResultPage{fn: getNextPage} +func NewIntegrationAccountAgreementListResultPage(cur IntegrationAccountAgreementListResult, getNextPage func(context.Context, IntegrationAccountAgreementListResult) (IntegrationAccountAgreementListResult, error)) IntegrationAccountAgreementListResultPage { + return IntegrationAccountAgreementListResultPage{ + fn: getNextPage, + iaalr: cur, + } } // IntegrationAccountAgreementProperties the integration account agreement properties. @@ -1389,8 +1392,11 @@ func (page IntegrationAccountCertificateListResultPage) Values() []IntegrationAc } // Creates a new instance of the IntegrationAccountCertificateListResultPage type. -func NewIntegrationAccountCertificateListResultPage(getNextPage func(context.Context, IntegrationAccountCertificateListResult) (IntegrationAccountCertificateListResult, error)) IntegrationAccountCertificateListResultPage { - return IntegrationAccountCertificateListResultPage{fn: getNextPage} +func NewIntegrationAccountCertificateListResultPage(cur IntegrationAccountCertificateListResult, getNextPage func(context.Context, IntegrationAccountCertificateListResult) (IntegrationAccountCertificateListResult, error)) IntegrationAccountCertificateListResultPage { + return IntegrationAccountCertificateListResultPage{ + fn: getNextPage, + iaclr: cur, + } } // IntegrationAccountCertificateProperties the integration account certificate properties. @@ -1574,8 +1580,11 @@ func (page IntegrationAccountListResultPage) Values() []IntegrationAccount { } // Creates a new instance of the IntegrationAccountListResultPage type. -func NewIntegrationAccountListResultPage(getNextPage func(context.Context, IntegrationAccountListResult) (IntegrationAccountListResult, error)) IntegrationAccountListResultPage { - return IntegrationAccountListResultPage{fn: getNextPage} +func NewIntegrationAccountListResultPage(cur IntegrationAccountListResult, getNextPage func(context.Context, IntegrationAccountListResult) (IntegrationAccountListResult, error)) IntegrationAccountListResultPage { + return IntegrationAccountListResultPage{ + fn: getNextPage, + ialr: cur, + } } // IntegrationAccountMap the integration account map. @@ -1838,8 +1847,11 @@ func (page IntegrationAccountMapListResultPage) Values() []IntegrationAccountMap } // Creates a new instance of the IntegrationAccountMapListResultPage type. -func NewIntegrationAccountMapListResultPage(getNextPage func(context.Context, IntegrationAccountMapListResult) (IntegrationAccountMapListResult, error)) IntegrationAccountMapListResultPage { - return IntegrationAccountMapListResultPage{fn: getNextPage} +func NewIntegrationAccountMapListResultPage(cur IntegrationAccountMapListResult, getNextPage func(context.Context, IntegrationAccountMapListResult) (IntegrationAccountMapListResult, error)) IntegrationAccountMapListResultPage { + return IntegrationAccountMapListResultPage{ + fn: getNextPage, + iamlr: cur, + } } // IntegrationAccountMapProperties the integration account map. @@ -2149,8 +2161,11 @@ func (page IntegrationAccountPartnerListResultPage) Values() []IntegrationAccoun } // Creates a new instance of the IntegrationAccountPartnerListResultPage type. -func NewIntegrationAccountPartnerListResultPage(getNextPage func(context.Context, IntegrationAccountPartnerListResult) (IntegrationAccountPartnerListResult, error)) IntegrationAccountPartnerListResultPage { - return IntegrationAccountPartnerListResultPage{fn: getNextPage} +func NewIntegrationAccountPartnerListResultPage(cur IntegrationAccountPartnerListResult, getNextPage func(context.Context, IntegrationAccountPartnerListResult) (IntegrationAccountPartnerListResult, error)) IntegrationAccountPartnerListResultPage { + return IntegrationAccountPartnerListResultPage{ + fn: getNextPage, + iaplr: cur, + } } // IntegrationAccountPartnerProperties the integration account partner properties. @@ -2298,8 +2313,8 @@ type IntegrationAccountSchemaListResult struct { NextLink *string `json:"nextLink,omitempty"` } -// IntegrationAccountSchemaListResultIterator provides access to a complete listing of IntegrationAccountSchema -// values. +// IntegrationAccountSchemaListResultIterator provides access to a complete listing of +// IntegrationAccountSchema values. type IntegrationAccountSchemaListResultIterator struct { i int page IntegrationAccountSchemaListResultPage @@ -2442,8 +2457,11 @@ func (page IntegrationAccountSchemaListResultPage) Values() []IntegrationAccount } // Creates a new instance of the IntegrationAccountSchemaListResultPage type. -func NewIntegrationAccountSchemaListResultPage(getNextPage func(context.Context, IntegrationAccountSchemaListResult) (IntegrationAccountSchemaListResult, error)) IntegrationAccountSchemaListResultPage { - return IntegrationAccountSchemaListResultPage{fn: getNextPage} +func NewIntegrationAccountSchemaListResultPage(cur IntegrationAccountSchemaListResult, getNextPage func(context.Context, IntegrationAccountSchemaListResult) (IntegrationAccountSchemaListResult, error)) IntegrationAccountSchemaListResultPage { + return IntegrationAccountSchemaListResultPage{ + fn: getNextPage, + iaslr: cur, + } } // IntegrationAccountSchemaProperties the integration account schema properties. @@ -2757,8 +2775,11 @@ func (page IntegrationAccountSessionListResultPage) Values() []IntegrationAccoun } // Creates a new instance of the IntegrationAccountSessionListResultPage type. -func NewIntegrationAccountSessionListResultPage(getNextPage func(context.Context, IntegrationAccountSessionListResult) (IntegrationAccountSessionListResult, error)) IntegrationAccountSessionListResultPage { - return IntegrationAccountSessionListResultPage{fn: getNextPage} +func NewIntegrationAccountSessionListResultPage(cur IntegrationAccountSessionListResult, getNextPage func(context.Context, IntegrationAccountSessionListResult) (IntegrationAccountSessionListResult, error)) IntegrationAccountSessionListResultPage { + return IntegrationAccountSessionListResultPage{ + fn: getNextPage, + iaslr: cur, + } } // IntegrationAccountSessionProperties the integration account session properties. @@ -2896,8 +2917,8 @@ type OperationDisplay struct { Operation *string `json:"operation,omitempty"` } -// OperationListResult result of the request to list Logic operations. It contains a list of operations and a -// URL link to get the next set of results. +// OperationListResult result of the request to list Logic operations. It contains a list of operations and +// a URL link to get the next set of results. type OperationListResult struct { autorest.Response `json:"-"` // Value - List of Logic operations supported by the Logic resource provider. @@ -3049,8 +3070,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, + } } // OperationResult the operation result definition. @@ -3364,8 +3388,11 @@ func (page RequestHistoryListResultPage) Values() []RequestHistory { } // Creates a new instance of the RequestHistoryListResultPage type. -func NewRequestHistoryListResultPage(getNextPage func(context.Context, RequestHistoryListResult) (RequestHistoryListResult, error)) RequestHistoryListResultPage { - return RequestHistoryListResultPage{fn: getNextPage} +func NewRequestHistoryListResultPage(cur RequestHistoryListResult, getNextPage func(context.Context, RequestHistoryListResult) (RequestHistoryListResult, error)) RequestHistoryListResultPage { + return RequestHistoryListResultPage{ + fn: getNextPage, + rhlr: cur, + } } // RequestHistoryProperties the request history. @@ -3777,8 +3804,11 @@ func (page WorkflowListResultPage) Values() []Workflow { } // Creates a new instance of the WorkflowListResultPage type. -func NewWorkflowListResultPage(getNextPage func(context.Context, WorkflowListResult) (WorkflowListResult, error)) WorkflowListResultPage { - return WorkflowListResultPage{fn: getNextPage} +func NewWorkflowListResultPage(cur WorkflowListResult, getNextPage func(context.Context, WorkflowListResult) (WorkflowListResult, error)) WorkflowListResultPage { + return WorkflowListResultPage{ + fn: getNextPage, + wlr: cur, + } } // WorkflowOutputParameter the workflow output parameter. @@ -4174,8 +4204,11 @@ func (page WorkflowRunActionListResultPage) Values() []WorkflowRunAction { } // Creates a new instance of the WorkflowRunActionListResultPage type. -func NewWorkflowRunActionListResultPage(getNextPage func(context.Context, WorkflowRunActionListResult) (WorkflowRunActionListResult, error)) WorkflowRunActionListResultPage { - return WorkflowRunActionListResultPage{fn: getNextPage} +func NewWorkflowRunActionListResultPage(cur WorkflowRunActionListResult, getNextPage func(context.Context, WorkflowRunActionListResult) (WorkflowRunActionListResult, error)) WorkflowRunActionListResultPage { + return WorkflowRunActionListResultPage{ + fn: getNextPage, + wralr: cur, + } } // WorkflowRunActionProperties the workflow run action properties. @@ -4546,8 +4579,11 @@ func (page WorkflowRunListResultPage) Values() []WorkflowRun { } // Creates a new instance of the WorkflowRunListResultPage type. -func NewWorkflowRunListResultPage(getNextPage func(context.Context, WorkflowRunListResult) (WorkflowRunListResult, error)) WorkflowRunListResultPage { - return WorkflowRunListResultPage{fn: getNextPage} +func NewWorkflowRunListResultPage(cur WorkflowRunListResult, getNextPage func(context.Context, WorkflowRunListResult) (WorkflowRunListResult, error)) WorkflowRunListResultPage { + return WorkflowRunListResultPage{ + fn: getNextPage, + wrlr: cur, + } } // WorkflowRunProperties the workflow run properties. @@ -4968,8 +5004,11 @@ func (page WorkflowTriggerHistoryListResultPage) Values() []WorkflowTriggerHisto } // Creates a new instance of the WorkflowTriggerHistoryListResultPage type. -func NewWorkflowTriggerHistoryListResultPage(getNextPage func(context.Context, WorkflowTriggerHistoryListResult) (WorkflowTriggerHistoryListResult, error)) WorkflowTriggerHistoryListResultPage { - return WorkflowTriggerHistoryListResultPage{fn: getNextPage} +func NewWorkflowTriggerHistoryListResultPage(cur WorkflowTriggerHistoryListResult, getNextPage func(context.Context, WorkflowTriggerHistoryListResult) (WorkflowTriggerHistoryListResult, error)) WorkflowTriggerHistoryListResultPage { + return WorkflowTriggerHistoryListResultPage{ + fn: getNextPage, + wthlr: cur, + } } // WorkflowTriggerHistoryProperties the workflow trigger history properties. @@ -5173,8 +5212,11 @@ func (page WorkflowTriggerListResultPage) Values() []WorkflowTrigger { } // Creates a new instance of the WorkflowTriggerListResultPage type. -func NewWorkflowTriggerListResultPage(getNextPage func(context.Context, WorkflowTriggerListResult) (WorkflowTriggerListResult, error)) WorkflowTriggerListResultPage { - return WorkflowTriggerListResultPage{fn: getNextPage} +func NewWorkflowTriggerListResultPage(cur WorkflowTriggerListResult, getNextPage func(context.Context, WorkflowTriggerListResult) (WorkflowTriggerListResult, error)) WorkflowTriggerListResultPage { + return WorkflowTriggerListResultPage{ + fn: getNextPage, + wtlr: cur, + } } // WorkflowTriggerProperties the workflow trigger properties. @@ -5468,8 +5510,11 @@ func (page WorkflowVersionListResultPage) Values() []WorkflowVersion { } // Creates a new instance of the WorkflowVersionListResultPage type. -func NewWorkflowVersionListResultPage(getNextPage func(context.Context, WorkflowVersionListResult) (WorkflowVersionListResult, error)) WorkflowVersionListResultPage { - return WorkflowVersionListResultPage{fn: getNextPage} +func NewWorkflowVersionListResultPage(cur WorkflowVersionListResult, getNextPage func(context.Context, WorkflowVersionListResult) (WorkflowVersionListResult, error)) WorkflowVersionListResultPage { + return WorkflowVersionListResultPage{ + fn: getNextPage, + wvlr: cur, + } } // WorkflowVersionProperties the workflow version properties.