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 e560f03cd655..73ec1a517f04 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountMapsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationAccountMapsOperations.cs @@ -81,7 +81,10 @@ public partial interface IIntegrationAccountMapsOperations /// Task> GetWithHttpMessagesAsync(string resourceGroupName, string integrationAccountName, string mapName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Creates or updates an integration account map. + /// Creates or updates an integration account map. If the map is larger + /// than 4 MB, you need to store the map in an Azure blob and use the + /// blob's Shared Access Signature (SAS) URL as the 'contentLink' + /// property value. /// /// /// The resource group name. diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentManagedApisOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentManagedApisOperations.cs index 2026efc0138c..8e7550f283b2 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentManagedApisOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IIntegrationServiceEnvironmentManagedApisOperations.cs @@ -47,7 +47,7 @@ public partial interface IIntegrationServiceEnvironmentManagedApisOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the integration service environment managed Api. /// @@ -75,7 +75,7 @@ public partial interface IIntegrationServiceEnvironmentManagedApisOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Puts the integration service environment managed Api. /// @@ -88,6 +88,9 @@ public partial interface IIntegrationServiceEnvironmentManagedApisOperations /// /// The api name. /// + /// + /// The integration service environment managed api. + /// /// /// The headers that will be added to request. /// @@ -103,7 +106,7 @@ public partial interface IIntegrationServiceEnvironmentManagedApisOperations /// /// Thrown when a required parameter is null /// - Task> PutWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> PutWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, IntegrationServiceEnvironmentManagedApi integrationServiceEnvironmentManagedApi, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes the integration service environment managed Api. /// @@ -141,6 +144,9 @@ public partial interface IIntegrationServiceEnvironmentManagedApisOperations /// /// The api name. /// + /// + /// The integration service environment managed api. + /// /// /// The headers that will be added to request. /// @@ -156,7 +162,7 @@ public partial interface IIntegrationServiceEnvironmentManagedApisOperations /// /// Thrown when a required parameter is null /// - Task> BeginPutWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginPutWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, IntegrationServiceEnvironmentManagedApi integrationServiceEnvironmentManagedApi, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes the integration service environment managed Api. /// @@ -203,6 +209,6 @@ public partial interface IIntegrationServiceEnvironmentManagedApisOperations /// /// Thrown when a required parameter is null /// - Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } 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 0daf9dc43e2f..025ca103811f 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowTriggersOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowTriggersOperations.cs @@ -123,13 +123,13 @@ public partial interface IWorkflowTriggersOperations /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// /// Thrown when a required parameter is null /// - Task> RunWithHttpMessagesAsync(string resourceGroupName, string workflowName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task RunWithHttpMessagesAsync(string resourceGroupName, string workflowName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get the trigger schema as JSON. /// 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 aea8bbc88cf0..99b5ced22ad2 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IWorkflowsOperations.cs @@ -133,9 +133,6 @@ public partial interface IWorkflowsOperations /// /// The workflow name. /// - /// - /// The workflow. - /// /// /// The headers that will be added to request. /// @@ -151,7 +148,7 @@ public partial interface IWorkflowsOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string workflowName, Workflow workflow, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string workflowName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a workflow. /// @@ -323,7 +320,7 @@ public partial interface IWorkflowsOperations /// /// Thrown when a required parameter is null /// - Task MoveWithHttpMessagesAsync(string resourceGroupName, string workflowName, Workflow move, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task MoveWithHttpMessagesAsync(string resourceGroupName, string workflowName, WorkflowReference move, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Regenerates the callback URL access key for request triggers. /// @@ -386,8 +383,8 @@ public partial interface IWorkflowsOperations /// /// The workflow name. /// - /// - /// The workflow definition. + /// + /// The workflow. /// /// /// The headers that will be added to request. @@ -401,7 +398,7 @@ public partial interface IWorkflowsOperations /// /// 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 ValidateByLocationWithHttpMessagesAsync(string resourceGroupName, string location, string workflowName, Workflow validate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Moves an existing workflow. /// @@ -426,7 +423,7 @@ public partial interface IWorkflowsOperations /// /// Thrown when a required parameter is null /// - Task BeginMoveWithHttpMessagesAsync(string resourceGroupName, string workflowName, Workflow move, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginMoveWithHttpMessagesAsync(string resourceGroupName, string workflowName, WorkflowReference move, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of workflows by subscription. /// 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 ea53f52adc83..abd01bbf2a46 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountMapsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountMapsOperations.cs @@ -455,7 +455,9 @@ internal IntegrationAccountMapsOperations(LogicManagementClient client) } /// - /// Creates or updates an integration account map. + /// Creates or updates an integration account map. If the map is larger than 4 + /// MB, you need to store the map in an Azure blob and use the blob's Shared + /// Access Signature (SAS) URL as the 'contentLink' property value. /// /// /// The resource group name. diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountMapsOperationsExtensions.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountMapsOperationsExtensions.cs index 7dfa4d1b03a8..22fb6200300a 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountMapsOperationsExtensions.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationAccountMapsOperationsExtensions.cs @@ -115,7 +115,9 @@ public static IntegrationAccountMap Get(this IIntegrationAccountMapsOperations o } /// - /// Creates or updates an integration account map. + /// Creates or updates an integration account map. If the map is larger than 4 + /// MB, you need to store the map in an Azure blob and use the blob's Shared + /// Access Signature (SAS) URL as the 'contentLink' property value. /// /// /// The operations group for this extension method. @@ -138,7 +140,9 @@ public static IntegrationAccountMap CreateOrUpdate(this IIntegrationAccountMapsO } /// - /// Creates or updates an integration account map. + /// Creates or updates an integration account map. If the map is larger than 4 + /// MB, you need to store the map in an Azure blob and use the blob's Shared + /// Access Signature (SAS) URL as the 'contentLink' property value. /// /// /// The operations group for this extension method. diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApisOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApisOperations.cs index 7ca5bdcd0224..5b59bf6f8363 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApisOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApisOperations.cs @@ -80,7 +80,7 @@ internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClien /// /// 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)) + public async Task>> ListWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -209,7 +209,7 @@ internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClien 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")) @@ -222,7 +222,7 @@ internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClien _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) { @@ -274,7 +274,7 @@ internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClien /// /// 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)) + public async Task> GetWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -409,7 +409,7 @@ internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClien 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")) @@ -422,7 +422,7 @@ internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClien _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) { @@ -453,16 +453,19 @@ internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClien /// /// The api name. /// + /// + /// The integration service environment managed api. + /// /// /// 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)) + public async Task> PutWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, IntegrationServiceEnvironmentManagedApi integrationServiceEnvironmentManagedApi, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginPutWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, apiName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginPutWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, apiName, integrationServiceEnvironmentManagedApi, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -503,6 +506,9 @@ internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClien /// /// The api name. /// + /// + /// The integration service environment managed api. + /// /// /// Headers that will be added to request. /// @@ -524,7 +530,7 @@ internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClien /// /// 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)) + public async Task> BeginPutWithHttpMessagesAsync(string resourceGroup, string integrationServiceEnvironmentName, string apiName, IntegrationServiceEnvironmentManagedApi integrationServiceEnvironmentManagedApi, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -546,6 +552,10 @@ internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClien { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (integrationServiceEnvironmentManagedApi == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "integrationServiceEnvironmentManagedApi"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -556,6 +566,7 @@ internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClien tracingParameters.Add("resourceGroup", resourceGroup); tracingParameters.Add("integrationServiceEnvironmentName", integrationServiceEnvironmentName); tracingParameters.Add("apiName", apiName); + tracingParameters.Add("integrationServiceEnvironmentManagedApi", integrationServiceEnvironmentManagedApi); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginPut", tracingParameters); } @@ -609,6 +620,12 @@ internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClien // Serialize Request string _requestContent = null; + if(integrationServiceEnvironmentManagedApi != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(integrationServiceEnvironmentManagedApi, 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) { @@ -659,7 +676,7 @@ internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClien 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")) @@ -672,7 +689,7 @@ internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClien _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) { @@ -690,7 +707,7 @@ internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClien _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) { @@ -915,7 +932,7 @@ internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClien /// /// A response object containing the response body and response headers. /// - public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -1024,7 +1041,7 @@ internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClien 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")) @@ -1037,7 +1054,7 @@ internal IntegrationServiceEnvironmentManagedApisOperations(LogicManagementClien _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) { diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApisOperationsExtensions.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApisOperationsExtensions.cs index 5e499ea16c5d..390a4e2325e7 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApisOperationsExtensions.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentManagedApisOperationsExtensions.cs @@ -33,7 +33,7 @@ public static partial class IntegrationServiceEnvironmentManagedApisOperationsEx /// /// The integration service environment name. /// - public static IPage List(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName) + public static IPage List(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName) { return operations.ListAsync(resourceGroup, integrationServiceEnvironmentName).GetAwaiter().GetResult(); } @@ -53,7 +53,7 @@ public static IPage List(this IIntegrationServiceEnvironmentManagedA /// /// The cancellation token. /// - public static async Task> ListAsync(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, CancellationToken cancellationToken = default(CancellationToken)) + 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)) { @@ -76,7 +76,7 @@ public static IPage List(this IIntegrationServiceEnvironmentManagedA /// /// The api name. /// - public static ManagedApi Get(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName) + public static IntegrationServiceEnvironmentManagedApi Get(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName) { return operations.GetAsync(resourceGroup, integrationServiceEnvironmentName, apiName).GetAwaiter().GetResult(); } @@ -99,7 +99,7 @@ public static ManagedApi Get(this IIntegrationServiceEnvironmentManagedApisOpera /// /// The cancellation token. /// - public static async Task GetAsync(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName, CancellationToken cancellationToken = default(CancellationToken)) + 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)) { @@ -122,9 +122,12 @@ public static ManagedApi Get(this IIntegrationServiceEnvironmentManagedApisOpera /// /// The api name. /// - public static ManagedApi Put(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName) + /// + /// The integration service environment managed api. + /// + public static IntegrationServiceEnvironmentManagedApi Put(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName, IntegrationServiceEnvironmentManagedApi integrationServiceEnvironmentManagedApi) { - return operations.PutAsync(resourceGroup, integrationServiceEnvironmentName, apiName).GetAwaiter().GetResult(); + return operations.PutAsync(resourceGroup, integrationServiceEnvironmentName, apiName, integrationServiceEnvironmentManagedApi).GetAwaiter().GetResult(); } /// @@ -142,12 +145,15 @@ public static ManagedApi Put(this IIntegrationServiceEnvironmentManagedApisOpera /// /// The api name. /// + /// + /// The integration service environment managed api. + /// /// /// The cancellation token. /// - public static async Task PutAsync(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PutAsync(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName, IntegrationServiceEnvironmentManagedApi integrationServiceEnvironmentManagedApi, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.PutWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, apiName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.PutWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, apiName, integrationServiceEnvironmentManagedApi, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -211,9 +217,12 @@ public static void Delete(this IIntegrationServiceEnvironmentManagedApisOperatio /// /// The api name. /// - public static ManagedApi BeginPut(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName) + /// + /// The integration service environment managed api. + /// + public static IntegrationServiceEnvironmentManagedApi BeginPut(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName, IntegrationServiceEnvironmentManagedApi integrationServiceEnvironmentManagedApi) { - return operations.BeginPutAsync(resourceGroup, integrationServiceEnvironmentName, apiName).GetAwaiter().GetResult(); + return operations.BeginPutAsync(resourceGroup, integrationServiceEnvironmentName, apiName, integrationServiceEnvironmentManagedApi).GetAwaiter().GetResult(); } /// @@ -231,12 +240,15 @@ public static ManagedApi BeginPut(this IIntegrationServiceEnvironmentManagedApis /// /// The api name. /// + /// + /// The integration service environment managed api. + /// /// /// The cancellation token. /// - public static async Task BeginPutAsync(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginPutAsync(this IIntegrationServiceEnvironmentManagedApisOperations operations, string resourceGroup, string integrationServiceEnvironmentName, string apiName, IntegrationServiceEnvironmentManagedApi integrationServiceEnvironmentManagedApi, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginPutWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, apiName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginPutWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, apiName, integrationServiceEnvironmentManagedApi, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -294,7 +306,7 @@ public static void BeginDelete(this IIntegrationServiceEnvironmentManagedApisOpe /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListNext(this IIntegrationServiceEnvironmentManagedApisOperations operations, string nextPageLink) + public static IPage ListNext(this IIntegrationServiceEnvironmentManagedApisOperations operations, string nextPageLink) { return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); } @@ -311,7 +323,7 @@ public static IPage ListNext(this IIntegrationServiceEnvironmentMana /// /// The cancellation token. /// - public static async Task> ListNextAsync(this IIntegrationServiceEnvironmentManagedApisOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + 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)) { diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentsOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentsOperations.cs index 04c202ca93b7..3c3119da6ccc 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/IntegrationServiceEnvironmentsOperations.cs @@ -1057,6 +1057,10 @@ internal IntegrationServiceEnvironmentsOperations(LogicManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "integrationServiceEnvironment"); } + if (integrationServiceEnvironment != null) + { + integrationServiceEnvironment.Validate(); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; 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 index e2305c004dc0..3decd34be30e 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceMetadata.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceMetadata.cs @@ -46,7 +46,8 @@ public ApiResourceMetadata() /// values include: 'NotSpecified', 'Accepted', 'Running', 'Ready', /// 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', /// 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', - /// 'Unregistering', 'Unregistered', 'Completed' + /// 'Unregistering', 'Unregistered', 'Completed', 'Renewing', + /// 'Pending', 'Waiting', 'InProgress' /// 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)) @@ -124,7 +125,8 @@ public ApiResourceMetadata() /// 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', /// 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', /// 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', - /// 'Unregistering', 'Unregistered', 'Completed' + /// 'Unregistering', 'Unregistered', 'Completed', 'Renewing', + /// 'Pending', 'Waiting', 'InProgress' /// [JsonProperty(PropertyName = "provisioningState")] public string ProvisioningState { 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 index 5bf4089f5644..b0ba4b1c5d54 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceProperties.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ApiResourceProperties.cs @@ -49,7 +49,8 @@ public ApiResourceProperties() /// values include: 'NotSpecified', 'Accepted', 'Running', 'Ready', /// 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', /// 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', - /// 'Unregistering', 'Unregistered', 'Completed' + /// 'Unregistering', 'Unregistered', 'Completed', 'Renewing', + /// 'Pending', 'Waiting', 'InProgress' /// 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)) @@ -76,64 +77,64 @@ public ApiResourceProperties() partial void CustomInit(); /// - /// Gets or sets the name + /// Gets the name /// [JsonProperty(PropertyName = "name")] - public string Name { get; set; } + public string Name { get; private set; } /// - /// Gets or sets the connection parameters. + /// Gets the connection parameters. /// [JsonProperty(PropertyName = "connectionParameters")] - public IDictionary ConnectionParameters { get; set; } + public IDictionary ConnectionParameters { get; private set; } /// - /// Gets or sets the metadata. + /// Gets the metadata. /// [JsonProperty(PropertyName = "metadata")] - public ApiResourceMetadata Metadata { get; set; } + public ApiResourceMetadata Metadata { get; private set; } /// - /// Gets or sets the runtime urls. + /// Gets the runtime urls. /// [JsonProperty(PropertyName = "runtimeUrls")] - public IList RuntimeUrls { get; set; } + public IList RuntimeUrls { get; private set; } /// - /// Gets or sets the api general information. + /// Gets the api general information. /// [JsonProperty(PropertyName = "generalInformation")] - public ApiResourceGeneralInformation GeneralInformation { get; set; } + public ApiResourceGeneralInformation GeneralInformation { get; private set; } /// - /// Gets or sets the capabilities. + /// Gets the capabilities. /// [JsonProperty(PropertyName = "capabilities")] - public IList Capabilities { get; set; } + public IList Capabilities { get; private set; } /// - /// Gets or sets the backend service. + /// Gets the backend service. /// [JsonProperty(PropertyName = "backendService")] - public ApiResourceBackendService BackendService { get; set; } + public ApiResourceBackendService BackendService { get; private set; } /// - /// Gets or sets the policies for the API. + /// Gets the policies for the API. /// [JsonProperty(PropertyName = "policies")] - public ApiResourcePolicies Policies { get; set; } + public ApiResourcePolicies Policies { get; private set; } /// - /// Gets or sets the API definition. + /// Gets the API definition. /// [JsonProperty(PropertyName = "apiDefinitionUrl")] - public string ApiDefinitionUrl { get; set; } + public string ApiDefinitionUrl { get; private set; } /// - /// Gets or sets the api definitions. + /// Gets the api definitions. /// [JsonProperty(PropertyName = "apiDefinitions")] - public ApiResourceDefinitions ApiDefinitions { get; set; } + public ApiResourceDefinitions ApiDefinitions { get; private set; } /// /// Gets or sets the integration service environment reference. @@ -142,21 +143,22 @@ public ApiResourceProperties() public ResourceReference IntegrationServiceEnvironment { get; set; } /// - /// Gets or sets the provisioning state. Possible values include: + /// Gets the provisioning state. Possible values include: /// 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', /// 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', /// 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', - /// 'Unregistering', 'Unregistered', 'Completed' + /// 'Unregistering', 'Unregistered', 'Completed', 'Renewing', + /// 'Pending', 'Waiting', 'InProgress' /// [JsonProperty(PropertyName = "provisioningState")] - public string ProvisioningState { get; set; } + public string ProvisioningState { get; private set; } /// - /// Gets or sets the category. Possible values include: 'NotSpecified', + /// Gets the category. Possible values include: 'NotSpecified', /// 'Enterprise', 'Standard', 'Premium' /// [JsonProperty(PropertyName = "category")] - public string Category { get; set; } + public string Category { get; private set; } } } diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ContentLink.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ContentLink.cs index 3a238df44a3c..601c8652debe 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ContentLink.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ContentLink.cs @@ -56,28 +56,28 @@ public ContentLink() public string Uri { get; set; } /// - /// Gets or sets the content version. + /// Gets the content version. /// [JsonProperty(PropertyName = "contentVersion")] - public string ContentVersion { get; set; } + public string ContentVersion { get; private set; } /// - /// Gets or sets the content size. + /// Gets the content size. /// [JsonProperty(PropertyName = "contentSize")] - public long? ContentSize { get; set; } + public long? ContentSize { get; private set; } /// - /// Gets or sets the content hash. + /// Gets the content hash. /// [JsonProperty(PropertyName = "contentHash")] - public ContentHash ContentHash { get; set; } + public ContentHash ContentHash { get; private set; } /// - /// Gets or sets the metadata. + /// Gets the metadata. /// [JsonProperty(PropertyName = "metadata")] - public object Metadata { get; set; } + public object Metadata { get; private set; } } } diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/FlowAccessControlConfiguration.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/FlowAccessControlConfiguration.cs new file mode 100644 index 000000000000..6afa2772e651 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/FlowAccessControlConfiguration.cs @@ -0,0 +1,84 @@ +// +// 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 access control configuration. + /// + public partial class FlowAccessControlConfiguration + { + /// + /// Initializes a new instance of the FlowAccessControlConfiguration + /// class. + /// + public FlowAccessControlConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FlowAccessControlConfiguration + /// class. + /// + /// The access control configuration for + /// invoking workflow triggers. + /// The access control configuration for + /// accessing workflow run contents. + /// The access control configuration for workflow + /// actions. + /// The access control configuration + /// for workflow management. + public FlowAccessControlConfiguration(FlowAccessControlConfigurationPolicy triggers = default(FlowAccessControlConfigurationPolicy), FlowAccessControlConfigurationPolicy contents = default(FlowAccessControlConfigurationPolicy), FlowAccessControlConfigurationPolicy actions = default(FlowAccessControlConfigurationPolicy), FlowAccessControlConfigurationPolicy workflowManagement = default(FlowAccessControlConfigurationPolicy)) + { + Triggers = triggers; + Contents = contents; + Actions = actions; + WorkflowManagement = workflowManagement; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the access control configuration for invoking workflow + /// triggers. + /// + [JsonProperty(PropertyName = "triggers")] + public FlowAccessControlConfigurationPolicy Triggers { get; set; } + + /// + /// Gets or sets the access control configuration for accessing + /// workflow run contents. + /// + [JsonProperty(PropertyName = "contents")] + public FlowAccessControlConfigurationPolicy Contents { get; set; } + + /// + /// Gets or sets the access control configuration for workflow actions. + /// + [JsonProperty(PropertyName = "actions")] + public FlowAccessControlConfigurationPolicy Actions { get; set; } + + /// + /// Gets or sets the access control configuration for workflow + /// management. + /// + [JsonProperty(PropertyName = "workflowManagement")] + public FlowAccessControlConfigurationPolicy WorkflowManagement { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/FlowAccessControlConfigurationPolicy.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/FlowAccessControlConfigurationPolicy.cs new file mode 100644 index 000000000000..62801cd8b822 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/FlowAccessControlConfigurationPolicy.cs @@ -0,0 +1,65 @@ +// +// 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 access control configuration policy. + /// + public partial class FlowAccessControlConfigurationPolicy + { + /// + /// Initializes a new instance of the + /// FlowAccessControlConfigurationPolicy class. + /// + public FlowAccessControlConfigurationPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// FlowAccessControlConfigurationPolicy class. + /// + /// The allowed caller IP + /// address ranges. + /// The authentication + /// policies for workflow. + public FlowAccessControlConfigurationPolicy(IList allowedCallerIpAddresses = default(IList), OpenAuthenticationAccessPolicies openAuthenticationPolicies = default(OpenAuthenticationAccessPolicies)) + { + AllowedCallerIpAddresses = allowedCallerIpAddresses; + OpenAuthenticationPolicies = openAuthenticationPolicies; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the allowed caller IP address ranges. + /// + [JsonProperty(PropertyName = "allowedCallerIpAddresses")] + public IList AllowedCallerIpAddresses { get; set; } + + /// + /// Gets or sets the authentication policies for workflow. + /// + [JsonProperty(PropertyName = "openAuthenticationPolicies")] + public OpenAuthenticationAccessPolicies OpenAuthenticationPolicies { 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 0406ec7d4ca4..232c29daa1cc 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 @@ -39,18 +39,16 @@ 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), IntegrationServiceEnvironment integrationServiceEnvironment = default(IntegrationServiceEnvironment), string state = default(string), 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), ResourceReference integrationServiceEnvironment = default(ResourceReference), string state = default(string), IntegrationAccountSku sku = default(IntegrationAccountSku)) : base(id, name, type, location, tags) { IntegrationServiceEnvironment = integrationServiceEnvironment; - Properties = properties; State = state; Sku = sku; CustomInit(); @@ -61,18 +59,11 @@ public IntegrationAccount() /// partial void CustomInit(); - - /// - /// Gets or sets the integration account properties. - /// - [JsonProperty(PropertyName = "properties")] - public object Properties { get; set; } - /// /// Gets or sets the integration service environment. /// [JsonProperty(PropertyName = "properties.integrationServiceEnvironment")] - public IntegrationServiceEnvironment IntegrationServiceEnvironment { get; set; } + public ResourceReference IntegrationServiceEnvironment { get; set; } /// /// Gets or sets the workflow state. Possible values include: diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmenEncryptionConfiguration.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmenEncryptionConfiguration.cs new file mode 100644 index 000000000000..4546988fcf94 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmenEncryptionConfiguration.cs @@ -0,0 +1,54 @@ +// +// 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 encryption configuration for the integration service environment. + /// + public partial class IntegrationServiceEnvironmenEncryptionConfiguration + { + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmenEncryptionConfiguration class. + /// + public IntegrationServiceEnvironmenEncryptionConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmenEncryptionConfiguration class. + /// + /// The encryption key + /// reference. + public IntegrationServiceEnvironmenEncryptionConfiguration(IntegrationServiceEnvironmenEncryptionKeyReference encryptionKeyReference = default(IntegrationServiceEnvironmenEncryptionKeyReference)) + { + EncryptionKeyReference = encryptionKeyReference; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the encryption key reference. + /// + [JsonProperty(PropertyName = "encryptionKeyReference")] + public IntegrationServiceEnvironmenEncryptionKeyReference EncryptionKeyReference { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmenEncryptionKeyReference.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmenEncryptionKeyReference.cs new file mode 100644 index 000000000000..53399e099080 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmenEncryptionKeyReference.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.Linq; + + /// + /// The encryption key details for the integration service environment. + /// + public partial class IntegrationServiceEnvironmenEncryptionKeyReference + { + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmenEncryptionKeyReference class. + /// + public IntegrationServiceEnvironmenEncryptionKeyReference() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmenEncryptionKeyReference class. + /// + /// The key vault reference. + /// Gets the key name in the Key Vault. + /// Gets the version of the key specified in + /// the keyName property. + public IntegrationServiceEnvironmenEncryptionKeyReference(ResourceReference keyVault = default(ResourceReference), string keyName = default(string), string keyVersion = default(string)) + { + KeyVault = keyVault; + KeyName = keyName; + KeyVersion = keyVersion; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the key vault reference. + /// + [JsonProperty(PropertyName = "keyVault")] + public ResourceReference KeyVault { get; set; } + + /// + /// Gets the key name in the Key Vault. + /// + [JsonProperty(PropertyName = "keyName")] + public string KeyName { get; set; } + + /// + /// Gets the version of the key specified in the keyName property. + /// + [JsonProperty(PropertyName = "keyVersion")] + public string KeyVersion { get; set; } + + } +} 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 index 92db999876cd..7f655c912ca6 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironment.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironment.cs @@ -41,11 +41,12 @@ public IntegrationServiceEnvironment() /// 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)) + 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), ManagedServiceIdentity identity = default(ManagedServiceIdentity)) : base(id, name, type, location, tags) { Properties = properties; Sku = sku; + Identity = identity; CustomInit(); } @@ -66,5 +67,23 @@ public IntegrationServiceEnvironment() [JsonProperty(PropertyName = "sku")] public IntegrationServiceEnvironmentSku Sku { get; set; } + /// + /// + [JsonProperty(PropertyName = "identity")] + public ManagedServiceIdentity Identity { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Identity != null) + { + Identity.Validate(); + } + } } } diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentManagedApi.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentManagedApi.cs new file mode 100644 index 000000000000..f9c70696e62f --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentManagedApi.cs @@ -0,0 +1,186 @@ +// +// 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 Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The integration service environment managed api. + /// + [Rest.Serialization.JsonTransformation] + public partial class IntegrationServiceEnvironmentManagedApi : Resource + { + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentManagedApi class. + /// + public IntegrationServiceEnvironmentManagedApi() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentManagedApi class. + /// + /// The resource id. + /// Gets the resource name. + /// Gets the resource type. + /// The resource location. + /// The resource tags. + /// 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', 'Renewing', + /// 'Pending', 'Waiting', 'InProgress' + /// The category. Possible values include: + /// 'NotSpecified', 'Enterprise', 'Standard', 'Premium' + /// The integration service + /// environment managed api deployment parameters. + public IntegrationServiceEnvironmentManagedApi(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string integrationServiceEnvironmentManagedApiName = 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), IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters = default(IntegrationServiceEnvironmentManagedApiDeploymentParameters)) + : base(id, name, type, location, tags) + { + IntegrationServiceEnvironmentManagedApiName = integrationServiceEnvironmentManagedApiName; + ConnectionParameters = connectionParameters; + Metadata = metadata; + RuntimeUrls = runtimeUrls; + GeneralInformation = generalInformation; + Capabilities = capabilities; + BackendService = backendService; + Policies = policies; + ApiDefinitionUrl = apiDefinitionUrl; + ApiDefinitions = apiDefinitions; + IntegrationServiceEnvironment = integrationServiceEnvironment; + ProvisioningState = provisioningState; + Category = category; + DeploymentParameters = deploymentParameters; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the name + /// + [JsonProperty(PropertyName = "properties.name")] + public string IntegrationServiceEnvironmentManagedApiName { get; private set; } + + /// + /// Gets the connection parameters. + /// + [JsonProperty(PropertyName = "properties.connectionParameters")] + public IDictionary ConnectionParameters { get; private set; } + + /// + /// Gets the metadata. + /// + [JsonProperty(PropertyName = "properties.metadata")] + public ApiResourceMetadata Metadata { get; private set; } + + /// + /// Gets the runtime urls. + /// + [JsonProperty(PropertyName = "properties.runtimeUrls")] + public IList RuntimeUrls { get; private set; } + + /// + /// Gets the api general information. + /// + [JsonProperty(PropertyName = "properties.generalInformation")] + public ApiResourceGeneralInformation GeneralInformation { get; private set; } + + /// + /// Gets the capabilities. + /// + [JsonProperty(PropertyName = "properties.capabilities")] + public IList Capabilities { get; private set; } + + /// + /// Gets the backend service. + /// + [JsonProperty(PropertyName = "properties.backendService")] + public ApiResourceBackendService BackendService { get; private set; } + + /// + /// Gets the policies for the API. + /// + [JsonProperty(PropertyName = "properties.policies")] + public ApiResourcePolicies Policies { get; private set; } + + /// + /// Gets the API definition. + /// + [JsonProperty(PropertyName = "properties.apiDefinitionUrl")] + public string ApiDefinitionUrl { get; private set; } + + /// + /// Gets the api definitions. + /// + [JsonProperty(PropertyName = "properties.apiDefinitions")] + public ApiResourceDefinitions ApiDefinitions { get; private set; } + + /// + /// Gets or sets the integration service environment reference. + /// + [JsonProperty(PropertyName = "properties.integrationServiceEnvironment")] + public ResourceReference IntegrationServiceEnvironment { get; set; } + + /// + /// Gets the provisioning state. Possible values include: + /// 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', + /// 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', + /// 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + /// 'Unregistering', 'Unregistered', 'Completed', 'Renewing', + /// 'Pending', 'Waiting', 'InProgress' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets the category. Possible values include: 'NotSpecified', + /// 'Enterprise', 'Standard', 'Premium' + /// + [JsonProperty(PropertyName = "properties.category")] + public string Category { get; private set; } + + /// + /// Gets or sets the integration service environment managed api + /// deployment parameters. + /// + [JsonProperty(PropertyName = "properties.deploymentParameters")] + public IntegrationServiceEnvironmentManagedApiDeploymentParameters DeploymentParameters { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentManagedApiDeploymentParameters.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentManagedApiDeploymentParameters.cs new file mode 100644 index 000000000000..07cc8afd20bf --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentManagedApiDeploymentParameters.cs @@ -0,0 +1,55 @@ +// +// 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 managed api deployment parameters. + /// + public partial class IntegrationServiceEnvironmentManagedApiDeploymentParameters + { + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentManagedApiDeploymentParameters class. + /// + public IntegrationServiceEnvironmentManagedApiDeploymentParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// IntegrationServiceEnvironmentManagedApiDeploymentParameters class. + /// + /// The integration service + /// environment managed api content link for deployment. + public IntegrationServiceEnvironmentManagedApiDeploymentParameters(ContentLink contentLinkDefinition = default(ContentLink)) + { + ContentLinkDefinition = contentLinkDefinition; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the integration service environment managed api + /// content link for deployment. + /// + [JsonProperty(PropertyName = "contentLinkDefinition")] + public ContentLink ContentLinkDefinition { 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 index 5c3ad225dce2..cc1c6b4c008e 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentProperties.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IntegrationServiceEnvironmentProperties.cs @@ -35,7 +35,8 @@ public IntegrationServiceEnvironmentProperties() /// values include: 'NotSpecified', 'Accepted', 'Running', 'Ready', /// 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', /// 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', - /// 'Unregistering', 'Unregistered', 'Completed' + /// 'Unregistering', 'Unregistered', 'Completed', 'Renewing', + /// 'Pending', 'Waiting', 'InProgress' /// The integration service environment state. /// Possible values include: 'NotSpecified', 'Completed', 'Enabled', /// 'Disabled', 'Deleted', 'Suspended' @@ -45,13 +46,16 @@ public IntegrationServiceEnvironmentProperties() /// 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)) + /// The encryption + /// configuration. + public IntegrationServiceEnvironmentProperties(string provisioningState = default(string), string state = default(string), string integrationServiceEnvironmentId = default(string), FlowEndpointsConfiguration endpointsConfiguration = default(FlowEndpointsConfiguration), NetworkConfiguration networkConfiguration = default(NetworkConfiguration), IntegrationServiceEnvironmenEncryptionConfiguration encryptionConfiguration = default(IntegrationServiceEnvironmenEncryptionConfiguration)) { ProvisioningState = provisioningState; State = state; IntegrationServiceEnvironmentId = integrationServiceEnvironmentId; EndpointsConfiguration = endpointsConfiguration; NetworkConfiguration = networkConfiguration; + EncryptionConfiguration = encryptionConfiguration; CustomInit(); } @@ -65,7 +69,8 @@ public IntegrationServiceEnvironmentProperties() /// 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', /// 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', /// 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', - /// 'Unregistering', 'Unregistered', 'Completed' + /// 'Unregistering', 'Unregistered', 'Completed', 'Renewing', + /// 'Pending', 'Waiting', 'InProgress' /// [JsonProperty(PropertyName = "provisioningState")] public string ProvisioningState { get; set; } @@ -96,5 +101,11 @@ public IntegrationServiceEnvironmentProperties() [JsonProperty(PropertyName = "networkConfiguration")] public NetworkConfiguration NetworkConfiguration { get; set; } + /// + /// Gets or sets the encryption configuration. + /// + [JsonProperty(PropertyName = "encryptionConfiguration")] + public IntegrationServiceEnvironmenEncryptionConfiguration EncryptionConfiguration { get; set; } + } } diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IpAddressRange.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IpAddressRange.cs new file mode 100644 index 000000000000..f53d7b9b014d --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/IpAddressRange.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 range. + /// + public partial class IpAddressRange + { + /// + /// Initializes a new instance of the IpAddressRange class. + /// + public IpAddressRange() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IpAddressRange class. + /// + /// The IP address range. + public IpAddressRange(string addressRange = default(string)) + { + AddressRange = addressRange; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the IP address range. + /// + [JsonProperty(PropertyName = "addressRange")] + public string AddressRange { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ManagedApiListResult.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ManagedApiListResult.cs new file mode 100644 index 000000000000..3341121ef8fe --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ManagedApiListResult.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 list of managed APIs. + /// + public partial class ManagedApiListResult + { + /// + /// Initializes a new instance of the ManagedApiListResult class. + /// + public ManagedApiListResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagedApiListResult class. + /// + /// The managed APIs. + /// The URL to get the next set of + /// results. + public ManagedApiListResult(IList value = default(IList), string nextLink = default(string)) + { + Value = value; + NextLink = nextLink; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the managed APIs. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + /// + /// Gets or sets the URL to get the next set of results. + /// + [JsonProperty(PropertyName = "nextLink")] + public string NextLink { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ManagedServiceIdentity.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ManagedServiceIdentity.cs new file mode 100644 index 000000000000..552a34b84a82 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ManagedServiceIdentity.cs @@ -0,0 +1,104 @@ +// +// 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; + + /// + /// Managed service identity properties. + /// + public partial class ManagedServiceIdentity + { + /// + /// Initializes a new instance of the ManagedServiceIdentity class. + /// + public ManagedServiceIdentity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagedServiceIdentity class. + /// + /// Type of managed service identity. The type + /// 'SystemAssigned' includes an implicitly created identity. The type + /// 'None' will remove any identities from the resource. Possible + /// values include: 'SystemAssigned', 'UserAssigned', 'None' + /// Tenant of managed service identity. + /// Principal Id of managed service + /// identity. + /// The list of user assigned + /// identities associated with the resource. The user identity + /// dictionary key references will be ARM resource ids in the form: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} + public ManagedServiceIdentity(string type, System.Guid? tenantId = default(System.Guid?), System.Guid? principalId = default(System.Guid?), IDictionary userAssignedIdentities = default(IDictionary)) + { + Type = type; + TenantId = tenantId; + PrincipalId = principalId; + UserAssignedIdentities = userAssignedIdentities; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets type of managed service identity. The type + /// 'SystemAssigned' includes an implicitly created identity. The type + /// 'None' will remove any identities from the resource. Possible + /// values include: 'SystemAssigned', 'UserAssigned', 'None' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets tenant of managed service identity. + /// + [JsonProperty(PropertyName = "tenantId")] + public System.Guid? TenantId { get; private set; } + + /// + /// Gets principal Id of managed service identity. + /// + [JsonProperty(PropertyName = "principalId")] + public System.Guid? PrincipalId { get; private set; } + + /// + /// Gets or sets the list of user assigned identities associated with + /// the resource. The user identity dictionary key references will be + /// ARM resource ids in the form: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} + /// + [JsonProperty(PropertyName = "userAssignedIdentities")] + public IDictionary UserAssignedIdentities { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Type == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Type"); + } + } + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ManagedServiceIdentityType.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ManagedServiceIdentityType.cs new file mode 100644 index 000000000000..b76a846d0ca2 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/ManagedServiceIdentityType.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 ManagedServiceIdentityType. + /// + public static class ManagedServiceIdentityType + { + public const string SystemAssigned = "SystemAssigned"; + public const string UserAssigned = "UserAssigned"; + public const string None = "None"; + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/OpenAuthenticationAccessPolicies.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/OpenAuthenticationAccessPolicies.cs new file mode 100644 index 000000000000..2d01966172f0 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/OpenAuthenticationAccessPolicies.cs @@ -0,0 +1,55 @@ +// +// 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; + + /// + /// AuthenticationPolicy of type Open. + /// + public partial class OpenAuthenticationAccessPolicies + { + /// + /// Initializes a new instance of the OpenAuthenticationAccessPolicies + /// class. + /// + public OpenAuthenticationAccessPolicies() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OpenAuthenticationAccessPolicies + /// class. + /// + /// Open authentication policies. + public OpenAuthenticationAccessPolicies(IDictionary policies = default(IDictionary)) + { + Policies = policies; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets open authentication policies. + /// + [JsonProperty(PropertyName = "policies")] + public IDictionary Policies { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/OpenAuthenticationAccessPolicy.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/OpenAuthenticationAccessPolicy.cs new file mode 100644 index 000000000000..593dc4a8d657 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/OpenAuthenticationAccessPolicy.cs @@ -0,0 +1,65 @@ +// +// 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; + + /// + /// Open authentication access policy defined by user. + /// + public partial class OpenAuthenticationAccessPolicy + { + /// + /// Initializes a new instance of the OpenAuthenticationAccessPolicy + /// class. + /// + public OpenAuthenticationAccessPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OpenAuthenticationAccessPolicy + /// class. + /// + /// Type of provider for OAuth. Possible values + /// include: 'AAD' + /// The access policy claims. + public OpenAuthenticationAccessPolicy(string type = default(string), IList claims = default(IList)) + { + Type = type; + Claims = claims; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets type of provider for OAuth. Possible values include: + /// 'AAD' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets the access policy claims. + /// + [JsonProperty(PropertyName = "claims")] + public IList Claims { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/OpenAuthenticationPolicyClaim.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/OpenAuthenticationPolicyClaim.cs new file mode 100644 index 000000000000..2cc7390faa14 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/OpenAuthenticationPolicyClaim.cs @@ -0,0 +1,61 @@ +// +// 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; + + /// + /// Open authentication policy claim. + /// + public partial class OpenAuthenticationPolicyClaim + { + /// + /// Initializes a new instance of the OpenAuthenticationPolicyClaim + /// class. + /// + public OpenAuthenticationPolicyClaim() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OpenAuthenticationPolicyClaim + /// class. + /// + /// The name of the claim. + /// The value of the claim. + public OpenAuthenticationPolicyClaim(string name = default(string), string value = default(string)) + { + Name = name; + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the claim. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the value of the claim. + /// + [JsonProperty(PropertyName = "value")] + public string Value { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/OpenAuthenticationProviderType.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/OpenAuthenticationProviderType.cs new file mode 100644 index 000000000000..561ffdb15f59 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/OpenAuthenticationProviderType.cs @@ -0,0 +1,21 @@ +// +// 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 OpenAuthenticationProviderType. + /// + public static class OpenAuthenticationProviderType + { + public const string AAD = "AAD"; + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/Operation.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/Operation.cs index 363bc4506890..ba0cc2cbed53 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/Operation.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/Operation.cs @@ -29,14 +29,18 @@ public Operation() /// /// Initializes a new instance of the Operation class. /// + /// Operation: origin /// Operation name: /// {provider}/{resource}/{operation} /// The object that represents the /// operation. - public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay)) + /// The properties. + public Operation(string origin = default(string), string name = default(string), OperationDisplay display = default(OperationDisplay), object properties = default(object)) { + Origin = origin; Name = name; Display = display; + Properties = properties; CustomInit(); } @@ -45,6 +49,12 @@ public Operation() /// partial void CustomInit(); + /// + /// Gets or sets operation: origin + /// + [JsonProperty(PropertyName = "origin")] + public string Origin { get; set; } + /// /// Gets or sets operation name: {provider}/{resource}/{operation} /// @@ -57,5 +67,11 @@ public Operation() [JsonProperty(PropertyName = "display")] public OperationDisplay Display { get; set; } + /// + /// Gets or sets the properties. + /// + [JsonProperty(PropertyName = "properties")] + public object Properties { get; set; } + } } diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/OperationDisplay.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/OperationDisplay.cs index 7c60ed299944..56504cfc0f63 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/OperationDisplay.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/OperationDisplay.cs @@ -34,11 +34,13 @@ public OperationDisplay() /// performed: Profile, endpoint, etc. /// Operation type: Read, write, delete, /// etc. - public OperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string)) + /// Operation: description. + public OperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string), string description = default(string)) { Provider = provider; Resource = resource; Operation = operation; + Description = description; CustomInit(); } @@ -66,5 +68,11 @@ public OperationDisplay() [JsonProperty(PropertyName = "operation")] public string Operation { get; set; } + /// + /// Gets or sets operation: description. + /// + [JsonProperty(PropertyName = "description")] + public string Description { 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 f18abbbe2086..0a5d537bdf8c 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 @@ -33,7 +33,7 @@ public SetTriggerStateActionDefinition() /// class. /// /// The source. - public SetTriggerStateActionDefinition(WorkflowTrigger source) + public SetTriggerStateActionDefinition(WorkflowTriggerReference source) { Source = source; CustomInit(); @@ -48,7 +48,7 @@ public SetTriggerStateActionDefinition(WorkflowTrigger source) /// Gets or sets the source. /// [JsonProperty(PropertyName = "source")] - public WorkflowTrigger Source { get; set; } + public WorkflowTriggerReference Source { get; set; } /// /// Validate the object. 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 8179db7b4358..083b994cddd6 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 @@ -43,12 +43,14 @@ public TrackingEvent() /// 'EdifactInterchangeAcknowledgment', /// 'EdifactFunctionalGroupAcknowledgment', /// 'EdifactTransactionSetAcknowledgment' + /// The record. /// The error. - public TrackingEvent(EventLevel eventLevel, System.DateTime eventTime, string recordType, TrackingEventErrorInfo error = default(TrackingEventErrorInfo)) + public TrackingEvent(EventLevel eventLevel, System.DateTime eventTime, string recordType, object record = default(object), TrackingEventErrorInfo error = default(TrackingEventErrorInfo)) { EventLevel = eventLevel; EventTime = eventTime; RecordType = recordType; + Record = record; Error = error; CustomInit(); } @@ -85,6 +87,12 @@ public TrackingEvent() [JsonProperty(PropertyName = "recordType")] public string RecordType { get; set; } + /// + /// Gets or sets the record. + /// + [JsonProperty(PropertyName = "record")] + public object Record { get; set; } + /// /// Gets or sets the error. /// diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/UserAssignedIdentity.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/UserAssignedIdentity.cs new file mode 100644 index 000000000000..d0d5655cc7f4 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/UserAssignedIdentity.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; + + /// + /// User Assigned identity properties. + /// + public partial class UserAssignedIdentity + { + /// + /// Initializes a new instance of the UserAssignedIdentity class. + /// + public UserAssignedIdentity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UserAssignedIdentity class. + /// + /// Principal Id of user assigned + /// identity + /// Client Id of user assigned identity + public UserAssignedIdentity(string principalId = default(string), string clientId = default(string)) + { + PrincipalId = principalId; + ClientId = clientId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets principal Id of user assigned identity + /// + [JsonProperty(PropertyName = "principalId")] + public string PrincipalId { get; private set; } + + /// + /// Gets client Id of user assigned identity + /// + [JsonProperty(PropertyName = "clientId")] + public string ClientId { get; private 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 d9038287dc40..76b247d19bb5 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 @@ -43,7 +43,8 @@ public Workflow() /// Possible values include: 'NotSpecified', 'Accepted', 'Running', /// 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', /// 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', - /// 'Registered', 'Unregistering', 'Unregistered', 'Completed' + /// 'Registered', 'Unregistering', 'Unregistered', 'Completed', + /// 'Renewing', 'Pending', 'Waiting', 'InProgress' /// Gets the created time. /// Gets the changed time. /// The state. Possible values include: @@ -53,12 +54,15 @@ public Workflow() /// Gets the access endpoint. /// The endpoints /// configuration. + /// The access control + /// configuration. /// The sku. /// The integration account. - /// The integration service environment. + /// 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), FlowEndpointsConfiguration endpointsConfiguration = default(FlowEndpointsConfiguration), Sku sku = default(Sku), ResourceReference integrationAccount = default(ResourceReference), ResourceReference integrationServiceEnvironment = 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), FlowAccessControlConfiguration accessControl = default(FlowAccessControlConfiguration), Sku sku = default(Sku), ResourceReference integrationAccount = default(ResourceReference), ResourceReference integrationServiceEnvironment = default(ResourceReference), object definition = default(object), IDictionary parameters = default(IDictionary), ManagedServiceIdentity identity = default(ManagedServiceIdentity)) : base(id, name, type, location, tags) { ProvisioningState = provisioningState; @@ -68,11 +72,13 @@ public Workflow() Version = version; AccessEndpoint = accessEndpoint; EndpointsConfiguration = endpointsConfiguration; + AccessControl = accessControl; Sku = sku; IntegrationAccount = integrationAccount; IntegrationServiceEnvironment = integrationServiceEnvironment; Definition = definition; Parameters = parameters; + Identity = identity; CustomInit(); } @@ -86,7 +92,8 @@ public Workflow() /// 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', /// 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', /// 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', - /// 'Unregistering', 'Unregistered', 'Completed' + /// 'Unregistering', 'Unregistered', 'Completed', 'Renewing', + /// 'Pending', 'Waiting', 'InProgress' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } @@ -129,10 +136,16 @@ public Workflow() public FlowEndpointsConfiguration EndpointsConfiguration { get; set; } /// - /// Gets or sets the sku. + /// Gets or sets the access control configuration. + /// + [JsonProperty(PropertyName = "properties.accessControl")] + public FlowAccessControlConfiguration AccessControl { get; set; } + + /// + /// Gets the sku. /// [JsonProperty(PropertyName = "properties.sku")] - public Sku Sku { get; set; } + public Sku Sku { get; private set; } /// /// Gets or sets the integration account. @@ -158,6 +171,11 @@ public Workflow() [JsonProperty(PropertyName = "properties.parameters")] public IDictionary Parameters { get; set; } + /// + /// + [JsonProperty(PropertyName = "identity")] + public ManagedServiceIdentity Identity { get; set; } + /// /// Validate the object. /// @@ -170,6 +188,10 @@ public virtual void Validate() { Sku.Validate(); } + if (Identity != null) + { + Identity.Validate(); + } } } } diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowProvisioningState.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowProvisioningState.cs index 860b09873c89..9da23cabcf63 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowProvisioningState.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowProvisioningState.cs @@ -34,5 +34,9 @@ public static class WorkflowProvisioningState public const string Unregistering = "Unregistering"; public const string Unregistered = "Unregistered"; public const string Completed = "Completed"; + public const string Renewing = "Renewing"; + public const string Pending = "Pending"; + public const string Waiting = "Waiting"; + public const string InProgress = "InProgress"; } } diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowReference.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowReference.cs new file mode 100644 index 000000000000..03102d116e05 --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowReference.cs @@ -0,0 +1,46 @@ +// +// 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 System.Linq; + + /// + /// The workflow reference. + /// + public partial class WorkflowReference : ResourceReference + { + /// + /// Initializes a new instance of the WorkflowReference class. + /// + public WorkflowReference() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkflowReference class. + /// + /// The resource id. + /// Gets the resource name. + /// Gets the resource type. + public WorkflowReference(string id = default(string), string name = default(string), string type = default(string)) + : base(id, name, type) + { + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowRunAction.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowRunAction.cs index bac3cf0f5dc7..6ee0b25c4169 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowRunAction.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowRunAction.cs @@ -52,7 +52,7 @@ public WorkflowRunAction() /// Gets the retry histories. /// Gets the workflow run action name. /// Gets the workflow run action type. - public WorkflowRunAction(string id = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), string status = default(string), string code = default(string), object error = default(object), string trackingId = default(string), Correlation correlation = default(Correlation), ContentLink inputsLink = default(ContentLink), ContentLink outputsLink = default(ContentLink), object trackedProperties = default(object), IList retryHistory = default(IList), string name = default(string), string type = default(string)) + public WorkflowRunAction(string id = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), string status = default(string), string code = default(string), object error = default(object), string trackingId = default(string), RunActionCorrelation correlation = default(RunActionCorrelation), ContentLink inputsLink = default(ContentLink), ContentLink outputsLink = default(ContentLink), object trackedProperties = default(object), IList retryHistory = default(IList), string name = default(string), string type = default(string)) : base(id) { StartTime = startTime; @@ -118,7 +118,7 @@ public WorkflowRunAction() /// Gets or sets the correlation properties. /// [JsonProperty(PropertyName = "properties.correlation")] - public Correlation Correlation { get; set; } + public RunActionCorrelation Correlation { get; set; } /// /// Gets the link to inputs. 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 5faddd7097e7..d05c070179a5 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 @@ -35,6 +35,7 @@ public WorkflowTriggerHistory() /// The resource id. /// Gets the start time. /// Gets the end time. + /// The scheduled time. /// Gets the status. Possible values include: /// 'NotSpecified', 'Paused', 'Running', 'Waiting', 'Succeeded', /// 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', @@ -51,11 +52,12 @@ public WorkflowTriggerHistory() /// Gets the reference to workflow run. /// Gets the workflow trigger history name. /// Gets the workflow trigger history type. - public WorkflowTriggerHistory(string id = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), string status = default(string), string code = default(string), object error = default(object), string trackingId = default(string), Correlation correlation = default(Correlation), ContentLink inputsLink = default(ContentLink), ContentLink outputsLink = default(ContentLink), bool? fired = default(bool?), ResourceReference run = default(ResourceReference), string name = default(string), string type = default(string)) + public WorkflowTriggerHistory(string id = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), System.DateTime? scheduledTime = default(System.DateTime?), string status = default(string), string code = default(string), object error = default(object), string trackingId = default(string), Correlation correlation = default(Correlation), ContentLink inputsLink = default(ContentLink), ContentLink outputsLink = default(ContentLink), bool? fired = default(bool?), ResourceReference run = default(ResourceReference), string name = default(string), string type = default(string)) : base(id) { StartTime = startTime; EndTime = endTime; + ScheduledTime = scheduledTime; Status = status; Code = code; Error = error; @@ -87,6 +89,12 @@ public WorkflowTriggerHistory() [JsonProperty(PropertyName = "properties.endTime")] public System.DateTime? EndTime { get; private set; } + /// + /// Gets the scheduled time. + /// + [JsonProperty(PropertyName = "properties.scheduledTime")] + public System.DateTime? ScheduledTime { get; private set; } + /// /// Gets the status. Possible values include: 'NotSpecified', 'Paused', /// 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowTriggerReference.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowTriggerReference.cs new file mode 100644 index 000000000000..922b053a093e --- /dev/null +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowTriggerReference.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 workflow trigger reference. + /// + public partial class WorkflowTriggerReference : ResourceReference + { + /// + /// Initializes a new instance of the WorkflowTriggerReference class. + /// + public WorkflowTriggerReference() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkflowTriggerReference class. + /// + /// The resource id. + /// Gets the resource name. + /// Gets the resource type. + /// The workflow name. + /// The workflow trigger name. + public WorkflowTriggerReference(string id = default(string), string name = default(string), string type = default(string), string flowName = default(string), string triggerName = default(string)) + : base(id, name, type) + { + FlowName = flowName; + TriggerName = triggerName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the workflow name. + /// + [JsonProperty(PropertyName = "flowName")] + public string FlowName { get; set; } + + /// + /// Gets or sets the workflow trigger name. + /// + [JsonProperty(PropertyName = "triggerName")] + public string TriggerName { get; set; } + + } +} diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowVersion.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowVersion.cs index f12d6d12421b..b0fa1adbf74b 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowVersion.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/Models/WorkflowVersion.cs @@ -39,6 +39,12 @@ public WorkflowVersion() /// Gets the resource type. /// The resource location. /// The resource tags. + /// The provisioning state. Possible + /// values include: 'NotSpecified', 'Accepted', 'Running', 'Ready', + /// 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', + /// 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + /// 'Unregistering', 'Unregistered', 'Completed', 'Renewing', + /// 'Pending', 'Waiting', 'InProgress' /// Gets the created time. /// Gets the changed time. /// The state. Possible values include: @@ -46,18 +52,25 @@ public WorkflowVersion() /// 'Suspended' /// Gets the version. /// Gets the access endpoint. + /// The endpoints + /// configuration. + /// The access control + /// configuration. /// The sku. /// The integration account. /// The definition. /// The parameters. - public WorkflowVersion(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), 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 WorkflowVersion(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), FlowAccessControlConfiguration accessControl = default(FlowAccessControlConfiguration), Sku sku = default(Sku), ResourceReference integrationAccount = default(ResourceReference), object definition = default(object), IDictionary parameters = default(IDictionary)) : base(id, name, type, location, tags) { + ProvisioningState = provisioningState; CreatedTime = createdTime; ChangedTime = changedTime; State = state; Version = version; AccessEndpoint = accessEndpoint; + EndpointsConfiguration = endpointsConfiguration; + AccessControl = accessControl; Sku = sku; IntegrationAccount = integrationAccount; Definition = definition; @@ -70,6 +83,17 @@ public WorkflowVersion() /// partial void CustomInit(); + /// + /// Gets the provisioning state. Possible values include: + /// 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', + /// 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', + /// 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + /// 'Unregistering', 'Unregistered', 'Completed', 'Renewing', + /// 'Pending', 'Waiting', 'InProgress' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + /// /// Gets the created time. /// @@ -102,10 +126,22 @@ public WorkflowVersion() public string AccessEndpoint { get; private set; } /// - /// Gets or sets the sku. + /// Gets or sets the endpoints configuration. + /// + [JsonProperty(PropertyName = "properties.endpointsConfiguration")] + public FlowEndpointsConfiguration EndpointsConfiguration { get; set; } + + /// + /// Gets or sets the access control configuration. + /// + [JsonProperty(PropertyName = "properties.accessControl")] + public FlowAccessControlConfiguration AccessControl { get; set; } + + /// + /// Gets the sku. /// [JsonProperty(PropertyName = "properties.sku")] - public Sku Sku { get; set; } + public Sku Sku { get; private set; } /// /// Gets or sets the integration account. 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 9719785c0c64..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 @@ -49,16 +49,5 @@ public static IEnumerable> ApiInfo_LogicManagement }.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=C:\\dev\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "411d4cf447639289e4ee1efa4d066df2773ebccd"; - 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/WorkflowTriggersOperations.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowTriggersOperations.cs index 734c117ac4fb..b7b6b57268a4 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowTriggersOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowTriggersOperations.cs @@ -651,7 +651,7 @@ internal WorkflowTriggersOperations(LogicManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// @@ -663,7 +663,7 @@ internal WorkflowTriggersOperations(LogicManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> RunWithHttpMessagesAsync(string resourceGroupName, string workflowName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task RunWithHttpMessagesAsync(string resourceGroupName, string workflowName, string triggerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -768,13 +768,13 @@ internal WorkflowTriggersOperations(LogicManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if (!_httpResponse.IsSuccessStatusCode) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { - var ex = new HttpOperationException(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); - object _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex.Body = _errorBody; @@ -798,27 +798,13 @@ internal WorkflowTriggersOperations(LogicManagementClient client) 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")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - string _defaultResponseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_defaultResponseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _defaultResponseContent, ex); - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); diff --git a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowTriggersOperationsExtensions.cs b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowTriggersOperationsExtensions.cs index 29bcdaeb13ee..c1376883137f 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowTriggersOperationsExtensions.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowTriggersOperationsExtensions.cs @@ -172,9 +172,9 @@ public static void Reset(this IWorkflowTriggersOperations operations, string res /// /// The workflow trigger name. /// - public static object Run(this IWorkflowTriggersOperations operations, string resourceGroupName, string workflowName, string triggerName) + public static void Run(this IWorkflowTriggersOperations operations, string resourceGroupName, string workflowName, string triggerName) { - return operations.RunAsync(resourceGroupName, workflowName, triggerName).GetAwaiter().GetResult(); + operations.RunAsync(resourceGroupName, workflowName, triggerName).GetAwaiter().GetResult(); } /// @@ -195,12 +195,9 @@ public static object Run(this IWorkflowTriggersOperations operations, string res /// /// The cancellation token. /// - public static async Task RunAsync(this IWorkflowTriggersOperations operations, string resourceGroupName, string workflowName, string triggerName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task RunAsync(this IWorkflowTriggersOperations operations, string resourceGroupName, string workflowName, string triggerName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.RunWithHttpMessagesAsync(resourceGroupName, workflowName, triggerName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.RunWithHttpMessagesAsync(resourceGroupName, workflowName, triggerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// 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 ba0a24f458b2..19c817cbf251 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowsOperations.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowsOperations.cs @@ -857,9 +857,6 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The workflow name. /// - /// - /// The workflow. - /// /// /// Headers that will be added to request. /// @@ -881,7 +878,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string workflowName, Workflow workflow, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string workflowName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -899,10 +896,6 @@ internal WorkflowsOperations(LogicManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (workflow == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "workflow"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -912,7 +905,6 @@ internal WorkflowsOperations(LogicManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("workflowName", workflowName); - tracingParameters.Add("workflow", workflow); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); } @@ -965,12 +957,6 @@ internal WorkflowsOperations(LogicManagementClient client) // Serialize Request string _requestContent = null; - if(workflow != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(workflow, 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) { @@ -2182,7 +2168,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The cancellation token. /// - public async Task MoveWithHttpMessagesAsync(string resourceGroupName, string workflowName, Workflow move, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task MoveWithHttpMessagesAsync(string resourceGroupName, string workflowName, WorkflowReference move, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request AzureOperationResponse _response = await BeginMoveWithHttpMessagesAsync(resourceGroupName, workflowName, move, customHeaders, cancellationToken).ConfigureAwait(false); @@ -2573,8 +2559,8 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// The workflow name. /// - /// - /// The workflow definition. + /// + /// The workflow. /// /// /// Headers that will be added to request. @@ -2594,7 +2580,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 ValidateByLocationWithHttpMessagesAsync(string resourceGroupName, string location, string workflowName, Workflow validate, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -2612,20 +2598,18 @@ internal WorkflowsOperations(LogicManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "workflowName"); } - if (Client.ApiVersion == null) + if (validate == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "validate"); } - if (workflow == null) + if (validate != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "workflow"); + validate.Validate(); } - - if (workflow != null) + if (Client.ApiVersion == null) { - workflow.Validate(); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2636,7 +2620,7 @@ internal WorkflowsOperations(LogicManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("location", location); tracingParameters.Add("workflowName", workflowName); - tracingParameters.Add("workflow", workflow); + tracingParameters.Add("validate", validate); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ValidateByLocation", tracingParameters); } @@ -2690,13 +2674,12 @@ internal WorkflowsOperations(LogicManagementClient client) // Serialize Request string _requestContent = null; - if(workflow != null) + if(validate != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(workflow, 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"); } - // Set Credentials if (Client.Credentials != null) { @@ -2791,7 +2774,7 @@ internal WorkflowsOperations(LogicManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginMoveWithHttpMessagesAsync(string resourceGroupName, string workflowName, Workflow move, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginMoveWithHttpMessagesAsync(string resourceGroupName, string workflowName, WorkflowReference move, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -2809,10 +2792,6 @@ internal WorkflowsOperations(LogicManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "move"); } - if (move != null) - { - move.Validate(); - } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); 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 f4b27ef92f2c..5647b3015603 100644 --- a/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowsOperationsExtensions.cs +++ b/sdk/logic/Microsoft.Azure.Management.Logic/src/Generated/WorkflowsOperationsExtensions.cs @@ -194,12 +194,9 @@ public static Workflow CreateOrUpdate(this IWorkflowsOperations operations, stri /// /// The workflow name. /// - /// - /// The workflow. - /// - public static Workflow Update(this IWorkflowsOperations operations, string resourceGroupName, string workflowName, Workflow workflow) + public static Workflow Update(this IWorkflowsOperations operations, string resourceGroupName, string workflowName) { - return operations.UpdateAsync(resourceGroupName, workflowName, workflow).GetAwaiter().GetResult(); + return operations.UpdateAsync(resourceGroupName, workflowName).GetAwaiter().GetResult(); } /// @@ -214,15 +211,12 @@ public static Workflow Update(this IWorkflowsOperations operations, string resou /// /// The workflow name. /// - /// - /// The workflow. - /// /// /// The cancellation token. /// - public static async Task UpdateAsync(this IWorkflowsOperations operations, string resourceGroupName, string workflowName, Workflow workflow, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IWorkflowsOperations operations, string resourceGroupName, string workflowName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, workflowName, workflow, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, workflowName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -486,7 +480,7 @@ public static object ListSwagger(this IWorkflowsOperations operations, string re /// /// The workflow to move. /// - public static void Move(this IWorkflowsOperations operations, string resourceGroupName, string workflowName, Workflow move) + public static void Move(this IWorkflowsOperations operations, string resourceGroupName, string workflowName, WorkflowReference move) { operations.MoveAsync(resourceGroupName, workflowName, move).GetAwaiter().GetResult(); } @@ -509,7 +503,7 @@ public static void Move(this IWorkflowsOperations operations, string resourceGro /// /// The cancellation token. /// - public static async Task MoveAsync(this IWorkflowsOperations operations, string resourceGroupName, string workflowName, Workflow move, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task MoveAsync(this IWorkflowsOperations operations, string resourceGroupName, string workflowName, WorkflowReference move, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.MoveWithHttpMessagesAsync(resourceGroupName, workflowName, move, null, cancellationToken).ConfigureAwait(false)).Dispose(); } @@ -615,12 +609,12 @@ public static void ValidateByResourceGroup(this IWorkflowsOperations operations, /// /// The workflow name. /// - /// - /// The workflow definition. + /// + /// The workflow. /// - 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, Workflow validate) { - operations.ValidateByLocationAsync(resourceGroupName, location, workflowName, workflow).GetAwaiter().GetResult(); + operations.ValidateByLocationAsync(resourceGroupName, location, workflowName, validate).GetAwaiter().GetResult(); } /// @@ -638,15 +632,15 @@ public static void ValidateByLocation(this IWorkflowsOperations operations, stri /// /// The workflow name. /// - /// - /// The workflow definition. + /// + /// The workflow. /// /// /// 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 ValidateByLocationAsync(this IWorkflowsOperations operations, string resourceGroupName, string location, string workflowName, Workflow validate, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.ValidateByLocationWithHttpMessagesAsync(resourceGroupName, location, workflowName, workflow, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.ValidateByLocationWithHttpMessagesAsync(resourceGroupName, location, workflowName, validate, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -664,7 +658,7 @@ public static void ValidateByLocation(this IWorkflowsOperations operations, stri /// /// The workflow to move. /// - public static void BeginMove(this IWorkflowsOperations operations, string resourceGroupName, string workflowName, Workflow move) + public static void BeginMove(this IWorkflowsOperations operations, string resourceGroupName, string workflowName, WorkflowReference move) { operations.BeginMoveAsync(resourceGroupName, workflowName, move).GetAwaiter().GetResult(); } @@ -687,7 +681,7 @@ public static void BeginMove(this IWorkflowsOperations operations, string resour /// /// The cancellation token. /// - public static async Task BeginMoveAsync(this IWorkflowsOperations operations, string resourceGroupName, string workflowName, Workflow move, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginMoveAsync(this IWorkflowsOperations operations, string resourceGroupName, string workflowName, WorkflowReference move, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginMoveWithHttpMessagesAsync(resourceGroupName, workflowName, move, null, cancellationToken).ConfigureAwait(false)).Dispose(); }