From 0016c9e548ff88aa628ad26a45b1ebb9f6bc69fb Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Fri, 1 Nov 2019 07:11:10 +0000 Subject: [PATCH] Generated from 27d5fcbffb59163e5aeda0e779ecd92fff5ae415 add clear-output-folder in resource-manager readme.typescript.md to fix js sdk build failure --- ...IIntegrationAccountAgreementsOperations.cs | 12 +- ...IIntegrationAccountAssembliesOperations.cs | 10 +- ...ionAccountBatchConfigurationsOperations.cs | 8 +- ...ntegrationAccountCertificatesOperations.cs | 10 +- .../IIntegrationAccountMapsOperations.cs | 12 +- .../IIntegrationAccountPartnersOperations.cs | 12 +- .../IIntegrationAccountSchemasOperations.cs | 12 +- .../IIntegrationAccountSessionsOperations.cs | 10 +- .../IIntegrationAccountsOperations.cs | 24 +- ...nServiceEnvironmentManagedApiOperations.cs | 77 + ...ServiceEnvironmentManagedApisOperations.cs | 208 ++ ...rviceEnvironmentNetworkHealthOperations.cs | 52 + ...grationServiceEnvironmentSkusOperations.cs | 74 + ...ntegrationServiceEnvironmentsOperations.cs | 299 +++ .../src/Generated/ILogicManagementClient.cs | 25 + ...IWorkflowRunActionRepetitionsOperations.cs | 6 +- ...flowRunActionScopeRepetitionsOperations.cs | 6 +- .../IWorkflowRunActionsOperations.cs | 8 +- .../src/Generated/IWorkflowRunOperations.cs | 2 +- .../src/Generated/IWorkflowRunsOperations.cs | 8 +- .../IWorkflowTriggerHistoriesOperations.cs | 8 +- .../Generated/IWorkflowTriggersOperations.cs | 14 +- .../IWorkflowVersionTriggersOperations.cs | 2 +- .../Generated/IWorkflowVersionsOperations.cs | 6 +- .../src/Generated/IWorkflowsOperations.cs | 62 +- .../IntegrationAccountAgreementsOperations.cs | 66 +- .../IntegrationAccountAssembliesOperations.cs | 55 +- ...ionAccountBatchConfigurationsOperations.cs | 44 +- ...ntegrationAccountCertificatesOperations.cs | 55 +- .../IntegrationAccountMapsOperations.cs | 66 +- .../IntegrationAccountPartnersOperations.cs | 66 +- .../IntegrationAccountSchemasOperations.cs | 66 +- .../IntegrationAccountSessionsOperations.cs | 55 +- .../IntegrationAccountsOperations.cs | 132 +- ...nServiceEnvironmentManagedApiOperations.cs | 422 ++++ ...vironmentManagedApiOperationsExtensions.cs | 105 + ...ServiceEnvironmentManagedApisOperations.cs | 1060 ++++++++++ ...ironmentManagedApisOperationsExtensions.cs | 323 +++ ...rviceEnvironmentNetworkHealthOperations.cs | 245 +++ ...onmentNetworkHealthOperationsExtensions.cs | 67 + ...grationServiceEnvironmentSkusOperations.cs | 413 ++++ ...viceEnvironmentSkusOperationsExtensions.cs | 99 + ...ntegrationServiceEnvironmentsOperations.cs | 1770 +++++++++++++++++ ...ServiceEnvironmentsOperationsExtensions.cs | 465 +++++ .../src/Generated/LogicManagementClient.cs | 32 +- .../AS2AcknowledgementConnectionSettings.cs | 30 +- .../src/Generated/Models/AS2ErrorSettings.cs | 10 +- .../src/Generated/Models/AS2MdnSettings.cs | 42 +- .../Generated/Models/AS2SecuritySettings.cs | 50 +- .../Models/ApiDeploymentParameterMetadata.cs | 87 + .../ApiDeploymentParameterMetadataSet.cs | 63 + .../ApiDeploymentParameterVisibility.cs | 23 + .../src/Generated/Models/ApiOperation.cs | 57 + .../Models/ApiOperationAnnotation.cs | 69 + .../ApiOperationPropertiesDefinition.cs | 152 ++ .../src/Generated/Models/ApiReference.cs | 106 + .../Models/ApiResourceBackendService.cs | 51 + .../Models/ApiResourceDefinitions.cs | 59 + .../Models/ApiResourceGeneralInformation.cs | 95 + .../Generated/Models/ApiResourceMetadata.cs | 139 ++ .../Generated/Models/ApiResourcePolicies.cs | 60 + .../Generated/Models/ApiResourceProperties.cs | 162 ++ .../src/Generated/Models/ApiTier.cs | 24 + .../src/Generated/Models/ApiType.cs | 23 + .../Models/AzureAsyncOperationState.cs | 24 + .../Models/EdifactValidationOverride.cs | 18 +- .../Models/EdifactValidationSettings.cs | 18 +- .../src/Generated/Models/ErrorResponseCode.cs | 24 + .../src/Generated/Models/Expression.cs | 7 + .../src/Generated/Models/ExpressionRoot.cs | 5 + .../src/Generated/Models/ExtendedErrorInfo.cs | 109 + .../src/Generated/Models/FlowEndpoints.cs | 62 + .../Models/FlowEndpointsConfiguration.cs | 59 + .../Generated/Models/IntegrationAccount.cs | 31 +- .../Models/IntegrationServiceEnvironment.cs | 70 + ...rationServiceEnvironmentAccessEndpoint.cs} | 24 +- ...ionServiceEnvironmentAccessEndpointType.cs | 23 + ...tionServiceEnvironmentNetworkDependency.cs | 82 + ...nvironmentNetworkDependencyCategoryType.cs | 33 + ...rviceEnvironmentNetworkDependencyHealth.cs | 78 + ...EnvironmentNetworkDependencyHealthState.cs | 25 + ...onmentNetworkEndPointAccessibilityState.cs | 25 + ...rationServiceEnvironmentNetworkEndpoint.cs | 74 + ...IntegrationServiceEnvironmentProperties.cs | 100 + .../IntegrationServiceEnvironmentSku.cs | 63 + ...ntegrationServiceEnvironmentSkuCapacity.cs | 79 + ...egrationServiceEnvironmentSkuDefinition.cs | 69 + ...ationServiceEnvironmentSkuDefinitionSku.cs | 63 + .../IntegrationServiceEnvironmentSkuName.cs | 23 + ...tegrationServiceEnvironmentSkuScaleType.cs | 23 + ...onServiceEnvironmentSubnetNetworkHealth.cs | 95 + .../src/Generated/Models/IpAddress.cs | 51 + .../src/Generated/Models/ManagedApi.cs | 59 + .../Generated/Models/NetworkConfiguration.cs | 70 + .../Models/SetTriggerStateActionDefinition.cs | 5 + .../src/Generated/Models/StatusAnnotation.cs | 23 + .../Models/SwaggerCustomDynamicList.cs | 102 + .../Models/SwaggerCustomDynamicProperties.cs | 74 + .../Models/SwaggerCustomDynamicSchema.cs | 72 + .../Models/SwaggerCustomDynamicTree.cs | 67 + .../Models/SwaggerCustomDynamicTreeCommand.cs | 123 ++ .../SwaggerCustomDynamicTreeParameter.cs | 81 + .../SwaggerCustomDynamicTreeSettings.cs | 63 + .../Models/SwaggerExternalDocumentation.cs | 71 + .../src/Generated/Models/SwaggerSchema.cs | 222 +++ .../src/Generated/Models/SwaggerSchemaType.cs | 28 + .../src/Generated/Models/SwaggerXml.cs | 97 + .../src/Generated/Models/TrackingEvent.cs | 28 +- .../Models/TrackingEventErrorInfo.cs | 7 + .../Models/TrackingEventsDefinition.cs | 15 +- .../src/Generated/Models/Workflow.cs | 20 +- .../Models/WorkflowTriggerHistory.cs | 4 +- .../src/Generated/Models/WsdlImportMethod.cs | 23 + .../src/Generated/Models/WsdlService.cs | 62 + .../Generated/Models/X12ValidationOverride.cs | 18 +- .../Generated/Models/X12ValidationSettings.cs | 18 +- .../SdkInfo_LogicManagementClient.cs | 60 +- .../WorkflowRunActionRepetitionsOperations.cs | 33 +- ...flowRunActionScopeRepetitionsOperations.cs | 28 +- ...ionScopeRepetitionsOperationsExtensions.cs | 6 +- .../Generated/WorkflowRunActionsOperations.cs | 44 +- .../src/Generated/WorkflowRunOperations.cs | 11 +- .../src/Generated/WorkflowRunsOperations.cs | 44 +- .../WorkflowTriggerHistoriesOperations.cs | 44 +- .../Generated/WorkflowTriggersOperations.cs | 77 +- .../WorkflowVersionTriggersOperations.cs | 11 +- .../Generated/WorkflowVersionsOperations.cs | 33 +- .../src/Generated/WorkflowsOperations.cs | 336 ++-- .../WorkflowsOperationsExtensions.cs | 55 +- 129 files changed, 10195 insertions(+), 1171 deletions(-) create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentManagedApiOperations.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentManagedApisOperations.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentNetworkHealthOperations.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentSkusOperations.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentsOperations.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApiOperations.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApiOperationsExtensions.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApisOperations.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApisOperationsExtensions.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentNetworkHealthOperations.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentNetworkHealthOperationsExtensions.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentSkusOperations.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentSkusOperationsExtensions.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentsOperations.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentsOperationsExtensions.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiDeploymentParameterMetadata.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiDeploymentParameterMetadataSet.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiDeploymentParameterVisibility.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiOperation.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiOperationAnnotation.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiOperationPropertiesDefinition.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiReference.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceBackendService.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceDefinitions.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceGeneralInformation.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceMetadata.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourcePolicies.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceProperties.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiTier.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiType.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AzureAsyncOperationState.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ErrorResponseCode.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ExtendedErrorInfo.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/FlowEndpoints.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/FlowEndpointsConfiguration.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironment.cs rename sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/{WorkflowRunActionRepetitionDefinitionCollection.cs => IntegrationServiceEnvironmentAccessEndpoint.cs} (55%) create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentAccessEndpointType.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependency.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependencyCategoryType.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependencyHealth.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependencyHealthState.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkEndPointAccessibilityState.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkEndpoint.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentProperties.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSku.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuCapacity.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuDefinition.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuDefinitionSku.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuName.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuScaleType.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSubnetNetworkHealth.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IpAddress.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ManagedApi.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/NetworkConfiguration.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/StatusAnnotation.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicList.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicProperties.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicSchema.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicTree.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicTreeCommand.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicTreeParameter.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicTreeSettings.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerExternalDocumentation.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerSchema.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerSchemaType.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerXml.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WsdlImportMethod.cs create mode 100644 sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WsdlService.cs diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountAgreementsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountAgreementsOperations.cs index 21a75bf418ac..19017a70318d 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountAgreementsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountAgreementsOperations.cs @@ -42,7 +42,7 @@ public partial interface IIntegrationAccountAgreementsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -70,7 +70,7 @@ public partial interface IIntegrationAccountAgreementsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -101,7 +101,7 @@ public partial interface IIntegrationAccountAgreementsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -129,7 +129,7 @@ public partial interface IIntegrationAccountAgreementsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -156,7 +156,7 @@ public partial interface IIntegrationAccountAgreementsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -178,7 +178,7 @@ public partial interface IIntegrationAccountAgreementsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountAssembliesOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountAssembliesOperations.cs index 60eee3d58759..43d1cd68b4ab 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountAssembliesOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountAssembliesOperations.cs @@ -38,7 +38,7 @@ public partial interface IIntegrationAccountAssembliesOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -66,7 +66,7 @@ public partial interface IIntegrationAccountAssembliesOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -97,7 +97,7 @@ public partial interface IIntegrationAccountAssembliesOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -125,7 +125,7 @@ public partial interface IIntegrationAccountAssembliesOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -150,7 +150,7 @@ public partial interface IIntegrationAccountAssembliesOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountBatchConfigurationsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountBatchConfigurationsOperations.cs index eb36e89cf78e..145eda7f63c1 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountBatchConfigurationsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountBatchConfigurationsOperations.cs @@ -38,7 +38,7 @@ public partial interface IIntegrationAccountBatchConfigurationsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -66,7 +66,7 @@ public partial interface IIntegrationAccountBatchConfigurationsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -97,7 +97,7 @@ public partial interface IIntegrationAccountBatchConfigurationsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -125,7 +125,7 @@ public partial interface IIntegrationAccountBatchConfigurationsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountCertificatesOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountCertificatesOperations.cs index 423ca7004dc3..a16599dfb6d2 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountCertificatesOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountCertificatesOperations.cs @@ -41,7 +41,7 @@ public partial interface IIntegrationAccountCertificatesOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -69,7 +69,7 @@ public partial interface IIntegrationAccountCertificatesOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -100,7 +100,7 @@ public partial interface IIntegrationAccountCertificatesOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -128,7 +128,7 @@ public partial interface IIntegrationAccountCertificatesOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -147,7 +147,7 @@ public partial interface IIntegrationAccountCertificatesOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountMapsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountMapsOperations.cs index d38e0db763b8..e560f03cd655 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountMapsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountMapsOperations.cs @@ -42,7 +42,7 @@ public partial interface IIntegrationAccountMapsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -70,7 +70,7 @@ public partial interface IIntegrationAccountMapsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -101,7 +101,7 @@ public partial interface IIntegrationAccountMapsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -129,7 +129,7 @@ public partial interface IIntegrationAccountMapsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -156,7 +156,7 @@ public partial interface IIntegrationAccountMapsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -178,7 +178,7 @@ public partial interface IIntegrationAccountMapsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountPartnersOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountPartnersOperations.cs index 7adcd632ed9e..e1dbf0aa43b2 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountPartnersOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountPartnersOperations.cs @@ -42,7 +42,7 @@ public partial interface IIntegrationAccountPartnersOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -70,7 +70,7 @@ public partial interface IIntegrationAccountPartnersOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -101,7 +101,7 @@ public partial interface IIntegrationAccountPartnersOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -129,7 +129,7 @@ public partial interface IIntegrationAccountPartnersOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -156,7 +156,7 @@ public partial interface IIntegrationAccountPartnersOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -178,7 +178,7 @@ public partial interface IIntegrationAccountPartnersOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountSchemasOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountSchemasOperations.cs index 3784b6590ee8..5d5bad73d6ff 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountSchemasOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountSchemasOperations.cs @@ -42,7 +42,7 @@ public partial interface IIntegrationAccountSchemasOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -70,7 +70,7 @@ public partial interface IIntegrationAccountSchemasOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -101,7 +101,7 @@ public partial interface IIntegrationAccountSchemasOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -129,7 +129,7 @@ public partial interface IIntegrationAccountSchemasOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -156,7 +156,7 @@ public partial interface IIntegrationAccountSchemasOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -178,7 +178,7 @@ public partial interface IIntegrationAccountSchemasOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountSessionsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountSessionsOperations.cs index 55ecb8781601..6b7fb5de8ef2 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountSessionsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountSessionsOperations.cs @@ -42,7 +42,7 @@ public partial interface IIntegrationAccountSessionsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -70,7 +70,7 @@ public partial interface IIntegrationAccountSessionsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -101,7 +101,7 @@ public partial interface IIntegrationAccountSessionsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -129,7 +129,7 @@ public partial interface IIntegrationAccountSessionsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -148,7 +148,7 @@ public partial interface IIntegrationAccountSessionsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountsOperations.cs index 2f9d55ce0062..4c1d89abd615 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountsOperations.cs @@ -35,7 +35,7 @@ public partial interface IIntegrationAccountsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -60,7 +60,7 @@ public partial interface IIntegrationAccountsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -85,7 +85,7 @@ public partial interface IIntegrationAccountsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -113,7 +113,7 @@ public partial interface IIntegrationAccountsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -141,7 +141,7 @@ public partial interface IIntegrationAccountsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -166,7 +166,7 @@ public partial interface IIntegrationAccountsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -191,7 +191,7 @@ public partial interface IIntegrationAccountsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -219,7 +219,7 @@ public partial interface IIntegrationAccountsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -247,7 +247,7 @@ public partial interface IIntegrationAccountsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -272,7 +272,7 @@ public partial interface IIntegrationAccountsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -294,7 +294,7 @@ public partial interface IIntegrationAccountsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -316,7 +316,7 @@ public partial interface IIntegrationAccountsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentManagedApiOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentManagedApiOperations.cs new file mode 100644 index 000000000000..6c085591d44f --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentManagedApiOperations.cs @@ -0,0 +1,77 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// IntegrationServiceEnvironmentManagedApiOperations operations. + /// + public partial interface IIntegrationServiceEnvironmentManagedApiOperations + { + /// + /// Gets the managed Api operations. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the managed Api operations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentManagedApisOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentManagedApisOperations.cs new file mode 100644 index 000000000000..2026efc0138c --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentManagedApisOperations.cs @@ -0,0 +1,208 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// IntegrationServiceEnvironmentManagedApisOperations operations. + /// + public partial interface IIntegrationServiceEnvironmentManagedApisOperations + { + /// + /// Gets the integration service environment managed Apis. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the integration service environment managed Api. + /// + /// + /// The resource group name. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Puts the integration service environment managed Api. + /// + /// + /// The resource group name. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> PutWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the integration service environment managed Api. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Puts the integration service environment managed Api. + /// + /// + /// The resource group name. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginPutWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the integration service environment managed Api. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the integration service environment managed Apis. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentNetworkHealthOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentNetworkHealthOperations.cs new file mode 100644 index 000000000000..2a43115ea41b --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentNetworkHealthOperations.cs @@ -0,0 +1,52 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// IntegrationServiceEnvironmentNetworkHealthOperations operations. + /// + public partial interface IIntegrationServiceEnvironmentNetworkHealthOperations + { + /// + /// Gets the integration service environment network health. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> GetWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentSkusOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentSkusOperations.cs new file mode 100644 index 000000000000..f92caad0ebad --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentSkusOperations.cs @@ -0,0 +1,74 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// IntegrationServiceEnvironmentSkusOperations operations. + /// + public partial interface IIntegrationServiceEnvironmentSkusOperations + { + /// + /// Gets a list of integration service environment Skus. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of integration service environment Skus. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentsOperations.cs new file mode 100644 index 000000000000..9701220aa3a7 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentsOperations.cs @@ -0,0 +1,299 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// IntegrationServiceEnvironmentsOperations operations. + /// + public partial interface IIntegrationServiceEnvironmentsOperations + { + /// + /// Gets a list of integration service environments by subscription. + /// + /// + /// The number of items to be included in the result. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListBySubscriptionWithHttpMessagesAsync(int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of integration service environments by resource group. + /// + /// + /// The resource group. + /// + /// + /// The number of items to be included in the result. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroup, int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets an integration service environment. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates an integration service environment. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The integration service environment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates an integration service environment. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The integration service environment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes an integration service environment. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Restarts an integration service environment. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task RestartWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates an integration service environment. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The integration service environment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates an integration service environment. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The integration service environment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginUpdateWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of integration service environments by subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of integration service environments by resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/ILogicManagementClient.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/ILogicManagementClient.cs index b784090d0814..bf6c3f33c98c 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/ILogicManagementClient.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/ILogicManagementClient.cs @@ -174,6 +174,31 @@ public partial interface ILogicManagementClient : System.IDisposable /// IIntegrationAccountSessionsOperations IntegrationAccountSessions { get; } + /// + /// Gets the IIntegrationServiceEnvironmentsOperations. + /// + IIntegrationServiceEnvironmentsOperations IntegrationServiceEnvironments { get; } + + /// + /// Gets the IIntegrationServiceEnvironmentSkusOperations. + /// + IIntegrationServiceEnvironmentSkusOperations IntegrationServiceEnvironmentSkus { get; } + + /// + /// Gets the IIntegrationServiceEnvironmentNetworkHealthOperations. + /// + IIntegrationServiceEnvironmentNetworkHealthOperations IntegrationServiceEnvironmentNetworkHealth { get; } + + /// + /// Gets the IIntegrationServiceEnvironmentManagedApisOperations. + /// + IIntegrationServiceEnvironmentManagedApisOperations IntegrationServiceEnvironmentManagedApis { get; } + + /// + /// Gets the IIntegrationServiceEnvironmentManagedApiOperations. + /// + IIntegrationServiceEnvironmentManagedApiOperations IntegrationServiceEnvironmentManagedApiOperations { get; } + /// /// Gets the IOperations. /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunActionRepetitionsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunActionRepetitionsOperations.cs index cd2e42f24f5d..db56db283c33 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunActionRepetitionsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunActionRepetitionsOperations.cs @@ -44,7 +44,7 @@ public partial interface IWorkflowRunActionRepetitionsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -78,7 +78,7 @@ public partial interface IWorkflowRunActionRepetitionsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -112,7 +112,7 @@ public partial interface IWorkflowRunActionRepetitionsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunActionScopeRepetitionsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunActionScopeRepetitionsOperations.cs index cfe3b21fb3e5..e89234647aac 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunActionScopeRepetitionsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunActionScopeRepetitionsOperations.cs @@ -44,7 +44,7 @@ public partial interface IWorkflowRunActionScopeRepetitionsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -53,7 +53,7 @@ public partial interface IWorkflowRunActionScopeRepetitionsOperations /// /// Thrown when a required parameter is null /// - Task> ListWithHttpMessagesAsync(string resourceGroupName, string workflowName, string runName, string actionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(string resourceGroupName, string workflowName, string runName, string actionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get a workflow run action scoped repetition. /// @@ -78,7 +78,7 @@ public partial interface IWorkflowRunActionScopeRepetitionsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunActionsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunActionsOperations.cs index 4c588f0e333a..5cd765001408 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunActionsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunActionsOperations.cs @@ -45,7 +45,7 @@ public partial interface IWorkflowRunActionsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -76,7 +76,7 @@ public partial interface IWorkflowRunActionsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -107,7 +107,7 @@ public partial interface IWorkflowRunActionsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -129,7 +129,7 @@ public partial interface IWorkflowRunActionsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunOperations.cs index 5bbf9ceb55e2..d17e2ed4a221 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunOperations.cs @@ -44,7 +44,7 @@ public partial interface IWorkflowRunOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunsOperations.cs index 0f151d0e3079..36e7366b21b2 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowRunsOperations.cs @@ -42,7 +42,7 @@ public partial interface IWorkflowRunsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -70,7 +70,7 @@ public partial interface IWorkflowRunsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -98,7 +98,7 @@ public partial interface IWorkflowRunsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -117,7 +117,7 @@ public partial interface IWorkflowRunsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowTriggerHistoriesOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowTriggerHistoriesOperations.cs index 81b2005df927..ba7be591585c 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowTriggerHistoriesOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowTriggerHistoriesOperations.cs @@ -45,7 +45,7 @@ public partial interface IWorkflowTriggerHistoriesOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -77,7 +77,7 @@ public partial interface IWorkflowTriggerHistoriesOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -109,7 +109,7 @@ public partial interface IWorkflowTriggerHistoriesOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -128,7 +128,7 @@ public partial interface IWorkflowTriggerHistoriesOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowTriggersOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowTriggersOperations.cs index 407afbbfefe1..0daf9dc43e2f 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowTriggersOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowTriggersOperations.cs @@ -42,7 +42,7 @@ public partial interface IWorkflowTriggersOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -70,7 +70,7 @@ public partial interface IWorkflowTriggersOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -98,7 +98,7 @@ public partial interface IWorkflowTriggersOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -148,7 +148,7 @@ public partial interface IWorkflowTriggersOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -179,7 +179,7 @@ public partial interface IWorkflowTriggersOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -204,7 +204,7 @@ public partial interface IWorkflowTriggersOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -226,7 +226,7 @@ public partial interface IWorkflowTriggersOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowVersionTriggersOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowVersionTriggersOperations.cs index e81be1742f2d..622ef174c2a9 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowVersionTriggersOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowVersionTriggersOperations.cs @@ -47,7 +47,7 @@ public partial interface IWorkflowVersionTriggersOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowVersionsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowVersionsOperations.cs index f071e4eacf13..936a08712ffb 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowVersionsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowVersionsOperations.cs @@ -41,7 +41,7 @@ public partial interface IWorkflowVersionsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -69,7 +69,7 @@ public partial interface IWorkflowVersionsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -91,7 +91,7 @@ public partial interface IWorkflowVersionsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowsOperations.cs index 704498aa5bc4..5f10fe8699e3 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowsOperations.cs @@ -36,7 +36,7 @@ public partial interface IWorkflowsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -61,7 +61,7 @@ public partial interface IWorkflowsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -86,7 +86,7 @@ public partial interface IWorkflowsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -114,7 +114,7 @@ public partial interface IWorkflowsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -142,7 +142,7 @@ public partial interface IWorkflowsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -167,7 +167,7 @@ public partial interface IWorkflowsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -189,7 +189,7 @@ public partial interface IWorkflowsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -211,7 +211,7 @@ public partial interface IWorkflowsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -236,7 +236,7 @@ public partial interface IWorkflowsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -264,7 +264,7 @@ public partial interface IWorkflowsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -289,7 +289,7 @@ public partial interface IWorkflowsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -317,7 +317,7 @@ public partial interface IWorkflowsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -342,7 +342,7 @@ public partial interface IWorkflowsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -367,7 +367,7 @@ public partial interface IWorkflowsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -386,8 +386,30 @@ public partial interface IWorkflowsOperations /// /// The workflow name. /// - /// - /// The workflow definition. + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task ValidateByLocationWithHttpMessagesAsync(string resourceGroupName, string location, string workflowName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Moves an existing workflow. + /// + /// + /// The resource group name. + /// + /// + /// The workflow name. + /// + /// + /// The workflow to move. /// /// /// The headers that will be added to request. @@ -395,13 +417,13 @@ public partial interface IWorkflowsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// /// Thrown when a required parameter is null /// - Task ValidateByLocationWithHttpMessagesAsync(string resourceGroupName, string location, string workflowName, Workflow workflow, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginMoveWithHttpMessagesAsync(string resourceGroupName, string workflowName, Workflow move, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of workflows by subscription. /// @@ -414,7 +436,7 @@ public partial interface IWorkflowsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -436,7 +458,7 @@ public partial interface IWorkflowsOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountAgreementsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountAgreementsOperations.cs index dd257a6f0dc8..37c0a88e7fa5 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountAgreementsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountAgreementsOperations.cs @@ -69,7 +69,7 @@ internal IntegrationAccountAgreementsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -194,14 +194,13 @@ internal IntegrationAccountAgreementsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -211,10 +210,6 @@ internal IntegrationAccountAgreementsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -277,7 +272,7 @@ internal IntegrationAccountAgreementsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -399,14 +394,13 @@ internal IntegrationAccountAgreementsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -416,10 +410,6 @@ internal IntegrationAccountAgreementsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -485,7 +475,7 @@ internal IntegrationAccountAgreementsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -622,14 +612,13 @@ internal IntegrationAccountAgreementsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 201) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -639,10 +628,6 @@ internal IntegrationAccountAgreementsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -723,7 +708,7 @@ internal IntegrationAccountAgreementsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -842,14 +827,13 @@ internal IntegrationAccountAgreementsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 204) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -859,10 +843,6 @@ internal IntegrationAccountAgreementsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -909,7 +889,7 @@ internal IntegrationAccountAgreementsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1042,14 +1022,13 @@ internal IntegrationAccountAgreementsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1059,10 +1038,6 @@ internal IntegrationAccountAgreementsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -1119,7 +1094,7 @@ internal IntegrationAccountAgreementsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1215,14 +1190,13 @@ internal IntegrationAccountAgreementsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1232,10 +1206,6 @@ internal IntegrationAccountAgreementsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountAssembliesOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountAssembliesOperations.cs index f8ae35d8add5..2430b1b772cc 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountAssembliesOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountAssembliesOperations.cs @@ -65,7 +65,7 @@ internal IntegrationAccountAssembliesOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -181,14 +181,13 @@ internal IntegrationAccountAssembliesOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -198,10 +197,6 @@ internal IntegrationAccountAssembliesOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -264,7 +259,7 @@ internal IntegrationAccountAssembliesOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -386,14 +381,13 @@ internal IntegrationAccountAssembliesOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -403,10 +397,6 @@ internal IntegrationAccountAssembliesOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -472,7 +462,7 @@ internal IntegrationAccountAssembliesOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -609,14 +599,13 @@ internal IntegrationAccountAssembliesOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 201) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -626,10 +615,6 @@ internal IntegrationAccountAssembliesOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -710,7 +695,7 @@ internal IntegrationAccountAssembliesOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -829,14 +814,13 @@ internal IntegrationAccountAssembliesOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 204) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -846,10 +830,6 @@ internal IntegrationAccountAssembliesOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -894,7 +874,7 @@ internal IntegrationAccountAssembliesOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1016,14 +996,13 @@ internal IntegrationAccountAssembliesOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1033,10 +1012,6 @@ internal IntegrationAccountAssembliesOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountBatchConfigurationsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountBatchConfigurationsOperations.cs index 6027949f6568..1ad05480800c 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountBatchConfigurationsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountBatchConfigurationsOperations.cs @@ -65,7 +65,7 @@ internal IntegrationAccountBatchConfigurationsOperations(LogicManagementClient c /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -181,14 +181,13 @@ internal IntegrationAccountBatchConfigurationsOperations(LogicManagementClient c string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -198,10 +197,6 @@ internal IntegrationAccountBatchConfigurationsOperations(LogicManagementClient c } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -264,7 +259,7 @@ internal IntegrationAccountBatchConfigurationsOperations(LogicManagementClient c /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -386,14 +381,13 @@ internal IntegrationAccountBatchConfigurationsOperations(LogicManagementClient c string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -403,10 +397,6 @@ internal IntegrationAccountBatchConfigurationsOperations(LogicManagementClient c } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -472,7 +462,7 @@ internal IntegrationAccountBatchConfigurationsOperations(LogicManagementClient c /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -609,14 +599,13 @@ internal IntegrationAccountBatchConfigurationsOperations(LogicManagementClient c string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 201) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -626,10 +615,6 @@ internal IntegrationAccountBatchConfigurationsOperations(LogicManagementClient c } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -710,7 +695,7 @@ internal IntegrationAccountBatchConfigurationsOperations(LogicManagementClient c /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -829,14 +814,13 @@ internal IntegrationAccountBatchConfigurationsOperations(LogicManagementClient c string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 204) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -846,10 +830,6 @@ internal IntegrationAccountBatchConfigurationsOperations(LogicManagementClient c } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountCertificatesOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountCertificatesOperations.cs index 8ce50ba5d997..1ac9ea2ff879 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountCertificatesOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountCertificatesOperations.cs @@ -68,7 +68,7 @@ internal IntegrationAccountCertificatesOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -189,14 +189,13 @@ internal IntegrationAccountCertificatesOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -206,10 +205,6 @@ internal IntegrationAccountCertificatesOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -272,7 +267,7 @@ internal IntegrationAccountCertificatesOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -394,14 +389,13 @@ internal IntegrationAccountCertificatesOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -411,10 +405,6 @@ internal IntegrationAccountCertificatesOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -480,7 +470,7 @@ internal IntegrationAccountCertificatesOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -617,14 +607,13 @@ internal IntegrationAccountCertificatesOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 201) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -634,10 +623,6 @@ internal IntegrationAccountCertificatesOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -718,7 +703,7 @@ internal IntegrationAccountCertificatesOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -837,14 +822,13 @@ internal IntegrationAccountCertificatesOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 204) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -854,10 +838,6 @@ internal IntegrationAccountCertificatesOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -896,7 +876,7 @@ internal IntegrationAccountCertificatesOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -992,14 +972,13 @@ internal IntegrationAccountCertificatesOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1009,10 +988,6 @@ internal IntegrationAccountCertificatesOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountMapsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountMapsOperations.cs index 93afbc6d0539..ea53f52adc83 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountMapsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountMapsOperations.cs @@ -69,7 +69,7 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -194,14 +194,13 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -211,10 +210,6 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -277,7 +272,7 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -399,14 +394,13 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -416,10 +410,6 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -485,7 +475,7 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -622,14 +612,13 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 201) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -639,10 +628,6 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -723,7 +708,7 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -842,14 +827,13 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 204) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -859,10 +843,6 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -909,7 +889,7 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1042,14 +1022,13 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1059,10 +1038,6 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -1119,7 +1094,7 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1215,14 +1190,13 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1232,10 +1206,6 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountPartnersOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountPartnersOperations.cs index 9d055dfac25d..d2757bc0b1a7 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountPartnersOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountPartnersOperations.cs @@ -69,7 +69,7 @@ internal IntegrationAccountPartnersOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -194,14 +194,13 @@ internal IntegrationAccountPartnersOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -211,10 +210,6 @@ internal IntegrationAccountPartnersOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -277,7 +272,7 @@ internal IntegrationAccountPartnersOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -399,14 +394,13 @@ internal IntegrationAccountPartnersOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -416,10 +410,6 @@ internal IntegrationAccountPartnersOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -485,7 +475,7 @@ internal IntegrationAccountPartnersOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -622,14 +612,13 @@ internal IntegrationAccountPartnersOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 201) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -639,10 +628,6 @@ internal IntegrationAccountPartnersOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -723,7 +708,7 @@ internal IntegrationAccountPartnersOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -842,14 +827,13 @@ internal IntegrationAccountPartnersOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 204) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -859,10 +843,6 @@ internal IntegrationAccountPartnersOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -909,7 +889,7 @@ internal IntegrationAccountPartnersOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1042,14 +1022,13 @@ internal IntegrationAccountPartnersOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1059,10 +1038,6 @@ internal IntegrationAccountPartnersOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -1119,7 +1094,7 @@ internal IntegrationAccountPartnersOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1215,14 +1190,13 @@ internal IntegrationAccountPartnersOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1232,10 +1206,6 @@ internal IntegrationAccountPartnersOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountSchemasOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountSchemasOperations.cs index 7a753e8ed044..257548df37b7 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountSchemasOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountSchemasOperations.cs @@ -69,7 +69,7 @@ internal IntegrationAccountSchemasOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -194,14 +194,13 @@ internal IntegrationAccountSchemasOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -211,10 +210,6 @@ internal IntegrationAccountSchemasOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -277,7 +272,7 @@ internal IntegrationAccountSchemasOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -399,14 +394,13 @@ internal IntegrationAccountSchemasOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -416,10 +410,6 @@ internal IntegrationAccountSchemasOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -485,7 +475,7 @@ internal IntegrationAccountSchemasOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -622,14 +612,13 @@ internal IntegrationAccountSchemasOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 201) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -639,10 +628,6 @@ internal IntegrationAccountSchemasOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -723,7 +708,7 @@ internal IntegrationAccountSchemasOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -842,14 +827,13 @@ internal IntegrationAccountSchemasOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 204) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -859,10 +843,6 @@ internal IntegrationAccountSchemasOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -909,7 +889,7 @@ internal IntegrationAccountSchemasOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1042,14 +1022,13 @@ internal IntegrationAccountSchemasOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1059,10 +1038,6 @@ internal IntegrationAccountSchemasOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -1119,7 +1094,7 @@ internal IntegrationAccountSchemasOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1215,14 +1190,13 @@ internal IntegrationAccountSchemasOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1232,10 +1206,6 @@ internal IntegrationAccountSchemasOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountSessionsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountSessionsOperations.cs index f2d60300c51a..88067fce9a2c 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountSessionsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountSessionsOperations.cs @@ -69,7 +69,7 @@ internal IntegrationAccountSessionsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -194,14 +194,13 @@ internal IntegrationAccountSessionsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -211,10 +210,6 @@ internal IntegrationAccountSessionsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -277,7 +272,7 @@ internal IntegrationAccountSessionsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -399,14 +394,13 @@ internal IntegrationAccountSessionsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -416,10 +410,6 @@ internal IntegrationAccountSessionsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -485,7 +475,7 @@ internal IntegrationAccountSessionsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -618,14 +608,13 @@ internal IntegrationAccountSessionsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 201) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -635,10 +624,6 @@ internal IntegrationAccountSessionsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -719,7 +704,7 @@ internal IntegrationAccountSessionsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -838,14 +823,13 @@ internal IntegrationAccountSessionsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 204) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -855,10 +839,6 @@ internal IntegrationAccountSessionsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -897,7 +877,7 @@ internal IntegrationAccountSessionsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -993,14 +973,13 @@ internal IntegrationAccountSessionsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1010,10 +989,6 @@ internal IntegrationAccountSessionsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountsOperations.cs index c3ba4844be32..31799683b64d 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountsOperations.cs @@ -62,7 +62,7 @@ internal IntegrationAccountsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -171,14 +171,13 @@ internal IntegrationAccountsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -188,10 +187,6 @@ internal IntegrationAccountsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -251,7 +246,7 @@ internal IntegrationAccountsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -366,14 +361,13 @@ internal IntegrationAccountsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -383,10 +377,6 @@ internal IntegrationAccountsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -446,7 +436,7 @@ internal IntegrationAccountsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -562,14 +552,13 @@ internal IntegrationAccountsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -579,10 +568,6 @@ internal IntegrationAccountsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -645,7 +630,7 @@ internal IntegrationAccountsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -776,14 +761,13 @@ internal IntegrationAccountsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 201) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -793,10 +777,6 @@ internal IntegrationAccountsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -877,7 +857,7 @@ internal IntegrationAccountsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1004,14 +984,13 @@ internal IntegrationAccountsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1021,10 +1000,6 @@ internal IntegrationAccountsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -1084,7 +1059,7 @@ internal IntegrationAccountsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1197,14 +1172,13 @@ internal IntegrationAccountsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 204) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1214,10 +1188,6 @@ internal IntegrationAccountsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -1262,7 +1232,7 @@ internal IntegrationAccountsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1389,14 +1359,13 @@ internal IntegrationAccountsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1406,10 +1375,6 @@ internal IntegrationAccountsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -1472,7 +1437,7 @@ internal IntegrationAccountsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1603,14 +1568,13 @@ internal IntegrationAccountsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1620,10 +1584,6 @@ internal IntegrationAccountsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -1686,7 +1646,7 @@ internal IntegrationAccountsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1814,14 +1774,13 @@ internal IntegrationAccountsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1831,10 +1790,6 @@ internal IntegrationAccountsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -1879,7 +1834,7 @@ internal IntegrationAccountsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -2006,14 +1961,13 @@ internal IntegrationAccountsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -2023,10 +1977,6 @@ internal IntegrationAccountsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -2083,7 +2033,7 @@ internal IntegrationAccountsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -2179,14 +2129,13 @@ internal IntegrationAccountsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -2196,10 +2145,6 @@ internal IntegrationAccountsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -2256,7 +2201,7 @@ internal IntegrationAccountsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -2352,14 +2297,13 @@ internal IntegrationAccountsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -2369,10 +2313,6 @@ internal IntegrationAccountsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApiOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApiOperations.cs new file mode 100644 index 000000000000..b69f1a4f883b --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApiOperations.cs @@ -0,0 +1,422 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// IntegrationServiceEnvironmentManagedApiOperations operations. + /// + internal partial class IntegrationServiceEnvironmentManagedApiOperations : IServiceOperations, IIntegrationServiceEnvironmentManagedApiOperations + { + /// + /// Initializes a new instance of the IntegrationServiceEnvironmentManagedApiOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal IntegrationServiceEnvironmentManagedApiOperations(LogicManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the LogicManagementClient + /// + public LogicManagementClient Client { get; private set; } + + /// + /// Gets the managed Api operations. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + } + if (integrationServiceEnvironmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "integrationServiceEnvironmentName"); + } + if (apiName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("integrationServiceEnvironmentName", integrationServiceEnvironmentName); + tracingParameters.Add("apiName", apiName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis/{apiName}/apiOperations").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{integrationServiceEnvironmentName}", System.Uri.EscapeDataString(integrationServiceEnvironmentName)); + _url = _url.Replace("{apiName}", System.Uri.EscapeDataString(apiName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the managed Api operations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApiOperationsExtensions.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApiOperationsExtensions.cs new file mode 100644 index 000000000000..2dabb0bbbb27 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApiOperationsExtensions.cs @@ -0,0 +1,105 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for IntegrationServiceEnvironmentManagedApiOperations. + /// + public static partial class IntegrationServiceEnvironmentManagedApiOperationsExtensions + { + /// + /// Gets the managed Api operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + public static IPage List(this IIntegrationServiceEnvironmentManagedApiOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName) + { + return operations.ListAsync(resourceGroup, integrationServiceEnvironmentName, apiName).GetAwaiter().GetResult(); + } + + /// + /// Gets the managed Api operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IIntegrationServiceEnvironmentManagedApiOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, apiName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the managed Api operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IIntegrationServiceEnvironmentManagedApiOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets the managed Api operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IIntegrationServiceEnvironmentManagedApiOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApisOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApisOperations.cs new file mode 100644 index 000000000000..7ca5bdcd0224 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApisOperations.cs @@ -0,0 +1,1060 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// IntegrationServiceEnvironmentManagedApisOperations operations. + /// + internal partial class IntegrationServiceEnvironmentManagedApisOperations : IServiceOperations, IIntegrationServiceEnvironmentManagedApisOperations + { + /// + /// Initializes a new instance of the IntegrationServiceEnvironmentManagedApisOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the LogicManagementClient + /// + public LogicManagementClient Client { get; private set; } + + /// + /// Gets the integration service environment managed Apis. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + } + if (integrationServiceEnvironmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "integrationServiceEnvironmentName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("integrationServiceEnvironmentName", integrationServiceEnvironmentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{integrationServiceEnvironmentName}", System.Uri.EscapeDataString(integrationServiceEnvironmentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the integration service environment managed Api. + /// + /// + /// The resource group name. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + } + if (integrationServiceEnvironmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "integrationServiceEnvironmentName"); + } + if (apiName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("integrationServiceEnvironmentName", integrationServiceEnvironmentName); + tracingParameters.Add("apiName", apiName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis/{apiName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{integrationServiceEnvironmentName}", System.Uri.EscapeDataString(integrationServiceEnvironmentName)); + _url = _url.Replace("{apiName}", System.Uri.EscapeDataString(apiName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Puts the integration service environment managed Api. + /// + /// + /// The resource group name. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> PutWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginPutWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, apiName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the integration service environment managed Api. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, apiName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Puts the integration service environment managed Api. + /// + /// + /// The resource group name. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginPutWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + } + if (integrationServiceEnvironmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "integrationServiceEnvironmentName"); + } + if (apiName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("integrationServiceEnvironmentName", integrationServiceEnvironmentName); + tracingParameters.Add("apiName", apiName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginPut", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis/{apiName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{integrationServiceEnvironmentName}", System.Uri.EscapeDataString(integrationServiceEnvironmentName)); + _url = _url.Replace("{apiName}", System.Uri.EscapeDataString(apiName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes the integration service environment managed Api. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + } + if (integrationServiceEnvironmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "integrationServiceEnvironmentName"); + } + if (apiName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("integrationServiceEnvironmentName", integrationServiceEnvironmentName); + tracingParameters.Add("apiName", apiName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis/{apiName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{integrationServiceEnvironmentName}", System.Uri.EscapeDataString(integrationServiceEnvironmentName)); + _url = _url.Replace("{apiName}", System.Uri.EscapeDataString(apiName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the integration service environment managed Apis. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApisOperationsExtensions.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApisOperationsExtensions.cs new file mode 100644 index 000000000000..5e499ea16c5d --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApisOperationsExtensions.cs @@ -0,0 +1,323 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for IntegrationServiceEnvironmentManagedApisOperations. + /// + public static partial class IntegrationServiceEnvironmentManagedApisOperationsExtensions + { + /// + /// Gets the integration service environment managed Apis. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + public static IPage List(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName) + { + return operations.ListAsync(resourceGroup, integrationServiceEnvironmentName).GetAwaiter().GetResult(); + } + + /// + /// Gets the integration service environment managed Apis. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the integration service environment managed Api. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + public static ManagedApi Get(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName) + { + return operations.GetAsync(resourceGroup, integrationServiceEnvironmentName, apiName).GetAwaiter().GetResult(); + } + + /// + /// Gets the integration service environment managed Api. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, apiName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Puts the integration service environment managed Api. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + public static ManagedApi Put(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName) + { + return operations.PutAsync(resourceGroup, integrationServiceEnvironmentName, apiName).GetAwaiter().GetResult(); + } + + /// + /// Puts the integration service environment managed Api. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + /// + /// The cancellation token. + /// + public static async Task PutAsync(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.PutWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, apiName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the integration service environment managed Api. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + public static void Delete(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName) + { + operations.DeleteAsync(resourceGroup, integrationServiceEnvironmentName, apiName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the integration service environment managed Api. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, apiName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Puts the integration service environment managed Api. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + public static ManagedApi BeginPut(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName) + { + return operations.BeginPutAsync(resourceGroup, integrationServiceEnvironmentName, apiName).GetAwaiter().GetResult(); + } + + /// + /// Puts the integration service environment managed Api. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginPutAsync(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginPutWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, apiName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the integration service environment managed Api. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + public static void BeginDelete(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName) + { + operations.BeginDeleteAsync(resourceGroup, integrationServiceEnvironmentName, apiName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the integration service environment managed Api. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The api name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, apiName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets the integration service environment managed Apis. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IIntegrationServiceEnvironmentManagedApisOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets the integration service environment managed Apis. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IIntegrationServiceEnvironmentManagedApisOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentNetworkHealthOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentNetworkHealthOperations.cs new file mode 100644 index 000000000000..076cdc27d32f --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentNetworkHealthOperations.cs @@ -0,0 +1,245 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// IntegrationServiceEnvironmentNetworkHealthOperations operations. + /// + internal partial class IntegrationServiceEnvironmentNetworkHealthOperations : IServiceOperations, IIntegrationServiceEnvironmentNetworkHealthOperations + { + /// + /// Initializes a new instance of the IntegrationServiceEnvironmentNetworkHealthOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal IntegrationServiceEnvironmentNetworkHealthOperations(LogicManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the LogicManagementClient + /// + public LogicManagementClient Client { get; private set; } + + /// + /// Gets the integration service environment network health. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> GetWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + } + if (integrationServiceEnvironmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "integrationServiceEnvironmentName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("integrationServiceEnvironmentName", integrationServiceEnvironmentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/health/network").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{integrationServiceEnvironmentName}", System.Uri.EscapeDataString(integrationServiceEnvironmentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentNetworkHealthOperationsExtensions.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentNetworkHealthOperationsExtensions.cs new file mode 100644 index 000000000000..cfb2e6213a08 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentNetworkHealthOperationsExtensions.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for IntegrationServiceEnvironmentNetworkHealthOperations. + /// + public static partial class IntegrationServiceEnvironmentNetworkHealthOperationsExtensions + { + /// + /// Gets the integration service environment network health. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + public static IDictionary Get(this IIntegrationServiceEnvironmentNetworkHealthOperations operations, string resourceGroup, string integrationServiceEnvironmentName) + { + return operations.GetAsync(resourceGroup, integrationServiceEnvironmentName).GetAwaiter().GetResult(); + } + + /// + /// Gets the integration service environment network health. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The cancellation token. + /// + public static async Task> GetAsync(this IIntegrationServiceEnvironmentNetworkHealthOperations operations, string resourceGroup, string integrationServiceEnvironmentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentSkusOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentSkusOperations.cs new file mode 100644 index 000000000000..cf82316ae70c --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentSkusOperations.cs @@ -0,0 +1,413 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// IntegrationServiceEnvironmentSkusOperations operations. + /// + internal partial class IntegrationServiceEnvironmentSkusOperations : IServiceOperations, IIntegrationServiceEnvironmentSkusOperations + { + /// + /// Initializes a new instance of the IntegrationServiceEnvironmentSkusOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal IntegrationServiceEnvironmentSkusOperations(LogicManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the LogicManagementClient + /// + public LogicManagementClient Client { get; private set; } + + /// + /// Gets a list of integration service environment Skus. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + } + if (integrationServiceEnvironmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "integrationServiceEnvironmentName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("integrationServiceEnvironmentName", integrationServiceEnvironmentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/skus").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{integrationServiceEnvironmentName}", System.Uri.EscapeDataString(integrationServiceEnvironmentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a list of integration service environment Skus. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentSkusOperationsExtensions.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentSkusOperationsExtensions.cs new file mode 100644 index 000000000000..86dff7a85e80 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentSkusOperationsExtensions.cs @@ -0,0 +1,99 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for IntegrationServiceEnvironmentSkusOperations. + /// + public static partial class IntegrationServiceEnvironmentSkusOperationsExtensions + { + /// + /// Gets a list of integration service environment Skus. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + public static IPage List(this IIntegrationServiceEnvironmentSkusOperations operations, string resourceGroup, string integrationServiceEnvironmentName) + { + return operations.ListAsync(resourceGroup, integrationServiceEnvironmentName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of integration service environment Skus. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IIntegrationServiceEnvironmentSkusOperations operations, string resourceGroup, string integrationServiceEnvironmentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of integration service environment Skus. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IIntegrationServiceEnvironmentSkusOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of integration service environment Skus. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IIntegrationServiceEnvironmentSkusOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentsOperations.cs new file mode 100644 index 000000000000..04c202ca93b7 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentsOperations.cs @@ -0,0 +1,1770 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// IntegrationServiceEnvironmentsOperations operations. + /// + internal partial class IntegrationServiceEnvironmentsOperations : IServiceOperations, IIntegrationServiceEnvironmentsOperations + { + /// + /// Initializes a new instance of the IntegrationServiceEnvironmentsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal IntegrationServiceEnvironmentsOperations(LogicManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the LogicManagementClient + /// + public LogicManagementClient Client { get; private set; } + + /// + /// Gets a list of integration service environments by subscription. + /// + /// + /// The number of items to be included in the result. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListBySubscriptionWithHttpMessagesAsync(int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("top", top); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Logic/integrationServiceEnvironments").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a list of integration service environments by resource group. + /// + /// + /// The resource group. + /// + /// + /// The number of items to be included in the result. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroup, int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("top", top); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets an integration service environment. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + } + if (integrationServiceEnvironmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "integrationServiceEnvironmentName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("integrationServiceEnvironmentName", integrationServiceEnvironmentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{integrationServiceEnvironmentName}", System.Uri.EscapeDataString(integrationServiceEnvironmentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates an integration service environment. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The integration service environment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, integrationServiceEnvironment, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates an integration service environment. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The integration service environment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, integrationServiceEnvironment, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes an integration service environment. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + } + if (integrationServiceEnvironmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "integrationServiceEnvironmentName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("integrationServiceEnvironmentName", integrationServiceEnvironmentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{integrationServiceEnvironmentName}", System.Uri.EscapeDataString(integrationServiceEnvironmentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Restarts an integration service environment. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task RestartWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + } + if (integrationServiceEnvironmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "integrationServiceEnvironmentName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("integrationServiceEnvironmentName", integrationServiceEnvironmentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Restart", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/restart").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{integrationServiceEnvironmentName}", System.Uri.EscapeDataString(integrationServiceEnvironmentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates an integration service environment. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The integration service environment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + } + if (integrationServiceEnvironmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "integrationServiceEnvironmentName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (integrationServiceEnvironment == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "integrationServiceEnvironment"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("integrationServiceEnvironmentName", integrationServiceEnvironmentName); + tracingParameters.Add("integrationServiceEnvironment", integrationServiceEnvironment); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{integrationServiceEnvironmentName}", System.Uri.EscapeDataString(integrationServiceEnvironmentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(integrationServiceEnvironment != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(integrationServiceEnvironment, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates an integration service environment. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The integration service environment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + } + if (integrationServiceEnvironmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "integrationServiceEnvironmentName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (integrationServiceEnvironment == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "integrationServiceEnvironment"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("integrationServiceEnvironmentName", integrationServiceEnvironmentName); + tracingParameters.Add("integrationServiceEnvironment", integrationServiceEnvironment); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{integrationServiceEnvironmentName}", System.Uri.EscapeDataString(integrationServiceEnvironmentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(integrationServiceEnvironment != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(integrationServiceEnvironment, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a list of integration service environments by subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListBySubscriptionNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a list of integration service environments by resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentsOperationsExtensions.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentsOperationsExtensions.cs new file mode 100644 index 000000000000..19c23e32864c --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentsOperationsExtensions.cs @@ -0,0 +1,465 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for IntegrationServiceEnvironmentsOperations. + /// + public static partial class IntegrationServiceEnvironmentsOperationsExtensions + { + /// + /// Gets a list of integration service environments by subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The number of items to be included in the result. + /// + public static IPage ListBySubscription(this IIntegrationServiceEnvironmentsOperations operations, int? top = default(int?)) + { + return operations.ListBySubscriptionAsync(top).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of integration service environments by subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The number of items to be included in the result. + /// + /// + /// The cancellation token. + /// + public static async Task> ListBySubscriptionAsync(this IIntegrationServiceEnvironmentsOperations operations, int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of integration service environments by resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The number of items to be included in the result. + /// + public static IPage ListByResourceGroup(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, int? top = default(int?)) + { + return operations.ListByResourceGroupAsync(resourceGroup, top).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of integration service environments by resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The number of items to be included in the result. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupAsync(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroup, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets an integration service environment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + public static IntegrationServiceEnvironment Get(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName) + { + return operations.GetAsync(resourceGroup, integrationServiceEnvironmentName).GetAwaiter().GetResult(); + } + + /// + /// Gets an integration service environment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates an integration service environment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The integration service environment. + /// + public static IntegrationServiceEnvironment CreateOrUpdate(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment) + { + return operations.CreateOrUpdateAsync(resourceGroup, integrationServiceEnvironmentName, integrationServiceEnvironment).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates an integration service environment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The integration service environment. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, integrationServiceEnvironment, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates an integration service environment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The integration service environment. + /// + public static IntegrationServiceEnvironment Update(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment) + { + return operations.UpdateAsync(resourceGroup, integrationServiceEnvironmentName, integrationServiceEnvironment).GetAwaiter().GetResult(); + } + + /// + /// Updates an integration service environment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The integration service environment. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, integrationServiceEnvironment, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes an integration service environment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + public static void Delete(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName) + { + operations.DeleteAsync(resourceGroup, integrationServiceEnvironmentName).GetAwaiter().GetResult(); + } + + /// + /// Deletes an integration service environment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Restarts an integration service environment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + public static void Restart(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName) + { + operations.RestartAsync(resourceGroup, integrationServiceEnvironmentName).GetAwaiter().GetResult(); + } + + /// + /// Restarts an integration service environment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The cancellation token. + /// + public static async Task RestartAsync(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.RestartWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates or updates an integration service environment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The integration service environment. + /// + public static IntegrationServiceEnvironment BeginCreateOrUpdate(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment) + { + return operations.BeginCreateOrUpdateAsync(resourceGroup, integrationServiceEnvironmentName, integrationServiceEnvironment).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates an integration service environment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The integration service environment. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, integrationServiceEnvironment, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates an integration service environment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The integration service environment. + /// + public static IntegrationServiceEnvironment BeginUpdate(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment) + { + return operations.BeginUpdateAsync(resourceGroup, integrationServiceEnvironmentName, integrationServiceEnvironment).GetAwaiter().GetResult(); + } + + /// + /// Updates an integration service environment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group. + /// + /// + /// The integration service environment name. + /// + /// + /// The integration service environment. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, integrationServiceEnvironment, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of integration service environments by subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListBySubscriptionNext(this IIntegrationServiceEnvironmentsOperations operations, string nextPageLink) + { + return operations.ListBySubscriptionNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of integration service environments by subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListBySubscriptionNextAsync(this IIntegrationServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBySubscriptionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of integration service environments by resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByResourceGroupNext(this IIntegrationServiceEnvironmentsOperations operations, string nextPageLink) + { + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of integration service environments by resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupNextAsync(this IIntegrationServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/LogicManagementClient.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/LogicManagementClient.cs index 8bb15ae6d202..c8f5dd839716 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/LogicManagementClient.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/LogicManagementClient.cs @@ -179,6 +179,31 @@ public partial class LogicManagementClient : ServiceClient public virtual IIntegrationAccountSessionsOperations IntegrationAccountSessions { get; private set; } + /// + /// Gets the IIntegrationServiceEnvironmentsOperations. + /// + public virtual IIntegrationServiceEnvironmentsOperations IntegrationServiceEnvironments { get; private set; } + + /// + /// Gets the IIntegrationServiceEnvironmentSkusOperations. + /// + public virtual IIntegrationServiceEnvironmentSkusOperations IntegrationServiceEnvironmentSkus { get; private set; } + + /// + /// Gets the IIntegrationServiceEnvironmentNetworkHealthOperations. + /// + public virtual IIntegrationServiceEnvironmentNetworkHealthOperations IntegrationServiceEnvironmentNetworkHealth { get; private set; } + + /// + /// Gets the IIntegrationServiceEnvironmentManagedApisOperations. + /// + public virtual IIntegrationServiceEnvironmentManagedApisOperations IntegrationServiceEnvironmentManagedApis { get; private set; } + + /// + /// Gets the IIntegrationServiceEnvironmentManagedApiOperations. + /// + public virtual IIntegrationServiceEnvironmentManagedApiOperations IntegrationServiceEnvironmentManagedApiOperations { get; private set; } + /// /// Gets the IOperations. /// @@ -446,9 +471,14 @@ private void Initialize() IntegrationAccountAgreements = new IntegrationAccountAgreementsOperations(this); IntegrationAccountCertificates = new IntegrationAccountCertificatesOperations(this); IntegrationAccountSessions = new IntegrationAccountSessionsOperations(this); + IntegrationServiceEnvironments = new IntegrationServiceEnvironmentsOperations(this); + IntegrationServiceEnvironmentSkus = new IntegrationServiceEnvironmentSkusOperations(this); + IntegrationServiceEnvironmentNetworkHealth = new IntegrationServiceEnvironmentNetworkHealthOperations(this); + IntegrationServiceEnvironmentManagedApis = new IntegrationServiceEnvironmentManagedApisOperations(this); + IntegrationServiceEnvironmentManagedApiOperations = new IntegrationServiceEnvironmentManagedApiOperations(this); Operations = new Operations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2018-07-01-preview"; + ApiVersion = "2019-05-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AS2AcknowledgementConnectionSettings.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AS2AcknowledgementConnectionSettings.cs index e4713157d8fb..7c78a6d51bbd 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AS2AcknowledgementConnectionSettings.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AS2AcknowledgementConnectionSettings.cs @@ -31,14 +31,14 @@ public AS2AcknowledgementConnectionSettings() /// Initializes a new instance of the /// AS2AcknowledgementConnectionSettings class. /// - /// The value indicating - /// whether to ignore mismatch in certificate name. - /// The value indicating - /// whether to support HTTP status code 'CONTINUE'. - /// The value indicating whether - /// to keep the connection alive. - /// The value indicating whether to - /// unfold the HTTP headers. + /// Indicates whether to + /// ignore mismatch in certificate name. + /// Indicates whether to + /// support HTTP status code 'CONTINUE'. + /// Indicates whether to keep the + /// connection alive. + /// Indicates whether to unfold the + /// HTTP headers. public AS2AcknowledgementConnectionSettings(bool ignoreCertificateNameMismatch, bool supportHttpStatusCodeContinue, bool keepHttpConnectionAlive, bool unfoldHttpHeaders) { IgnoreCertificateNameMismatch = ignoreCertificateNameMismatch; @@ -54,29 +54,27 @@ public AS2AcknowledgementConnectionSettings(bool ignoreCertificateNameMismatch, partial void CustomInit(); /// - /// Gets or sets the value indicating whether to ignore mismatch in - /// certificate name. + /// Gets or sets indicates whether to ignore mismatch in certificate + /// name. /// [JsonProperty(PropertyName = "ignoreCertificateNameMismatch")] public bool IgnoreCertificateNameMismatch { get; set; } /// - /// Gets or sets the value indicating whether to support HTTP status - /// code 'CONTINUE'. + /// Gets or sets indicates whether to support HTTP status code + /// 'CONTINUE'. /// [JsonProperty(PropertyName = "supportHttpStatusCodeContinue")] public bool SupportHttpStatusCodeContinue { get; set; } /// - /// Gets or sets the value indicating whether to keep the connection - /// alive. + /// Gets or sets indicates whether to keep the connection alive. /// [JsonProperty(PropertyName = "keepHttpConnectionAlive")] public bool KeepHttpConnectionAlive { get; set; } /// - /// Gets or sets the value indicating whether to unfold the HTTP - /// headers. + /// Gets or sets indicates whether to unfold the HTTP headers. /// [JsonProperty(PropertyName = "unfoldHttpHeaders")] public bool UnfoldHttpHeaders { get; set; } diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AS2ErrorSettings.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AS2ErrorSettings.cs index 6b87becd9e4f..8ef61c1bdb51 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AS2ErrorSettings.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AS2ErrorSettings.cs @@ -31,12 +31,12 @@ public AS2ErrorSettings() /// /// The value indicating whether /// to suspend duplicate message. - /// The value indicating whether + /// The value indicating whether /// to resend message If MDN is not received. - public AS2ErrorSettings(bool suspendDuplicateMessage, bool resendIfMdnNotReceived) + public AS2ErrorSettings(bool suspendDuplicateMessage, bool resendIfMDNNotReceived) { SuspendDuplicateMessage = suspendDuplicateMessage; - ResendIfMdnNotReceived = resendIfMdnNotReceived; + ResendIfMDNNotReceived = resendIfMDNNotReceived; CustomInit(); } @@ -56,8 +56,8 @@ public AS2ErrorSettings(bool suspendDuplicateMessage, bool resendIfMdnNotReceive /// Gets or sets the value indicating whether to resend message If MDN /// is not received. /// - [JsonProperty(PropertyName = "resendIfMdnNotReceived")] - public bool ResendIfMdnNotReceived { get; set; } + [JsonProperty(PropertyName = "resendIfMDNNotReceived")] + public bool ResendIfMDNNotReceived { get; set; } /// /// Validate the object. diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AS2MdnSettings.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AS2MdnSettings.cs index 3cc8eb78121b..9cef3e92d094 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AS2MdnSettings.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AS2MdnSettings.cs @@ -30,15 +30,15 @@ public AS2MdnSettings() /// /// Initializes a new instance of the AS2MdnSettings class. /// - /// The value indicating whether to send or + /// The value indicating whether to send or /// request a MDN. - /// The value indicating whether the MDN needs to + /// The value indicating whether the MDN needs to /// be signed or not. - /// The value indicating whether to + /// The value indicating whether to /// send the asynchronous MDN. - /// The value indicating + /// The value indicating /// whether to sign the outbound MDN if optional. - /// The value indicating + /// The value indicating /// whether to send inbound MDN to message box. /// The signing or hashing algorithm. /// Possible values include: 'NotSpecified', 'None', 'MD5', 'SHA1', @@ -47,16 +47,16 @@ public AS2MdnSettings() /// The disposition /// notification to header value. /// The MDN text. - public AS2MdnSettings(bool needMdn, bool signMdn, bool sendMdnAsynchronously, bool signOutboundMdnIfOptional, bool sendInboundMdnToMessageBox, string micHashingAlgorithm, string receiptDeliveryUrl = default(string), string dispositionNotificationTo = default(string), string mdnText = default(string)) + public AS2MdnSettings(bool needMDN, bool signMDN, bool sendMDNAsynchronously, bool signOutboundMDNIfOptional, bool sendInboundMDNToMessageBox, string micHashingAlgorithm, string receiptDeliveryUrl = default(string), string dispositionNotificationTo = default(string), string mdnText = default(string)) { - NeedMdn = needMdn; - SignMdn = signMdn; - SendMdnAsynchronously = sendMdnAsynchronously; + NeedMDN = needMDN; + SignMDN = signMDN; + SendMDNAsynchronously = sendMDNAsynchronously; ReceiptDeliveryUrl = receiptDeliveryUrl; DispositionNotificationTo = dispositionNotificationTo; - SignOutboundMdnIfOptional = signOutboundMdnIfOptional; + SignOutboundMDNIfOptional = signOutboundMDNIfOptional; MdnText = mdnText; - SendInboundMdnToMessageBox = sendInboundMdnToMessageBox; + SendInboundMDNToMessageBox = sendInboundMDNToMessageBox; MicHashingAlgorithm = micHashingAlgorithm; CustomInit(); } @@ -69,22 +69,22 @@ public AS2MdnSettings() /// /// Gets or sets the value indicating whether to send or request a MDN. /// - [JsonProperty(PropertyName = "needMdn")] - public bool NeedMdn { get; set; } + [JsonProperty(PropertyName = "needMDN")] + public bool NeedMDN { get; set; } /// /// Gets or sets the value indicating whether the MDN needs to be /// signed or not. /// - [JsonProperty(PropertyName = "signMdn")] - public bool SignMdn { get; set; } + [JsonProperty(PropertyName = "signMDN")] + public bool SignMDN { get; set; } /// /// Gets or sets the value indicating whether to send the asynchronous /// MDN. /// - [JsonProperty(PropertyName = "sendMdnAsynchronously")] - public bool SendMdnAsynchronously { get; set; } + [JsonProperty(PropertyName = "sendMDNAsynchronously")] + public bool SendMDNAsynchronously { get; set; } /// /// Gets or sets the receipt delivery URL. @@ -102,8 +102,8 @@ public AS2MdnSettings() /// Gets or sets the value indicating whether to sign the outbound MDN /// if optional. /// - [JsonProperty(PropertyName = "signOutboundMdnIfOptional")] - public bool SignOutboundMdnIfOptional { get; set; } + [JsonProperty(PropertyName = "signOutboundMDNIfOptional")] + public bool SignOutboundMDNIfOptional { get; set; } /// /// Gets or sets the MDN text. @@ -115,8 +115,8 @@ public AS2MdnSettings() /// Gets or sets the value indicating whether to send inbound MDN to /// message box. /// - [JsonProperty(PropertyName = "sendInboundMdnToMessageBox")] - public bool SendInboundMdnToMessageBox { get; set; } + [JsonProperty(PropertyName = "sendInboundMDNToMessageBox")] + public bool SendInboundMDNToMessageBox { get; set; } /// /// Gets or sets the signing or hashing algorithm. Possible values diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AS2SecuritySettings.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AS2SecuritySettings.cs index e082b18a357c..50ee0d01e99c 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AS2SecuritySettings.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AS2SecuritySettings.cs @@ -31,21 +31,21 @@ public AS2SecuritySettings() /// /// The value indicating /// whether to send or request a MDN. - /// The value + /// The value /// indicating whether to enable NRR for inbound encoded /// messages. - /// The value + /// The value /// indicating whether to enable NRR for inbound decoded /// messages. - /// The value indicating whether + /// The value indicating whether /// to enable NRR for outbound MDN. - /// The value + /// The value /// indicating whether to enable NRR for outbound encoded /// messages. - /// The value + /// The value /// indicating whether to enable NRR for outbound decoded /// messages. - /// The value indicating whether + /// The value indicating whether /// to enable NRR for inbound MDN. /// The name of the signing /// certificate. @@ -54,17 +54,17 @@ public AS2SecuritySettings() /// The Sha2 algorithm format. Valid /// values are Sha2, ShaHashSize, ShaHyphenHashSize, /// Sha2UnderscoreHashSize. - public AS2SecuritySettings(bool overrideGroupSigningCertificate, bool enableNrrForInboundEncodedMessages, bool enableNrrForInboundDecodedMessages, bool enableNrrForOutboundMdn, bool enableNrrForOutboundEncodedMessages, bool enableNrrForOutboundDecodedMessages, bool enableNrrForInboundMdn, string signingCertificateName = default(string), string encryptionCertificateName = default(string), string sha2AlgorithmFormat = default(string)) + public AS2SecuritySettings(bool overrideGroupSigningCertificate, bool enableNRRForInboundEncodedMessages, bool enableNRRForInboundDecodedMessages, bool enableNRRForOutboundMDN, bool enableNRRForOutboundEncodedMessages, bool enableNRRForOutboundDecodedMessages, bool enableNRRForInboundMDN, string signingCertificateName = default(string), string encryptionCertificateName = default(string), string sha2AlgorithmFormat = default(string)) { OverrideGroupSigningCertificate = overrideGroupSigningCertificate; SigningCertificateName = signingCertificateName; EncryptionCertificateName = encryptionCertificateName; - EnableNrrForInboundEncodedMessages = enableNrrForInboundEncodedMessages; - EnableNrrForInboundDecodedMessages = enableNrrForInboundDecodedMessages; - EnableNrrForOutboundMdn = enableNrrForOutboundMdn; - EnableNrrForOutboundEncodedMessages = enableNrrForOutboundEncodedMessages; - EnableNrrForOutboundDecodedMessages = enableNrrForOutboundDecodedMessages; - EnableNrrForInboundMdn = enableNrrForInboundMdn; + EnableNRRForInboundEncodedMessages = enableNRRForInboundEncodedMessages; + EnableNRRForInboundDecodedMessages = enableNRRForInboundDecodedMessages; + EnableNRRForOutboundMDN = enableNRRForOutboundMDN; + EnableNRRForOutboundEncodedMessages = enableNRRForOutboundEncodedMessages; + EnableNRRForOutboundDecodedMessages = enableNRRForOutboundDecodedMessages; + EnableNRRForInboundMDN = enableNRRForInboundMDN; Sha2AlgorithmFormat = sha2AlgorithmFormat; CustomInit(); } @@ -96,43 +96,43 @@ public AS2SecuritySettings() /// Gets or sets the value indicating whether to enable NRR for inbound /// encoded messages. /// - [JsonProperty(PropertyName = "enableNrrForInboundEncodedMessages")] - public bool EnableNrrForInboundEncodedMessages { get; set; } + [JsonProperty(PropertyName = "enableNRRForInboundEncodedMessages")] + public bool EnableNRRForInboundEncodedMessages { get; set; } /// /// Gets or sets the value indicating whether to enable NRR for inbound /// decoded messages. /// - [JsonProperty(PropertyName = "enableNrrForInboundDecodedMessages")] - public bool EnableNrrForInboundDecodedMessages { get; set; } + [JsonProperty(PropertyName = "enableNRRForInboundDecodedMessages")] + public bool EnableNRRForInboundDecodedMessages { get; set; } /// /// Gets or sets the value indicating whether to enable NRR for /// outbound MDN. /// - [JsonProperty(PropertyName = "enableNrrForOutboundMdn")] - public bool EnableNrrForOutboundMdn { get; set; } + [JsonProperty(PropertyName = "enableNRRForOutboundMDN")] + public bool EnableNRRForOutboundMDN { get; set; } /// /// Gets or sets the value indicating whether to enable NRR for /// outbound encoded messages. /// - [JsonProperty(PropertyName = "enableNrrForOutboundEncodedMessages")] - public bool EnableNrrForOutboundEncodedMessages { get; set; } + [JsonProperty(PropertyName = "enableNRRForOutboundEncodedMessages")] + public bool EnableNRRForOutboundEncodedMessages { get; set; } /// /// Gets or sets the value indicating whether to enable NRR for /// outbound decoded messages. /// - [JsonProperty(PropertyName = "enableNrrForOutboundDecodedMessages")] - public bool EnableNrrForOutboundDecodedMessages { get; set; } + [JsonProperty(PropertyName = "enableNRRForOutboundDecodedMessages")] + public bool EnableNRRForOutboundDecodedMessages { get; set; } /// /// Gets or sets the value indicating whether to enable NRR for inbound /// MDN. /// - [JsonProperty(PropertyName = "enableNrrForInboundMdn")] - public bool EnableNrrForInboundMdn { get; set; } + [JsonProperty(PropertyName = "enableNRRForInboundMDN")] + public bool EnableNRRForInboundMDN { get; set; } /// /// Gets or sets the Sha2 algorithm format. Valid values are Sha2, diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiDeploymentParameterMetadata.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiDeploymentParameterMetadata.cs new file mode 100644 index 000000000000..b33f4af0c00e --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiDeploymentParameterMetadata.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The API deployment parameter metadata. + /// + public partial class ApiDeploymentParameterMetadata + { + /// + /// Initializes a new instance of the ApiDeploymentParameterMetadata + /// class. + /// + public ApiDeploymentParameterMetadata() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApiDeploymentParameterMetadata + /// class. + /// + /// The type. + /// Indicates whether its required. + /// The display name. + /// The description. + /// The visibility. Possible values include: + /// 'NotSpecified', 'Default', 'Internal' + public ApiDeploymentParameterMetadata(string type = default(string), bool? isRequired = default(bool?), string displayName = default(string), string description = default(string), string visibility = default(string)) + { + Type = type; + IsRequired = isRequired; + DisplayName = displayName; + Description = description; + Visibility = visibility; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets indicates whether its required. + /// + [JsonProperty(PropertyName = "isRequired")] + public bool? IsRequired { get; set; } + + /// + /// Gets or sets the display name. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets the description. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Gets or sets the visibility. Possible values include: + /// 'NotSpecified', 'Default', 'Internal' + /// + [JsonProperty(PropertyName = "visibility")] + public string Visibility { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiDeploymentParameterMetadataSet.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiDeploymentParameterMetadataSet.cs new file mode 100644 index 000000000000..0d1d07dd9e4a --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiDeploymentParameterMetadataSet.cs @@ -0,0 +1,63 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The API deployment parameters metadata. + /// + public partial class ApiDeploymentParameterMetadataSet + { + /// + /// Initializes a new instance of the ApiDeploymentParameterMetadataSet + /// class. + /// + public ApiDeploymentParameterMetadataSet() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApiDeploymentParameterMetadataSet + /// class. + /// + /// The package content link + /// parameter. + /// The package content link + /// parameter. + public ApiDeploymentParameterMetadataSet(ApiDeploymentParameterMetadata packageContentLink = default(ApiDeploymentParameterMetadata), ApiDeploymentParameterMetadata redisCacheConnectionString = default(ApiDeploymentParameterMetadata)) + { + PackageContentLink = packageContentLink; + RedisCacheConnectionString = redisCacheConnectionString; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the package content link parameter. + /// + [JsonProperty(PropertyName = "packageContentLink")] + public ApiDeploymentParameterMetadata PackageContentLink { get; set; } + + /// + /// Gets or sets the package content link parameter. + /// + [JsonProperty(PropertyName = "redisCacheConnectionString")] + public ApiDeploymentParameterMetadata RedisCacheConnectionString { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiDeploymentParameterVisibility.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiDeploymentParameterVisibility.cs new file mode 100644 index 000000000000..48ab66e6ef9c --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiDeploymentParameterVisibility.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + + /// + /// Defines values for ApiDeploymentParameterVisibility. + /// + public static class ApiDeploymentParameterVisibility + { + public const string NotSpecified = "NotSpecified"; + public const string Default = "Default"; + public const string Internal = "Internal"; + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiOperation.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiOperation.cs new file mode 100644 index 000000000000..76e65d1d4276 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiOperation.cs @@ -0,0 +1,57 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The api operation. + /// + public partial class ApiOperation : Resource + { + /// + /// Initializes a new instance of the ApiOperation class. + /// + public ApiOperation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApiOperation class. + /// + /// The resource id. + /// Gets the resource name. + /// Gets the resource type. + /// The resource location. + /// The resource tags. + public ApiOperation(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ApiOperationPropertiesDefinition properties = default(ApiOperationPropertiesDefinition)) + : base(id, name, type, location, tags) + { + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "properties")] + public ApiOperationPropertiesDefinition Properties { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiOperationAnnotation.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiOperationAnnotation.cs new file mode 100644 index 000000000000..ceee6a9a6117 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiOperationAnnotation.cs @@ -0,0 +1,69 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The Api Operation Annotation. + /// + public partial class ApiOperationAnnotation + { + /// + /// Initializes a new instance of the ApiOperationAnnotation class. + /// + public ApiOperationAnnotation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApiOperationAnnotation class. + /// + /// Possible values include: 'NotSpecified', + /// 'Preview', 'Production' + /// The family. + /// The revision. + public ApiOperationAnnotation(string status = default(string), string family = default(string), int? revision = default(int?)) + { + Status = status; + Family = family; + Revision = revision; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets possible values include: 'NotSpecified', 'Preview', + /// 'Production' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets the family. + /// + [JsonProperty(PropertyName = "family")] + public string Family { get; set; } + + /// + /// Gets or sets the revision. + /// + [JsonProperty(PropertyName = "revision")] + public int? Revision { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiOperationPropertiesDefinition.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiOperationPropertiesDefinition.cs new file mode 100644 index 000000000000..311cd3249336 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiOperationPropertiesDefinition.cs @@ -0,0 +1,152 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The api operations properties + /// + public partial class ApiOperationPropertiesDefinition + { + /// + /// Initializes a new instance of the ApiOperationPropertiesDefinition + /// class. + /// + public ApiOperationPropertiesDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApiOperationPropertiesDefinition + /// class. + /// + /// The summary of the api operation. + /// The description of the api + /// operation. + /// The visibility of the api + /// operation. + /// The trigger type of api operation. + /// The trigger hint for the api + /// operation. + /// Indicates whether the api operation is + /// pageable. + /// The annotation of api operation. + /// The api reference. + /// The operation inputs definition + /// schema. + /// The operation responses + /// definition schemas. + /// Indicates whether the API operation is + /// webhook or not. + /// Indicates whether the API operation is + /// notification or not. + public ApiOperationPropertiesDefinition(string summary = default(string), string description = default(string), string visibility = default(string), string trigger = default(string), string triggerHint = default(string), bool? pageable = default(bool?), ApiOperationAnnotation annotation = default(ApiOperationAnnotation), ApiReference api = default(ApiReference), SwaggerSchema inputsDefinition = default(SwaggerSchema), IDictionary responsesDefinition = default(IDictionary), bool? isWebhook = default(bool?), bool? isNotification = default(bool?)) + { + Summary = summary; + Description = description; + Visibility = visibility; + Trigger = trigger; + TriggerHint = triggerHint; + Pageable = pageable; + Annotation = annotation; + Api = api; + InputsDefinition = inputsDefinition; + ResponsesDefinition = responsesDefinition; + IsWebhook = isWebhook; + IsNotification = isNotification; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the summary of the api operation. + /// + [JsonProperty(PropertyName = "summary")] + public string Summary { get; set; } + + /// + /// Gets or sets the description of the api operation. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Gets or sets the visibility of the api operation. + /// + [JsonProperty(PropertyName = "visibility")] + public string Visibility { get; set; } + + /// + /// Gets or sets the trigger type of api operation. + /// + [JsonProperty(PropertyName = "trigger")] + public string Trigger { get; set; } + + /// + /// Gets or sets the trigger hint for the api operation. + /// + [JsonProperty(PropertyName = "triggerHint")] + public string TriggerHint { get; set; } + + /// + /// Gets or sets indicates whether the api operation is pageable. + /// + [JsonProperty(PropertyName = "pageable")] + public bool? Pageable { get; set; } + + /// + /// Gets or sets the annotation of api operation. + /// + [JsonProperty(PropertyName = "annotation")] + public ApiOperationAnnotation Annotation { get; set; } + + /// + /// Gets or sets the api reference. + /// + [JsonProperty(PropertyName = "api")] + public ApiReference Api { get; set; } + + /// + /// Gets or sets the operation inputs definition schema. + /// + [JsonProperty(PropertyName = "inputsDefinition")] + public SwaggerSchema InputsDefinition { get; set; } + + /// + /// Gets or sets the operation responses definition schemas. + /// + [JsonProperty(PropertyName = "responsesDefinition")] + public IDictionary ResponsesDefinition { get; set; } + + /// + /// Gets or sets indicates whether the API operation is webhook or not. + /// + [JsonProperty(PropertyName = "isWebhook")] + public bool? IsWebhook { get; set; } + + /// + /// Gets or sets indicates whether the API operation is notification or + /// not. + /// + [JsonProperty(PropertyName = "isNotification")] + public bool? IsNotification { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiReference.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiReference.cs new file mode 100644 index 000000000000..9265ddd45a9b --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiReference.cs @@ -0,0 +1,106 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The Api reference. + /// + public partial class ApiReference : ResourceReference + { + /// + /// Initializes a new instance of the ApiReference class. + /// + public ApiReference() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApiReference class. + /// + /// The resource id. + /// Gets the resource name. + /// Gets the resource type. + /// The display name of the api. + /// The description of the api. + /// The icon uri of the api. + /// The swagger of the api. + /// The brand color of the api. + /// The tier. Possible values include: + /// 'NotSpecified', 'Enterprise', 'Standard', 'Premium' + /// The integration service + /// environment reference. + public ApiReference(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), string description = default(string), string iconUri = default(string), object swagger = default(object), string brandColor = default(string), string category = default(string), ResourceReference integrationServiceEnvironment = default(ResourceReference)) + : base(id, name, type) + { + DisplayName = displayName; + Description = description; + IconUri = iconUri; + Swagger = swagger; + BrandColor = brandColor; + Category = category; + IntegrationServiceEnvironment = integrationServiceEnvironment; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the display name of the api. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets the description of the api. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Gets or sets the icon uri of the api. + /// + [JsonProperty(PropertyName = "iconUri")] + public string IconUri { get; set; } + + /// + /// Gets or sets the swagger of the api. + /// + [JsonProperty(PropertyName = "swagger")] + public object Swagger { get; set; } + + /// + /// Gets or sets the brand color of the api. + /// + [JsonProperty(PropertyName = "brandColor")] + public string BrandColor { get; set; } + + /// + /// Gets or sets the tier. Possible values include: 'NotSpecified', + /// 'Enterprise', 'Standard', 'Premium' + /// + [JsonProperty(PropertyName = "category")] + public string Category { get; set; } + + /// + /// Gets or sets the integration service environment reference. + /// + [JsonProperty(PropertyName = "integrationServiceEnvironment")] + public ResourceReference IntegrationServiceEnvironment { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceBackendService.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceBackendService.cs new file mode 100644 index 000000000000..336cc73e1b16 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceBackendService.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The API backend service. + /// + public partial class ApiResourceBackendService + { + /// + /// Initializes a new instance of the ApiResourceBackendService class. + /// + public ApiResourceBackendService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApiResourceBackendService class. + /// + /// The service URL. + public ApiResourceBackendService(string serviceUrl = default(string)) + { + ServiceUrl = serviceUrl; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the service URL. + /// + [JsonProperty(PropertyName = "serviceUrl")] + public string ServiceUrl { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceDefinitions.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceDefinitions.cs new file mode 100644 index 000000000000..db7fbc8d91a8 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceDefinitions.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The Api resource definition. + /// + public partial class ApiResourceDefinitions + { + /// + /// Initializes a new instance of the ApiResourceDefinitions class. + /// + public ApiResourceDefinitions() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApiResourceDefinitions class. + /// + /// The original swagger url. + /// The modified swagger url. + public ApiResourceDefinitions(string originalSwaggerUrl = default(string), string modifiedSwaggerUrl = default(string)) + { + OriginalSwaggerUrl = originalSwaggerUrl; + ModifiedSwaggerUrl = modifiedSwaggerUrl; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the original swagger url. + /// + [JsonProperty(PropertyName = "originalSwaggerUrl")] + public string OriginalSwaggerUrl { get; set; } + + /// + /// Gets or sets the modified swagger url. + /// + [JsonProperty(PropertyName = "modifiedSwaggerUrl")] + public string ModifiedSwaggerUrl { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceGeneralInformation.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceGeneralInformation.cs new file mode 100644 index 000000000000..2c89f8db62a2 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceGeneralInformation.cs @@ -0,0 +1,95 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The API general information. + /// + public partial class ApiResourceGeneralInformation + { + /// + /// Initializes a new instance of the ApiResourceGeneralInformation + /// class. + /// + public ApiResourceGeneralInformation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApiResourceGeneralInformation + /// class. + /// + /// The icon url. + /// The display name. + /// The description. + /// The terms of use url. + /// The release tag. + /// The tier. Possible values include: + /// 'NotSpecified', 'Enterprise', 'Standard', 'Premium' + public ApiResourceGeneralInformation(string iconUrl = default(string), string displayName = default(string), string description = default(string), string termsOfUseUrl = default(string), string releaseTag = default(string), string tier = default(string)) + { + IconUrl = iconUrl; + DisplayName = displayName; + Description = description; + TermsOfUseUrl = termsOfUseUrl; + ReleaseTag = releaseTag; + Tier = tier; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the icon url. + /// + [JsonProperty(PropertyName = "iconUrl")] + public string IconUrl { get; set; } + + /// + /// Gets or sets the display name. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets the description. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Gets or sets the terms of use url. + /// + [JsonProperty(PropertyName = "termsOfUseUrl")] + public string TermsOfUseUrl { get; set; } + + /// + /// Gets or sets the release tag. + /// + [JsonProperty(PropertyName = "releaseTag")] + public string ReleaseTag { get; set; } + + /// + /// Gets or sets the tier. Possible values include: 'NotSpecified', + /// 'Enterprise', 'Standard', 'Premium' + /// + [JsonProperty(PropertyName = "tier")] + public string Tier { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceMetadata.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceMetadata.cs new file mode 100644 index 000000000000..e2305c004dc0 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceMetadata.cs @@ -0,0 +1,139 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The api resource metadata. + /// + public partial class ApiResourceMetadata + { + /// + /// Initializes a new instance of the ApiResourceMetadata class. + /// + public ApiResourceMetadata() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApiResourceMetadata class. + /// + /// The source. + /// The brand color. + /// The hide key. + /// The tags. + /// The api type. Possible values include: + /// 'NotSpecified', 'Rest', 'Soap' + /// The WSDL service. + /// The WSDL import method. Possible + /// values include: 'NotSpecified', 'SoapToRest', + /// 'SoapPassThrough' + /// The connection type. + /// The provisioning state. Possible + /// values include: 'NotSpecified', 'Accepted', 'Running', 'Ready', + /// 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', + /// 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + /// 'Unregistering', 'Unregistered', 'Completed' + /// The connector deployment + /// parameters metadata. + public ApiResourceMetadata(string source = default(string), string brandColor = default(string), string hideKey = default(string), IDictionary tags = default(IDictionary), string apiType = default(string), WsdlService wsdlService = default(WsdlService), string wsdlImportMethod = default(string), string connectionType = default(string), string provisioningState = default(string), ApiDeploymentParameterMetadataSet deploymentParameters = default(ApiDeploymentParameterMetadataSet)) + { + Source = source; + BrandColor = brandColor; + HideKey = hideKey; + Tags = tags; + ApiType = apiType; + WsdlService = wsdlService; + WsdlImportMethod = wsdlImportMethod; + ConnectionType = connectionType; + ProvisioningState = provisioningState; + DeploymentParameters = deploymentParameters; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the source. + /// + [JsonProperty(PropertyName = "source")] + public string Source { get; set; } + + /// + /// Gets or sets the brand color. + /// + [JsonProperty(PropertyName = "brandColor")] + public string BrandColor { get; set; } + + /// + /// Gets or sets the hide key. + /// + [JsonProperty(PropertyName = "hideKey")] + public string HideKey { get; set; } + + /// + /// Gets or sets the tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets the api type. Possible values include: 'NotSpecified', + /// 'Rest', 'Soap' + /// + [JsonProperty(PropertyName = "ApiType")] + public string ApiType { get; set; } + + /// + /// Gets or sets the WSDL service. + /// + [JsonProperty(PropertyName = "wsdlService")] + public WsdlService WsdlService { get; set; } + + /// + /// Gets or sets the WSDL import method. Possible values include: + /// 'NotSpecified', 'SoapToRest', 'SoapPassThrough' + /// + [JsonProperty(PropertyName = "wsdlImportMethod")] + public string WsdlImportMethod { get; set; } + + /// + /// Gets or sets the connection type. + /// + [JsonProperty(PropertyName = "connectionType")] + public string ConnectionType { get; set; } + + /// + /// Gets or sets the provisioning state. Possible values include: + /// 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', + /// 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', + /// 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + /// 'Unregistering', 'Unregistered', 'Completed' + /// + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Gets or sets the connector deployment parameters metadata. + /// + [JsonProperty(PropertyName = "deploymentParameters")] + public ApiDeploymentParameterMetadataSet DeploymentParameters { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourcePolicies.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourcePolicies.cs new file mode 100644 index 000000000000..0985bb352ee3 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourcePolicies.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The API resource policies. + /// + public partial class ApiResourcePolicies + { + /// + /// Initializes a new instance of the ApiResourcePolicies class. + /// + public ApiResourcePolicies() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApiResourcePolicies class. + /// + /// The API level only policies XML as embedded + /// content. + /// The content link to the policies. + public ApiResourcePolicies(string content = default(string), string contentLink = default(string)) + { + Content = content; + ContentLink = contentLink; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the API level only policies XML as embedded content. + /// + [JsonProperty(PropertyName = "content")] + public string Content { get; set; } + + /// + /// Gets or sets the content link to the policies. + /// + [JsonProperty(PropertyName = "contentLink")] + public string ContentLink { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceProperties.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceProperties.cs new file mode 100644 index 000000000000..5bf4089f5644 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceProperties.cs @@ -0,0 +1,162 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The API resource properties. + /// + public partial class ApiResourceProperties + { + /// + /// Initializes a new instance of the ApiResourceProperties class. + /// + public ApiResourceProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApiResourceProperties class. + /// + /// The name + /// The connection + /// parameters. + /// The metadata. + /// The runtime urls. + /// The api general + /// information. + /// The capabilities. + /// The backend service. + /// The policies for the API. + /// The API definition. + /// The api definitions. + /// The integration service + /// environment reference. + /// The provisioning state. Possible + /// values include: 'NotSpecified', 'Accepted', 'Running', 'Ready', + /// 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', + /// 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + /// 'Unregistering', 'Unregistered', 'Completed' + /// The category. Possible values include: + /// 'NotSpecified', 'Enterprise', 'Standard', 'Premium' + public ApiResourceProperties(string name = default(string), IDictionary connectionParameters = default(IDictionary), ApiResourceMetadata metadata = default(ApiResourceMetadata), IList runtimeUrls = default(IList), ApiResourceGeneralInformation generalInformation = default(ApiResourceGeneralInformation), IList capabilities = default(IList), ApiResourceBackendService backendService = default(ApiResourceBackendService), ApiResourcePolicies policies = default(ApiResourcePolicies), string apiDefinitionUrl = default(string), ApiResourceDefinitions apiDefinitions = default(ApiResourceDefinitions), ResourceReference integrationServiceEnvironment = default(ResourceReference), string provisioningState = default(string), string category = default(string)) + { + Name = name; + ConnectionParameters = connectionParameters; + Metadata = metadata; + RuntimeUrls = runtimeUrls; + GeneralInformation = generalInformation; + Capabilities = capabilities; + BackendService = backendService; + Policies = policies; + ApiDefinitionUrl = apiDefinitionUrl; + ApiDefinitions = apiDefinitions; + IntegrationServiceEnvironment = integrationServiceEnvironment; + ProvisioningState = provisioningState; + Category = category; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the connection parameters. + /// + [JsonProperty(PropertyName = "connectionParameters")] + public IDictionary ConnectionParameters { get; set; } + + /// + /// Gets or sets the metadata. + /// + [JsonProperty(PropertyName = "metadata")] + public ApiResourceMetadata Metadata { get; set; } + + /// + /// Gets or sets the runtime urls. + /// + [JsonProperty(PropertyName = "runtimeUrls")] + public IList RuntimeUrls { get; set; } + + /// + /// Gets or sets the api general information. + /// + [JsonProperty(PropertyName = "generalInformation")] + public ApiResourceGeneralInformation GeneralInformation { get; set; } + + /// + /// Gets or sets the capabilities. + /// + [JsonProperty(PropertyName = "capabilities")] + public IList Capabilities { get; set; } + + /// + /// Gets or sets the backend service. + /// + [JsonProperty(PropertyName = "backendService")] + public ApiResourceBackendService BackendService { get; set; } + + /// + /// Gets or sets the policies for the API. + /// + [JsonProperty(PropertyName = "policies")] + public ApiResourcePolicies Policies { get; set; } + + /// + /// Gets or sets the API definition. + /// + [JsonProperty(PropertyName = "apiDefinitionUrl")] + public string ApiDefinitionUrl { get; set; } + + /// + /// Gets or sets the api definitions. + /// + [JsonProperty(PropertyName = "apiDefinitions")] + public ApiResourceDefinitions ApiDefinitions { get; set; } + + /// + /// Gets or sets the integration service environment reference. + /// + [JsonProperty(PropertyName = "integrationServiceEnvironment")] + public ResourceReference IntegrationServiceEnvironment { get; set; } + + /// + /// Gets or sets the provisioning state. Possible values include: + /// 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', + /// 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', + /// 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + /// 'Unregistering', 'Unregistered', 'Completed' + /// + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Gets or sets the category. Possible values include: 'NotSpecified', + /// 'Enterprise', 'Standard', 'Premium' + /// + [JsonProperty(PropertyName = "category")] + public string Category { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiTier.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiTier.cs new file mode 100644 index 000000000000..7a5a30b463c2 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiTier.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + + /// + /// Defines values for ApiTier. + /// + public static class ApiTier + { + public const string NotSpecified = "NotSpecified"; + public const string Enterprise = "Enterprise"; + public const string Standard = "Standard"; + public const string Premium = "Premium"; + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiType.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiType.cs new file mode 100644 index 000000000000..6fa53b20a0b5 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiType.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + + /// + /// Defines values for ApiType. + /// + public static class ApiType + { + public const string NotSpecified = "NotSpecified"; + public const string Rest = "Rest"; + public const string Soap = "Soap"; + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AzureAsyncOperationState.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AzureAsyncOperationState.cs new file mode 100644 index 000000000000..59956f780e46 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/AzureAsyncOperationState.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + + /// + /// Defines values for AzureAsyncOperationState. + /// + public static class AzureAsyncOperationState + { + public const string Failed = "Failed"; + public const string Succeeded = "Succeeded"; + public const string Pending = "Pending"; + public const string Canceled = "Canceled"; + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/EdifactValidationOverride.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/EdifactValidationOverride.cs index 0f604576eb2d..9b75a70526a8 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/EdifactValidationOverride.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/EdifactValidationOverride.cs @@ -34,9 +34,9 @@ public EdifactValidationOverride() /// settings has to be applied. /// The value indicating whether to /// validate character Set. - /// The value indicating whether to + /// The value indicating whether to /// validate EDI types. - /// The value indicating whether to + /// The value indicating whether to /// validate XSD types. /// The value /// indicating whether to allow leading and trailing spaces and @@ -47,12 +47,12 @@ public EdifactValidationOverride() /// The value /// indicating whether to trim leading and trailing spaces and /// zeroes. - public EdifactValidationOverride(string messageId, bool enforceCharacterSet, bool validateEdiTypes, bool validateXsdTypes, bool allowLeadingAndTrailingSpacesAndZeroes, string trailingSeparatorPolicy, bool trimLeadingAndTrailingSpacesAndZeroes) + public EdifactValidationOverride(string messageId, bool enforceCharacterSet, bool validateEDITypes, bool validateXSDTypes, bool allowLeadingAndTrailingSpacesAndZeroes, string trailingSeparatorPolicy, bool trimLeadingAndTrailingSpacesAndZeroes) { MessageId = messageId; EnforceCharacterSet = enforceCharacterSet; - ValidateEdiTypes = validateEdiTypes; - ValidateXsdTypes = validateXsdTypes; + ValidateEDITypes = validateEDITypes; + ValidateXSDTypes = validateXSDTypes; AllowLeadingAndTrailingSpacesAndZeroes = allowLeadingAndTrailingSpacesAndZeroes; TrailingSeparatorPolicy = trailingSeparatorPolicy; TrimLeadingAndTrailingSpacesAndZeroes = trimLeadingAndTrailingSpacesAndZeroes; @@ -81,14 +81,14 @@ public EdifactValidationOverride(string messageId, bool enforceCharacterSet, boo /// /// Gets or sets the value indicating whether to validate EDI types. /// - [JsonProperty(PropertyName = "validateEdiTypes")] - public bool ValidateEdiTypes { get; set; } + [JsonProperty(PropertyName = "validateEDITypes")] + public bool ValidateEDITypes { get; set; } /// /// Gets or sets the value indicating whether to validate XSD types. /// - [JsonProperty(PropertyName = "validateXsdTypes")] - public bool ValidateXsdTypes { get; set; } + [JsonProperty(PropertyName = "validateXSDTypes")] + public bool ValidateXSDTypes { get; set; } /// /// Gets or sets the value indicating whether to allow leading and diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/EdifactValidationSettings.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/EdifactValidationSettings.cs index 3220d3fcc08a..2f2296087615 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/EdifactValidationSettings.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/EdifactValidationSettings.cs @@ -42,9 +42,9 @@ public EdifactValidationSettings() /// The value /// indicating whether to check for duplicate transaction set control /// number. - /// The value indicating whether to + /// The value indicating whether to /// Whether to validate EDI types. - /// The value indicating whether to + /// The value indicating whether to /// Whether to validate XSD types. /// The value /// indicating whether to allow leading and trailing spaces and @@ -55,15 +55,15 @@ public EdifactValidationSettings() /// The trailing separator /// policy. Possible values include: 'NotSpecified', 'NotAllowed', /// 'Optional', 'Mandatory' - public EdifactValidationSettings(bool validateCharacterSet, bool checkDuplicateInterchangeControlNumber, int interchangeControlNumberValidityDays, bool checkDuplicateGroupControlNumber, bool checkDuplicateTransactionSetControlNumber, bool validateEdiTypes, bool validateXsdTypes, bool allowLeadingAndTrailingSpacesAndZeroes, bool trimLeadingAndTrailingSpacesAndZeroes, string trailingSeparatorPolicy) + public EdifactValidationSettings(bool validateCharacterSet, bool checkDuplicateInterchangeControlNumber, int interchangeControlNumberValidityDays, bool checkDuplicateGroupControlNumber, bool checkDuplicateTransactionSetControlNumber, bool validateEDITypes, bool validateXSDTypes, bool allowLeadingAndTrailingSpacesAndZeroes, bool trimLeadingAndTrailingSpacesAndZeroes, string trailingSeparatorPolicy) { ValidateCharacterSet = validateCharacterSet; CheckDuplicateInterchangeControlNumber = checkDuplicateInterchangeControlNumber; InterchangeControlNumberValidityDays = interchangeControlNumberValidityDays; CheckDuplicateGroupControlNumber = checkDuplicateGroupControlNumber; CheckDuplicateTransactionSetControlNumber = checkDuplicateTransactionSetControlNumber; - ValidateEdiTypes = validateEdiTypes; - ValidateXsdTypes = validateXsdTypes; + ValidateEDITypes = validateEDITypes; + ValidateXSDTypes = validateXSDTypes; AllowLeadingAndTrailingSpacesAndZeroes = allowLeadingAndTrailingSpacesAndZeroes; TrimLeadingAndTrailingSpacesAndZeroes = trimLeadingAndTrailingSpacesAndZeroes; TrailingSeparatorPolicy = trailingSeparatorPolicy; @@ -113,15 +113,15 @@ public EdifactValidationSettings(bool validateCharacterSet, bool checkDuplicateI /// Gets or sets the value indicating whether to Whether to validate /// EDI types. /// - [JsonProperty(PropertyName = "validateEdiTypes")] - public bool ValidateEdiTypes { get; set; } + [JsonProperty(PropertyName = "validateEDITypes")] + public bool ValidateEDITypes { get; set; } /// /// Gets or sets the value indicating whether to Whether to validate /// XSD types. /// - [JsonProperty(PropertyName = "validateXsdTypes")] - public bool ValidateXsdTypes { get; set; } + [JsonProperty(PropertyName = "validateXSDTypes")] + public bool ValidateXSDTypes { get; set; } /// /// Gets or sets the value indicating whether to allow leading and diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ErrorResponseCode.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ErrorResponseCode.cs new file mode 100644 index 000000000000..fcc716100920 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ErrorResponseCode.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + + /// + /// Defines values for ErrorResponseCode. + /// + public static class ErrorResponseCode + { + public const string NotSpecified = "NotSpecified"; + public const string IntegrationServiceEnvironmentNotFound = "IntegrationServiceEnvironmentNotFound"; + public const string InternalServerError = "InternalServerError"; + public const string InvalidOperationId = "InvalidOperationId"; + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/Expression.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/Expression.cs index 0705152a1c64..1f85cc8b8f3b 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/Expression.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/Expression.cs @@ -15,6 +15,9 @@ namespace Microsoft.Azure.Management.Logic.Models using System.Collections.Generic; using System.Linq; + /// + /// The expression. + /// public partial class Expression { /// @@ -28,6 +31,8 @@ public Expression() /// /// Initializes a new instance of the Expression class. /// + /// The text. + /// The sub expressions. public Expression(string text = default(string), object value = default(object), IList subexpressions = default(IList), AzureResourceErrorInfo error = default(AzureResourceErrorInfo)) { Text = text; @@ -43,6 +48,7 @@ public Expression() partial void CustomInit(); /// + /// Gets or sets the text. /// [JsonProperty(PropertyName = "text")] public string Text { get; set; } @@ -53,6 +59,7 @@ public Expression() public object Value { get; set; } /// + /// Gets or sets the sub expressions. /// [JsonProperty(PropertyName = "subexpressions")] public IList Subexpressions { get; set; } diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ExpressionRoot.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ExpressionRoot.cs index d0f4c595df2d..7c7df9c862ba 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ExpressionRoot.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ExpressionRoot.cs @@ -15,6 +15,9 @@ namespace Microsoft.Azure.Management.Logic.Models using System.Collections.Generic; using System.Linq; + /// + /// The expression root. + /// public partial class ExpressionRoot : Expression { /// @@ -28,6 +31,8 @@ public ExpressionRoot() /// /// Initializes a new instance of the ExpressionRoot class. /// + /// The text. + /// The sub expressions. /// The path. public ExpressionRoot(string text = default(string), object value = default(object), IList subexpressions = default(IList), AzureResourceErrorInfo error = default(AzureResourceErrorInfo), string path = default(string)) : base(text, value, subexpressions, error) diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ExtendedErrorInfo.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ExtendedErrorInfo.cs new file mode 100644 index 000000000000..4431e905e230 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ExtendedErrorInfo.cs @@ -0,0 +1,109 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The extended error info. + /// + public partial class ExtendedErrorInfo + { + /// + /// Initializes a new instance of the ExtendedErrorInfo class. + /// + public ExtendedErrorInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ExtendedErrorInfo class. + /// + /// The error code. Possible values include: + /// 'NotSpecified', 'IntegrationServiceEnvironmentNotFound', + /// 'InternalServerError', 'InvalidOperationId' + /// The error message. + /// The error message details. + /// The inner error. + public ExtendedErrorInfo(string code, string message, IList details = default(IList), object innerError = default(object)) + { + Code = code; + Message = message; + Details = details; + InnerError = innerError; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the error code. Possible values include: + /// 'NotSpecified', 'IntegrationServiceEnvironmentNotFound', + /// 'InternalServerError', 'InvalidOperationId' + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; set; } + + /// + /// Gets or sets the error message. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// Gets or sets the error message details. + /// + [JsonProperty(PropertyName = "details")] + public IList Details { get; set; } + + /// + /// Gets or sets the inner error. + /// + [JsonProperty(PropertyName = "innerError")] + public object InnerError { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Code == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Code"); + } + if (Message == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Message"); + } + if (Details != null) + { + foreach (var element in Details) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/FlowEndpoints.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/FlowEndpoints.cs new file mode 100644 index 000000000000..ea5ff92e4b42 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/FlowEndpoints.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The flow endpoints configuration. + /// + public partial class FlowEndpoints + { + /// + /// Initializes a new instance of the FlowEndpoints class. + /// + public FlowEndpoints() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FlowEndpoints class. + /// + /// The outgoing ip address. + /// The access endpoint ip + /// address. + public FlowEndpoints(IList outgoingIpAddresses = default(IList), IList accessEndpointIpAddresses = default(IList)) + { + OutgoingIpAddresses = outgoingIpAddresses; + AccessEndpointIpAddresses = accessEndpointIpAddresses; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the outgoing ip address. + /// + [JsonProperty(PropertyName = "outgoingIpAddresses")] + public IList OutgoingIpAddresses { get; set; } + + /// + /// Gets or sets the access endpoint ip address. + /// + [JsonProperty(PropertyName = "accessEndpointIpAddresses")] + public IList AccessEndpointIpAddresses { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/FlowEndpointsConfiguration.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/FlowEndpointsConfiguration.cs new file mode 100644 index 000000000000..7f224cafc2ae --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/FlowEndpointsConfiguration.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The endpoints configuration. + /// + public partial class FlowEndpointsConfiguration + { + /// + /// Initializes a new instance of the FlowEndpointsConfiguration class. + /// + public FlowEndpointsConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FlowEndpointsConfiguration class. + /// + /// The workflow endpoints. + /// The connector endpoints. + public FlowEndpointsConfiguration(FlowEndpoints workflow = default(FlowEndpoints), FlowEndpoints connector = default(FlowEndpoints)) + { + Workflow = workflow; + Connector = connector; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the workflow endpoints. + /// + [JsonProperty(PropertyName = "workflow")] + public FlowEndpoints Workflow { get; set; } + + /// + /// Gets or sets the connector endpoints. + /// + [JsonProperty(PropertyName = "connector")] + public FlowEndpoints Connector { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationAccount.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationAccount.cs index c705e1e10f9b..f5a13cd7c25e 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationAccount.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationAccount.cs @@ -10,6 +10,8 @@ namespace Microsoft.Azure.Management.Logic.Models { + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -18,6 +20,7 @@ namespace Microsoft.Azure.Management.Logic.Models /// /// The integration account. /// + [Rest.Serialization.JsonTransformation] public partial class IntegrationAccount : Resource { /// @@ -36,13 +39,17 @@ public IntegrationAccount() /// Gets the resource type. /// The resource location. /// The resource tags. - /// The integration account - /// properties. + /// The integration service + /// environment. + /// The workflow state. Possible values include: + /// 'NotSpecified', 'Completed', 'Enabled', 'Disabled', 'Deleted', + /// 'Suspended' /// The sku. - public IntegrationAccount(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), object properties = default(object), IntegrationAccountSku sku = default(IntegrationAccountSku)) + public IntegrationAccount(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IntegrationServiceEnvironment integrationServiceEnvironment = default(IntegrationServiceEnvironment), string state = default(string), IntegrationAccountSku sku = default(IntegrationAccountSku)) : base(id, name, type, location, tags) { - Properties = properties; + IntegrationServiceEnvironment = integrationServiceEnvironment; + State = state; Sku = sku; CustomInit(); } @@ -53,10 +60,18 @@ public IntegrationAccount() partial void CustomInit(); /// - /// Gets or sets the integration account properties. + /// Gets or sets the integration service environment. /// - [JsonProperty(PropertyName = "properties")] - public object Properties { get; set; } + [JsonProperty(PropertyName = "properties.integrationServiceEnvironment")] + public IntegrationServiceEnvironment IntegrationServiceEnvironment { get; set; } + + /// + /// Gets or sets the workflow state. Possible values include: + /// 'NotSpecified', 'Completed', 'Enabled', 'Disabled', 'Deleted', + /// 'Suspended' + /// + [JsonProperty(PropertyName = "properties.state")] + public string State { get; set; } /// /// Gets or sets the sku. @@ -67,7 +82,7 @@ public IntegrationAccount() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironment.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironment.cs new file mode 100644 index 000000000000..92db999876cd --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironment.cs @@ -0,0 +1,70 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The integration service environment. + /// + public partial class IntegrationServiceEnvironment : Resource + { + /// + /// Initializes a new instance of the IntegrationServiceEnvironment + /// class. + /// + public IntegrationServiceEnvironment() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IntegrationServiceEnvironment + /// class. + /// + /// The resource id. + /// Gets the resource name. + /// Gets the resource type. + /// The resource location. + /// The resource tags. + /// The integration service environment + /// properties. + /// The sku. + public IntegrationServiceEnvironment(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IntegrationServiceEnvironmentProperties properties = default(IntegrationServiceEnvironmentProperties), IntegrationServiceEnvironmentSku sku = default(IntegrationServiceEnvironmentSku)) + : base(id, name, type, location, tags) + { + Properties = properties; + Sku = sku; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the integration service environment properties. + /// + [JsonProperty(PropertyName = "properties")] + public IntegrationServiceEnvironmentProperties Properties { get; set; } + + /// + /// Gets or sets the sku. + /// + [JsonProperty(PropertyName = "sku")] + public IntegrationServiceEnvironmentSku Sku { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowRunActionRepetitionDefinitionCollection.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentAccessEndpoint.cs similarity index 55% rename from sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowRunActionRepetitionDefinitionCollection.cs rename to sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentAccessEndpoint.cs index 148ec055cfa1..39186d197390 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowRunActionRepetitionDefinitionCollection.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentAccessEndpoint.cs @@ -11,31 +11,31 @@ namespace Microsoft.Azure.Management.Logic.Models { using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; using System.Linq; /// - /// A collection of workflow run action repetitions. + /// The integration service environment access endpoint. /// - public partial class WorkflowRunActionRepetitionDefinitionCollection + public partial class IntegrationServiceEnvironmentAccessEndpoint { /// /// Initializes a new instance of the - /// WorkflowRunActionRepetitionDefinitionCollection class. + /// IntegrationServiceEnvironmentAccessEndpoint class. /// - public WorkflowRunActionRepetitionDefinitionCollection() + public IntegrationServiceEnvironmentAccessEndpoint() { CustomInit(); } /// /// Initializes a new instance of the - /// WorkflowRunActionRepetitionDefinitionCollection class. + /// IntegrationServiceEnvironmentAccessEndpoint class. /// - public WorkflowRunActionRepetitionDefinitionCollection(IList value = default(IList)) + /// The access endpoint type. Possible values + /// include: 'NotSpecified', 'External', 'Internal' + public IntegrationServiceEnvironmentAccessEndpoint(string type = default(string)) { - Value = value; + Type = type; CustomInit(); } @@ -45,9 +45,11 @@ public WorkflowRunActionRepetitionDefinitionCollection() partial void CustomInit(); /// + /// Gets or sets the access endpoint type. Possible values include: + /// 'NotSpecified', 'External', 'Internal' /// - [JsonProperty(PropertyName = "value")] - public IList Value { get; set; } + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } } } diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentAccessEndpointType.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentAccessEndpointType.cs new file mode 100644 index 000000000000..de9448bde30f --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentAccessEndpointType.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + + /// + /// Defines values for IntegrationServiceEnvironmentAccessEndpointType. + /// + public static class IntegrationServiceEnvironmentAccessEndpointType + { + public const string NotSpecified = "NotSpecified"; + public const string External = "External"; + public const string Internal = "Internal"; + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependency.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependency.cs new file mode 100644 index 000000000000..b44e476b4212 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependency.cs @@ -0,0 +1,82 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The azure async operation resource. + /// + public partial class IntegrationServiceEnvironmentNetworkDependency + { + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentNetworkDependency class. + /// + public IntegrationServiceEnvironmentNetworkDependency() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentNetworkDependency class. + /// + /// The network dependency category type. + /// Possible values include: 'NotSpecified', 'AzureStorage', + /// 'AzureManagement', 'AzureActiveDirectory', + /// 'SSLCertificateVerification', 'DiagnosticLogsAndMetrics', + /// 'IntegrationServiceEnvironmentConnectors', 'RedisCache', + /// 'AccessEndpoints', 'RecoveryService', 'SQL', + /// 'RegionalService' + /// The display name. + /// The endpoints. + public IntegrationServiceEnvironmentNetworkDependency(string category = default(string), string displayName = default(string), IList endpoints = default(IList)) + { + Category = category; + DisplayName = displayName; + Endpoints = endpoints; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the network dependency category type. Possible values + /// include: 'NotSpecified', 'AzureStorage', 'AzureManagement', + /// 'AzureActiveDirectory', 'SSLCertificateVerification', + /// 'DiagnosticLogsAndMetrics', + /// 'IntegrationServiceEnvironmentConnectors', 'RedisCache', + /// 'AccessEndpoints', 'RecoveryService', 'SQL', 'RegionalService' + /// + [JsonProperty(PropertyName = "category")] + public string Category { get; set; } + + /// + /// Gets or sets the display name. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets the endpoints. + /// + [JsonProperty(PropertyName = "endpoints")] + public IList Endpoints { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependencyCategoryType.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependencyCategoryType.cs new file mode 100644 index 000000000000..9fb3caaf0a3b --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependencyCategoryType.cs @@ -0,0 +1,33 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + + /// + /// Defines values for + /// IntegrationServiceEnvironmentNetworkDependencyCategoryType. + /// + public static class IntegrationServiceEnvironmentNetworkDependencyCategoryType + { + public const string NotSpecified = "NotSpecified"; + public const string AzureStorage = "AzureStorage"; + public const string AzureManagement = "AzureManagement"; + public const string AzureActiveDirectory = "AzureActiveDirectory"; + public const string SSLCertificateVerification = "SSLCertificateVerification"; + public const string DiagnosticLogsAndMetrics = "DiagnosticLogsAndMetrics"; + public const string IntegrationServiceEnvironmentConnectors = "IntegrationServiceEnvironmentConnectors"; + public const string RedisCache = "RedisCache"; + public const string AccessEndpoints = "AccessEndpoints"; + public const string RecoveryService = "RecoveryService"; + public const string SQL = "SQL"; + public const string RegionalService = "RegionalService"; + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependencyHealth.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependencyHealth.cs new file mode 100644 index 000000000000..8e671ee7c290 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependencyHealth.cs @@ -0,0 +1,78 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The integration service environment subnet network health. + /// + public partial class IntegrationServiceEnvironmentNetworkDependencyHealth + { + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentNetworkDependencyHealth class. + /// + public IntegrationServiceEnvironmentNetworkDependencyHealth() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentNetworkDependencyHealth class. + /// + /// The error if any occurred during the + /// operation. + /// The network dependency health state. Possible + /// values include: 'NotSpecified', 'Healthy', 'Unhealthy', + /// 'Unknown' + public IntegrationServiceEnvironmentNetworkDependencyHealth(ExtendedErrorInfo error = default(ExtendedErrorInfo), string state = default(string)) + { + Error = error; + State = state; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the error if any occurred during the operation. + /// + [JsonProperty(PropertyName = "error")] + public ExtendedErrorInfo Error { get; set; } + + /// + /// Gets or sets the network dependency health state. Possible values + /// include: 'NotSpecified', 'Healthy', 'Unhealthy', 'Unknown' + /// + [JsonProperty(PropertyName = "state")] + public string State { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Error != null) + { + Error.Validate(); + } + } + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependencyHealthState.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependencyHealthState.cs new file mode 100644 index 000000000000..126c2dc7cb29 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependencyHealthState.cs @@ -0,0 +1,25 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + + /// + /// Defines values for + /// IntegrationServiceEnvironmentNetworkDependencyHealthState. + /// + public static class IntegrationServiceEnvironmentNetworkDependencyHealthState + { + public const string NotSpecified = "NotSpecified"; + public const string Healthy = "Healthy"; + public const string Unhealthy = "Unhealthy"; + public const string Unknown = "Unknown"; + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkEndPointAccessibilityState.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkEndPointAccessibilityState.cs new file mode 100644 index 000000000000..5df469deac79 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkEndPointAccessibilityState.cs @@ -0,0 +1,25 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + + /// + /// Defines values for + /// IntegrationServiceEnvironmentNetworkEndPointAccessibilityState. + /// + public static class IntegrationServiceEnvironmentNetworkEndPointAccessibilityState + { + public const string NotSpecified = "NotSpecified"; + public const string Unknown = "Unknown"; + public const string Available = "Available"; + public const string NotAvailable = "NotAvailable"; + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkEndpoint.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkEndpoint.cs new file mode 100644 index 000000000000..930c4acc3c4f --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkEndpoint.cs @@ -0,0 +1,74 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The network endpoint. + /// + public partial class IntegrationServiceEnvironmentNetworkEndpoint + { + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentNetworkEndpoint class. + /// + public IntegrationServiceEnvironmentNetworkEndpoint() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentNetworkEndpoint class. + /// + /// The accessibility state. Possible + /// values include: 'NotSpecified', 'Unknown', 'Available', + /// 'NotAvailable' + /// The domain name. + /// The ports. + public IntegrationServiceEnvironmentNetworkEndpoint(string accessibility = default(string), string domainName = default(string), IList ports = default(IList)) + { + Accessibility = accessibility; + DomainName = domainName; + Ports = ports; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the accessibility state. Possible values include: + /// 'NotSpecified', 'Unknown', 'Available', 'NotAvailable' + /// + [JsonProperty(PropertyName = "accessibility")] + public string Accessibility { get; set; } + + /// + /// Gets or sets the domain name. + /// + [JsonProperty(PropertyName = "domainName")] + public string DomainName { get; set; } + + /// + /// Gets or sets the ports. + /// + [JsonProperty(PropertyName = "ports")] + public IList Ports { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentProperties.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentProperties.cs new file mode 100644 index 000000000000..5c3ad225dce2 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentProperties.cs @@ -0,0 +1,100 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The integration service environment properties. + /// + public partial class IntegrationServiceEnvironmentProperties + { + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentProperties class. + /// + public IntegrationServiceEnvironmentProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentProperties class. + /// + /// The provisioning state. Possible + /// values include: 'NotSpecified', 'Accepted', 'Running', 'Ready', + /// 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', + /// 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + /// 'Unregistering', 'Unregistered', 'Completed' + /// The integration service environment state. + /// Possible values include: 'NotSpecified', 'Completed', 'Enabled', + /// 'Disabled', 'Deleted', 'Suspended' + /// Gets the tracking + /// id. + /// The endpoints + /// configuration. + /// The network + /// configuration. + public IntegrationServiceEnvironmentProperties(string provisioningState = default(string), string state = default(string), string integrationServiceEnvironmentId = default(string), FlowEndpointsConfiguration endpointsConfiguration = default(FlowEndpointsConfiguration), NetworkConfiguration networkConfiguration = default(NetworkConfiguration)) + { + ProvisioningState = provisioningState; + State = state; + IntegrationServiceEnvironmentId = integrationServiceEnvironmentId; + EndpointsConfiguration = endpointsConfiguration; + NetworkConfiguration = networkConfiguration; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the provisioning state. Possible values include: + /// 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', + /// 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', + /// 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + /// 'Unregistering', 'Unregistered', 'Completed' + /// + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Gets or sets the integration service environment state. Possible + /// values include: 'NotSpecified', 'Completed', 'Enabled', 'Disabled', + /// 'Deleted', 'Suspended' + /// + [JsonProperty(PropertyName = "state")] + public string State { get; set; } + + /// + /// Gets the tracking id. + /// + [JsonProperty(PropertyName = "integrationServiceEnvironmentId")] + public string IntegrationServiceEnvironmentId { get; set; } + + /// + /// Gets or sets the endpoints configuration. + /// + [JsonProperty(PropertyName = "endpointsConfiguration")] + public FlowEndpointsConfiguration EndpointsConfiguration { get; set; } + + /// + /// Gets or sets the network configuration. + /// + [JsonProperty(PropertyName = "networkConfiguration")] + public NetworkConfiguration NetworkConfiguration { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSku.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSku.cs new file mode 100644 index 000000000000..db90caac5e89 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSku.cs @@ -0,0 +1,63 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The integration service environment sku. + /// + public partial class IntegrationServiceEnvironmentSku + { + /// + /// Initializes a new instance of the IntegrationServiceEnvironmentSku + /// class. + /// + public IntegrationServiceEnvironmentSku() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IntegrationServiceEnvironmentSku + /// class. + /// + /// The sku name. Possible values include: + /// 'NotSpecified', 'Premium', 'Developer' + /// The sku capacity. + public IntegrationServiceEnvironmentSku(string name = default(string), int? capacity = default(int?)) + { + Name = name; + Capacity = capacity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the sku name. Possible values include: 'NotSpecified', + /// 'Premium', 'Developer' + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the sku capacity. + /// + [JsonProperty(PropertyName = "capacity")] + public int? Capacity { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuCapacity.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuCapacity.cs new file mode 100644 index 000000000000..eed37fbaeaa6 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuCapacity.cs @@ -0,0 +1,79 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The integration service environment sku capacity. + /// + public partial class IntegrationServiceEnvironmentSkuCapacity + { + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentSkuCapacity class. + /// + public IntegrationServiceEnvironmentSkuCapacity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentSkuCapacity class. + /// + /// The minimum capacity. + /// The maximum capacity. + /// The default capacity. + /// The sku scale type. Possible values + /// include: 'Manual', 'Automatic', 'None' + public IntegrationServiceEnvironmentSkuCapacity(int? minimum = default(int?), int? maximum = default(int?), int? defaultProperty = default(int?), string scaleType = default(string)) + { + Minimum = minimum; + Maximum = maximum; + DefaultProperty = defaultProperty; + ScaleType = scaleType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the minimum capacity. + /// + [JsonProperty(PropertyName = "minimum")] + public int? Minimum { get; set; } + + /// + /// Gets or sets the maximum capacity. + /// + [JsonProperty(PropertyName = "maximum")] + public int? Maximum { get; set; } + + /// + /// Gets or sets the default capacity. + /// + [JsonProperty(PropertyName = "default")] + public int? DefaultProperty { get; set; } + + /// + /// Gets or sets the sku scale type. Possible values include: 'Manual', + /// 'Automatic', 'None' + /// + [JsonProperty(PropertyName = "scaleType")] + public string ScaleType { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuDefinition.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuDefinition.cs new file mode 100644 index 000000000000..86d309183d02 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuDefinition.cs @@ -0,0 +1,69 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The integration service environment sku definition. + /// + public partial class IntegrationServiceEnvironmentSkuDefinition + { + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentSkuDefinition class. + /// + public IntegrationServiceEnvironmentSkuDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentSkuDefinition class. + /// + /// The resource type. + /// The sku. + /// The sku capacity. + public IntegrationServiceEnvironmentSkuDefinition(string resourceType = default(string), IntegrationServiceEnvironmentSkuDefinitionSku sku = default(IntegrationServiceEnvironmentSkuDefinitionSku), IntegrationServiceEnvironmentSkuCapacity capacity = default(IntegrationServiceEnvironmentSkuCapacity)) + { + ResourceType = resourceType; + Sku = sku; + Capacity = capacity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource type. + /// + [JsonProperty(PropertyName = "resourceType")] + public string ResourceType { get; set; } + + /// + /// Gets or sets the sku. + /// + [JsonProperty(PropertyName = "sku")] + public IntegrationServiceEnvironmentSkuDefinitionSku Sku { get; set; } + + /// + /// Gets or sets the sku capacity. + /// + [JsonProperty(PropertyName = "capacity")] + public IntegrationServiceEnvironmentSkuCapacity Capacity { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuDefinitionSku.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuDefinitionSku.cs new file mode 100644 index 000000000000..b329f2140636 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuDefinitionSku.cs @@ -0,0 +1,63 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The sku. + /// + public partial class IntegrationServiceEnvironmentSkuDefinitionSku + { + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentSkuDefinitionSku class. + /// + public IntegrationServiceEnvironmentSkuDefinitionSku() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentSkuDefinitionSku class. + /// + /// The sku name. Possible values include: + /// 'NotSpecified', 'Premium', 'Developer' + /// The sku tier. + public IntegrationServiceEnvironmentSkuDefinitionSku(string name = default(string), string tier = default(string)) + { + Name = name; + Tier = tier; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the sku name. Possible values include: 'NotSpecified', + /// 'Premium', 'Developer' + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the sku tier. + /// + [JsonProperty(PropertyName = "tier")] + public string Tier { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuName.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuName.cs new file mode 100644 index 000000000000..40522e37b13e --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuName.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + + /// + /// Defines values for IntegrationServiceEnvironmentSkuName. + /// + public static class IntegrationServiceEnvironmentSkuName + { + public const string NotSpecified = "NotSpecified"; + public const string Premium = "Premium"; + public const string Developer = "Developer"; + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuScaleType.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuScaleType.cs new file mode 100644 index 000000000000..37eb906577ec --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuScaleType.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + + /// + /// Defines values for IntegrationServiceEnvironmentSkuScaleType. + /// + public static class IntegrationServiceEnvironmentSkuScaleType + { + public const string Manual = "Manual"; + public const string Automatic = "Automatic"; + public const string None = "None"; + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSubnetNetworkHealth.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSubnetNetworkHealth.cs new file mode 100644 index 000000000000..b18c5f0523c6 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentSubnetNetworkHealth.cs @@ -0,0 +1,95 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The integration service environment subnet network health. + /// + public partial class IntegrationServiceEnvironmentSubnetNetworkHealth + { + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentSubnetNetworkHealth class. + /// + public IntegrationServiceEnvironmentSubnetNetworkHealth() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentSubnetNetworkHealth class. + /// + /// The integration service + /// environment network health state. Possible values include: + /// 'NotSpecified', 'Unknown', 'Available', 'NotAvailable' + /// The outbound network + /// dependencies. + /// The integration service + /// environment network health. + public IntegrationServiceEnvironmentSubnetNetworkHealth(string networkDependencyHealthState, IList outboundNetworkDependencies = default(IList), IntegrationServiceEnvironmentNetworkDependencyHealth outboundNetworkHealth = default(IntegrationServiceEnvironmentNetworkDependencyHealth)) + { + OutboundNetworkDependencies = outboundNetworkDependencies; + OutboundNetworkHealth = outboundNetworkHealth; + NetworkDependencyHealthState = networkDependencyHealthState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the outbound network dependencies. + /// + [JsonProperty(PropertyName = "outboundNetworkDependencies")] + public IList OutboundNetworkDependencies { get; set; } + + /// + /// Gets or sets the integration service environment network health. + /// + [JsonProperty(PropertyName = "outboundNetworkHealth")] + public IntegrationServiceEnvironmentNetworkDependencyHealth OutboundNetworkHealth { get; set; } + + /// + /// Gets or sets the integration service environment network health + /// state. Possible values include: 'NotSpecified', 'Unknown', + /// 'Available', 'NotAvailable' + /// + [JsonProperty(PropertyName = "networkDependencyHealthState")] + public string NetworkDependencyHealthState { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (NetworkDependencyHealthState == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "NetworkDependencyHealthState"); + } + if (OutboundNetworkHealth != null) + { + OutboundNetworkHealth.Validate(); + } + } + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IpAddress.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IpAddress.cs new file mode 100644 index 000000000000..05996017afb4 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IpAddress.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The ip address. + /// + public partial class IpAddress + { + /// + /// Initializes a new instance of the IpAddress class. + /// + public IpAddress() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IpAddress class. + /// + /// The address. + public IpAddress(string address = default(string)) + { + Address = address; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the address. + /// + [JsonProperty(PropertyName = "address")] + public string Address { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ManagedApi.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ManagedApi.cs new file mode 100644 index 000000000000..d8591c9a7b13 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ManagedApi.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The managed api definition. + /// + public partial class ManagedApi : Resource + { + /// + /// Initializes a new instance of the ManagedApi class. + /// + public ManagedApi() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagedApi class. + /// + /// The resource id. + /// Gets the resource name. + /// Gets the resource type. + /// The resource location. + /// The resource tags. + /// The api resource properties. + public ManagedApi(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ApiResourceProperties properties = default(ApiResourceProperties)) + : base(id, name, type, location, tags) + { + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the api resource properties. + /// + [JsonProperty(PropertyName = "properties")] + public ApiResourceProperties Properties { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/NetworkConfiguration.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/NetworkConfiguration.cs new file mode 100644 index 000000000000..06f666c53eb1 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/NetworkConfiguration.cs @@ -0,0 +1,70 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The network configuration. + /// + public partial class NetworkConfiguration + { + /// + /// Initializes a new instance of the NetworkConfiguration class. + /// + public NetworkConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NetworkConfiguration class. + /// + /// Gets the virtual network + /// address space. + /// The access endpoint. + /// The subnets. + public NetworkConfiguration(string virtualNetworkAddressSpace = default(string), IntegrationServiceEnvironmentAccessEndpoint accessEndpoint = default(IntegrationServiceEnvironmentAccessEndpoint), IList subnets = default(IList)) + { + VirtualNetworkAddressSpace = virtualNetworkAddressSpace; + AccessEndpoint = accessEndpoint; + Subnets = subnets; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the virtual network address space. + /// + [JsonProperty(PropertyName = "virtualNetworkAddressSpace")] + public string VirtualNetworkAddressSpace { get; set; } + + /// + /// Gets or sets the access endpoint. + /// + [JsonProperty(PropertyName = "accessEndpoint")] + public IntegrationServiceEnvironmentAccessEndpoint AccessEndpoint { get; set; } + + /// + /// Gets or sets the subnets. + /// + [JsonProperty(PropertyName = "subnets")] + public IList Subnets { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SetTriggerStateActionDefinition.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SetTriggerStateActionDefinition.cs index 8641f12ea201..f18abbbe2086 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SetTriggerStateActionDefinition.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SetTriggerStateActionDefinition.cs @@ -14,6 +14,9 @@ namespace Microsoft.Azure.Management.Logic.Models using Newtonsoft.Json; using System.Linq; + /// + /// The set trigger state action definition. + /// public partial class SetTriggerStateActionDefinition { /// @@ -29,6 +32,7 @@ public SetTriggerStateActionDefinition() /// Initializes a new instance of the SetTriggerStateActionDefinition /// class. /// + /// The source. public SetTriggerStateActionDefinition(WorkflowTrigger source) { Source = source; @@ -41,6 +45,7 @@ public SetTriggerStateActionDefinition(WorkflowTrigger source) partial void CustomInit(); /// + /// Gets or sets the source. /// [JsonProperty(PropertyName = "source")] public WorkflowTrigger Source { get; set; } diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/StatusAnnotation.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/StatusAnnotation.cs new file mode 100644 index 000000000000..41a89600a0de --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/StatusAnnotation.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + + /// + /// Defines values for StatusAnnotation. + /// + public static class StatusAnnotation + { + public const string NotSpecified = "NotSpecified"; + public const string Preview = "Preview"; + public const string Production = "Production"; + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicList.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicList.cs new file mode 100644 index 000000000000..5c9b84bfc594 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicList.cs @@ -0,0 +1,102 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The swagger custom dynamic list. + /// + public partial class SwaggerCustomDynamicList + { + /// + /// Initializes a new instance of the SwaggerCustomDynamicList class. + /// + public SwaggerCustomDynamicList() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SwaggerCustomDynamicList class. + /// + /// The operation id to fetch dynamic + /// schema. + /// The built in operation. + /// The path to a response property (relative + /// to the response object, not the response body) which contains an + /// array of dynamic value items. + /// The path to a property which defines + /// the value which should be used. + /// The path to an item property which + /// defines the display name of the item. + /// The parameters. + public SwaggerCustomDynamicList(string operationId = default(string), string builtInOperation = default(string), string itemsPath = default(string), string itemValuePath = default(string), string itemTitlePath = default(string), IDictionary parameters = default(IDictionary)) + { + OperationId = operationId; + BuiltInOperation = builtInOperation; + ItemsPath = itemsPath; + ItemValuePath = itemValuePath; + ItemTitlePath = itemTitlePath; + Parameters = parameters; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the operation id to fetch dynamic schema. + /// + [JsonProperty(PropertyName = "operationId")] + public string OperationId { get; set; } + + /// + /// Gets or sets the built in operation. + /// + [JsonProperty(PropertyName = "builtInOperation")] + public string BuiltInOperation { get; set; } + + /// + /// Gets or sets the path to a response property (relative to the + /// response object, not the response body) which contains an array of + /// dynamic value items. + /// + [JsonProperty(PropertyName = "itemsPath")] + public string ItemsPath { get; set; } + + /// + /// Gets or sets the path to a property which defines the value which + /// should be used. + /// + [JsonProperty(PropertyName = "itemValuePath")] + public string ItemValuePath { get; set; } + + /// + /// Gets or sets the path to an item property which defines the display + /// name of the item. + /// + [JsonProperty(PropertyName = "itemTitlePath")] + public string ItemTitlePath { get; set; } + + /// + /// Gets or sets the parameters. + /// + [JsonProperty(PropertyName = "parameters")] + public IDictionary Parameters { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicProperties.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicProperties.cs new file mode 100644 index 000000000000..56a410b26e71 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicProperties.cs @@ -0,0 +1,74 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The swagger custom dynamic properties. + /// + public partial class SwaggerCustomDynamicProperties + { + /// + /// Initializes a new instance of the SwaggerCustomDynamicProperties + /// class. + /// + public SwaggerCustomDynamicProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SwaggerCustomDynamicProperties + /// class. + /// + /// The operation id to fetch dynamic + /// schema. + /// Json pointer to the dynamic schema on the + /// response body. + /// The operation parameters. + public SwaggerCustomDynamicProperties(string operationId = default(string), string valuePath = default(string), IDictionary parameters = default(IDictionary)) + { + OperationId = operationId; + ValuePath = valuePath; + Parameters = parameters; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the operation id to fetch dynamic schema. + /// + [JsonProperty(PropertyName = "operationId")] + public string OperationId { get; set; } + + /// + /// Gets or sets json pointer to the dynamic schema on the response + /// body. + /// + [JsonProperty(PropertyName = "valuePath")] + public string ValuePath { get; set; } + + /// + /// Gets or sets the operation parameters. + /// + [JsonProperty(PropertyName = "parameters")] + public IDictionary Parameters { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicSchema.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicSchema.cs new file mode 100644 index 000000000000..0e1fea9faabd --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicSchema.cs @@ -0,0 +1,72 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The swagger custom dynamic schema. + /// + public partial class SwaggerCustomDynamicSchema + { + /// + /// Initializes a new instance of the SwaggerCustomDynamicSchema class. + /// + public SwaggerCustomDynamicSchema() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SwaggerCustomDynamicSchema class. + /// + /// The operation id to fetch dynamic + /// schema. + /// Json pointer to the dynamic schema on the + /// response body. + /// The operation parameters. + public SwaggerCustomDynamicSchema(string operationId = default(string), string valuePath = default(string), IDictionary parameters = default(IDictionary)) + { + OperationId = operationId; + ValuePath = valuePath; + Parameters = parameters; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the operation id to fetch dynamic schema. + /// + [JsonProperty(PropertyName = "operationId")] + public string OperationId { get; set; } + + /// + /// Gets or sets json pointer to the dynamic schema on the response + /// body. + /// + [JsonProperty(PropertyName = "valuePath")] + public string ValuePath { get; set; } + + /// + /// Gets or sets the operation parameters. + /// + [JsonProperty(PropertyName = "parameters")] + public IDictionary Parameters { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicTree.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicTree.cs new file mode 100644 index 000000000000..7748759a84a1 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicTree.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The swagger custom dynamic tree. + /// + public partial class SwaggerCustomDynamicTree + { + /// + /// Initializes a new instance of the SwaggerCustomDynamicTree class. + /// + public SwaggerCustomDynamicTree() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SwaggerCustomDynamicTree class. + /// + /// The tree settings + /// The tree on-open configuration + /// The tree on-browse configuration + public SwaggerCustomDynamicTree(SwaggerCustomDynamicTreeSettings settings = default(SwaggerCustomDynamicTreeSettings), SwaggerCustomDynamicTreeCommand open = default(SwaggerCustomDynamicTreeCommand), SwaggerCustomDynamicTreeCommand browse = default(SwaggerCustomDynamicTreeCommand)) + { + Settings = settings; + Open = open; + Browse = browse; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the tree settings + /// + [JsonProperty(PropertyName = "settings")] + public SwaggerCustomDynamicTreeSettings Settings { get; set; } + + /// + /// Gets or sets the tree on-open configuration + /// + [JsonProperty(PropertyName = "open")] + public SwaggerCustomDynamicTreeCommand Open { get; set; } + + /// + /// Gets or sets the tree on-browse configuration + /// + [JsonProperty(PropertyName = "browse")] + public SwaggerCustomDynamicTreeCommand Browse { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicTreeCommand.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicTreeCommand.cs new file mode 100644 index 000000000000..02218172f438 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicTreeCommand.cs @@ -0,0 +1,123 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The swagger tree command. + /// + public partial class SwaggerCustomDynamicTreeCommand + { + /// + /// Initializes a new instance of the SwaggerCustomDynamicTreeCommand + /// class. + /// + public SwaggerCustomDynamicTreeCommand() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SwaggerCustomDynamicTreeCommand + /// class. + /// + /// The path to an item property which + /// defines the display name of the item. + /// The path to an item property which defines + /// the display name of the item. + /// The path to an item property which + /// defines the display name of the item. + /// The path to an item property which + /// defines the display name of the item. + /// The path to an item property which + /// defines the display name of the item. + /// The path to an item property which + /// defines the display name of the item. + /// The path to an item property which + /// defines the display name of the item. + public SwaggerCustomDynamicTreeCommand(string operationId = default(string), string itemsPath = default(string), string itemValuePath = default(string), string itemTitlePath = default(string), string itemFullTitlePath = default(string), string itemIsParent = default(string), string selectableFilter = default(string), IDictionary parameters = default(IDictionary)) + { + OperationId = operationId; + ItemsPath = itemsPath; + ItemValuePath = itemValuePath; + ItemTitlePath = itemTitlePath; + ItemFullTitlePath = itemFullTitlePath; + ItemIsParent = itemIsParent; + SelectableFilter = selectableFilter; + Parameters = parameters; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the path to an item property which defines the display + /// name of the item. + /// + [JsonProperty(PropertyName = "operationId")] + public string OperationId { get; set; } + + /// + /// Gets or sets the path to an item property which defines the display + /// name of the item. + /// + [JsonProperty(PropertyName = "itemsPath")] + public string ItemsPath { get; set; } + + /// + /// Gets or sets the path to an item property which defines the display + /// name of the item. + /// + [JsonProperty(PropertyName = "itemValuePath")] + public string ItemValuePath { get; set; } + + /// + /// Gets or sets the path to an item property which defines the display + /// name of the item. + /// + [JsonProperty(PropertyName = "itemTitlePath")] + public string ItemTitlePath { get; set; } + + /// + /// Gets or sets the path to an item property which defines the display + /// name of the item. + /// + [JsonProperty(PropertyName = "itemFullTitlePath")] + public string ItemFullTitlePath { get; set; } + + /// + /// Gets or sets the path to an item property which defines the display + /// name of the item. + /// + [JsonProperty(PropertyName = "itemIsParent")] + public string ItemIsParent { get; set; } + + /// + /// Gets or sets the path to an item property which defines the display + /// name of the item. + /// + [JsonProperty(PropertyName = "selectableFilter")] + public string SelectableFilter { get; set; } + + /// + /// + [JsonProperty(PropertyName = "parameters")] + public IDictionary Parameters { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicTreeParameter.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicTreeParameter.cs new file mode 100644 index 000000000000..d5b641704f96 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicTreeParameter.cs @@ -0,0 +1,81 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The swagger custom dynamic tree parameter. + /// + public partial class SwaggerCustomDynamicTreeParameter + { + /// + /// Initializes a new instance of the SwaggerCustomDynamicTreeParameter + /// class. + /// + public SwaggerCustomDynamicTreeParameter() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SwaggerCustomDynamicTreeParameter + /// class. + /// + /// Gets or sets a path to a + /// property in the currently selected item to pass as a value to a + /// parameter for the given operation. + /// The parameter value. + /// The parameter reference. + /// Indicates whether the parameter is + /// required. + public SwaggerCustomDynamicTreeParameter(string selectedItemValuePath = default(string), object value = default(object), string parameterReference = default(string), bool? required = default(bool?)) + { + SelectedItemValuePath = selectedItemValuePath; + Value = value; + ParameterReference = parameterReference; + Required = required; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a path to a property in the currently selected item to + /// pass as a value to a parameter for the given operation. + /// + [JsonProperty(PropertyName = "selectedItemValuePath")] + public string SelectedItemValuePath { get; set; } + + /// + /// Gets or sets the parameter value. + /// + [JsonProperty(PropertyName = "value")] + public object Value { get; set; } + + /// + /// Gets or sets the parameter reference. + /// + [JsonProperty(PropertyName = "parameterReference")] + public string ParameterReference { get; set; } + + /// + /// Gets or sets indicates whether the parameter is required. + /// + [JsonProperty(PropertyName = "required")] + public bool? Required { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicTreeSettings.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicTreeSettings.cs new file mode 100644 index 000000000000..4ff18037c14d --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerCustomDynamicTreeSettings.cs @@ -0,0 +1,63 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The swagger custom dynamic tree settings. + /// + public partial class SwaggerCustomDynamicTreeSettings + { + /// + /// Initializes a new instance of the SwaggerCustomDynamicTreeSettings + /// class. + /// + public SwaggerCustomDynamicTreeSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SwaggerCustomDynamicTreeSettings + /// class. + /// + /// Indicates whether parent nodes + /// can be selected. + /// Indicates whether leaf nodes can + /// be selected. + public SwaggerCustomDynamicTreeSettings(bool? canSelectParentNodes = default(bool?), bool? canSelectLeafNodes = default(bool?)) + { + CanSelectParentNodes = canSelectParentNodes; + CanSelectLeafNodes = canSelectLeafNodes; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets indicates whether parent nodes can be selected. + /// + [JsonProperty(PropertyName = "CanSelectParentNodes")] + public bool? CanSelectParentNodes { get; set; } + + /// + /// Gets or sets indicates whether leaf nodes can be selected. + /// + [JsonProperty(PropertyName = "CanSelectLeafNodes")] + public bool? CanSelectLeafNodes { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerExternalDocumentation.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerExternalDocumentation.cs new file mode 100644 index 000000000000..40e9b8d3bf18 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerExternalDocumentation.cs @@ -0,0 +1,71 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The swagger external documentation + /// + public partial class SwaggerExternalDocumentation + { + /// + /// Initializes a new instance of the SwaggerExternalDocumentation + /// class. + /// + public SwaggerExternalDocumentation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SwaggerExternalDocumentation + /// class. + /// + /// The document description. + /// The documentation Uri. + /// The vendor extensions. + public SwaggerExternalDocumentation(string description = default(string), string uri = default(string), IDictionary extensions = default(IDictionary)) + { + Description = description; + Uri = uri; + Extensions = extensions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the document description. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Gets or sets the documentation Uri. + /// + [JsonProperty(PropertyName = "uri")] + public string Uri { get; set; } + + /// + /// Gets or sets the vendor extensions. + /// + [JsonProperty(PropertyName = "extensions")] + public IDictionary Extensions { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerSchema.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerSchema.cs new file mode 100644 index 000000000000..b00265e0f2da --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerSchema.cs @@ -0,0 +1,222 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The swagger schema. + /// + public partial class SwaggerSchema + { + /// + /// Initializes a new instance of the SwaggerSchema class. + /// + public SwaggerSchema() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SwaggerSchema class. + /// + /// The reference. + /// The type. Possible values include: 'String', + /// 'Number', 'Integer', 'Boolean', 'Array', 'File', 'Object', + /// 'Null' + /// The title. + /// The items schema. + /// The object properties + /// The additional + /// properties. + /// The object required properties. + /// The maximum number of allowed + /// properties. + /// The minimum number of allowed + /// properties. + /// The schemas which must pass validation when + /// this schema is used. + /// The discriminator. + /// Indicates whether this property must + /// be present in the a request. + /// The xml representation format for a + /// property. + /// The external documentation. + /// The example value. + /// Indicates the notification + /// url extension. If this is set, the property's value should be a + /// callback url for a webhook. + /// The dynamic schema + /// configuration. + /// The dynamic schema + /// configuration. + /// The dynamic list. + /// The dynamic values tree + /// configuration. + public SwaggerSchema(string refProperty = default(string), string type = default(string), string title = default(string), SwaggerSchema items = default(SwaggerSchema), IDictionary properties = default(IDictionary), object additionalProperties = default(object), IList required = default(IList), int? maxProperties = default(int?), int? minProperties = default(int?), IList allOf = default(IList), string discriminator = default(string), bool? readOnlyProperty = default(bool?), SwaggerXml xml = default(SwaggerXml), SwaggerExternalDocumentation externalDocs = default(SwaggerExternalDocumentation), object example = default(object), bool? notificationUrlExtension = default(bool?), SwaggerCustomDynamicSchema dynamicSchemaOld = default(SwaggerCustomDynamicSchema), SwaggerCustomDynamicProperties dynamicSchemaNew = default(SwaggerCustomDynamicProperties), SwaggerCustomDynamicList dynamicListNew = default(SwaggerCustomDynamicList), SwaggerCustomDynamicTree dynamicTree = default(SwaggerCustomDynamicTree)) + { + RefProperty = refProperty; + Type = type; + Title = title; + Items = items; + Properties = properties; + AdditionalProperties = additionalProperties; + Required = required; + MaxProperties = maxProperties; + MinProperties = minProperties; + AllOf = allOf; + Discriminator = discriminator; + ReadOnlyProperty = readOnlyProperty; + Xml = xml; + ExternalDocs = externalDocs; + Example = example; + NotificationUrlExtension = notificationUrlExtension; + DynamicSchemaOld = dynamicSchemaOld; + DynamicSchemaNew = dynamicSchemaNew; + DynamicListNew = dynamicListNew; + DynamicTree = dynamicTree; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the reference. + /// + [JsonProperty(PropertyName = "ref")] + public string RefProperty { get; set; } + + /// + /// Gets or sets the type. Possible values include: 'String', 'Number', + /// 'Integer', 'Boolean', 'Array', 'File', 'Object', 'Null' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets the title. + /// + [JsonProperty(PropertyName = "title")] + public string Title { get; set; } + + /// + /// Gets or sets the items schema. + /// + [JsonProperty(PropertyName = "items")] + public SwaggerSchema Items { get; set; } + + /// + /// Gets or sets the object properties + /// + [JsonProperty(PropertyName = "properties")] + public IDictionary Properties { get; set; } + + /// + /// Gets or sets the additional properties. + /// + [JsonProperty(PropertyName = "additionalProperties")] + public object AdditionalProperties { get; set; } + + /// + /// Gets or sets the object required properties. + /// + [JsonProperty(PropertyName = "required")] + public IList Required { get; set; } + + /// + /// Gets or sets the maximum number of allowed properties. + /// + [JsonProperty(PropertyName = "maxProperties")] + public int? MaxProperties { get; set; } + + /// + /// Gets or sets the minimum number of allowed properties. + /// + [JsonProperty(PropertyName = "minProperties")] + public int? MinProperties { get; set; } + + /// + /// Gets or sets the schemas which must pass validation when this + /// schema is used. + /// + [JsonProperty(PropertyName = "allOf")] + public IList AllOf { get; set; } + + /// + /// Gets or sets the discriminator. + /// + [JsonProperty(PropertyName = "discriminator")] + public string Discriminator { get; set; } + + /// + /// Gets or sets indicates whether this property must be present in the + /// a request. + /// + [JsonProperty(PropertyName = "readOnly")] + public bool? ReadOnlyProperty { get; set; } + + /// + /// Gets or sets the xml representation format for a property. + /// + [JsonProperty(PropertyName = "xml")] + public SwaggerXml Xml { get; set; } + + /// + /// Gets or sets the external documentation. + /// + [JsonProperty(PropertyName = "externalDocs")] + public SwaggerExternalDocumentation ExternalDocs { get; set; } + + /// + /// Gets or sets the example value. + /// + [JsonProperty(PropertyName = "example")] + public object Example { get; set; } + + /// + /// Gets or sets indicates the notification url extension. If this is + /// set, the property's value should be a callback url for a webhook. + /// + [JsonProperty(PropertyName = "notificationUrlExtension")] + public bool? NotificationUrlExtension { get; set; } + + /// + /// Gets or sets the dynamic schema configuration. + /// + [JsonProperty(PropertyName = "dynamicSchemaOld")] + public SwaggerCustomDynamicSchema DynamicSchemaOld { get; set; } + + /// + /// Gets or sets the dynamic schema configuration. + /// + [JsonProperty(PropertyName = "dynamicSchemaNew")] + public SwaggerCustomDynamicProperties DynamicSchemaNew { get; set; } + + /// + /// Gets or sets the dynamic list. + /// + [JsonProperty(PropertyName = "dynamicListNew")] + public SwaggerCustomDynamicList DynamicListNew { get; set; } + + /// + /// Gets or sets the dynamic values tree configuration. + /// + [JsonProperty(PropertyName = "dynamicTree")] + public SwaggerCustomDynamicTree DynamicTree { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerSchemaType.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerSchemaType.cs new file mode 100644 index 000000000000..ec41cd150c3c --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerSchemaType.cs @@ -0,0 +1,28 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + + /// + /// Defines values for SwaggerSchemaType. + /// + public static class SwaggerSchemaType + { + public const string String = "String"; + public const string Number = "Number"; + public const string Integer = "Integer"; + public const string Boolean = "Boolean"; + public const string Array = "Array"; + public const string File = "File"; + public const string Object = "Object"; + public const string Null = "Null"; + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerXml.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerXml.cs new file mode 100644 index 000000000000..0431d5169bd4 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/SwaggerXml.cs @@ -0,0 +1,97 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The Swagger XML. + /// + public partial class SwaggerXml + { + /// + /// Initializes a new instance of the SwaggerXml class. + /// + public SwaggerXml() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SwaggerXml class. + /// + /// The xml element or attribute name. + /// The xml namespace. + /// The name prefix. + /// Indicates whether the property should be an + /// attribute instead of an element. + /// Indicates whether the array elements are + /// wrapped in a container element. + /// The vendor extensions. + public SwaggerXml(string name = default(string), string namespaceProperty = default(string), string prefix = default(string), bool? attribute = default(bool?), bool? wrapped = default(bool?), IDictionary extensions = default(IDictionary)) + { + Name = name; + NamespaceProperty = namespaceProperty; + Prefix = prefix; + Attribute = attribute; + Wrapped = wrapped; + Extensions = extensions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the xml element or attribute name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the xml namespace. + /// + [JsonProperty(PropertyName = "namespace")] + public string NamespaceProperty { get; set; } + + /// + /// Gets or sets the name prefix. + /// + [JsonProperty(PropertyName = "prefix")] + public string Prefix { get; set; } + + /// + /// Gets or sets indicates whether the property should be an attribute + /// instead of an element. + /// + [JsonProperty(PropertyName = "attribute")] + public bool? Attribute { get; set; } + + /// + /// Gets or sets indicates whether the array elements are wrapped in a + /// container element. + /// + [JsonProperty(PropertyName = "wrapped")] + public bool? Wrapped { get; set; } + + /// + /// Gets or sets the vendor extensions. + /// + [JsonProperty(PropertyName = "extensions")] + public IDictionary Extensions { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/TrackingEvent.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/TrackingEvent.cs index 9e4887be1f31..8179db7b4358 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/TrackingEvent.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/TrackingEvent.cs @@ -14,6 +14,9 @@ namespace Microsoft.Azure.Management.Logic.Models using Newtonsoft.Json; using System.Linq; + /// + /// The tracking event. + /// public partial class TrackingEvent { /// @@ -27,10 +30,12 @@ public TrackingEvent() /// /// Initializes a new instance of the TrackingEvent class. /// - /// Possible values include: 'LogAlways', - /// 'Critical', 'Error', 'Warning', 'Informational', 'Verbose' - /// Possible values include: 'NotSpecified', - /// 'Custom', 'AS2Message', 'AS2MDN', 'X12Interchange', + /// The event level. Possible values include: + /// 'LogAlways', 'Critical', 'Error', 'Warning', 'Informational', + /// 'Verbose' + /// The event time. + /// The record type. Possible values include: + /// 'NotSpecified', 'Custom', 'AS2Message', 'AS2MDN', 'X12Interchange', /// 'X12FunctionalGroup', 'X12TransactionSet', /// 'X12InterchangeAcknowledgment', 'X12FunctionalGroupAcknowledgment', /// 'X12TransactionSetAcknowledgment', 'EdifactInterchange', @@ -38,6 +43,7 @@ public TrackingEvent() /// 'EdifactInterchangeAcknowledgment', /// 'EdifactFunctionalGroupAcknowledgment', /// 'EdifactTransactionSetAcknowledgment' + /// The error. public TrackingEvent(EventLevel eventLevel, System.DateTime eventTime, string recordType, TrackingEventErrorInfo error = default(TrackingEventErrorInfo)) { EventLevel = eventLevel; @@ -53,22 +59,23 @@ public TrackingEvent() partial void CustomInit(); /// - /// Gets or sets possible values include: 'LogAlways', 'Critical', - /// 'Error', 'Warning', 'Informational', 'Verbose' + /// Gets or sets the event level. Possible values include: 'LogAlways', + /// 'Critical', 'Error', 'Warning', 'Informational', 'Verbose' /// [JsonProperty(PropertyName = "eventLevel")] public EventLevel EventLevel { get; set; } /// + /// Gets or sets the event time. /// [JsonProperty(PropertyName = "eventTime")] public System.DateTime EventTime { get; set; } /// - /// Gets or sets possible values include: 'NotSpecified', 'Custom', - /// 'AS2Message', 'AS2MDN', 'X12Interchange', 'X12FunctionalGroup', - /// 'X12TransactionSet', 'X12InterchangeAcknowledgment', - /// 'X12FunctionalGroupAcknowledgment', + /// Gets or sets the record type. Possible values include: + /// 'NotSpecified', 'Custom', 'AS2Message', 'AS2MDN', 'X12Interchange', + /// 'X12FunctionalGroup', 'X12TransactionSet', + /// 'X12InterchangeAcknowledgment', 'X12FunctionalGroupAcknowledgment', /// 'X12TransactionSetAcknowledgment', 'EdifactInterchange', /// 'EdifactFunctionalGroup', 'EdifactTransactionSet', /// 'EdifactInterchangeAcknowledgment', @@ -79,6 +86,7 @@ public TrackingEvent() public string RecordType { get; set; } /// + /// Gets or sets the error. /// [JsonProperty(PropertyName = "error")] public TrackingEventErrorInfo Error { get; set; } diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/TrackingEventErrorInfo.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/TrackingEventErrorInfo.cs index d7089c948147..291dbbca0f15 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/TrackingEventErrorInfo.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/TrackingEventErrorInfo.cs @@ -13,6 +13,9 @@ namespace Microsoft.Azure.Management.Logic.Models using Newtonsoft.Json; using System.Linq; + /// + /// The tracking event error info. + /// public partial class TrackingEventErrorInfo { /// @@ -26,6 +29,8 @@ public TrackingEventErrorInfo() /// /// Initializes a new instance of the TrackingEventErrorInfo class. /// + /// The message. + /// The code. public TrackingEventErrorInfo(string message = default(string), string code = default(string)) { Message = message; @@ -39,11 +44,13 @@ public TrackingEventErrorInfo() partial void CustomInit(); /// + /// Gets or sets the message. /// [JsonProperty(PropertyName = "message")] public string Message { get; set; } /// + /// Gets or sets the code. /// [JsonProperty(PropertyName = "code")] public string Code { get; set; } diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/TrackingEventsDefinition.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/TrackingEventsDefinition.cs index 89556856542f..516de7995bec 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/TrackingEventsDefinition.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/TrackingEventsDefinition.cs @@ -16,6 +16,9 @@ namespace Microsoft.Azure.Management.Logic.Models using System.Collections.Generic; using System.Linq; + /// + /// The tracking events definition. + /// public partial class TrackingEventsDefinition { /// @@ -29,8 +32,10 @@ public TrackingEventsDefinition() /// /// Initializes a new instance of the TrackingEventsDefinition class. /// - /// Possible values include: 'None', - /// 'DisableSourceInfoEnrich' + /// The source type. + /// The events. + /// The track events options. Possible + /// values include: 'None', 'DisableSourceInfoEnrich' public TrackingEventsDefinition(string sourceType, IList events, string trackEventsOptions = default(string)) { SourceType = sourceType; @@ -45,18 +50,20 @@ public TrackingEventsDefinition() partial void CustomInit(); /// + /// Gets or sets the source type. /// [JsonProperty(PropertyName = "sourceType")] public string SourceType { get; set; } /// - /// Gets or sets possible values include: 'None', - /// 'DisableSourceInfoEnrich' + /// Gets or sets the track events options. Possible values include: + /// 'None', 'DisableSourceInfoEnrich' /// [JsonProperty(PropertyName = "trackEventsOptions")] public string TrackEventsOptions { get; set; } /// + /// Gets or sets the events. /// [JsonProperty(PropertyName = "events")] public IList Events { get; set; } diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/Workflow.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/Workflow.cs index f6a3322a3dfd..9ebab6563f89 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/Workflow.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/Workflow.cs @@ -51,11 +51,15 @@ public Workflow() /// 'Suspended' /// Gets the version. /// Gets the access endpoint. + /// The endpoints + /// configuration. /// The sku. /// The integration account. + /// The integration service + /// environment. /// The definition. /// The parameters. - public Workflow(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), System.DateTime? createdTime = default(System.DateTime?), System.DateTime? changedTime = default(System.DateTime?), string state = default(string), string version = default(string), string accessEndpoint = default(string), Sku sku = default(Sku), ResourceReference integrationAccount = default(ResourceReference), object definition = default(object), IDictionary parameters = default(IDictionary)) + public Workflow(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), System.DateTime? createdTime = default(System.DateTime?), System.DateTime? changedTime = default(System.DateTime?), string state = default(string), string version = default(string), string accessEndpoint = default(string), FlowEndpointsConfiguration endpointsConfiguration = default(FlowEndpointsConfiguration), Sku sku = default(Sku), ResourceReference integrationAccount = default(ResourceReference), ResourceReference integrationServiceEnvironment = default(ResourceReference), object definition = default(object), IDictionary parameters = default(IDictionary)) : base(id, name, type, location, tags) { ProvisioningState = provisioningState; @@ -64,8 +68,10 @@ public Workflow() State = state; Version = version; AccessEndpoint = accessEndpoint; + EndpointsConfiguration = endpointsConfiguration; Sku = sku; IntegrationAccount = integrationAccount; + IntegrationServiceEnvironment = integrationServiceEnvironment; Definition = definition; Parameters = parameters; CustomInit(); @@ -117,6 +123,12 @@ public Workflow() [JsonProperty(PropertyName = "properties.accessEndpoint")] public string AccessEndpoint { get; private set; } + /// + /// Gets or sets the endpoints configuration. + /// + [JsonProperty(PropertyName = "properties.endpointsConfiguration")] + public FlowEndpointsConfiguration EndpointsConfiguration { get; set; } + /// /// Gets or sets the sku. /// @@ -129,6 +141,12 @@ public Workflow() [JsonProperty(PropertyName = "properties.integrationAccount")] public ResourceReference IntegrationAccount { get; set; } + /// + /// Gets or sets the integration service environment. + /// + [JsonProperty(PropertyName = "properties.integrationServiceEnvironment")] + public ResourceReference IntegrationServiceEnvironment { get; set; } + /// /// Gets or sets the definition. /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowTriggerHistory.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowTriggerHistory.cs index 49bfd277adff..5faddd7097e7 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowTriggerHistory.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowTriggerHistory.cs @@ -46,7 +46,7 @@ public WorkflowTriggerHistory() /// Gets the link to input parameters. /// Gets the link to output /// parameters. - /// Gets a value indicating whether trigger was + /// The value indicating whether trigger was /// fired. /// Gets the reference to workflow run. /// Gets the workflow trigger history name. @@ -132,7 +132,7 @@ public WorkflowTriggerHistory() public ContentLink OutputsLink { get; private set; } /// - /// Gets a value indicating whether trigger was fired. + /// Gets the value indicating whether trigger was fired. /// [JsonProperty(PropertyName = "properties.fired")] public bool? Fired { get; private set; } diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WsdlImportMethod.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WsdlImportMethod.cs new file mode 100644 index 000000000000..8739b141e927 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WsdlImportMethod.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + + /// + /// Defines values for WsdlImportMethod. + /// + public static class WsdlImportMethod + { + public const string NotSpecified = "NotSpecified"; + public const string SoapToRest = "SoapToRest"; + public const string SoapPassThrough = "SoapPassThrough"; + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WsdlService.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WsdlService.cs new file mode 100644 index 000000000000..c0b270d61b19 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WsdlService.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Logic.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The WSDL service. + /// + public partial class WsdlService + { + /// + /// Initializes a new instance of the WsdlService class. + /// + public WsdlService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WsdlService class. + /// + /// The qualified name. + /// The list of endpoints' + /// qualified names. + public WsdlService(string qualifiedName = default(string), IList endpointQualifiedNames = default(IList)) + { + QualifiedName = qualifiedName; + EndpointQualifiedNames = endpointQualifiedNames; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the qualified name. + /// + [JsonProperty(PropertyName = "qualifiedName")] + public string QualifiedName { get; set; } + + /// + /// Gets or sets the list of endpoints' qualified names. + /// + [JsonProperty(PropertyName = "EndpointQualifiedNames")] + public IList EndpointQualifiedNames { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/X12ValidationOverride.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/X12ValidationOverride.cs index 855fb4a9ff73..ab16b56d61ad 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/X12ValidationOverride.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/X12ValidationOverride.cs @@ -32,9 +32,9 @@ public X12ValidationOverride() /// /// The message id on which the validation /// settings has to be applied. - /// The value indicating whether to + /// The value indicating whether to /// validate EDI types. - /// The value indicating whether to + /// The value indicating whether to /// validate XSD types. /// The value /// indicating whether to allow leading and trailing spaces and @@ -47,11 +47,11 @@ public X12ValidationOverride() /// The trailing separator /// policy. Possible values include: 'NotSpecified', 'NotAllowed', /// 'Optional', 'Mandatory' - public X12ValidationOverride(string messageId, bool validateEdiTypes, bool validateXsdTypes, bool allowLeadingAndTrailingSpacesAndZeroes, bool validateCharacterSet, bool trimLeadingAndTrailingSpacesAndZeroes, string trailingSeparatorPolicy) + public X12ValidationOverride(string messageId, bool validateEDITypes, bool validateXSDTypes, bool allowLeadingAndTrailingSpacesAndZeroes, bool validateCharacterSet, bool trimLeadingAndTrailingSpacesAndZeroes, string trailingSeparatorPolicy) { MessageId = messageId; - ValidateEdiTypes = validateEdiTypes; - ValidateXsdTypes = validateXsdTypes; + ValidateEDITypes = validateEDITypes; + ValidateXSDTypes = validateXSDTypes; AllowLeadingAndTrailingSpacesAndZeroes = allowLeadingAndTrailingSpacesAndZeroes; ValidateCharacterSet = validateCharacterSet; TrimLeadingAndTrailingSpacesAndZeroes = trimLeadingAndTrailingSpacesAndZeroes; @@ -74,14 +74,14 @@ public X12ValidationOverride(string messageId, bool validateEdiTypes, bool valid /// /// Gets or sets the value indicating whether to validate EDI types. /// - [JsonProperty(PropertyName = "validateEdiTypes")] - public bool ValidateEdiTypes { get; set; } + [JsonProperty(PropertyName = "validateEDITypes")] + public bool ValidateEDITypes { get; set; } /// /// Gets or sets the value indicating whether to validate XSD types. /// - [JsonProperty(PropertyName = "validateXsdTypes")] - public bool ValidateXsdTypes { get; set; } + [JsonProperty(PropertyName = "validateXSDTypes")] + public bool ValidateXSDTypes { get; set; } /// /// Gets or sets the value indicating whether to allow leading and diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/X12ValidationSettings.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/X12ValidationSettings.cs index 2ae403a332bd..9ad7f4884570 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/X12ValidationSettings.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/X12ValidationSettings.cs @@ -42,9 +42,9 @@ public X12ValidationSettings() /// The value /// indicating whether to check for duplicate transaction set control /// number. - /// The value indicating whether to + /// The value indicating whether to /// Whether to validate EDI types. - /// The value indicating whether to + /// The value indicating whether to /// Whether to validate XSD types. /// The value /// indicating whether to allow leading and trailing spaces and @@ -55,15 +55,15 @@ public X12ValidationSettings() /// The trailing separator /// policy. Possible values include: 'NotSpecified', 'NotAllowed', /// 'Optional', 'Mandatory' - public X12ValidationSettings(bool validateCharacterSet, bool checkDuplicateInterchangeControlNumber, int interchangeControlNumberValidityDays, bool checkDuplicateGroupControlNumber, bool checkDuplicateTransactionSetControlNumber, bool validateEdiTypes, bool validateXsdTypes, bool allowLeadingAndTrailingSpacesAndZeroes, bool trimLeadingAndTrailingSpacesAndZeroes, string trailingSeparatorPolicy) + public X12ValidationSettings(bool validateCharacterSet, bool checkDuplicateInterchangeControlNumber, int interchangeControlNumberValidityDays, bool checkDuplicateGroupControlNumber, bool checkDuplicateTransactionSetControlNumber, bool validateEDITypes, bool validateXSDTypes, bool allowLeadingAndTrailingSpacesAndZeroes, bool trimLeadingAndTrailingSpacesAndZeroes, string trailingSeparatorPolicy) { ValidateCharacterSet = validateCharacterSet; CheckDuplicateInterchangeControlNumber = checkDuplicateInterchangeControlNumber; InterchangeControlNumberValidityDays = interchangeControlNumberValidityDays; CheckDuplicateGroupControlNumber = checkDuplicateGroupControlNumber; CheckDuplicateTransactionSetControlNumber = checkDuplicateTransactionSetControlNumber; - ValidateEdiTypes = validateEdiTypes; - ValidateXsdTypes = validateXsdTypes; + ValidateEDITypes = validateEDITypes; + ValidateXSDTypes = validateXSDTypes; AllowLeadingAndTrailingSpacesAndZeroes = allowLeadingAndTrailingSpacesAndZeroes; TrimLeadingAndTrailingSpacesAndZeroes = trimLeadingAndTrailingSpacesAndZeroes; TrailingSeparatorPolicy = trailingSeparatorPolicy; @@ -113,15 +113,15 @@ public X12ValidationSettings(bool validateCharacterSet, bool checkDuplicateInter /// Gets or sets the value indicating whether to Whether to validate /// EDI types. /// - [JsonProperty(PropertyName = "validateEdiTypes")] - public bool ValidateEdiTypes { get; set; } + [JsonProperty(PropertyName = "validateEDITypes")] + public bool ValidateEDITypes { get; set; } /// /// Gets or sets the value indicating whether to Whether to validate /// XSD types. /// - [JsonProperty(PropertyName = "validateXsdTypes")] - public bool ValidateXsdTypes { get; set; } + [JsonProperty(PropertyName = "validateXSDTypes")] + public bool ValidateXSDTypes { get; set; } /// /// Gets or sets the value indicating whether to allow leading and diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/SdkInfo_LogicManagementClient.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/SdkInfo_LogicManagementClient.cs index fc7aeb9d7572..18116d24911a 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/SdkInfo_LogicManagementClient.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/SdkInfo_LogicManagementClient.cs @@ -19,41 +19,35 @@ public static IEnumerable> ApiInfo_LogicManagement { return new Tuple[] { - new Tuple("Logic", "IntegrationAccountAgreements", "2018-07-01-preview"), - new Tuple("Logic", "IntegrationAccountAssemblies", "2018-07-01-preview"), - new Tuple("Logic", "IntegrationAccountBatchConfigurations", "2018-07-01-preview"), - new Tuple("Logic", "IntegrationAccountCertificates", "2018-07-01-preview"), - new Tuple("Logic", "IntegrationAccountMaps", "2018-07-01-preview"), - new Tuple("Logic", "IntegrationAccountPartners", "2018-07-01-preview"), - new Tuple("Logic", "IntegrationAccountSchemas", "2018-07-01-preview"), - new Tuple("Logic", "IntegrationAccountSessions", "2018-07-01-preview"), - new Tuple("Logic", "IntegrationAccounts", "2018-07-01-preview"), - new Tuple("Logic", "Operations", "2018-07-01-preview"), - new Tuple("Logic", "WorkflowRunActionRepetitions", "2018-07-01-preview"), - new Tuple("Logic", "WorkflowRunActionRepetitionsRequestHistories", "2018-07-01-preview"), - new Tuple("Logic", "WorkflowRunActionRequestHistories", "2018-07-01-preview"), - new Tuple("Logic", "WorkflowRunActionScopeRepetitions", "2018-07-01-preview"), - new Tuple("Logic", "WorkflowRunActions", "2018-07-01-preview"), - new Tuple("Logic", "WorkflowRunOperations", "2018-07-01-preview"), - new Tuple("Logic", "WorkflowRuns", "2018-07-01-preview"), - new Tuple("Logic", "WorkflowTriggerHistories", "2018-07-01-preview"), - new Tuple("Logic", "WorkflowTriggers", "2018-07-01-preview"), - new Tuple("Logic", "WorkflowVersionTriggers", "2018-07-01-preview"), - new Tuple("Logic", "WorkflowVersions", "2018-07-01-preview"), - new Tuple("Logic", "Workflows", "2018-07-01-preview"), + new Tuple("Logic", "IntegrationAccountAgreements", "2019-05-01"), + new Tuple("Logic", "IntegrationAccountAssemblies", "2019-05-01"), + new Tuple("Logic", "IntegrationAccountBatchConfigurations", "2019-05-01"), + new Tuple("Logic", "IntegrationAccountCertificates", "2019-05-01"), + new Tuple("Logic", "IntegrationAccountMaps", "2019-05-01"), + new Tuple("Logic", "IntegrationAccountPartners", "2019-05-01"), + new Tuple("Logic", "IntegrationAccountSchemas", "2019-05-01"), + new Tuple("Logic", "IntegrationAccountSessions", "2019-05-01"), + new Tuple("Logic", "IntegrationAccounts", "2019-05-01"), + new Tuple("Logic", "IntegrationServiceEnvironmentManagedApiOperations", "2019-05-01"), + new Tuple("Logic", "IntegrationServiceEnvironmentManagedApis", "2019-05-01"), + new Tuple("Logic", "IntegrationServiceEnvironmentNetworkHealth", "2019-05-01"), + new Tuple("Logic", "IntegrationServiceEnvironmentSkus", "2019-05-01"), + new Tuple("Logic", "IntegrationServiceEnvironments", "2019-05-01"), + new Tuple("Logic", "Operations", "2019-05-01"), + new Tuple("Logic", "WorkflowRunActionRepetitions", "2019-05-01"), + new Tuple("Logic", "WorkflowRunActionRepetitionsRequestHistories", "2019-05-01"), + new Tuple("Logic", "WorkflowRunActionRequestHistories", "2019-05-01"), + new Tuple("Logic", "WorkflowRunActionScopeRepetitions", "2019-05-01"), + new Tuple("Logic", "WorkflowRunActions", "2019-05-01"), + new Tuple("Logic", "WorkflowRunOperations", "2019-05-01"), + new Tuple("Logic", "WorkflowRuns", "2019-05-01"), + new Tuple("Logic", "WorkflowTriggerHistories", "2019-05-01"), + new Tuple("Logic", "WorkflowTriggers", "2019-05-01"), + new Tuple("Logic", "WorkflowVersionTriggers", "2019-05-01"), + new Tuple("Logic", "WorkflowVersions", "2019-05-01"), + new Tuple("Logic", "Workflows", "2019-05-01"), }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "latest"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/logic/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\\src\\Other\\azure-sdk-for-net\\src\\SDKs"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "d8a6649b0becb3af50c79da9d4c3b7218dd641e5"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunActionRepetitionsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunActionRepetitionsOperations.cs index cd11a12135a8..a5cf92b711e1 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunActionRepetitionsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunActionRepetitionsOperations.cs @@ -71,7 +71,7 @@ internal WorkflowRunActionRepetitionsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -199,14 +199,13 @@ internal WorkflowRunActionRepetitionsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -216,10 +215,6 @@ internal WorkflowRunActionRepetitionsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -288,7 +283,7 @@ internal WorkflowRunActionRepetitionsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -422,14 +417,13 @@ internal WorkflowRunActionRepetitionsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -439,10 +433,6 @@ internal WorkflowRunActionRepetitionsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -511,7 +501,7 @@ internal WorkflowRunActionRepetitionsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -645,14 +635,13 @@ internal WorkflowRunActionRepetitionsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -662,10 +651,6 @@ internal WorkflowRunActionRepetitionsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunActionScopeRepetitionsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunActionScopeRepetitionsOperations.cs index 17cd51567d08..42a88bcfd2b9 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunActionScopeRepetitionsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunActionScopeRepetitionsOperations.cs @@ -71,7 +71,7 @@ internal WorkflowRunActionScopeRepetitionsOperations(LogicManagementClient clien /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -86,7 +86,7 @@ internal WorkflowRunActionScopeRepetitionsOperations(LogicManagementClient clien /// /// A response object containing the response body and response headers. /// - public async Task> ListWithHttpMessagesAsync(string resourceGroupName, string workflowName, string runName, string actionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string workflowName, string runName, string actionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -199,14 +199,13 @@ internal WorkflowRunActionScopeRepetitionsOperations(LogicManagementClient clien string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -216,10 +215,6 @@ internal WorkflowRunActionScopeRepetitionsOperations(LogicManagementClient clien } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -232,7 +227,7 @@ internal WorkflowRunActionScopeRepetitionsOperations(LogicManagementClient clien throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -245,7 +240,7 @@ internal WorkflowRunActionScopeRepetitionsOperations(LogicManagementClient clien _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -288,7 +283,7 @@ internal WorkflowRunActionScopeRepetitionsOperations(LogicManagementClient clien /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -422,14 +417,13 @@ internal WorkflowRunActionScopeRepetitionsOperations(LogicManagementClient clien string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -439,10 +433,6 @@ internal WorkflowRunActionScopeRepetitionsOperations(LogicManagementClient clien } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunActionScopeRepetitionsOperationsExtensions.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunActionScopeRepetitionsOperationsExtensions.cs index 360710f64fe1..1e78ae018592 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunActionScopeRepetitionsOperationsExtensions.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunActionScopeRepetitionsOperationsExtensions.cs @@ -13,6 +13,8 @@ namespace Microsoft.Azure.Management.Logic using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; + using System.Collections; + using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; @@ -39,7 +41,7 @@ public static partial class WorkflowRunActionScopeRepetitionsOperationsExtension /// /// The workflow action name. /// - public static WorkflowRunActionRepetitionDefinitionCollection List(this IWorkflowRunActionScopeRepetitionsOperations operations, string resourceGroupName, string workflowName, string runName, string actionName) + public static IEnumerable List(this IWorkflowRunActionScopeRepetitionsOperations operations, string resourceGroupName, string workflowName, string runName, string actionName) { return operations.ListAsync(resourceGroupName, workflowName, runName, actionName).GetAwaiter().GetResult(); } @@ -65,7 +67,7 @@ public static WorkflowRunActionRepetitionDefinitionCollection List(this IWorkflo /// /// The cancellation token. /// - public static async Task ListAsync(this IWorkflowRunActionScopeRepetitionsOperations operations, string resourceGroupName, string workflowName, string runName, string actionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IWorkflowRunActionScopeRepetitionsOperations operations, string resourceGroupName, string workflowName, string runName, string actionName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, workflowName, runName, actionName, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunActionsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunActionsOperations.cs index a76ac63c450b..eb9bbea3141d 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunActionsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunActionsOperations.cs @@ -72,7 +72,7 @@ internal WorkflowRunActionsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -203,14 +203,13 @@ internal WorkflowRunActionsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -220,10 +219,6 @@ internal WorkflowRunActionsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -289,7 +284,7 @@ internal WorkflowRunActionsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -417,14 +412,13 @@ internal WorkflowRunActionsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -434,10 +428,6 @@ internal WorkflowRunActionsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -503,7 +493,7 @@ internal WorkflowRunActionsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -631,14 +621,13 @@ internal WorkflowRunActionsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -648,10 +637,6 @@ internal WorkflowRunActionsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -708,7 +693,7 @@ internal WorkflowRunActionsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -804,14 +789,13 @@ internal WorkflowRunActionsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -821,10 +805,6 @@ internal WorkflowRunActionsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunOperations.cs index 321aa494a8cb..121a75ad1ac5 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunOperations.cs @@ -71,7 +71,7 @@ internal WorkflowRunOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -199,14 +199,13 @@ internal WorkflowRunOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -216,10 +215,6 @@ internal WorkflowRunOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunsOperations.cs index e960a04b58e7..f20022516e84 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowRunsOperations.cs @@ -69,7 +69,7 @@ internal WorkflowRunsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -194,14 +194,13 @@ internal WorkflowRunsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -211,10 +210,6 @@ internal WorkflowRunsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -277,7 +272,7 @@ internal WorkflowRunsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -399,14 +394,13 @@ internal WorkflowRunsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -416,10 +410,6 @@ internal WorkflowRunsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -482,7 +472,7 @@ internal WorkflowRunsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -601,14 +591,13 @@ internal WorkflowRunsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -618,10 +607,6 @@ internal WorkflowRunsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -660,7 +645,7 @@ internal WorkflowRunsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -756,14 +741,13 @@ internal WorkflowRunsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -773,10 +757,6 @@ internal WorkflowRunsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowTriggerHistoriesOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowTriggerHistoriesOperations.cs index c235d90dbbcc..e5fea62fcbd2 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowTriggerHistoriesOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowTriggerHistoriesOperations.cs @@ -72,7 +72,7 @@ internal WorkflowTriggerHistoriesOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -203,14 +203,13 @@ internal WorkflowTriggerHistoriesOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -220,10 +219,6 @@ internal WorkflowTriggerHistoriesOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -290,7 +285,7 @@ internal WorkflowTriggerHistoriesOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -418,14 +413,13 @@ internal WorkflowTriggerHistoriesOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -435,10 +429,6 @@ internal WorkflowTriggerHistoriesOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -505,7 +495,7 @@ internal WorkflowTriggerHistoriesOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -630,14 +620,13 @@ internal WorkflowTriggerHistoriesOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 202) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -647,10 +636,6 @@ internal WorkflowTriggerHistoriesOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -689,7 +674,7 @@ internal WorkflowTriggerHistoriesOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -785,14 +770,13 @@ internal WorkflowTriggerHistoriesOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -802,10 +786,6 @@ internal WorkflowTriggerHistoriesOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowTriggersOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowTriggersOperations.cs index 2203d32a6d8c..734c117ac4fb 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowTriggersOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowTriggersOperations.cs @@ -69,7 +69,7 @@ internal WorkflowTriggersOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -194,14 +194,13 @@ internal WorkflowTriggersOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -211,10 +210,6 @@ internal WorkflowTriggersOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -277,7 +272,7 @@ internal WorkflowTriggersOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -399,14 +394,13 @@ internal WorkflowTriggersOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -416,10 +410,6 @@ internal WorkflowTriggersOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -482,7 +472,7 @@ internal WorkflowTriggersOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -601,14 +591,13 @@ internal WorkflowTriggersOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -618,10 +607,6 @@ internal WorkflowTriggersOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -859,7 +844,7 @@ internal WorkflowTriggersOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -981,14 +966,13 @@ internal WorkflowTriggersOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -998,10 +982,6 @@ internal WorkflowTriggersOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -1067,7 +1047,7 @@ internal WorkflowTriggersOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1201,14 +1181,13 @@ internal WorkflowTriggersOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1218,10 +1197,6 @@ internal WorkflowTriggersOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -1266,7 +1241,7 @@ internal WorkflowTriggersOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1388,14 +1363,13 @@ internal WorkflowTriggersOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1405,10 +1379,6 @@ internal WorkflowTriggersOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -1465,7 +1435,7 @@ internal WorkflowTriggersOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1561,14 +1531,13 @@ internal WorkflowTriggersOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1578,10 +1547,6 @@ internal WorkflowTriggersOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowVersionTriggersOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowVersionTriggersOperations.cs index 5785ada9a9d7..bae366cc441d 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowVersionTriggersOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowVersionTriggersOperations.cs @@ -74,7 +74,7 @@ internal WorkflowVersionTriggersOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -209,14 +209,13 @@ internal WorkflowVersionTriggersOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -226,10 +225,6 @@ internal WorkflowVersionTriggersOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowVersionsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowVersionsOperations.cs index b38519491694..7f6a37a7e38a 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowVersionsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowVersionsOperations.cs @@ -68,7 +68,7 @@ internal WorkflowVersionsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -189,14 +189,13 @@ internal WorkflowVersionsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -206,10 +205,6 @@ internal WorkflowVersionsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -272,7 +267,7 @@ internal WorkflowVersionsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -394,14 +389,13 @@ internal WorkflowVersionsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -411,10 +405,6 @@ internal WorkflowVersionsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -471,7 +461,7 @@ internal WorkflowVersionsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -567,14 +557,13 @@ internal WorkflowVersionsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -584,10 +573,6 @@ internal WorkflowVersionsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowsOperations.cs index 3c1fbf42137a..ce55f6da1fe0 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowsOperations.cs @@ -63,7 +63,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -176,14 +176,13 @@ internal WorkflowsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -193,10 +192,6 @@ internal WorkflowsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -256,7 +251,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -375,14 +370,13 @@ internal WorkflowsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -392,10 +386,6 @@ internal WorkflowsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -455,7 +445,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -571,14 +561,13 @@ internal WorkflowsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -588,10 +577,6 @@ internal WorkflowsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -654,7 +639,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -785,14 +770,13 @@ internal WorkflowsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 201) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -802,10 +786,6 @@ internal WorkflowsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -886,7 +866,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1013,14 +993,13 @@ internal WorkflowsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1030,10 +1009,6 @@ internal WorkflowsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -1093,7 +1068,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1206,14 +1181,13 @@ internal WorkflowsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 204) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1223,10 +1197,6 @@ internal WorkflowsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -1268,7 +1238,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1381,14 +1351,13 @@ internal WorkflowsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1398,10 +1367,6 @@ internal WorkflowsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -1443,7 +1408,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1556,14 +1521,13 @@ internal WorkflowsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1573,10 +1537,6 @@ internal WorkflowsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -1621,7 +1581,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1748,14 +1708,13 @@ internal WorkflowsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1765,10 +1724,6 @@ internal WorkflowsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -1831,7 +1786,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -1958,14 +1913,13 @@ internal WorkflowsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1975,10 +1929,6 @@ internal WorkflowsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -2038,7 +1988,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -2154,14 +2104,13 @@ internal WorkflowsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -2171,10 +2120,6 @@ internal WorkflowsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -2232,12 +2177,37 @@ internal WorkflowsOperations(LogicManagementClient client) /// The workflow to move. /// /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task MoveWithHttpMessagesAsync(string resourceGroupName, string workflowName, Workflow move, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginMoveWithHttpMessagesAsync(resourceGroupName, workflowName, move, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Regenerates the callback URL access key for request triggers. + /// + /// + /// The resource group name. + /// + /// + /// The workflow name. + /// + /// + /// The access key type. + /// + /// /// Headers that will be added to request. /// /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -2249,7 +2219,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task MoveWithHttpMessagesAsync(string resourceGroupName, string workflowName, Workflow move, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task RegenerateAccessKeyWithHttpMessagesAsync(string resourceGroupName, string workflowName, RegenerateActionParameter keyType, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -2263,13 +2233,9 @@ internal WorkflowsOperations(LogicManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "workflowName"); } - if (move == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "move"); - } - if (move != null) + if (keyType == null) { - move.Validate(); + throw new ValidationException(ValidationRules.CannotBeNull, "keyType"); } if (Client.ApiVersion == null) { @@ -2284,13 +2250,13 @@ internal WorkflowsOperations(LogicManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("workflowName", workflowName); - tracingParameters.Add("move", move); + tracingParameters.Add("keyType", keyType); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Move", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "RegenerateAccessKey", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/move").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/regenerateAccessKey").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{workflowName}", System.Uri.EscapeDataString(workflowName)); @@ -2337,9 +2303,9 @@ internal WorkflowsOperations(LogicManagementClient client) // Serialize Request string _requestContent = null; - if(move != null) + if(keyType != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(move, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(keyType, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } @@ -2363,16 +2329,15 @@ internal WorkflowsOperations(LogicManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -2382,10 +2347,6 @@ internal WorkflowsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -2413,7 +2374,7 @@ internal WorkflowsOperations(LogicManagementClient client) } /// - /// Regenerates the callback URL access key for request triggers. + /// Validates the workflow. /// /// /// The resource group name. @@ -2421,8 +2382,8 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The workflow name. /// - /// - /// The access key type. + /// + /// The workflow. /// /// /// Headers that will be added to request. @@ -2430,7 +2391,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -2442,7 +2403,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task RegenerateAccessKeyWithHttpMessagesAsync(string resourceGroupName, string workflowName, RegenerateActionParameter keyType, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task ValidateByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string workflowName, Workflow validate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -2456,9 +2417,13 @@ internal WorkflowsOperations(LogicManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "workflowName"); } - if (keyType == null) + if (validate == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "keyType"); + throw new ValidationException(ValidationRules.CannotBeNull, "validate"); + } + if (validate != null) + { + validate.Validate(); } if (Client.ApiVersion == null) { @@ -2473,13 +2438,13 @@ internal WorkflowsOperations(LogicManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("workflowName", workflowName); - tracingParameters.Add("keyType", keyType); + tracingParameters.Add("validate", validate); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "RegenerateAccessKey", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ValidateByResourceGroup", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/regenerateAccessKey").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/validate").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{workflowName}", System.Uri.EscapeDataString(workflowName)); @@ -2526,9 +2491,9 @@ internal WorkflowsOperations(LogicManagementClient client) // Serialize Request string _requestContent = null; - if(keyType != null) + if(validate != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(keyType, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(validate, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } @@ -2554,14 +2519,13 @@ internal WorkflowsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -2571,10 +2535,6 @@ internal WorkflowsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -2602,24 +2562,24 @@ internal WorkflowsOperations(LogicManagementClient client) } /// - /// Validates the workflow. + /// Validates the workflow definition. /// /// /// The resource group name. /// + /// + /// The workflow location. + /// /// /// The workflow name. /// - /// - /// The workflow. - /// /// /// Headers that will be added to request. /// /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -2631,7 +2591,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task ValidateByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string workflowName, Workflow validate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task ValidateByLocationWithHttpMessagesAsync(string resourceGroupName, string location, string workflowName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -2641,17 +2601,13 @@ internal WorkflowsOperations(LogicManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (workflowName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "workflowName"); - } - if (validate == null) + if (location == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "validate"); + throw new ValidationException(ValidationRules.CannotBeNull, "location"); } - if (validate != null) + if (workflowName == null) { - validate.Validate(); + throw new ValidationException(ValidationRules.CannotBeNull, "workflowName"); } if (Client.ApiVersion == null) { @@ -2665,16 +2621,17 @@ internal WorkflowsOperations(LogicManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("location", location); tracingParameters.Add("workflowName", workflowName); - tracingParameters.Add("validate", validate); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ValidateByResourceGroup", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ValidateByLocation", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/validate").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/locations/{location}/workflows/{workflowName}/validate").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); _url = _url.Replace("{workflowName}", System.Uri.EscapeDataString(workflowName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -2719,12 +2676,6 @@ internal WorkflowsOperations(LogicManagementClient client) // Serialize Request string _requestContent = null; - if(validate != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(validate, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials if (Client.Credentials != null) { @@ -2747,14 +2698,13 @@ internal WorkflowsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -2764,10 +2714,6 @@ internal WorkflowsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -2795,19 +2741,16 @@ internal WorkflowsOperations(LogicManagementClient client) } /// - /// Validates the workflow definition. + /// Moves an existing workflow. /// /// /// The resource group name. /// - /// - /// The workflow location. - /// /// /// The workflow name. /// - /// - /// The workflow definition. + /// + /// The workflow to move. /// /// /// Headers that will be added to request. @@ -2815,7 +2758,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -2827,7 +2770,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task ValidateByLocationWithHttpMessagesAsync(string resourceGroupName, string location, string workflowName, Workflow workflow, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginMoveWithHttpMessagesAsync(string resourceGroupName, string workflowName, Workflow move, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -2837,25 +2780,21 @@ internal WorkflowsOperations(LogicManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (location == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "location"); - } if (workflowName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "workflowName"); } - if (Client.ApiVersion == null) + if (move == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "move"); } - if (workflow == null) + if (move != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "workflow"); + move.Validate(); } - if (workflow != null) + if (Client.ApiVersion == null) { - workflow.Validate(); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -2865,18 +2804,16 @@ internal WorkflowsOperations(LogicManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("location", location); tracingParameters.Add("workflowName", workflowName); - tracingParameters.Add("workflow", workflow); + tracingParameters.Add("move", move); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ValidateByLocation", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginMove", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/locations/{location}/workflows/{workflowName}/validate").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/move").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); _url = _url.Replace("{workflowName}", System.Uri.EscapeDataString(workflowName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -2921,9 +2858,9 @@ internal WorkflowsOperations(LogicManagementClient client) // Serialize Request string _requestContent = null; - if(workflow != null) + if(move != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(workflow, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(move, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } @@ -2947,16 +2884,15 @@ internal WorkflowsOperations(LogicManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -2966,10 +2902,6 @@ internal WorkflowsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -3008,7 +2940,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -3104,14 +3036,13 @@ internal WorkflowsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -3121,10 +3052,6 @@ internal WorkflowsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); @@ -3181,7 +3108,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -3277,14 +3204,13 @@ internal WorkflowsOperations(LogicManagementClient client) string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -3294,10 +3220,6 @@ internal WorkflowsOperations(LogicManagementClient client) } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowsOperationsExtensions.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowsOperationsExtensions.cs index 44ee7a70bcbd..8c67669dd1d8 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowsOperationsExtensions.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowsOperationsExtensions.cs @@ -615,12 +615,9 @@ public static void ValidateByResourceGroup(this IWorkflowsOperations operations, /// /// The workflow name. /// - /// - /// The workflow definition. - /// - public static void ValidateByLocation(this IWorkflowsOperations operations, string resourceGroupName, string location, string workflowName, Workflow workflow) + public static void ValidateByLocation(this IWorkflowsOperations operations, string resourceGroupName, string location, string workflowName) { - operations.ValidateByLocationAsync(resourceGroupName, location, workflowName, workflow).GetAwaiter().GetResult(); + operations.ValidateByLocationAsync(resourceGroupName, location, workflowName).GetAwaiter().GetResult(); } /// @@ -638,15 +635,55 @@ public static void ValidateByLocation(this IWorkflowsOperations operations, stri /// /// The workflow name. /// - /// - /// The workflow definition. + /// + /// The cancellation token. + /// + public static async Task ValidateByLocationAsync(this IWorkflowsOperations operations, string resourceGroupName, string location, string workflowName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.ValidateByLocationWithHttpMessagesAsync(resourceGroupName, location, workflowName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Moves an existing workflow. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The workflow name. + /// + /// + /// The workflow to move. + /// + public static void BeginMove(this IWorkflowsOperations operations, string resourceGroupName, string workflowName, Workflow move) + { + operations.BeginMoveAsync(resourceGroupName, workflowName, move).GetAwaiter().GetResult(); + } + + /// + /// Moves an existing workflow. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The workflow name. + /// + /// + /// The workflow to move. /// /// /// The cancellation token. /// - public static async Task ValidateByLocationAsync(this IWorkflowsOperations operations, string resourceGroupName, string location, string workflowName, Workflow workflow, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginMoveAsync(this IWorkflowsOperations operations, string resourceGroupName, string workflowName, Workflow move, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.ValidateByLocationWithHttpMessagesAsync(resourceGroupName, location, workflowName, workflow, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginMoveWithHttpMessagesAsync(resourceGroupName, workflowName, move, null, cancellationToken).ConfigureAwait(false)).Dispose(); } ///