From af4a7b746f786027e3bc98250d0d8afe8bcca208 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 25 Nov 2020 00:43:54 +0000 Subject: [PATCH] CodeGen from PR 11627 in Azure/azure-rest-api-specs [Hub Generated] Review request for Microsoft.Logic to add version stable/2019-05-01 (#11627) * Adding integration service environment encryption configuration details to Logic spec * Correcting json format errors * Correcting json formats * Updating examples * Fixing encryption key properties definition Co-authored-by: Rama Krishna Rayudu --- .../logic/mgmt/2016-06-01/logic/models.go | 131 ++++++++++++------ 1 file changed, 90 insertions(+), 41 deletions(-) diff --git a/services/logic/mgmt/2016-06-01/logic/models.go b/services/logic/mgmt/2016-06-01/logic/models.go index 55f26b55b481..cb7ce91a3c38 100644 --- a/services/logic/mgmt/2016-06-01/logic/models.go +++ b/services/logic/mgmt/2016-06-01/logic/models.go @@ -746,8 +746,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"` @@ -1088,8 +1088,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. @@ -1395,8 +1398,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. @@ -1580,8 +1586,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. @@ -1844,8 +1853,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. @@ -2155,8 +2167,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. @@ -2188,7 +2203,8 @@ func (iapp IntegrationAccountPartnerProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// IntegrationAccountRosettaNetProcessConfiguration the integration account RosettaNet process configuration. +// IntegrationAccountRosettaNetProcessConfiguration the integration account RosettaNet process +// configuration. type IntegrationAccountRosettaNetProcessConfiguration struct { autorest.Response `json:"-"` // IntegrationAccountRosettaNetProcessConfigurationProperties - The integration account RosettaNet process configuration properties. @@ -2299,8 +2315,8 @@ type IntegrationAccountRosettaNetProcessConfigurationListResult struct { NextLink *string `json:"nextLink,omitempty"` } -// IntegrationAccountRosettaNetProcessConfigurationListResultIterator provides access to a complete listing of -// IntegrationAccountRosettaNetProcessConfiguration values. +// IntegrationAccountRosettaNetProcessConfigurationListResultIterator provides access to a complete listing +// of IntegrationAccountRosettaNetProcessConfiguration values. type IntegrationAccountRosettaNetProcessConfigurationListResultIterator struct { i int page IntegrationAccountRosettaNetProcessConfigurationListResultPage @@ -2444,8 +2460,11 @@ func (page IntegrationAccountRosettaNetProcessConfigurationListResultPage) Value } // Creates a new instance of the IntegrationAccountRosettaNetProcessConfigurationListResultPage type. -func NewIntegrationAccountRosettaNetProcessConfigurationListResultPage(getNextPage func(context.Context, IntegrationAccountRosettaNetProcessConfigurationListResult) (IntegrationAccountRosettaNetProcessConfigurationListResult, error)) IntegrationAccountRosettaNetProcessConfigurationListResultPage { - return IntegrationAccountRosettaNetProcessConfigurationListResultPage{fn: getNextPage} +func NewIntegrationAccountRosettaNetProcessConfigurationListResultPage(cur IntegrationAccountRosettaNetProcessConfigurationListResult, getNextPage func(context.Context, IntegrationAccountRosettaNetProcessConfigurationListResult) (IntegrationAccountRosettaNetProcessConfigurationListResult, error)) IntegrationAccountRosettaNetProcessConfigurationListResultPage { + return IntegrationAccountRosettaNetProcessConfigurationListResultPage{ + fn: getNextPage, + iarnpclr: cur, + } } // IntegrationAccountRosettaNetProcessConfigurationProperties the integration account RosettaNet process @@ -2619,8 +2638,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 @@ -2763,8 +2782,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. @@ -3078,8 +3100,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. @@ -3208,8 +3233,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. @@ -3361,8 +3386,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. @@ -3676,8 +3704,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. @@ -4147,8 +4178,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. @@ -4544,8 +4578,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. @@ -4916,8 +4953,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. @@ -5338,8 +5378,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. @@ -5543,8 +5586,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. @@ -5838,8 +5884,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.