forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Data Factory][Bug fix before SDK publishing] Add new sub resource wr…
…apper with name property (Azure#7874) * init * Generated from latest swagger
- Loading branch information
1 parent
b29119b
commit 5f4ec70
Showing
14 changed files
with
350 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
...tory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DataFlowDebugResource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
} | ||
} | ||
} |
72 changes: 72 additions & 0 deletions
72
...ctory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/DatasetDebugResource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
...soft.Azure.Management.DataFactory/src/Generated/Models/IntegrationRuntimeDebugResource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
} | ||
} | ||
} |
72 changes: 72 additions & 0 deletions
72
...Microsoft.Azure.Management.DataFactory/src/Generated/Models/LinkedServiceDebugResource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.