From 357657df6b5dbb5acbb1db74c25d09ea8dfce50d Mon Sep 17 00:00:00 2001
From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com>
Date: Fri, 30 Aug 2019 03:24:57 +0000
Subject: [PATCH] [AutoPR Microsoft.Azure.Management.DataFactory]
Chainingtrigger (#163)
* Generated from cce264ba7c751076c58518d67e19b9e469832c0c (#136)
Update ListLegacyPeerings.json
* Generated from 92006e420d65cb70e4b93bc5850af575da4efb78 (#162)
Mark "provisioningState" as read-only
* Generated from 5e1bb35d5c3314d8f4fead76c3d69a2522be026b
Update review comments
---
.../src/Generated/Models/ChainingTrigger.cs | 126 ++++++++++++++++++
.../src/Generated/Models/PipelineResource.cs | 10 +-
.../src/Generated/Models/PipelineRun.cs | 11 +-
...kageLocation.cs => SSISPackageLocation.cs} | 0
.../src/Generated/Models/TriggerRun.cs | 20 ++-
.../SdkInfo_DataFactoryManagementClient.cs | 11 --
6 files changed, 164 insertions(+), 14 deletions(-)
create mode 100644 sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ChainingTrigger.cs
rename sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/{SsisPackageLocation.cs => SSISPackageLocation.cs} (100%)
diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ChainingTrigger.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ChainingTrigger.cs
new file mode 100644
index 0000000000000..5f3386bbedc7c
--- /dev/null
+++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/ChainingTrigger.cs
@@ -0,0 +1,126 @@
+//
+// 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.DataFactory.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Trigger that allows the referenced pipeline to depend on other pipeline
+ /// runs based on runDimension Name/Value pairs. Upstream pipelines should
+ /// declare the same runDimension Name and their runs should have the
+ /// values for those runDimensions. The referenced pipeline run would be
+ /// triggered if the values for the runDimension match for all upstream
+ /// pipeline runs.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class ChainingTrigger : Trigger
+ {
+ ///
+ /// Initializes a new instance of the ChainingTrigger class.
+ ///
+ public ChainingTrigger()
+ {
+ Pipeline = new TriggerPipelineReference();
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ChainingTrigger class.
+ ///
+ /// Pipeline for which runs are created when all
+ /// upstream pipelines complete successfully.
+ /// Upstream Pipelines.
+ /// Run Dimension property that needs to be
+ /// emitted by upstream pipelines.
+ /// Unmatched properties from the
+ /// message are deserialized this collection
+ /// Trigger description.
+ /// Indicates if trigger is running or not.
+ /// Updated when Start/Stop APIs are called on the Trigger. Possible
+ /// values include: 'Started', 'Stopped', 'Disabled'
+ /// List of tags that can be used for
+ /// describing the trigger.
+ public ChainingTrigger(TriggerPipelineReference pipeline, IList dependsOn, string runDimension, IDictionary additionalProperties = default(IDictionary), string description = default(string), string runtimeState = default(string), IList annotations = default(IList))
+ : base(additionalProperties, description, runtimeState, annotations)
+ {
+ Pipeline = pipeline;
+ DependsOn = dependsOn;
+ RunDimension = runDimension;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets pipeline for which runs are created when all upstream
+ /// pipelines complete successfully.
+ ///
+ [JsonProperty(PropertyName = "pipeline")]
+ public TriggerPipelineReference Pipeline { get; set; }
+
+ ///
+ /// Gets or sets upstream Pipelines.
+ ///
+ [JsonProperty(PropertyName = "typeProperties.dependsOn")]
+ public IList DependsOn { get; set; }
+
+ ///
+ /// Gets or sets run Dimension property that needs to be emitted by
+ /// upstream pipelines.
+ ///
+ [JsonProperty(PropertyName = "typeProperties.runDimension")]
+ public string RunDimension { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Pipeline == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Pipeline");
+ }
+ if (DependsOn == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "DependsOn");
+ }
+ if (RunDimension == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "RunDimension");
+ }
+ if (Pipeline != null)
+ {
+ Pipeline.Validate();
+ }
+ if (DependsOn != null)
+ {
+ foreach (var element in DependsOn)
+ {
+ if (element != null)
+ {
+ element.Validate();
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PipelineResource.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PipelineResource.cs
index 4c376ee881665..71b481d9e0084 100644
--- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PipelineResource.cs
+++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PipelineResource.cs
@@ -48,9 +48,10 @@ public PipelineResource()
/// pipeline.
/// List of tags that can be used for
/// describing the Pipeline.
+ /// Dimensions emitted by Pipeline.
/// The folder that this Pipeline is in. If not
/// specified, Pipeline will appear at the root level.
- public PipelineResource(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), IDictionary additionalProperties = default(IDictionary), string description = default(string), IList activities = default(IList), IDictionary parameters = default(IDictionary), IDictionary variables = default(IDictionary), int? concurrency = default(int?), IList annotations = default(IList), PipelineFolder folder = default(PipelineFolder))
+ public PipelineResource(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), IDictionary additionalProperties = default(IDictionary), string description = default(string), IList activities = default(IList), IDictionary parameters = default(IDictionary), IDictionary variables = default(IDictionary), int? concurrency = default(int?), IList annotations = default(IList), IDictionary runDimensions = default(IDictionary), PipelineFolder folder = default(PipelineFolder))
: base(id, name, type, etag)
{
AdditionalProperties = additionalProperties;
@@ -60,6 +61,7 @@ public PipelineResource()
Variables = variables;
Concurrency = concurrency;
Annotations = annotations;
+ RunDimensions = runDimensions;
Folder = folder;
CustomInit();
}
@@ -113,6 +115,12 @@ public PipelineResource()
[JsonProperty(PropertyName = "properties.annotations")]
public IList Annotations { get; set; }
+ ///
+ /// Gets or sets dimensions emitted by Pipeline.
+ ///
+ [JsonProperty(PropertyName = "properties.runDimensions")]
+ public IDictionary RunDimensions { get; set; }
+
///
/// Gets or sets the folder that this Pipeline is in. If not specified,
/// Pipeline will appear at the root level.
diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PipelineRun.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PipelineRun.cs
index 7210c76a29e6e..f1d431a01efad 100644
--- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PipelineRun.cs
+++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/PipelineRun.cs
@@ -41,6 +41,8 @@ public PipelineRun()
/// The pipeline name.
/// The full or partial list of parameter
/// name, value pair used in the pipeline run.
+ /// Run dimensions emitted by Pipeline
+ /// run.
/// Entity that started the pipeline
/// run.
/// The last updated timestamp for the
@@ -52,7 +54,7 @@ public PipelineRun()
/// The duration of a pipeline run.
/// The status of a pipeline run.
/// The message from a pipeline run.
- public PipelineRun(IDictionary additionalProperties = default(IDictionary), string runId = default(string), string runGroupId = default(string), bool? isLatest = default(bool?), string pipelineName = default(string), IDictionary parameters = default(IDictionary), PipelineRunInvokedBy invokedBy = default(PipelineRunInvokedBy), System.DateTime? lastUpdated = default(System.DateTime?), System.DateTime? runStart = default(System.DateTime?), System.DateTime? runEnd = default(System.DateTime?), int? durationInMs = default(int?), string status = default(string), string message = default(string))
+ public PipelineRun(IDictionary additionalProperties = default(IDictionary), string runId = default(string), string runGroupId = default(string), bool? isLatest = default(bool?), string pipelineName = default(string), IDictionary parameters = default(IDictionary), IDictionary runDimensions = default(IDictionary), PipelineRunInvokedBy invokedBy = default(PipelineRunInvokedBy), System.DateTime? lastUpdated = default(System.DateTime?), System.DateTime? runStart = default(System.DateTime?), System.DateTime? runEnd = default(System.DateTime?), int? durationInMs = default(int?), string status = default(string), string message = default(string))
{
AdditionalProperties = additionalProperties;
RunId = runId;
@@ -60,6 +62,7 @@ public PipelineRun()
IsLatest = isLatest;
PipelineName = pipelineName;
Parameters = parameters;
+ RunDimensions = runDimensions;
InvokedBy = invokedBy;
LastUpdated = lastUpdated;
RunStart = runStart;
@@ -115,6 +118,12 @@ public PipelineRun()
[JsonProperty(PropertyName = "parameters")]
public IDictionary Parameters { get; private set; }
+ ///
+ /// Gets run dimensions emitted by Pipeline run.
+ ///
+ [JsonProperty(PropertyName = "runDimensions")]
+ public IDictionary RunDimensions { get; private set; }
+
///
/// Gets entity that started the pipeline run.
///
diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISPackageLocation.cs
similarity index 100%
rename from sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SsisPackageLocation.cs
rename to sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/SSISPackageLocation.cs
diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TriggerRun.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TriggerRun.cs
index 8ec466fcd6e55..5e9e585d51f80 100644
--- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TriggerRun.cs
+++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/TriggerRun.cs
@@ -44,7 +44,11 @@ public TriggerRun()
/// trigger run. Name, value pair depends on type of trigger.
/// List of pipeline name and run Id
/// triggered by the trigger run.
- public TriggerRun(IDictionary additionalProperties = default(IDictionary), string triggerRunId = default(string), string triggerName = default(string), string triggerType = default(string), System.DateTime? triggerRunTimestamp = default(System.DateTime?), string status = default(string), string message = default(string), IDictionary properties = default(IDictionary), IDictionary triggeredPipelines = default(IDictionary))
+ /// Run dimension for which trigger was
+ /// fired.
+ /// Status of the upstream
+ /// pipelines.
+ public TriggerRun(IDictionary additionalProperties = default(IDictionary), string triggerRunId = default(string), string triggerName = default(string), string triggerType = default(string), System.DateTime? triggerRunTimestamp = default(System.DateTime?), string status = default(string), string message = default(string), IDictionary properties = default(IDictionary), IDictionary triggeredPipelines = default(IDictionary), IDictionary runDimension = default(IDictionary), IDictionary dependencyStatus = default(IDictionary))
{
AdditionalProperties = additionalProperties;
TriggerRunId = triggerRunId;
@@ -55,6 +59,8 @@ public TriggerRun()
Message = message;
Properties = properties;
TriggeredPipelines = triggeredPipelines;
+ RunDimension = runDimension;
+ DependencyStatus = dependencyStatus;
CustomInit();
}
@@ -120,5 +126,17 @@ public TriggerRun()
[JsonProperty(PropertyName = "triggeredPipelines")]
public IDictionary TriggeredPipelines { get; private set; }
+ ///
+ /// Gets run dimension for which trigger was fired.
+ ///
+ [JsonProperty(PropertyName = "runDimension")]
+ public IDictionary RunDimension { get; private set; }
+
+ ///
+ /// Gets status of the upstream pipelines.
+ ///
+ [JsonProperty(PropertyName = "dependencyStatus")]
+ public IDictionary DependencyStatus { get; private set; }
+
}
}
diff --git a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs
index 6c4f6b0598b12..afb3bebe6aa97 100644
--- a/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs
+++ b/sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/SdkInfo_DataFactoryManagementClient.cs
@@ -36,16 +36,5 @@ public static IEnumerable> ApiInfo_DataFactoryMana
}.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/datafactory/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --tag=package-2018-06 --csharp-sdks-folder=C:\\azure-sdk-for-net\\sdk";
- public static readonly String GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "fb8f078deac2367f3dbcfbd8a542c77083c28a5b";
- public static readonly String CodeGenerationErrors = "";
- public static readonly String GithubRepoName = "azure-rest-api-specs";
- // END: Code Generation Metadata Section
}
}
-