Skip to content

Commit

Permalink
Generated from 45a2f105c1e8620382617970cfc255beddb954b7 (#239)
Browse files Browse the repository at this point in the history
fix sample
  • Loading branch information
openapi-sdkautomation[bot] authored and azuresdkci committed Sep 28, 2019
1 parent cc0c167 commit 798574a
Show file tree
Hide file tree
Showing 8 changed files with 419 additions and 92 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,98 @@ public static DataFlowDebugCommandResponse ExecuteCommand(this IDataFlowDebugSes
}
}

/// <summary>
/// Creates a data flow debug session.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The resource group name.
/// </param>
/// <param name='factoryName'>
/// The factory name.
/// </param>
/// <param name='request'>
/// Data flow debug session definition
/// </param>
public static CreateDataFlowDebugSessionResponse BeginCreate(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, CreateDataFlowDebugSessionRequest request)
{
return operations.BeginCreateAsync(resourceGroupName, factoryName, request).GetAwaiter().GetResult();
}

/// <summary>
/// Creates a data flow debug session.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The resource group name.
/// </param>
/// <param name='factoryName'>
/// The factory name.
/// </param>
/// <param name='request'>
/// Data flow debug session definition
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<CreateDataFlowDebugSessionResponse> BeginCreateAsync(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, CreateDataFlowDebugSessionRequest request, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, factoryName, request, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Execute a data flow debug command.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The resource group name.
/// </param>
/// <param name='factoryName'>
/// The factory name.
/// </param>
/// <param name='request'>
/// Data flow debug command definition.
/// </param>
public static DataFlowDebugCommandResponse BeginExecuteCommand(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, DataFlowDebugCommandRequest request)
{
return operations.BeginExecuteCommandAsync(resourceGroupName, factoryName, request).GetAwaiter().GetResult();
}

/// <summary>
/// Execute a data flow debug command.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The resource group name.
/// </param>
/// <param name='factoryName'>
/// The factory name.
/// </param>
/// <param name='request'>
/// Data flow debug command definition.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<DataFlowDebugCommandResponse> BeginExecuteCommandAsync(this IDataFlowDebugSessionOperations operations, string resourceGroupName, string factoryName, DataFlowDebugCommandRequest request, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.BeginExecuteCommandWithHttpMessagesAsync(resourceGroupName, factoryName, request, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Query all active data flow debug sessions.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,62 @@ public partial interface IDataFlowDebugSessionOperations
/// </exception>
Task<AzureOperationResponse<DataFlowDebugCommandResponse,DataFlowDebugSessionExecuteCommandHeaders>> ExecuteCommandWithHttpMessagesAsync(string resourceGroupName, string factoryName, DataFlowDebugCommandRequest request, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Creates a data flow debug session.
/// </summary>
/// <param name='resourceGroupName'>
/// The resource group name.
/// </param>
/// <param name='factoryName'>
/// The factory name.
/// </param>
/// <param name='request'>
/// Data flow debug session definition
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<CreateDataFlowDebugSessionResponse,DataFlowDebugSessionCreateHeaders>> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string factoryName, CreateDataFlowDebugSessionRequest request, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Execute a data flow debug command.
/// </summary>
/// <param name='resourceGroupName'>
/// The resource group name.
/// </param>
/// <param name='factoryName'>
/// The factory name.
/// </param>
/// <param name='request'>
/// Data flow debug command definition.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<DataFlowDebugCommandResponse,DataFlowDebugSessionExecuteCommandHeaders>> BeginExecuteCommandWithHttpMessagesAsync(string resourceGroupName, string factoryName, DataFlowDebugCommandRequest request, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Query all active data flow debug sessions.
/// </summary>
/// <param name='nextPageLink'>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.DataFactory.Models
{

/// <summary>
/// Defines values for DataFlowComputeType.
/// </summary>
public static class DataFlowComputeType
{
public const string General = "General";
public const string MemoryOptimized = "MemoryOptimized";
public const string ComputeOptimized = "ComputeOptimized";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,18 @@ public IntegrationRuntimeComputeProperties()
/// managed integration runtime.</param>
/// <param name="maxParallelExecutionsPerNode">Maximum parallel
/// executions count per node for managed integration runtime.</param>
/// <param name="dataFlowProperties">Data flow properties for managed
/// integration runtime.</param>
/// <param name="vNetProperties">VNet properties for managed
/// integration runtime.</param>
public IntegrationRuntimeComputeProperties(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), string location = default(string), string nodeSize = default(string), int? numberOfNodes = default(int?), int? maxParallelExecutionsPerNode = default(int?), IntegrationRuntimeVNetProperties vNetProperties = default(IntegrationRuntimeVNetProperties))
public IntegrationRuntimeComputeProperties(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), string location = default(string), string nodeSize = default(string), int? numberOfNodes = default(int?), int? maxParallelExecutionsPerNode = default(int?), IntegrationRuntimeDataFlowProperties dataFlowProperties = default(IntegrationRuntimeDataFlowProperties), IntegrationRuntimeVNetProperties vNetProperties = default(IntegrationRuntimeVNetProperties))
{
AdditionalProperties = additionalProperties;
Location = location;
NodeSize = nodeSize;
NumberOfNodes = numberOfNodes;
MaxParallelExecutionsPerNode = maxParallelExecutionsPerNode;
DataFlowProperties = dataFlowProperties;
VNetProperties = vNetProperties;
CustomInit();
}
Expand Down Expand Up @@ -99,6 +102,12 @@ public IntegrationRuntimeComputeProperties()
[JsonProperty(PropertyName = "maxParallelExecutionsPerNode")]
public int? MaxParallelExecutionsPerNode { get; set; }

/// <summary>
/// Gets or sets data flow properties for managed integration runtime.
/// </summary>
[JsonProperty(PropertyName = "dataFlowProperties")]
public IntegrationRuntimeDataFlowProperties DataFlowProperties { get; set; }

/// <summary>
/// Gets or sets vNet properties for managed integration runtime.
/// </summary>
Expand All @@ -121,6 +130,10 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxParallelExecutionsPerNode", 1);
}
if (DataFlowProperties != null)
{
DataFlowProperties.Validate();
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.DataFactory.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

/// <summary>
/// Data flow properties for managed integration runtime.
/// </summary>
public partial class IntegrationRuntimeDataFlowProperties
{
/// <summary>
/// Initializes a new instance of the
/// IntegrationRuntimeDataFlowProperties class.
/// </summary>
public IntegrationRuntimeDataFlowProperties()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the
/// IntegrationRuntimeDataFlowProperties class.
/// </summary>
/// <param name="additionalProperties">Unmatched properties from the
/// message are deserialized this collection</param>
/// <param name="computeType">Compute type of the cluster which will
/// execute data flow job. Possible values include: 'General',
/// 'MemoryOptimized', 'ComputeOptimized'</param>
/// <param name="coreCount">Core count of the cluster which will
/// execute data flow job. Supported values are: 8, 16, 32, 48, 80, 144
/// and 272.</param>
/// <param name="timeToLive">Time to live (in minutes) setting of the
/// cluster which will execute data flow job.</param>
public IntegrationRuntimeDataFlowProperties(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), string computeType = default(string), int? coreCount = default(int?), int? timeToLive = default(int?))
{
AdditionalProperties = additionalProperties;
ComputeType = computeType;
CoreCount = coreCount;
TimeToLive = timeToLive;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets unmatched properties from the message are deserialized
/// this collection
/// </summary>
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; }

/// <summary>
/// Gets or sets compute type of the cluster which will execute data
/// flow job. Possible values include: 'General', 'MemoryOptimized',
/// 'ComputeOptimized'
/// </summary>
[JsonProperty(PropertyName = "computeType")]
public string ComputeType { get; set; }

/// <summary>
/// Gets or sets core count of the cluster which will execute data flow
/// job. Supported values are: 8, 16, 32, 48, 80, 144 and 272.
/// </summary>
[JsonProperty(PropertyName = "coreCount")]
public int? CoreCount { get; set; }

/// <summary>
/// Gets or sets time to live (in minutes) setting of the cluster which
/// will execute data flow job.
/// </summary>
[JsonProperty(PropertyName = "timeToLive")]
public int? TimeToLive { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (TimeToLive < 0)
{
throw new ValidationException(ValidationRules.InclusiveMinimum, "TimeToLive", 0);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,5 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_DataFactoryMana
}.AsEnumerable();
}
}
// BEGIN: Code Generation Metadata Section
public static readonly String AutoRestVersion = "latest";
public static readonly String AutoRestBootStrapperVersion = "[email protected]";
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datafactory/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --tag=package-2018-06 --csharp-sdks-folder=D:\\GitHub\\azure-sdk-for-net\\sdk";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
public static readonly String GithubCommidId = "6d4e0d294d568a37b1f3421b789290934517d115";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
}
}

0 comments on commit 798574a

Please sign in to comment.