Skip to content

Commit

Permalink
[Data Factory][Bug fix before SDK publishing] Add new sub resource wr…
Browse files Browse the repository at this point in the history
…apper with name property (Azure#7874)

* init

* Generated from latest swagger
  • Loading branch information
jackmagic313 authored and markcowl committed Oct 2, 2019
1 parent b29119b commit 5f4ec70
Show file tree
Hide file tree
Showing 14 changed files with 350 additions and 18 deletions.
6 changes: 3 additions & 3 deletions eng/mgmt/mgmtmetadata/datafactory_resource-manager.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
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:\Source\adf0929\azure-sdk-for-net\sdk
2019-09-29 05:46:14 UTC
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
2019-10-02 00:16:37 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: 9aaa1b6b1ceddfe31e03867fdfa1cedebb99185d
Commit: 3c8a224ea99e66f09dbec8eb45bac12d66a411d6
AutoRest information
Requested version: latest
Bootstrapper version: autorest@2.0.4283
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public CreateDataFlowDebugSessionRequest()
/// minutes.</param>
/// <param name="integrationRuntime">Set to use integration runtime
/// setting for data flow debug session.</param>
public CreateDataFlowDebugSessionRequest(string computeType = default(string), int? coreCount = default(int?), int? timeToLive = default(int?), IntegrationRuntimeResource integrationRuntime = default(IntegrationRuntimeResource))
public CreateDataFlowDebugSessionRequest(string computeType = default(string), int? coreCount = default(int?), int? timeToLive = default(int?), IntegrationRuntimeDebugResource integrationRuntime = default(IntegrationRuntimeDebugResource))
{
ComputeType = computeType;
CoreCount = coreCount;
Expand Down Expand Up @@ -80,7 +80,7 @@ public CreateDataFlowDebugSessionRequest()
/// debug session.
/// </summary>
[JsonProperty(PropertyName = "integrationRuntime")]
public IntegrationRuntimeResource IntegrationRuntime { get; set; }
public IntegrationRuntimeDebugResource IntegrationRuntime { get; set; }

/// <summary>
/// Validate the object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public DataFlowDebugPackage()
/// <param name="linkedServices">List of linked services.</param>
/// <param name="staging">Staging info for debug session.</param>
/// <param name="debugSettings">Data flow debug settings.</param>
public DataFlowDebugPackage(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), string sessionId = default(string), DataFlowResource dataFlow = default(DataFlowResource), IList<DatasetResource> datasets = default(IList<DatasetResource>), IList<LinkedServiceResource> linkedServices = default(IList<LinkedServiceResource>), DataFlowStagingInfo staging = default(DataFlowStagingInfo), DataFlowDebugPackageDebugSettings debugSettings = default(DataFlowDebugPackageDebugSettings))
public DataFlowDebugPackage(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), string sessionId = default(string), DataFlowDebugResource dataFlow = default(DataFlowDebugResource), IList<DatasetDebugResource> datasets = default(IList<DatasetDebugResource>), IList<LinkedServiceDebugResource> linkedServices = default(IList<LinkedServiceDebugResource>), DataFlowStagingInfo staging = default(DataFlowStagingInfo), DataFlowDebugPackageDebugSettings debugSettings = default(DataFlowDebugPackageDebugSettings))
{
AdditionalProperties = additionalProperties;
SessionId = sessionId;
Expand Down Expand Up @@ -73,19 +73,19 @@ public DataFlowDebugPackage()
/// Gets or sets data flow instance.
/// </summary>
[JsonProperty(PropertyName = "dataFlow")]
public DataFlowResource DataFlow { get; set; }
public DataFlowDebugResource DataFlow { get; set; }

/// <summary>
/// Gets or sets list of datasets.
/// </summary>
[JsonProperty(PropertyName = "datasets")]
public IList<DatasetResource> Datasets { get; set; }
public IList<DatasetDebugResource> Datasets { get; set; }

/// <summary>
/// Gets or sets list of linked services.
/// </summary>
[JsonProperty(PropertyName = "linkedServices")]
public IList<LinkedServiceResource> LinkedServices { get; set; }
public IList<LinkedServiceDebugResource> LinkedServices { get; set; }

/// <summary>
/// Gets or sets staging info for debug session.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
// <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.Linq;

/// <summary>
/// Data flow debug resource.
/// </summary>
public partial class DataFlowDebugResource : SubResourceDebugResource
{
/// <summary>
/// Initializes a new instance of the DataFlowDebugResource class.
/// </summary>
public DataFlowDebugResource()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the DataFlowDebugResource class.
/// </summary>
/// <param name="properties">Data flow properties.</param>
/// <param name="name">The resource name.</param>
public DataFlowDebugResource(DataFlow properties, string name = default(string))
: base(name)
{
Properties = properties;
CustomInit();
}

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

/// <summary>
/// Gets or sets data flow properties.
/// </summary>
[JsonProperty(PropertyName = "properties")]
public DataFlow Properties { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Properties == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Properties");
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// <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.Linq;

/// <summary>
/// Dataset debug resource.
/// </summary>
public partial class DatasetDebugResource : SubResourceDebugResource
{
/// <summary>
/// Initializes a new instance of the DatasetDebugResource class.
/// </summary>
public DatasetDebugResource()
{
Properties = new Dataset();
CustomInit();
}

/// <summary>
/// Initializes a new instance of the DatasetDebugResource class.
/// </summary>
/// <param name="properties">Dataset properties.</param>
/// <param name="name">The resource name.</param>
public DatasetDebugResource(Dataset properties, string name = default(string))
: base(name)
{
Properties = properties;
CustomInit();
}

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

/// <summary>
/// Gets or sets dataset properties.
/// </summary>
[JsonProperty(PropertyName = "properties")]
public Dataset Properties { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Properties == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Properties");
}
if (Properties != null)
{
Properties.Validate();
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
// <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.Linq;

/// <summary>
/// Integration runtime debug resource.
/// </summary>
public partial class IntegrationRuntimeDebugResource : SubResourceDebugResource
{
/// <summary>
/// Initializes a new instance of the IntegrationRuntimeDebugResource
/// class.
/// </summary>
public IntegrationRuntimeDebugResource()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the IntegrationRuntimeDebugResource
/// class.
/// </summary>
/// <param name="properties">Integration runtime properties.</param>
/// <param name="name">The resource name.</param>
public IntegrationRuntimeDebugResource(IntegrationRuntime properties, string name = default(string))
: base(name)
{
Properties = properties;
CustomInit();
}

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

/// <summary>
/// Gets or sets integration runtime properties.
/// </summary>
[JsonProperty(PropertyName = "properties")]
public IntegrationRuntime Properties { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Properties == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Properties");
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// <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.Linq;

/// <summary>
/// Linked service debug resource.
/// </summary>
public partial class LinkedServiceDebugResource : SubResourceDebugResource
{
/// <summary>
/// Initializes a new instance of the LinkedServiceDebugResource class.
/// </summary>
public LinkedServiceDebugResource()
{
Properties = new LinkedService();
CustomInit();
}

/// <summary>
/// Initializes a new instance of the LinkedServiceDebugResource class.
/// </summary>
/// <param name="properties">Properties of linked service.</param>
/// <param name="name">The resource name.</param>
public LinkedServiceDebugResource(LinkedService properties, string name = default(string))
: base(name)
{
Properties = properties;
CustomInit();
}

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

/// <summary>
/// Gets or sets properties of linked service.
/// </summary>
[JsonProperty(PropertyName = "properties")]
public LinkedService Properties { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Properties == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Properties");
}
if (Properties != null)
{
Properties.Validate();
}
}
}
}
Loading

0 comments on commit 5f4ec70

Please sign in to comment.